/* ePOD driver app -- visual refresh layer (loaded after styles.css).
   Goals: the first useful thing on screen without scrolling; big thumb targets;
   the main action always within reach at the bottom; colour = meaning. */

body { font-size: 17px; }

/* v0.8.94 brand: main buttons are Moss everywhere (the thing to press); the strip at
   the top says the mode -- near-black while loading, Moss while delivering. The driver
   app keeps Atkinson Hyperlegible for its text (see shared/theme.css). */
:root { --font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif; }

.app-shell { padding: 0 12px 120px; }

/* ---- Header: one compact sticky row, brand colour as a mark ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  align-items: center;
  margin: 0 -12px 12px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  box-shadow: inset 4px 0 0 var(--brand);
}
.topbar .eyebrow { margin: 0; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.topbar h1 { font-size: 1.3rem; font-weight: 700; line-height: 1.15; }
.topbar-actions { flex-wrap: nowrap; gap: 4px; padding: 0; }
.who-am-i { font-size: 0.88rem; color: var(--muted); }
.topbar-actions .text-button { min-height: 44px; padding: 0 10px; font-size: 0.9rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Login ----------------------------------------------------------------- */
#driverLoginScreen { padding: 20px 18px 22px; border: 0; }
#driverLoginScreen > .eyebrow { display: none; }
#driverLoginScreen::before { content: "Log in to start your day"; display: block; margin-bottom: 4px; font-size: 1.35rem; font-weight: 700; }
#driverLoginScreen .field-label { margin-top: 16px; }
#driverLoginPin { font-size: 1.3rem; letter-spacing: 0.3em; }
#driverLoginPin::placeholder { letter-spacing: 0; font-size: 1rem; }
#driverLoginSubmit { width: 100%; min-height: 56px; margin-top: 20px; font-size: 1.1rem; }

/* Sync details: quiet footer, not a second card. */
.sync-panel { margin: 12px 0; padding: 10px 14px; border: 0; background: transparent; color: var(--muted); font-size: 0.85rem; }
.sync-panel summary { font-weight: 700; color: var(--muted); }
.sync-panel .app-version { display: block; margin: 6px 0 0; }

/* ---- Route picker -------------------------------------------------------- */
#routePicker { padding: 0; border: 0; background: transparent; }
#drivePickerTitle { margin: 4px 2px 2px; color: var(--ink); font-size: 1.35rem; font-weight: 700; }
.picker-hint { margin: 0 2px 6px; font-size: 0.95rem; }
.route-pick-day { margin: 18px 2px 4px !important; color: var(--ink) !important; font-size: 1rem !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important; }
.route-pick-card { gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.route-pick-head strong { font-size: 1.35rem; text-transform: none; }
.route-pick-badge { padding: 4px 10px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.route-pick-meta { font-size: 0.95rem; }
.route-pick-actions { margin-top: 14px; }
.pick-action { min-height: 56px; border-width: 0; border-radius: var(--radius-sm); font-size: 1.1rem; font-weight: 700; color: #fff !important; }
.pick-action.pick-load { background: var(--blue); }
.pick-action.pick-drive { background: var(--green); }
.pick-action:disabled { background: #dde2e7; color: #4f5963 !important; }

/* ---- Route header: mode strip + one slim status line ---------------------- */
/* The route screen sits on the page, not inside a second card. */
.phone-shell { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.mode-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: -12px -12px 0;
  padding: 12px 16px;
  border-radius: 0;
}
.mode-banner strong { font-size: 1.15rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.mode-banner span { font-size: 0.95rem; opacity: 1; }

.phone-status {
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 -12px;
  padding: 6px 16px;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 700;
}
.phone-status > * { min-width: 0; }
.team-line-button { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 44px; }
.sync-status { flex: none; padding: 2px 8px 2px 18px; position: relative; }
.sync-status::before { content: ""; position: absolute; left: 4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: currentColor; }
#lastUpdated { flex: none; font-size: 0.8rem; }

/* Route totals: one quiet line instead of a heading + two pills. */
.route-panel { padding: 12px 2px 0; background: transparent; }
.route-panel-head { display: none; }
.route-stats { margin: 0; justify-content: flex-start; gap: 6px; }
.route-stats span { min-height: 0; padding: 0; background: transparent; color: var(--muted); font-size: 0.92rem; font-weight: 700; }
.route-stats span + span::before { content: "\2022"; margin-right: 6px; color: var(--line); }
.route-stats .tag { padding: 3px 9px; }
.route-stats .tag::before { display: none; }

/* ---- Load / Deliver: a progress stepper, not tabs ------------------------ */
.stage-tabs { position: relative; margin: 12px 0 0; padding: 0; background: transparent; gap: 0; }
.stage-tabs::before { content: ""; position: absolute; left: 25%; right: 25%; top: 50%; height: 3px; margin-top: -1.5px; background: var(--line); }
#driverApp:has(.mode-delivering) .stage-tabs::before,
#driverApp:has(.mode-done) .stage-tabs::before { background: var(--green); }
.tab { position: relative; z-index: 1; flex: 0 1 auto; margin: 0 auto; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 1rem; font-weight: 700; box-shadow: none !important; }
.tab.active { background: var(--paper); color: var(--ink); }
.tab-step { width: 28px; height: 28px; background: #b9c2cb; font-size: 0.9rem; }
.tab[data-stage="load"].active .tab-step { background: var(--blue); }
.tab[data-stage="deliver"].active .tab-step { background: var(--green); }
/* Delivering: loading is done -- show it ticked. */
#driverApp:has(.mode-delivering) .tab[data-stage="load"] .tab-step,
#driverApp:has(.mode-done) .tab-step { background: var(--green); font-size: 0; }
#driverApp:has(.mode-delivering) .tab[data-stage="load"] .tab-step::after,
#driverApp:has(.mode-done) .tab-step::after { content: "\2713"; font-size: 0.95rem; }
.tab:disabled:not(.active) { color: #8b949d; }
.stage-hint { margin: 6px 4px 0; text-align: center; font-size: 0.88rem; }

.drop-order-label { margin: 16px 2px 0; color: var(--muted); font-size: 0.9rem; font-weight: 700; }

/* ---- Drop cards: status stripe on the left, title first ------------------- */
.drop-list { gap: 8px; }
.drop-card {
  gap: 2px;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--line);
  border-left: 6px solid #b9c2cb;
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
}
.drop-card strong { font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
.drop-card span { font-size: 0.95rem; }
.drop-card:not(:disabled) { cursor: pointer; }
#driverApp:has(.mode-loading) .drop-card:not(:disabled):not(.complete) { border-left-color: var(--blue); }
#driverApp:has(.mode-delivering) .drop-card:not(:disabled):not(.complete) { border-left-color: var(--green); }
.drop-card.active { background: var(--surface); box-shadow: 0 0 0 2px var(--action); }
.drop-card:disabled { border-left-style: dashed; background: #f4f5f7; }
.drop-card:disabled strong { color: #6b747d; }
.drop-card.complete { border-left-color: var(--green); background: var(--surface); opacity: 1; }
.drop-card.complete strong::after { content: "  \2713"; color: var(--green); }
.lock-reason { margin-top: 4px; color: var(--amber) !important; font-size: 0.9rem !important; }

/* ---- Main actions stay within thumb reach --------------------------------- */
#completeLoading, #readyForDeparture, #nextJob {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 15;
  width: auto;
  max-width: 836px;
  min-height: 58px;
  margin: 0 auto;
  font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(23, 33, 43, 0.22);
}
/* Complete POD stays in the form, after the signature -- never floating over the
   signature pad, where a stray tap could sign a POD off early. */
#completePod { width: 100%; min-height: 58px; margin-top: 16px; font-size: 1.1rem; }

/* ---- Inside a drop -------------------------------------------------------- */
.back-overview {
  min-height: 44px;
  margin: 14px 0 6px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
}
.job-header { padding: 4px 2px 12px; }
.job-header .eyebrow { margin-bottom: 2px; }
.job-header h2 { font-size: 1.45rem; line-height: 1.2; }
.job-header p { margin: 2px 0; color: var(--muted); }
.job-header address { margin: 8px 0; font-style: normal; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.job-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 12px; }
.job-actions a, .job-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; text-decoration: none; }

.tool-row { gap: 10px; }
.tool-row input[type="text"] { min-height: 48px; }
.remaining-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-size: 0.92rem; font-weight: 700; white-space: nowrap; }
.remaining-toggle input { width: 24px; height: 24px; accent-color: var(--action); }

.checklist-tools { min-height: 52px; padding: 6px 8px 6px 14px; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(23, 33, 43, 0.08); font-size: 0.95rem; top: 66px; }
.checklist-tools .text-button { min-height: 44px; padding: 0 12px; border: 2px solid var(--action); border-radius: 999px; color: var(--action); }

/* Order cards */
.order-card { border-radius: var(--radius); border: 1px solid var(--line); }
.order-card > summary { padding: 14px 16px; }
.order-card > summary b { font-size: 1.05rem; }
.order-card small { font-size: 0.9rem; }
.order-status { justify-self: start; }
.order-card.order-done { border-left: 6px solid var(--green); }
.mark-all-row { display: flex; justify-content: flex-end; padding: 0 12px 8px; }
.mark-all-row .text-button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; }

/* Item rows: the tick is the biggest thing on the row. Every button here stays at
   least 44px tall (tests/e2e-v0836 checks it). */
/* v0.8.97 (Aleks: smaller text "for better viewing of multiple rows of items"): 14.7px
   names and tighter rows -- about 5 items on a phone screen instead of 4. Tick, Seq and
   the ... button keep their sizes. */
.unit-card { gap: 10px; padding: 10px 12px; }
.unit-seq { width: 44px; height: 44px; border-width: 2px; border-radius: 8px; font-size: 0.95rem; font-weight: 700; }
.unit-title { align-items: flex-start; }
.unit-title h3 { font-size: 0.92rem; font-weight: 700; line-height: 1.25; }
.tick-hit-area { padding: 6px; margin: -6px -4px -6px 0; }
.unit-card input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  border: 2px solid #8b949d;
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.unit-card input[type="checkbox"]::after { content: ""; width: 14px; height: 24px; margin-top: -5px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg); opacity: 0; }
.unit-card input[type="checkbox"]:checked { border-color: var(--green); background: var(--green); }
.unit-card input[type="checkbox"]:checked::after { opacity: 1; }
.unit-card input[type="checkbox"]:disabled { border-style: dashed; background: #f1f3f5; cursor: not-allowed; }
.unit-card input[type="checkbox"]:checked:disabled { border-style: solid; background: #7fb59a; border-color: #7fb59a; }
.unit-card.is-complete { background: #f6f8f7; }
.unit-actions { gap: 8px; margin-top: 6px; }
.unit-actions .issue-button, .unit-actions .return-button, .unit-details > summary {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.unit-actions .issue-button { border-color: #e3b866; color: var(--amber); }

/* ---- Delivering: next stop -------------------------------------------------- */
.next-stop-card { margin: 14px 0 6px; padding: 16px; border: 1px solid var(--line); border-top: 6px solid var(--green); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 10px rgba(23, 33, 43, 0.08); }
.next-stop-card .eyebrow { color: var(--green); font-weight: 700; }
.next-stop-card h2 { font-size: 1.4rem; }
.next-stop-card address { margin-top: 4px; font-size: 1.02rem; font-weight: 400; color: var(--ink); }
.next-stop-card .job-actions .job-open { order: -1; }

/* Delivery photos / POD */
.delivery-photos, .pod-subsection { border-radius: var(--radius); }
.photo-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; }
.signature-pad { height: 200px; border: 2px solid var(--line); border-radius: var(--radius-sm); }

/* Wider screens (the in-cab tablet): a bit more air. */
@media (min-width: 700px) {
  .app-shell { padding: 0 20px 120px; }
  .topbar, .mode-banner, .phone-status { margin-left: -20px; margin-right: -20px; padding-left: 24px; padding-right: 20px; }
  .drop-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Remaining capitalised labels -> sentence case */
.address-card-label, .drop-note-label, .drop-note-chip { letter-spacing: 0; text-transform: none; font-weight: 700; }
.address-card-label { font-size: 0.9rem; }

/* Hansa details (v0.8.46): the "Stored in" bar stays white on dark inside a job header
   (whose paragraphs are muted), and chips never wrap inside themselves. */
.job-header .storage-line { margin: 6px 0; color: #fff; }
.job-header .storage-line strong, .job-header .storage-line span { color: #fff; }
.job-header .delivery-name strong { color: var(--ink); }
.order-card > summary .order-place .unload-at { display: inline-block; white-space: nowrap; }

/* Quantity (v0.8.48): "× 2" beside an item whose Hansa line is for more than one piece.
   One tick still covers the whole Seq -- the badge tells the loader to look for them all.
   Dark, not blue, so it doesn't read as one of the size chips. */
.qty-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 9px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: 1px;
  font-variant-numeric: tabular-nums;
}
.spec-addons .qty-badge { margin-left: 0; font-size: 0.9rem; }
.unit-card.is-complete .qty-badge { background: #6b747d; }
.unit-qty { font-weight: 700; }

/* v0.8.54: "Ring the customer" (ring-prompt.mjs) -- one big Call button per number. */
.ring-calls { display: grid; gap: 8px; margin: 12px 0 4px; }
.ring-calls .ring-call { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; text-decoration: none; }

/* v0.8.54: a long item description keeps to two lines and ends "…" (full text in the
   tooltip, and in Hansa); the quantity badge stays beside it. */
.unit-title h3 { display: flex; align-items: flex-start; gap: 6px; }
.unit-title h3 .qty-badge { margin-left: 0; flex: none; }
/* v0.8.73: never cut off -- the end of the name is often the hand or size that tells two
   doors apart ("... Door (LB OX)"). It wraps onto as many lines as it needs. */
.unit-desc { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

/* v0.8.57: a collection -- goods collected from the customer and brought back. */
.collection-chip { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #5b3fa3; color: #fff; font-size: 0.8rem; font-weight: 700; vertical-align: 1px; }
.collection-note { margin: 6px 0; }
.return-note { margin: 6px 0 0; font-weight: 600; color: #8a4b00; }

/* Site sign-off (v0.8.67): a plot of a grouped building site, and the one sign-off. */
.site-chip { display: inline-block; align-self: flex-start; padding: 1px 8px; border-radius: 6px; background: #1f5f8b; color: #fff; font-size: 0.8rem; font-weight: 700; }
.site-plot-note { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #e8f1f8; color: #123a56; font-weight: 600; }
.site-sign-list { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 6px; }
.site-sign-list li { padding: 8px 10px; border: 1px solid #c9d8e4; border-radius: 8px; background: #fff; }
#noSiteManager { margin-top: 10px; width: 100%; }
@media (prefers-color-scheme: dark) {
  .site-plot-note { background: #16324a; color: #d6e8f5; }
  .site-sign-list li { background: transparent; border-color: #2c4a63; }
}

/* ---- v0.8.73: easier to use, harder to get wrong (Aleks, 26 Oct 2026) ------------- */

/* Inside a drop: one slim status line. The company name, the Load/Deliver steps and the
   "Updated" time are one tap back on the overview. */
.app-shell:has(#driverApp.in-drop:not([hidden])) .topbar .eyebrow { display: none; }
#driverApp.in-drop .stage-tabs, #driverApp.in-drop #lastUpdated { display: none; }
#driverApp.in-drop .mode-banner { padding: 7px 16px; }
#driverApp.in-drop .mode-banner strong { font-size: 1rem; }
#driverApp.in-drop .mode-banner span { font-size: 0.88rem; }
.checklist-tools { top: 66px; }
/* Everything done: the progress bar stops following the screen (it sat over the top of
   the sign-off form). */
.checklist-tools.all-done { position: static; box-shadow: none; }

/* The quantity inside the tick box: "2 pcs" until it's ticked. */
.tick-hit-area { position: relative; }
.tick-hit-area.has-qty input[type="checkbox"] { width: 58px; height: 52px; border-color: var(--ink); border-width: 3px; }
.tick-qty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tick-qty small { font-size: 0.75rem; font-weight: 700; }
.tick-hit-area input:checked + .tick-qty { display: none; }
.tick-hit-area input:disabled:not(:checked) + .tick-qty { opacity: 0.6; }

/* The item's other actions sit behind one quiet button, away from the tick. */
.unit-title { gap: 8px; }
.item-more { flex: none; min-width: 44px; min-height: 48px; margin: -2px -6px 0 0; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.6rem; font-weight: 800; line-height: 1; cursor: pointer; }
.item-more:focus-visible { outline: 3px solid var(--action); }
.item-menu-dialog .dialog-card h2 { font-size: 1.15rem; line-height: 1.3; overflow-wrap: anywhere; }
.item-menu-actions { display: grid; gap: 8px; margin: 14px 0 6px; }
.item-menu-action { min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; text-align: left; }
.item-menu-action.issue-button { color: var(--amber); border-color: #e3b866; text-decoration: none; }
.item-menu-action.return-button { color: var(--red); text-decoration: none; }
.item-menu-details-wrap summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--ink); cursor: pointer; }
.dialog-actions-stack { flex-direction: column; align-items: stretch; }
.dialog-actions-stack button { min-height: 52px; }
.arrival-check-note { font-size: 0.85rem; }

/* "Seq 8 unticked -- Undo", above the bottom buttons. */
.undo-bar { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 30; max-width: 836px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 16px; border-radius: var(--radius); background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 8px 20px rgba(23, 33, 43, 0.3); }
.undo-bar[hidden] { display: none; }
.undo-bar button { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; font-weight: 800; }

/* What's next on this drop, always in the same place. */
#jobNextStep { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 15; width: auto; max-width: 836px; min-height: 58px; margin: 0 auto; font-size: 1.1rem; box-shadow: 0 6px 20px rgba(23, 33, 43, 0.22); }
#jobNextStep[hidden] { display: none; }

/* No delivery address in Hansa: ring the customer first. */
.check-address { margin: 8px 0; padding: 12px 14px; border: 2px solid #c98a1c; border-radius: var(--radius); background: var(--amber-soft); color: #3b2a00; }
.check-address p { margin: 0; color: #3b2a00 !important; }
.check-address .check-address-title { margin-bottom: 4px; font-weight: 800; color: #6b4000 !important; }

/* Before the customer signs. */
.pod-checklist { margin: 4px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pod-checklist-title { margin: 0 0 8px; font-weight: 800; font-size: 1.05rem; }
.pod-checklist-items { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 8px; }
.pod-checklist-items li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 10px; align-items: center; }
.pod-checklist-items .check-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
.pod-checklist-items li.is-ok .check-mark { background: var(--green); }
.pod-checklist-items li.is-todo .check-mark { border: 3px solid var(--red); }
.pod-checklist-items li.is-todo > span:last-of-type { color: var(--red); font-weight: 700; }
.pod-checklist-items .checklist-photo { grid-column: 2; justify-self: start; min-height: 48px; display: inline-flex; align-items: center; padding: 0 16px; }
.pod-photo-check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; }
.pod-photo-check input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--green); }
.pod-photo-check.is-ok { border-color: var(--green); background: var(--green-soft); }
.pod-photo-check:has(input:disabled) { opacity: 0.6; cursor: not-allowed; }
.signature-wrap { position: relative; }
.signature-locked-note { display: none; }
.signature-wrap.locked .signature-pad { background: #f1f3f5; border-style: dashed; pointer-events: none; }
.signature-wrap.locked .signature-locked-note { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; margin: 0; padding: 12px; text-align: center; font-weight: 700; color: var(--muted); pointer-events: none; }

/* v0.8.74: hold to tick (public/driver/hold-tick.mjs). The box fills from the bottom while
   it's held; a quick tap shows "Hold to tick" above it. */
.tick-hit-area { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
/* v0.8.77: a long press anywhere on an item card never selects its text or pops up the
   phone's copy menu (the hold to tick is a long press). */
.unit-card, .unit-card * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* The "Have you loaded all 4?" question opens while the finger is still on the box. */
#qtyCheckDialog, #qtyCheckDialog * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tick-hit-area::after { content: ""; position: absolute; inset: 6px; border-radius: 6px; background: var(--green, #1f8b59); opacity: 0.45; transform: scaleY(0); transform-origin: bottom; pointer-events: none; }
.tick-hit-area.holding::after { animation: tick-hold 500ms linear forwards; }
@keyframes tick-hold { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.tick-hit-area[data-hint]::before { content: attr(data-hint); position: absolute; right: 0; bottom: calc(100% + 4px); z-index: 5; white-space: nowrap; padding: 6px 10px; border-radius: var(--radius-sm, 6px); background: var(--ink); color: #fff; font-size: 0.85rem; font-weight: 700; pointer-events: none; }
.qty-check-item { font-weight: 800; font-size: 1.05rem; }

/* v0.8.78: "This isn't an item to load", items set aside, and lines not on this van. */
.item-menu-action small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.item-menu-action.set-aside-button { display: flex; flex-direction: column; justify-content: center; }
.set-aside-item { font-weight: 800; font-size: 1.05rem; margin: 0 0 8px; }
.set-aside-reasons { border: 0; padding: 0; margin: 0 0 10px; }
.set-aside-reasons legend { font-weight: 700; margin-bottom: 6px; }
.set-aside-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.set-aside-chip { min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; -webkit-user-select: none; user-select: none; }
.set-aside-chip[aria-pressed="true"] { border: 2px solid var(--ink); background: var(--ink); color: var(--surface); }
.set-aside-help { font-size: 0.85rem; }
.set-aside-list, .away-list { padding: 10px 0 4px; border-top: 1px solid var(--line); }
.set-aside-list h3, .away-list h3 { display: flex; justify-content: space-between; font-size: 0.9rem; margin: 0 0 6px; }
.set-aside-list h3 span, .away-list h3 span { color: var(--muted); }
.away-list > p.hint { color: var(--muted); font-size: 0.8rem; margin: 2px 0 6px; }
.set-aside-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; margin-bottom: 6px; border: 1px dashed #c9a24a; border-radius: var(--radius-sm); background: #fff8e8; }
.set-aside-row .ref-seq, .away-row .ref-seq { color: var(--muted); min-width: 20px; flex: none; }
.set-aside-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.set-aside-text small { color: #6b5420; }
.set-aside-undo { flex: none; min-height: 44px; }
.away-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 0.9rem; color: var(--muted); }
.away-desc { flex: 1; min-width: 0; text-decoration: line-through; text-decoration-color: rgba(0,0,0,0.25); }
.away-tag { flex: none; font-size: 0.75rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.away-tag.is-gone { background: var(--blue-soft); color: var(--ink); }
.away-tag.is-backorder { background: #f3e9f7; color: #5c2b74; }
.put-back-note { color: var(--ink); }
.set-aside-list, .away-list, .set-aside-list *, .away-list * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* v0.8.80: never loaded (office exception) -- listed at delivery, nothing to unload. */
.away-tag.is-not-loaded { background: #fdecea; color: #8a2a1f; }
.away-reason { display: block; font-size: 0.75rem; text-decoration: none; color: var(--muted); }
.away-desc.is-plain { text-decoration: none; }

/* v0.8.96 (Aleks: "nothing on the driver app needs to be selectable text -- block it
   fully"): no text can be highlighted anywhere in the driver app, and a long press brings
   up no copy / share / save-image menu (driver.mjs blocks that menu too). Typing boxes are
   the only exception -- they need it to put the cursor in and correct what's typed. */
html, body, body * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input:not([type="checkbox"]):not([type="radio"]), textarea { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img { -webkit-user-drag: none; }

/* v0.8.98: updated from Hansa before departure -- something new to load (found by the
   factory, added to an order) in amber, "needs a look"; a changed location in Moss. */
.hansa-update { margin: 10px 0; padding: 12px 14px; border: 2px solid #c98a1c; border-radius: var(--radius); background: var(--amber-soft); color: #3b2a00; }
.hansa-update p { margin: 0; color: #3b2a00; font-size: 0.95rem; line-height: 1.3; }
.hansa-update .hansa-update-title { margin-bottom: 4px; font-weight: 800; color: #6b4000; }
.hansa-update ul { margin: 6px 0 0; padding-left: 18px; color: #3b2a00; font-size: 0.9rem; }
.hansa-update li + li { margin-top: 2px; }
.hansa-update .hansa-update-open { margin-top: 10px; width: auto; min-height: 44px; padding: 8px 16px; }
.hansa-chip { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; border: 1px solid #c98a1c; background: var(--amber-soft); color: #6b4000; font-size: 0.72rem; font-weight: 800; vertical-align: middle; white-space: nowrap; }
.loc-updated { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.72rem; font-weight: 700; }
.unit-card.is-hansa-new { box-shadow: inset 4px 0 0 #c98a1c; background: #fffaf2; }
#driverApp:has(.mode-loading) .drop-card.has-hansa-new:not(:disabled) { border-left-color: #c98a1c; }
.hansa-new-count { color: #6b4000; font-weight: 800; }
