/* Searchable single selects; the original select remains the form's source. */
.fm-select-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;opacity:0!important;clip-path:inset(50%);overflow:hidden!important;pointer-events:none}
.fm-select-button.fm-select-button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#172033;font:inherit;text-align:left;cursor:pointer;box-sizing:border-box;transform:none;letter-spacing:normal;line-height:1.4}
.fm-select-button::after{content:'';width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);flex:none;margin:0 3px 4px 0;opacity:.6}
.fm-select-button .fm-select-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;margin:0;color:inherit;font:inherit}
.fm-select-button:focus-visible,.fm-select-button[aria-expanded=true]{outline:2px solid #3b82f6;outline-offset:2px}
.fm-select-button:disabled{opacity:.5;cursor:not-allowed}
.fm-select-button[aria-invalid=true]{border-color:#dc2626}
.fm-select-popup.fm-select-popup{position:fixed;z-index:2100;width:320px;max-width:calc(100vw - 16px);padding:8px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#172033;box-shadow:0 16px 50px #0f172a26;box-sizing:border-box;font:14px/1.5 var(--fm-font,system-ui);margin:0;letter-spacing:normal}
.fm-select-popup[hidden]{display:none!important}
.fm-select-popup .fm-select-search{display:block;width:100%;min-height:44px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033;padding:10px 12px;margin:0 0 6px;font:inherit;box-sizing:border-box;outline-offset:1px}
.fm-select-popup .fm-select-list{max-height:230px;overflow:auto;overscroll-behavior:contain;list-style:none;margin:0;padding:0;scroll-padding:4px}
.fm-select-popup .fm-select-option{display:block;padding:10px 12px;border-radius:7px;cursor:pointer;white-space:normal;overflow-wrap:anywhere;line-height:1.45;margin:0;color:inherit;font:inherit}
.fm-select-option[aria-selected=true]{font-weight:700;background:#eff6ff;color:#1d4ed8}
.fm-select-option.is-active{background:#dbeafe;color:#1e40af;outline:1px solid #93c5fd;outline-offset:-1px}
.fm-select-option[aria-disabled=true]{opacity:.45;cursor:not-allowed}
.fm-select-popup .fm-select-empty{padding:16px 12px;color:#64748b}
.fm-select-popup .fm-select-group{padding:8px 12px 3px;color:#64748b;font-size:12px;font-weight:700}
:root[data-theme=dark] .fm-select-button,:root[data-theme=dark] .fm-select-popup{background:#131c30;color:#eef2fb;border-color:#3b4963}
:root[data-theme=dark] .fm-select-popup .fm-select-search{background:#0b1220;color:#eef2fb;border-color:#3b4963}
:root[data-theme=dark] .fm-select-option[aria-selected=true]{background:#1e3052;color:#bfdbfe}
:root[data-theme=dark] .fm-select-option.is-active{background:#254576;color:#fff}
@media(max-width:600px){.fm-select-popup .fm-select-search{font-size:16px}.fm-select-popup .fm-select-list{max-height:200px}}
@media print{.fm-select-popup{display:none!important}.fm-select-native{position:static!important;width:auto!important;height:auto!important;opacity:1!important;clip-path:none}.fm-select-button{display:none!important}}
