/* Masterko Core - Warehouse (look only). Brand: red #C1272D, black #111111, white; tints from the brand sheet. */
:root {
  --red: #C1272D; --red7: #9A1F24; --red3: #E39C9F; --red2: #EFC4C6; --red1: #F6DDDE; --red0: #FBF0F1;
  --ink: #111111; --mute: #5d5d5d; --line: #e3e3e3; --bg: #ffffff; --soft: #f6f6f6; --gold: #E0AA60;
  --dry: #8a6d3b; --fresh: #2e7d4f; --frozen: #2b6cb0; --truck: #6b46c1;
  font-family: Mont, Montserrat, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; }
a { color: var(--red); text-decoration: none; }
button, input { font: inherit; }

.top { display: flex; align-items: center; gap: 14px; padding: 10px 20px; border-bottom: 3px solid var(--red); position: sticky; top: 0; background: #fff; z-index: 5; flex-wrap: wrap; }
.nav { display: flex; gap: 6px; }
.hist { width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
.hist:disabled { opacity: .3; cursor: default; }
.brand { font-size: 20px; color: var(--red); letter-spacing: .2px; white-space: nowrap; }
.brand b { font-weight: 800; }
.brand .sub { color: var(--ink); margin-left: 10px; font-size: 15px; }
.pill { background: var(--red0); color: var(--red7); border: 1px solid var(--red2); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; letter-spacing: .6px; }
.tabs { display: flex; gap: 4px; margin-left: 10px; flex-wrap: wrap; align-items: center; }
.tabs a { padding: 9px 13px; border-radius: 8px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.tabs .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--mute); margin: 0 2px 0 12px; padding-left: 12px; border-left: 2px solid var(--line); }
.tabs .grp:first-child { margin-left: 0; padding-left: 0; border-left: 0; }
tr.overdue td { background: var(--red0); }
.wait { white-space: nowrap; font-weight: 700; }
.dockbox { border: 2px solid var(--gold); background: #fff6e0; border-radius: 10px; padding: 14px 16px; margin: 12px 0; }
.dockbox .big { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.tabs a.on { background: var(--red); color: #fff; }
/* the language switch (English / Español): one button, on the right, also on the sign-in page */
.lang { margin-left: auto; min-height: 34px; padding: 5px 12px; font-weight: 600; }
.lang + .who { margin-left: 0; }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 14px; }

main { max-width: 1500px; margin: 0 auto; padding: 18px 20px 60px; }
h1 { font-size: 24px; margin: 4px 0 4px; font-weight: 800; }
.lead { color: var(--mute); margin: 0 0 14px; font-size: 14px; }
.bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.bar .grow { flex: 1 1 260px; }
input[type=text], input[type=password], input[type=search] { border: 1px solid #bbb; border-radius: 8px; padding: 11px 12px; width: 100%; background: #fff; }
input:focus { outline: 2px solid var(--red3); border-color: var(--red); }

.btn { background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 11px 18px; font-weight: 700; cursor: pointer; min-height: 44px; }
.btn:hover { background: var(--red7); }
.btn:disabled, .ghost:disabled, .chip:disabled { opacity: .65; cursor: progress; }
.ghost { background: #fff; color: var(--ink); border: 1px solid #bbb; border-radius: 8px; padding: 9px 14px; cursor: pointer; min-height: 40px; }
.busy::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid #bbb; background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600; min-height: 40px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { font-weight: 400; opacity: .75; margin-left: 4px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--red7); background: var(--red1); padding: 9px 10px; position: sticky; top: 66px; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.row { cursor: pointer; }
tr.row:hover td { background: var(--red0); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.big { font-weight: 800; font-size: 17px; }
.mute { color: var(--mute); }
.small { font-size: 13px; }

.tag { display: inline-block; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; }
.tag.dry { background: var(--dry); } .tag.fresh { background: var(--fresh); } .tag.frozen { background: var(--frozen); }
.tag.truck { background: var(--truck); } .tag.none { background: #888; }
.st { display: inline-block; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
.st.Picking { background: #fff6e0; border-color: var(--gold); }
.st.On { background: var(--red1); border-color: var(--red3); color: var(--red7); }
.late { color: var(--red); font-weight: 700; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 14px 0 18px; }
.fact { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.fact .k { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--mute); }
.fact .v { font-size: 18px; font-weight: 700; margin-top: 2px; }
.binchip { display: inline-block; border: 1px solid var(--line); background: var(--soft); border-radius: 6px; padding: 3px 8px; margin: 0 6px 6px 0; font-size: 13px; color: var(--ink); }
.binchip b { font-variant-numeric: tabular-nums; }
.aisle { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; border: 1px solid rgba(0, 0, 0, .4); }
.nextline .aisle { width: 26px; height: 26px; border-radius: 5px; margin: 0 8px 0 2px; vertical-align: -5px; }
.note { background: #fff6e0; border: 1px solid var(--gold); border-radius: 8px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.empty { padding: 40px 10px; text-align: center; color: var(--mute); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bin { border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-weight: 700; color: var(--ink); background: #fff; text-align: left; cursor: pointer; min-height: 48px; }
.bin:hover { background: var(--red0); border-color: var(--red3); }
.bin small { display: block; font-weight: 400; color: var(--mute); }
h2.zone { font-size: 14px; text-transform: uppercase; letter-spacing: .6px; color: var(--red7); margin: 18px 0 8px; }

.login { max-width: 400px; margin: 8vh auto; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.login label { display: block; font-size: 13px; color: var(--mute); margin: 12px 0 4px; }
.login .btn { width: 100%; margin-top: 18px; }
.err { color: var(--red); font-size: 14px; margin-top: 10px; min-height: 20px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; z-index: 9; max-width: 90vw; }
@media (max-width: 700px) { .hide-s { display: none; } th { position: static; } table { display: block; overflow-x: auto; } }

/* pick and pack (practice Core) */
.pill.practice { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.actions { margin-top: 14px; align-items: center; gap: 10px; flex-wrap: wrap; }
.pickbox { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
/* the count of a line that is scanned case by case: plain words, nothing to tap */
.scancount { font-size: 14px; font-weight: 700; color: #777; white-space: nowrap; padding: 0 4px; }
.scancount.some { color: var(--ink); }
input.qty { width: 76px; min-height: 40px; font-size: 18px; font-weight: 700; text-align: center; border: 1px solid #bbb; border-radius: 8px; padding: 4px 6px; }
.pickbtn { background: var(--soft); }
.done { color: var(--mute); font-weight: 700; }
/* picking by scan */
.scanbox { border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; margin: 12px 0; background: var(--soft); }
.scanbar { margin: 0; }
input.scan { width: 100%; font-size: 20px; padding: 12px; }
.scansay { margin-top: 8px; font-size: 16px; font-weight: 700; }
.scansay.bad { color: var(--red); }
/* the words blink when they change: a light behind them for under a second */
@keyframes sayblink { 0%, 35% { background: #ffe066; box-shadow: 0 0 0 6px #ffe066; } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
@keyframes sayblinkbad { 0%, 35% { background: #ffd1d1; box-shadow: 0 0 0 6px #ffd1d1; } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
.scansay.blink { animation: sayblink .9s ease-out; border-radius: 4px; }
.scansay.bad.blink { animation-name: sayblinkbad; }
.btn.small { padding: 6px 12px; min-height: 36px; }
.movebox .bar { align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.movebox input.qty { width: 90px; font-size: 20px; padding: 10px; }
tr.sel td { background: var(--red0); }
tr.sel td:first-child { box-shadow: inset 5px 0 0 var(--red); }
/* a switch (on / off), not a choice among kinds */
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; padding: 6px 10px; border-left: 1px solid var(--line); }
.switch input { width: 20px; height: 20px; accent-color: var(--red); }
.switch small { color: var(--mute); }
.switch[hidden] { display: none; }

/* the picking plan: pallets, weight tags, the one next line */
tr.pallet td { background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; padding: 8px 10px; }
tr.pallet small { font-weight: 400; opacity: .85; }
.wt { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 10px; padding: 1px 8px; border: 1px solid #bbb; color: #555; white-space: nowrap; }
.wt.heavy { background: var(--ink); border-color: var(--ink); color: #fff; }
.wt.light { background: #fff; border-style: dashed; }
tr.next td { background: var(--soft); }
tr.next td:first-child { box-shadow: inset 5px 0 0 var(--ink); }
.nextline { font-size: 22px; line-height: 1.3; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #ccc; }

/* print: the order black on white, in the picking order. One short line for each product, so a big order is 2 or 3 pages:
   tick box, bin, item number, product, cases. What is already picked says "picked" where the bin would be. */
.printonly { display: none; }
@media print {
  @page { margin: 9mm 8mm; }
  header.top, .toast, .scanbox, .actions, .noprint, .bar .ghost, .pickbox, h2.zone, .binchip, .note, .missed, p.mute { display: none !important; }
  .printonly { display: inline; }
  body, main { background: #fff !important; color: #000 !important; margin: 0; padding: 0; }
  main { max-width: none; }
  h1 { font-size: 15pt; margin: 0; display: inline; } p.lead { display: inline; margin: 0 0 0 8px; font-size: 11pt; } .bar { display: block; margin: 0 0 2mm; }
  .facts { display: block; margin: 0 0 2mm; font-size: 9pt; }
  .fact { display: inline; border: 0; padding: 0; margin-right: 10px; } .fact .k, .fact .v { display: inline; font-size: 9pt; } .fact .k::after { content: ': '; }
  .st, .tag { border: 0 !important; background: none !important; color: #000 !important; padding: 0 !important; font-size: 9pt !important; }
  table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  thead { display: none; }
  td { border-bottom: 0.5px solid #999; padding: 1.2px 4px; color: #000 !important; background: none !important; box-shadow: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
  tbody tr:not(.pallet) td:nth-child(1) { width: 37mm; } tbody tr:not(.pallet) td:nth-child(2) { width: 100%; max-width: 0; } tbody tr:not(.pallet) td:nth-child(3) { width: 16mm; text-align: right; font-size: 11pt; font-weight: 700; }
  tbody tr:not(.pallet) td:nth-child(n+4) { display: none; }
  tr { break-inside: avoid; }
  tr.pallet td { border-top: 2px solid #000; border-bottom: 1px solid #000; font-size: 11pt; padding: 3px 4px; }
  tbody tr:not(.pallet) td:first-child::before { content: ''; display: inline-block; width: 9px; height: 9px; border: 1px solid #000; margin-right: 5px; vertical-align: -1px; }
  .pbin { display: inline-block; min-width: 15mm; font-weight: 700; }
  td .big { font-size: 9.5pt; font-weight: 400; } td small { font-size: 8pt; }
  a { color: #000 !important; text-decoration: none; }
  .wt { border: 0 !important; background: none !important; color: #000 !important; padding: 0 !important; font-size: 8pt; }
  .wt.heavy { font-weight: 700; } .wt.middle, .wt.light { display: none; }
}
/* the missed-lines check at the finish */
.missed { border: 2px solid var(--red); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.missed table { margin-top: 6px; }
/* labels: Brother roll DK-1202, 2.4 x 3.9 in (62 x 100 mm), one label a page */
#labels { display: none; }
@page label { size: 62mm 100mm; margin: 0; }
@media print {
  body.labels > *:not(#labels) { display: none !important; }
  body.labels #labels { display: block; }
  .label { page: label; width: 62mm; height: 100mm; box-sizing: border-box; padding: 4mm 3mm; break-after: page; overflow: hidden; display: flex; flex-direction: column; text-align: center; color: #000; font-family: Arial, Helvetica, sans-serif; }
  .lb-store { font-size: 15pt; font-weight: 700; line-height: 1.1; max-height: 3.4em; overflow: hidden; }
  .lb-where { font-size: 10pt; margin-top: 1mm; }
  .lb-count { font-size: 54pt; font-weight: 700; line-height: 1; margin-top: auto; }
  .lb-kind { font-size: 15pt; font-weight: 700; letter-spacing: 1px; margin-bottom: auto; }
  .lb-foot { font-size: 9.5pt; display: flex; flex-direction: column; gap: 1mm; border-top: 1.5px solid #000; padding-top: 2mm; }
  .lb-mk { font-size: 8pt; letter-spacing: 3px; margin-top: 1.5mm; }
}

a.linkbtn { display: inline-block; text-decoration: none; }

/* a pick with no scan: why, how many, and the picture */
.noscan{margin-top:12px;padding-top:12px;border-top:2px solid #d33}
.noscan select{font-size:1.05rem;padding:8px}
.noscan input[type=file]{max-width:100%}
input.qty[readonly]{background:#eee;color:#555}

/* return entry */
.bin.off{opacity:.55}
.note.warn{border-left:4px solid #d98a00}

/* practice scan page: barcodes drawn as bars (borders print; backgrounds do not) */
.bars { display: inline-block; padding: 6px 22px; background: #fff; line-height: 0; white-space: nowrap; }
.bars i { display: inline-block; height: 64px; border-left: 0 solid #000; }
.scancard { border: 1px solid #ccc; border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; background: #fff; color: #000; break-inside: avoid; }
.scanhead { margin-bottom: 8px; font-size: 15px; }
.scanrow { display: flex; flex-wrap: wrap; gap: 28px 44px; align-items: flex-end; }
.scancode { text-align: center; } .scancode .mono { font-family: ui-monospace, Consolas, monospace; }
@media print { .scanpage .bar { display: block; } .scanpage p.lead { display: block; margin: 0 0 3mm; } .scancard { border-color: #999; } }

/* the manager's one page */
.facts.flow { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
a.flowbox { text-decoration: none; color: inherit; } .flowbox .v { font-size: 30px; line-height: 1.1; }
.flowbox.bad { border-color: #C1272D; background: #FBF0F1; } .flowbox.bad .v { color: #C1272D; }
.needs { display: grid; gap: 6px; margin: 0 0 18px; }
.needline { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-left: 5px solid #E0AA60; border-radius: 8px; text-decoration: none; color: inherit; font-size: 15px; }
.needline.bad { border-left-color: #C1272D; } a.needline:hover { background: #FBF0F1; }
details.fold { border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; padding: 0 12px; } details.fold[open] { padding-bottom: 12px; }
details.fold summary { cursor: pointer; padding: 12px 0; } .foldtitle { font-weight: 700; font-size: 15px; }

/* a picture or a PDF opens inside the page: one white panel in the middle, the title on the left, the X on the top right */
.viewer { position: fixed; inset: 0; z-index: 20; background: rgba(17,17,17,.72); display: flex; align-items: center; justify-content: center; padding: 18px; }
.viewpanel { background: #fff; color: #111; border-radius: 10px; display: flex; flex-direction: column; max-width: min(1400px, 100%); max-height: 100%; overflow: hidden; }
.viewpanel.pdf { width: min(1400px, 100%); height: 100%; }
.viewbar { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.viewtitle { flex: 1 1 auto; min-width: 0; }
.viewx { font-weight: 700; min-width: 44px; flex: 0 0 auto; }
.viewhold { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; background: #fff; }
img.viewbody { display: block; max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; }
iframe.viewbody { width: 100%; height: 100%; border: 0; }
.numbox { width: 90px; font-size: 16px; padding: 6px 8px; }
@media print { .viewer { display: none !important; } }

/* anything marked hidden is not shown (the menu and Sign out on the sign-in page) */
[hidden] { display: none !important; }

/* the order on a phone: each line is a small card, nothing runs off the side */
.startbar { margin: 8px 0 12px; }
.saybar { align-items: flex-start; gap: 8px; } .typebtn { flex: 0 0 auto; }
.nextline.now { border-left: 6px solid var(--red); padding-left: 10px; }
@media (max-width: 700px) {
  table.lines { display: block; overflow: visible; } table.lines thead { display: none; } table.lines tbody { display: block; }
  table.lines tr { display: grid; grid-template-columns: auto 1fr auto auto; gap: 2px 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); align-items: start; }
  table.lines td { display: block; border: 0; padding: 0; }
  table.lines tr > td:last-child { grid-column: 1 / -1; }
  table.lines tr.pallet { display: block; }
  table.lines tr.next, table.lines tr.sel { padding-left: 8px; }
  table.lines tr.next { background: var(--soft); box-shadow: inset 5px 0 0 var(--ink); } table.lines tr.sel { background: var(--red0); box-shadow: inset 5px 0 0 var(--red); }
  table.lines tr.next td, table.lines tr.sel td { background: transparent; box-shadow: none; }
  table.lines tr > td:nth-child(4):not(:last-child)::before { content: '/ '; color: var(--mute); }
  .nextline { font-size: 18px; }
  table.cards td { overflow-wrap: anywhere; }
}
/* WHILE AN ORDER IS BEING PICKED, on a phone: only the work. The menu, the name, the order's facts and the long
   explanations are put away; the box with the line to pick stays on top while the list scrolls. */
@media (max-width: 900px) {
  body.pickmode header.top .tabs, body.pickmode #who, body.pickmode #lang, body.pickmode #pill { display: none !important; }
  body.pickmode header.top { position: static; }
  body.pickmode .orderfacts, body.pickmode .orderbar, body.pickmode .planhint, body.pickmode .scanrule, body.pickmode p.lead { display: none; }
  body.pickmode h1 { font-size: 18px; margin: 0; }
  body.pickmode .scanbox { position: sticky; top: 0; z-index: 6; margin: 6px 0; }
}

/* ON A PHONE: one short top bar; the menu opens from the Menu button */
.menubtn { display: none; }
@media (max-width: 900px) {
  .top { padding: 6px 10px; gap: 8px; }
  .hist { width: 36px; height: 36px; font-size: 22px; }
  .brand { font-size: 0; } .brand b { font-size: 16px; }
  .pill { order: 9; flex: 0 0 calc(100% + 20px); margin: 0 -10px -6px; border-radius: 0; border-width: 1px 0 0; text-align: center; font-size: 10px; padding: 1px 0; }
  .menubtn { display: inline-block; margin-left: auto; min-height: 36px; padding: 5px 12px; font-weight: 700; }
  .top .tabs, .top #who, body:not(.anon) .top #lang { display: none; }
  .top.open .tabs { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 4px 0 0; gap: 2px; }
  .top.open .tabs a { padding: 12px 10px; font-size: 16px; }
  .top.open .tabs .grp { margin: 8px 0 0; padding: 0; border: 0; }
  body:not(.anon) .top.open #lang { display: inline-block; margin-left: 0; }
  .top.open #who { display: flex; margin-left: auto; }
  main { padding: 12px 12px 60px; }
  h1 { font-size: 20px; }
}
/* ON A PHONE: a list is cards, not a wide table */
@media screen and (max-width: 700px) {
  table.cards { display: block; overflow: visible; } table.cards thead { display: none; } table.cards tbody { display: block; }
  table.cards tr { display: flex; flex-wrap: wrap; gap: 3px 16px; padding: 10px 2px; border-bottom: 1px solid var(--line); align-items: baseline; }
  table.cards td { display: inline-flex; gap: 6px; align-items: baseline; border: 0; padding: 0; text-align: left; background: transparent; flex: 0 1 auto; min-width: 0; }
  table.cards td[data-th]:not([data-th=""])::before { content: attr(data-th); color: var(--mute); font-size: 10px; text-transform: uppercase; letter-spacing: .4px; flex: 0 0 auto; }
  table.cards td:first-child { font-size: 17px; font-weight: 700; flex: 1 0 100%; }
  table.cards td:first-child::before { display: none; }
  table.cards td:has(.bar), table.cards td:has(input), table.cards td:has(button), table.cards td[colspan] { flex: 1 0 100%; }
  table.cards td { flex-wrap: wrap; } table.cards td > div { flex: 1 0 100%; } table.cards td:has(> div) { flex: 1 0 100%; }
  table.cards td.hide-s, table.cards td:empty { display: none; }
  table.cards td .bar { flex-wrap: wrap; justify-content: flex-end; }
  table.cards tr.overdue { background: var(--red0); }
}

/* the order on a phone: the facts are small, the finish is easy to reach */
.donebox .nextline { font-size: 17px; border-bottom: 0; }
.finishbar input { width: 70px; }
@media (max-width: 700px) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 12px; }
  .fact { padding: 6px 8px; } .fact .v { font-size: 14px; } .fact .k { font-size: 9px; }
  .facts.flow { grid-template-columns: repeat(2, 1fr); } .flowbox .v { font-size: 24px; }
}

/* the picture of a big pick: one big button to tap (the file field itself is put out of sight) */
.noscan label[for=cpic] { display: inline-block; background: var(--red); color: #fff; padding: 14px 18px; border-radius: 10px; font-weight: 700; font-size: 17px; cursor: pointer; }
.noscan input#cpic { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; }

/* the map of the walk: the floor in feet, the stops with their numbers, the way around the racks */
.floormap { display: block; width: 100%; height: auto; max-height: 78vh; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.fm-room { fill: #F4F5F7; } .fm-area { fill: #FFF6DF; stroke: #E0AA60; stroke-width: .4; stroke-dasharray: 2 1.5; }
.fm-arealabel { font-size: 4.6px; fill: #8A6A17; font-weight: 700; }
.fm-wall { stroke: #9AA0A6; stroke-width: .5; } .fm-door { stroke: #1F6FB2; stroke-width: 1.4; }
.fm-rack { fill: #D5D8DC; stroke: #8E9499; stroke-width: .3; } .fm-aisle { font-size: 4.6px; font-weight: 700; fill: #3C4043; }
.fm-walk { fill: none; stroke: #1F6FB2; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.fm-home { fill: none; stroke: #1F6FB2; stroke-width: .9; stroke-dasharray: 3 2.4; }
.fm-start { fill: #fff; stroke: #111; stroke-width: 1; }
.fm-stop.todo { fill: #111; stroke: #fff; stroke-width: .6; } .fm-stop.next { fill: #C1272D; stroke: #fff; stroke-width: .8; } .fm-stop.done { fill: #fff; stroke: #9AA0A6; stroke-width: .6; }
.fm-num { font-size: 6.2px; font-weight: 700; fill: #fff; } .fm-num.done { fill: #80868B; }
.walkcard { margin: 0 0 14px; } .walkhead { font-weight: 700; margin: 0 0 6px; }
.walklist { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 6px 0 4px; font-size: 13px; } .walklist .done { color: #80868B; text-decoration: line-through; } .walklist .next { color: #C1272D; font-weight: 700; }
.walknote { color: var(--mute, #5F6368); margin: 2px 0; }
.walkprint { display: none; }
.viewpanel.map { width: min(760px, 100%); } .maphold { display: block; overflow: auto; padding: 10px 12px; } .maphold .floormap { max-height: calc(100vh - 230px); }
.mapbtn { flex: 0 0 auto; }
.pstop { font-weight: 700; margin-right: 6px; }
@media print {
  .walkprint { display: block; } .walkprint .walkcard { break-before: page; break-inside: avoid; }
  .walkprint .floormap { max-height: 215mm; border-color: #999; } .walkprint .walknote, .walkprint .walklist { display: block; font-size: 9pt; color: #000; } .walkprint .walklist span { margin-right: 10px; }
  .fm-walk, .fm-home { stroke: #000; } .fm-stop.next { fill: #111; } .fm-door { stroke: #000; }
}
select.unit { font-size: 16px; min-height: 40px; padding: 6px 8px; border: 1px solid #bbb; border-radius: 8px; background: #fff; }
.scansay:empty { display: none; }

/* the item number is what the picker looks at (as on our labels): big number, small name */
.nextline .itemno { font-size: 44px; font-weight: 800; line-height: 1.05; letter-spacing: .5px; }
.nextline .itemname { font-size: 15px; line-height: 1.25; color: var(--mute); margin: 2px 0 6px; }
table.lines td:first-child .big { font-size: 28px; line-height: 1.1; }
table.lines td.pname { font-size: 14px; line-height: 1.25; color: #333; }
.missed td.big { font-size: 24px; }
.nocode { margin-right: 8px; }
input.qty::placeholder { color: #aaa; font-weight: 400; }
/* the box of a line of 4 cases or more: wide enough for its words 'How many?' (they were cut at 76 px) */
.pickbox input.qty { width: 112px; }
.pickbox input.qty::placeholder { font-size: 14px; }
@media (max-width: 700px) { .nextline .itemno { font-size: 40px; } }
@media print { table.lines td:first-child .big { font-size: 11pt; font-weight: 700; } table.lines td.pname { font-size: 9pt; color: #000; } }

/* ----- the return count screen (12/1/2026): one card for a product, big buttons, no keyboard */
.rprog { display: flex; gap: 10px; align-items: center; margin: 6px 0 10px; font-size: 16px; }
.rcards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); align-items: start; }
.rcard { border: 2px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; min-width: 0; }
.rcard.open { border-color: var(--ink); background: var(--soft); }
.rcard.done { border-color: #2e8b57; background: #eef8f1; }
.rcard:not(.done):not(.open) { cursor: pointer; }
.rhead { display: flex; gap: 10px; align-items: flex-start; }
.rpic { position: relative; flex: 0 0 84px; width: 84px; height: 84px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rpicbtn { border: 0; padding: 0; margin: 0; background: none; width: 100%; height: 100%; cursor: zoom-in; display: flex; align-items: center; justify-content: center; }
.rpic img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.nopic { font-size: 11px; color: var(--mute); text-align: center; padding: 4px; }
.xcase { position: absolute; right: 0; bottom: 0; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; padding: 1px 6px; border-radius: 8px 0 0 0; pointer-events: none; }
.rinfo { flex: 1 1 auto; min-width: 0; }
.rinfo .itemno { font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: .5px; overflow-wrap: anywhere; }
.rname { font-size: 14px; line-height: 1.25; color: #444; margin: 2px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rtags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.rtags:empty { display: none; }
.tag.size { background: #fff; color: var(--ink); border: 1px solid #999; }
.tag.ok { background: #2e8b57; }
.rasked { font-size: 16px; }
.rgoes { margin-top: 8px; font-size: 16px; line-height: 1.45; }
.rgoes .binname { font-size: 18px; }
.ract { margin-top: 8px; display: flex; justify-content: flex-end; }
.ract .btn, .ract .ghost { min-width: 120px; min-height: 48px; font-size: 16px; }
.rpanel { margin-top: 10px; border-top: 1px solid #ccc; padding-top: 10px; display: grid; gap: 10px; }
.rquick, .rsave { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rquick .ghost, .rsave .btn, .rsave .ghost { min-height: 52px; font-size: 16px; font-weight: 700; }
.rsave { grid-template-columns: 2fr 1fr; }
.stepper { display: grid; grid-template-columns: 1fr 60px 64px 60px; gap: 8px; align-items: center; }
.steplabel { font-size: 16px; font-weight: 700; }
.stepbtn { min-height: 56px; font-size: 30px; font-weight: 800; line-height: 1; padding: 0; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.stepval { font-size: 30px; font-weight: 800; text-align: center; }
.closebox { display: grid; gap: 8px; }
.closebtn { width: 100%; min-height: 56px; font-size: 18px; }
.closebtn.off, .closebtn.off:hover { background: #bbb; color: #fff; opacity: 1; cursor: not-allowed; }
.folds { margin: 14px 0; display: grid; gap: 8px; }
.fold { border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.fold summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--mute); }
.fold[open] summary { color: var(--ink); }
.viewpanel.pic .viewhold { padding: 8px; }
@media (max-width: 700px) { .rcards { grid-template-columns: 1fr; } .rinfo .itemno { font-size: 32px; } }
@media print { .rpanel, .ract, .closebox { display: none !important; } }
/* seen in Shimon's recording of 12/1, 5:42 PM: the whole card turned blue under the finger (the phone's own tap mark), and the top of the page took 40% of the screen */
.rcard { -webkit-tap-highlight-color: transparent; }
.rcard:not(.done):not(.open):active { border-color: var(--ink); background: var(--soft); }
@media (max-width: 700px) {
  .rtop h1 { font-size: 19px; margin: 0; } .rtop p.lead { font-size: 13px; margin: 2px 0 0; }
  .rtop .bar { margin: 4px 0 6px; gap: 6px; } .rtop .bar .ghost { min-height: 34px; padding: 4px 10px; }
  .rprog { margin: 2px 0 8px; }
}

/* the unload: what came off the truck, counted at the truck (12/2/2026) */
.unloadform { display: grid; gap: 12px; margin-top: 8px; }
.unloadform .noscan { margin-top: 0; padding-top: 0; border-top: 0; }
.unloadform .piclabel { display: inline-block; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 10px; font-weight: 700; font-size: 17px; cursor: pointer; }
.unloadform input#upic { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; }
.unloadform input[type=text] { width: 100%; }
.unloadform .ok { color: #2e8b57; font-weight: 700; }
.unloaded { border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 12px 0; display: grid; gap: 4px; background: #fff; }
.unloaded.differs { border-color: var(--red); background: #fdeeee; }
.unloaded .ghost { justify-self: start; }
.paperstep .steplabel { grid-column: 1 / -1; }
.paperstep > button:first-of-type { grid-column: 2; }

/* the full test of 12/2/2026 */
/* a finished order: the three prints, each on its own button - nothing prints by itself (12/3/2026) */
.printbox { border: 1px solid #c9d3dc; background: #fff; border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.printhead { display: block; font-size: 15px; margin-bottom: 8px; }
.printbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.printbtns .btn { flex: 1 1 200px; min-height: 52px; font-size: 16px; text-align: center; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.donebanner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 2px solid #2e8b57; background: #eef8f1; border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: 17px; }
@media (max-width: 700px) {
  /* every page's top is short on a phone; the long words fold to two lines, a tap opens them */
  .pagetop p.lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pagetop p.lead.open { display: block; }
  /* the Next card stays in sight while he scrolls, so it is kept small: the name on one line, the Map beside the words */
  body.pickmode .scanbox { padding: 8px 10px; }
  body.pickmode .scanbox .nextline { margin-bottom: 6px; padding-bottom: 6px; font-size: 16px; }
  body.pickmode .scanbox .nextline .itemno { font-size: 32px; }
  body.pickmode .scanbox .nextline .itemname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 2px; font-size: 14px; }
  body.pickmode .scanbox .saybar { flex-wrap: nowrap; }
  body.pickmode .scanbox .scansay { font-size: 15px; }
  body.pickmode .scanbox .mapbtn { min-height: 34px; padding: 4px 10px; }
}
.sayextra { color: var(--red); font-weight: 700; font-size: 16px; line-height: 1.35; margin: 4px 0; }

/* a question waits for a manager (12/2/2026): the red number in the menu, the closed door on the count, the yes on a line */
.tabs a.alert { box-shadow: inset 0 -3px 0 var(--red); color: var(--red); }
.tabs a.alert.on { color: #fff; box-shadow: inset 0 -3px 0 #fff; }
.btn.off { opacity: .45; }
.askyes { color: #2e8b57; font-weight: 700; }
/* Settings > Numbers: the box, the unit and Save stay on one row, and the Save buttons stand under each other */
.numcell .bar { flex-wrap: nowrap; }
.numcell .unit { display: inline-block; width: 64px; flex: 0 0 64px; line-height: 1.15; }
.noscan label[for=cpic].taken { background: #fff; color: var(--ink); border: 2px solid #2e8b57; }
.menubtn.alert { color: var(--red); border-color: var(--red); font-weight: 700; }
.switch.oldpo { border-left: 0; padding-left: 0; margin-top: 10px; }
.pill.pilot { background: var(--red); color: #fff; font-weight: 700; }
/* Core's own number pad on a touch screen (12/2/2026): the phone hides its keyboard while a Bluetooth scanner is connected */
.numpad { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); background: #e9e9ec; border-top: 1px solid #c8c8cc; }
.numpad[hidden] { display: none; }
.padkey { height: 54px; font-size: 24px; font-weight: 700; border: 0; border-radius: 9px; background: #fff; color: var(--ink); box-shadow: 0 1px 0 #b9b9be; touch-action: manipulation; }
.padkey:active { background: #d6d6da; }
.padkey.ok { background: var(--red); color: #fff; }
.padkey.del { background: #cfcfd4; }
body.padon { padding-bottom: 270px; }
body.padon #toast { bottom: 280px; }
@media print { .numpad { display: none !important; } }
/* the finish (12/3/2026): each word is glued to its own box; on a phone three rows and the button under them */
.finpair { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
@media (max-width: 700px) {
  .finishbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .finishbar .finpair { justify-content: space-between; }
  .finishbar .finpair label { font-size: 20px; font-weight: 700; }
  .finishbar .finpair input.qty { width: 130px; min-height: 52px; font-size: 24px; }
  .finishbar > .btn { min-height: 54px; font-size: 20px; margin-top: 6px; }
}
/* the number pad on a phone held sideways: two rows of six keys, so the page keeps most of the screen */
@media (orientation: landscape) and (max-height: 520px) {
  .numpad { grid-template-columns: repeat(6, 1fr); padding-top: 6px; }
  .padkey { height: 44px; font-size: 22px; }
  body.padon { padding-bottom: 125px; }
  body.padon #toast { bottom: 130px; }
}
/* while picking, only the line to pick now (12/3/2026): the other lines, the facts and the small print are put away; 'Show all lines' brings them back */
@media screen {
  body.focus1 table.lines thead, body.focus1 table.lines tr.pallet, body.focus1 table.lines tbody tr:not(.next):not(.sel), body.focus1 table.lines.hassel tbody tr.next:not(.sel) { display: none; }
  body.focus1 table.lines tbody tr > td:not(:last-child) { display: none; }
  body.focus1 table.lines tbody tr { border-bottom: 0; }
  body.focus1 .finishbar, body.focus1 details.fold, body.focus1 .missed, body.focus1 .orderfacts, body.focus1 .orderbar, body.focus1 .planhint, body.focus1 .scanrule, body.focus1 p.lead { display: none; }
  table.lines tr.donerow { opacity: .45; }
}
.morebar { margin: 8px 0 0; }
.allbtn { min-height: 36px; }
/* STOP: a second product was scanned before the bin of the first */
.stoplayer { position: fixed; inset: 0; z-index: 70; background: rgba(17,17,17,.78); display: flex; align-items: center; justify-content: center; padding: 16px; }
.stoppanel { background: #fff; border: 4px solid var(--red); border-radius: 14px; padding: 18px 16px; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 12px; }
.stophead { font-size: 40px; font-weight: 800; color: var(--red); line-height: 1; }
.stoptext { font-size: 22px; font-weight: 700; line-height: 1.25; }
.stoppanel .btn, .stoppanel .ghost { min-height: 58px; font-size: 18px; white-space: normal; line-height: 1.2; }
@media print { .stoplayer { display: none !important; } }
/* 12/3/2026: while the number pad is up the big card does not stick to the top, so the page keeps the room between them */
body.padon.pickmode .scanbox { position: static; }
.morebar { gap: 8px; }
.skipbtn { min-height: 36px; }
.uplink { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 6px; font-weight: 600; }
.uplink::before { content: "\2039"; font-size: 22px; line-height: 1; }
