/* BLC global custom select — keeps native <select> as the data/form source while replacing platform popup UI. */
.blc-select-shell{
  --blc-select-bg:var(--surface,var(--admin-surface,#fff));
  --blc-select-bg-soft:var(--surface-soft,var(--admin-surface-2,#f7f8fc));
  --blc-select-text:var(--text,var(--admin-text,#171b25));
  --blc-select-muted:var(--muted,var(--admin-muted,#6b7588));
  --blc-select-border:var(--border,var(--admin-line-strong,#d6dbe5));
  --blc-select-accent:var(--accent,var(--admin-accent,#6748ee));
  --blc-select-accent-soft:var(--accent-soft,var(--admin-accent-soft,rgba(103,72,238,.1)));
  position:relative;display:block;width:100%;min-width:0;
}
.blc-select-native{position:absolute!important;inline-size:1px!important;block-size:1px!important;min-width:1px!important;min-height:1px!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important;clip-path:inset(50%)!important;overflow:hidden!important;appearance:none!important}
.blc-select-trigger{
  width:100%;min-width:0;min-height:42px;margin:0;padding:0 12px;border:1px solid var(--blc-select-border);border-radius:10px;background:var(--blc-select-bg);color:var(--blc-select-text);font:inherit;font-size:inherit;font-weight:inherit;text-align:start;display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:9px;box-shadow:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease,color .16s ease;
}
.blc-select-trigger:hover{border-color:color-mix(in srgb,var(--blc-select-accent) 55%,var(--blc-select-border));background:color-mix(in srgb,var(--blc-select-accent-soft) 24%,var(--blc-select-bg))}
.blc-select-trigger:focus-visible{outline:0;border-color:var(--blc-select-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--blc-select-accent) 17%,transparent)}
.blc-select-trigger:disabled{opacity:.55;cursor:not-allowed}
.blc-select-trigger.is-invalid{border-color:var(--danger,var(--admin-red,#dc3f50));box-shadow:0 0 0 3px color-mix(in srgb,var(--danger,var(--admin-red,#dc3f50)) 12%,transparent)}
.blc-select-trigger.is-placeholder .blc-select-value{color:var(--blc-select-muted)}
.blc-select-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit}
.blc-select-trigger>svg{width:17px;height:17px;fill:none;stroke:var(--blc-select-muted);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s ease}
.blc-select-trigger[aria-expanded="true"]>svg{transform:rotate(180deg);stroke:var(--blc-select-accent)}

/* Compact table/filter select surfaces. */
.events-page-size .blc-select-trigger,.customers-page-size .blc-select-trigger,.quotes-page-size .blc-select-trigger,.payments-page-size .blc-select-trigger,.admin-filter .blc-select-trigger{min-height:36px;padding-inline:10px;font-size:10px}
.events-mobile-sort-field .blc-select-trigger,.payments-mobile-sort .blc-select-trigger{min-height:40px}

/* Legacy compact-sort labels used a pseudo-element with a second ↕ icon. The global picker owns the label and chevron now. */
.customers-sort-field::after,#events .events-mobile-sort-field::after,#quotes.quotes-page .quotes-sort-field::after,#payments .payments-mobile-sort::after{content:none!important;display:none!important}
.blc-select-trigger.is-compact-sort{position:relative;display:flex;align-items:center;justify-content:center;padding-inline:30px;font-size:11.5px;font-weight:700;text-align:center}
.blc-select-trigger.is-compact-sort .blc-select-value{text-align:center;overflow:visible;text-overflow:clip}
.blc-select-trigger.is-compact-sort>svg{position:absolute;inset-inline-end:10px;top:50%;transform:translateY(-50%)}
.blc-select-trigger.is-compact-sort[aria-expanded="true"]>svg{transform:translateY(-50%) rotate(180deg)}

.blc-select-dialog{
  --blc-select-bg:var(--surface,var(--admin-surface,#fff));
  --blc-select-bg-soft:var(--surface-soft,var(--admin-surface-2,#f7f8fc));
  --blc-select-text:var(--text,var(--admin-text,#171b25));
  --blc-select-muted:var(--muted,var(--admin-muted,#6b7588));
  --blc-select-border:var(--border,var(--admin-line,#e2e6ef));
  --blc-select-border-strong:color-mix(in srgb,var(--blc-select-border) 76%,var(--blc-select-text) 24%);
  --blc-select-accent:var(--accent,var(--admin-accent,#6748ee));
  --blc-select-accent-soft:var(--accent-soft,var(--admin-accent-soft,rgba(103,72,238,.1)));
  position:fixed;z-index:2147482000;max-width:none;margin:0;padding:0;border:1px solid var(--blc-select-border-strong);background:var(--blc-select-bg);color:var(--blc-select-text);box-shadow:0 22px 70px rgba(15,23,42,.22);overflow:hidden;
}
.blc-select-dialog::backdrop{background:rgba(8,11,18,.48);backdrop-filter:blur(3px)}
.blc-select-dialog-shell{display:flex;flex-direction:column;min-height:0;max-height:inherit;background:var(--blc-select-bg)}
.blc-select-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 15px 11px;border-bottom:1px solid var(--blc-select-border)}
.blc-select-dialog header>div{min-width:0}.blc-select-dialog header h3{margin:3px 0 0;color:var(--blc-select-text);font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.blc-select-eyebrow{display:block;color:var(--blc-select-accent);font-size:8px;font-weight:900;letter-spacing:.14em;direction:ltr;text-align:start}
.blc-select-close{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;margin:0;padding:0;border:0;border-radius:9px;background:transparent;color:var(--blc-select-muted);font-size:20px;line-height:1;cursor:pointer}
.blc-select-close:hover,.blc-select-close:focus-visible{background:var(--blc-select-bg-soft);color:var(--blc-select-text);outline:2px solid color-mix(in srgb,var(--blc-select-accent) 28%,transparent);outline-offset:1px}
.blc-select-search{position:relative;display:block;margin:10px 12px 6px}.blc-select-search.hidden{display:none!important}
.blc-select-search svg{position:absolute;inset-inline-start:11px;top:50%;width:16px;height:16px;transform:translateY(-50%);fill:none;stroke:var(--blc-select-muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.blc-select-search input{width:100%;min-height:38px;margin:0;padding:0 34px 0 11px;border:1px solid var(--blc-select-border);border-radius:10px;background:var(--blc-select-bg-soft);color:var(--blc-select-text);font:inherit;font-size:11px;outline:0}
html[dir="ltr"] .blc-select-search input{padding:0 11px 0 34px}
.blc-select-search input:focus{border-color:var(--blc-select-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--blc-select-accent) 14%,transparent)}
.blc-select-list{min-height:0;overflow:auto;overscroll-behavior:contain;padding:5px 8px 9px;scrollbar-width:thin}
.blc-select-options,.blc-select-group>div{display:grid;gap:2px}
.blc-select-group+ .blc-select-group,.blc-select-options+ .blc-select-group,.blc-select-group+ .blc-select-options{margin-top:8px;padding-top:8px;border-top:1px solid var(--blc-select-border)}
.blc-select-group h4{margin:2px 7px 5px;color:var(--blc-select-muted);font-size:9px;font-weight:850;letter-spacing:.025em}
.blc-select-option{width:100%;min-height:38px;margin:0;padding:8px 9px;border:0;border-radius:9px;background:transparent;color:var(--blc-select-text);font:inherit;font-size:11px;text-align:start;display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:8px;cursor:pointer}
.blc-select-option:hover,.blc-select-option:focus-visible{background:var(--blc-select-bg-soft);outline:0}
.blc-select-option.selected{background:var(--blc-select-accent-soft);color:var(--blc-select-accent);font-weight:800}
.blc-select-option:disabled{opacity:.42;cursor:not-allowed}.blc-select-option>span{min-width:0;overflow-wrap:anywhere}.blc-select-option>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.blc-select-empty{min-height:105px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:18px;text-align:center}.blc-select-empty strong{font-size:11px}.blc-select-empty small{color:var(--blc-select-muted);font-size:9px}

.blc-select-dialog.is-desktop{max-height:min(430px,calc(100dvh - 16px));border-radius:13px}
.blc-select-dialog.is-desktop .blc-select-dialog-shell{max-height:min(430px,calc(100dvh - 16px))}
.blc-select-dialog.is-desktop header{padding-block:11px 9px}.blc-select-dialog.is-desktop header h3{font-size:12px}.blc-select-dialog.is-desktop .blc-select-eyebrow{display:none}.blc-select-dialog.is-desktop .blc-select-close{width:27px;height:27px;flex-basis:27px;font-size:18px}.blc-select-dialog.is-desktop .blc-select-list{max-height:330px}

@media(max-width:700px){
  .blc-select-trigger{min-height:44px;border-radius:11px;padding-inline:12px}
  .blc-select-dialog.is-mobile{inset:auto 8px calc(8px + env(safe-area-inset-bottom)) 8px;width:auto!important;max-height:min(72dvh,620px);border-radius:20px;margin:0}
  .blc-select-dialog.is-mobile .blc-select-dialog-shell{max-height:min(72dvh,620px)}
  .blc-select-dialog.is-mobile header{padding:15px 16px 12px}.blc-select-dialog.is-mobile header h3{font-size:17px}.blc-select-dialog.is-mobile .blc-select-eyebrow{font-size:8.5px}
  .blc-select-dialog.is-mobile .blc-select-search{margin:11px 12px 7px}.blc-select-dialog.is-mobile .blc-select-search input{min-height:42px;font-size:12px}
  .blc-select-dialog.is-mobile .blc-select-list{padding:5px 10px calc(12px + env(safe-area-inset-bottom));max-height:calc(72dvh - 116px)}
  .blc-select-dialog.is-mobile .blc-select-option{min-height:46px;padding:10px 10px;border-radius:11px;font-size:12px}
  .blc-select-dialog.is-mobile .blc-select-group h4{margin-block:5px 7px;font-size:9.5px}
}

@media(max-width:360px){.blc-select-dialog.is-mobile{inset-inline:6px}.blc-select-dialog.is-mobile header{padding-inline:13px}.blc-select-dialog.is-mobile .blc-select-list{padding-inline:7px}}
@media(prefers-reduced-motion:reduce){.blc-select-trigger,.blc-select-trigger>svg{transition:none}}
