/* ============================================================
   Beh & Yo — Select2 themed dropdown (premium cream / gold)
   Scoped to .behnyo-select (container + dropdown) so other
   Select2 instances (e.g. the admin theme) stay untouched.
   ============================================================ */

/* ----- Closed field: match .bf-input / .form-control ----- */
.select2-container.behnyo-select { width: 100% !important; }

.select2-container.behnyo-select .select2-selection--single {
    height: auto !important;
    min-height: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e8e6df !important;   /* match .bf-input, not Select2's default #aaa */
    border-radius: 0 !important;            /* square, like the date field (Select2 default is 4px) */
    background-color: #fff;
    font-family: 'Suisse Int\'l', Helvetica, Arial, sans-serif;
    transition: border-color 0.2s ease;
}
.select2-container.behnyo-select.select2-container--open .select2-selection--single,
.select2-container.behnyo-select.select2-container--focus .select2-selection--single {
    border-color: #252525;
    outline: none;
}
.select2-container.behnyo-select .select2-selection__rendered {
    padding: 0 1.5rem 0 0;
    line-height: 1.2;          /* match the date field's height */
    color: #252525;
    font-size: 0.9rem;
}
.select2-container.behnyo-select .select2-selection__placeholder { color: #b8b3a4; }

/* Arrow → subtle chevron in the theme's muted tone */
.select2-container.behnyo-select .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 0.5rem;
    width: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8578' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}
.select2-container.behnyo-select .select2-selection__arrow b { display: none; }

/* ----- Open dropdown panel ----- */
.select2-dropdown.behnyo-select {
    background: #FFFEF5;
    border: 1px solid #e8e3d3;
    border-radius: 2px;
    box-shadow: 0 14px 34px rgba(31, 29, 24, 0.14);
    overflow: hidden;
}
.select2-dropdown.behnyo-select .select2-results__options { padding: 0.3rem; }
.select2-dropdown.behnyo-select .select2-results__option {
    padding: 0.6rem 0.7rem;
    border-radius: 2px;
    font-family: 'Suisse Int\'l', Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    color: #3d3b34;
}
/* Hovered / keyboard-highlighted option — gold tint instead of blue */
.select2-dropdown.behnyo-select .select2-results__option--highlighted[aria-selected] {
    background: rgba(212, 176, 74, 0.16);
    color: #1f1d18;
}
/* Currently selected option */
.select2-dropdown.behnyo-select .select2-results__option[aria-selected="true"] {
    background: #FBF9ED;
    color: #1f1d18;
    font-weight: 500;
}

/* Search box (shown only when enabled) */
.select2-dropdown.behnyo-select .select2-search--dropdown { padding: 0.4rem; }
.select2-dropdown.behnyo-select .select2-search__field {
    border: 1px solid #e8e6df;
    border-radius: 0;
    padding: 0.5rem 0.6rem;
    font-family: 'Suisse Int\'l', Helvetica, Arial, sans-serif;
    font-size: 0.88rem;
    outline: none;
}
.select2-dropdown.behnyo-select .select2-search__field:focus { border-color: #252525; }
