:root {
  --bg: #F6F4EE;
  --card: #FFFFFF;
  --ink: #1B1D18;
  --muted: #5A5E55;
  --line: #E2DED3;
  --line-soft: #EFECE4;
  --field: #D8D3C6;
  --tray: #ECE8DE;
  --go: #1E6B43;
  --go-dark: #14492E;
  --blue: #234A78;
  --ok-bg: #E4F0E8;   --ok-ink: #14492E;
  --warn-bg: #FBF0D9; --warn-ink: #5C3D00;
  --bad-bg: #FCEBDD;  --bad-ink: #8A3409;
  --info-bg: #E8EEF6; --info-ink: #234A78;
  --num: 'Archivo Narrow', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 400 15px/1.4 'Figtree', system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
a { color: var(--go); }
button, input, select { font: inherit; color: inherit; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }

.top { padding: 18px 16px 10px; display: flex; align-items: center; gap: 10px; }
.top .titles { flex: 1; min-width: 0; }
.h1 { font-size: 26px; font-weight: 800; line-height: 1.15; }
.h2 { font-size: 18px; font-weight: 800; }
.sub { font-size: 13px; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 22px; border: 0; background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.icon-btn:focus-visible, .btn:focus-visible, .row:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.body { flex: 1; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.btn { height: 52px; border-radius: 14px; border: 0; padding: 0 18px; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; }
.btn-go { background: var(--go); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-plain { background: var(--card); border: 1px solid var(--field); color: var(--ink); font-weight: 700; }
.btn-danger { background: var(--bad-bg); color: var(--bad-ink); }
.btn-print { background: #5B2A86; color: #fff; }
.btn-small { height: 36px; border-radius: 10px; font-size: 13px; padding: 0 12px; font-weight: 700; }
.btn[disabled] { background: var(--field); color: #4A4D44; cursor: default; }

.chip { display: inline-block; padding: 3px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.chip.ok { background: var(--ok-bg); color: var(--ok-ink); }
.chip.warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip.bad { background: var(--bad-bg); color: var(--bad-ink); }
.chip.info { background: var(--info-bg); color: var(--info-ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* sections */
.section-bar { border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: 14px; letter-spacing: .03em;
  text-transform: uppercase; border: 1px solid var(--line); margin-top: 4px; }
.slot { overflow: hidden; }
.slot-head { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px 6px;
  font-size: 12px; color: var(--muted); }
.slot-head b { color: var(--ink); font-size: 13px; }
.row { display: flex; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line-soft); align-items: flex-start;
  width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; }
.row .main { flex: 1; min-width: 0; }
.row .name { font-size: 15px; font-weight: 700; }
.meta { font-size: 12px; color: var(--muted); }
.price { font: 700 22px/1 var(--num); text-align: right; white-space: nowrap; }
.price small { display: block; font: 400 12px 'Figtree', sans-serif; color: var(--muted); margin-top: 2px; }
.empty-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px dashed #B9B3A4;
  color: var(--muted); font-size: 13px; }
.issue-line { display: flex; gap: 8px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--bad-ink); }

.week-tabs { display: flex; background: var(--tray); border-radius: 12px; padding: 4px; gap: 4px; }
.week-tabs a { flex: 1; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; color: #3D4038; text-decoration: none; }
.week-tabs a.on { background: var(--card); font-weight: 700; color: var(--ink); }

.section-card { display: block; padding: 14px; text-decoration: none; color: inherit; }
.section-card + .section-card { border-top: 1px solid var(--line-soft); }

.footer { position: sticky; bottom: 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--card);
  border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.footer .why { text-align: center; font-size: 12px; color: var(--bad-ink); font-weight: 600; }
.footer .done { text-align: center; font-size: 13px; color: var(--go-dark); font-weight: 700; }

/* add special */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.field { background: var(--card); border: 1px solid var(--field); border-radius: 14px; padding: 8px 12px; display: block; }
.field:focus-within { border: 2.5px solid var(--blue); padding: 6.5px 10.5px; }
.field span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.field:focus-within span { color: var(--blue); }
.field input, .field select { width: 100%; border: 0; outline: 0; background: transparent; padding: 0; }
.field input.big { font: 700 30px var(--num); letter-spacing: .04em; }
.field input.text { font-size: 17px; font-weight: 600; padding: 2px 0; }
.fit-ok { color: var(--ok-ink); font-weight: 600; }
.fit-bad { color: var(--bad-ink); font-weight: 700; }
.field textarea.text { display: block; width: 100%; box-sizing: border-box; border: 0; outline: 0; background: transparent; resize: none; overflow: hidden;
  font: inherit; font-size: 17px; font-weight: 600; color: inherit; padding: 2px 0; }
/* add special: "1 / 3.99" in one field */
.field span.qty-price { display: flex; align-items: baseline; gap: 4px; font-size: inherit; color: inherit; }
.field span.qty-part { display: flex; align-items: baseline; gap: 4px; flex: none; }
.field span.qty-part[hidden] { display: none; }
.field .qty-part input.big { width: calc(2.2ch + .12em); font-variant-numeric: tabular-nums; text-align: center; border-bottom: 2px solid var(--field); }
.qp-slash { font: 700 30px var(--num); color: var(--muted); }
.field .qty-price input#a-price { flex: 1; min-width: 0; }
.toggles { display: flex; gap: 6px; flex-wrap: wrap; }
.tg { height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--field); background: var(--card);
  font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tg[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.tg input { width: 34px; border: 0; border-bottom: 1px solid currentColor; background: transparent; text-align: center;
  font-weight: 700; outline: 0; color: inherit; }
.preview { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.preview .name { font-size: 17px; font-weight: 800; }
.margin-box { border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.35; }
.margin-box .pct { width: 60px; height: 56px; border-radius: 12px; color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex: none; }
.margin-box .pct b { font: 700 19px/1 var(--num); }
.margin-box .pct i { font-size: 10px; font-weight: 700; font-style: normal; }
.m-ok { background: var(--ok-bg); color: var(--ok-ink); }       .m-ok .pct { background: var(--go); }
.m-warn { background: var(--warn-bg); color: var(--warn-ink); } .m-warn .pct { background: #8A5A00; }
.m-bad { background: var(--bad-bg); color: var(--bad-ink); }    .m-bad .pct { background: #B4470F; }
.m-info { background: var(--info-bg); color: var(--info-ink); } .m-info .pct { background: var(--blue); }
.m-low { background: #FBD9D7; color: #8E1712; }           .m-low .pct { background: #C62828; }
.mnote { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1.5px solid #E8A5A1;
  border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.mnote[hidden] { display: none; }
.mnote b { color: #8E1712; }
.error-box { background: var(--bad-bg); color: var(--bad-ink); border-radius: 14px; padding: 10px 12px; font-weight: 600; font-size: 14px; }

/* sheets */
.scrim { position: fixed; inset: 0; background: rgba(27, 29, 24, .45); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet { background: var(--bg); width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--field); margin: 4px auto 0; }
.sheet-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.target { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.target .main { flex: 1; min-width: 0; }

#toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14px;
  z-index: 20; max-width: calc(100% - 32px); }
.center { text-align: center; }
.spacer { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* page view */
.pv-scroll { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.pv-page { position: relative; width: 100%; background: #fff center / 100% 100% no-repeat; }
.pv-bar { position: absolute; display: flex; align-items: center; padding-left: 1.5%; font-weight: 800; font-size: 9px;
  text-transform: uppercase; overflow: hidden; white-space: nowrap; }
.pv-slot { position: absolute; display: flex; gap: 2px; padding: 2px; border: 1.5px solid #234A78; border-radius: 4px;
  background: rgba(255, 255, 255, .55); box-sizing: border-box; }
.pv-slot.empty { border-style: dashed; background: rgba(255, 255, 255, .35); align-items: center; justify-content: center; }
.pv-slot.drop, .pv-offer.drop { outline: 3px solid #1E6B43; outline-offset: -1px; background: rgba(228, 240, 232, .85); }
.pv-code { font-size: 8px; font-weight: 700; color: #234A78; }
.pv-offer { flex: 1; min-width: 0; min-height: 0; background: rgba(255, 255, 255, .93); border-radius: 3px; padding: 2px 3px;
  display: flex; flex-direction: column; justify-content: space-between; cursor: grab; touch-action: pan-y;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18); user-select: none; -webkit-user-select: none; overflow: hidden; }
.pv-offer.bad { box-shadow: 0 0 0 1.5px #B4470F inset; }
.pv-offer.lifted { opacity: .35; }
.pv-name { font-size: 8px; font-weight: 700; line-height: 1.1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pv-price { font: 700 11px/1 var(--num); color: #B4470F; text-align: right; white-space: nowrap; }
.pv-price small { font: 600 7px 'Figtree', sans-serif; margin-left: 1px; }
.pv-ghost { position: fixed; z-index: 30; pointer-events: none; opacity: .92; transform: rotate(-2deg); box-shadow: 0 8px 20px rgba(0,0,0,.25); }

/* Barcode scanner (port of store-orders' UPCScanner screen) */
.code-wrap { position: relative; }
.code-wrap .field { padding-right: 58px; }
.code-wrap .field:focus-within { padding-right: 56.5px; }
/* vendor codes run up to 15 characters: smaller, and narrower as they grow */
.code-wrap .field input.big.vc { font-size: 22px; letter-spacing: 0; }
.code-wrap .field input.big.vc.long { font-size: 16px; }
.scan-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 12px;
  border: 0; background: var(--ink, #1b1b1b); color: #fff; display: grid; place-items: center; cursor: pointer; }
.scan-btn svg { width: 24px; height: 24px; }
body.scanning { overflow: hidden; }
.scan-screen { position: fixed; inset: 0; z-index: 1400; display: flex; flex-direction: column; background: #000; overflow: hidden; }
.scan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; flex-shrink: 0;
  background: rgba(0,0,0,.85); border-bottom: 1px solid rgba(255,255,255,.08); padding-top: max(12px, env(safe-area-inset-top)); }
.scan-title { color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; }
.scan-sub { color: #9ca3af; font-size: 12px; margin-top: 2px; }
.scan-done { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; font-weight: 700;
  font-size: 13px; min-width: 72px; min-height: 40px; cursor: pointer; }
.scan-progress { height: 4px; flex-shrink: 0; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.scan-progress::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; background: #10b981; animation: scanbar 1.1s ease-in-out infinite; }
@keyframes scanbar { from { left: -40%; } to { left: 100%; } }
.scan-progress[hidden] { display: none; }
.scan-area { flex: 1; position: relative; overflow: hidden; }
.scan-area video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-aim { position: absolute; transform: translate(-50%, -50%); width: 280px; height: 140px; border-radius: 6px;
  box-shadow: 0 0 0 2000px rgba(0,0,0,.35); border: 2px solid rgba(16,185,129,.7); cursor: grab; touch-action: none; }
.scan-aim:active { cursor: grabbing; }
.scan-aim[hidden] { display: none; }
@media (min-width: 600px) { .scan-aim { width: 340px; height: 170px; } }
.scan-aim .c { position: absolute; width: 22px; height: 22px; }
.scan-aim .tl { top: -1px; left: -1px; border-top: 3px solid #10b981; border-left: 3px solid #10b981; }
.scan-aim .tr { top: -1px; right: -1px; border-top: 3px solid #10b981; border-right: 3px solid #10b981; }
.scan-aim .bl { bottom: -1px; left: -1px; border-bottom: 3px solid #10b981; border-left: 3px solid #10b981; }
.scan-aim .br { bottom: -1px; right: -1px; border-bottom: 3px solid #10b981; border-right: 3px solid #10b981; }
.scan-cap { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 8px; color: rgba(255,255,255,.55);
  font-size: 12px; white-space: nowrap; pointer-events: none; }
.scan-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 0 24px; text-align: center; }
.scan-error[hidden] { display: none; }
.scan-error-icon { font-size: 36px; }
.scan-error-text { color: #fca5a5; font-size: 14px; line-height: 1.5; }
.scan-foot { flex-shrink: 0; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); min-height: 72px; background: rgba(0,0,0,.88);
  border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.scan-status { color: #9ca3af; font-size: 13px; }
.scan-debug { color: #6b7280; font-size: 10px; font-family: monospace; }

/* Whole slots and the clipboard */
.btn-tiny { height: 28px; border-radius: 8px; font-size: 12px; padding: 0 10px; font-weight: 700; }
.slot-tools { display: inline-flex; align-items: center; gap: 6px; }
.card.slot.clipped { outline: 2px dashed var(--blue); outline-offset: -2px; }
.cal-back { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 14px; background: #EAF2FB; border: 1px solid #BFD5EE; }
.cal-back .main { flex: 1; min-width: 0; font-size: 14px; }
.clip-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: var(--info-bg, #E6EEF7); color: var(--info-ink, #1D3A5C); border: 1px solid rgba(35, 74, 120, .25); }
.clip-bar .main { flex: 1; min-width: 0; }
.clip-bar .meta { font-size: 12px; opacity: .85; }
.pv-handle { position: absolute; top: -1px; left: -1px; z-index: 2; background: #234A78; color: #fff; font: 700 8px/1 'Figtree', sans-serif;
  padding: 3px 4px 3px 3px; border-radius: 3px 0 4px 0; cursor: grab; touch-action: none; user-select: none; }
.pv-handle:active { cursor: grabbing; }
.pv-slot.lifted { opacity: .4; }
.pv-slot.clipped { outline: 2px dashed #234A78; outline-offset: 1px; }
.pv-paste { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; height: 24px; padding: 0 8px;
  font-size: 11px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.pv-slot-ghost { position: fixed; z-index: 30; pointer-events: none; background: #234A78; color: #fff; font-weight: 700; font-size: 13px;
  padding: 8px 12px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.25); transform: rotate(-2deg); }

/* Description picker */
.desc-picker { display: flex; flex-direction: column; gap: 8px; }
/* the four variety choices share one row, also on a phone */
.variety-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.variety-pills:empty { display: none; }
/* UPC / Vendor code switch above the Code box */
.code-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.code-mode .tg { justify-content: center; }
.variety-pills .tg { height: auto; min-height: 44px; padding: 4px 6px; border-radius: 14px; justify-content: center;
  text-align: center; font-size: 13px; line-height: 1.15; overflow-wrap: anywhere; }
.desc-picker[hidden] { display: none; }
.desc-list { display: flex; flex-direction: column; gap: 6px; }
.desc-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; width: 100%;
  padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font: inherit; cursor: pointer; }
.desc-opt.on { border: 2px solid var(--go); padding: 7px 11px; background: #F1F7F3; }
.desc-text { font-size: 15px; font-weight: 700; color: var(--ink); }
.desc-text small { font-weight: 600; color: var(--muted); font-size: 13px; }
.desc-tag { font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.desc-tag.used { color: var(--go); } .desc-tag.ai { color: #6B3FA0; }
.fam-list { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--line); max-height: 260px; overflow-y: auto; }
.fam-item { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 5px 0; font-size: 14px;
  border-top: 1px solid var(--line-soft); }
.fam-item small { color: var(--muted); white-space: nowrap; }
.fam-item input { width: 18px; height: 18px; }

/* Where it goes; search by name */
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bar-add { color: inherit; font-size: 12px; font-weight: 800; text-decoration: none; padding: 4px 10px; border-radius: 8px;
  border: 1.5px solid currentColor; white-space: nowrap; letter-spacing: 0; }
a.empty-row.add { color: var(--go); font-weight: 700; text-decoration: none; cursor: pointer; }
a.empty-row.add.more { border-top-style: solid; font-size: 13px; padding-top: 9px; padding-bottom: 9px; }
a.empty-row.add svg { width: 18px; height: 18px; }
.pv-add { position: absolute; right: 2px; bottom: 2px; z-index: 2; width: 18px; height: 18px; border-radius: 9px; background: #1E6B43;
  color: #fff; font: 800 13px/18px 'Figtree', sans-serif; text-align: center; text-decoration: none; }
.pv-add.fill { inset: 0; width: auto; height: auto; border-radius: 3px; background: transparent; }
.pv-add.fill:hover, .pv-add.fill:focus-visible { background: rgba(30, 107, 67, .18); }
/* places and specials of another department gate: covered, tap says which gate to open */
.pv-other { position: absolute; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  border-radius: 4px; background: repeating-linear-gradient(135deg, #e6e7e3 0 6px, #d9dbd5 6px 12px); opacity: .96; cursor: not-allowed;
  font: 700 8px/1.1 'Figtree', sans-serif; color: #5A5E55; text-align: center; overflow: hidden; }
.pv-other span { display: flex; flex-direction: column; gap: 1px; }
.pv-other small { font-size: 7px; font-weight: 700; color: #1E6B43; }
.pv-other.can { cursor: pointer; }
.pv-other:focus-visible { outline: 2px solid #234A78; }
.pv-offer.theirs { align-self: stretch; cursor: not-allowed; justify-content: center; text-align: center; color: #5A5E55; box-shadow: none;
  background: repeating-linear-gradient(135deg, #e6e7e3 0 6px, #d9dbd5 6px 12px); }
.row.theirs { background: repeating-linear-gradient(135deg, #f1f2ee 0 8px, #e8e9e4 8px 16px); }
.row.theirs .name, .row.theirs .meta, .row.theirs .price { color: var(--muted); }
.row.theirs .price svg { width: 18px; height: 18px; }
.pv-slot.has-room { align-items: stretch; justify-content: flex-start; }
.pv-open { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1.5px dashed #1E6B43; border-radius: 3px; background: rgba(228, 240, 232, .8); color: #1E6B43; text-decoration: none; }
.pv-open b { font: 800 14px/1 'Figtree', sans-serif; }
.pv-open:hover, .pv-open:focus-visible { background: rgba(30, 107, 67, .25); }
.pv-open.locked { border-color: #8a9bb0; background: rgba(255, 255, 255, .35); }
.pv-count { margin-left: 4px; padding: 0 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.pv-count.room { background: #1E6B43; }
.pv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pv-room { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pv-room.done { color: var(--muted, #667); }
.pv-open-key { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: none;
  border: 1.5px dashed #1E6B43; border-radius: 3px; background: rgba(228, 240, 232, .8); color: #1E6B43; font-weight: 800; }
.goes-to { display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); font: inherit; cursor: pointer; flex-wrap: wrap; }
.goes-to b { flex: 1; min-width: 0; font-size: 15px; }
.goes-to .chev { color: var(--blue); font-weight: 700; font-size: 13px; }
.slot-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.slot-pick { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; }
.slot-pick small { color: var(--muted); font-size: 11px; }
.slot-pick.on { border: 2px solid var(--go); background: #F1F7F3; }
.slot-pick:disabled { opacity: .45; cursor: default; }
.code-label { display: flex !important; justify-content: space-between; align-items: center; }
.kb-toggle { border: 1px solid var(--line); background: #fff; border-radius: 6px; font: 800 10px/1 'Figtree', sans-serif;
  padding: 3px 5px; color: var(--blue); cursor: pointer; margin-left: 6px; }
.search-results { display: flex; flex-direction: column; gap: 6px; }
.search-results .row { width: 100%; text-align: left; }

.kb-switch { font-size: 13px; }
.chip.muted { background: #EFEEEA; color: #5A5E55; }

/* Read-only and reopened sections */
.section-card.readonly { opacity: .8; }
.reopen-box, .readonly-box { border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.reopen-box { background: var(--bad-bg); color: var(--bad-ink); border: 1px solid rgba(180, 71, 15, .3); }
.readonly-box { background: var(--warn-bg); color: var(--warn-ink); }
.store-copy { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; margin-top: 6px; }

/* loading bar while a screen is on its way (route) */
body.busy::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000;
  background: linear-gradient(90deg, transparent, var(--blue), transparent); background-size: 40% 100%;
  background-repeat: no-repeat; animation: busybar 0.9s linear infinite; }
@keyframes busybar { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.row.locked { cursor: default; }

/* suggested price: faded, in blue, until the manager types or taps one */
.field input.big.suggested::placeholder { color: var(--blue); opacity: .45; }
.m-sug { opacity: .8; border: 1px dashed var(--blue); }
.m-sug .pct { opacity: .7; }
.sug-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sug-chip { border: 1px dashed var(--blue); background: transparent; color: var(--blue); border-radius: 10px;
  padding: 6px 10px; font: 700 14px var(--num); letter-spacing: .02em; cursor: pointer; }
.note-box { background: var(--warn-bg); color: var(--warn-ink); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
/* must-fix lines take you to the problem */
button.issue-line { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; }
.issue-line .go { margin-left: auto; color: var(--blue); font-weight: 800; font-size: 18px; }
.card.slot, [data-slot] { scroll-margin-top: 12px; }
.flash { animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 45% { box-shadow: 0 0 0 3px var(--blue); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* a store's own changes on a flyer it shares with the base store */
.chip.own { background: #F1E8FA; color: #5B2A86; }
.own-box { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: #F1E8FA; color: #5B2A86;
  border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.own-box .meta { color: #6E4A8E; }

/* send specials to other stores / dates */
.notes { display: flex; flex-direction: column; gap: 6px; }
.note-box { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: var(--info-bg); color: var(--info-ink);
  border-radius: 14px; padding: 10px 12px; font-size: 14px; }
/* the sheet is a flex column: don't let it squeeze the lists into small scroll boxes */
/* a tall sheet scrolls: nothing in it gets squeezed to fit (buttons kept their text but lost their height) */
.sheet > * { flex-shrink: 0; }
.sheet .fam-list { flex-shrink: 0; }
.send-dest { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 8px; border-bottom: 1px solid var(--line-soft); }
.send-dest:last-child { border-bottom: 0; }
.send-dest .field { margin-left: 30px; }
.tg-row { display: flex; gap: 8px; flex-wrap: wrap; }
.note-box.admin { background: var(--bad-bg); color: var(--bad-ink); border: 1px solid rgba(180, 71, 15, .4); }
.note-box > button { white-space: nowrap; flex: none; }
.note-box.admin .meta { color: var(--bad-ink); opacity: .8; }
/* edit sheet: title with a close button */
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-x { flex: none; min-width: 36px; height: 36px; border-radius: 18px; border: 1px solid var(--field); background: var(--card);
  font-size: 22px; line-height: 1; color: var(--ink); padding: 0 10px; }
.sheet-x.armed { font-size: 13px; font-weight: 700; background: var(--bad-bg); color: var(--bad-ink); border-color: rgba(180, 71, 15, .4); }

/* purchase history: the LOC SMS window look (blue title bars, beige panels, grey value boxes) */
.ph-top { background: linear-gradient(180deg, #547BD8, #2850B8); color: #fff; margin: 0 0 12px; padding-bottom: 14px; }
.ph-top .icon-btn { color: #fff; }
.ph-top .sub { color: #E6ECFA; }
.ph { --ph-title: #A0B8F0; --ph-panel: #ECE9D8; --ph-field: #F0F0F0; --ph-border: #989898; --ph-line: #606060;
  --ph-up: #A1121C; --ph-down: #1E6B34; --ph-credit-bg: #FBE3E3; --ph-credit: #A1121C; }
.ph .field { border-color: var(--ph-border); border-radius: 4px; }
.ph .field:focus-within { border-color: #2850B8; }
.ph .field:focus-within span { color: #2850B8; }
.ph .scan-btn { border-radius: 4px; background: #547BD8; color: #fff; border: 1px solid #2850B8; }
.ph .tg { border-radius: 4px; border-color: var(--ph-border); }
.ph .tg[aria-pressed="true"] { background: #2850B8; border-color: #2850B8; }
.ph .search-results .row { border-radius: 4px; border-color: var(--ph-border); }
.ph-out { display: flex; flex-direction: column; gap: 12px; }
.ph-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 6px; }
.ph-actions .tg { justify-content: center; }
.ph .ph-look { background: #547BD8; color: #fff; border-color: #2850B8; font-weight: 700; }
.ph .ph-look[disabled] { background: var(--ph-field); color: #6B6B6B; border-color: var(--ph-border); font-weight: 600; }
.ph-panel { background: var(--ph-panel); border: 1px solid var(--ph-line); border-radius: 3px; overflow: hidden; }
.ph-title { background: var(--ph-title); color: #000; font-weight: 700; font-size: 13px; padding: 5px 10px; border-bottom: 1px solid var(--ph-line); }
.ph-pbody { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ph-name { font-size: 18px; font-weight: 800; color: #000; }
.ph .meta { color: #3E3E3E; }
.ph-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ph-kv { display: flex; flex-direction: column; min-width: 0; }
.ph-kv.wide { grid-column: 1 / -1; }
.ph-kv span { font-size: 11px; color: #000; }
.ph-kv b { background: var(--ph-field); border: 1px solid var(--ph-border); padding: 4px 6px; font: 700 15px var(--num);
  min-height: 28px; overflow-wrap: anywhere; color: #000; }
.ph-note { background: #fff; border: 1px solid var(--ph-border); padding: 8px 10px; font-weight: 600; }
/* Price (LOC SMS): label column + Reg / TPR / Sale / Store; the active price in LOC's green */
.ph-active { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ph-active > span:first-child { font-size: 12px; font-weight: 700; color: #000; }
.ph-active b { font: 800 19px var(--num); background: var(--ph-field); border: 1px solid var(--ph-border); padding: 2px 8px; }
.ph-active b.on, .ph-pv.on { background: #2BD62B; border-color: #138A13; color: #000; }
.ph-ptab { display: grid; grid-template-columns: 40px repeat(4, minmax(0, 1fr)); gap: 3px; }
.ph-pc { min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-pl { text-align: left; font-size: 12px; font-weight: 700; color: #000; align-self: center; }
.ph-ph { display: flex; flex-direction: column; line-height: 1.15; }
.ph-ph b { font-size: 14px; color: #000; }
.ph-ph span { font: 700 13px var(--num); color: #2850B8; }
.ph-ph span.ph-up { color: var(--ph-up); }
.ph-pv { background: #fff; border: 1px solid var(--ph-border); font: 800 16px var(--num); padding: 4px 1px; }
.ph-pd { background: var(--ph-field); border: 1px solid var(--ph-border); font: 600 13px var(--num); padding: 3px 1px; }
.ph-pd.old { color: #8A8A8A; }
.ph-loccost { font: 600 13px var(--num); color: #000; }
.ph-warn-note { border-color: #A1121C; color: #A1121C; background: #FFF6F6; }
.ph-family { justify-content: center; }
.ph-line { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--ph-border);
  border-radius: 2px; padding: 8px 10px; cursor: pointer; color: #000; }
.ph-line + .ph-line { margin-top: -2px; }
.ph-line:focus-visible { outline: 3px solid #2850B8; outline-offset: 1px; }
.ph-line.credit { background: var(--ph-credit-bg); border-color: var(--ph-credit); color: var(--ph-credit); }
.ph-l1 { display: flex; gap: 8px; align-items: baseline; }
.ph-vendor { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-credit { font-size: 11px; font-weight: 800; text-transform: uppercase; border: 1px solid currentColor; padding: 0 5px; border-radius: 2px; }
.ph-item { font-size: 13px; font-weight: 700; color: #2850B8; }
.ph-line.credit .ph-item { color: inherit; }
.ph-l2 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font: 700 17px var(--num); margin-top: 2px; }
.ph-cost small { font-size: 13px; font-weight: 600; }
.ph-cost i { font-style: normal; font-size: 12px; margin-right: 4px; }
.ph-up { color: var(--ph-up); }
.ph-down { color: var(--ph-down); }
.ph-l3 { font-size: 12px; color: #3E3E3E; margin-top: 2px; }
.ph-line.credit .ph-l3 { color: inherit; }
.ph-more { margin-top: 8px; display: grid; grid-template-columns: 1fr; gap: 6px; }
.ph-more[hidden] { display: none; }
.ph-scan { background: #547BD8; color: #fff; border: 1px solid #2850B8; border-radius: 4px; }
.ph-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-top: 4px; }
.ph .ph-update { border-color: #2850B8; color: #2850B8; font-weight: 700; }
.ph .ph-update[disabled] { color: #6B6B6B; border-color: var(--ph-border); background: var(--ph-field); }
.ph-warn { color: #A1121C; font-weight: 600; }
/* Home: the Purchase history button wears its screen's palette (the LOC SMS blue bar) */
.btn.ph-home { background: linear-gradient(180deg, #547BD8, #2850B8); color: #fff; border: 1px solid #2850B8; border-radius: 4px; font-weight: 700; }
.btn.ph-home:focus-visible { outline-color: #2850B8; }
/* Home → Print house: a flyer emailed to the print house is green and lists its sends */
.print-card + .print-card { border-top: 1px solid var(--line-soft); }
.print-card > .target { border-top: 0; }
.print-card.emailed { background: var(--ok-bg); box-shadow: inset 5px 0 0 var(--go); }
.print-card.emailed:first-child { border-radius: 14px 14px 0 0; }
.print-card.emailed:last-child { border-radius: 0 0 14px 14px; }
.print-card.emailed:only-child { border-radius: 14px; }
.print-log { padding: 0 14px 10px 19px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--ok-ink); }
.print-log-head { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.print-log-row { overflow-wrap: anywhere; }
/* My sections: week colors. Past deadline = gray; upcoming = blue (up next), purple, teal, brown */
.section-card.wk { background: var(--wk-bg); box-shadow: inset 5px 0 0 var(--wk); }
.section-card.wk:first-child { border-radius: 14px 14px 0 0; }
.section-card.wk:last-child { border-radius: 0 0 14px 14px; }
.section-card.wk:only-child { border-radius: 14px; }
.wk-past { --wk: #9A988F; --wk-bg: #F1EFEA; --wk-ink: #55544E; }
.wk-0 { --wk: #234A78; --wk-bg: #E8EEF6; --wk-ink: #1A3A60; }
.wk-1 { --wk: #6B3FA0; --wk-bg: #F1EAF8; --wk-ink: #4F2D78; }
.wk-2 { --wk: #0E6E7E; --wk-bg: #E3F2F4; --wk-ink: #0A5260; }
.wk-3 { --wk: #8A5A00; --wk-bg: #FAF0DC; --wk-ink: #6A4500; }
.wk-tag { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--wk); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; }

/* LOC SMS change requests: the compact sheet (from Purchase history), the item's requests, #/lr */
.lr-head { display: flex; align-items: flex-start; gap: 8px; }
.lr-head > div { flex: 1; min-width: 0; }
.lr-x { width: 36px; height: 36px; flex: none; border: 0; border-radius: 18px; background: var(--tray); font-size: 20px; line-height: 1; cursor: pointer; }
.lr-hints { display: flex; flex-direction: column; gap: 6px; }
.lr-hint { text-align: left; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--blue); background: var(--info-bg);
  color: var(--info-ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.lr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tg.lr-chip { height: 34px; padding: 0 11px; font-size: 13px; }
.lr-list { display: flex; flex-direction: column; gap: 8px; }
.lr-list:empty { display: none; }
.lr-item { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.lr-ihead { display: flex; align-items: center; justify-content: space-between; }
.lr-ihead .lr-x { width: 28px; height: 28px; font-size: 16px; }
.lr-row { display: flex; gap: 6px; }
.lr-row > .lr-f { flex: 1; min-width: 0; }
.lr-row > .lr-f.lr-narrow { flex: 0 0 64px; }
.field.lr-f { padding: 5px 9px; border-radius: 10px; }
.field.lr-f:focus-within { padding: 3.5px 7.5px; }
.field.lr-f input, .field.lr-f textarea { width: 100%; border: 0; outline: 0; background: transparent; padding: 0; font: 600 16px 'Figtree', system-ui, sans-serif; resize: vertical; }
.field.lr-f input[type=date] { font-size: 14px; }
.lr-margin { font-size: 13px; color: var(--muted); }
.lr-margin b { color: var(--go-dark); }
.lr-margin b.lr-bad, .lr-bad { color: var(--bad-ink); }
.lr-note { width: 100%; border: 1px solid var(--field); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 16px; resize: vertical; background: var(--card);
  flex: none; min-height: 84px; }   /* never squeezed when the phone keyboard shortens the sheet */
.lr-open { margin-top: 2px; width: 100%; }
.lr-mini { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.lr-mrow { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.lr-mrow .chip { flex: none; }
.lr-sum { white-space: pre-line; font-weight: 600; }
.lr-reply { color: var(--blue); }
.lr-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.lr-card .meta { font-size: 15px; }
.lr-card .chip { font-size: 14px; padding: 4px 10px; }
.lr-card.done { background: var(--ok-bg); border-color: #A9CDB6; border-left: 5px solid var(--go); }
.lr-card.done .chip.ok { background: var(--go); color: #fff; }
.lr-card.done .meta { color: var(--ok-ink); }
.lr-card.wait { border-left: 5px solid var(--blue); }
.lr-barcode { width: 80%; margin: 8px auto 2px; background: #fff; padding: 6px 0 2px; border-radius: 6px; }
.lr-barcode svg { display: block; width: 100%; height: 72px; fill: #000; }
.lr-digits { text-align: center; font: 600 16px var(--num); letter-spacing: .12em; color: #000; }
.lr-f32 { font-size: 15px; color: var(--muted); }
.lr-f32 b { color: var(--ink); }
.lr-chead { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.lr-name { font-weight: 800; font-size: 19px; line-height: 1.25; }
.lr-lines { font-weight: 700; font-size: 17px; line-height: 1.35; padding: 4px 0; }
.lr-note-in { font-size: 16px; color: var(--blue); }
.lr-ans { border: 1px solid var(--field); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; margin-top: 4px; }
.lr-acts { display: flex; gap: 8px; margin-top: 4px; }
.lr-acts .btn { flex: 1; }
.lr-acts.lr-own { justify-content: flex-end; }
.lr-acts.lr-own .btn { flex: 0 0 auto; }
.btn.lr-home { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.btn.lr-home.wait { border-color: var(--blue); }
.lr-badge { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 10px; background: var(--bad-ink); color: #fff; }
.lr-badge.zero { background: var(--tray); color: var(--muted); }

/* LOC SMS lists (2026-10-26): add to list first, send now below and smaller; the list bar; emailed lists */
.lr-now { width: 100%; }
.lr-listbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px;
  border-radius: 10px; background: var(--info-bg); border: 1px solid var(--blue); color: var(--ink); text-decoration: none; font-size: 15px; }
.lr-listbar span { color: var(--blue); font-weight: 700; }
.lr-email { width: 100%; }
.lr-prods summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: 4px 0; }
.lr-prod { padding: 6px 0; border-top: 1px solid var(--line); }
.lr-prod .meta { white-space: pre-line; }
/* places in another department's section that take this department's items too: optional */
.bar-shared { display: block; font-weight: 600; font-size: 11px; letter-spacing: 0; opacity: .85; }
.pv-slot.shared { border-color: #8a6d3b; border-style: dotted; }
.pv-slot.shared.empty { background: rgba(255, 244, 214, .55); }
/* places an admin approved empty: "TO FILL OUT DURING CORRECTIONS" (stay open after the approval) */
.card.slot.to-fill { border: 1.5px dashed #C8102E; }
.card.slot.to-fill a.empty-row.add { color: #C8102E; }
.pv-slot.to-fill { border: 1.5px dashed #C8102E; background: rgba(200, 16, 46, .08); }
.pv-fill { font: 800 10px/1.1 'Figtree', sans-serif; color: #C8102E; text-transform: uppercase; text-align: center; }
/* My sections: the date row carries the section's own print house button (approved sections, marketing) */
.sub.sec-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.btn.sec-print { flex: none; white-space: nowrap; }
.btn.sec-print.sent { color: var(--go); }

/* "Jump to" row on a long My sections page (marketing / supervisor): stays at the top while scrolling */
.jump-index { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; overflow-x: auto;
  scrollbar-width: none; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.jump-lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.jump-chip { flex-shrink: 0; white-space: nowrap; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); font: 600 13px/1 'Figtree', system-ui, sans-serif; color: var(--ink); cursor: pointer; }
.jump-target { scroll-margin-top: 58px; }

/* My sections on a phone (2026-11-02): Print house cards put the store and ad on their own line and the two
   buttons side by side below it (they used to squeeze the store name to a few letters); a section card's
   print button drops under the ad line when there is no room; its print button is finger-sized on touch screens. */
.print-card > .target { flex-wrap: wrap; }
.print-card > .target .main { flex-basis: 100%; }
.print-card > .target > .btn { flex: 1 1 0; white-space: nowrap; }
.sub.sec-row { flex-wrap: wrap; }
.sub.sec-row > .sec-print { margin-left: auto; }
.cal-back .main { flex-basis: 140px; }
@media (pointer: coarse) { .btn-tiny.sec-print { height: 36px; padding: 0 12px; } }

/* ---------- sections board (marketing, supervisor): one ad date, stores x departments */
.board-date { height: 38px; border: 1px solid var(--field); border-radius: 10px; background: var(--card); padding: 0 8px; max-width: 100%; }
.board-top { flex-wrap: wrap; }
.board-picks { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: thin; }
.board-pick { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 72px; padding: 6px 10px 7px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font-size: 13px; }
.board-pick span { font-size: 12px; color: var(--muted); }
.board-pick.on { border: 2px solid var(--go); padding: 5px 9px 6px; background: #F1F7F3; }
.board-bar { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.board-bar > i { display: block; height: 100%; background: var(--go); }
.section-card.locked { cursor: default; }

/* desktop: the page uses the whole screen; the table fits it (cells grow taller, not wider) */
body.board-page #app { max-width: none; }
body.board-page .board-top { padding: 14px 20px 8px; }
.board-wrap { padding: 0 20px 20px; overflow-x: auto; }
table.board { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; font-size: 12px; min-width: calc(150px + var(--cols) * 84px + 170px); }
table.board th, table.board td { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); vertical-align: top; padding: 0; }
table.board thead th { position: sticky; top: 0; z-index: 2; background: var(--tray); padding: 7px 6px; text-align: left; font-weight: 700; }
table.board thead th:first-child { border-top-left-radius: 13px; }
table.board thead th:last-child { border-top-right-radius: 13px; }
table.board .b-corner, table.board .b-store { width: 150px; }
table.board .b-whole { width: 170px; }
.b-dept { font-size: 12.5px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.b-count { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }
table.board tbody th { position: sticky; left: 0; z-index: 1; background: var(--card); padding: 6px 10px; text-align: left; font-weight: 400; }
.b-code { font: 700 18px/1 var(--num); }
.b-name { font-size: 12px; font-weight: 700; margin: 2px 0 4px; }
.b-due { font-size: 11px; color: var(--muted); }
td.bcell.wk { background: var(--wk-bg); box-shadow: inset 4px 0 0 var(--wk); }
td.bcell.readonly .b-link { opacity: .8; }
td.bcell.none { color: #B9B5AA; text-align: center; vertical-align: middle; background: repeating-linear-gradient(135deg, #F7F5F0 0 6px, #F1EFE9 6px 12px); }
.b-link { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 6px 6px 7px 10px; min-height: 56px; height: 100%;
  color: inherit; text-decoration: none; }
.b-link.locked { cursor: default; }
.b-link .chip { font-size: 11px; padding: 2px 6px; white-space: normal; line-height: 1.25; }
.b-fact { font-size: 11.5px; color: var(--wk-ink, var(--muted)); font-weight: 600; line-height: 1.25; }
.b-note { font-size: 11px; color: var(--bad-ink); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.b-link .sec-print { height: auto; min-height: 24px; padding: 3px 6px; font-size: 11px; white-space: normal; line-height: 1.2; text-align: left; margin-top: auto; }
td.b-whole .print-card > .target { flex-direction: column; align-items: stretch; gap: 6px; padding: 7px 8px; font-size: 12px; }
td.b-whole .print-card .meta { display: none; }
td.b-whole .print-card .btn { height: 28px; font-size: 12px; }
td.b-whole .print-card.emailed { border-radius: 0; box-shadow: inset 4px 0 0 var(--go); }
td.b-whole .print-card .main { display: none; }      /* the store is the row */
td.b-whole .print-log { padding: 0 8px 7px; font-size: 11px; }
td.b-whole .print-log-head { display: none; }
td.b-whole .print-log-row:nth-child(n+3) { display: none; }   /* only the latest send */
td.b-whole .print-log-row span { display: none; }
td.b-whole .print-log-row b::before { content: '✓ Emailed '; }
/* crosshair: the hovered cell's whole row and column */
table.board .x-row, table.board .x-col { background-image: linear-gradient(rgba(35, 74, 120, .10), rgba(35, 74, 120, .10)); }
table.board th.x-row, table.board th.x-col { background-color: #DCE5F1; }
table.board td.x-hot { outline: 3px solid var(--blue); outline-offset: -3px; position: relative; z-index: 1; }
table.board td.x-hot .b-link { background: rgba(255, 255, 255, .35); }
.board-top .board-date { flex: 1 1 220px; }
