/* The whole look. Build screens from these classes; add nothing inline.

   House rules:
   - one staff typeface (Inter); weight and color do the work, not decoration
   - panels with a hairline border, no shadows, no gradients
   - status is a coloured word with a small dot, never a filled badge
   - one accent colour (the brand's), used for "this is live": the current
     menu item, a piece that is ready, an unread row
   - thin line icons only; no emoji
   --ink and --accent come from the brand file and are set by app.js. */
@font-face { font-family: "Manrope"; src: url(/fonts/manrope-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 200 800; font-display: swap; }
:root {
  --ink: #14293E; --accent: #c08a22;
  --bg: #f4f5f6; --panel: #ffffff; --panel-2: #f6f7f8; --line: rgba(16, 24, 32, .10); --line-2: rgba(16, 24, 32, .20);
  --hi: #10181f; --text: #2a343c; --soft: #5f6b74; --faint: #8b959c;
  --solid: var(--ink); --on-solid: #fff;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
:root, .staff-app [data-theme="light"] {
  --ok: #1c7a53; --warn: #9a6200; --bad: #c0362c; --info: #2c63a8;
  --bad-bg: #fbeceb; --warn-bg: #fbf3e2;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0f1518; --panel: #151c20; --panel-2: #1a2327; --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .17);
  --hi: #fbfcfd; --text: #d3d9dc; --soft: #98a3a8; --faint: #6a767b;
  --ok: #86cfae; --warn: #f0b54f; --bad: #ff8273; --info: #8ab8f0;
  --bad-bg: rgba(255, 130, 115, .10); --warn-bg: rgba(240, 181, 79, .10);
  --solid: #fbfcfd; --on-solid: #0f1518;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 450 15.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--hi); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2 { color: var(--hi); margin: 0; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(24px, 3vw, 31px); line-height: 1.25; }
h2 { font-size: 13px; font-weight: 650; letter-spacing: .01em; color: var(--soft); margin-bottom: 10px; }
p { margin: 0 0 8px; }
strong, b { color: var(--hi); font-weight: 650; }
.muted, .ago, .hint { color: var(--soft); } .ago, .hint { font-size: 13px; font-weight: 450; }
.num, .ago, .prog { font-variant-numeric: tabular-nums; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; } .pad { padding: 0 2px 6px; max-width: 46em; }
.boot, .empty { color: var(--faint); padding: 10px 0; margin: 0; font-size: 14.5px; }
[hidden] { display: none !important; }
svg.i { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* The page heading: the point in full colour, the rest in grey. */
.say { color: var(--soft); font-weight: 600; max-width: 26em; } .say b { color: var(--hi); font-weight: 700; }

/* ---- top bar ---- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; height: 58px; padding: 0 22px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--hi); text-decoration: none; font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap; flex: none; }
.mark { flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; letter-spacing: 0; box-shadow: inset 0 -2px 0 var(--accent); }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: clip; overflow-y: visible; align-self: stretch; }
.nav a[hidden] { display: none; }
/* What does not fit goes under "More" (fitNav in app.js). */
.nav-more { position: relative; display: flex; align-items: center; flex: none; margin-left: auto; }
.nav-more summary { list-style: none; cursor: pointer; color: var(--soft); font-size: 14.5px; font-weight: 550; padding: 0 10px; height: 100%; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-more summary:hover, .nav-more[open] summary { color: var(--hi); }
.nav-more.has-count summary::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.nav-more-list { position: absolute; right: 0; top: calc(100% - 4px); z-index: 30; min-width: 210px; display: grid; padding: 6px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 18px 44px rgba(0, 0, 0, .16); }
.nav .nav-more-list a { padding: 10px 12px; border-radius: 8px; justify-content: space-between; flex: none; font-size: 14.5px; }
.nav .nav-more-list a:hover { background: var(--panel-2); }
.nav .nav-more-list a.on::after { display: none; }
.nav a { color: var(--soft); font-size: 14.5px; font-weight: 550; padding: 0 10px; white-space: nowrap; text-decoration: none; display: flex; align-items: center; position: relative; }
.nav a:hover { color: var(--hi); }
.nav a.on { color: var(--hi); } .nav a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.top-right { display: flex; align-items: center; gap: 6px; flex: none; }
.iconbtn { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 9px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--soft); font: 550 14.5px var(--font); cursor: pointer; text-decoration: none; }
.iconbtn:hover { color: var(--hi); border-color: var(--line); }
.badge { position: absolute; top: 1px; right: 0; background: var(--accent); color: #fff; border-radius: 9px; font-size: 10.5px; font-weight: 800; line-height: 16px; padding: 0 4.5px; min-width: 16px; text-align: center; }

main { max-width: 1120px; margin: 0 auto; padding: 30px 22px 96px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .sub { color: var(--soft); font-size: 16px; margin: 4px 0 0; } .contact { margin: 6px 0 0; font-size: 14.5px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.foot-link { text-align: center; margin-top: 4px; }

/* ---- panels and rows ---- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
details.card summary { cursor: pointer; font-size: 13px; font-weight: 650; color: var(--soft); }
details.card[open] summary { margin-bottom: 8px; }
.row { display: flex; gap: 14px; align-items: center; padding: 11px 0; border: 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; width: 100%; text-align: left; background: none; font: inherit; }
.card > .row:first-of-type, h2 + .row { border-top: 0; padding-top: 4px; }
.card > .row:last-child { padding-bottom: 2px; }
a.row:hover strong, .row.as-button:hover strong { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.row.as-button { cursor: pointer; }
.row-main { flex: 1; min-width: 0; } .row-side { flex: none; text-align: right; display: flex; flex-direction: column; gap: 1px; align-items: flex-end; }
.row-side.actions { gap: 6px; }
.row-top { display: flex; gap: 6px 12px; align-items: baseline; flex-wrap: wrap; }
.row-sub { color: var(--soft); font-size: 14px; overflow-wrap: anywhere; }
.row-with { font-size: 14px; color: var(--text); margin-top: 1px; } .row-with::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }
.row.unread .row-main { color: var(--hi); font-weight: 600; } .row.unread .row-main::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 9px; vertical-align: 1px; }
.row.faded { opacity: .5; }
.prog { font-size: 13px; font-weight: 650; color: var(--soft); }
.alert-line { color: var(--bad); font-weight: 600; font-size: 14px; margin-top: 4px; }
.note-line { font-size: 14px; color: var(--soft); margin-top: 3px; }

/* Status: a word and a dot. Kinds: a quiet label. */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--soft); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip[class*=" k-"] { color: var(--faint); font-weight: 600; min-width: 4.2em; } .chip[class*=" k-"]::before { display: none; }
.chip.bad { color: var(--bad); }
.chip.ok, .chip.s-done, .chip.a-accepted, .chip.p-received, .chip.e-customer_note { color: var(--ok); }
.chip.open, .chip.s-ready, .chip.p-needed, .chip.a-pending, .chip.e-office_note { color: var(--warn); }
.chip.s-doing, .chip.p-ordered { color: var(--info); }
.chip.a-declined, .chip.a-call { color: var(--bad); }
.chip.mute::before, .chip.s-waiting::before, .chip.s-skipped::before { background: none; border: 1.5px solid currentColor; }

/* ---- buttons and inputs ---- */
.btn { font: 600 14.5px var(--font); height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); color: var(--hi); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.btn:hover { border-color: var(--soft); }
.btn.primary { background: var(--solid); border-color: var(--solid); color: var(--on-solid); } .btn.primary:hover { opacity: .9; }
.btn.danger { color: var(--bad); } .btn.ghost { border-color: transparent; background: none; color: var(--soft); } .btn.ghost:hover { color: var(--hi); }
.btn.big { height: 44px; padding: 0 20px; font-size: 15.5px; border-radius: 11px; } .btn.small { height: 28px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.btn:disabled { opacity: .45; cursor: default; }
.link { background: none; border: 0; padding: 0 2px; color: var(--soft); font: inherit; font-weight: 550; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; } .link:hover { color: var(--hi); } .link.small { font-size: 13px; }
input[type=text], input[type=search], input[type=tel], input[type=email], input[type=password], input[type=number], input:not([type]), select, textarea {
  font: 450 15.5px var(--font); padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); color: var(--hi); width: 100%; min-width: 0; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
textarea { resize: vertical; line-height: 1.5; }
.field { display: block; margin-bottom: 13px; } .lbl { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 5px; color: var(--text); } .hint { display: block; margin-top: 4px; }
.checks { display: flex; gap: 8px 20px; flex-wrap: wrap; margin: 6px 0 13px; } .checks label, .inline { display: inline-flex; gap: 8px; align-items: center; font-size: 14.5px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ink); flex: none; margin: 0; }
[data-theme="dark"] input[type=checkbox] { accent-color: var(--accent); }
.grid2, .grid3, .grid4 { display: grid; gap: 0 12px; } .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 2fr 1.3fr 1.7fr; } .grid4 { grid-template-columns: 1fr 2.4fr 1fr 1fr; }
.big-search { font-size: 17px !important; padding: 13px 16px !important; border-radius: 12px !important; margin-bottom: 16px; }
.lookup { display: flex; gap: 8px; } .lookup input { width: 220px; }
.filters { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; } .filters input { max-width: 280px; }
/* Tabs are words; the live one is underlined in the accent. */
.tabs { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tab { font: 600 14.5px var(--font); padding: 0 0 10px; border: 0; background: none; color: var(--soft); cursor: pointer; position: relative; }
.tab:hover { color: var(--hi); } .tab.on { color: var(--hi); } .tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.filters .tabs { margin: 0; border: 0; gap: 16px; } .filters .tab { padding-bottom: 4px; font-size: 13.5px; } .filters .tab.on::after { bottom: 0; }
.card .tabs { margin-bottom: 12px; }

/* ---- requests and overview ---- */
.nav .count { margin-left: 7px; min-width: 17px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; line-height: 17px; text-align: center; }
.req-text { color: var(--hi); margin: 6px 0 4px; font-size: 16px; }
.fact { margin: 0 0 9px; color: var(--soft); } .fact b { color: var(--hi); font-size: 17px; font-variant-numeric: tabular-nums; }
.cols.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.player { width: 100%; margin: 2px 0 12px; height: 40px; }
.transcript { color: var(--hi); line-height: 1.75; margin: 0; }

.lookup-box { margin-bottom: 18px; } .lookup-box .big-search { margin-bottom: 10px; }
.alt { padding: 8px 0 4px; border-top: 1px solid var(--line); } h2 + .alt { border-top: 0; padding-top: 0; } .alt .row { padding: 7px 0; border-top: 0; }
.part-no.small { font-size: 17px; } .lookup-tools { display: flex; gap: 6px 16px; flex-wrap: wrap; margin: 2px 0 14px; } .checks.tight { margin: 0; }
.row > .btn { flex: none; }
.part-head { margin-bottom: 4px; } .part-no { font-size: 22px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; } .hist { margin: 10px 0 0; }

/* ---- the printed sales agreement ---- */
/* The printed sales agreement. Always black on white, whatever the screen's theme; sized to fit one Letter page. */
.agreement { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 6px; padding: 30px 36px; max-width: 8.5in; margin: 0 auto; font-size: 11.5px; line-height: 1.35; }
.agreement header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; border-bottom: 2px solid #111; padding-bottom: 8px; margin-bottom: 4px; }
.agreement h2 { font-size: 24px; font-weight: 750; color: #111; letter-spacing: -.02em; margin: 0; } .ag-logo { height: 62px; width: auto; display: block; }
.ag-title { margin: 0 0 4px; font-size: 15px; font-weight: 750; color: #111; } .ag-rev { margin: 3px 0 0; font-size: 9px; color: #555; text-align: right; }
.agreement h3 { font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: #111; border-bottom: 1px solid #111; padding-bottom: 2px; margin: 11px 0 3px; }
.ag-cols { display: grid; grid-template-columns: 1fr 1.08fr; gap: 0 28px; } .ag-meta { min-width: 250px; }
.ag-line { display: flex; gap: 6px; align-items: baseline; border-bottom: 1px solid #c9ced2; min-height: 19px; padding: 1px 0; } .ag-line span { color: #555; flex: none; } .ag-line b { font-weight: 600; color: #111; overflow-wrap: anywhere; }
.ag-pair { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0 12px; }
.ag-price { width: 100%; border-collapse: collapse; margin: 0; } .ag-price td { padding: 2px 0; border-bottom: 1px solid #e1e4e6; color: #111; } .ag-price .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 12px; }
.ag-price tr.strong td { font-weight: 750; } .ag-price tr.due td { border-top: 1.5px solid #111; border-bottom: 1.5px solid #111; font-size: 13px; } .ag-totals { margin-top: 2px; } .ag-totals td:first-child { text-align: right; padding-right: 4px; }
.ag-method { margin-top: 8px; } .ag-small { margin: 3px 0 0; font-size: 9px; color: #444; }
.ag-notes p { min-height: 24px; margin: 0; white-space: pre-wrap; }
.ag-fine { margin-top: 8px; font-size: 7.3px; line-height: 1.28; color: #111; text-align: justify; } .ag-fine p { margin: 0 0 3px; } .ag-fine b { font-weight: 750; }
.ag-terms { font-weight: 750; font-size: 10px; margin: 6px 0 26px; color: #111; }
.ag-sign { display: grid; grid-template-columns: 1.4fr .7fr 2.2fr; gap: 22px; } .ag-sign div { border-top: 1px solid #111; padding-top: 3px; font-size: 8.5px; color: #111; letter-spacing: .02em; }
.agreement footer { margin-top: 8px; text-align: center; font-size: 9.5px; color: #333; } .ag-tip { max-width: 8.5in; margin: -10px auto 12px; }
@media print { .noprint, #toast, .top, .nav { display: none !important; } html, body { background: #fff; height: auto; min-height: 0; padding: 0; } main { padding: 0 !important; max-width: none; } .agreement { break-inside: avoid; } .agreement { border: 0; padding: 0; max-width: none; } @page { size: Letter; margin: 0.45in 0.55in; } }
@media (max-width: 700px) { .agreement { padding: 18px; } .ag-cols { grid-template-columns: 1fr; } }

/* The sale desk (views/sale.js): the form on the left in the order a sale happens, the agreement's figures beside it. */
.sale-new { max-width: 720px; }
.sale-found { display: grid; gap: 6px; margin: -4px 0 10px; } .sale-hit { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; text-align: left; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; } .sale-hit:hover { border-color: var(--soft); } .sale-hit span { color: var(--soft); font-size: 13.5px; }
.sale-or { margin: 14px 0 10px; font-size: 13px; font-weight: 650; color: var(--soft); } .sale-picked { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sale-unit { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; cursor: pointer; } .sale-unit.on { border-color: var(--hi); box-shadow: inset 0 0 0 1px var(--hi); }
.sale-unit-main { flex: 1; min-width: 0; display: grid; gap: 2px; } .sale-unit-main input { margin-top: 6px; width: 100%; }
.sale-desk { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.sale-side { position: sticky; top: 76px; } .sale-total h2 { margin-bottom: 10px; } .sale-total .btn { width: 100%; justify-content: center; margin-top: 8px; }
.sale-sum { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; } .sale-sum span { color: var(--soft); } .sale-sum b { color: var(--hi); font-weight: 600; }
.sale-sum.strong b, .sale-sum.strong span { font-weight: 700; color: var(--hi); } .sale-sum.due { border-bottom: 0; padding-top: 10px; } .sale-sum.due span { color: var(--hi); font-weight: 700; } .sale-sum.due b { font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.sale-need { margin: 10px 0 2px; font-size: 13.5px; color: var(--warn); } .sale-ok { margin: 10px 0 2px; font-size: 13.5px; color: var(--ok); } .sale-saved { display: block; min-height: 18px; margin-top: 8px; font-size: 12.5px; color: var(--faint); text-align: center; }
.sale-lines { display: grid; gap: 6px; margin-bottom: 12px; } .sale-line { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto; gap: 8px; align-items: center; } .sale-line input { width: 100%; }
input.sale-amt { text-align: right; font-variant-numeric: tabular-nums; }
.sale-add { display: grid; grid-template-columns: minmax(0, 1fr) 64px 120px auto; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); } .sale-add input, .sale-add select { width: 100%; }
.sale-add--pay { grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.2fr) 150px auto; }
.sale-paid { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sale-desk details { margin: 4px 0 8px; } .sale-desk details summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 6px 0; }
@media (max-width: 980px) { .sale-desk { grid-template-columns: 1fr; } .sale-side { position: static; order: 2; } }
@media (max-width: 640px) { .sale-line { grid-template-columns: minmax(0, 1fr) 96px; } .sale-line .btn { grid-column: 1 / -1; justify-self: start; } .sale-add { grid-template-columns: 1fr 64px 96px; } .sale-add .btn { grid-column: 1 / -1; } .sale-add--pay { grid-template-columns: 1fr 1fr; } .sale-add--pay .btn { grid-column: 1 / -1; } }

.lines.todo { margin: 10px 0 0; border-top: 1px solid var(--line); } .lines.todo li { padding: 7px 0; } .lines.todo li:first-child { border-top: 0; padding-top: 9px; }
.winter-price { position: sticky; top: 76px; } .winter-price .alt h2 { margin: 4px 0 2px; } .entry-row .grow { flex: 1; } .entry-row select { max-width: 150px; } input.tiny { width: 64px !important; }

.step-notes { list-style: none; margin: 8px 0 0; padding: 0; } .step-notes li { padding: 5px 0 5px 12px; border-left: 2px solid var(--line-2); margin-bottom: 4px; font-size: 14.5px; }
.step-notes .note-text { color: var(--hi); font-weight: 600; } .step-notes .tone-now { border-left-color: var(--bad); } .step-notes .tone-now .note-text { color: var(--bad); } .step-notes .tone-later .note-text { color: var(--soft); font-weight: 500; }
.picks { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; } .picks .btn.on { border-color: var(--hi); box-shadow: inset 0 0 0 1px var(--hi); } .entry-row.left { justify-content: flex-start; }

/* ---- my work ---- */
.work { border: 1px solid var(--line); border-radius: 14px; padding: 15px 18px; margin-bottom: 10px; background: var(--panel); }
.work.doing { border-color: var(--line-2); }
.work-head { display: block; text-decoration: none; color: inherit; }
.work-step { font-size: 18.5px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; color: var(--hi); margin: 3px 0 1px; }
.work-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; } .work-actions .ago { margin-right: auto; }
.handoff { margin: 10px 0 0; padding: 2px 0 2px 13px; border-left: 2px solid var(--accent); font-size: 14.5px; color: var(--hi); }
.handoff cite { color: var(--soft); font-size: 13px; font-style: normal; }
.next-line { border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; font-weight: 600; color: var(--hi); background: var(--panel-2); margin-bottom: 14px; }
section.group { margin-bottom: 26px; } section.group > h2 { margin-bottom: 10px; }

/* ---- job page ---- */
.alert-banner { border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); background: var(--bad-bg); color: var(--bad); font-weight: 650; border-radius: 12px; padding: 11px 15px; margin-bottom: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.alert-banner span, .alert-line { display: flex; gap: 8px; align-items: flex-start; } .alert-banner svg, .alert-line svg { margin-top: 3px; }
.stamp { font-size: 13px; font-weight: 750; letter-spacing: .04em; padding: 5px 10px; border-radius: 7px; margin: 10px 0 4px; display: inline-block; }
.stamp.blocked { background: var(--bad); color: #fff; } .stamp.hold { background: var(--warn-bg); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.pieces { list-style: none; margin: 0 0 12px; padding: 0; }
.piece { display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); align-items: flex-start; } .piece:first-child { border-top: 0; padding-top: 2px; }
.piece-dot { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); color: var(--faint); font-size: 12px; font-weight: 700; line-height: 21px; text-align: center; flex: none; margin-top: 1px; display: grid; place-items: center; }
.piece-dot svg { width: 13px; height: 13px; stroke-width: 2.4; }
.piece.ready .piece-dot { border-color: var(--accent); color: var(--accent); } .piece.doing .piece-dot { background: var(--accent); border-color: var(--accent); color: #fff; } .piece.done .piece-dot { border-color: var(--ok); color: var(--ok); }
.piece.waiting .piece-title strong, .piece.skipped .piece-title strong, .piece.done .piece-title strong { color: var(--soft); font-weight: 550; } .piece.skipped .piece-title strong { text-decoration: line-through; }
.piece-main { flex: 1; min-width: 0; } .piece-title { display: flex; gap: 4px 12px; align-items: baseline; flex-wrap: wrap; } .piece-who { color: var(--soft); font-size: 14px; }
.piece-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; } .piece-actions:empty { display: none; }
.pieces.edit .piece { align-items: center; } .pieces.edit select { width: 180px; flex: none; } .piece.off { opacity: .4; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 5px 22px; margin: 4px 0 12px; font-size: 14.5px; } .facts dt { color: var(--soft); } .facts dd { margin: 0; color: var(--hi); }
.lines { list-style: none; margin: 0 0 10px; padding: 0; } .lines li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); flex-wrap: wrap; } .lines li:first-child { border-top: 0; padding-top: 2px; }
.tick { display: flex; gap: 11px; align-items: center; flex: 1; min-width: 200px; color: var(--hi); } .ticked .tick > span:first-of-type { text-decoration: line-through; color: var(--soft); }
.line-side { display: flex; gap: 14px; align-items: center; } .line-side select { width: 150px; padding: 4px 8px; font-size: 13.5px; }
.price { font: 650 15px var(--font); font-variant-numeric: tabular-nums; background: none; border: 0; border-bottom: 1px dashed var(--line-2); color: var(--hi); cursor: pointer; padding: 1px 0; } .price.unpriced { color: var(--warn); }
.total { text-align: right; font-size: 14.5px; }
.entry-form { margin-bottom: 6px; } .entry-form textarea { margin-bottom: 8px; }
.entry-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; } .entry-row select { width: auto; flex: 1; min-width: 180px; }
.entry-row.time { justify-content: flex-start; color: var(--soft); } .entry-row.time input { width: 78px; font-size: 18px; font-weight: 650; text-align: center; }
.entry-row input[type=number] { width: 84px; flex: none; } .entry-row input[type=text] { flex: 1; }
.feed { margin-top: 12px; }
.entry { border-top: 1px solid var(--line); padding: 11px 0 9px; } .entry-head { display: flex; gap: 4px 12px; align-items: baseline; flex-wrap: wrap; } .entry p { margin: 3px 0 0; color: var(--hi); }
.event { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.plain { list-style: none; margin: 0 0 10px; padding: 0; } .plain li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; gap: 4px 10px; align-items: baseline; flex-wrap: wrap; } .plain li:first-child { border-top: 0; padding-top: 2px; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; margin-bottom: 12px; }
.file { display: flex; flex-direction: column; gap: 5px; text-decoration: none; color: var(--soft); font-size: 12.5px; overflow-wrap: anywhere; }
.file img, .file-icon { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); } .file-icon { display: grid; place-items: center; background: var(--panel-2); font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--faint); }
.cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; } .cols > div > .card:last-child { margin-bottom: 14px; }

/* ---- new job, boards, admin ---- */
.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.kind { font: 650 15px var(--font); text-align: left; padding: 13px 15px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel); color: var(--soft); cursor: pointer; } .kind:hover { color: var(--hi); }
.kind.on { color: var(--hi); border-color: var(--hi); box-shadow: inset 0 0 0 1px var(--hi); }
.picked { border: 1px solid var(--line); background: var(--panel-2); padding: 10px 13px; border-radius: 10px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.match { display: block; width: 100%; text-align: left; margin-top: 6px; padding: 9px 13px; border-radius: 10px; border: 1px dashed var(--accent); background: none; color: var(--text); font: inherit; cursor: pointer; }
.lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; } .lane { margin: 0; }
.tpl-row { display: grid; grid-template-columns: 62px 1fr 160px auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.site-row { display: grid; grid-template-columns: 1.2fr 1fr 2fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.steps { margin: 0 0 4px; padding-left: 20px; } .steps li { margin-bottom: 8px; } details.card > .card { border: 0; padding: 0; margin: 0; }
.temp-pass { font-size: 16px; line-height: 1.9; border: 1px solid var(--line); background: var(--panel-2); padding: 10px 14px; border-radius: 10px; user-select: all; font-variant-numeric: tabular-nums; }

/* ---- sign in ---- */
.signin { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.signin-box { width: 100%; max-width: 380px; }
.mark--img { background: none; box-shadow: none; border-radius: 0; width: 30px; height: 30px; object-fit: contain; }
.signin-brand--logo { flex-direction: column; align-items: flex-start; gap: 14px; } .signin-logo { width: 190px; height: auto; display: block; }
.signin-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 26px; } .signin-brand .mark { width: 38px; height: 38px; border-radius: 10px; font-size: 19px; }
.signin-brand b { display: block; font-size: 18px; letter-spacing: -.015em; } .signin-brand span { color: var(--soft); font-size: 13.5px; }
.signin h1 { font-size: 25px; margin-bottom: 20px; }
.signin .btn.primary { width: 100%; justify-content: center; margin-top: 4px; } .form-error { color: var(--bad); font-weight: 600; font-size: 14px; min-height: 1.4em; margin: 0 0 6px; }
.demo-list { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; margin-bottom: 14px; }
.demo-as { display: block; width: 100%; text-align: left; padding: 13px 16px; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; cursor: pointer; } .demo-as:first-child { border-top: 0; }
.demo-as:hover { background: var(--panel-2); } .demo-as b { display: block; } .demo-as span { color: var(--soft); font-size: 13.5px; }
.signin-foot { color: var(--faint); font-size: 13px; margin-top: 18px; }

/* ---- dialogs and toast ---- */
dialog.modal { border: 1px solid var(--line-2); border-radius: 16px; padding: 0; width: min(500px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: var(--panel); color: var(--text); box-shadow: 0 24px 70px rgba(0, 0, 0, .28); }
dialog.modal.wide { width: min(980px, calc(100vw - 24px)); }
.change-diff { border-bottom: 1px solid var(--line); margin-bottom: 14px; padding-bottom: 6px; } .change-diff .total { text-align: left; margin-top: 0; }
@media (min-width: 861px) { dialog.modal.wide .winter-side { position: sticky; top: 0; align-self: start; } }
.change-diff:empty { display: none; } .change-diff ul, .history ul { margin: 4px 0 8px; padding-left: 18px; font-size: 14px; color: var(--soft); }
details.history { margin-top: 12px; } details.history summary { cursor: pointer; font-size: 13px; font-weight: 650; color: var(--soft); } .history-item { margin-top: 10px; }
.btn.block { display: flex; justify-content: center; align-items: center; margin: 4px 0 14px; min-height: 46px; text-decoration: none; }
.card-tools { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; } .card-tools .lbl { display: block; margin-top: 12px; }
.card-frame { width: 100%; height: 96px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); }
.receipt { max-width: 420px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 28px; } .receipt h2 { margin: 0 0 18px; font-size: 18px; color: var(--hi); }
.receipt-kind { margin: 0; color: var(--soft); font-weight: 600; font-size: 14px; } .receipt-amount { font-size: 40px; font-weight: 750; letter-spacing: -.03em; margin: 2px 0 18px; color: var(--hi); font-variant-numeric: tabular-nums; }
.receipt table { width: 100%; border-collapse: collapse; } .receipt th { text-align: left; font-weight: 600; color: var(--soft); padding: 6px 12px 6px 0; vertical-align: top; white-space: nowrap; font-size: 14px; } .receipt td { padding: 6px 0; font-size: 14.5px; }
.receipt-thanks { margin: 20px 0 0; color: var(--soft); }
.receipt-customer { display:grid; justify-items:start; gap:4px; padding:12px 0; margin-bottom:12px; border-block:1px solid var(--line-2); overflow-wrap:anywhere; }
.receipt-customer h3 { margin:0; font-size:14px; color:var(--soft); }
.staff-app .receipt-customer .btn { min-height:44px; margin-top:4px; }
@media print { .receipt { border: 0; padding: 0; max-width: none; } }
.match { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; } .match.sure { border-color: var(--ok); }
.mail-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } textarea.mail-compose { width: 100%; font: inherit; line-height: 1.5; min-height: 240px; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.grow { flex:1; }
.link-row { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.suggest { margin: -6px 0 8px; } .suggest:empty { display: none; } .suggest-row { display: block; width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line); border-top: 0; padding: 7px 10px; cursor: pointer; font: inherit; color: var(--text); } .suggest-row:first-child { border-top: 1px solid var(--line); border-radius: 8px 8px 0 0; } .suggest-row:last-child { border-radius: 0 0 8px 8px; } .suggest-row:hover { background: var(--panel); }
.mail-rich { min-height: 220px; max-height: 46vh; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 0 0 10px 10px; padding: 12px 14px; background: var(--panel); line-height: 1.5; font-size: 15px; outline: none; } .mail-rich:focus { border-color: var(--accent); } .mail-rich blockquote { margin: 0 0 0 8px; padding-left: 10px; border-left: 3px solid var(--line-2); color: var(--soft); }
.mail-bar { display: flex; gap: 2px; flex-wrap: wrap; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 4px; background: var(--bg); } .mail-bar button { background: none; border: 0; padding: 5px 10px; border-radius: 6px; cursor: pointer; font: 600 13.5px var(--font); color: var(--soft); } .mail-bar button:hover { background: var(--panel); color: var(--hi); }
.mail-frame { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-height: 120px; margin-top: 8px; } .mail-note { font-size: 13px; color: var(--soft); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.mail-tools { padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 13px; } .mail-tools:last-child { border-bottom: 0; } .mail-file { display: inline-flex; align-items: center; gap: 6px; }
select.small-select { width: auto; min-height: 0; padding: 5px 28px 5px 10px; font-size: 13.5px; }
@media print { .tabs { display:none !important; } .mail-frame { border:0; } }
.card-strip { border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); padding: 12px 16px; margin-bottom: 16px; } .card-strip .strong { font-weight: 650; color: var(--hi); font-size: 14px; } .checks.tall { max-height: 30vh; overflow-y: auto; display: block; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 4px 0 10px; } .checks.tall label { display: block; padding: 3px 0; }
audio.voice { width: 100%; max-width: 360px; height: 34px; margin-top: 6px; }
dialog.modal::backdrop { background: rgba(10, 16, 20, .5); }
dialog.modal form { display: flex; flex-direction: column; max-height: calc(100vh - 26px); }
dialog.modal header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px 0; } dialog.modal header h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--hi); letter-spacing: -.01em; }
.dialog-error { flex-basis:100%; color:var(--bad); font-weight:600; overflow-wrap:anywhere; }
.modal-body { padding: 14px 20px 6px; overflow-y: auto; } dialog.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; flex-wrap: wrap; }
.x { background: none; border: 0; padding: 4px; color: var(--soft); cursor: pointer; display: grid; } .x:hover { color: var(--hi); }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--hi); color: var(--bg); padding: 10px 17px; border-radius: 11px; font-weight: 600; font-size: 14.5px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 100; max-width: calc(100vw - 30px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); } #toast.bad { background: var(--bad); color: #fff; }

/* ---- phones: the menu moves to the bottom, where a thumb is ---- */
@media (max-width: 860px) { .cols, .cols.even { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 760px) {
  /* A blurred bar would trap the fixed menu inside it, so on a phone the bar is solid. */
  .top { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .top-in { padding: 0 14px; height: 52px; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; height: calc(54px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); padding: 0 6px env(safe-area-inset-bottom); z-index: 20; }
  .nav a { flex: 1; justify-content: center; font-size: 13.5px; padding: 0 8px; } .nav a.on::after { bottom: auto; top: -1px; }
  .nav-more { margin-left: 0; } .nav-more summary { font-size: 13.5px; padding: 0 12px; } .nav-more-list { top: auto; bottom: calc(100% + 6px); right: 4px; max-height: 70vh; overflow-y: auto; }
  .top-right { margin-left: auto; }
  main { padding: 20px 14px 110px; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } .lookup { width: 100%; } .lookup input { width: auto; flex: 1; }
  .work-actions .btn.big { flex: 1; justify-content: center; } .tpl-row { grid-template-columns: 56px 1fr; } .site-row { grid-template-columns: 1fr; }
  .pieces.edit .piece { flex-wrap: wrap; } .pieces.edit select { width: 100%; }
  .row-side .ago { display: none; }
  #toast { bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }
@media print { .top, .nav, .btn, .tabs, .entry-form { display: none !important; } body { background: #fff; } .card { break-inside: avoid; } }

/* The camera scanner (the shop's own, from the Service Tracker). */
.scanner { position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 60vh; background: #000; border-radius: 14px; overflow: hidden; border: 2px solid var(--line-2); }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .reticle { position: absolute; inset: 14% 10%; border: 3px solid rgba(255, 255, 255, 0.85); border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.35); }
.scanner .hintline { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: #fff; font-size: 13px; text-shadow: 0 1px 3px #000; }

/* Named hulls stay visually beneath the trailer that occupies the storage space. */
.ski-members { list-style:none; border-left:3px solid var(--accent); padding:2px 0 2px 14px; margin:10px 0; }
.ski-members li + li { margin-top:6px; }
.ski-members .ago { display:block; }
.equipment-ski { min-width:0; border:1px solid var(--line-2); border-radius:8px; margin:12px 0; padding:10px 14px; }
.equipment-ski legend { font-weight:650; padding:0 4px; }
.equipment-review { border-top:1px solid var(--line); margin:12px 0; padding-top:10px; }

#equipment { max-width: 840px; }
#equipment > .card { margin-top: 16px; }
.equipment-total { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:12px 0; margin:8px 0 12px; border-block:1px solid var(--line-2); }
.equipment-total strong { font-size:1.35rem; font-variant-numeric:tabular-nums; }
.equipment-ski, .ski-members, .equipment-review { overflow-wrap:anywhere; }

.equipment-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items:start; gap:14px; margin-top:16px; }
.equipment-card { min-width:0; margin:0; overflow-wrap:anywhere; }
.equipment-card h2 { font-size:1.25rem; font-weight:700; color:var(--hi); margin:2px 0 12px; }
.equipment-card details, .equipment-arrival { margin:12px 0; }
.equipment-card summary, .equipment-arrival summary { color:var(--hi); cursor:pointer; }
.equipment-card .ski-members { padding-block:0; margin:14px 0 16px; }
.equipment-card .row { align-items:baseline; }
.equipment-tools:empty, .equipment-card .head-actions:empty { display:none; }

.equipment-terms { margin-top:16px; color:var(--soft); }

/* Staff navigation and work surfaces. Customer and printed documents have their own layouts. */
.staff-app {
  --font:"Inter Staff",system-ui,sans-serif; --tblr-font-sans-serif:var(--font); --tblr-body-font-family:var(--font);
  font-family:var(--font); font-weight:400;
}
.staff-app, .staff-app [data-theme="light"] {
  --desk-navy: #102f3c; --desk-green: #19584f; --desk-tint: #e1ece5;
  --bg: #f2f5f2; --panel: #fff; --panel-2: #ecf1ed; --hi: #102d39; --text: #28454b;
  --soft: #4b6266; --faint: #536c70; --line: #d5dfd8; --line-2: #a8bcb2; --solid: #153f46; --on-solid: white;
}
[data-theme="dark"] .staff-app {
  --desk-navy: #0c232d; --desk-green: #98d6bc; --desk-tint: #203c36;
  --bg:#112327; --panel:#192e32; --panel-2:#20383b; --hi:#eff8f2; --text:#dce8e3; --soft:#b3c9c1;
  --faint:#a3bab2; --line:#344b49; --line-2:#627f75; --solid:#c1dfca; --on-solid:#122e31;
}
.staff-skip { position:fixed; top:-80px; left:8px; z-index:100; background:var(--panel); padding:12px; }
.staff-skip:focus { top:6px; }
.staff-app .top { background:var(--desk-navy); color:#fff; border:0; border-bottom:3px solid var(--accent); backdrop-filter:none; }
.staff-app .top-in { max-width:1640px; height:60px; padding:0 clamp(16px,2.5vw,38px); justify-content:space-between; }
.staff-app .brand { color:#fff; gap:11px; font-size:21px; letter-spacing:-.035em; }
.staff-app .mark--img { width:34px; height:34px; padding:4px; background:#fff; border-radius:7px; object-fit:contain; }
.staff-app .top-right { margin-left:auto; }
.staff-app .top .iconbtn { color:#f0f6ef; min-width:38px; padding:6px 9px; }
.staff-app .top .iconbtn:hover { background:#234652; border-color:#668388; }
.staff-app .top .iconbtn[aria-current] { background:#29505c; outline:1px solid #8daeb0; }
.staff-app .top .inbox-link { gap:5px; }
.staff-app .top .inbox-link .badge { position:static; flex:none; transform:none; padding:1px 5px; min-width:18px; border-radius:8px; background:#f3ce54; color:#132e38; font:600 12px/16px var(--font); letter-spacing:normal; }
.staff-app .top .staff-search-launch { flex:0 1 24rem; justify-content:start; border-color:#527079; padding-inline:12px; font:400 14px/20px var(--font); }
.staff-app .top .staff-search-launch .i { flex:none; }
@media (max-width:767px) {
  .staff-app .top .staff-search-launch { flex:none; justify-content:center; margin-left:auto; border-color:transparent; }
  .staff-app .top .staff-search-launch span { display:none; }
  .staff-app .top .top-right { margin-left:0; }
}
@media (pointer:coarse) { .staff-app .top .iconbtn { min-height:44px; min-width:44px; } }
.staff-app #toast { font:400 14px/20px var(--font); letter-spacing:normal; }
.staff-app .top :focus-visible { outline-color:#f8d95c; }
.staff-layout { max-width:1640px; min-height:calc(100vh - 63px); margin:0 auto; display:grid; grid-template-columns:clamp(174px,16vw,234px) minmax(0,1fr); }
.staff-rail { position:sticky; top:63px; align-self:start; height:calc(100vh - 63px); overflow-y:auto; scrollbar-width:thin; border-right:1px solid var(--line); padding:17px 12px 28px; background:var(--panel); }
.staff-nav-group + .staff-nav-group { margin-top:16px; }
.staff-nav-group h2 { margin:0 10px 6px; font-size:11px; text-transform:uppercase; letter-spacing:.1em; font-weight:750; color:var(--soft); }
.staff-nav-group a { display:flex; align-items:center; min-height:37px; gap:10px; padding:6px 12px; text-decoration:none; font-size:14px; font-weight:500; color:var(--text); border-radius:6px; }
.staff-nav-group a .i { width:17px; height:17px; color:var(--soft); }
.staff-nav-group a:hover { background:var(--panel-2); }
.staff-nav-group a[aria-current] { color:var(--desk-green); background:var(--desk-tint); box-shadow:inset 3px 0 var(--desk-green); }
.staff-nav-group a[aria-current] .i { color:inherit; }
.nav-count { margin-left:auto; color:var(--desk-green); font-size:13px; font-variant-numeric:tabular-nums; }
.staff-quick { display:none; }
.staff-menu { max-width:460px; width:calc(100% - 24px); max-height:min(84vh,770px); padding:16px; border:1px solid var(--line-2); border-radius:12px; background:var(--panel); color:var(--text); }
.staff-menu::backdrop { background:rgba(9,31,40,.65); }
.staff-menu-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:12px; margin-bottom:14px; border-bottom:1px solid var(--line); }
.staff-menu-head h2 { margin:0; font-size:23px; color:var(--hi); }
.staff-mobile-nav a { min-height:44px; }
.staff-app #main { width:100%; max-width:1360px; min-width:0; padding:clamp(23px,3vw,47px) clamp(18px,3vw,49px) 78px; }
.staff-app #main:focus { outline:0; }
.staff-app .page-head { align-items:center; gap:14px; margin:0 0 22px; padding-bottom:18px; border-bottom:1px solid var(--line-2); }
.staff-app h1 { font-size:clamp(27px,2.9vw,43px); line-height:1.12; letter-spacing:-.045em; text-wrap:pretty; }
.staff-app .say { max-width:28em; }
.staff-app .say-rest { display:block; margin-top:7px; font-size:clamp(15px,1.2vw,18px); font-weight:500; line-height:1.5; letter-spacing:0; color:var(--soft); }
.staff-app .card,.staff-app .work,.staff-app .card-strip,.staff-app .cal-grid { border-radius:8px; }
.staff-app .card,.staff-app .work { box-shadow:0 2px 5px rgba(17,44,46,.035); }
.staff-app .card { padding:clamp(15px,1.6vw,23px); }
.staff-app .card > h2,.staff-app .group > h2 { margin-bottom:12px; font-size:18px; line-height:1.3; font-weight:700; letter-spacing:-.02em; color:var(--hi); }
.staff-app .card > h2 + .row { border-top:1px solid var(--line); padding-top:10px; }
.staff-app .field,.staff-app .row-main,.staff-app .cols > *,.staff-app .grid2 > * { min-width:0; }
.staff-app .btn { border-radius:6px; min-height:38px; height:auto; padding-block:7px; white-space:normal; line-height:1.25; }
.staff-app .btn.primary { background:var(--solid); color:var(--on-solid); border-color:var(--solid); }
.staff-app .btn.big { min-height:44px; }
.staff-app .tab.on { box-shadow:inset 0 -3px var(--desk-green); }
.staff-app .tab { min-height:37px; }
.staff-app .tabs,.staff-app .filters { max-width:100%; }
.staff-app :is(.row,.work-head):is(a,button):hover { background:var(--panel-2); }
.staff-app .work { border-left:3px solid var(--line-2); }
.staff-app .work.doing { border-left-color:var(--desk-green); }
.staff-app .work-step { font-size:clamp(18px,1.6vw,23px); line-height:1.26; color:var(--hi); }
.staff-app .work-actions { padding-top:10px; margin-top:12px; border-top:1px solid var(--line); }
.staff-app .row-with::before { background:var(--desk-green); }
.staff-app .row-sub,.staff-app .contact,.staff-app .facts dd,.staff-app .row-top { overflow-wrap:anywhere; }
.staff-app .job-progress { display:grid; justify-items:end; gap:3px; }
.staff-app .job-progress progress { appearance:none; width:45px; height:4px; border:0; background:var(--line); border-radius:4px; overflow:hidden; }
.staff-app progress::-webkit-progress-bar { background:var(--line); }
.staff-app progress::-webkit-progress-value { background:var(--desk-green); }
.staff-app progress::-moz-progress-bar { background:var(--desk-green); }
.staff-app .lane > h2 { display:flex; align-items:baseline; justify-content:space-between; gap:8px; padding-bottom:9px; border-bottom:1px solid var(--line); }
.lane-count { color:var(--desk-green); font-size:17px; font-variant-numeric:tabular-nums; }
.staff-app .lane { border-top:3px solid var(--desk-green); }
.yard-facts { display:flex; gap:6px 22px; flex-wrap:wrap; margin:10px 0; }
.yard-facts div { min-width:0; }
.yard-facts dt { font-size:12px; font-weight:600; color:var(--soft); }
.yard-facts dd { margin:0; color:var(--hi); font-weight:600; overflow-wrap:anywhere; }
.yard-list { display:grid; gap:12px; }
.staff-app .yard-unit { margin:0; }
.staff-app .job-head .stamp { margin:10px 0 4px; }
.staff-app .stamp.blocked { background:#8d332b; color:#fff; }
.staff-app .stamp.hold { color:var(--warn); background:var(--warn-bg); }
.staff-app .cal-day.today { box-shadow:inset 0 3px var(--desk-green); }
.staff-app dialog.modal { border-radius:10px; border-color:var(--line-2); }
@media (min-width:1300px) {
  .yard-list { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
}
@media (max-width:920px) {
  .staff-layout { display:block; }
  .staff-rail { display:none; }
  .staff-app .top-in { height:52px; }
  .staff-quick { display:flex; position:fixed; inset:auto 0 0; z-index:16; gap:4px; padding:3px 10px calc(3px + env(safe-area-inset-bottom)); background:var(--panel); border-top:1px solid var(--line-2); }
  .staff-quick :is(a,button) { flex:1; min-width:0; display:grid; justify-items:center; align-content:center; gap:2px; min-height:49px; padding:3px; border:0; border-radius:5px; background:transparent; color:var(--soft); font:500 12px/1.25 var(--font); text-decoration:none; cursor:pointer; }
  .staff-quick [aria-current],.staff-quick .current-department { background:var(--desk-tint); color:var(--desk-green); }
  .staff-quick .nav-count { display:none; }
  .staff-app #main { padding-bottom:calc(90px + env(safe-area-inset-bottom)); }
}
@media (max-width:640px) {
  .staff-app #main { padding-inline:14px; }
  .staff-app .page-head { padding-bottom:13px; margin-bottom:15px; }
  .staff-app .card,.staff-app .work { padding:14px; }
  .staff-app .top-in { gap:4px; padding-inline:12px; }
  .staff-app .top .brand { flex:0 1 auto; min-width:0; gap:6px; font-size:18px; }
  .staff-app .top .top-right { gap:0; }
  .staff-app .top .brand > span:last-child,.staff-app .top-right button:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .staff-app .top-right button:last-child { display:block; max-width:23vw; }
  .staff-app .top .iconbtn { min-width:44px; justify-content:center; padding-inline:4px; }
  .staff-app .row-side { max-width:42%; }
  .staff-app .facts { grid-template-columns:minmax(70px,.8fr) minmax(0,1.5fr); }
  .staff-app .btn,.staff-app .tab { min-height:42px; }
  .staff-app .receipt { overflow-wrap:anywhere; }
}
@media (max-width:370px) {
  .staff-app .top-in { padding-inline:8px; }
  .staff-app .top .brand { font-size:18px; gap:6px; }
  .staff-app .top .mark { width:29px; height:29px; }
  .staff-app .top-right { gap:2px; }
}
@media print {
  .staff-rail,.staff-quick,.staff-menu,.staff-skip { display:none !important; }
  .staff-layout { display:block; min-height:0; }
  .staff-app #main { max-width:none; padding:0; }
  .staff-app .card,.staff-app .work { box-shadow:none; }
}
@media screen and (max-width:640px) {
  .staff-app .agreement header { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
  .staff-app .ag-meta { min-width:0; }
  .staff-app .ag-rev { text-align:left; }
  .staff-app .ag-pair { grid-template-columns:repeat(auto-fit,minmax(min(135px,100%),1fr)); }
  .staff-app .ag-fine { font-size:11px; line-height:1.45; text-align:left; }
}

/* Stock walk (web/views/stockwalk.js) */
.reader { margin: 14px 0 6px; }
.reader-box { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.practice { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.actions.end { display: flex; justify-content: flex-end; margin-top: 14px; }
.row.settled .row-main { opacity: .62; }

/* Price check (web/views/pricecheck.js): read at arm's length, by a customer */
.pc { max-width: 520px; }
.pc-typed { display: flex; gap: 8px; margin: 12px 0; } .pc-typed input { flex: 1; min-width: 0; }
.pc-card { text-align: center; padding: 22px 18px; }
.pc-name { font-size: 20px; font-weight: 650; margin: 0 0 6px; }
.pc-price { font-size: 56px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.pc-meta { color: var(--soft); margin: 0 0 10px; } .pc-stock { margin: 0 0 10px; } .pc-foot { margin-top: 18px; }
.tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tag { display: flex; flex-direction: column; gap: 6px; background: #fff; color: #000; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; break-inside: avoid; }
.tag strong { font-size: 15px; } .tag-pn { font-family: ui-monospace, Menlo, monospace; font-size: 20px; font-weight: 700; letter-spacing: .02em; } .tag-code { width: 100%; height: 54px; } .tag-words { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; } .tag-words span { font-family: ui-monospace, Menlo, monospace; } .tag-words .tag-bin { color: #555; font-family: inherit; }
@media print { .tags { grid-template-columns: repeat(3, 1fr); } }
/* Sell a part */
.sell { --sell-pad: clamp(14px, 1.5vw, 24px); display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(250px, 1fr); grid-template-areas: "register checkout" "customer checkout"; gap: 16px; align-items: start; margin-bottom: 18px; }
.sell > .card { min-width: 0; margin: 0; }
.staff-app .sell-register, .staff-app .sell-side { padding: 0; }
.sell-register { grid-area: register; }
.sell-customer { grid-area: customer; }
.sell-side { grid-area: checkout; position: sticky; top: 78px; }
.sell-scan-area { padding: var(--sell-pad); border-radius: 8px 8px 0 0; background: var(--panel-2); border-bottom: 1px solid var(--line-2); }
.sell-scan-head, .sell-items-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sell-scan-head { margin-bottom: 10px; }
.sell-scan-head label, .sell-items-head { font-size: 18px; font-weight: 700; letter-spacing: -.025em; color: var(--hi); }
.sell-scan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.sell-scan input[type=search], .sell-scan .btn { height: 48px; font-size: 16px; }
.sell-scan .btn { padding-inline: 18px; }
.sell-items-head { width:100%; }
.sell-count,.sell-optional { color:var(--soft); font:500 13px var(--font); }
.sell-qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel-2); }
.sell-qty .btn { width: 40px; min-height: 42px; padding: 0; justify-content: center; font-size: 18px; border: 0; background: transparent; }
.sell-qty .btn.sell-amount-input { width: auto; min-width: 44px; padding: 0 6px; gap: 3px; font-size: 15px; }
.sell-amount-input .num { text-decoration: underline dotted; text-underline-offset: 3px; }
.sell-qty .num { min-width: 1.8em; text-align: center; font-weight: 700; color: var(--hi); }
.sell-amt { text-align: right; font-size: 17px; }
.sell-found .row { padding: 9px 0; } .sell-new { margin: 8px 0 0; color: var(--soft); font-size: 14px; }
.sell-pick input { width: 100%; }
.sell-usual { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); } .sell-usual .row:first-of-type { border-top: 0; padding-top: 2px; }
.sell-due { display: grid; gap: 3px; padding: var(--sell-pad); border-radius: 7px 7px 0 0; background: var(--desk-navy); color: #fff; }
.sell-due h2 { margin: 0; color: inherit; font-size: 15px; }
.sell-due strong { color: inherit; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.14; letter-spacing: -.04em; overflow-wrap: anywhere; }
.sell-checkout-body { padding: var(--sell-pad); }
.sell-sum { width: 100%; border-collapse: collapse; margin-bottom: 15px; }
.sell-sum th, .sell-sum td { padding: 2px 0; }
.sell-sum th { text-align: left; font-weight: 500; color: var(--soft); }
.sell-sum td { text-align: right; color: var(--hi); }
.sell-tender { margin: 0; padding: 0; border: 0; min-width: 0; }
.sell-tender legend { width: 100%; padding: 12px 0 8px; border-top: 1px solid var(--line); font-weight: 700; color: var(--hi); }
.sell-pay { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.sell-pay .btn.big { min-width: 0; padding-inline: 6px; justify-content: center; height: 50px; font-size: 16px; }
.sell-more { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; margin: 8px 0 0; }
.sell-more .link { min-height: 32px; }
.sell-warning { color: var(--warn); font-size: 14px; overflow-wrap: anywhere; margin: 8px 0; }
.sell-problem { flex: 0 0 100%; margin: 0; color: var(--bad); }
.sell-split-row { min-width: 0; padding: 10px 0 4px; border: 0; border-top: 1px solid var(--line-2); }
.sell-split-row legend { font-weight: 700; padding-right: 8px; }
.sell-split-row p { margin: 6px 0; }
.sell-change { font-size: 20px; font-weight: 700; color: var(--hi); margin: 0; min-height: 1.5em; font-variant-numeric: tabular-nums; }
.sell-done { max-width: 520px; margin: 24px auto 0; } .sell-done .receipt-amount { margin-bottom: 6px; } .sell-done .card { margin-top: 18px; } .sell-next { margin-top: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sell-receipt { margin-bottom: 14px; } .sell-receipt td { text-align: right; white-space: nowrap; vertical-align: top; padding: 6px 0; } .sell-receipt th { white-space: normal !important; color: var(--hi) !important; } .sell-receipt .sum th, .sell-receipt .sum td { border-top: 1px solid var(--line-2); }
.receipt-pn { display: block; font-size: 12.5px; color: var(--soft); font-weight: 500; } .receipt-url { overflow-wrap: anywhere; color: var(--hi); font-weight: 600; }
.sell-tabs a { text-decoration: none; padding-block: 8px 12px; }
.sell-quick { margin-top: 14px; }
.sell-quick h3 { margin: 0; font-size: 14px; }
.sell-quick .sell-scan-head { margin-bottom: 5px; }
.sell-group-name { margin: 0 0 6px; font-size: 13px; color: var(--soft); }
.sell-quick select { width: auto; max-width: 100%; margin-bottom: 8px; }
.sell-arrange h3, .sell-arrange > p { margin: 0 0 8px; }
.sell-order { list-style: none; padding: 0; margin: 6px 0 14px; }
.sell-order li { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line); background: var(--panel); }
.sell-order li > :nth-child(2) { flex: 1; min-width: 0; text-align: left; overflow-wrap: anywhere; white-space: normal; }
.sell-order small { display: block; color: var(--soft); }
.sell-order [aria-pressed=true] { border-color: var(--desk-green); background: var(--desk-tint); }
.sell-order .sell-grip { width: 42px; min-height: 42px; justify-content: center; padding: 0; touch-action: none; cursor: grab; }
.sell-group-edit { border-top: 1px solid var(--line-2); padding-top: 12px; }
.sell-group-edit h3 { margin-top: 14px; }
.sell-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 15rem; overflow-y: auto; }
.sell-scan-area > .sell-found { max-height: min(36vh, 20rem); overflow-y: auto; }
.sell-picks .sell-pick-part { display: grid; align-content: center; justify-content: start; gap: 1px; min-height: 48px; padding: 7px 10px; text-align: left; line-height: 1.3; white-space: normal; }
.sell-pick-part span { font-size: 12px; color: var(--soft); }
.sell-tools { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.sell-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-block: 8px; }
.sell-pad button { min-height: 42px; justify-content: center; }
.sell-edit, .sell-set-qty { font: inherit; color: var(--hi); border: 0; background: transparent; cursor: pointer; }
.sell-edit { padding: 0; font-weight: 700; text-align: left; }
.sell-edit svg { width: 14px; height: 14px; margin-left: 5px; color: var(--soft); }
.sell-set-qty { height: 42px; padding-inline: 3px; }
.sell-options { margin-top: 12px; }
.sell-options summary { cursor: pointer; padding-block: 8px; }
.sell-after { max-width: 420px; margin: 20px auto; }
.sell-receipt-tools { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 auto 12px; }
.sell-return-line { padding: 8px 0; border-bottom: 1px solid var(--line); }
.sell-return-line input[type=number] { max-width: 8em; }
.sell-after .row-main, .sell-after .actions { overflow-wrap: anywhere; }
.sell-after h2:not(:first-child) { margin-top: 18px; }
.sell-after h2, .sell-after p { margin: 0 0 6px; }
.sell-jump { display: none; }
@media (max-width: 720px) {
  .sell-jump:not([hidden]):not(.at-checkout) { display: flex; align-items: center; justify-content: space-between; position: fixed; z-index: 15; inset: auto 0 calc(55px + env(safe-area-inset-bottom)); padding: 10px 16px; min-height: 50px; border: 0; color: #fff; background: var(--desk-navy); font: 650 14px var(--font); cursor: pointer; }
  .staff-app .sell-jump strong { margin-left: 5px; font-size: 22px; color: inherit; }
  .sell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "register" "checkout" "customer"; gap: 12px; }
  .sell-side { position: static; }
  .sell-due { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }

}

/* Listings (web/views/listings.js) */
.kind-note { margin: 0 0 14px; color: var(--soft); }
.kind-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
.kind-choice { overflow: hidden; background: var(--panel); color: var(--hi); border: 1px solid var(--line-2); border-radius: 8px; }
.kind-choice { display: grid; grid-template-rows: auto 1fr; padding: 0; text-align: left; font: 700 16px/1.3 var(--font); cursor: pointer; }
.kind-choice img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.kind-choice span { align-self: center; padding: 12px; }
.kind-choice:hover { border-color:var(--solid); }
.deleted-actions, .listing-management { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.listing-dock { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; position: sticky; top: 63px; z-index: 8; padding: 8px 12px; margin-bottom: 14px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; }
.listing-publish { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.listing-edit { display: grid; grid-template-columns: minmax(310px, 1fr) minmax(0, 1.95fr); align-items: start; gap: 16px; scroll-margin-top: 139px; }
.listing-edit > * { min-width: 0; }
.listing-edit:not([data-view=write]) .listing-form, .listing-edit:not([data-view=helper]) .helper { display: none; }
.listing-edit[data-view=preview] { grid-template-columns: minmax(0, 1fr); }
.listing-edit > .listing-side { position: sticky; top: 136px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); }
.listing-side header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.listing-side h2 { margin: 0; color: var(--hi); font-size: 17px; }
.listing-preview { display: block; width: 100%; height: max(360px, calc(100dvh - 210px)); border: 0; background: var(--panel); }
@media (min-width: 981px) {
  .staff-app #main:has(.listing-edit) { padding: 22px clamp(16px, 1.6vw, 28px) 60px; }
  .listing-form .photo-drop span { flex-basis: 100%; }
}
.listing-publish > .btn { flex: none; }
.listing-live-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.staff-app .listing-section { padding: 0; }
.listing-section summary { display: flex; align-items: center; gap: 12px; padding: 15px 16px; cursor: pointer; list-style: none; }
.listing-section summary::-webkit-details-marker { display: none; }
.listing-section .card-title { flex:1; }
.listing-section summary > svg { width:16px; height:16px; color:var(--soft); }
.listing-section[open] summary { border-bottom:1px solid var(--line); }
.listing-section[open] summary > svg { transform:rotate(180deg); }
.listing-section-body { padding: 14px 16px 16px; }
.listing-section-body > .field:last-child { margin-bottom: 0; }
.publish-detail { font-size: 13px; color: var(--soft); }
.listing-section .photo-heading { display: flex; gap: 8px; align-items: baseline; }
.photo-count { color: var(--soft); font: 550 13px var(--font); }
.photo-controls { min-width: 0; padding: 0; margin: 0; border: 0; }
.photo-drop { display: flex; align-items: center; justify-content: center; gap: 6px 9px; flex-wrap: wrap; width: 100%; min-height: 64px; padding: 10px; background: var(--panel-2); color: var(--desk-green); border: 1px dashed var(--line-2); border-radius: 6px; font: inherit; cursor: pointer; }
.photo-drop span { font-size: 13px; color: var(--soft); }
.photo-drop:hover, .photo-drop.over { border-color: var(--desk-green); background: var(--desk-tint); }
.photo-drop:disabled { opacity: .6; cursor: default; }
.photo-message, .photo-controls > .muted { margin: 8px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.photo-message:empty { display: none; }
.listing-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.listing-photos:empty { display: none; }
.listing-photo { border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.listing-photo.over { outline: 3px solid var(--desk-green); }
.photo-image { position: relative; display: block; width: 100%; border: 0; padding: 0; color: white; background: var(--panel-2); cursor: pointer; }
.photo-image[draggable=true] { cursor: grab; }
.photo-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-image span { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 3px; background: var(--desk-navy); font: 650 12px/1.5 var(--font); }
.photo-actions { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 6px; }
.photo-actions button, .photo-actions select { min-height: 42px; }
.photo-actions select { width: 5.3em; padding: 3px; border: 0; font-size: 13px; color: var(--desk-green); cursor: pointer; }
.photo-large { display: block; max-height: 40vh; width: 100%; object-fit: contain; background: var(--panel-2); border-radius: 4px; margin-bottom: 14px; }
@media (max-width: 920px) {
  .listing-dock { top: 55px; }
}
.listing-specs { display: grid; gap: 8px; }
.helper-intro { color: var(--soft); margin: -4px 0 16px; }
.helper-chat { max-height: min(48dvh, 420px); overflow-y: auto; display: grid; gap: 12px; }
.helper-msg, .helper-working { min-width: 0; overflow-wrap: anywhere; padding: 12px; border-radius: 6px; background: var(--panel-2); }
.helper-msg--staff { margin-left: 24px; justify-self: end; background: var(--desk-tint); }
.helper-who, .helper-working strong { display: block; font-size: 13px; color: var(--desk-green); }
.helper-msg p { margin: 3px 0 0; white-space: pre-wrap; }
.helper-msg .helper-changed { margin: 10px 0 2px; font-size: 14px; font-weight: 650; }
.helper-msg .link { min-height: 40px; color: var(--desk-green); }
.helper-msg .link + .link { margin-inline-start: 12px; }
.helper-restored { display: flex; align-items: center; gap: 6px; color: var(--ok); font-size: 14px; }
.helper-working { border-left: 3px solid var(--desk-green); }
.helper-working p, .helper-ideas p { margin: 2px 0 0; font-size: 14px; color: var(--soft); }
.helper-ideas { display: grid; gap: 6px; }
.helper-ideas .btn { justify-content: flex-start; }
.helper-say { display: flex; gap: 8px; align-items: end; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.helper-say textarea { flex: 1; }
@media (max-width: 980px) {
  .listing-edit { grid-template-columns: minmax(0, 1fr); scroll-margin-top: 200px; }
  .listing-edit > .listing-side { position: static; }
  .listing-edit:not([data-view=preview]) .listing-side { display: none; }
  .listing-preview { height: max(320px, calc(100dvh - 310px)); }
}
@media (max-width: 640px) {
  .listing-dock { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px; }
  .listing-modes button { flex: 1 0 auto; min-height: 42px; padding-inline: 7px; }
  .listing-publish { padding: 2px 3px; }
  .listing-publish:has(.listing-live-actions) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .listing-live-actions { flex-wrap: nowrap; gap: 4px; }
  .listing-live-actions .btn { padding-inline: 9px; }
}

/* Ask My Quest on the main page (web/views/ask.js); the conversation itself uses the design helper's styles */
.ask-box { margin-bottom: 18px; } .ask-box h2 { margin-bottom: 2px; }
.ask-box .helper-chat { margin: 12px 0 0; max-height: min(52dvh, 460px); }
.ask-ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ask-say { border-top: 0; padding-top: 0; margin-top: 12px; } .ask-say input { flex: 1; min-width: 0; }
.ask-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ask-box > .link { margin-top: 8px; }

/* Two-step sign-in: the code to scan, and the recovery codes to keep. */
.two-step-qr { display: flex; justify-content: center; margin: 12px 0; }
.two-step-qr svg { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 8px; }
.recovery-codes { font: 600 16px/1.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; columns: 2; margin: 12px 0; padding: 12px 16px; background: var(--wash, #f3f5f7); border-radius: 8px; user-select: all; }

.stock-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.stock-filters .field { margin: 0; }

.stock-report-scroll { max-width: 100%; overflow-x: auto; margin-top: 10px; }
.stock-report { width: 100%; border-collapse: collapse; }
.stock-report th, .stock-report td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.stock-report td.num { text-align: right; white-space: nowrap; }
.stock-report tfoot { font-weight: 700; background: var(--panel-2); }
.stock-label-work .stock-filters { margin: 0; }
.stock-label-work .head-actions { align-items: end; }
.stock-label-work .field { margin-bottom: 0; }
.stock-label-sheet { grid-template-columns: repeat(auto-fill, minmax(0, 62mm)); justify-content:start; }
/* Printed stock tags need room for the bars even when Tabler's compact tag styles are loaded. */
.staff-app .tags > .tag {
  display:flex; flex-direction:column; align-items:stretch; height:auto; white-space:normal;
  gap:6px; padding:12px 14px; background:#fff; color:#000;
}
.staff-app .tag .tag-code { display:block; flex:none; }
.stock-label { overflow-wrap: anywhere; }
@media screen and (max-width: 640px) {
  .stock-report thead { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); }
  .stock-report tbody, .stock-report tfoot { display: block; }
  .stock-report tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .stock-report td, .stock-report td.num { border: 0; padding: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .stock-report td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--soft); }
}
@page stock-label-sheet { size: auto; margin: 6mm; }
@page stock-label-roll { size: auto; margin: 0; }
@media print {
  .stock-label-sheet { page: stock-label-sheet; display: flex; flex-wrap: wrap; align-content: start; gap: 0; }
  .staff-app .stock-label-sheet .tag { box-sizing: border-box; width: 62mm; max-width: 100%; border-radius: 0; padding: 2mm; gap: 1mm; box-shadow:none; }
  .stock-label-sheet .tag-code { height: 12mm; }
  .stock-label-roll { page: stock-label-roll; display: block; }
  .staff-app .stock-label-roll .tag { border-color:transparent; break-after:page; }
  .stock-label-roll .tag:last-child { break-after: auto; }
}

/* Staff component specimens and sortable record collections. */
@font-face { font-family:"Inter Staff"; src:url("/vendor/inter-5.3.0/inter-latin-wght-normal.woff2") format("woff2"); font-weight:100 900; font-display:swap; }
.staff-app .kit-header { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:24px; }
.staff-app .kit-header h1 { font:600 28px/34px "Inter Staff",system-ui,sans-serif; letter-spacing:-.025em; }
.staff-app .kit-header p { margin:4px 0 0; }
.kit-examples { display:grid; gap:24px; }
.kit-sample { --tblr-font-sans-serif:"Inter Staff",system-ui,sans-serif; font:400 14px/20px var(--tblr-font-sans-serif); color:var(--tblr-body-color); background:var(--tblr-body-bg); border:1px solid var(--tblr-border-color); border-radius:8px; padding:clamp(12px,2vw,24px); min-width:0; }
.kit-sample .kit-theme-title { display:flex; align-items:center; gap:8px; margin:0 0 16px; font-size:20px; line-height:26px; font-weight:600; color:var(--tblr-body-color); }
.staff-app .kit-sample .card { display:block; background:var(--tblr-bg-surface); color:var(--tblr-body-color); border:1px solid var(--tblr-border-color); border-radius:8px; padding:16px; box-shadow:none; margin:0 0 12px; }
.staff-app .kit-sample .card:last-child { margin-bottom:0; }
.staff-app .kit-sample .card h2,.kit-sample .lbl { color:inherit; }
.kit-filters,.kit-actions { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.kit-scroll { max-height:28rem; border:1px solid var(--tblr-border-color); border-radius:8px; }
.kit-scroll .table { margin:0; }
.kit-scroll thead { position:sticky; top:0; z-index:1; background:var(--tblr-bg-surface-secondary); }
.kit-scroll .kit-number { text-align:end; font-variant-numeric:tabular-nums; white-space:nowrap; }
.kit-sort,.kit-record { font:inherit; color:inherit; padding:0; border:0; background:transparent; }
.kit-sort { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.kit-sort svg { width:14px; }
.kit-record { text-decoration:underline; text-underline-offset:3px; white-space:nowrap; }
.kit-sample .empty { padding:12px 0; text-align:start; align-items:start; color:var(--tblr-secondary-color); }
.staff-app:has(link.staff-kit) dialog.modal[open] { display:block; position:fixed; inset:0; margin:auto; height:fit-content; overflow:auto; }
.staff-app dialog.kit-overlay { --tblr-font-sans-serif:var(--font); font:400 14px/20px var(--font); }
.staff-app dialog.kit-overlay header { padding:16px 20px; border-bottom:1px solid var(--line); }
.staff-app dialog.kit-overlay .modal-body { flex:1 1 auto; min-height:0; overflow:auto; padding:20px; }
.staff-app dialog.kit-overlay footer { flex:none; padding:12px 20px; border-top:1px solid var(--line); background:var(--panel-2); }
.staff-app dialog.kit-overlay footer .btn-outline-secondary { background:var(--panel); border:1px solid var(--line-2); color:var(--hi); }
:is(.workspace-shell,.staff-app:has(link.staff-kit)) dialog.kit-sheet[open] { margin:0 0 0 auto; height:100dvh; max-height:100dvh; border-radius:8px 0 0 8px; }
.staff-app dialog.kit-sheet form { height:100%; max-height:100%; }
.staff-app dialog.kit-sheet footer { padding-bottom:max(12px,env(safe-area-inset-bottom)); }
.kit-sample :focus-visible { outline:2px solid var(--tblr-primary); outline-offset:2px; }
@media (pointer:coarse) {
  .kit-sample :is(button,select,input:not([type=checkbox])),.kit-overlay button,.kit-check { min-height:44px; }
}
@media (max-width:600px) {
  .kit-scroll .kit-desktop-col { display:none; }
  .kit-scroll .table :is(th,td) { padding-inline:8px; }
  .kit-scroll .kit-sort { gap:3px; }
  .kit-scroll .kit-sort svg { width:12px; }
}

@media (min-width:1280px) { .kit-examples { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; } }
.kit-sample { --kit-action:var(--ink); --kit-on-action:#fff; --tblr-primary:var(--kit-action); }
.kit-sample[data-bs-theme="dark"] { --kit-action:color-mix(in srgb,var(--accent) 55%,white); --kit-on-action:var(--ink); }
.staff-app .kit-sample .btn-primary { background:var(--kit-action); color:var(--kit-on-action); border-color:var(--kit-action); }
.staff-app .kit-sample .btn-primary:hover { background:color-mix(in srgb,var(--kit-action) 84%,var(--kit-on-action)); }
.staff-app .kit-sample .btn-primary:active { box-shadow:inset 0 0 0 2px var(--kit-on-action); }
:is(.kit-sample,.kit-workspace) .nav-link.active { background:color-mix(in srgb,var(--accent) 16%,var(--tblr-bg-surface)); color:var(--tblr-body-color); box-shadow:inset 0 -2px var(--accent); }
:is(.kit-sample,.kit-workspace) .kit-empty { display:flex; flex-direction:row; align-items:center; gap:10px; }
.kit-empty p { margin:0; }
.kit-skeleton { display:grid; gap:8px; }
.kit-sort:focus-visible,.kit-record:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.kit-scroll th[aria-sort] .i { transform:rotate(180deg); }
.kit-scroll th[aria-sort=descending] .i { transform:rotate(0deg); }
.kit-filters .nav-link { padding:8px 12px; border:0; border-radius:8px; color:var(--tblr-secondary-color); }
.kit-filters .nav-link:focus-visible { outline:2px solid currentColor; }

.staff-app .kit-header .breadcrumb { margin:0 0 8px; font-size:13px; }
.staff-app .kit-header .btn-primary { background:var(--solid); border-color:var(--solid); color:var(--on-solid); }
.kit-row,.kit-status-list,.kit-check { display:flex; align-items:center; gap:12px; }
:is(.kit-sample,.kit-overlay) .kit-row { display:flex; justify-content:space-between; padding:12px 0; }
.kit-row strong { color:inherit; }
.staff-app .kit-row .btn { flex:none; white-space:nowrap; }
.kit-status-list { flex-wrap:wrap; }
.kit-check { padding:0; margin:12px 0; }
.kit-check .form-check-input { float:none; margin:0; }
.kit-field-pair { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr)); }
.kit-sample .kit-error { color:var(--bad); }
.staff-app .kit-sample input.is-invalid { border-color:var(--bad); }
.staff-app .kit-sample .btn-outline-danger { border-color:var(--bad); color:var(--bad); background:var(--tblr-bg-surface); }
.staff-app .kit-sample .btn-outline-danger:hover { background:var(--bad-bg); }

/* Staff Overview */
.kit-workspace { --tblr-font-sans-serif:var(--font); --tblr-card-spacer-x:16px; color:var(--tblr-body-color); }
.overview-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(0,1fr)); gap:12px; margin:0 0 24px; }
.staff-app .overview-metric,.staff-app .kit-panel { min-width:0; margin:0; border:1px solid var(--tblr-border-color); border-radius:8px; background:var(--tblr-bg-surface); color:inherit; }
.staff-app .overview-metric { container-type:inline-size; display:grid; grid-template-columns:minmax(0,1fr); align-content:start; gap:4px; padding:16px; text-decoration:none; text-align:start; font:inherit; }
.staff-app .overview-metric:is(:hover,:focus-visible) { border-color:var(--soft); background:var(--tblr-bg-surface-secondary); box-shadow:var(--tblr-box-shadow-sm); }
.staff-app .overview-metric:active { background:var(--tblr-bg-surface-secondary); }
.overview-metric .metric-label { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:500; }
.metric-label .i { flex:none; width:16px; height:16px; color:var(--soft); }
.overview-metric strong { overflow-wrap:anywhere; font-size:28px; line-height:34px; font-weight:600; letter-spacing:-.035em; font-variant-numeric:tabular-nums; }
@container (max-width:200px) { .overview-metric .metric-long { font-size:20px; } }
.metric-note { display:flex; align-items:center; justify-content:space-between; gap:4px; }
.metric-note .i { flex:none; width:14px; height:14px; }
.metric-note,.kit-workspace td small { color:var(--tblr-secondary-color); font-size:12px; }
.overview-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(240px,1fr); align-items:start; gap:16px; }
.overview-column { display:grid; gap:16px; min-width:0; }
.overview-load { display:inline-flex; align-items:center; gap:8px; }
.overview-load meter { width:48px; height:8px; border:none; background:transparent; }
.overview-load meter::-webkit-meter-bar { background:var(--tblr-border-color); border:0; }
.overview-load meter::-webkit-meter-optimum-value { background:var(--desk-green); }
.overview-load meter::-moz-meter-bar { background:var(--desk-green); }
.staff-app .kit-workspace .nav-link.active { color:var(--hi); background:color-mix(in srgb,var(--accent) 12%,var(--tblr-bg-surface)); }
.staff-app .kit-panel { display:block; padding:0; }
.kit-panel .card-header { padding:16px; min-height:0; }
.kit-panel .card-title { margin:0; font-size:16px; line-height:24px; font-weight:600; letter-spacing:-.015em; }
.kit-panel .kit-filters { margin:0; padding:8px 16px; gap:4px; }
.kit-panel .kit-scroll { max-height:32rem; border:0; border-radius:0 0 8px 8px; }
.kit-panel .kit-scroll :is(td,th) { padding:8px 16px; white-space:normal; overflow-wrap:anywhere; }
.kit-panel .kit-scroll th { color:var(--tblr-secondary-color); }
.kit-panel .kit-scroll td { font-size:14px; }
.kit-panel .kit-record-link { display:flex; flex-direction:column; align-items:start; justify-content:center; color:var(--hi); text-decoration:none; }
.kit-record-link span { font-weight:600; text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--line-2); }
.kit-record-link:hover span { text-decoration-color:currentColor; }
.kit-workspace td small { display:block; line-height:18px; }
.kit-workspace .kit-empty { margin:0; padding:16px 0; color:var(--tblr-secondary-color); }
.kit-overview .ask-box { margin-top:24px; }
.kit-panel .card-body { padding:16px; }
.kit-overview .ask-box[hidden] { display:none; }
.kit-overview .overview-phone-work,.kit-desk .desk-phone-only { display:none; }
@media (pointer:coarse) {
  .kit-workspace :is(.nav-link,.kit-sort,.btn) { display:inline-flex; align-items:center; min-height:44px; }
  .kit-workspace .kit-sort { min-width:44px; }
  .kit-panel .kit-record-link { min-height:44px; }
  .kit-panel .kit-scroll th { padding-block:0; }
}
@media (max-width:980px) {
  .overview-grid { grid-template-columns:minmax(0,1fr); }
  .overview-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:720px) {
  .overview-metrics { gap:8px; margin-bottom:16px; }
  .staff-app .overview-metric { padding:12px; }
  .kit-workspace .kit-header { gap:12px; margin-bottom:16px; }
  .kit-panel .kit-scroll :is(td,th) { padding-inline:12px; }
}
@media (max-width:600px) {
  .staff-app .kit-workspace .kit-header { display:grid; grid-template-columns:1fr auto; column-gap:8px; row-gap:4px; }
  .kit-workspace .kit-header > div:first-child { display:contents; }
  .kit-workspace .kit-header > :is(.d-flex,.head-actions) { grid-column:1 / -1; }
  .kit-workspace .kit-header > .btn { grid-column:2; grid-row:1; }
  .kit-workspace .kit-header p { grid-column:1 / -1; margin:0; }
  .kit-overview .overview-phone-work,.kit-desk .desk-phone-only { display:block; }
  .kit-workspace .kit-panel .kit-scroll { max-height:none; }
}

@media (min-width:1280px) { .queue-assignee { white-space:nowrap; } }

.kit-desk .desk-results { display:grid; gap:16px; margin-top:16px; }
.kit-desk .form-label { font-size:16px; font-weight:600; color:var(--hi); }
.kit-desk .input-icon input { min-height:44px; padding-inline-start:40px; }
.kit-desk .desk-help,.kit-desk .card-footer { display:flex; align-items:center; gap:8px 16px; flex-wrap:wrap; }
.kit-desk .desk-help { justify-content:space-between; margin-top:8px; color:var(--tblr-secondary-color); }
.kit-desk .card-footer { padding:8px 16px; }
.kit-desk :is(.desk-help,.card-footer) a { display:inline-flex; align-items:center; gap:4px; font-weight:500; color:var(--hi); }
.kit-desk :is(.desk-help,.card-footer) .i { width:14px; height:14px; }
@media (pointer:coarse) { .kit-desk :is(.desk-help,.card-footer) a { min-height:44px; } }

.job-phone { display:none; }
.staff-app .jobs-filters { display:grid; grid-template-columns:2fr repeat(3,minmax(0,1fr)); align-items:end; gap:12px; padding:16px; }
.jobs-filters .form-label { min-width:0; margin:0; }
.jobs-filters :is(select,input) { margin-top:4px; min-height:44px; }
.job-tables { display:grid; gap:16px; margin-top:16px; }
@media (max-width:820px) {
  .staff-app .jobs-filters { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:12px; }
  .jobs-filters > :first-child { grid-column:1 / -1; }
}
@media (max-width:600px) {
  .job-phone { display:grid; justify-items:start; gap:4px; margin-top:4px; }
  .kit-desk .desk-help:has(> [hidden]:only-child) { display:none; }
}
@media (max-width:420px) {
  .staff-app .top .brand-name { display:none; }
  .staff-app .top .brand { min-width:44px; min-height:44px; }
}

.kit-desk .kit-number .btn { padding-inline:10px; white-space:nowrap; }
.job-tables .kit-scroll { max-height:none; overflow:visible; }
.job-tables .kit-scroll thead { top:60px; }
@media (min-width:900px) {
  .job-records table { table-layout:fixed; }
  .job-records th:nth-child(1) { width:15%; }
  .job-records th:nth-child(2) { width:16%; }
  .job-records th:nth-child(3) { width:24%; }
  .job-records th:nth-child(4) { width:25%; }
  .job-records th:nth-child(n+5) { width:10%; }
}

.job-layout { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,2fr); align-items:start; gap:16px; }
.job-layout > * { min-width:0; }
.job-back,.job-badges,.job-links { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.job-back { margin-bottom:8px; color:var(--tblr-secondary-color); }
.kit-job .kit-header { margin-bottom:8px; }
.job-badges { margin-bottom:16px; }
.kit-job .kit-panel { margin:0; }
.job-links a,.job-layout .facts a { color:var(--hi); text-decoration:underline; }
.job-layout .facts { margin-top:0; }
.job-layout .facts dd { overflow-wrap:anywhere; }
:is(.job-other-steps,.job-tools) { border-top:1px solid var(--tblr-border-color); margin-top:12px; }
:is(.job-other-steps,.job-tools) > summary,.job-history > summary { padding:12px 0; font-weight:500; cursor:pointer; }
.job-history > summary { padding-inline:16px; }
@media (max-width:820px) { .job-layout { grid-template-columns:minmax(0,1fr); } }

.job-layout > div { display:grid; gap:16px; }
.job-layout > div > :empty { display:none; }
.invoice-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(240px,1fr); gap:16px; align-items:start; }
.invoice-list { list-style:none; margin:0; padding:0; }
.invoice-line { display:grid; grid-template-columns:2ch minmax(0,1fr) auto; gap:4px 12px; align-items:baseline; padding:12px 16px; border-bottom:1px solid var(--tblr-border-color); }
.invoice-line:last-child { border:0; }
.invoice-line[draggable] { cursor:grab; }
.invoice-description { overflow-wrap:anywhere; min-width:0; }
.invoice-description small { display:block; color:var(--tblr-secondary-color); }
.invoice-description strong { white-space:pre-wrap; }
.invoice-edit { display:inline-flex; align-items:center; gap:8px; min-height:44px; max-width:100%; padding:0; border:0; background:transparent; color:var(--hi); text-align:left; }
.invoice-edit .i { width:14px; height:14px; color:var(--tblr-secondary-color); }
.invoice-edit:hover strong { text-decoration:underline; }
.invoice-description:has(.invoice-edit) small { margin-top:-4px; }
.invoice-actions { grid-column:2 / -1; display:flex; flex-wrap:wrap; gap:8px; }
.invoice-amount,.invoice-sums dd { font-variant-numeric:tabular-nums; white-space:nowrap; }
.invoice-sums { display:grid; grid-template-columns:1fr auto; gap:8px; }
.invoice-sums dt { font-weight:400; }
.invoice-sums dd { margin:0; text-align:right; }
.invoice-prices { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:12px; }
.invoice-layout .btn { min-height:44px; min-width:44px; }
.invoice-settings-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr)); align-items:start; gap:16px; }
.invoice-settings .invoice-setting-row { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.package-prices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.package-components .kit-row { display:grid; gap:8px; padding:12px 0; overflow-wrap:anywhere; }
.package-components .btn { min-height:44px; }
@media (max-width:575px) {
  .invoice-layout .card-header:has(.invoice-order) .card-title { flex-basis:100%; }
}
.invoice-settings-fields .kit-check { min-height:44px; margin:0; }
.invoice-settings .btn { min-width:44px; min-height:44px; }
.invoice-tax-list { display:grid; grid-template-columns:minmax(0,1fr) auto; }
.invoice-tax-list dt,.invoice-tax-list dd { padding:8px 0; margin:0; border-bottom:1px solid var(--tblr-border-color); }
.invoice-tax-list dd { text-align:right; }
.invoice-settings .kit-disclosure { min-height:44px; }
.shop-settings-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; align-items:start; }
.shop-fields { min-width:0; border:0; padding:0; margin:0; display:grid; gap:16px; }
.shop-fields .field { margin:0; }
.shop-fields .card-body,.shop-contact-pair { display:grid; gap:12px; }
.shop-contact-pair { grid-template-columns:minmax(8rem,1fr) minmax(0,2fr); }
.staff-app .shop-preview { position:sticky; top:72px; scroll-margin-top:72px; }
.shop-preview-tools { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.shop-pages canvas { display:block; width:100%; height:auto; border:1px solid var(--tblr-border-color); }
.shop-pages canvas + canvas { margin-top:8px; }
.shop-pages-zoom { overflow:auto; max-height:70vh; }
.shop-pages-zoom canvas { min-width:8.5in; }
.staff-app .shop-preview-jump,.shop-preview-tools [hidden] { display:none; }
@media (max-width:850px) {
  .shop-settings-grid,.shop-contact-pair { grid-template-columns:minmax(0,1fr); }
  .staff-app .shop-preview { position:static; }
  .staff-app .shop-preview-jump { display:inline-flex; margin-bottom:16px; }
}
@media (max-width:820px) {
  .invoice-layout { grid-template-columns:minmax(0,1fr); }
  .invoice-line { padding:12px; gap:4px 8px; }
}
.kit-job .card-body .kit-scroll { margin-block:8px; border:1px solid var(--tblr-border-color); border-radius:8px; }
.kit-job .card-body .kit-scroll :is(td,th) { padding-inline:8px; }
.kit-job .card-body .empty { padding:8px 0; text-align:start; }
.kit-job .kit-scroll select,.kit-job .voice { max-width:100%; }
.job-file { display:grid; overflow-wrap:anywhere; }
.job-file img { width:48px; height:48px; object-fit:cover; }
.job-video { width:100%; max-height:70vh; }
.job-manage { margin-left:auto; position:relative; }
.job-manage > summary { padding:8px; cursor:pointer; }
.staff-app .job-manage .card { position:absolute; right:0; z-index:3; padding:8px; min-width:9rem; }
.job-step-options summary { display:list-item; padding:8px; cursor:pointer; }

@media (max-width:600px) {
  .staff-app .jobs-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .jobs-filters > :first-child { grid-column:auto; }
}

.desk-requests tbody tr { position:relative; }
.desk-requests .kit-record-link::after { content:""; position:absolute; inset:0; }
.desk-requests .kit-number button { position:relative; z-index:1; }
.kit-job .kit-number .price { white-space:nowrap; overflow-wrap:normal; }
@media (pointer:coarse) { .kit-job :is(.price,.job-step-options summary,.job-manage summary) { min-height:44px; } }

.job-back a { color:var(--solid); }
summary.kit-disclosure { display:flex; align-items:center; gap:6px; list-style:none; }
.kit-disclosure::-webkit-details-marker { display:none; }
.kit-disclosure .i { width:16px; height:16px; transform:rotate(-90deg); }
details[open] > .kit-disclosure .i { transform:none; }
@media (min-width:951px) {
  .job-filtered th:nth-child(3),.job-filtered th:nth-child(4) { width:30%; }
}

/* Counter register */
.kit-till .sell { --sell-pad:16px; }
.kit-till .sell-side { position:sticky; top:74px; }
.kit-till .sell-register { display:grid; gap:16px; min-width:0; }
.staff-app .kit-till .sell-scan-area { padding:16px; background:var(--tblr-bg-surface); }
.kit-till .sell-scan-head label { font:600 16px/24px var(--font); letter-spacing:normal; }
.kit-till .sell-scan input { width:100%; min-width:0; }
.kit-till .sell-order-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 16px; }
.kit-till .sell-cart-lines table { table-layout:fixed; }
.kit-till .sell-cart-lines th:nth-child(2) { width:9rem; }
.kit-till .sell-cart-lines th:last-child { width:6.5rem; }
.kit-till .sell-cart-lines small,.kit-till td small { display:block; }
.kit-till .sell-qty { display:inline-flex; max-width:100%; }
.kit-till .sell-cart-lines .sell-edit { font-weight:550; line-height:1.4; }
.kit-till .sell-cart-lines .kit-empty { padding:16px 0; }
.kit-till .sell-quick .card-header { justify-content:space-between; margin:0; }
.kit-till .sell-picks { max-height:none; overflow:visible; }
.kit-till .sell-picks .sell-pick-part { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:4px 8px; padding:10px; }
.sell-pick-part small { grid-column:1/-1; color:var(--soft); font-size:12px; }
.kit-till .sell-pick-part strong,.kit-till .sell-fav-price { font-size:14px; font-weight:550; color:var(--hi); }
.kit-till .sell-fav-price { font-variant-numeric:tabular-nums; }
.kit-till .sell-due { background:var(--tblr-bg-surface-secondary); color:var(--hi); border-bottom:1px solid var(--tblr-border-color); }
.kit-till .sell-due h2,.kit-till .sell-tender legend { font-size:14px; font-weight:550; }
.kit-till .sell-due strong { font-size:36px; font-weight:600; }
.kit-till .sell-more,.kit-till .actions { justify-content:start; }
.kit-till .sell-warning { display:flex; align-items:start; gap:8px; margin:8px 16px; padding:8px 12px; color:var(--hi); background:var(--warn-bg); border-color:var(--warn); }
.kit-till .sell-warning .i { flex:none; margin-top:2px; width:16px; height:16px; }
.kit-till .sell-records .actions { gap:8px; margin:0; }
.kit-till .btn-ghost-secondary { box-shadow:none; color:var(--text); }
.kit-till .head-actions a:not(:hover):not(:active) { color:var(--hi); border-color:var(--line-2); background:var(--panel); }
.kit-till .sell-more + p { margin:12px 0 0; }
.kit-till .sell-jump .i { width:16px; height:16px; }
@media (max-width:600px) {
  .kit-till .sell-cart-lines :is(td,th) { padding-inline:8px; }
  .kit-till .sell-cart-lines th:nth-child(2) { width:4.2rem; }
  .kit-till .sell-cart-lines th:last-child { width:5.2rem; }
  .kit-till .sell-qty > .btn { display:none; }
  .kit-till .sell-picks { grid-template-columns:minmax(0,1fr); }
}
@media (pointer:coarse) {
  .kit-till :is(.link,.sell-edit,.sell-qty button,.nav-link) { min-height:44px; }
  .kit-till .sell-qty button { min-width:44px; }
  .kit-till .sell-cart-lines th:nth-child(2) { width:10.5rem; }
}
@media (pointer:coarse) and (max-width:600px) {
  .kit-till .sell-cart-lines th:nth-child(2) { width:4.2rem; }
}

@media (max-width:720px) {
  .kit-till .sell-side { position:static; }
  .staff-app .kit-till .kit-header .head-actions { display:flex; align-items:center; gap:8px; grid-row:3; grid-column:1/-1; margin-top:4px; }
  .kit-till .head-actions .btn { padding-inline:8px; }
}

.kit-till .sell-after { max-width:46rem; display:grid; gap:16px; }
.kit-till .sell-after .card-title { margin:0; }
.kit-till.sell-done .sell-next { margin:0; padding:12px 16px; }
.kit-till.sell-done .receipt-amount { color:var(--hi); font-size:36px; font-weight:600; line-height:1.2; }
@media print { .kit-till .noprint { display:none !important; } }

@media (min-width:601px) { .kit-till td .sell-phone-payment { display:none; } }

@media (max-width:600px) { .kit-till .sell-receipt-tools { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); } }

.kit-till .kit-scroll td.kit-number { white-space:nowrap; overflow-wrap:normal; }
.kit-till .kit-scroll td.kit-number small { white-space:normal; }
.kit-till .kit-scroll th { text-transform:none; letter-spacing:normal; }
@media (max-width:600px) {
  .kit-till .sell-records th:last-child { width:6.75rem; }
  .kit-till .sell-records :is(th,td) { padding-inline:8px; }
}

/* Parts counter */
.kit-parts,.kit-price { display:grid; gap:16px; }
.kit-parts > .kit-header,.kit-price > .kit-header { margin-bottom:0; }
.kit-parts .parts-toolbar,.parts-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.parts-tools { position:relative; }
.parts-tools summary,.parts-extension summary { display:flex; align-items:center; gap:6px; cursor:pointer; list-style:none; }
.parts-tools summary::-webkit-details-marker,.parts-extension summary::-webkit-details-marker { display:none; }
.parts-tools > .card { position:absolute; z-index:4; right:0; top:100%; min-width:10rem; margin:4px 0 0; padding:4px; }
.parts-tools :is(a,button) { display:flex; align-items:center; padding:8px 12px; text-align:left; text-decoration:none; background:transparent; border:0; color:var(--hi); font:inherit; border-radius:6px; }
.parts-tools :is(a,button):hover { background:var(--panel-2); }
.parts-extension > summary { padding:12px 16px; }
.parts-extension > .card { margin:0; border:0; }
.kit-parts .parts-phone { display:none; }
.kit-parts .lookup-row { display:flex; align-items:center; gap:8px; }
.kit-parts .lookup-row input { flex:1; min-width:0; }
.parts-results:not(:empty) { display:grid; gap:12px; margin-top:16px; }
.kit-workspace .part-prices td.kit-number,.parts-queue td.kit-number { white-space:nowrap; }
@media (max-width:600px) {
  .staff-app .kit-parts .kit-header .parts-toolbar { display:flex; grid-column:1/-1; grid-row:3; margin-top:4px; }
  .kit-parts .parts-phone { display:grid; gap:4px; margin-top:4px; font-size:12px; }
  .parts-tools > .card { left:0; right:auto; }
  .parts-queue .parts-actions { flex-direction:column; align-items:stretch; gap:4px; }
  .kit-parts .kit-scroll :is(td,th) { padding-inline:8px; }
}
@media (pointer:coarse) {
  .parts-tools :is(a,button,summary),.parts-extension > summary { min-height:44px; }
}

.part-prices .input-icon { flex:1; min-width:0; }
.part-prices .input-icon input { width:100%; min-height:44px; padding-inline-start:40px; }
.part-prices .lookup-row { display:flex; gap:8px; }
.part-prices .parts-stock,.part-prices .alt > .part-head { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; padding:8px 16px; }
.part-prices .parts-phone { display:none; }
@media (max-width:600px) { .part-prices td .parts-phone { display:block; } }

.price-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.price-entry,.price-tools { display:flex; align-items:center; gap:8px; }
.price-entry input { flex:1; min-width:0; min-height:44px; }
.price-tools { flex-wrap:wrap; gap:8px 16px; margin-top:12px; }
.price-tools a { color:var(--solid); }
.price-notice { margin:8px 0 0; color:var(--soft); }
.price-notice:empty { display:none; }
.price-camera .scanner { aspect-ratio:4/3; margin-top:12px; max-height:32vh; }
.pc-result .card-footer { padding:8px 16px; }
.pc-result .price-part { margin:0; font-size:18px; font-weight:600; }
.pc-result .price-sku,.pc-result small { color:var(--soft); font-size:13px; }
.pc-result small { display:block; margin-top:8px; }
.pc-result .pc-price { color:var(--hi); font-size:clamp(32px,4vw,48px); font-weight:600; margin:12px 0; }
@media (max-width:800px) { .price-layout { grid-template-columns:minmax(0,1fr); } }
@media (pointer:coarse) { .price-tools a { display:inline-flex; align-items:center; min-height:44px; } }

.parts-order-toggle { display:inline-flex; align-items:center; gap:4px; list-style:none; min-height:44px; cursor:pointer; }
.parts-order-toggle .i { width:14px; height:14px; }
.parts-order-toggle::-webkit-details-marker { display:none; }

.parts-queue .parts-actions .btn { white-space:nowrap; padding-inline:8px; }
.kit-parts .kit-scroll th { text-transform:none; letter-spacing:normal; }
@media (max-width:600px) {
  .staff-app .kit-price .kit-header > div:first-child { display:block; grid-column:1; }
  .kit-parts .kit-filters { padding-inline:8px; gap:2px; }
  .kit-parts .kit-filters .nav-link { padding-inline:8px; }
}

.kit-price .kit-scroll td.kit-number,.stock-walk .parts-actions .btn { white-space:nowrap; }
.stock-walk .kit-panel > .practice { padding:8px 16px; }

.kit-job .part-prices :is(th,.btn) { white-space:nowrap; }
.kit-price .kit-scroll td .price-change-phone { display:none; }
@media (max-width:600px) {
  .kit-price .kit-scroll td .price-change-phone { display:block; }
}

.kit-workspace .kit-scroll .table th { text-transform:none; letter-spacing:normal; }
.kit-workspace .job-back a { color:var(--solid); text-decoration:underline; text-underline-offset:3px; }
.stock-walk .actions { display:flex; flex-wrap:wrap; gap:8px; }
.price-tools .btn.btn-outline-secondary:disabled { background:transparent; color:var(--soft); border-color:var(--line-2); opacity:.7; }
.order-actions .order-menu { display:none; }
@media (max-width:600px) {
  .parts-queue .order-actions { display:grid; grid-template-columns:auto auto; justify-content:end; align-items:start; gap:4px; }
  .order-actions .desktop-cancel { display:none; }
  .order-actions .order-menu { display:block; }
  .order-menu summary { list-style:none; min-width:44px; }
  .order-menu summary::-webkit-details-marker { display:none; }
  .order-menu .row-cancel { display:flex; margin-top:4px; }
}

/* Email and Contacts: web/mail.css. */

.kit-inbox .kit-scroll { max-height:none; }
.kit-inbox tr { position:relative; }
.inbox-message { display:grid; gap:3px; }
.notification-link { color:var(--hi); font:inherit; text-align:start; background:none; border:0; padding:0; text-decoration:none; }
.notification-link::after { content:""; position:absolute; inset:0; }
.is-unread .notification-link { font-weight:600; }
.notification-link:hover,.notification-link:focus-visible { text-decoration:underline; }
.inbox-time { display:flex; justify-content:flex-end; align-items:center; gap:8px; }
.inbox-menu { position:relative; z-index:1; }
.inbox-menu summary { list-style:none; min-width:44px; min-height:44px; }
.inbox-menu summary::-webkit-details-marker { display:none; }
.inbox-menu button { display:block; margin-top:4px; white-space:nowrap; }
@media (max-width:600px) {
  .inbox-time { flex-direction:column; align-items:flex-end; gap:4px; }
  .kit-inbox td.kit-number { width:6.5rem; }
}

.kit-calendar,.calendar-layout,.calendar-queues { display:grid; gap:16px; }
.kit-calendar { min-width:0; }
.kit-calendar > .kit-header,.kit-calendar .kit-panel { margin:0; }
.calendar-layout { grid-template-columns:minmax(0,1fr); align-items:start; }
.calendar-aside table[aria-label="Waiting on you"] th:last-child { width:6.5rem; }
.calendar-aside .btn,.day-agenda td:first-child { white-space:nowrap; }
.calendar-queues:empty,.calendar-aside > :empty { display:none; }
.calendar-aside { display:grid; min-width:0; gap:16px; }
.calendar-actions,.calendar-tools,.month-nav { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.calendar-month .card-header { justify-content:space-between; flex-wrap:nowrap; }
.calendar-month .card-title { white-space:nowrap; }
.month-nav { flex-wrap:nowrap; gap:4px; }
.month-nav .btn { padding-inline:10px; }
.month-nav button:first-child svg { transform:rotate(180deg); }
.month-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.month-grid .weekday { padding:6px 8px; color:var(--soft); background:var(--panel-2); font-size:12px; }
.month-day { display:flex; flex-direction:column; align-items:stretch; gap:4px; min-height:82px; min-width:0; padding:5px; text-align:start; color:var(--hi); background:var(--panel); border:0; border-top:1px solid var(--line); border-right:1px solid var(--line); font:inherit; }
.month-day:nth-child(7n) { border-right:0; }
.month-day.outside { background:var(--panel-2); color:var(--soft); }
.month-day:hover { background:var(--panel-2); }
.month-day[aria-pressed="true"] { box-shadow:inset 0 0 0 2px var(--solid); }
.month-day:focus-visible { outline:2px solid var(--solid); outline-offset:-4px; }
.date-number { display:inline-grid; place-items:center; align-self:start; width:24px; height:24px; font-variant-numeric:tabular-nums; font-weight:500; }
.month-day[aria-current="date"] .date-number { background:var(--solid); color:var(--on-solid); border-radius:50%; }
.day-preview { display:grid; gap:3px; min-width:0; }
.day-preview small { padding-inline:4px; color:var(--soft); font-size:11px; }
.day-event { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:2px 4px; border-left:2px solid var(--solid); background:var(--panel-2); font-size:12px; line-height:17px; }
.day-event.type-pto { border-color:var(--warn); }
.day-event.type-meeting { border-color:var(--ok); }
.calendar-record { background:none; border:0; font:inherit; font-weight:600; color:var(--hi); text-align:start; padding:0; }
.kit-calendar .agenda-item { display:flex; flex-direction:column; align-items:start; justify-content:center; }
.kit-calendar .agenda-item small { margin:0; font-weight:400; }
.calendar-record:hover,.calendar-record:focus-visible { text-decoration:underline; text-underline-offset:3px; }
.kit-calendar .kit-scroll { max-height:none; }
.kit-calendar .contact-methods { display:grid; justify-items:start; }
.contact-methods a { color:var(--solid); }
@media (min-width:1180px) { .calendar-layout { grid-template-columns:minmax(0,2.3fr) minmax(16rem,1fr); } }
@media (pointer:coarse) {
  .month-nav button,.calendar-record,.contact-methods a,.calendar-attendees label { min-height:44px; }
  .calendar-attendees { gap:0 16px; }
  .month-nav button { min-width:44px; }
}
@media (max-width:600px) {
  .staff-app .kit-calendar .kit-header > div:first-child { display:block; grid-column:1/-1; }
  .staff-app .kit-calendar .calendar-actions { display:flex; grid-column:1/-1; gap:6px; }
  .calendar-actions .btn { padding-inline:10px; }
  .calendar-month .card-header { padding:8px 12px; }
  .month-grid .weekday { padding-inline:0; text-align:center; }
  .month-day { align-items:center; gap:0; padding:3px 0; min-height:46px; }
  .date-number { align-self:center; }
  .day-preview { display:flex; gap:3px; }
  .day-event { width:5px; height:5px; padding:0; border:0; border-radius:50%; background:var(--solid); }
  .day-event.type-pto { background:var(--warn); }
  .day-event.type-meeting { background:var(--ok); }
  .day-event span,.day-preview small { display:none; }
}

/* Money */
.money-sections,.close-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.money-sections > a { margin-inline-start:auto; }
.money-sections .money-picker { width:auto; max-width:100%; }
.close-workspace { display:grid; gap:16px; }
.close-report { display:grid; gap:16px; min-width:0; }
.close-journal th[scope=rowgroup] { background:var(--tblr-bg-surface-secondary); text-transform:none; letter-spacing:normal; }
.close-journal th[scope=rowgroup] small { font-size:12px; font-weight:400; }
.staff-app .close-workspace .kit-header { display:flex; flex-wrap:wrap; margin:0; }
.close-workspace .kit-header > div { display:block; }
.close-workspace .kit-header .close-actions { display:flex; }
.close-workspace .card-body { padding:16px; }
.close-workspace .kit-scroll { max-height:none; }
.close-workspace .kit-scroll td.kit-number { white-space:nowrap; overflow-wrap:normal; }
.close-workspace .kit-scroll .close-phone { display:none; }
@media (max-width:600px) { .close-workspace .kit-scroll .close-phone { display:block; } }
.close-workspace .btn,.close-sheet .form-control { min-height:44px; }
.close-workspace [hidden] { display:none !important; }
.close-figures { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0 0 12px; }
.kit-panel > .close-figures { margin:16px; }
.close-figures dt { font-size:13px; font-weight:500; color:var(--soft); }
.close-figures dd { margin:2px 0 0; font-weight:600; font-size:clamp(16px,2vw,23px); overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.close-calculation { margin:8px 0 12px; }
.close-calculation summary { min-height:44px; }
.close-calculation dl { margin:0; max-width:28rem; }
.close-calculation dl div { display:flex; justify-content:space-between; gap:16px; }
.close-calculation dd { font-variant-numeric:tabular-nums; }
.close-sheet { border-top:1px solid var(--line); padding-top:16px; }
.close-sheet fieldset { border:0; padding:0; margin:0; min-width:0; }
.close-sheet legend { float:none; width:auto; margin:0 0 8px; font-weight:600; font-size:16px; }
.close-sheet .close-denoms { display:grid; grid-template-columns:repeat(auto-fit,minmax(68px,1fr)); gap:8px; margin:8px 0 16px; }
.close-sheet .close-denoms legend { font-size:14px; }
.close-sheet label { display:grid; gap:4px; margin:0; font-weight:500; }
.close-sheet .close-other { max-width:11rem; margin-bottom:16px; }
.close-sheet .close-actions { margin-top:12px; }
.kit-money .money-figures { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0 0 20px; padding:0; border:1px solid var(--line); border-radius:8px; background:var(--panel); }
.money-figures > div { padding:16px 20px; }
.money-figures > div + div { border-inline-start:1px solid var(--line); }
.money-figures dt { color:var(--soft); font-weight:500; }
.money-figures dd { margin:3px 0 0; color:var(--hi); font-size:clamp(20px,2vw,28px); font-weight:600; line-height:1.25; letter-spacing:-.035em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.money-figures small,.money-section td small { color:var(--soft); }
.money-nav { margin-bottom:12px; }
.money-nav .kit-filters { margin:0; }
.money-nav .money-picker,.kit-money .money-mobile { display:none; }
.money-section { display:grid; gap:16px; }
.money-section > :empty { display:none; }
.money-section .kit-panel + .kit-panel { margin-top:16px; }
.money-section > .kit-panel + .kit-panel { margin-top:0; }
.kit-money .kit-scroll { max-height:none; }
.kit-money td.kit-number { white-space:nowrap; overflow-wrap:normal; }
.money-tools { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:12px 16px; }
.money-tools input[type=search] { flex:1 1 12rem; max-width:28rem; }
.staff-app dialog .money-detail { display:grid; gap:16px; border:0; padding:0; }
.money-detail .row-side { display:flex; flex-direction:row; flex-wrap:wrap; justify-content:start; gap:8px; }
.staff-app dialog .money-detail > .row-side { width:100%; max-width:none; flex-direction:row; align-items:center; }
.money-detail .row-side .btn { height:auto; min-height:40px; white-space:nowrap; }
.bank-review .table th { text-transform:none; letter-spacing:normal; }
.bank-review .kit-scroll { max-height:none; }
.bank-review .kit-scroll td { white-space:normal; }
.bank-review .kit-scroll small { display:block; margin:4px 0; color:var(--soft); }
.money-tools select { flex:0 1 auto; width:auto; }
.money-record { color:var(--hi); font:inherit; font-weight:600; padding:0; border:0; background:none; text-align:start; text-decoration:underline; text-decoration-color:var(--line-2); text-underline-offset:3px; }
.money-record:hover { text-decoration-color:currentColor; }
.money-section .alert-line { margin:12px 16px 0; }
.statement-preview { height:46vh; }
@media (pointer:coarse) { .money-record { min-height:44px; } }
@media (max-width:600px) {
  .kit-money .money-figures { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:12px; }
  .kit-money.money-ledger .money-figures { display:none; }
  .money-figures > div { padding:10px 12px; }
  .money-figures > div:first-child { grid-column:1/-1; border-bottom:1px solid var(--line); }
  .money-figures > div:nth-child(2) { border-inline-start:0; }
  .money-nav .kit-filters { display:none; }
  .money-nav .money-picker,.kit-money .money-mobile { display:block; }
  .money-tools { padding:10px 12px; }
  .money-tools input[type=search] { min-width:0; flex-basis:9rem; }
  .kit-money .kit-scroll .kit-record-link { min-height:0; }
  .kit-money .kit-record-link:has(+ .money-mobile) { min-height:44px; }
  .kit-money .money-mobile .btn { margin-top:4px; }
}
.money-figures > div:has(.money-figure-action) { position:relative; }
.money-figure-action { display:inline-flex; align-items:center; gap:6px; background:none; border:0; color:inherit; font:inherit; padding:0; }
.money-figure-action svg { width:14px; height:14px; }
.money-figure-action::after { content:""; position:absolute; inset:0; }
.money-figures > div:has(.money-figure-action:is(:hover,:focus-visible)) { background:var(--panel-2); box-shadow:inset 0 0 0 1px var(--line-2); }
.collection-actions,.collection-methods { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.collection-actions :is(button,summary) { white-space:nowrap; }
.collection-menu summary { list-style:none; min-width:40px; }
.collection-menu summary::-webkit-details-marker { display:none; }
.collection-menu[open] { display:grid; gap:4px; }
@media (pointer:coarse) { .collection-menu summary { min-width:44px; } }
.collection-methods { align-items:stretch; flex-direction:column; }
@media (max-width:600px) {
  .kit-money .collection-actions { justify-content:end; }
  .kit-money .collection-actions .btn { margin:4px 0 0; }
}

/* Staff inventory and draft editor */
.kit-listings .card-header { justify-content:space-between; flex-wrap:wrap; gap:8px; }
.kit-listings .kit-scroll { max-height:none; }
.kit-listings .kit-filters { gap:4px; }
.listing-count { margin-inline-start:6px; color:var(--soft); font-variant-numeric:tabular-nums; }
.listing-identity { display:flex; align-items:center; gap:12px; min-width:0; }
.listing-identity img,.listing-no-photo { flex:none; width:64px; height:48px; border-radius:6px; background:var(--panel-2); object-fit:cover; }
.listing-no-photo { display:grid; place-items:center; color:var(--soft); }
.listing-phone-state { display:none; }
.kit-listings .kit-scroll td.kit-number { white-space:nowrap; }
.kit-listing-editor .listing-dock { border:1px solid var(--line); box-shadow:var(--tblr-box-shadow-sm); }
.kit-listing-editor .listing-modes { margin:0; gap:4px; }
.kit-listing-editor .listing-form { display:grid; gap:16px; }
.kit-listing-editor .listing-edit:not([data-view=write]) .listing-form { display:none; }
.kit-listing-editor .listing-section:not([open]) > summary { border-bottom:0; }
.kit-listing-editor .listing-side header { padding:12px 16px; }
.kit-listing-editor .helper { padding:16px; }
.kit-listing-editor .helper-intro { margin:4px 0 16px; }
.kit-listing-editor .listing-section :is(input:not([type=file]),select,textarea) { width:100%; }
.kit-listing-editor .photo-actions select { width:auto; max-width:100%; padding-inline-end:2rem; }
.kit-listing-editor .listing-section summary::marker { content:''; }
@media (pointer:coarse) {
  .listing-identity a,.photo-actions :is(button,select) { display:inline-flex; align-items:center; min-height:44px; }
}
@media (max-width:600px) {
  .kit-listings .card-header > .input-icon { flex:1 0 100%; }
  .listing-identity { gap:8px; }
  .listing-identity img,.listing-no-photo { width:44px; height:44px; }
  .listing-phone-state { display:flex; flex-wrap:wrap; }
  .kit-listings .kit-scroll td.kit-number { width:6.5rem; }
  .staff-app .kit-listing-editor .kit-header { display:flex; flex-direction:column; align-items:stretch; gap:8px; }
  .kit-listing-editor .kit-header > div:first-child { display:block; }
  .kit-listing-editor .kit-header .listing-management { display:flex; }
  .kit-listing-editor .listing-modes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .kit-listing-editor .listing-dock { position:static; }
  .kit-listing-editor .listing-modes .nav-link { padding-inline:8px; justify-content:center; text-align:center; }
}

.kit-website > .kit-filters { margin:0 0 16px; gap:4px; }
.kit-website .card-header { justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.kit-website .card-header p { margin:4px 0 0; }
.kit-website .kit-scroll { max-height:none; }
.kit-website .website-link { color:var(--solid); text-decoration:underline; text-underline-offset:3px; }
.kit-website .kit-scroll :is(.btn,time) { white-space:nowrap; }
.website-flags { display:flex; flex-wrap:wrap; gap:4px 8px; }
@media (pointer:coarse) {
  .kit-website .website-link { display:inline-flex; align-items:center; min-height:44px; }
}
.website-excerpt { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.kit-website .kit-scroll .website-phone { display:none; }
.website-change { display:grid; gap:16px; overflow-wrap:anywhere; }
.website-change h3 { font-size:14px; margin:0 0 4px; }
.website-change p { margin:0; }
@media (max-width:600px) {
  .kit-website .card-header > .input-icon { flex:1 0 100%; }
  .kit-website .kit-scroll .website-phone { display:block; }
  .kit-website .kit-scroll .website-excerpt.website-phone { display:-webkit-box; }
  .kit-website .kit-scroll :is(td,th) { padding-inline:8px; }
}

/* Keep the catalog and the sale in place while either one grows. */
.register-workspace { --sell-pad:14px; }
.staff-app .register-workspace > .kit-header { margin-bottom:10px; }
.register-links,.register-tabs,.register-categories,.register-quick,.register-receipt-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.register-tabs { margin-bottom:12px; }
.register-tabs .nav-link { display:inline-flex; align-items:center; gap:6px; text-decoration:none; }
.register-shelf { display:inline-flex; align-items:center; justify-content:center; padding:1px 7px; border-radius:8px; font-size:12px; font-weight:550; background:var(--panel-2); color:var(--text); }
.register-panes { display:grid; grid-template-columns:minmax(0,1.18fr) minmax(0,1fr); gap:16px; height:calc(100dvh - 205px); min-height:490px; }
.register-find { overflow:auto; }
.staff-app .register-cart { display:grid; grid-template-rows:auto minmax(72px,1fr) auto; overflow:hidden; }
.register-cart-scroll { overflow:auto; min-height:0; }
.register-cart-title,.register-find-head,.register-fav-head,.register-applied,.register-customer summary { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.register-find-head,.register-fav-head,.register-cart-title { padding:12px 16px; }
.register-find-head label,.register-customer summary { font-weight:600; }
.register-search { display:flex; gap:6px; margin:0 16px 12px; }
.register-search input { flex:1; min-width:0; }
.register-find .sell-found:not(:empty) { margin:0 16px 12px; }
.register-find .sell-quick { border:0; box-shadow:none; margin:0; border-radius:0; border-block:1px solid var(--line); }
.register-find .kit-scroll { max-height:none; }
.register-fav-head .kit-filters,.register-find .register-categories { display:flex; flex-wrap:wrap; gap:3px; margin:0; padding:0; }
.register-find .register-categories { padding:0 16px 10px; }
.register-find .sell-pick-part { display:grid; gap:3px; border:0; background:transparent; padding:0; color:var(--hi); text-align:left; }
.register-find .sell-pick-part strong { color:var(--solid); font-weight:600; text-decoration:underline; text-decoration-color:var(--line-2); text-underline-offset:3px; }
.register-find .kit-scroll :is(td,th) { padding:8px 10px; }
.register-tiles { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(145px,100%),1fr)); gap:8px; padding:2px 14px 12px; }
.register-tile { display:grid; align-content:start; gap:6px; min-width:0; padding:8px; border:1px solid var(--line); border-radius:8px; overflow-wrap:anywhere; }
.register-tiles .register-shelf { justify-self:start; }
.register-shelf.in-stock { background:var(--desk-tint); color:var(--desk-green); }
.register-shelf.out-of-stock { background:var(--warn-bg); color:var(--warn); }
.register-arrange { margin:8px 12px; }
.register-other,.register-options { padding:12px 16px; }
.register-customer { grid-area:auto; padding:12px 16px; margin:0; background:var(--panel-2); border-bottom:1px solid var(--line); max-height:30vh; overflow:auto; }
.register-customer summary,.register-options summary { cursor:pointer; }
.register-customer summary span { color:var(--solid); font-size:13px; text-decoration:underline; }
.register-customer .sell-pick,.register-options[open] > div { margin-top:8px; }
.register-line { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 10px; align-items:center; padding:12px 16px; border-top:1px solid var(--line); }
.register-line small { grid-column:1/-1; color:var(--soft); }
.register-line .sell-edit { display:inline-flex; align-items:center; gap:6px; padding:0; font-weight:600; }
.register-line .sell-edit .i { flex:none; width:14px; height:14px; }
.register-line-amount { align-self:start; font-variant-numeric:tabular-nums; }
.register-qty { display:flex; align-items:center; }
.register-qty input { width:4rem; text-align:center; border-radius:0; min-height:38px; }
.register-line > .btn { justify-self:end; font-size:12px; }
.register-cart .sell-empty { margin:16px; }
.register-cart .sell-warning { color:var(--hi); background:var(--warn-bg); padding:8px 12px; margin:8px; border-left:3px solid var(--warn); }
.register-cart .sell-due { display:flex; align-items:baseline; justify-content:space-between; padding:10px 16px 0; color:var(--hi); background:var(--panel); border-top:1px solid var(--line); border-radius:0; }
.register-cart .sell-due strong { font-size:30px; }
.register-cart .sell-checkout-body { padding:6px 16px 12px; }
.register-cart .sell-sum { margin-bottom:8px; font-variant-numeric:tabular-nums; }
.register-finish { display:grid; gap:4px; }
.register-finish .btn-primary { min-height:44px; }
.register-cart .sell-count { font-size:13px; font-weight:500; color:var(--soft); }
.register-command-list,.register-payment { display:grid; gap:12px; }
.register-command-list { margin-top:12px; }
.register-command-list button { justify-content:space-between; }
.register-balance,.register-methods { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.register-balance { padding:12px; background:var(--panel-2); border-radius:8px; }
.register-balance strong { display:block; font-size:24px; color:var(--hi); font-variant-numeric:tabular-nums; }
.register-switch [aria-pressed=true] { background:var(--desk-tint); color:var(--desk-green); border-color:var(--desk-green); }
.register-quick { margin:0 0 10px; }
.register-payment .sell-change { margin:0; font-size:16px; }
.register-result { min-height:calc(100dvh - 10rem); display:grid; place-items:center; }
.staff-app .register-result .register-paid { width:min(100%,32.5rem); margin:0; padding:24px; }
.staff-app .register-paid .receipt-kind { color:var(--ok); font-size:22px; letter-spacing:normal; text-transform:none; }
.register-paid .receipt-kind .i { width:32px; height:32px; padding:6px; border-radius:50%; background:var(--ok); color:var(--panel); }
.staff-app dialog .register-methods .btn { background:var(--panel); border-color:var(--line-2); color:var(--hi); }
.staff-app dialog .register-methods .btn[aria-pressed=true] { background:var(--solid); color:var(--on-solid); border-color:var(--solid); }
@media (hover:hover) {
  .staff-app dialog .register-methods .btn[aria-pressed=false]:hover { background:var(--panel-2); }
}
.register-paid h1 { display:flex; align-items:center; gap:8px; }
.register-paid .sell-change { font-size:24px; }
.register-receipt-actions { margin:16px 0 8px; }
.register-paid > .btn-primary { width:100%; }
.register-switch { display:none; }
@media (pointer:coarse) {
  .register-workspace :is(button,input,summary,.sell-pick-part),.register-payment :is(button,input,select) { min-height:44px; }
  .register-qty button { min-width:44px; }
}
@media (max-width:767px) {
  .register-panes { display:block; height:auto; min-height:0; }
  .register-workspace[data-pane=find] .register-cart,.register-workspace[data-pane=sale] .register-find { display:none; }
  .register-switch { display:grid; grid-template-columns:1fr 1fr; margin-bottom:10px; border:1px solid var(--line); border-radius:8px; }
  .register-switch .nav-link { justify-content:center; }
  .register-cart-scroll { overflow:visible; }
  .register-customer { max-height:none; }
  .register-find .kit-scroll :is(td,th) { padding-inline:6px; }
  .register-workspace .kit-header .register-links { display:flex; grid-column:1/-1; }
}

.register-cart-scroll .kit-scroll { max-height:none; }
.register-cart-scroll .register-line { display:grid; grid-template-columns:1fr; border:0; padding:0; }
.register-cart-scroll td.kit-number { vertical-align:top; white-space:nowrap; }
.register-workspace .kit-scroll :is(td,th).kit-number { white-space:nowrap; overflow-wrap:normal; }
.register-cart .register-cart-title { display:flex; }
.register-cart { grid-template-columns:minmax(0,1fr); }
.register-line-options summary { color:var(--soft); font-size:12px; cursor:pointer; }
.register-line-options { grid-column:1/-1; }
.website-actions { display:flex; align-items:center; gap:4px; }
.website-by { white-space:nowrap; }
@media (max-width:600px) {
  .kit-website > .kit-filters { flex-wrap:wrap; }
  .website-actions { flex-wrap:wrap; justify-content:flex-end; }
}

@media (max-width:600px) and (min-height:650px) {
  .register-workspace:has(.register-panes) { display:grid; grid-template-rows:auto auto auto minmax(0,1fr); height:calc(100dvh - 148px - env(safe-area-inset-bottom)); min-height:440px; }
  .register-panes :is(.register-cart,.register-find) { height:100%; }
  .register-cart .register-cart-scroll { overflow:auto; }
  .register-cart .register-customer { max-height:23dvh; }
}

.staff-app .kit-stock { min-width:0; }
.kit-stock .stock-panel { background:var(--tblr-bg-surface,var(--panel)); border-color:var(--tblr-border-color,var(--line)); }
.kit-stock .stock-panel .card-title { color:var(--hi); }
.kit-stock .stock-panel,.kit-stock > .kit-filters { margin-bottom:16px; }
.stock-body { display:grid; min-width:0; gap:12px; padding:16px; }
.stock-body:has(> .kit-scroll:only-child) { padding:0; }
.stock-body .kit-scroll { max-height:none; }
.stock-body > .btn { justify-self:start; }
.stock-body .stock-entry { display:flex; justify-content:space-between; align-items:center; gap:12px; color:var(--hi); text-decoration:none; padding:10px 0; border-bottom:1px solid var(--line); }
.stock-body .stock-entry:last-child { border-bottom:0; }
.stock-entry:hover strong { text-decoration:underline; }
.stock-entry .i { flex:none; width:16px; height:16px; color:var(--soft); }
.stock-entry + .stock-entry { margin-top:-12px; }
.stock-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.stock-actions:empty { display:none; }
.stock-figures { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:1px; margin-bottom:16px; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:var(--line); }
.stock-figure { padding:14px 16px; display:grid; gap:4px; background:var(--panel); color:var(--hi); text-decoration:none; }
.stock-figure:hover,.stock-figure:focus-visible { background:var(--desk-tint); }
.stock-figure span { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:13px; color:var(--soft); }
.stock-figure .i { width:16px; height:16px; flex:none; }
.stock-figure:is(:hover,:focus-visible) span { color:var(--hi); text-decoration:underline; }
.stock-figure strong { font-size:26px; font-variant-numeric:tabular-nums; }
.kit-stock .kit-scroll :is(td,th).kit-number { white-space:nowrap; overflow-wrap:normal; }
.kit-stock .cols { gap:16px; align-items:start; }
.kit-stock .lookup { max-width:none; }
.kit-stock .stock-panel .btn { min-width:0; }
.kit-stock .stock-report-scroll { overflow:auto; }
.kit-stock .stock-movements .table th { padding-block:12px; color:var(--hi); }
@media (max-width:600px) {
  .staff-app .kit-stock .kit-header { display:block; }
  .kit-stock .kit-header > div:first-child { display:block; }
  .kit-stock .kit-header .stock-actions { display:flex; margin-top:8px; }
  .kit-stock .kit-header .stock-actions:empty { display:none; }
  .kit-stock .cols { display:block; }
  .kit-stock .kit-scroll :is(td,th) { padding-inline:8px; }
  .stock-body { padding:12px; }
}

.kit-stock .kit-scroll .btn { white-space:nowrap; }
.kit-stock .stock-phone { display:none; }
@media (max-width:600px) {
  .kit-stock .stock-phone { display:block; }
}

.count-caption { display:none; }
@media (max-width:600px) {
  .stock-count-lines :is(table,tbody) { display:block; width:100%; }
  .stock-count-lines thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .stock-count-lines tbody tr { display:flex; flex-wrap:wrap; align-items:center; padding:12px; gap:8px; border-bottom:1px solid var(--line); }
  .kit-stock .stock-count-lines tbody td { flex:1 1 0; border:0; padding:0; text-align:start; }
  .kit-stock .stock-count-lines tbody td:first-child { flex:0 0 100%; }
  .stock-count-lines td:last-child:has(.btn) { text-align:end; }
  .count-caption { display:block; font-size:12px; color:var(--soft); }
}

.kit-storage { display:grid; gap:16px; }
.kit-storage .kit-header,.kit-storage .kit-panel { margin:0; }
.kit-storage .storage-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.storage-toolbar .storage-tabs { display:flex; flex-wrap:wrap; gap:4px; margin:0; }
.storage-tabs .nav-link { display:inline-flex; align-items:center; gap:5px; }
.storage-count { font-variant-numeric:tabular-nums; }
.storage-search { flex:0 1 16rem; min-width:0; }
.storage-search input { padding-inline-start:38px; }
.kit-storage .kit-scroll { max-height:none; }
.kit-storage td small,.storage-details small { display:block; color:var(--soft); margin-top:3px; }
.storage-actions { display:flex; flex-wrap:wrap; gap:4px; }
.storage-actions .btn { white-space:nowrap; }
.storage-phone { display:none; }
.storage-auth .chip,.storage-details > .chip { width:fit-content; }
.storage-details { display:grid; gap:10px; }
.storage-details :is(p,h3,dl) { margin:0; }
.storage-offline { color:var(--soft); margin:0; }
.storage-season .alert { display:flex; color:var(--hi); align-items:flex-start; gap:10px; margin:0 0 12px; }
.storage-season .alert .i { flex:none; margin-top:3px; }
.storage-season .entry-row { flex-wrap:wrap; gap:8px; }
.storage-preview { height:38vh; }
@media (max-width:600px) {
  .kit-storage .storage-toolbar { display:grid; grid-template-columns:minmax(0,1fr); justify-content:stretch; gap:8px; }
  .storage-toolbar .storage-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2px; }
  .storage-tabs .nav-link { padding:6px 4px; justify-content:center; }
  .storage-phone { display:grid; gap:4px; }
  .kit-storage .kit-scroll th,.kit-storage .kit-scroll td { padding-inline:10px; }
  .kit-storage .kit-scroll th:last-child,.kit-storage .kit-scroll td:last-child { width:6.6rem; }
  .storage-actions { align-items:stretch; flex-direction:column; }
}
@media (pointer:coarse) {
  .kit-storage :is(button,input,.kit-record-link),.stock-count-lines .btn { min-height:44px; }
}

.storage-auth { display:grid; justify-items:start; gap:2px; }
.storage-auth small { display:block; color:var(--soft); }
.storage-details .facts { align-items:baseline; }


/* Requests keep the next action beside the caller, including at the counter on a phone. */
.kit-requests { display:grid; gap:16px; }
.kit-requests .kit-header { margin:0; }
.kit-requests .kit-scroll { max-height:none; }
.request-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; padding:8px 16px; }
.request-toolbar .kit-filters { padding:0; }
.request-toolbar input { width:min(100%,15rem); }
.request-summary { display:grid; gap:3px; max-width:40rem; }
.request-excerpt { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.request-phone { display:none; }
@media (min-width:601px) {
  .kit-requests th:nth-child(2) { width:14%; }
  .kit-requests th:nth-child(3),.kit-requests th:nth-child(4) { width:17%; }
}
.kit-requests table:has(td button) :is(th,td):last-child { width:7.5rem; text-align:end; }
.kit-requests td .btn { white-space:nowrap; overflow-wrap:normal; }
.request-detail a { color:var(--solid); text-decoration:underline; text-underline-offset:3px; }
.request-detail { display:grid; gap:16px; justify-items:start; }
.request-note { margin:0; max-width:70ch; white-space:pre-wrap; overflow-wrap:anywhere; }
.request-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr)); gap:16px; width:100%; border-top:1px solid var(--line); padding-top:16px; margin:0; }
.request-facts dt { color:var(--soft); font-size:12px; }
.request-facts dd { margin:2px 0 0; overflow-wrap:anywhere; }
.request-actions { width:100%; border-top:1px solid var(--line); padding-top:8px; }
@media (max-width:600px) {
  .staff-app .kit-requests .kit-header { display:flex; flex-direction:column; align-items:start; }
  .request-toolbar { display:grid; justify-content:stretch; padding:8px 12px; }
  .request-toolbar .nav-link { padding-inline:8px; }
  .request-toolbar input { width:100%; }
  .request-phone { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; }
  .request-phone small { margin:0; }
  .kit-requests table:has(td button) :is(th,td):last-child { width:6.8rem; }
}
@media (pointer:coarse) {
  .request-toolbar input,.request-actions summary { min-height:44px; }
}


.kit-calls,.call-column { display:grid; gap:16px; min-width:0; align-content:start; }
.kit-calls .kit-header { margin:0; }
.kit-calls .kit-scroll { max-height:none; }
.call-layout { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(18rem,1fr); align-items:start; gap:16px; }
.call-actions,.kit-requests .kit-header .head-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.call-destination { display:grid; justify-items:start; gap:4px; }
.call-destination a { color:var(--solid); text-decoration:underline; text-underline-offset:3px; }
.call-actions:empty { display:none; }
.call-column { grid-column:2; grid-row:1 / span 2; }
.call-layout .request-facts { padding:0; border:0; }
.call-layout h3 { font-size:14px; margin:0 0 6px; }
.kit-calls .request-note { text-wrap:pretty; }
@media (min-width:601px) {
  .kit-calls th:nth-child(2),.kit-calls th:nth-child(4) { width:14%; }
  .kit-calls th:nth-child(3) { width:18%; }
  .kit-calls th:last-child { width:10%; }
}
@media (max-width:900px) {
  .call-layout { grid-template-columns:minmax(0,1fr); }
  .call-column { grid-column:auto; grid-row:auto; }
}
@media (max-width:600px) {
  .staff-app .kit-calls .kit-header { display:flex; flex-direction:column; align-items:start; }
  .kit-calls th:nth-child(4) { width:5.5rem; }
}

.kit-calls .kit-header .call-actions { display:flex; flex-wrap:wrap; gap:8px; }
.kit-calls .request-phone .btn { margin-inline-start:auto; }
.kit-admin,.admin-section,.admin-body,.admin-edit-list,.admin-access { display:grid; gap:16px; min-width:0; }
.kit-admin .kit-header,.admin-nav .kit-filters,.admin-body p,.admin-tools p { margin:0; }
.admin-body { justify-items:start; }
.staff-app .kit-admin .btn-primary { background:var(--solid); border-color:var(--solid); color:var(--on-solid); }
.staff-app .kit-admin .btn-primary:hover { opacity:.9; }
.admin-nav select,.kit-admin td .admin-phone { display:none; }
.admin-tools,.admin-line { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.admin-tools { padding:12px 16px; }
.admin-tools input { width:min(100%,18rem); }
.kit-admin .kit-scroll { max-height:none; }
.kit-admin .kit-scroll a,.admin-name { color:var(--solid); text-decoration:underline; text-underline-offset:3px; }
.admin-name { border:0; padding:0; background:transparent; text-align:start; font:inherit; font-weight:600; }
.admin-access { justify-items:start; }
.admin-edit-row .field { width:100%; }
.admin-roles,.admin-edit-row { min-width:0; padding:12px; border:1px solid var(--line); border-radius:8px; margin:0 0 12px; }
.admin-roles legend,.admin-edit-row legend { float:none; width:auto; padding:0 4px; color:var(--hi); font-size:14px; font-weight:600; }
.admin-roles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 8px; }
.admin-roles label,.admin-access label,.admin-line label { display:flex; align-items:center; gap:8px; }
.admin-pair { display:grid; grid-template-columns:5rem minmax(0,1fr); gap:12px; }
@media (max-width:600px) {
  .admin-nav .kit-filters,.kit-calls .kit-header .call-actions:empty { display:none; }
  .admin-nav select,.kit-admin td .admin-phone { display:block; }
  .admin-tools { flex-wrap:wrap; }
  .admin-tools input { width:100%; }
  .staff-app .kit-admin .kit-header { display:flex; flex-direction:column; align-items:start; }
}
@media (pointer:coarse) {
  .admin-name,.admin-roles label,.admin-access label,.admin-line label,.admin-nav select,.admin-tools input { min-height:44px; }
}


.staff-app .auth-screen { width:100%; max-width:none; display:grid; align-items:center; min-height:100dvh; margin:0; padding:32px 16px; background:var(--tblr-body-bg); }
.auth-wrap { width:min(100%,26rem); margin:auto; }
.auth-wrap.auth-wide { width:min(100%,40rem); }
.auth-identity { display:flex; align-items:center; gap:12px; margin:0 0 16px; font:600 20px/26px var(--font); }
.auth-identity .mark { flex:none; background:var(--accent); color:var(--ink); }
.auth-logo { width:108px; max-height:44px; object-fit:contain; background:white; border-radius:8px; padding:4px; }
.staff-app .auth-card { display:block; width:100%; max-width:none; padding:0; margin:0; border-radius:8px; color:var(--tblr-body-color); background:var(--tblr-bg-surface); box-shadow:var(--tblr-box-shadow-sm); }
.auth-card .card-header { display:block; padding:24px 24px 16px; min-height:0; }
.auth-card h1 { margin:0; font:600 28px/34px var(--font); letter-spacing:-.025em; }
.auth-card .card-header p { margin:4px 0 0; color:var(--tblr-secondary-color); }
.auth-card .card-body { padding:24px; }
.auth-form { display:grid; gap:16px; }
.auth-form .field { margin:0; }
.auth-form .field[hidden],.auth-feedback:empty { display:none; }
.auth-card :is(input,.btn) { min-height:44px; }
.staff-app .auth-card .btn-primary { color:var(--on-solid); background:var(--solid); border-color:var(--solid); }
.staff-app .auth-card .btn-primary:hover { filter:brightness(1.12); }
.auth-reset-help { margin:0; color:var(--soft); text-align:center; font-size:14px; }
.auth-feedback { padding:12px; margin:0; border-radius:8px; background:var(--panel-2); }
.auth-feedback.auth-error { border-inline-start:3px solid var(--bad); }
.auth-form [aria-invalid=true] { border-color:var(--bad); }
.auth-seats .list-group-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; text-align:start; }
.auth-seats :is(strong,small) { display:block; }
.auth-seats strong { color:var(--tblr-body-color); }
.auth-seats small { color:var(--tblr-secondary-color); }
.auth-seats svg { flex:none; }
@media (max-width:600px) {
  .auth-card .card-header,.auth-card .card-body { padding:16px; }
}

.import-totals,.import-sample { display:grid; gap:4px; }
.import-sample,.import-map { min-width:0; justify-self:stretch; }
.import-sample h3 { margin:0; font:600 16px/24px var(--font); }
.kit-admin :is(.import-sample,.import-map) .kit-scroll { margin-top:8px; border:1px solid var(--line); border-radius:8px; }
.kit-admin :is(.import-sample,.import-map) .table th { padding:12px; color:var(--hi); }

.sales-queues,.sales-facts { display:grid; gap:16px; }
.kit-sales .kit-scroll { max-height:none; }
.sales-tools { padding:12px 16px; }
.sales-name { padding:0; border:0; background:transparent; color:var(--solid); font:600 14px/20px var(--font); text-align:start; text-decoration:underline; text-underline-offset:3px; }
.sales-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
.sales-facts dd { margin:2px 0 0; }
.sales-facts dt { color:var(--soft); }
.kit-sales .sales-phone { display:none; }
@media (pointer:coarse) { .sales-name { min-height:44px; } }
@media (max-width:600px) {
  .kit-sales .sales-phone { display:block; }
  .staff-app .kit-sales .kit-header { display:flex; align-items:start; flex-direction:column; }
  .kit-sales .kit-scroll td.kit-number { white-space:nowrap; }
}

.work-queues,.detail-queues,.work-notes { display:grid; gap:16px; min-width:0; }
.work-queues .kit-header,.detail-queues .kit-header,.work-notes p { margin:0; }
.work-queues .kit-scroll,.detail-queues .kit-scroll { max-height:none; }
.work-queues .ask-box[hidden],.work-queues .work-phone { display:none; }
.work-notes { gap:8px; padding-top:8px; }
.work-operations { display:grid; gap:4px; justify-items:start; }
.work-controls { display:flex; flex-wrap:wrap; gap:8px; }
.work-queues .work-detail summary { color:var(--solid); }
.work-queues .work-detail .btn,.work-controls .btn { white-space:normal; }
.detail-history { color:var(--solid); justify-self:start; text-decoration:underline; }
@media (max-width:600px) {
  .work-queues .work-phone { display:block; }
  .staff-app .work-queues .kit-header,.staff-app .detail-queues .kit-header { display:flex; flex-direction:column; align-items:stretch; }
  .work-queues .kit-scroll td:first-child { width:54%; }
}

/* Vendor photos share a fixed frame. Light surfaces preserve the colors of catalog photography in either theme. */
.part-picture { display:grid; place-items:center; box-sizing:border-box; inline-size:144px; block-size:104px; min-width:0; max-width:100%; overflow:hidden; padding:6px; border:1px solid var(--line); border-radius:8px; background:white; }
.part-picture img { display:block; width:100%; height:100%; min-width:0; min-height:0; object-fit:contain; }
.part-picture-empty img { width:30px; max-width:50%; height:16px; opacity:.3; }
.part-picture-empty svg { width:14px; height:14px; color:#67717b; opacity:.5; }
.part-gallery { width:144px; max-width:100%; }
.photo-controls { display:flex; align-items:center; justify-content:space-between; margin-top:4px; gap:4px; font-size:12px; font-variant-numeric:tabular-nums; }
.photo-controls[hidden] { display:none; }
.photo-controls > span { white-space:nowrap; text-align:center; }
.photo-controls .btn { width:36px; padding:4px; }
.photo-controls .photo-back svg { transform:rotate(180deg); }
.register-catalog > .kit-filters { padding:0 16px; margin:0 0 8px; }
.register-find .register-group-picker { display:none; }
.register-find .register-categories .nav-link { max-width:100%; white-space:normal; overflow-wrap:anywhere; text-align:start; }
.register-find .register-tile .sell-pick-part { min-width:0; gap:6px; }
.register-tiles .part-picture { width:100%; height:84px; }
.register-tile:focus-within,.register-tile:has(.sell-pick-part:hover) { border-color:var(--solid); }
.register-catalog .sell-found .register-tiles { padding:0; }
.retail-with-picture,.part-lookup-summary,.stock-part-summary { display:flex; align-items:flex-start; gap:16px; }
.part-lookup-summary { padding:12px 16px; }
.part-lookup-summary .parts-stock { min-width:0; padding:0; flex-direction:column; align-items:flex-start; overflow-wrap:anywhere; }
.part-lookup-summary .parts-stock .chip { white-space:normal; }
.stock-part-summary { align-items:center; margin-bottom:12px; }
.stock-part-summary p { margin:0; }
.retail-with-picture .part-picture,.part-gallery { flex:none; }
@media (pointer:coarse) { .photo-controls .btn { width:44px; min-height:44px; } }
@media (max-width:600px) {
  .register-find .register-categories { display:none; }
  .register-find .register-fav-head { display:grid; grid-template-columns:auto minmax(0,1fr); }
  .register-find .register-group-picker { display:block; min-width:0; width:100%; min-height:44px; margin:0; text-overflow:ellipsis; }
  .retail-with-picture { gap:12px; }
  .part-lookup-summary { gap:12px; }
}

.part-picture:not(:disabled) { cursor:zoom-in; }
.part-picture:not(:disabled):hover { border-color:var(--solid); }
.part-picture.part-picture-empty { opacity:1; }
.part-browse-cell { display:grid; grid-template-columns:44px minmax(0,1fr); align-items:start; gap:8px; min-width:0; }
.part-browse-cell input[type=checkbox] { margin-inline-end:6px; }
.part-browse-cell > div { min-width:0; overflow-wrap:anywhere; }
.part-picture.part-thumb { width:44px; height:44px; padding:2px; border-radius:6px; }
.part-thumb.part-picture-empty img { max-width:70%; }
.staff-app dialog.modal:has(.part-lightbox) { width:min(64rem,calc(100vw - 24px)); max-width:none; }
.part-lightbox img { display:block; width:100%; height:min(64dvh,46rem); object-fit:contain; background:white; }
.part-lightbox .photo-controls { justify-content:center; gap:16px; margin-top:8px; }

.register-bin-phone { display:none; }
@media (max-width:600px) {
  .register-bin-phone { display:block; font-size:12px; color:var(--soft); }
}

.register-bin { display:block; width:max-content; max-width:18ch; }
.part-lightbox .photo-controls .btn { background:transparent; color:var(--hi); border:1px solid var(--line-2); }
.part-lightbox .photo-controls .btn:is(:hover,:focus-visible,:active):not(:disabled) { border-color:var(--solid); color:var(--solid); }
.part-lightbox .photo-controls .btn:disabled { opacity:.45; }
@media (max-width:600px) {
  .stock-order-lines :is(table,thead,tbody) { display:block; width:100%; }
  .stock-order-lines tr { display:grid; grid-template-columns:minmax(0,1fr); }
  .stock-order-lines thead th:not(:first-child) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .stock-order-lines tbody tr { padding:12px; gap:8px; border-bottom:1px solid var(--line); }
  .kit-stock .stock-order-lines .table tbody td { min-width:0; padding:0; border:0; }
  .stock-order-lines .stock-actions { justify-content:start; gap:8px; }
  .stock-order-lines td:has(> .stock-actions:empty) { display:none; }
}

/* Shared staff navigation and workspace surfaces. */
.staff-app {
  --bg:#fff; --panel:#fff; --panel-2:#f9f9f9; --hi:#252525; --text:#333;
  --soft:#606060; --faint:#666; --line:#eaeaea; --line-2:#c1c1c1;
  --desk-tint:color-mix(in srgb,var(--accent) 10%,var(--panel));
}
[data-theme=dark] .staff-app {
  --bg:#191919; --panel:#191919; --panel-2:#222; --hi:#f5f5f5; --text:#e5e5e5;
  --soft:#bcbcbc; --faint:#aaa; --line:#373737; --line-2:#636363;
}
.staff-app .top { background:var(--panel); color:var(--text); border-bottom:1px solid var(--line); }
.staff-app .brand,.staff-app .top .iconbtn { color:var(--hi); }
.staff-app .top .iconbtn:is(:hover,[aria-current]) { background:var(--panel-2); border-color:var(--line-2); }
.staff-app .top :focus-visible { outline-color:var(--solid); }
.staff-app .top-in { height:48px; padding:0 12px; gap:8px; }
.staff-app .mark--img { width:26px; height:26px; padding:2px; }
.staff-app .brand { font-size:16px; }
.staff-app .top .staff-search-launch { border:1px solid var(--line); max-width:18rem; }
.staff-search-launch kbd { margin-left:auto; font:500 12px var(--font); color:inherit; }
.command-links { display:grid; }
.command-links:not(:empty) { border-top:1px solid var(--line); padding-block:6px; }
.command-links a { display:flex; align-items:center; gap:8px; padding:6px 10px; border-radius:6px; color:var(--text); text-decoration:none; }
.command-links a:is(:hover,:focus-visible) { background:var(--panel-2); }
.staff-app .staff-rail { top:48px; height:calc(100dvh - 48px); background:var(--panel-2); padding:12px 8px; }
.staff-app .staff-nav-group h2 { font:500 12px/20px var(--font); letter-spacing:0; text-transform:none; }
.staff-app .staff-nav-group a { min-height:32px; }
.staff-app .staff-nav-group a[aria-current] { box-shadow:inset 2px 0 var(--desk-green); }
@media screen and (min-width:921px) {
  .staff-app .staff-layout { grid-template-columns:216px minmax(0,1fr); }
  .staff-app .top .brand { width:196px; }
}
@media screen {
  .workspace-shell #main { max-width:none; padding:16px 20px 76px; }
  .workspace-shell :is(.page-head,.kit-header) { margin:0 0 12px; padding-bottom:10px; border-bottom:1px solid var(--line); }
  .workspace-shell :is(.page-head,.kit-header) h1 { font:600 20px/26px var(--font); letter-spacing:-.02em; }
  .workspace-shell .kit-panel { border:0; border-radius:0; box-shadow:none; }
  .workspace-shell .kit-panel .card-header { min-height:40px; padding:8px 10px; background:var(--panel-2); border-bottom:1px solid var(--line); }
  .workspace-shell .kit-panel .card-title { font:600 14px/20px var(--font); }
  .workspace-shell .kit-scroll { border-radius:0; }
  .workspace-shell .kit-scroll :is(th,td) { border:1px solid var(--line); }
  .workspace-shell .kit-scroll th { background:var(--panel-2); font-weight:500; }
  .workspace-shell .kit-scroll tr:hover td { background:var(--panel-2); }
}
.record-layout { display:grid; grid-template-columns:minmax(230px,30%) minmax(0,1fr); }
.record-fields { padding-right:16px; border-right:1px solid var(--line); }
.record-related { min-width:0; padding-left:16px; }
.queue-list { list-style:none; margin:0; padding:0; }
.queue-list li { padding:12px 8px; border-bottom:1px solid var(--line); }
@media (max-width:920px) {
  .staff-app .staff-quick { inset:auto 8px max(5px,env(safe-area-inset-bottom)); max-width:460px; margin:auto; padding:2px 6px; border:1px solid var(--line-2); border-radius:16px; box-shadow:0 2px 8px #0002; }
  .staff-app .staff-mobile-nav a { min-height:44px; }
}
@media (max-width:767px) {
  .workspace-shell #main { padding:12px 10px 84px; }
  .staff-search-launch kbd { display:none; }
  .staff-app .top .iconbtn { min-height:44px; min-width:44px; }
  .staff-app .top-in { gap:2px; padding:0 6px; }
  .workspace-shell :is(.btn,.command-links a,.field input:not([type=checkbox]),.field select,.kit-disclosure) { min-height:44px; }
  .record-layout { display:block; }
  .record-fields,.record-related { padding:0; border:0; }
}
.customer-fields { display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px 16px; }
.customer-fields dt,.queue-item small { color:var(--soft); }
.customer-fields dd { margin:0; overflow-wrap:anywhere; }
.record-page .card { padding:12px 6px; margin:0; border:0; border-bottom:1px solid var(--line); border-radius:0; box-shadow:none; }
.queue-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; align-items:start; }
.queue-identity,.queue-action { display:grid; gap:4px; }
.queue-action { justify-items:end; }
.queue-item .work-detail { grid-column:1 / -1; }
.queue-item .kit-record-link { width:fit-content; overflow-wrap:anywhere; }
.workspace-shell .view-toolbar { padding:8px 0; border-block:1px solid var(--line); margin-bottom:8px; }
@media (max-width:600px) {
  .work-queues .queue-item .kit-record-link { min-height:44px; }
  .work-queues .lookup input { min-width:0; }
}
.winter-intake :is(.record-fields,.record-related) > .card { padding:10px 4px; border:0; border-bottom:1px solid var(--line); box-shadow:none; }
.winter-intake .record-fields .grid2 { grid-template-columns:1fr; }

/* Shared native controls for staff routes. Keep legacy variable names on existing components. */
.workspace-shell,.workspace-shell [data-theme] {
  --tblr-bg-surface:var(--panel); --tblr-bg-surface-secondary:var(--panel-2);
  --tblr-body-bg:var(--bg); --tblr-body-color:var(--text); --tblr-secondary-color:var(--soft);
  --tblr-border-color:var(--line); --tblr-primary:var(--solid); --tblr-box-shadow-sm:0 1px 3px #0001;
}
.workspace-shell .table-responsive { overflow:auto; }
.workspace-shell .table { width:100%; border-collapse:collapse; font-size:14px; text-align:start; }
.workspace-shell .table :is(th,td) { padding:8px 12px; vertical-align:middle; }
.workspace-shell .table th { text-align:start; }
.workspace-shell .table .kit-number { text-align:end; }
.workspace-shell .visually-hidden { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.workspace-shell :is(.form-control,.form-select) { max-width:100%; min-width:0; color:var(--text); background-color:var(--panel); border:1px solid var(--line-2); }
.workspace-shell .form-label { display:block; font-size:13px; font-weight:550; color:var(--hi); }
.workspace-shell .input-icon { position:relative; }
.workspace-shell .input-icon-addon { position:absolute; inset:0 auto 0 10px; display:flex; align-items:center; pointer-events:none; }
.workspace-shell .input-icon input { padding-left:36px; }
.workspace-shell .text-secondary,.workspace-shell .form-hint { color:var(--soft); }
.workspace-shell .text-danger { color:var(--bad); }
.workspace-shell .text-warning { color:var(--warn); }
.workspace-shell .btn-primary { color:var(--on-solid); background:var(--solid); border-color:var(--solid); }
.workspace-shell .btn-outline-secondary { color:var(--hi); border-color:var(--line-2); background:var(--panel); }
.workspace-shell .btn:disabled { opacity:.55; cursor:default; }
.workspace-shell .card-footer { padding:10px 12px; border-top:1px solid var(--line); }
.workspace-shell .list-group-item { display:block; padding:10px 12px; border-bottom:1px solid var(--line); }
.workspace-shell .list-group-item.kit-row { display:flex; justify-content:space-between; }
.workspace-shell .nav-link { font:inherit; color:var(--soft); background:transparent; cursor:pointer; }
.workspace-shell .kit-skeleton span { height:12px; border-radius:4px; background:var(--line); }
.workspace-shell .kit-skeleton .col-9 { width:75%; }
.workspace-shell .kit-skeleton .col-5 { width:42%; }
.workspace-shell .d-flex { display:flex; }
.workspace-shell .align-items-center { align-items:center; }
.workspace-shell .justify-content-end { justify-content:end; }
.workspace-shell .gap-2 { gap:8px; }
.workspace-shell .py-2 { padding-block:8px; }
.workspace-shell .mb-0 { margin-bottom:0; }
.workspace-shell .mt-2 { margin-top:8px; }
.workspace-shell .breadcrumb { display:flex; flex-wrap:wrap; gap:8px; padding:0; list-style:none; }
.workspace-shell .alert { padding:10px 12px; border:1px solid var(--line-2); border-radius:8px; }
.workspace-shell .alert-warning { background:var(--warn-bg); }
.staff-app :is(.staff-quick,.staff-rail) .nav-count { font-weight:600; }
@media screen {
  .workspace-shell #main .card:not(.kit-panel,.overview-metric,.cal-day) { box-shadow:none; border-color:var(--line); }
  .workspace-shell .record-related .card,.workspace-shell .record-fields .card { border-radius:0; }
}
.workspace-shell .kit-panel .card-header { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.workspace-shell .tags .tag,.workspace-shell .agreement { --hi:#111; --text:#222; --soft:#555; }
#workspace-offline { background:var(--warn-bg); color:var(--text); padding:8px 16px; margin:0; }
.staff-app:not(.workspace-shell) #workspace-offline,.job-columns { display:none; }
.workspace-shell .job-collection { min-width:0; }
.workspace-shell .job-tables .kit-scroll thead { top:0; }
@media (max-width:600px) {
  .workspace-shell .job-columns { display:inline-flex; margin:4px 8px; }
  .workspace-shell .job-records:not(.all-columns) :is(td,th):not(:first-child) { display:none; }
  .workspace-shell .job-records:not(.all-columns) :is(td,th):first-child { width:100%; }
  .workspace-shell .job-records.all-columns { overflow-x:auto; }
  .workspace-shell .job-records.all-columns table { min-width:740px; }
  .workspace-shell .job-records.all-columns .kit-desktop-col { display:table-cell; }
  .workspace-shell .job-records.all-columns .job-phone { display:none; }
  .workspace-shell .job-back [aria-current],.workspace-shell .job-back > span[aria-hidden] { display:none; }
}
@media print {
  .workspace-shell,.workspace-shell .receipt { --bg:white; --panel:white; --hi:black; --text:black; --soft:#444; }
  .job-columns,#workspace-offline { display:none !important; }
}
.workspace-shell .flex-wrap { flex-wrap:wrap; }
.workspace-shell .mb-3 { margin-bottom:16px; }
.staff-app .staff-nav-group a .i { width:19px; height:19px; padding:1px; }
.directory-toolbar { display:flex; gap:12px; flex-wrap:wrap; align-items:end; justify-content:space-between; margin-bottom:12px; }
.directory-toolbar .field { margin:0; width:min(100%,24rem); }
.directory-toolbar [role=status] { color:var(--soft); font-size:13px; }
.customer-directory .kit-scroll { max-height:none; }
.customer-directory .kit-record-link { display:inline-flex; align-items:center; min-height:32px; font-weight:600; }
.customer-directory td { overflow-wrap:anywhere; }
@media(max-width:600px) {
  .customer-directory .kit-scroll table { table-layout:fixed; }
  .customer-directory .kit-record-link { min-height:44px; }
  .customer-directory th:first-child { width:38%; }
}
.customer-directory .customer-mobile-email { display:none; }
.customer-directory .kit-scroll { scroll-margin-top:54px; }
@media(max-width:600px) {
  .customer-directory th:first-child { width:63%; }
  .customer-directory .customer-mobile-email,.customer-directory td:nth-child(2) a { display:inline-flex; align-items:center; min-height:44px; max-width:100%; }
}
.work-queues .card-header select { margin-left:auto; width:auto; max-width:100%; font-size:13px; }
@media(max-width:600px) { .work-queues .card-header select { min-height:44px; } }

@media screen and (max-width:767px) {
  .workspace-shell #main :is(.kit-sort,.nav-link,.tab,.sales-name,.link,select,input:not([type=checkbox],[type=radio],[type=hidden],[type=file]),summary) { min-height:44px; }
  .workspace-shell #main :is(.job-back a,.kit-record-link,.facts dd a,a.link) { display:inline-flex; min-height:44px; justify-content:center; flex-direction:column; }
  .workspace-shell #main summary { align-content:center; }
  .workspace-shell .piece-toggle { display:inline-grid; min-width:44px; place-items:center; }
  .workspace-shell #main label:has(> :is(input[type=checkbox],input[type=radio])) { min-height:44px; align-content:center; }
}

@media screen and (max-width:767px) {
  .kit-admin .admin-body:has([aria-label="Twenty sync by record type"]) { grid-template-columns:minmax(0,1fr); }
  .kit-admin .admin-body > .kit-scroll { width:100%; min-width:0; }
  .workspace-shell table[aria-label="Twenty sync by record type"] { min-width:38rem; }
}

/* The register loads Tabler for its work area. Keep staff navigation typography consistent around it. */
.staff-app :is(.top,.staff-rail,.staff-quick,.staff-mobile-nav) {
  color:var(--text);
  font:400 15.5px/1.55 var(--font);
}

/* "Worth a look" on My work (web/views/review.js) */
.review-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.review-item { min-width: 0; overflow-wrap: anywhere; padding: 12px; border-radius: 6px; background: var(--panel-2); border-left: 3px solid var(--desk-green); }
.review-item--forgotten { border-left-color: var(--warn); }
.review-kind { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--desk-green); }
.review-item--forgotten .review-kind { color: var(--warn); }
.review-title { display: block; margin: 2px 0 4px; }
.review-why { margin: 0 0 8px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.review-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }

.winter-desk { margin-bottom: 16px; }
.winter-desk h2 { margin: 0 0 12px; }
.winter-totals { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0 0 16px; }
.winter-totals dt { font-weight: 400; }
.winter-totals dd { margin: 0; font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.winter-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.winter-actions .btn { min-height: 44px; }
.winter-actions [aria-pressed="true"] { border-color: currentColor; font-weight: 700; }
.winter-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 12px; margin: 16px 0; }
.winter-gallery a { overflow-wrap: anywhere; }
.winter-gallery img { display:block; width:100%; height:90px; object-fit:cover; }
.winter-photo { display: grid; gap: 4px; align-content: start; }
.winter-clear { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: .875rem; }
.winter-shop-qr { float:right; background:white; padding:6px; }
.winter-shop-copy article { max-width: 720px; padding: 16px; }
@media (max-width: 500px) { .winter-totals { gap: 8px 16px; } }

@media (max-width: 600px) {
  .staff-time-clock .clock-prefix { display: none; }
}

/* ---- Send for signature (web/views/esign.js) ---- */
.esign-layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 18px; align-items: start; }
.esign-side { display: grid; gap: 14px; position: sticky; top: 12px; }
@media (max-width: 860px) { .esign-layout { grid-template-columns: 1fr; } .esign-side { position: static; } }
.esign-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.esign-signers { display: grid; gap: 10px; }
.esign-signer { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; }
.esign-signer-fields { display: grid; gap: 6px; }
.esign-n { font-weight: 650; color: var(--soft); padding-top: 8px; min-width: 1.2em; }
.esign-who { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.esign-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.esign-tool[aria-pressed="true"] { border-color: var(--accent); color: var(--hi); box-shadow: inset 0 0 0 1px var(--accent); }
.esign-pages { display: grid; gap: 16px; justify-items: center; min-width: 0; }
.esign-page { position: relative; width: 100%; max-width: 900px; background: #fff; border: 1px solid var(--line); }
.esign-canvas { display: block; width: 100%; height: 100%; }
.esign-layer { position: absolute; inset: 0; cursor: crosshair; touch-action: pan-y; }
.esign-page-n { position: absolute; right: 8px; bottom: -20px; font-size: 12px; color: var(--faint); }
.esign-box { position: absolute; border: 1.5px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 3px;
  font-size: 11px; font-weight: 600; color: var(--ink); display: flex; align-items: center; padding: 0 4px; overflow: visible; cursor: move; touch-action: none; user-select: none; }
.esign-box > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esign-box-x { position: absolute; top: -10px; right: -10px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: inherit; line-height: 1; padding: 0; cursor: pointer; }
.esign-box-size { position: absolute; right: -5px; bottom: -5px; width: 10px; height: 10px; background: var(--accent); border-radius: 2px; cursor: nwse-resize; }
.esign-papers { margin: 0 0 8px; padding-left: 18px; line-height: 1.9; }
.esign-signer-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
@media print {
  .winter-balances .winter-balance-list + .winter-balance-list { break-before: page; }
  .winter-balances .kit-panel { break-inside: auto; }
  .winter-balances .kit-scroll { overflow: visible; }
  .winter-balances tr { break-inside: avoid; }
  .winter-balances th.kit-desktop-col, .winter-balances td.kit-desktop-col { display: table-cell; }
}
.winter-balances .kit-scroll :is(th,td).kit-number { white-space:nowrap; overflow-wrap:normal; }
@media print {
  .winter-balances .kit-scroll :is(th,td) { padding:4pt 5pt; font-size:9pt; }
  .winter-balances .winter-print-notes { white-space:nowrap; }
}

.intake-layout { display:grid;grid-template-columns:minmax(0,3fr) minmax(270px,2fr);gap:1rem;align-items:start; }
.intake-column,.intake-dispatch { display:grid;gap:.75rem;min-width:0; }
.intake-page .field { margin-bottom:.65rem; }
.intake-page .grid4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.intake-page .sell-pick { margin-bottom:.5rem; }
.intake-options { padding:.65rem .8rem;border:1px solid var(--line);border-radius:6px; }
.intake-page .kit-header > div:first-child {display:grid;gap:.35rem;}
.intake-options summary { cursor:pointer;font-weight:600; }
.intake-options[open] summary { margin-bottom:.75rem; }
.intake-footer { display:flex;align-items:center;justify-content:flex-end;gap:.75rem;padding:.75rem;background:var(--panel);border-top:1px solid var(--line); }
@media(max-width:800px) { .intake-layout { grid-template-columns:minmax(0,1fr); }.intake-page .kit-header { flex-direction:column;align-items:flex-start; }.intake-footer { position:sticky;bottom:calc(56px + env(safe-area-inset-bottom));z-index:2; } }


/* The service shop copy uses the same letterhead and type as the sales agreement. */
.work-order-view {max-width:8.5in;margin:auto;}
.work-order-view nav {display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}
.work-order-sheet {background:white;color:#14293e;border:1px solid #d1d7dc;padding:clamp(16px,4vw,42px);font-size:15px;line-height:1.45;overflow-wrap:anywhere;}
.work-order-sheet header,.work-order-sheet footer {display:flex;align-items:center;justify-content:space-between;gap:16px;}
.work-order-sheet header {padding-bottom:18px;border-bottom:3px solid #14293e;}
.wo-logo {width:clamp(100px,19vw,155px);height:auto;}
.wo-identity {margin-left:auto;text-align:right;}
.work-order-sheet header > svg {width:64px;height:64px;flex:none;}
.work-order-sheet h1 {font-size:clamp(20px,3vw,28px);line-height:1.1;margin:0;color:#14293e;}
.wo-identity h1 span {display:block;margin-top:4px;font-size:1.16em;font-variant-numeric:tabular-nums;}
.wo-identity p,.work-order-sheet footer p {margin:4px 0 0;color:#485663;}
.wo-date {margin:0;padding:9px 0;border-bottom:1px solid #b9c4cb;text-align:right;font-size:.9em;}
.wo-date strong {margin-left:10px;}
.wo-records {display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:20px 0;border-bottom:1px solid #b9c4cb;}
.work-order-sheet h2 {font-size:12px;line-height:1.35;letter-spacing:.08em;text-transform:uppercase;color:#435663;margin:0 0 8px;}
.wo-name,.wo-request h3 {font-size:19px;line-height:1.3;font-weight:650;margin:0 0 8px;color:#14293e;}
.wo-records dl {display:grid;gap:4px;margin:0;}
.wo-records dl div {display:flex;flex-wrap:wrap;gap:0 8px;}
.wo-records dt {color:#485663;font-weight:500;}
.wo-records dd {margin:0;}
.wo-alert {padding:8px 12px;border-left:4px solid #a97418;white-space:pre-wrap;}
.wo-alert strong {display:block;}
.wo-request,.wo-items,.wo-notes {margin-top:24px;}
.wo-request p {white-space:pre-wrap;margin:0;}
.wo-items ul {padding:0;list-style:none;margin:0;}
.wo-items li {padding:6px 0;border-bottom:1px solid #d1d7dc;}
.wo-items small {margin-left:12px;color:#485663;}
.wo-notes div {height:32px;border-bottom:1px solid #c9d1d7;}
.work-order-sheet footer {margin-top:24px;padding-top:12px;border-top:2px solid #14293e;font-size:12px;}
.work-order-sheet figure {display:flex;align-items:center;gap:8px;margin:0;}
.work-order-sheet figure svg {width:64px;height:64px;flex:none;}
.work-order-sheet figcaption {max-width:5em;}
@media screen and (max-width:600px) {
  .work-order-view > article .wo-records {grid-template-columns:1fr;gap:16px;}
  .work-order-view > article figure {flex-direction:column;gap:0;}
  .work-order-view > article figcaption {max-width:none;white-space:nowrap;}
}
@media print {
  .work-order-view,.work-order-sheet {max-width:none;padding:0;border:0;}
  .work-order-sheet {font-size:11pt;}
  .work-order-sheet h2,.work-order-sheet h3 {break-after:avoid;}
  .work-order-sheet header,.wo-records section,.wo-items li,.wo-notes,.work-order-sheet footer {break-inside:avoid;}
}

/* Letter minus the @page margins. One column has the usable height of one sheet. */
.wo-page-measure {position:fixed;left:0;top:0;width:7.4in;height:10.1in;column-count:1;column-gap:0;column-fill:auto;visibility:hidden;pointer-events:none;overflow:hidden;}
.wo-page-measure .work-order-sheet {padding:0;border:0;font-size:11pt;}
.wo-ending {display:flow-root;break-inside:avoid;}
.wo-page-measure :is(header,.wo-records section,.wo-items li) {break-inside:avoid;}
.wo-page-measure :is(h2,h3) {break-after:avoid;}
.wo-page-measure .wo-logo {width:155px;}
.wo-page-measure h1 {font-size:28px;}
@media print {
  .work-order-sheet .wo-logo {width:155px;}
  .work-order-sheet h1 {font-size:28px;}
}
