﻿:root {
    --color-foreground: #1C170D;
    --color-foreground-secondary: #505050;
    --color-primary-bg: #FFD47E;
    --color-secondary-bg: #F0F2F5;
    --color-tertiary-text: #000;
    --radius: 8px;
    --padding-x: 1rem;
    --input-bg: #f0f2f5;
    --input-border: #d1d1d1;
    --input-radius: 8px;
    --input-padding-x: 1rem;
    --input-height: 40px;
    --input-font-size: 1rem;
    --input-placeholder: #b0b0b0;
    --input-disabled-bg: #f4f4f4;
    --input-disabled-color: #999;
    --input-focus-border: #FFD47E;
    --input-focus-shadow: rgba(255, 212, 126, 0.3);
}

.price-input {
    background-color: #fff;
    border: 1px solid var(--input-border);
    border-radius: var(--input-radius);
    padding: 0 var(--input-padding-x);
    height: var(--input-height);
    font-size: var(--input-font-size);
    color: #000;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.price-input::placeholder {
    color: var(--input-placeholder);
}

.price-input:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 2px var(--input-focus-shadow);
}

.price-input:disabled {
    background-color: var(--input-disabled-bg);
    color: var(--input-disabled-color);
    border-color: var(--input-border);
    cursor: not-allowed;
}

.styled-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    color: var(--color-foreground) !important;
    text-shadow: none !important;
    height: min-content;
}

.styled-btn img {
    width: 1rem;
    height: 1rem;
}

.styled-btn span {
    white-space: nowrap;
}

/* Appearances */
.btn-primary {
    background-color: var(--color-primary-bg);
}

.btn-primary:hover {
    background-color: #e6c067;
}

.btn-secondary {
    background-color: var(--color-secondary-bg);
}

.btn-secondary:hover {
    background-color: #d6d9dc;
}

.btn-tertiary {
    background: none;
    text-decoration: underline;
    font-weight: 500 !important;
}

.btn-outlined {
    background: none;
    text-decoration: none;
    border: 1px solid #646464;
    color: #646464 !important;
    font-weight: 700;
}

.btn-outlined:hover {
    background: #646464;
    color: white !important;
}

.btn-tertiary:hover {
    opacity: 0.7;
}

.btn-danger-subtle {
    background: none;
    font-weight: 500 !important;
    opacity: 0.5;
}

.btn-danger-subtle:hover {
    background: #ff3333;
    opacity: 1;
    color: white !important;
}

.custom-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.custom-checkbox-label {
    display: flex !important;
    gap: 0.5rem;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    user-select: none;
}

.custom-checkbox-input {
    position: absolute;
    opacity: 0;
}

.custom-checkbox-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    box-sizing: border-box;
}

.custom-checkbox-input:checked + .custom-checkbox-box {
    border-color: #54a3c9;
    background-color: #54a3c9;
}

.custom-checkbox-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg);
    transition: opacity 0.2s ease;
}

.custom-checkbox-input:checked + .custom-checkbox-box::after {
    opacity: 1;
}

.custom-dropdown {
    display: inline-block;
    position: relative;
    font-family: sans-serif;
    font-size: 14px;
    color: #333;
    margin: 0.5em 0;
    min-width: 230px;
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    background: #fff url("data:image/svg+xml;utf8,<svg fill='gray' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 1em center;
    background-size: 1em;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
}

.custom-dropdown-wrapper {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    background-color: #fff;
    font-size: 1rem;
}

.dropdown-display {
    min-height: 1.5rem;
    user-select: none;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
    margin-top: 4px;
    padding: 0.5rem;
}

.option-item {
    display: block;
    margin-bottom: 0.25rem;
}

.styled-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 120px;
}

.styled-textarea:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.styled-textbox {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.styled-textbox:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field {
    width: 100%;
}

.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    color: inherit !important;
    text-transform: revert;
    font-family: Fira Sans;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 24px;
}

.header-title-3 {
    color: inherit !important;
    text-transform: revert;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 28px;
    letter-spacing: 0px;
}

div:has(> input#__VIEWSTATE) {
    /* your styles here */
}

.nowrap {
    white-space: nowrap;
}

