:root {
  --bg: #f4f5f7; --card: #fff; --ink: #14181f; --muted: #667085; --line: #e3e6ec;
  --red: #d92d20; --red-bg: #fee4e2; --yel: #b54708; --yel-bg: #fef0c7; --grn: #067647; --grn-bg: #d1fadf;
  --accent: #1d4ed8; --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116; --card: #181c23; --ink: #eef0f4; --muted: #98a2b3; --line: #2a303a;
    --red: #f97066; --red-bg: #3b1613; --yel: #fdb022; --yel-bg: #3a2a08; --grn: #47cd89; --grn-bg: #0f2e1f;
    --accent: #7a9bff;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
header.top {
  position: sticky; top: 0; z-index: 5; background: var(--card); border-bottom: 1px solid var(--line);
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
}
header.top h1 { margin: 0; font-size: 20px; }
header.top .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
main { padding: 12px 12px 0; max-width: 720px; margin: 0 auto; }
nav.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 6; display: flex; background: var(--card);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
nav.tabs a {
  flex: 1; text-align: center; padding: 14px 8px; color: var(--muted); text-decoration: none; font-weight: 600;
}
nav.tabs a.on { color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; overflow: hidden; }
.group-h {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 4px 2px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.row { display: flex; align-items: center; gap: 12px; padding: 14px; width: 100%; background: none; border: 0; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.row .qty { font-size: 26px; font-weight: 800; min-width: 52px; }
.row .name { flex: 1; font-weight: 600; }
.row .chev { color: var(--muted); transition: transform .15s; }
.card.open .chev { transform: rotate(90deg); }
.card.done { opacity: .5; }
.card.done .name { text-decoration: line-through; }
.where { display: none; border-top: 1px solid var(--line); }
.card.open .where { display: block; }
.stop { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); min-height: 52px; cursor: pointer; }
.stop:first-child { border-top: 0; }
.stop .n { font-weight: 800; font-size: 20px; min-width: 40px; }
.stop .nin { width: 56px; min-width: 56px; padding: 6px 4px; font-size: 20px; font-weight: 800; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.stop .nin.chg { border-color: var(--accent); }
.stop .m { flex: 1; }
.stop.checked { opacity: .45; }
.stop.checked .m { text-decoration: line-through; }
.box { width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 8px; display: grid; place-items: center; flex: none; font-weight: 800; color: #fff; }
.checked .box { background: var(--grn); border-color: var(--grn); }
.checked .box::after { content: "\2713"; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; border-radius: 99px; }
.RED .bar > i { background: var(--red); } .YELLOW .bar > i { background: #f79009; } .GREEN .bar > i { background: var(--grn); }
.badge { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; letter-spacing: .04em; }
.badge.RED { background: var(--red-bg); color: var(--red); } .badge.YELLOW { background: var(--yel-bg); color: var(--yel); } .badge.GREEN { background: var(--grn-bg); color: var(--grn); }
.mhead { padding: 14px; cursor: pointer; }
.mhead .line1 { display: flex; align-items: center; gap: 10px; }
.mhead .mname { flex: 1; font-weight: 700; }
.mhead .meta { color: var(--muted); font-size: 13px; margin-top: 6px; }
.panel { display: none; border-top: 1px solid var(--line); padding: 4px 0 8px; }
.card.open .panel { display: block; }
.panel h3 { margin: 12px 14px 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.slot { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 15px; }
.slot .col { min-width: 38px; color: var(--muted); font-variant-numeric: tabular-nums; }
.slot .p { flex: 1; }
.slot .load { font-weight: 800; font-size: 18px; }
.slot .of { color: var(--muted); font-size: 12px; }
.slot.out .p { font-weight: 700; color: var(--red); }
.slot.out.dim .p { color: var(--muted); font-weight: 500; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--red-bg); color: var(--red); }
.tag.dim { background: var(--line); color: var(--muted); }
.tag.low { background: var(--yel-bg); color: var(--yel); margin-left: 4px; }
header.top .hlink { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.toolbar { display: flex; gap: 8px; align-items: center; padding: 10px 4px 0; }
.toolbar button {
  background: var(--card); border: 1px solid var(--line); color: var(--ink); border-radius: 99px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600;
}
.toolbar .grow { flex: 1; color: var(--muted); font-size: 13px; }
.note { color: var(--muted); font-size: 13px; padding: 12px 4px; }
#status { position: fixed; top: calc(60px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 9; background: var(--ink); color: var(--bg); padding: 6px 12px; border-radius: 99px; font-size: 13px; display: none; }

/* Machines page */
.mrow { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.card > .mrow:first-child { border-top: 0; }
.mrow.picked { background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.mhdr { cursor: default; border: 0; padding: 12px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.mrow .cb { width: 28px; flex: none; }
.mrow .mn { flex: 1; font-weight: 600; min-width: 0; }
.mrow .mn small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.mrow .pc { width: 64px; text-align: right; }
.mrow .pc .bar { margin-top: 4px; height: 6px; }
.mrow .so { width: 62px; text-align: right; font-weight: 700; font-size: 18px; color: var(--muted); }
.mrow .so.hot { color: var(--red); }
.mhdr .pc, .mhdr .so { font-size: 11px; font-weight: 700; }
.box.on { background: var(--accent); border-color: var(--accent); }
.box.on::after { content: "\2713"; }
.fab { position: fixed; left: 16px; right: 16px; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 7; background: var(--accent); color: #fff; border: 0; border-radius: 14px; padding: 15px; font: inherit; font-weight: 700; font-size: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.25); max-width: 688px; margin: 0 auto; }
body { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }

/* Pick list filters */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; background: var(--card); border: 1px solid var(--line); color: var(--ink); border-radius: 99px; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 600; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Cascading slicers (own class: .srow is the stop sheet's grid row, which squeezed these; KP 12-05) */
.slicer { padding-top: 8px; }
.slabel { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 2px; }
.slicer .chips { flex-wrap: wrap; overflow: visible; padding-top: 4px; }   /* wrap, never cut off at the edge (KP 12-05) */
.pickrow { padding: 8px 0 4px; }   /* product card category picker (Kevin 11-30) */
.pickrow[hidden] { display: none; }
.chips.pickwrap { flex-wrap: wrap; overflow: visible; padding-top: 4px; }
.chip small { opacity: .6; font-weight: 500; margin-left: 2px; }

/* Pick list: finished slicers, machine detail, footer */
.chip.done { text-decoration: line-through; opacity: .55; }
.stop .mx { display: inline; margin-left: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.stop .mx.warm { color: var(--yel); }
.stop .mx.hot { color: var(--red); font-weight: 600; }
.sel-footer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 16px 2px 4px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.sel-footer span { color: var(--muted); white-space: nowrap; }

/* Planogram page */
.back { color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 600; }
.prow { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 15px; }
.prow:first-child { border-top: 0; }
.prow .col { width: 40px; flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.prow .p { flex: 1; min-width: 0; }
.prow .p small { display: block; font-size: 12px; color: var(--muted); }
.prow .cnt { white-space: nowrap; color: var(--muted); }
.prow .cnt b { color: var(--ink); font-size: 17px; }
.prow.out .cnt b, .prow.out .p { color: var(--red); }
.prow.low .cnt b { color: var(--yel); }
.phdr { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); padding: 10px 14px 6px; }
.mtag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 99px; font-weight: 700; }
.mtag.off { background: var(--line); color: var(--ink); } .mtag.old { background: var(--yel-bg); color: var(--yel); }
.mn .go { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; }

/* count / max bar (like Vendsoft's Current Count) */
.stop .cbar { display: block; position: relative; margin-top: 4px; height: 22px; width: 100%; max-width: 180px;
  border-radius: 3px; background: #ffe9c7; overflow: hidden; }
.stop .cbar i { position: absolute; inset: 0 auto 0 0; background: #ffc680; }
.stop .cbar b { position: relative; display: block; text-align: center; line-height: 22px; font-size: 13px; font-weight: 500; color: #222; }
.stop .cbar.hot i { background: #ff9a8a; } .stop .cbar.hot { background: #ffe0dc; }

/* product title row: one neutral banner so it stands apart from the machine rows */
.card > .row { background: #e8edf3; }
@media (prefers-color-scheme: dark) { .card > .row { background: #252b35; } }

.clearbar { display: flex; justify-content: flex-end; padding: 4px 0 8px; }
.clearbar button { font: inherit; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--accent); cursor: pointer; }

/* machine photo link + popup */
.mline { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.mline .cbar { margin-top: 0; flex: none; }
.see { color: #1d6fe0; text-decoration: underline; font-size: 14px; white-space: nowrap; cursor: pointer; }
#pv { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pv-card { background: #fff; color: #1a1f27; border-radius: 14px; width: 100%; max-width: 380px; max-height: 100%; overflow: auto; padding: 14px; text-align: center; }
.pv-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; margin-bottom: 8px; }
.pv-x { background: none; border: 0; font-size: 30px; line-height: 1; color: #555; cursor: pointer; padding: 0 6px; }
.pv-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.pv-tabs button { border: 1px solid #c5ccd6; background: #f4f6f9; border-radius: 999px; padding: 6px 18px; font-size: 15px; color: #1a1f27; }
.pv-tabs button.on { background: #1d6fe0; border-color: #1d6fe0; color: #fff; }
.pv-card img { max-width: 100%; max-height: 60vh; border-radius: 8px; cursor: zoom-in; background: #eef1f5; }
.pv-d { margin-top: 8px; font-weight: 600; }
.pv-t { font-size: 12px; color: #6b7480; margin-top: 2px; }
#pv.big .pv-card { max-width: 900px; }
#pv.big img { max-height: 78vh; cursor: zoom-out; }
@media (prefers-color-scheme: dark) { .see { color: #6aa8ff; } }

/* photo popup: docked in the left margin on wide screens; viewer in the planogram */
#pv.dock { inset: auto; left: 16px; top: 92px; width: min(460px, calc((100vw - 720px) / 2 - 32px)); background: transparent; padding: 0; display: block; pointer-events: none; }
#pv.dock .pv-card { max-width: none; pointer-events: auto; box-shadow: 0 6px 24px rgba(0,0,0,.22); }
#pv.dock .pv-card img, #ph img { max-height: calc(100vh - 300px); }
#pvz { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; cursor: zoom-out; }
#pvz img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; }
.pv-zd { color: #fff; margin-top: 10px; text-align: center; font-weight: 600; }
#ph { display: none; text-align: center; }
#ph img { max-width: 100%; border-radius: 8px; cursor: zoom-in; background: #eef1f5; }
#ph .pv-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
#ph .pv-d { margin-top: 8px; font-weight: 600; }
#ph .pv-t { font-size: 12px; color: #6b7480; }
.seeph { margin-left: 10px; }
@media (min-width: 900px) {
  body.mach main { max-width: 1160px; }
  .mgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
  #ph { display: block; position: sticky; top: 12px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
  #seeph { display: none !important; }
}

/* row: location big, small bar, See Machine; X box + check box are real buttons (Tab / Space) */
.stop .loc { display: block; font-size: 19px; font-weight: 600; line-height: 1.2; }
.stop .loc small { font-size: 12px; font-weight: 400; color: var(--muted); }
.stop .loc .spot { font-size: 16px; font-weight: 700; white-space: nowrap; }
.stop .cbar { max-width: 120px; height: 20px; }
.stop .cbar b { line-height: 20px; font-size: 12px; }
.mline { margin-top: 6px; }
button.box, button.xbox { appearance: none; background: transparent; padding: 0; cursor: pointer; font: inherit; }
.xbox { width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 8px; display: grid; place-items: center; flex: none; font-weight: 800; color: #fff; }
.xbox.on { background: #d6453b; border-color: #d6453b; }
.stop .box:focus-visible, .stop .xbox:focus-visible { outline: 3px solid #1d6fe0; outline-offset: 2px; }
/* Kevin 11-28 (D): X and check both show faded; the one tapped lights up fully (the line is still one tap to check) */
.stop .ckx { opacity: .35; border-color: currentColor; } .stop .xbox.ckx { color: #d6453b; } .stop .box.ckx { color: var(--grn); }
.stop .box.ckx::after { content: "\2713"; } .stop .ckx.on { opacity: 1; color: #fff; }
.stop .box.ckx.on { background: var(--grn); border-color: var(--grn); } .stop .xbox.ckx.on { background: #d6453b; border-color: #d6453b; }
.stop.skipped { opacity: .55; }
.stop.skipped .loc { text-decoration: line-through; }
.stop .why { display: block; font-size: 12px; color: #d6453b; margin-top: 3px; }
.stop .why.sugg { color: var(--accent); }
.stop .why.over { color: var(--muted); }
.usesug { font: inherit; font-weight: 600; font-size: 12px; margin-left: 6px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; }
#why { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.why-card { background: var(--card, #fff); color: var(--ink, #14181f); border-radius: 14px; padding: 16px; width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 8px; }
.why-card button { border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 10px; padding: 11px; font: inherit; cursor: pointer; }
.why-card button.pri { background: #1d6fe0; border-color: #1d6fe0; color: #fff; }
.why-card input { border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; background: transparent; color: inherit; }

.stop.smallpull { background: rgba(120,120,120,.10); }
#hid[hidden] { display: none; }

/* "Show all locations" link in the product header; read-only extra rows; last-count badge */
.row .showall { color: #1d6fe0; text-decoration: underline; font-size: 14px; font-weight: 500; margin-left: 10px; white-space: nowrap; cursor: pointer; }
@media (prefers-color-scheme: dark) { .row .showall { color: #6aa8ff; } }
.stop.extra { opacity: .6; cursor: default; background: rgba(120,120,120,.06); }
.stop .mrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.stop .badges { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.badge { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 12px 5px; border-radius: 14px; font-size: 12px; line-height: 1.15; white-space: nowrap; background: #e1e7ef; color: #1f2933; }
.badge .lc { display: flex; align-items: baseline; gap: 5px; font-weight: 600; }
.badge b { font-weight: 800; font-size: 20px; line-height: 1.1; }
.stop .cbar { width: 120px; }
.badge small { font-size: 11px; font-weight: 400; opacity: .6; }
@media (prefers-color-scheme: dark) { .badge { background: #323a47; color: #e6e9ef; } }
.stop .stocked { display: block; text-align: right; font-size: 11px; opacity: .65; margin-top: 4px; }
@media (max-width: 430px) { .stop .mline { gap: 10px; } .stop .cbar { max-width: 100px; width: 100px; } .stop .m { min-width: 0; } }

/* Five tabs: a little tighter */
nav.tabs a { padding: 14px 2px; font-size: 14px; }

/* Location banners (Trips and Machines): one open at a time */
.card > .lgroup { border-top: 1px solid var(--line); }
.card > .lgroup:first-child { border-top: 0; }
.lhead .chev, .banner .chev { color: var(--muted); font-size: 22px; line-height: 1; display: inline-block; transition: transform .15s; }
.lgroup.open .lhead .chev, .banner.open .chev { transform: rotate(90deg); }
.lhead { border-top: 0; }
.lgroup .lbody { display: none; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--line) 22%, var(--card)); }
.lgroup.open .lbody { display: block; }
.mrow.sub { padding-left: 14px; }
.mrow.sub .mn { font-weight: 500; }

/* Current Trips banner (placeholder) */
.banner { margin: 10px 0; }
.banner > button { width: 100%; display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font: inherit; font-weight: 700; color: inherit; cursor: pointer; }
.banner .bbody { display: none; padding: 12px 14px; color: var(--muted); font-size: 14px; background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.banner.open .bbody { display: block; }
.banner.open > button { border-radius: var(--radius) var(--radius) 0 0; }
.note a.go2 { color: var(--accent); font-weight: 600; }

/* Placeholder pages */
.card.ph { padding: 20px 16px; }
.card.ph h2 { margin: 0 0 6px; font-size: 18px; }
.card.ph p { margin: 0; color: var(--muted); }
.mrow.soon { cursor: default; }

/* Products tab: landing page and product card (H017) */
.search { width: 100%; margin: 10px 0 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
.warn { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: var(--yel-bg); color: var(--yel); font-size: 14px; font-weight: 600; }
.plist-h, .plist { display: grid; grid-template-columns: 1fr 72px 46px 50px; align-items: center; gap: 6px; padding: 11px 14px; }
.plist-h { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); }
.plist-h span:not(.pn), .plist .wh, .plist .mc, .plist .tt { text-align: right; }
.plist { border-top: 1px solid var(--line); color: inherit; text-decoration: none; min-height: 56px; }
.plist-h + .plist { border-top: 0; }
.plist .pn { min-width: 0; }
.plist .pname { font-weight: 600; }
.plist small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.plist .wh { font-size: 18px; font-weight: 800; }
.plist .mc { font-size: 16px; color: var(--muted); font-weight: 600; }
.plist .tt { font-size: 18px; font-weight: 800; color: var(--accent); }
.plist .zero, .mbox b.zero { color: var(--red); }
/* Product pictures (HaHa productImage, H020): small on the list, large on the card, grey box when there is none. */
.plist .pn { display: flex; align-items: center; gap: 10px; }
.plist .ptext { min-width: 0; }
.thumb { flex: none; width: 44px; height: 44px; object-fit: contain; }   /* no box around product pictures (Kevin 11-20) */
.thumb.none { background: var(--line); border-radius: 8px; }
.phero { display: flex; justify-content: center; padding: 6px 0 2px; }
.phero img { width: 220px; max-width: 100%; aspect-ratio: 1; object-fit: contain; }
.btn-inactive { display: block; width: 100%; margin: 18px 0 8px; padding: 12px; border: 0; border-radius: 10px; background: var(--red); color: #fff; font: inherit; font-weight: 700; }
.btn-inactive.back-on { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.tag.out { margin-left: 4px; }

.cardtop { display: flex; align-items: center; justify-content: space-between; }
.pencil { width: 44px; height: 44px; margin: -6px -6px -6px 0; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 20px; cursor: pointer; }
.pencil.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ptitle { padding: 8px 4px 0; }
.ptitle h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.pid { margin-top: 4px; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.pmeta { margin-top: 6px; color: var(--muted); font-size: 14px; }
.pprice { margin-top: 8px; font-size: 18px; font-weight: 700; }
.pprice span { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 10px; }
.miss { color: var(--yel); font-weight: 600; }
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 4px; }
.mbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 10px; text-align: center; }
.mbox label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mbox b { display: block; font-size: 30px; font-weight: 800; margin: 4px 0 2px; }
.mbox small { font-size: 12px; color: var(--muted); }
.mbox.acc b { color: var(--accent); }
.sect { margin: 18px 4px 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sect .editing, .sect .ro { margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--line); font-size: 11px; letter-spacing: .02em; text-transform: none; }
.sect .editing { background: var(--accent); color: #fff; }
.card.pad { padding: 4px 14px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.kv:first-child { border-top: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.hrow { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.hrow:first-child { border-top: 0; }
.hrow b { font-size: 17px; min-width: 44px; text-align: right; }
.hrow small { color: var(--muted); }
.fld { display: block; padding: 10px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fld input { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 17px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.btnrow { display: flex; gap: 10px; padding: 12px 0 10px; }
.btnrow button { flex: 1; padding: 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; }
.btnrow .primary { background: var(--accent); border-color: var(--accent); color: #fff; }
details.notes summary { padding: 12px 0; font-weight: 600; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; max-width: 90vw; }
.toast.bad { background: var(--red); color: #fff; }

.mbox .rp { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.mbox .rp.flag { color: var(--yel); font-weight: 700; }
.mbox { display: flex; flex-direction: column; }
.mbox label { white-space: nowrap; }
.nw { white-space: nowrap; }

/* ---- Orders page (Home tab) and order detail ---- */
.otabs { display: flex; gap: 8px; padding: 10px 0 0; }
.otabs .chip { flex: 1; text-align: center; padding: 9px 6px; }
.obar { display: flex; gap: 8px; align-items: center; }
.obar .search { flex: 1; min-width: 0; }
.obar .fbtn { flex: none; margin-top: 10px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; }
.obar .fbtn.on { border-color: var(--accent); color: var(--accent); }
.opanel { display: none; margin-top: 10px; padding: 4px 14px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.opanel.open { display: block; }
.opanel select, .opanel input { width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.opanel .two { display: flex; gap: 10px; }
.opanel .two > label { flex: 1; min-width: 0; }
.orange { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 4px 0; color: var(--muted); font-size: 14px; }
.ocard { display: block; color: inherit; text-decoration: none; padding: 12px 14px; }
.ocard .o1, .ocard .o2, .ocard .o3 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ocard .o2 { margin-top: 3px; font-size: 13px; color: var(--muted); }
.ocard .o3 { margin-top: 8px; align-items: flex-end; }
.ocard .mn2 { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.ocard .mn2 small { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; white-space: nowrap; }
.ocard .pics { display: flex; gap: 6px; align-items: center; min-height: 44px; }
.ocard .pics .more { color: var(--muted); font-size: 13px; font-weight: 600; }
.ocard .right { text-align: right; }
.ocard .items { font-size: 13px; color: var(--muted); }
.ocard .amt { font-size: 20px; font-weight: 800; color: var(--yel); }
.ocard .unpaid { font-size: 13px; font-weight: 700; color: var(--red); }
.opill { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 9px; border-radius: 99px; background: var(--line); color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.opill.paid { background: var(--grn-bg); color: var(--grn); }
.opill.partial { background: var(--yel-bg); color: var(--yel); }
.card > .ocard + .ocard { border-top: 1px solid var(--line); }
.more-btn { display: block; width: 100%; margin: 4px 0 8px; padding: 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; }
.oline { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); }
.oline:first-child { border-top: 0; }
.oline .lname { flex: 1; min-width: 0; font-weight: 600; }
.oline .lname small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.oline .lprice { text-align: right; font-weight: 700; white-space: nowrap; }
.oline .lprice small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.kv.big b { font-size: 18px; }
.kv.red b, .kv.red span { color: var(--red); }
.opanel .two input { min-width: 0; max-width: 100%; }
.opanel input[type="date"] { -webkit-appearance: none; appearance: none; min-height: 46px; }

/* ---- Machine card (header, tabs, HaHa column) ---- */
.mc-head .back { color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.mc-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.mc-haha { color: var(--muted); font-size: 13px; }
.mc-head .sub { display: flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot.on { background: var(--grn); } .dot.off { background: var(--red); }
.mc-line { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); margin-top: 4px; }
.tbadge { border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; font-weight: 600; color: var(--ink); }
.tbadge.hot { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.mc-tabs { display: flex; margin: 10px -16px -10px; border-top: 1px solid var(--line); }
.mc-tabs button { flex: 1; background: none; border: 0; padding: 11px 0; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .03em; color: var(--muted); }
.mc-tabs button.on { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.mc-tabs button:disabled { opacity: .4; }
.chip.sm { padding: 4px 11px; font-size: 13px; }
.prow .hc { width: 74px; flex: none; text-align: right; color: var(--muted); font-size: 15px; }
.prow .hc b { font-size: 16px; font-weight: 600; }
.prow .hc small { display: block; font-size: 10px; line-height: 1.1; }
.prow .hc.none { opacity: .5; }
.prow.empty .p { color: var(--muted); font-style: italic; }
.prow.phdr .hc { font-size: 11px; }
.mc-top { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.mc-info { min-width: 0; flex: 1; }
.mc-thumb { flex: none; width: 64px; height: 64px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); margin-top: 6px; }
.mc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 16px 4px 6px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 14px; }
.bar1 { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; min-width: 0; }
.bar1 i { display: block; width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; }
.bar1 .v { font-size: 9px; color: var(--muted); height: 11px; }
.bar1 .dl { font-size: 8px; color: var(--muted); white-space: nowrap; }
.note.tight { padding: 8px 0 4px; }
.fc { width: 100%; display: flex; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); }
.fc + .card { margin-top: 8px; }
section[hidden] { display: none; }
.pd { display: block; font-size: 11px; color: var(--muted); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 15px; }
.kv:first-child { border-top: 0; }
.kv span { color: var(--muted); flex: none; }
.kv b { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--yel-bg); color: var(--yel); font-size: 13px; }
.pill.ok { background: var(--grn-bg); color: var(--grn); }
.refs { display: flex; gap: 10px; overflow-x: auto; }
.ref { flex: none; background: none; border: 0; padding: 0; width: 120px; text-align: left; font: inherit; }
.ref img { width: 120px; height: 150px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.ref small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
#more + .card, #more { margin-top: 12px; }
#more + .card { margin-top: 8px; }

/* Fix list on the machine card: slots with no Max or no HaHa match sit on top */
.prow.fix { box-shadow: inset 3px 0 0 var(--yel); }
.prow.fix .p small.why { color: var(--yel); font-size: 12px; }
.prow.ghdr { background: var(--bg); padding: 6px 14px; font-size: 13px; color: var(--muted); }

.prow.tap { cursor: pointer; }
.sheetbg { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: flex-end; z-index: 50; }
.sheet { background: #fff; width: 100%; max-width: 560px; margin: 0 auto; border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet h2 { margin: 0 0 2px; font-size: 18px; }
.sheet label { display: block; margin: 14px 0 6px; font-size: 14px; color: var(--muted); }
.sheet input { width: 100%; font-size: 22px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; box-sizing: border-box; }
.sheetbtn { display: flex; gap: 10px; margin-top: 14px; }
.sheetbtn button { flex: 1; min-height: 48px; font-size: 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.sheetbtn.col { flex-direction: column; } .sheetbtn.col button { min-height: 64px; text-align: left; padding: 8px 14px; } .sheetbtn.col small { display: block; font-size: 13px; font-weight: 400; opacity: .85; }
.sheetbtn button.primary { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }

.sheet.wide { max-width: 760px; max-height: 92vh; overflow-y: auto; }
.sheetbg:has(.sheet.wide) { align-items: center; padding: 8px; }
.sheet.wide { border-radius: 14px; }
.shead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.shead h2 { margin: 0; font-size: 20px; }
.sbtns { display: flex; gap: 8px; }
.sbtns button { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 8px; border: 1px solid #94a3b8; background: #fff; color: #334155; }
.sbtns button.primary { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.sgrid { display: grid; grid-template-columns: 1fr; gap: 10px 18px; }
@media (min-width: 640px) { .sgrid { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.scol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.srow3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fld { position: relative; border: 1px solid #cbd5e1; border-radius: 6px; padding: 14px 10px 8px; min-height: 28px; min-width: 0; }
.fld .fl { position: absolute; top: -8px; left: 8px; background: #fff; padding: 0 4px; font-size: 12px; color: var(--muted); }
.fld .fv { font-size: 18px; text-align: right; overflow-wrap: anywhere; }
.fld:first-child .fv { text-align: left; }
.fld.ph .fv { color: #94a3b8; }
.fld.editing { border-color: #1d4ed8; }
.fld.editing input { border: 0; padding: 0; font-size: 18px; text-align: right; }
.stbl { border: 1px solid #cbd5e1; border-radius: 6px; overflow-x: auto; }
.stbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stbl th, .stbl td { padding: 9px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid #e2e8f0; }
.stbl th:first-child, .stbl td:first-child { text-align: left; }
.stbl th { font-weight: 500; color: #475569; }
.stbl .note { padding: 8px 10px; margin: 0; }
.sheet .fld .fv { color: #0f172a; font-weight: 400; text-transform: none; letter-spacing: normal; }
.sheet .fld.ph .fv { color: #94a3b8; }
.sheet .fld.editing input { padding: 0; border: 0; width: 100%; height: 26px; box-shadow: none; outline: none; -moz-appearance: textfield; }
.sheet .fld.editing input::-webkit-outer-spin-button, .sheet .fld.editing input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Trips: list groups, new-trip steps, pull list, stop overview (restocker, 11-15) */
.tgroup { margin: 10px 0; }
.tgroup summary { cursor: pointer; padding: 4px 2px; }
.tgroup summary h2 { margin: 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.trow { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 8px 0; color: inherit; text-decoration: none; }
.trow b { display: block; font-size: 16px; }
.trow small { color: var(--muted); font-size: 13px; }
.pill { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 700; background: var(--line); color: var(--muted); margin-left: 6px; }
.pill.grn { background: var(--grn-bg); color: var(--grn); }
.pill.yel { background: var(--yel-bg); color: var(--yel); }
.pill.blu { background: color-mix(in srgb, var(--accent) 14%, var(--card)); color: var(--accent); }
.steps { display: flex; gap: 6px; margin: 4px 0 12px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--ink); }
.field { display: block; margin: 12px 0; font-weight: 600; font-size: 14px; }
.field input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
.btn { display: block; width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; font-size: 16px; margin: 8px 0; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:disabled { opacity: .5; }
.btnrow { display: flex; gap: 10px; }
.btnrow .btn { margin: 8px 0; }
.err { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: var(--red-bg); color: var(--red); font-size: 14px; font-weight: 600; }
.ordrow { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 8px 0; }
.ordrow span { flex: 1; font-weight: 600; }
.ordrow button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 18px; }
.ordrow button:disabled { opacity: .3; }
.pgroup { background: var(--line); color: var(--muted); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 8px; margin: 12px 0 4px; }
.pline { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.pline .pn { flex: 1; min-width: 0; }
.pline .pn b { display: block; font-weight: 600; }
.pline .pn small { color: var(--muted); font-size: 12px; }
.pline input { width: 64px; padding: 10px 6px; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 17px; font-weight: 700; }
.pline input.chg { border-color: var(--accent); }
.pline .mx { width: 44px; text-align: right; color: var(--muted); font-size: 14px; }
.pline.zero { opacity: .45; }
.pline .tick { width: 24px; height: 24px; flex: none; border: 2px solid var(--line); border-radius: 6px; }
.pline.ok .tick { background: var(--grn); border-color: var(--grn); }
.pcols { display: flex; gap: 10px; padding: 6px 4px; font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.pcols span:first-child { flex: 1; padding-left: 34px; }
.pcols span:nth-child(2) { width: 64px; text-align: center; }
.pcols span:last-child { width: 44px; text-align: right; }
.sgroup { margin: 14px 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.stop { display: flex; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 8px 0; color: inherit; text-decoration: none; }
.stop b { display: block; font-size: 17px; }
.stop small { color: var(--muted); font-size: 13px; }

/* Stop sheet: list view and focus view (restocker) */
.srow { display: grid; grid-template-columns: 38px 1fr 46px 40px 54px; align-items: center; gap: 6px; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.srow .sn { font-weight: 700; color: var(--muted); }
.srow .sp { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.srow.zero { opacity: .45; }
.srow.ok { background: color-mix(in srgb, var(--grn) 10%, var(--card)); }
.shead { display: grid; grid-template-columns: 38px 1fr 46px 40px 54px; gap: 6px; padding: 6px 4px; font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.shead span:nth-child(n+3) { text-align: right; }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 10px 0; }
.fcard h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.fprod b { display: block; font-size: 20px; }
.fprod small { color: var(--muted); }
.cnt2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cbox { border: 2px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; background: var(--card); color: var(--ink); font: inherit; }
.cbox small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.cbox b, .cbox input { display: block; width: 100%; font-size: 28px; font-weight: 800; border: 0; background: transparent; text-align: center; color: var(--ink); padding: 2px 0; font-family: inherit; }
.cbox.ok { border-color: var(--grn); background: var(--grn-bg); }
.cbox.set { border-color: var(--accent); }
.fill { display: grid; grid-template-columns: 56px 1fr 56px; gap: 10px; align-items: center; }
.fill button { height: 56px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 26px; font-weight: 700; }
.fill input { width: 100%; height: 56px; text-align: center; font-size: 30px; font-weight: 800; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-family: inherit; }
.xmax { padding: 10px 14px; border-radius: 12px; font-weight: 700; text-align: center; }
.xmax.g { background: var(--grn-bg); color: var(--grn); } .xmax.y { background: var(--yel-bg); color: var(--yel); } .xmax.r { background: var(--red-bg); color: var(--red); }
.fnav { display: flex; gap: 10px; }
.fnav .btn { margin: 8px 0; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.thumbs div { position: relative; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; }
.menu { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; overflow: hidden; }
.menu button { display: block; width: 100%; text-align: left; padding: 14px; border: 0; border-top: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
.menu button:first-child { border-top: 0; }
.menu textarea { width: 100%; padding: 12px; border: 0; border-top: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 16px; min-height: 80px; }
.backlink { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 700; padding: 8px 0; }
.chip.lbl { background: transparent; border-color: transparent; color: var(--muted); font-weight: 700; padding-left: 0; pointer-events: none; }
/* Trips landing: sortable headings (Kevin 11-20) */
.sorth { background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-align: inherit; cursor: pointer; }
.sorth.on { color: var(--accent); }
.sorth::after { content: attr(data-arrow); }
.lhead small .chev { font-size: 16px; vertical-align: -1px; margin-left: 2px; }
/* Trip submit confirmation (Kevin 11-20) */
.okpop { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 16px; }
.okcard { background: var(--card); color: var(--ink); border-radius: 16px; padding: 20px; width: 100%; max-width: 380px; }
.okcard h2 { margin: 0 0 10px; color: var(--grn); }
.okcard ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.okcard li { display: flex; gap: 8px; align-items: flex-start; }
.okmark { color: var(--grn); font-weight: 800; }
/* Route detail page and trip pick list (Kevin 11-20) */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fgrid .field { margin: 6px 0; }
.locpick { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line); font-size: 15px; }
.locpick input { width: 20px; height: 20px; }
.btnrow3 { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; }
.btnrow3 .btn { margin: 8px 0; font-size: 15px; padding: 12px 8px; }
#tripbar { position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 4; background: var(--bg); padding-bottom: 2px; }
/* No double-tap zoom on buttons and boxes (Kevin 11-20: + and - on the stop sheet zoomed the page) */
button, .btn, input, .cbox, .chip { touch-action: manipulation; }
details.needs > summary { cursor: pointer; list-style: revert; }
/* Swap product picker (Kevin 11-21) */
.swlist { max-height: 55vh; overflow-y: auto; margin-top: 8px; }
.swrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 4px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; }
.swrow small { display: block; color: var(--muted); font-size: 12px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; }

/* Pick list: a spot number opens that slot's card from the Machines tab in an overlay (Kevin 11-21) */
.stop .loc .spotedit { font: inherit; font-weight: 700; color: var(--blue, #1d4ed8); background: none; border: 0; padding: 2px 4px; margin: -2px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.slotframe { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; z-index: 60; background: transparent; }
body.embed { background: transparent; }
body.embed > *:not(#sheetbg) { display: none !important; }
html:has(body.embed) { background: transparent; }

/* Machine planogram opened as a window over the pick list (Kevin 11-21): no bottom tab bar inside it */
body.win nav.tabs { display: none !important; }
.winframe { background: #fff; }
.lhead .mn > .chev { font-size: 18px; margin-right: 2px; vertical-align: -1px; }

/* Machines list: machine photo thumbnails in front of the name (Kevin 11-21); doubles show Left and Right */
.mthumbs { display: flex; flex: none; width: 88px; justify-content: flex-end; }
.mthumb { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); background: var(--line); cursor: zoom-in; }
.mthumb + .mthumb { margin-left: -12px; }
.mthumb.none { display: inline-block; cursor: default; opacity: .35; }
@media (max-width: 480px) { .mthumbs { width: 64px; } .mthumb { width: 34px; height: 34px; } .mthumb + .mthumb { margin-left: -10px; } }

/* Remove product (Kevin 11-21): red button on the slot card and in its confirm box */
.sheet.wide .sbtns button, .rwebar button { min-height: 44px; }
.rwebar.off button { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--accent); font-weight: 700; font-size: 15px; }
.sbtns button.danger, .sheetbtn button.danger { color: #fff; background: #dc2626; border-color: #dc2626; }

/* Machines list (Kevin 11-21): an opened location hides its photos, "showing cooler" and its numbers; the machines below show them */
.lgroup.open .lhead .mthumbs, .lgroup.open .lhead .pc, .lgroup.open .lhead .so { visibility: hidden; }
.lgroup.open .lhead .lshow { display: none; }

/* Pick list stop row, compact (Kevin 11-21): spot number and pencil apart; one wide badge Last count | Sales since | Avg / week */
.stop .loc .spotopen { font: inherit; font-weight: 700; color: var(--blue, #1d4ed8); background: none; border: 0; padding: 2px 4px; margin: -2px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.stop .loc .spotedit { text-decoration: none; margin-left: 10px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
.stop .duo { display: grid; grid-template-columns: repeat(3, auto); column-gap: 16px; align-items: end; background: #e1e7ef; color: #1f2933; border-radius: 14px; padding: 6px 14px 5px; margin-left: auto; }
.stop .duo .dc { display: flex; flex-direction: column; align-items: center; }
.stop .duo .dc b { font-size: 20px; font-weight: 800; line-height: 1.1; }
.stop .duo .dc small { font-size: 11px; opacity: .65; white-space: nowrap; }
.stop .duo .dfoot { grid-column: 1 / -1; text-align: center; font-size: 11px; opacity: .65; border-top: 1px solid rgba(0,0,0,.08); margin-top: 3px; padding-top: 2px; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .stop .duo { background: #323a47; color: #e6e9ef; } }
@media (min-width: 600px) { .stop .mrow { flex-wrap: nowrap; } }
/* the date line may wrap so the check boxes never get pushed off the row */
.stop .duo .dfoot { white-space: normal; }
.stop .duo { max-width: 260px; min-width: 0; flex-shrink: 1; }
.stop .m { min-width: 0; }
/* badge keeps its size; the name side gives way (11-21 live check) */
.stop .duo { max-width: none; flex-shrink: 0; column-gap: 10px; padding: 5px 10px 4px; }
.stop .mleft { min-width: 0; flex: 1 1 auto; }
.stop .mline { flex-wrap: wrap; gap: 4px 12px; }

/* Machine page: HaHa background status line (Kevin 11-21) */
.hahaq { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hahaq.ok { color: #15803d; }
.hahaq.bad { color: #dc2626; font-weight: 600; }

/* Machine planogram on a desktop (Kevin 11-21): narrower table, the machine's photo beside it */
.pside { display: none; }
@media (min-width: 1000px) {
  body.mach main { max-width: 1400px; }
  .pgrid { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 20px; align-items: start; }
  .pside { display: block; position: sticky; top: calc(var(--hdr, 150px) + 8px); max-height: calc(100vh - var(--hdr, 150px) - 80px); overflow: hidden; }   /* Kevin 11-21 night: fits between the sticky header and the tab bar, floats as the list scrolls */
  .pside-imgs { display: grid; gap: 10px; }
  .pside-imgs.two { grid-template-columns: 1fr 1fr; }
  .pside figure { margin: 0; }
  .pside img { width: 100%; max-height: calc(100vh - var(--hdr, 150px) - 108px); object-fit: contain; border-radius: 12px; background: #eef1f5; cursor: zoom-in; display: block; }
  .pside figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 4px; }
  .pmain .prow { padding: 8px 10px; font-size: 14px; }
}

/* Product card "In machines" (Kevin 11-21): one row per machine, fill bar count / Max */
.inm summary { font-weight: 700; cursor: pointer; padding: 2px 0; }
.imrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.imrow:first-of-type { margin-top: 8px; }
.imloc { flex: 1; min-width: 0; font-weight: 600; }
.imloc small { font-weight: 400; color: var(--muted); }
.imloc .imspot { display: block; font-size: 12px; }
.imbar { position: relative; flex: none; width: 120px; height: 22px; border-radius: 3px; background: #ffe9c7; overflow: hidden; }
.imbar i { position: absolute; inset: 0 auto 0 0; background: #ffc680; }
.imbar b { position: relative; display: block; text-align: center; line-height: 22px; font-size: 13px; font-weight: 500; color: #222; }
.imbar.full { background: #dcf3e2; } .imbar.full i { background: #7fd39a; }
.imbar.empty { background: #ffe0dc; } .imbar.empty i { background: #ff9a8a; }

/* Stop sheet "Add an item" (Kevin 11-21) */
.srow.added { background: color-mix(in srgb, #1d6fe0 8%, var(--card)); }
.mini { min-width: 34px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font-size: 16px; }
.mini.x { min-width: 28px; margin-left: 6px; color: #dc2626; }
.arow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); text-align: left; font-size: 15px; }
.arow img, .arow .ph { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: #eef1f5; flex: none; }
.arow small { display: block; color: var(--muted); font-size: 12px; }
.arow[disabled] { opacity: .5; }

/* Fill bar: count now / Max, same as the pick list bar (Kevin 11-21) */
.fbar { position: relative; display: inline-block; vertical-align: middle; width: 96px; height: 20px; border-radius: 3px; background: #ffe9c7; overflow: hidden; }
.fbar i { position: absolute; inset: 0 auto 0 0; background: #ffc680; }
.fbar b { position: relative; display: block; text-align: center; line-height: 20px; font-size: 12px; font-weight: 600; color: #222; }
.fbar.hot { background: #ffe0dc; } .fbar.hot i { background: #ff9a8a; }
.prow .cnt .fbar b { font-size: 12px; color: #222; }
.imrow .fbar { width: 120px; flex: none; height: 22px; } .imrow .fbar b { line-height: 22px; font-size: 13px; }

/* Fill levels (Kevin 11-21): how full a spot is. 0% dark red, 1-10% red, 11-25% dark yellow, 26-50% yellow, over 50% plain gray.
   Same on every bar: pick list (.cbar), planogram, product card, editor (.fbar). */
.fbar.lv4, .stop .cbar.lv4 { background: #dcfce7; } .fbar.lv4 i, .stop .cbar.lv4 i { background: #86efac; }
/* Kevin 11-21 night: full = dark green; dark red (0) and dark green (full) get white numbers everywhere, planogram rows too */
.fbar.lv5, .stop .cbar.lv5 { background: #166534; } .fbar.lv5 i, .stop .cbar.lv5 i { background: #166534; }
.fbar.lv0 b, .fbar.lv5 b, .prow .cnt .fbar.lv0 b, .prow .cnt .fbar.lv5 b, .stop .cbar.lv0 b, .stop .cbar.lv5 b { color: #fff; }
.fbar.lv3, .stop .cbar.lv3 { background: #fef9c3; } .fbar.lv3 i, .stop .cbar.lv3 i { background: #fde047; }
.fbar.lv2, .stop .cbar.lv2 { background: #fef3c7; } .fbar.lv2 i, .stop .cbar.lv2 i { background: #f59e0b; }
.fbar.lv1, .stop .cbar.lv1 { background: #fecaca; } .fbar.lv1 i, .stop .cbar.lv1 i { background: #ef4444; }
.fbar.lv0, .stop .cbar.lv0 { background: #991b1b; } .fbar.lv0 b, .stop .cbar.lv0 b { color: #fff; }

/* Kevin 11-21 night: product picture on every planogram row (between the spot number and the name) */
.prow .pim { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; }
.prow .pim img { max-width: 36px; max-height: 36px; object-fit: contain; }
/* Tighter product card: picture top left, small fields, 7-day sales chart */
.shead.tight { align-items: flex-start; margin-bottom: 10px; }
.stitle { display: flex; gap: 10px; align-items: center; min-width: 0; }
.stitle img { width: 64px; height: 64px; object-fit: contain; flex: none; border-radius: 8px; background: #f8fafc; }
.stitle h2 { font-size: 18px; line-height: 1.2; }
.stitle .sub { font-size: 13px; color: var(--muted); }
.sgrid.tight { gap: 8px 14px; }
.sgrid.tight .scol { gap: 10px; }
.sgrid.tight .srow3 { gap: 8px; }
.sgrid.tight .srow3.one { grid-template-columns: 1fr; }
.sgrid.tight .fld { padding: 10px 8px 5px; }
.sgrid.tight .fld .fv { font-size: 15px; }
.sgrid.tight .fld .fv small { font-size: 11px; color: var(--muted); }
.sgrid.tight .fld.editing input { font-size: 15px; height: 22px; }
.schart { border: 1px solid #cbd5e1; border-radius: 6px; padding: 8px 10px; }
.schart .schead { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.sbars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 118px; align-items: end; position: relative; }
.sbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.sbar .n { font-size: 12px; font-weight: 600; color: #0f172a; }
.sbar .b { display: block; width: 70%; min-height: 2px; max-height: 64px; background: #16a34a; border-radius: 3px 3px 0 0; }
.sbar .d { font-size: 11px; color: var(--muted); margin-top: 3px; }
.sbar .dt { font-size: 10px; color: var(--muted); line-height: 1.1; }
/* Kevin 11-30: thin red line at the machine's last restock on the 7-day sales chart */
.srest { position: absolute; top: 0; bottom: 29px; width: 2px; margin-left: -1px; background: #dc2626; border-radius: 1px; pointer-events: none; }
.srestn { margin-top: 6px; font-size: 12px; color: #475569; display: flex; align-items: center; gap: 6px; }
.srestk { display: inline-block; width: 2px; height: 12px; background: #dc2626; }
.spw { margin-top: 8px; font-size: 14px; color: #334155; } .spw b { font-size: 18px; color: #0f172a; }
/* the card header is a row, not the stop sheet's .shead grid; labels stay on one line */
.sheet .shead.tight { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 0; border: 0; font-size: inherit; color: inherit; }
.shead.tight .stitle { flex: 1; }
.shead.tight .sbtns { flex: none; }
@media (min-width: 640px) { .sgrid.tight { grid-template-columns: 1fr 1fr; } }
.sgrid.tight .fld .fl { white-space: nowrap; font-size: 11px; }
.fld .fl small.lc-edited { font-size: 10px; font-weight: 400; color: var(--muted); }   /* Kevin 11-28 (U): "(edited 11-28)" in small, neat type */
@media (max-width: 520px) { .sheet .shead.tight { flex-direction: column; } }

/* Login tiers (Kevin 11-23): common.js puts the signed-in tier on <html data-tier>. */
html[data-tier=logistics] .admin-only, html[data-tier=operations] .admin-only { display: none !important; }
html:not([data-tier=super_admin]) .super-only { display: none !important; }
.authbox { max-width: 420px; margin: 24px auto; }
.field select { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
.linkbox { word-break: break-all; font-family: ui-monospace, monospace; font-size: 13px; background: var(--bg); border: 1px solid var(--line); padding: 8px; border-radius: 6px; margin: 6px 0; }

/* Stop sheet list (Kevin 11-21 notes, built 11-23): full list, shelf borders, pinned search + filter bar */
.stbar { position: sticky; z-index: 4; background: var(--bg); padding: 8px 0 0; margin: 0 -2px; }
.stbar-in { display: flex; gap: 8px; align-items: center; }
.stbar .mag { font-size: 16px; opacity: .7; }
.stbar input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
.fbtn { flex: none; padding: 9px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; }
.fbtn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.fpop { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 2px; }
.redx { color: #dc2626; }
.shelf { margin-top: 10px; padding: 6px 4px 4px; border-top: 3px solid var(--ink); font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
#slist .shelf:first-child { margin-top: 2px; }

/* Order list + Order board (Kevin 11-24) */
.seg { display: flex; margin: 12px 0 0; border: 1px solid var(--accent); border-radius: 10px; overflow: hidden; }
.seg a { flex: 1; text-align: center; padding: 9px 6px; font-weight: 700; color: var(--accent); text-decoration: none; background: var(--card); }
.seg a.on { background: var(--accent); color: #fff; }
.rbtns { display: flex; gap: 8px; margin: 10px 0 4px; }
.rbtns button { flex: 1; padding: 11px 8px; border-radius: 10px; border: 1px solid var(--accent); background: var(--card); color: var(--accent); font: inherit; font-weight: 700; }
.rbtns button.pri { background: var(--accent); color: #fff; }
.store { margin: 18px 0 6px; font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; }
.store small { color: var(--muted); font-weight: 400; }
.store .cartb { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 700; }
.rline, .bline { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-top: 1px solid var(--line); }
.rline:first-child, .bline:first-child { border-top: 0; }
.rline.done { opacity: .5; }
.rline input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.rline .rt, .bline .rt { flex: 1; min-width: 0; }
.rline .rn { font-weight: 600; }
.rline .rb { font-size: 15px; margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rline .rb b { font-size: 17px; }
.rline small, .bline small { display: block; color: var(--muted); margin-top: 2px; }
.rline .thumb, .bline .thumb { width: 40px; height: 40px; object-fit: contain; flex: none; }
.rline .adj { color: var(--accent); font-weight: 700; font-size: 13px; }
.step { display: inline-flex; gap: 6px; margin-left: auto; }
.step button { min-width: 44px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; }
.step button:disabled { opacity: .35; }
.tag.ord { background: var(--line); color: var(--ink); margin-left: 4px; }
.tag.new { background: var(--grn-bg); color: var(--grn); margin-left: 4px; }   /* New from HaHa (Products, KP 12-03) */

/* Trip calendar + Show List (Kevin 11-24) */
.cal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin: 8px 0; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; font-weight: 700; padding: 2px 2px 8px; }
.cal-arrow { width: 42px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 22px; line-height: 1; }
.cal-arrow:disabled { opacity: .35; }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; min-height: 64px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
.cal-day small { font-size: 10px; color: var(--muted); }
.cal-day b { font-size: 16px; }
.cal-day.today b { color: var(--accent); }
.cal-day.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.cal-day.future { opacity: .55; }
.cal-dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; min-height: 10px; }
.cal-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.cal-dots em { font-size: 10px; font-style: normal; color: var(--muted); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 2px; font-size: 13px; color: var(--muted); }
.cal-key { display: inline-flex; align-items: center; gap: 5px; }
.cal-head2 { font-weight: 700; margin: 8px 2px 4px; }
.cal-detail .trow { margin: 6px 0; }
.listbtn { display: block; text-align: center; padding: 12px; margin: 6px 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--accent); font-weight: 700; text-decoration: none; }
.chead { margin: 0; font-size: 14px; font-weight: 700; color: var(--muted); padding: 4px 2px; }
.more-btn[hidden], .actbar[hidden] { display: none; }
@media (min-width: 700px) { .cal-day { min-height: 76px; } }

/* Products: tick mode while Show inactive is on (Kevin 11-24) */
.plist.selmode, .plist-h.selmode { grid-template-columns: 26px 1fr 72px 46px 50px; }
.pcb { width: 20px; height: 20px; border: 2px solid var(--muted); border-radius: 6px; display: inline-block; }
.pcb.on { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--card); }
.pcb.off { opacity: .25; }
.actbar { position: sticky; bottom: 70px; display: flex; gap: 8px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; z-index: 5; margin: 8px 0; }
.actbar button { flex: 1; padding: 12px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; }
.actbar button:disabled { opacity: .5; }

/* Order board banners (Kevin 11-25): Ordered / Out / Low, first with lines opens */
.band { margin-top: 12px; }
.band > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-weight: 700; }
.band > summary::-webkit-details-marker { display: none; }
.band > summary::before { content: '\25B8'; color: var(--muted); transition: transform .15s; }
.band[open] > summary::before { transform: rotate(90deg); }
.band[open] > summary { border-radius: 10px 10px 0 0; border-bottom: 0; }
.band[open] > .card { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 0; }
.band .bt { font-size: 16px; }
.band .bn { font-size: 13px; padding: 1px 8px; border-radius: 99px; background: var(--line); color: var(--ink); }
.band .bh { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--muted); }
.band-out .bn { background: var(--red-bg); color: var(--red); }
.band-low .bn { background: var(--yel-bg); color: var(--yel); }
.offwrap { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
button.off { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: inherit; font-size: 13px; }
button.off.yes { border-color: var(--red); color: var(--red); }
.offwrap .sure { font-size: 13px; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .band > summary::before { transition: none; } }

/* Pick list Refresh button in the header (Kevin 11-25) */
header.top button.hlink { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); }
header.top button.hlink:disabled { opacity: .6; }
/* Cart run line (Order board + Order sheet, Kevin 11-25) */
.runl { margin: 8px 0; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; background: var(--yel-bg); color: var(--yel); }
.runl.run-ready { background: var(--grn-bg); color: var(--grn); }
.runl.run-stopped { background: var(--red-bg); color: var(--red); }
/* Kevin 11-28 (B/C): out of stock on the pick list's product banner */
.oosbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.oosbtn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.oosbtn .ob { width: 18px; height: 18px; border: 2px solid #d6453b; border-radius: 5px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.oosbtn.on { border-color: #d6453b; color: #d6453b; font-weight: 700; } .oosbtn.on .ob { background: #d6453b; } .oosbtn.on .ob::after { content: "\2713"; }
.oosbar small { color: var(--muted); font-size: 12px; }
.oostag { font-size: 11px; font-weight: 700; color: #fff; background: #d6453b; border-radius: 99px; padding: 1px 7px; vertical-align: middle; }
/* Kevin 11-28 (A): floating way back to the open pick list, on every page */
#plfloat { position: fixed; left: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; background: #1d4ed8; border-radius: 99px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
#plfloat a { color: #fff; text-decoration: none; font: 700 15px system-ui; padding: 10px 6px 10px 16px; }
#plfloat button { background: none; border: 0; color: #dbeafe; font-size: 20px; line-height: 1; padding: 8px 12px 8px 6px; cursor: pointer; }
/* Kevin 11-28 (O): Suggest replacing on a pick list line */
.why.replflag { color: var(--red); font-weight: 600; }
.replbtn { margin-left: 8px; padding: 4px 12px; min-height: 32px; border-radius: 8px; border: 1px solid var(--red); background: #fff; color: var(--red); font: inherit; font-weight: 700; cursor: pointer; }
.oldto { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; } .oldto button { flex: 1 1 40%; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; } .oldto button.on { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.swhead { margin: 10px 0 2px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; } .why.replflag b { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--red); color: #fff; font-size: 11px; margin-right: 4px; }
/* Kevin 11-28 (E, 22): Replace when empty: the card's bar, the planogram badge, the pick list's "Put in" line */
.rwebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #fff4e5; border: 1px solid #f3c27a; font-size: 14px; }
.rwebar.off { background: none; border: 1px dashed var(--line, #ccc); justify-content: flex-start; }
.rwebar.off small { color: var(--muted, #666); }
.rwebar .rwebtns { display: flex; gap: 6px; }
.rwe-need { color: var(--red); font-weight: 600; }
.rwe-tag { display: inline-block; margin-top: 2px; padding: 1px 6px; border-radius: 6px; background: #fff4e5; color: #8a4b00; border: 1px solid #f3c27a; font-size: 11px; font-weight: 600; }
.why.putin { color: #1b5e20; font-weight: 600; }
/* Kevin 11-28 (G): a trip line whose product left the planogram after it was ticked or typed */
.stop.gone { opacity: .55; }
.stop.gone .why .dropln { margin-left: 6px; border: 1px solid var(--line, #ccc); background: transparent; color: inherit; border-radius: 8px; padding: 2px 8px; font: inherit; cursor: pointer; }
/* Can't finish route form on the trip page (Kevin 12-03) */
.okcard label { display: block; margin: 10px 0 4px; font-size: 14px; color: var(--muted); }
.okcard select, .okcard input { display: block; width: 100%; margin-top: 4px; font: inherit; padding: 8px; }
/* Pick list: product already pulled on a route that was not finished (Kevin 12-03) */
.vantag { font-size: 11px; font-weight: 700; color: var(--yel); background: var(--yel-bg); border-radius: 99px; padding: 1px 7px; vertical-align: middle; }
/* Supplier badges (KP 12-03): main supplier filled, others outlined; a link when the product page is saved */
.tag.sup { background: transparent; color: var(--muted); border: 1px solid var(--line); margin-left: 4px; text-decoration: none; }
.tag.sup.main { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag.sup.other, .tag.sup.main.other { background: var(--line); border-color: var(--line); color: var(--muted); cursor: pointer; }
a.tag.sup::after { content: ' \2197'; }
.suprow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.suprow select, .suprow input { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; min-width: 0; }
.suprow .wide { grid-column: 1 / -1; }
.suprow .acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.suprow .acts a, .suprow .acts button { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; text-decoration: none; }
/* KP 12-05: month view (computer): weekday letters on top, days of the next/previous month dimmed */
.cal-wk { margin-bottom: 2px; }
.cal-wk small { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.cal-day.cal-out { opacity: .4; }
/* KP 12-05: Show List sort headings */
.lsortbar { display: flex; gap: 16px; align-items: center; padding: 4px 4px 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
