/**
 * Searchable <select> combobox — progressive enhancement.
 * Pairs with /static/js/searchable-select.js.
 * Apply by adding [data-searchable-select] to any <select>.
 */
.searchable-select {
    position: relative;
}
.searchable-select__native {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}
.searchable-select__input {
    background-image: none;
    padding-right: 34px;
}
.searchable-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    pointer-events: none;
    background: currentColor;
    color: var(--text-secondary-light, #6c757d);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") center / contain no-repeat;
}
.searchable-select__menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 240px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--white, #fff);
    border: 1px solid var(--neutral-200, #EBECEF);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.searchable-select__menu.is-open {
    display: block;
}
.searchable-select__option {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-primary-light, #1B2431);
    cursor: pointer;
}
.searchable-select__option:hover,
.searchable-select__option.is-active {
    background: var(--primary-50, #E4F1FF);
    color: var(--primary-600, #487FFF);
}
.searchable-select__empty {
    padding: 8px 10px;
    font-size: 0.85rem;
    color: var(--text-secondary-light, #6c757d);
}
html[data-theme="dark"] .searchable-select__menu {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .searchable-select__option:hover,
html[data-theme="dark"] .searchable-select__option.is-active {
    background: rgba(72, 127, 255, 0.18);
    color: #8eb6ff;
}
