/* Styled dropdowns (pairs with xsel.js). Uses the site's greens; works in the dashboard and on the website. */
.xsel { position: relative; display: block; width: 100%; min-width: 0; }
.xsel > select { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0 !important; pointer-events: none !important; margin: 0 !important; }
.xsel-btn { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border: 1.5px solid #D5DED8; border-radius: 12px; background: #fff; color: #0F172A; font: inherit; font-size: .93rem; font-weight: 500; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.xsel-btn:hover { border-color: #8FC5A1; background: #FBFDFC; }
.xsel-btn:focus-visible, .xsel.is-open .xsel-btn { outline: none; border-color: #15803D; box-shadow: 0 0 0 4px rgba(21, 128, 61, .14); }
.xsel-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xsel.is-empty .xsel-val { color: #94A3B8; }
.xsel-caret { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: #ECFDF3; color: #15803D; transition: transform .2s, background .2s, color .2s; }
.xsel-caret svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.xsel.is-open .xsel-caret { transform: rotate(180deg); background: #15803D; color: #fff; }
.xsel.is-disabled .xsel-btn { opacity: .55; cursor: not-allowed; background: #F8FAF9; }
.xsel.is-invalid .xsel-btn { border-color: #DC2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
/* compact: toolbars, filters, inline pickers */
.xsel-sm { display: inline-block; width: auto; vertical-align: middle; }
.xsel-sm .xsel-btn { min-height: 32px; padding: 3px 6px 3px 10px; border-radius: 9px; font-size: .8rem; gap: 6px; border-width: 1px; }
.xsel-sm .xsel-caret { width: 20px; height: 20px; border-radius: 6px; }
.xsel-sm .xsel-caret svg { width: 12px; height: 12px; }
.xsel-sm .xsel-val { max-width: 160px; }
/* the menu */
.xsel-pop { position: fixed; z-index: 2147483000; display: flex; flex-direction: column; background: #fff; border: 1px solid #D5E5DA; border-radius: 14px; padding: 6px; box-shadow: 0 22px 48px -18px rgba(5, 46, 22, .38), 0 2px 6px rgba(0, 0, 0, .06); animation: xsel-in .14s ease-out; font-family: inherit; }
.xsel-pop[hidden] { display: none; }
.xsel-pop.up { animation-name: xsel-up; }
@keyframes xsel-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes xsel-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.xsel-search { margin: 0 0 6px; height: 36px !important; min-height: 36px !important; padding: 0 10px !important; border: 1px solid #DDE5E0 !important; border-radius: 9px !important; font: inherit; font-size: .86rem !important; width: 100%; box-shadow: none !important; }
.xsel-search:focus { outline: none; border-color: #15803D !important; }
.xsel-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; outline: none; scrollbar-width: thin; }
.xsel-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 9px; font-size: .88rem; color: #1E293B; cursor: pointer; line-height: 1.3; }
.xsel-opt[hidden] { display: none; }
.xsel-opt.is-ph { color: #94A3B8; }
.xsel-opt.is-active { background: #F1F8F3; }
.xsel-opt[aria-selected="true"] { background: #E3F3E8; color: #14532D; font-weight: 700; }
.xsel-opt[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.xsel-tick { width: 16px; height: 16px; flex: none; fill: none; stroke: #15803D; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.xsel-opt[aria-selected="true"] .xsel-tick { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .xsel-pop { animation: none; } .xsel-caret { transition: none; } }
@media (max-width: 560px) { .xsel-opt { padding: 11px 10px; font-size: .92rem; } }
