/* searchable-select.css
   Combobox с поиском поверх нативного <select>.
   Включается классом .ss-select на <select> ИЛИ атрибутом data-ss на контейнере.
   Нативный <select> остаётся в DOM (отправка формы + событие change). */

.ss { position: relative; width: 100%; min-width: 0; }
.ss-native { display: none !important; }

.ss-trigger {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    display: inline-flex; align-items: center; gap: 8px;
    text-align: left; cursor: pointer;
    border: 1px solid var(--border, #d7dbd5);
    border-radius: 6px;
    background: var(--surface, #fff);
    color: var(--text, #1f2937);
    font-size: 12.5px; font-family: inherit; line-height: 1.1;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.ss-trigger:hover { border-color: var(--border-strong, #c2c8be); }
.ss.open .ss-trigger,
.ss-trigger:focus-visible {
    outline: none;
    border-color: var(--accent, #16a34a);
    box-shadow: 0 0 0 3px var(--ring, rgba(22,163,74,.15));
}
.ss-value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-value.is-placeholder { color: var(--text-mute, #9ca3af); }
.ss-caret { flex-shrink: 0; font-size: 10px; opacity: .55; transition: transform .15s ease; }
.ss.open .ss-caret { transform: rotate(180deg); }

.ss-pop {
    position: fixed; z-index: 1300;
    background: #fff; border: 1px solid #e3e6e1; border-radius: 10px;
    box-shadow: 0 18px 44px -18px rgba(16,24,40,.30), 0 2px 8px rgba(16,24,40,.06);
    padding: 6px;
}
.ss-pop[hidden] { display: none; }

.ss-search-wrap { position: relative; margin-bottom: 6px; }
.ss-search-ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; color: #9aa098; pointer-events: none; }
.ss-search {
    width: 100%; height: 32px; padding: 0 10px 0 29px;
    border: 1px solid #d7dbd5; border-radius: 7px; background: #fff;
    font-size: 13px; color: #14181a; outline: none; font-family: inherit;
}
.ss-search:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.14); }

.ss-list { max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.ss-opt {
    padding: 8px 10px; border-radius: 7px;
    font-size: 13px; color: #2c312f; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ss-opt:hover, .ss-opt.is-active { background: #f3f5f3; }
.ss-opt.is-selected { color: #126a2e; font-weight: 600; background: #eaf5ee; }
.ss-opt.is-disabled { color: #b9bdb6; cursor: default; background: none; }
.ss-empty { padding: 12px 10px; text-align: center; color: #9aa098; font-size: 12.5px; }
