/* ════════════════════════════════════════════════════════════════
   Tuesday2 — custom-controls.css (M37). FAITHFUL PORT of the original Tuesday globals.css
   themed Select (.t-sel/.sel-*) + Calendar/DateField (.cal*/.datefield/.date-btn) rules —
   values transcribed VERBATIM from C:/WebDesign/Tuesday/src/app/globals.css (lines 356-370,
   443-457). Engineering-owned infra CSS for window.Select + window.DateField (Q01=Z). The
   popovers are portaled to document.body + positioned via inline top/left, so .sel-pop/.cal-pop
   are position:fixed here (the original used absolute inside .t-sel/.datefield; fixed is required
   for the body portal and is visually identical). NOT new visual design.
   ════════════════════════════════════════════════════════════════ */

/* ── Themed Select (port of globals.css .t-sel/.sel-*) ── */
.t-sel { position: relative; display: inline-block; width: 100%; }
.sel-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; border: 1.5px solid var(--ink); border-radius: var(--r-md); background: var(--paper); color: var(--ink); font-family: var(--font-mono); font-size: 11px; padding: 8px 10px; cursor: pointer; transition: background .1s; }
.sel-btn:hover { background: var(--paper-2); }
.sel-btn[aria-expanded="true"] { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.t-sel.t-sel-sm .sel-btn { padding: 0 8px; height: 34px; }
.sel-val { display: flex; align-items: center; gap: 7px; min-width: 0; }
.sel-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-prefix { color: var(--muted); }
.sel-pop { position: fixed; z-index: 340; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-dialog); padding: 5px; max-height: 280px; overflow: auto; min-width: 168px; }
.sel-opt { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 9px; border-radius: var(--r-sm); cursor: pointer; font-size: 12px; color: var(--ink); }
.sel-opt:hover { background: var(--paper-2); }
.sel-opt.sel { background: var(--orange-soft); }
.sel-opt:disabled { opacity: .5; cursor: default; }
.sel-opt-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-opt-tag { font-family: var(--font-mono); font-size: 9px; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1px 6px; }
/* the compact currency select inside a money input keeps its intrinsic width (orig .money .t-sel) */
.md-money .t-sel { width: auto; }
.md-money .sel-btn { border: none; background: none; padding: 0 4px; font-size: 11px; }

/* ── Calendar + DateField (port of globals.css .datefield/.date-btn/.cal*) ── */
.datefield { position: relative; }
.date-btn { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); border-radius: var(--r-md); background: var(--paper); font-family: var(--font-mono); font-size: 11px; color: var(--ink); padding: 8px 12px; cursor: pointer; }
.date-btn:hover { background: var(--paper-2); }
.cal-pop { position: fixed; z-index: 340; }
.cal { width: 250px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-dialog); padding: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.cal-nav { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-sm); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.cal-nav:hover { background: var(--paper-2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-day { aspect-ratio: 1; border: 0; background: none; border-radius: var(--r-sm); font-family: var(--font-mono); font-size: 11px; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cal-day:hover { background: var(--paper-2); }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--line); }
.cal-day.sel { background: var(--orange); color: #fff; font-weight: 700; }

/* ── carrier logo image sizing (M37 P01 window.CarrierLogo) ── */
.carrier-logo { object-fit: contain; display: inline-block; }
