.custom-select{position:relative;display:inline-flex;flex-direction:column;vertical-align:middle;min-width:0;max-width:100%;font:14px/1.5 var(--sans)}
.custom-select>select[hidden]{display:none!important}
.custom-select .custom-select__trigger{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;min-width:0;min-height:46px;padding:11px 14px;border:1px solid var(--line-strong);border-radius:7px;background:var(--panel);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.custom-select__value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.custom-select__arrow{flex-shrink:0;width:8px;height:8px;margin:0 2px 4px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);color:var(--muted)}
.custom-select .custom-select__trigger:hover:enabled,.custom-select .custom-select__trigger:focus-visible{background:var(--raised)}
.custom-select .custom-select__trigger[aria-expanded=true]{background:var(--raised)}
.custom-select__trigger[aria-expanded=true] .custom-select__arrow{transform:rotate(225deg);margin-top:4px;margin-bottom:0}
.custom-select .custom-select__trigger:disabled{opacity:.5;cursor:not-allowed}
.custom-select__menu{position:fixed;inset:auto;z-index:50;display:flex;flex-direction:column;gap:6px;max-width:calc(100vw - 24px);margin:0;padding:6px;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);box-shadow:0 12px 32px #0002;font:14px/1.5 var(--sans)}
.custom-select__menu[hidden]{display:none!important}
.custom-select__menu::backdrop{background:transparent;pointer-events:none}
.custom-select__list{position:relative;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}
.custom-select__option{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:44px;padding:10px 12px;border-radius:6px;cursor:pointer}
.custom-select__option>span:first-child{min-width:0;overflow-wrap:anywhere}
.custom-select__option[data-active=true]{background:var(--raised)}
.custom-select__option[aria-selected=true]{color:var(--accent);font-weight:500}
.custom-select__check{flex-shrink:0;width:16px;visibility:hidden;color:var(--accent)}
.custom-select__option[aria-selected=true] .custom-select__check{visibility:visible}
.custom-select__option[aria-disabled=true]{opacity:.45;cursor:not-allowed}
.custom-select__menu .custom-select__search{display:block;flex-shrink:0;width:100%;min-height:44px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:var(--field);color:var(--ink);font:16px/1.5 var(--sans)}
.custom-select__menu .custom-select__search:focus{outline:none;border-color:var(--accent)}
.custom-select__empty{margin:0;padding:14px 12px;color:var(--muted);font-size:14px}
.custom-select__group{padding:12px 12px 6px;color:var(--muted);font-size:max(var(--gdl-min-font-size,0px),12px)}
.custom-select__error{display:block;margin-top:7px;color:var(--accent);font:max(var(--gdl-min-font-size,0px),13px)/1.5 var(--sans)}
.custom-select .custom-select__trigger[aria-invalid=true]{border-color:var(--accent)}
.display-control>.custom-select{min-width:132px}
.display-control .custom-select__trigger{min-height:40px;padding:9px 11px;font-size:max(var(--gdl-min-font-size,0px),12px)}
.display-preview__toolbar label>.custom-select{min-width:120px}
.table-toolbar label>.custom-select{display:flex;min-width:150px;margin-top:7px}
.backup-panel form>.custom-select,.search-import label>.custom-select{display:flex;width:100%;margin-top:8px}
.dashboard-filters.compact>.custom-select{max-width:160px;min-width:112px}
.dashboard-filters.compact>.custom-select[data-select-name=site]{width:205px;max-width:205px}
.dashboard-filters.compact .custom-select__trigger{min-height:40px;padding:9px 11px;font-size:max(var(--gdl-min-font-size,0px),13px)}
@media(max-width:640px){
  .custom-select{font-size:16px}
  .custom-select__menu{font-size:16px}
  .custom-select__option{min-height:48px;padding:12px}
  .dashboard-filters.compact>.custom-select{flex:1;min-width:0;max-width:100%}
  .dashboard-filters.compact>.custom-select[data-select-name=site]{flex-basis:100%;width:100%;max-width:100%}
  .dashboard-filters.compact .custom-select__trigger{min-height:46px;font-size:15px}
  .table-toolbar label>.custom-select{min-width:0;width:100%}
}
