/* Elyra 3PL — warehouse floor: dock-door navy, hi-vis orange for action, label-maker mono for SKUs & tracking */
/* Elyra 3PL — dark commercial theme: near-black surfaces, orange for action */
:root {
  --bg: #08090b; --surface: #111317; --ink: #eceef2; --muted: #8b93a1; --line: #23262d;
  --navy: #0c0d10; --accent: #ff6a1a; --accent-ink: #120700; --soft: #181b21;
  --ok: #5fd39a; --ok-bg: #102a1f; --warn: #f3c065; --warn-bg: #2e2410; --bad: #ff8278; --bad-bg: #321614; --info: #7fb0ff; --info-bg: #13213a;
  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --side-w: 248px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }
a { color: var(--info); }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)); }
h1, h2, h3 { font-family: var(--display); letter-spacing: .01em; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Header */
.top { background: var(--navy); color: #fff; border-bottom: 4px solid var(--accent); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-block: 12px; }
.brand { color: #fff; text-decoration: none; font: 700 1.35rem var(--display); letter-spacing: .12em; display: flex; align-items: center; gap: 10px; }
.brand b { color: var(--accent); }
.brand-mark { height: 30px; width: auto; display: block; }
.mark { width: 22px; height: 22px; background: repeating-linear-gradient(-45deg, var(--accent) 0 5px, transparent 5px 10px); border: 2px solid var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; }
.nav a { color: #c9d3e3; text-decoration: none; padding: 6px 10px; border-radius: 4px; font-weight: 600; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.on { color: #fff; background: rgba(255,255,255,.14); box-shadow: inset 0 -2px 0 var(--accent); }
.who { display: flex; gap: 12px; align-items: center; color: #c9d3e3; font-size: .9rem; }
.who form { margin: 0; }
.linkish { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

main { padding-block: 28px 48px; display: grid; gap: 24px; }
.foot { color: var(--muted); font-size: .85rem; padding-block: 0 32px; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.sub { color: var(--muted); margin: 4px 0 0; }

/* Panels & grids */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: grid; gap: 16px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.stat .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.stat .v { font: 700 2rem/1.1 var(--display); margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .v.money { color: var(--accent); }
.stat .s { color: var(--muted); font-size: .85rem; }

/* Tables */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; white-space: nowrap; }
td.n, th.n { text-align: right; }
tr.total td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
tr.dim td { color: var(--muted); }
tbody tr:hover td { background: var(--soft); }
.mono { font-family: var(--mono); font-size: .88em; }
.low { color: var(--bad); font-weight: 600; }
.empty { color: var(--muted); padding: 16px 0; }

/* Forms */
form.stack { display: grid; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.row > label { flex: 1 1 160px; }
label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; width: 100%; min-width: 0; }
textarea { min-height: 110px; font-family: var(--mono); font-size: .88rem; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input.qty { width: 90px; text-align: right; }
button, .btn { font: 600 .95rem var(--body); background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 6px; padding: 9px 16px; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; }
button.ghost, .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button.danger { background: var(--bad); color: #fff; }
button.small, .btn.small { padding: 5px 10px; font-size: .85rem; }
.inline { display: inline; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
details > summary { cursor: pointer; font-weight: 600; color: var(--info); }

/* Pills & flashes */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; text-transform: capitalize; }
.pill-expected { background: var(--info-bg); color: var(--info); }
.pill-partial { background: var(--warn-bg); color: var(--warn); }
.pill-received { background: var(--ok-bg); color: var(--ok); }
.pill-cancelled, .pill-archived { background: var(--soft); color: var(--muted); }
.pill-active { background: var(--ok-bg); color: var(--ok); }
.flash { padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.err { background: var(--bad-bg); color: var(--bad); }

/* Login */
.login { max-width: 400px; margin: 48px auto; }

@media (max-width: 760px) { .nav { order: 3; flex-basis: 100%; } .who { margin-left: auto; } }
.head form.row > label { flex: 0 0 auto; }
@media (max-width: 600px) { h1 { font-size: 1.6rem; } .panel { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- v2: CRM, orders ---- */
[hidden] { display: none !important; }
.due { color: var(--warn); font-weight: 600; }
.clip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); }
.tabs a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 9px 14px; border-radius: 6px 6px 0 0; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); background: var(--soft); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.count { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .78rem; text-align: center; font-variant-numeric: tabular-nums; }
.tabs a.on .count { background: var(--accent); color: var(--accent-ink); }
.progress { height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; max-width: 220px; }
.progress span { display: block; height: 100%; background: var(--ok); }
ul.check { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
ul.check li { padding-left: 28px; position: relative; color: var(--muted); }
ul.check li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 4px; }
ul.check li.done { color: var(--ink); }
ul.check li.done::before { background: var(--ok); border-color: var(--ok); }
ul.check li.done::after { content: ""; position: absolute; left: 6px; top: 5px; width: 5px; height: 9px; border: solid var(--surface); border-width: 0 2px 2px 0; transform: rotate(45deg); }
ul.notes { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
ul.notes li { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; white-space: pre-wrap; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
dl.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
label.radio { display: flex; flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-weight: 400; font-size: .95rem; }
label.radio input { width: auto; }
fieldset.dest { border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; display: grid; gap: 6px; margin: 0; }
fieldset.dest legend { font-size: .85rem; font-weight: 600; color: var(--muted); padding: 0 4px; }
.pill-st-active { background: var(--ok-bg); color: var(--ok); }
.pill-st-onboarding { background: var(--warn-bg); color: var(--warn); }
.pill-st-lead { background: var(--info-bg); color: var(--info); }
.pill-st-wholesale { background: var(--soft); color: var(--ink); }
.pill-o-submitted { background: var(--info-bg); color: var(--info); }
.pill-o-confirmed { background: var(--warn-bg); color: var(--warn); }
.pill-o-fulfilled { background: var(--ok-bg); color: var(--ok); }
.pill-o-paid { background: rgba(255,106,26,.14); color: var(--accent); }
.pill-o-cancelled { background: var(--soft); color: var(--muted); }
table.catalog tr.gstart td { border-top: 2px solid var(--line); }
table.catalog tr.on td { background: var(--warn-bg); }
table.catalog td.line { font-weight: 600; }
button:disabled { opacity: .45; cursor: not-allowed; }
#order-form { padding-bottom: 90px; }
.orderbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--navy); color: #fff; border-top: 3px solid var(--accent); padding-bottom: env(safe-area-inset-bottom, 0px); }
.orderbar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-block: 10px; }
.orderbar .k { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #b9c4d6; }
.orderbar .v { font: 700 1.15rem var(--display); font-variant-numeric: tabular-nums; }
.orderbar .v.big { font-size: 1.5rem; color: var(--accent); }
.orderbar .sp { flex: 1; }
@media (max-width: 600px) { .hide-sm { display: none; } .orderbar-in { gap: 6px 16px; } #order-form { padding-bottom: 150px; } }

/* ---- v3: rate card & invoices ---- */
.ratecard { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.ratecard fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px 16px; margin: 0; display: grid; gap: 10px; min-width: 0; }
.ratecard legend { font: 600 1rem var(--display); padding: 0 6px; color: var(--ink); }
.tiers { display: grid; gap: 6px; padding-left: 26px; }
.row.tier > label { flex: 1 1 120px; }
table.invoice tr.sec td { font: 600 .8rem var(--body); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--soft); }
table.invoice tr.subtotal td { color: var(--muted); font-weight: 600; }
@media print { .top, .foot, .noprint, .flash { display: none !important; } body { background: #fff; } .panel { border: 0; padding: 0; } }

/* ---- v4: scanning ---- */
.scanbox { font-size: 1.4rem; padding: 14px 16px; border: 2px solid var(--accent); }

/* Vendor picker on the order form */
.vendor-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.vcard { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; background: var(--surface); }
.vcard:hover { border-color: var(--muted); }
.vcard.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.vcard input { width: auto; margin-top: 3px; }
.vcard > span { display: grid; gap: 2px; }
.vcard .vmeta { font-weight: 600; font-size: .92rem; }
/* "COAs available" with a green dot, on vendors that offer COAs */
.vcard .vcoa { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .82rem; font-weight: 600; color: var(--ok); }
.vcard .vcoa i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
td.best { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
a.vcard.vsum { text-decoration: none; color: inherit; }
a.vcard.vsum:hover { border-color: var(--accent); }
.vcard .due { color: var(--bad); font-weight: 600; }
/* Order form: vendor tag only shows when listing selections across vendors */
.vtag { display: none; }
#order-form.only .vtag { display: inline; }
tr.vgroup td { background: var(--soft); font-weight: 600; }
.vcard .vcount { justify-self: start; }

/* ---- vendor orders: in transit ---- */
.pill-o-transit { background: var(--info-bg); color: var(--info); }
/* Client page tabs */
.ctabs { margin: 4px 0 16px; }
.ctab[hidden] { display: none !important; }
/* ---- Operator app shell: left sidebar ---- */
body { -webkit-font-smoothing: antialiased; }
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: .78rem; letter-spacing: .08em; }
.stat .v { font-weight: 700; letter-spacing: -.02em; }
.panel, .stat { border-radius: 12px; background: var(--surface); box-shadow: 0 1px 0 rgba(255,255,255,.02) inset; }
input, select, textarea { background: #0d0f12; border-color: #2a2e36; border-radius: 8px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid rgba(255,106,26,.25); outline-offset: 0; }
button, .btn { border-radius: 8px; font-weight: 600; }
button:hover, .btn:hover { filter: brightness(1.08); }
button.ghost, .btn.ghost { background: #15181d; border-color: #2a2e36; }
button.ghost:hover, .btn.ghost:hover { background: #1c2027; filter: none; }
tbody tr:hover td { background: #15181d; }
th { color: #7d8594; }
.top { background: #0c0d10; border-bottom: 1px solid var(--line); }
.tabs { border-bottom: 1px solid var(--line); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.app-side { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: #0c0d10; border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 40; }
.side-top { padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.side .brand { font-size: 1.05rem; font-weight: 700; letter-spacing: .14em; font-family: var(--body); }
.side .brand-mark { height: 22px; }
.snav { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.snav .si, .snav summary { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px; color: #a8afbc; text-decoration: none; font-weight: 500; font-size: .94rem; cursor: pointer; list-style: none; user-select: none; }
.snav summary::-webkit-details-marker { display: none; }
.snav .si:hover, .snav summary:hover { background: #16191e; color: #fff; }
.snav .si.on { background: #1b1e24; color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.snav summary.on { color: #fff; }
.snav .ico { width: 18px; height: 18px; flex: none; opacity: .9; }
.snav .si.on .ico, .snav summary.on .ico { color: var(--accent); opacity: 1; }
.snav .chev { width: 14px; height: 14px; margin-left: auto; transition: transform .15s; opacity: .6; }
.snav details[open] > summary .chev { transform: rotate(90deg); }
.sg-items { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px 21px; padding-left: 12px; border-left: 1px solid #262a31; }
.sg-items a { padding: 7px 10px; border-radius: 6px; color: #9aa1ad; text-decoration: none; font-size: .9rem; }
.sg-items a:hover { background: #16191e; color: #fff; }
.sg-items a.on { color: #fff; background: #1b1e24; font-weight: 600; }
.side-foot { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; flex: none; }
.side-user { display: grid; line-height: 1.2; min-width: 0; flex: 1; }
.side-user b { font-size: .88rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user span { font-size: .75rem; color: var(--muted); }
.side-foot form { margin: 0; }
.side-foot .linkish { color: var(--muted); font-size: .8rem; text-decoration: none; }
.side-foot .linkish:hover { color: #fff; }
.appmain { margin-left: var(--side-w); min-width: 0; }
.appmain > main.wrap { max-width: 1320px; padding-inline: 32px; padding-top: 28px; }
.appmain > .foot { padding-inline: 32px; max-width: 1320px; }
.mbar { display: none; }
.scrim { display: none; }
.navtoggle { background: #15181d; color: #fff; border: 1px solid #2a2e36; border-radius: 8px; padding: 7px 12px; font-weight: 600; cursor: pointer; }
@media (max-width: 900px) {
  .side { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.6); }
  .side-open .side { transform: none; }
  .side-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 30; }
  .appmain { margin-left: 0; }
  .mbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #0c0d10; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .mbar .brand { font-size: 1rem; font-weight: 700; letter-spacing: .14em; font-family: var(--body); }
  .mbar .brand-mark { height: 20px; }
  .appmain > main.wrap, .appmain > .foot { padding-inline: 16px; }
}
@media (min-width: 901px) { .app-side .orderbar { left: var(--side-w); } }
@media print { .side, .mbar, .scrim { display: none !important; } .appmain { margin-left: 0 !important; } }
h1 a, h2 a { color: inherit; text-decoration: none; } h1 a:hover, h2 a:hover { color: var(--accent); }
a { text-underline-offset: 2px; }

/* ---- Accessibility & small screens ---- */
/* Skip link: off-screen until focused. */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
/* Text only for screen readers (e.g. names of action columns). */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Clear keyboard focus on everything focusable (the softer input ring stays for mouse focus). */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.snav .si:focus-visible, .snav summary:focus-visible, .sg-items a:focus-visible, .tabs a:focus-visible, .nav a:focus-visible { outline-offset: -2px; }
.tbl-wrap:focus-visible { outline-offset: 0; }
.tbl-wrap { position: relative; } /* keeps .visually-hidden header text inside the scroll box */
::placeholder { color: #7d8594; opacity: 1; }
/* Contrast: white on the light red was 2.4:1; dark text on it is 7:1. */
button.danger { color: #1a0503; }
/* Grids and panels shrink to the screen; wide tables scroll inside .tbl-wrap instead of widening the page. */
main { grid-template-columns: minmax(0, 1fr); }
main > *, .panel > *, .grid2 > * { min-width: 0; }
.grid2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.stats { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
@media (max-width: 600px) {
  .row > label { flex-basis: 100%; }
  .head form.row > label { flex: 1 1 auto; }
}
/* Closed mobile sidebar: hidden from keyboard and screen readers too, not just moved off-screen. */
@media (max-width: 900px) {
  .side { visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
  .side-open .side { visibility: visible; transition: transform .2s ease; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---- Statistics (managers): dials and charts. Series colors validated for this dark surface (CVD-safe adjacent order). */
:root { --s1: #3987e5; --s2: #d95926; --s3: #199e70; --grid: #22252b; --axis: #3a3e46; }
.stats-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 4px 0 18px; }
.stats-bar .tabs { border-bottom: 0; }
.stats-bar form.row { gap: 6px; flex-wrap: nowrap; align-items: center; }
.stats-bar form.row input { width: auto; }
.stats-bar .actions { align-items: center; }
.delta { font-weight: 600; white-space: nowrap; }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); } .delta.flat { color: var(--muted); }
.dials { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.dial { margin: 0; text-align: center; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 12px 12px 14px; }
.dial figcaption { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.dial svg { width: 100%; max-width: 240px; height: auto; display: block; margin: 6px auto 0; }
.dial-track { fill: none; stroke: var(--line); stroke-width: 14; stroke-linecap: round; }
.dial-fill { fill: none; stroke-width: 14; stroke-linecap: butt; }
.dial-mid { stroke: var(--muted); stroke-width: 2; }
.dial-marker { fill: var(--ink); stroke: var(--soft); stroke-width: 3; }
.dial-value { fill: var(--ink); font: 700 22px var(--display); }
.dial-end { fill: var(--muted); font-size: 10px; }
.dial-sub { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.key { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.key .sw, .tip .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.key .ln { display: inline-block; width: 16px; height: 2px; border-radius: 1px; }
.chart-wrap { position: relative; overflow-x: auto; }
.chart-wrap .chart { min-width: 420px; }
.chart-wrap .legend { margin: 6px 0 4px; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--axis); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hit.on { fill: rgba(255, 255, 255, .05); }
.chart-wrap .tip { position: absolute; z-index: 5; pointer-events: none; background: var(--navy); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: .82rem; color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.45); min-width: 170px; font-variant-numeric: tabular-nums; }
.chart-wrap .tip b { display: block; margin-bottom: 4px; }
@media (forced-colors: active) { .dial-fill, .chart rect, .chart path { forced-color-adjust: none; } }
/* ---- Daily checklist (operator Today page) ---- */
.checklist .cl-group { display: grid; gap: 8px; }
.checklist .cl-list { list-style: none; margin: 0; padding: 0; }
.checklist .cl-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checklist .cl-item:last-child { border-bottom: 0; }
.checklist .cl-form { margin: 0; display: flex; gap: 6px; align-items: center; }
.checklist .cl-form input[type="checkbox"] { width: 22px; height: 22px; margin: 2px 0 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
.checklist .cl-title { display: inline; font-size: 1rem; font-weight: 500; color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
.checklist .cl-item.hi .cl-title { font-weight: 700; }
.checklist .cl-body .sub { font-size: .88rem; overflow-wrap: anywhere; }
.checklist .cl-item.done .cl-title { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.checklist .cl-done > summary { margin-bottom: 4px; }
.pill-high { background: var(--bad-bg); color: var(--bad); }
@media (max-width: 480px) { .checklist .cl-item { grid-template-columns: auto minmax(0, 1fr); } .checklist .cl-item > .btn { grid-column: 2; justify-self: start; } }

/* ---- Client store connection (/portal/store) */
.flush { margin: 0; }
main .linkish { color: var(--info); font-weight: inherit; white-space: normal; text-underline-offset: 2px; }
main .linkish:hover { filter: none; color: var(--ink); }
.keybox { display: grid; gap: 8px; }
.keybox p { margin: 0; }
.keybox .keynote { font-weight: 400; color: var(--ink); }
.keybox:focus { outline: 2px solid var(--ok); outline-offset: 2px; }
.keyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.keytext { word-break: break-all; user-select: all; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; color: var(--ink); }
pre.codeblock { white-space: pre-wrap; font-size: .82rem; background: var(--soft); padding: 10px; border-radius: 6px; margin: 0; overflow-x: auto; }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-left: 3px solid var(--accent); }
.notice p { margin: 0; }

/* v32 portal ordering */
/* Product-first order page: a list of products, each opening its vendor options. */
#pc-form { padding-bottom: 90px; }
.pc-ctl { margin-bottom: 4px; }
.pc-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-h { margin-top: 6px; }
.pc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pc-item { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.pc-item.open { border-color: #3a3e46; }
.pc-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 14px; }
.pc-head:hover { background: #15181d; border-radius: 10px; }
/* The whole row opens the product; the button's hit area covers it. */
.pc-toggle { background: none; color: var(--ink); border: 0; padding: 0 22px 0 0; font: 600 1rem var(--body); text-align: left; white-space: normal; position: static; }
.pc-toggle::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.pc-toggle::before { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.pc-toggle[aria-expanded="true"]::before { transform: translateY(-30%) rotate(-135deg); }
.pc-toggle:hover { filter: none; }
.pc-toggle:focus-visible { outline: none; }
.pc-toggle:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
.pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-right: 26px; font-size: .9rem; }
.pc-meta .sub { margin: 0; }
.pc-meta .pill, .pc-tags .pill { text-transform: none; }
.pc-vendors { list-style: none; margin: 0; padding: 0 14px 12px; display: grid; gap: 8px; }
.pc-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #0d0f12; }
.pc-opt.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pc-vinfo .sub { margin: 0; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
.pc-tags:empty { display: none; }
.pc-muted { color: var(--muted); font-size: .8rem; }
.pc-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc-inputs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; justify-content: flex-end; }
.pc-kits { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.pc-kits input.qty { width: 80px; }
.pc-coa { font-size: .85rem; white-space: nowrap; }
@media (max-width: 600px) {
  #pc-form { padding-bottom: 130px; }
  .pc-opt { grid-template-columns: minmax(0, 1fr) auto; }
  .pc-inputs { grid-column: 1 / -1; justify-content: flex-start; }
  .orderbar .v.big { font-size: 1.25rem; }
}
/* Checkout */
#co-form { gap: 24px; }
.co-table tr.co-sub td { color: var(--muted); border-bottom-style: dashed; }
.co-actions { align-items: center; }
/* Operator: split distribution note on a store order */
.route-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.route-note .pill { text-transform: none; }
/* COAs by vendor */
.vcard .coa-ordered { justify-self: start; text-transform: none; margin-top: 2px; }
.show-sm { display: none; }
.co-table tr.vgroup td { white-space: normal; }
@media (max-width: 600px) { .co-table .show-sm { display: block; font-size: .85rem; } .co-table td, .co-table th { padding-inline: 6px; } }
/* Client search pickers (public/client-search.js) */
.csearch { position: relative; display: block; min-width: 260px; }
.csearch input { width: 100%; }
select.csearch-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; pointer-events: none; }
.csearch-list { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px); max-height: 320px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid #2a2e36; border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.45); font-weight: 400; }
.csearch-list li { display: grid; gap: 1px; padding: 7px 10px; border-radius: 6px; cursor: pointer; color: var(--ink); }
.csearch-list li b { font-weight: 600; font-size: .92rem; }
.csearch-list li small { color: var(--muted); font-size: .8rem; }
.csearch-list li.on, .csearch-list li:hover { background: var(--soft); }
.csearch-list li[aria-selected="true"] b { color: var(--accent); }
.csearch-list li.csearch-none { cursor: default; color: var(--muted); }
/* Cart (docs/cart-spec.md): order page search + autosave, cart page, payment notice, Store orders search */
.pc-search { display: grid; gap: 4px; }
.pc-search label { font-weight: 600; }
.pc-search input { font-size: 1.05rem; padding-block: 10px; }
.pc-search .sub { margin: 0; }
.pc-ctl { align-items: center; justify-content: space-between; }
.pc-ctl:not(:has(> :not([hidden]))) { display: none; }
.pc-count { margin: 0; color: var(--muted); font-size: .9rem; }
.pc-count b { color: var(--ink); }
.pc-saved { font-size: .85rem; color: #b9c4d6; min-width: 0; }
.pc-saved:empty { display: none; }
.pc-saved.bad { color: var(--bad); font-weight: 600; }
.pc-cartn .v { color: #fff; }
.nav-cart-n { font-variant-numeric: tabular-nums; }
.pay-note { border: 1px solid var(--warn); border-left-width: 4px; background: var(--warn-bg); color: var(--ink); border-radius: 8px; padding: 14px 16px; display: grid; gap: 8px; }
.pay-note p { margin: 0; }
.pay-note-h b { color: var(--warn); }
.pay-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.pay-panel { border-color: var(--warn); }
.flash.warn { background: var(--warn-bg); color: var(--warn); }
.cart-table .cart-kits input.qty { width: 80px; }
.cart-table .cart-name .cart-size { margin-left: 4px; }
.cart-table td { vertical-align: middle; }
.cart-table .cart-rm { text-align: right; white-space: nowrap; }
.cart-sum { margin: 0; display: grid; gap: 4px; justify-self: end; min-width: min(320px, 100%); }
.cart-sum > div { display: flex; justify-content: space-between; gap: 24px; }
.cart-sum dt { color: var(--muted); }
.cart-sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.cart-sum .cart-sum-total { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 700; }
.cart-sum .cart-sum-total dt { color: var(--ink); }
.cart-actions { align-items: center; }
#os_fields { display: grid; gap: 12px; }
.os-search input { min-width: 220px; }
.os-match { margin: 0 0 12px; color: var(--muted); }
@media (max-width: 600px) {
  /* Cart lines become cards: name on top, then kits / COA / total / remove. */
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody { display: block; }
  .cart-table tr.vgroup, .cart-table tr.vgroup td { display: block; }
  .cart-table tr.cart-line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
  .cart-table tr.cart-line td { border: 0; padding: 0; }
  .cart-table .cart-name { grid-column: 1 / -1; }
  .cart-table .cart-name .show-sm { display: block; }
  .cart-table .cart-coa:not(:has(label)) { display: none; }
  .cart-table .cart-total { text-align: right; grid-column: 3; }
  .cart-table .cart-rm { grid-column: 1 / -1; text-align: left; }
  .cart-table .pc-kits .show-sm { display: inline; }
  .cart-sum { justify-self: stretch; }
  .os-search input { min-width: 0; }
}

/* Order age: open orders over a day old need a check-in */
.pill-checkin { background: var(--warn-bg); color: var(--warn); }
.age-old { color: var(--warn); font-weight: 600; white-space: nowrap; }
.age-new { white-space: nowrap; }
tr.checkin td { background: var(--warn-bg); }
.checkin-group h2 .count { font-size: .8em; }

/* Reorder forecast (/portal/forecast, /op/forecast) */
.fc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fc-head .sub { max-width: 640px; }
.fc-horizon label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.fc-horizon select { min-width: 120px; }

/* Summary: what to do, first */
.fc-hero { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--ok); border-radius: 12px; padding: 22px 24px; }
.fc-hero-urgent { border-left-color: var(--bad); }
.fc-hero-soon { border-left-color: var(--warn); }
.fc-hero-main { flex: 1 1 360px; min-width: 0; display: grid; gap: 6px; }
.fc-hero h2 { font-size: 1.6rem; font-weight: 700; }
.fc-hero p { margin: 0; }
.fc-hero-sub { font-size: 1.1rem; }
.fc-hero-urgent .fc-hero-sub b { color: var(--bad); }
.fc-hero-soon .fc-hero-sub b { color: var(--warn); }
.fc-hero-next { color: var(--muted); }
.fc-hero-next b { color: var(--ink); }
.fc-hero-next .fc-timer { font-size: 1rem; color: var(--ink); }
.fc-hero-next .fc-timer.low { color: var(--bad); }
.fc-hero-save { color: var(--ok); font-size: .95rem; }
.fc-hero-cta { flex: 0 1 300px; display: grid; gap: 4px; justify-items: start; background: var(--soft); border-radius: 10px; padding: 16px 18px; }
.fc-hero-k { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.fc-hero-total { font: 700 2rem/1.1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.fc-hero-cta .sub { margin: 0; font-size: .88rem; }
.fc-go { margin-top: 10px; padding: 12px 22px; font-size: 1rem; width: 100%; }
.fc-hero-note { font-size: .8rem !important; }

/* Table */
.fc-panel { padding-top: 8px; }
.fc-table td { vertical-align: top; }
.fc-table thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.fc-table b { font-variant-numeric: tabular-nums; }
.fc-all-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fc-group th { padding: 22px 10px 8px; text-transform: none; letter-spacing: 0; white-space: normal; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); font-weight: 500; }
.fc-g-t { font: 700 1.05rem var(--display); color: var(--ink); }
.fc-g-n { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: var(--soft); color: var(--ink); text-align: center; font-weight: 700; font-size: .8rem; margin-right: 6px; }
.fc-g-now .fc-g-t { color: var(--bad); }
.fc-g-now .fc-g-n { background: var(--bad-bg); color: var(--bad); }
.fc-g-soon .fc-g-t { color: var(--warn); }
.fc-g-soon .fc-g-n { background: var(--warn-bg); color: var(--warn); }
.fc-g-ok .fc-g-t { color: var(--ok); }
.fc-g-ok .fc-g-n { background: var(--ok-bg); color: var(--ok); }
.fc-c-pick { width: 34px; }
.fc-name { display: block; font-weight: 700; color: var(--ink); cursor: pointer; line-height: 1.3; }
.fc-c-prod { min-width: 150px; }
.fc-c-prod .sub { font-size: .8rem; }
.fc-pillrow { margin-top: 6px; }
.fc-timer { font: 700 1.05rem/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-timer.low { color: var(--bad); }
.fc-c-out .sub, .fc-c-stock .sub, .fc-c-sell .sub, .fc-c-need .sub { font-size: .82rem; }
.fc-inc { color: var(--info) !important; }
.fc-spark { fill: var(--accent); margin-top: 4px; }
.fc-spark .proj { fill: var(--muted); opacity: .6; }
.fc-spark .split { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 2; }
.fc-trend { font-size: .75rem; }
.fc-trend.up { color: var(--ok); }
.fc-trend.down { color: var(--warn); }
.fc-grow { color: var(--ok); }
.fc-c-sell .sub { white-space: nowrap; }
.fc-slow { color: var(--warn); }
.fc-vendor { min-width: 275px; max-width: 310px; }
.fc-vendor select { width: 100%; max-width: 320px; font-size: .9rem; }
.fc-vname { font-weight: 600; }
.fc-opt { font-size: .8rem; margin-top: 4px; }
.fc-next { margin-top: 8px; font-size: .9rem; line-height: 1.4; }
.fc-next b { color: var(--ink); }
.fc-next.urgent b { color: var(--bad); }
.fc-why { margin-top: 6px; font-size: .82rem; color: var(--muted); }
.fc-why summary { font-weight: 600; font-size: .82rem; }
.fc-why ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.fc-kits { width: 80px; text-align: right; }
.fc-st { text-transform: none; }
.fc-out, .fc-late { background: var(--bad-bg); color: var(--bad); }
.fc-now { background: var(--warn-bg); color: var(--warn); }
.fc-soon { background: var(--info-bg); color: var(--info); }
.fc-ok { background: var(--ok-bg); color: var(--ok); }
.fc-idle { background: var(--soft); color: var(--muted); }
tr.fc-r-idle td { color: var(--muted); }
tr.fc-off td { opacity: .55; }
tr.fc-off td:first-child { opacity: 1; }
.fc-pick, #fc-all { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }

/* Totals + button: stays in view at the bottom of the screen while scrolling the list */
.fc-bar { position: sticky; bottom: 0; z-index: 2; background: var(--surface); border-top: 1px solid var(--line); margin: 12px -20px -20px; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; border-radius: 0 0 12px 12px; box-shadow: 0 -8px 16px rgba(0,0,0,.35); }
.fc-sum { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; order: 2; }
.fc-act { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; order: 1; }
.fc-act .sub { margin: 0; font-size: .85rem; }
.fc-big { font: 700 1.3rem/1 var(--display); color: var(--accent); }

/* How this works */
.fc-how { display: block; }
.fc-how summary { font-size: 1rem; }
.fc-gloss { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 28px; margin: 16px 0 12px; }
.fc-gloss dt { font-weight: 700; }
.fc-gloss dd { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }

/* Phones: each product becomes a card */
@media (max-width: 760px) {
  .fc-hero { padding: 18px; }
  .fc-hero h2 { font-size: 1.35rem; }
  .fc-hero-sub { font-size: 1rem; }
  .fc-hero-cta { flex: 1 1 100%; }
  .fc-wrap { overflow: visible; margin: 0; }
  .fc-table, .fc-table tbody, .fc-table thead { display: block; }
  .fc-table thead tr { display: flex; align-items: center; }
  .fc-table thead th { display: none; position: static; }
  .fc-table thead th.fc-c-pick { display: flex; align-items: center; gap: 10px; width: auto; border: 0; padding: 4px 6px; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--ink); }
  .fc-all-l { position: static; width: auto; height: auto; clip: auto; overflow: visible; cursor: pointer; }
  .fc-group, .fc-group th { display: block; }
  .fc-group th { padding: 18px 2px 6px; border: 0; }
  .fc-g-note { display: block; font-size: .85rem; margin-top: 2px; }
  .fc-table tr.fc-row { display: grid; grid-template-columns: 34px 1fr 1fr; grid-template-areas: "pick prod prod" "pick out out" ". stock sell" ". need need" ". vendor vendor" ". kits kits"; gap: 10px 12px; padding: 14px 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
  .fc-table:not(:has(.fc-c-pick)) tr.fc-row { grid-template-columns: 1fr 1fr; grid-template-areas: "prod prod" "out out" "stock sell" "need need" "vendor vendor" "kits kits"; }
  .fc-table tr.fc-row td { display: block; border: 0; padding: 0; text-align: left; min-width: 0; max-width: none; }
  .fc-table td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
  .fc-c-pick { grid-area: pick; padding-top: 2px !important; }
  .fc-c-prod { grid-area: prod; }
  .fc-name { font-size: 1.05rem; }
  .fc-c-out { grid-area: out; background: var(--surface); border-radius: 8px; padding: 10px 12px !important; }
  .fc-c-out .fc-timer { font-size: 1.4rem; }
  .fc-c-stock { grid-area: stock; }
  .fc-c-sell { grid-area: sell; }
  .fc-c-need { grid-area: need; }
  .fc-c-vendor { grid-area: vendor; }
  .fc-c-kits { grid-area: kits; display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  .fc-c-kits::before { flex-basis: 100%; }
  .fc-c-kits .sub { margin: 0; }
  .fc-kits { width: 110px; text-align: left; font-size: 1rem; }
  .fc-vendor select { max-width: none; font-size: 1rem; }
  tr.fc-off { border-style: dashed !important; }
  .fc-bar { margin: 12px -16px -16px; padding: 12px 16px; }
  .fc-sum { order: 1; width: 100%; justify-content: space-between; font-size: .9rem; gap: 4px 14px; }
  .fc-tot { width: 100%; display: flex; justify-content: space-between; align-items: baseline; }
  .fc-act { order: 2; width: 100%; }
  .fc-act button { width: 100%; padding: 12px; font-size: 1rem; }
}
@media (max-width: 760px) {
  /* Keep the pinned totals bar short on phones: total + button, with the breakdown on one small line */
  .fc-bar { padding: 8px 12px; gap: 6px; }
  .fc-sum { font-size: .8rem; gap: 2px 10px; }
  .fc-sum .sub, .fc-act .sub { display: none; }
  .fc-act button { padding: 10px; }
}
.fc-1day { display: flex; gap: 10px; align-items: flex-start; flex-basis: 100%; order: 0; padding: 10px 12px; border: 1px solid var(--warn); border-radius: 8px; background: var(--warn-bg); color: var(--ink); font-size: .9rem; cursor: pointer; }
.fc-1day input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 1px; }
.fc-hidden { margin: 0 0 12px; }
.dest-fixed { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); margin: 12px 0; }
@media (max-width: 760px) { .fc-1day { font-size: .8rem; padding: 6px 8px; } }
tr.row-warn td { background: var(--warn-bg); }
.fc-arriving ul { margin: 8px 0 0; padding-left: 18px; } .fc-arriving li { margin: 4px 0; }
.fc-own-note { margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--muted); font-size: .9rem; }
/* Lost orders (operator only) */
.pill-lost { background: var(--soft); color: var(--muted); border: 1px dashed var(--muted); }
.lost-banner { border-left: 4px solid var(--muted); }
.lost-form summary { cursor: pointer; color: var(--muted); }

/* ---- Client portal: Support */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; align-items: start; }
.support-lines { margin: 14px 0 16px; display: grid; gap: 10px; }
.support-lines div { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.support-lines dt { width: 56px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.support-lines dd { margin: 0; font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 420px) { .support-lines dd { font-size: .98rem; } }

/* Clients page search */
.client-find { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 14px; }
.client-find input[type=search] { flex: 1 1 320px; max-width: 560px; }
