/* Basecamp by Time Traveler. Palette from the logo: slate, green, orange. */
:root {
  --slate: #3C4858; --slate-dark: #2E3745; --slate-light: #4F5D70;
  --green: #7B9E2C; --green-dark: #5F7C1F; --orange: #F2A33A; --orange-dark: #D98A1E;
  --bg: #F6F7F4; --card: #FFFFFF; --line: #E3E6E0; --text: #1F2630; --muted: #6B7483;
  --neg: #C0392B; --ok: #3F7D20; --warn-bg: #FFF4E0;
  --navy: var(--slate); --gold: var(--orange);
  --radius: 10px; --shadow: 0 1px 2px rgba(31, 38, 48, .06), 0 4px 14px rgba(31, 38, 48, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; background: var(--bg); color: var(--text);
       display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
header { display: none; }
h1 { font-size: 26px; margin: 4px 0 6px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 22px 0 8px; font-weight: 700; }
.hint { color: var(--muted); margin: 0 0 14px; }
.hint.warn { color: var(--neg); }
.hint.sugg { color: var(--green-dark); }
.small { font-size: 13px; color: var(--muted); }
.hidden { display: none !important; }

/* ---------- sidebar ---------- */
#side { background: var(--slate-dark); color: #fff; padding: 20px 14px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
#side .brand { padding: 0 6px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 10px; }
#side .brand img { display: block; width: 100%; max-width: 170px; background: #fff; border-radius: 8px; padding: 10px 12px; }
#side .appname { margin-top: 10px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
#side nav { display: flex; flex-direction: column; gap: 2px; }
#side .navbtn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 12px; border: 0; border-radius: 8px; background: transparent; color: #C9D1DC; font-size: 15px; cursor: pointer; }
#side .navbtn:hover { background: rgba(255, 255, 255, .06); color: #fff; }
#side .navbtn.on { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
#side .ic { width: 18px; text-align: center; color: var(--green); font-size: 14px; }
#side .navbtn.on .ic { color: var(--orange); }
#side .navbtn.mgr, #side .navbtn.adm { display: none; } body.is-mgr #side .navbtn.mgr { display: flex; } body.is-admin #side .navbtn.adm { display: flex; }
body:not(.in) #side nav { display: none; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding: 12px 6px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.side-foot .user { color: #fff; }
.side-foot .link { color: #C9D1DC; text-align: left; padding: 2px 0; }
.side-foot .status { font-size: 12px; color: #9AA6B5; }
.side-foot .status.warn { color: var(--orange); font-weight: 600; }
.status.bad { color: #F5A3A3; }
.nbadge { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--orange); color: var(--slate-dark); font-size: 12px; font-weight: 700; text-align: center; margin-left: auto; }

/* ---------- main ---------- */
main { padding: 28px 32px; min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0 14px; box-shadow: var(--shadow); }
.meta { color: var(--muted); margin-bottom: 12px; }

/* ---------- controls ---------- */
button { font: inherit; font-size: 15px; font-weight: 600; padding: 11px 18px; border: 0; border-radius: 8px; background: var(--slate); color: #fff; cursor: pointer; }
button:hover { background: var(--slate-light); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.secondary { background: #fff; color: var(--slate); border: 1px solid var(--line); }
button.secondary:hover { background: #F0F2EC; }
button.link { background: none; color: var(--slate); padding: 4px 0; font-weight: 500; }
button.link:hover { background: none; text-decoration: underline; }
button.small { font-size: 13px; }
button[type=submit], #doApply, .ok-btn, #mOk, #oPreview, #receiveBtn, #applyBtn, #createBtn { background: var(--orange); color: var(--slate-dark); }
button[type=submit]:hover, #doApply:hover, .ok-btn:hover, #mOk:hover, #oPreview:hover, #receiveBtn:hover, #applyBtn:hover, #createBtn:hover { background: var(--orange-dark); }
input, select { font: inherit; }
input[type=search], input[type=text], input[type=number], input[type=password], input[type=email], input[type=tel], input:not([type]), select {
  font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
input:focus, select:focus { outline: 2px solid rgba(123, 158, 44, .35); border-color: var(--green); }
label { color: var(--muted); font-size: 13px; }
.lt { display: inline; }
.req { color: var(--neg); font-weight: 700; }
body:not(.is-mgr) .mgr-req { display: none; }
#searchForm { display: flex; gap: 8px; max-width: 820px; }
input[type=search] { flex: 1; font-size: 18px; padding: 13px 16px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin: 6px 0 12px; }
.row label, .grid2 label { display: flex; flex-direction: column; gap: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; max-width: 900px; }
.chips { margin: 12px 0; }
.lbl { font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.chip { display: inline-block; margin: 0 6px 6px 0; padding: 7px 13px; border-radius: 999px; background: #fff; color: var(--slate); border: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--green); }
.chip.on { background: var(--slate); color: #fff; border-color: var(--slate); }
.chip.out { opacity: .5; text-decoration: line-through; }
input.other { width: 96px; font-size: 14px; padding: 7px 10px; border: 1px dashed var(--line); border-radius: 999px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.segbtn { background: #fff; color: var(--slate); border: 0; border-radius: 0; padding: 10px 18px; font-weight: 600; }
.segbtn.on { background: var(--green); color: #fff; }
.chk { display: flex; flex-direction: row !important; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.chk input { width: 18px; height: 18px; }

/* ---------- cards and lists ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 10px 0; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.card:hover { border-color: var(--green); }
.card .n { font-weight: 600; font-size: 17px; }
.card .c { color: var(--muted); font-size: 13px; }
.card .s { text-align: right; white-space: nowrap; color: var(--muted); font-size: 13px; }
.card .s b { display: block; font-size: 20px; color: var(--text); }
.card .row input { font-size: 14px; padding: 8px; }
.badge { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--warn-bg); color: #8A5A00; margin-left: 6px; font-weight: 600; }
.badge.archived { background: #E7EAE3; color: #4B5563; }
.badge.open, .badge.approved, .badge.applied { background: #E6F0D6; color: var(--green-dark); }
.badge.pending { background: var(--warn-bg); color: #8A5A00; }
.badge.rejected { background: #FAE3E0; color: #8E2B22; }
.badge.cancelled { background: #E7EAE3; color: #4B5563; }
.nomatch { margin-top: 16px; padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; max-width: 820px; background: #fff; }
#results, .nomatch { max-width: 820px; }
#createAnyway a { color: var(--green-dark); }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: #EEF1EA; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.num { text-align: right; }
td.neg { color: var(--neg); font-weight: 600; }
td.zero { color: var(--muted); }
td.ok { color: var(--ok); font-weight: 600; }
td.nobc { color: var(--neg); font-style: italic; }
tr.total td { font-weight: 700; border-top: 2px solid var(--slate); }
td.mgr, th.mgr { display: none; } body.is-mgr td.mgr, body.is-mgr th.mgr { display: table-cell; }
input.qty { width: 72px; font-size: 16px; padding: 7px; text-align: right; }
table input.t { width: 120px; text-align: right; font-size: 15px; padding: 6px; }
.gridwrap { overflow-x: auto; }
.qgrid { width: auto; } .qgrid th { font-size: 12px; } .qgrid td { padding: 5px; }
.actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.msg { margin-top: 10px; min-height: 20px; }
.msg.ok, span.ok, p.ok { color: var(--ok); } .msg.bad, span.bad, p.bad { color: var(--neg); }
.plan { background: #fff; border: 1px solid var(--orange); border-radius: var(--radius); padding: 12px 14px; margin-top: 12px; line-height: 1.7; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 10px 0 14px; }
.kv > div:nth-child(odd) { color: var(--muted); font-size: 13px; }

/* ---------- role visibility ---------- */
.mgr { display: none; } body.is-mgr .mgr { display: initial; } body.is-mgr form.mgr, body.is-mgr div.mgr { display: flex; } body.is-mgr label.mgr { display: flex; }
body.is-mgr label.chk.mgr { display: flex; }
.adm { display: none; } body.is-admin .adm { display: initial; }
.exec { display: none; } body:not(.is-mgr) .exec { display: block; }

/* ---------- login ---------- */
.narrow { max-width: 460px; margin: 60px auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 32px 32px 20px; box-shadow: var(--shadow); }
.narrow h1 { margin-bottom: 14px; }
.narrow label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.narrow input, .narrow select { font-size: 18px; padding: 12px 14px; }
.narrow button[type=submit] { width: 100%; margin-top: 6px; font-size: 17px; padding: 13px; }

/* ---------- counts ---------- */
.scanrow { display: flex; gap: 8px; margin: 8px 0; max-width: 820px; }
.scanrow input:first-child { flex: 1; font-size: 18px; padding: 13px 16px; }
#cam { width: 100%; max-height: 260px; background: #000; border-radius: var(--radius); }
#scanPick .chip { margin-top: 6px; }

/* ---------- tabs, reports, admin ---------- */
.tabs { display: flex; gap: 6px; margin: 8px 0 14px; flex-wrap: wrap; }
.tab, .otab { background: #fff; color: var(--slate); border: 1px solid var(--line); font-size: 14px; padding: 8px 14px; font-weight: 600; }
.tab.on, .otab.on { background: var(--slate); color: #fff; border-color: var(--slate); }
.flag { font-size: 12px; padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.flag.restock { background: #FAE3E0; color: #8E2B22; } .flag.ok { background: #E6F0D6; color: var(--green-dark); } .flag.none { background: #E7EAE3; color: #4B5563; }
.tagchip { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; background: #fff; cursor: pointer; }
.tagchip.on { background: var(--green); color: #fff; border-color: var(--green); }
.draft { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 10px 0; box-shadow: var(--shadow); }
.draft .t { font-weight: 600; font-size: 17px; }
.draft .d { color: var(--muted); font-size: 13px; margin: 4px 0 8px; }
.draft pre { background: #F3F5EF; border-radius: 8px; padding: 10px; font-size: 13px; overflow-x: auto; white-space: pre-wrap; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(31, 38, 48, .45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.mbox { background: #fff; border-radius: 14px; width: min(640px, 100%); max-height: 90vh; overflow: auto; padding: 22px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.mbox h2 { margin: 0 0 6px; font-size: 20px; }
.mbox table { box-shadow: none; border: 1px solid var(--line); }
.mbtns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ---------- desktop sizing ---------- */
@media (min-width: 641px) {
  body { font-size: 17px; }
  main { padding: 36px 48px; }
  h1 { font-size: 30px; }
  button { font-size: 16px; padding: 12px 20px; }
  .row input, .row select, .grid2 input, .grid2 select { font-size: 17px; padding: 11px 12px; }
  table { font-size: 16px; }
}
@media (min-width: 1500px) { body { font-size: 18px; grid-template-columns: 260px 1fr; } main { padding: 44px 64px; } }

/* ---------- phone ---------- */
@media (max-width: 640px) {
  body { display: block; }
  #side { position: sticky; top: 0; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 10px; z-index: 5; }
  #side .brand { padding: 0 8px 0 0; border: 0; margin: 0; display: flex; align-items: center; gap: 8px; }
  #side .brand img { width: 84px; padding: 4px 6px; border-radius: 6px; }
  #side .appname { margin: 0; font-size: 11px; }
  #side nav { flex-direction: row; flex-wrap: wrap; gap: 2px; width: 100%; }
  #side .navbtn { width: auto; padding: 8px 10px; font-size: 14px; }
  #side .navbtn.on { box-shadow: inset 0 -2px 0 var(--orange); background: transparent; border-radius: 0; }
  #side .ic { display: none; }
  .side-foot { margin-left: auto; border-top: 0; padding: 0; flex-direction: row; gap: 8px; align-items: center; }
  .side-foot .status { display: none; }
  main { padding: 14px 16px; }
  .grid2 { grid-template-columns: 1fr; }
  th:nth-child(3), td:nth-child(3) { display: none; }
  .narrow { margin: 16px auto; padding: 18px 16px 10px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
}

/* create form: two columns on wide screens */
.create2 { display: grid; grid-template-columns: 1fr; gap: 8px 40px; }
@media (min-width: 1100px) { .create2 { grid-template-columns: minmax(380px, 520px) 1fr; } .create2 .grid2 { max-width: none; } }
.create2 .chips { margin: 8px 0; }
.create2 .chip { padding: 5px 11px; font-size: 13px; margin: 0 5px 5px 0; }
.create2 .lbl { margin: 8px 0 4px; display: flex; align-items: center; gap: 10px; }
select.inline { font-size: 13px; padding: 4px 8px; }
.create2 .hint, .create2 .small { margin: 4px 0; font-size: 14px; }

/* home, global scan */
.gscan { padding: 0 0 10px; }
.gscan input { width: 100%; font-size: 14px; padding: 9px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); color: #fff; }
.gscan input::placeholder { color: #9AA6B5; }
.gscan input:focus { outline: 2px solid var(--orange); border-color: var(--orange); background: #fff; color: var(--text); }
body:not(.in) .gscan { display: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 12px 0 8px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; text-align: left; box-shadow: var(--shadow); color: var(--text); font-weight: 400; }
.tile:hover { background: #fff; border-color: var(--green); }
.tile .tn { font-size: 34px; font-weight: 800; line-height: 1; color: var(--slate); }
.tile .tl { color: var(--muted); font-size: 14px; margin-top: 6px; }
.tile .ts { color: var(--neg); font-size: 13px; margin-top: 4px; min-height: 1.2em; }
.tile.warn .tn { color: var(--orange-dark); }
.tile.bad .tn { color: var(--neg); }
#hRecent div { padding: 6px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .gscan { order: 3; width: 100%; padding: 6px 0 0; } }

/* batch 3 */
.phead { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 8px; }
.photo { width: 120px; height: 120px; border-radius: 10px; background: #EEF1EA; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; overflow: hidden; flex: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-btn { cursor: pointer; display: inline-block; margin-top: 4px; color: var(--green-dark); }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #EEF1EA; flex: none; }
.card .lead { display: flex; gap: 12px; align-items: center; }
.dup { border: 1px solid var(--orange); background: var(--warn-bg); border-radius: var(--radius); padding: 10px 12px; margin: 6px 0; font-size: 14px; }
.dup b { color: #8A5A00; }
.dup .chip { margin-top: 6px; }
td.cover.low { color: var(--neg); font-weight: 600; }
#startLists h2 { margin-top: 18px; }

/* batch 4 + 5 */
.progress { height: 10px; background: #E7EAE3; border-radius: 999px; overflow: hidden; margin: 6px 0 10px; max-width: 820px; }
.progress .bar { height: 100%; width: 0; background: var(--green); transition: width .3s; }
.flash-ok { animation: flashok .5s; } .flash-bad { animation: flashbad .6s; }
@keyframes flashok { 0% { background: #DFF3C8; } 100% { background: transparent; } }
@keyframes flashbad { 0%, 50% { background: #FAD4D0; } 100% { background: transparent; } }
details summary { cursor: pointer; color: var(--slate); font-weight: 600; margin: 8px 0; }
.kleft div { padding: 4px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.cmts { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.cmt { font-size: 14px; padding: 4px 0; } .cmt b { color: var(--slate); } .cmt .small { margin-left: 6px; }
.cmtrow { display: flex; gap: 8px; margin-top: 6px; } .cmtrow input { flex: 1; font-size: 14px; padding: 8px 10px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } @media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.bar-row { display: grid; grid-template-columns: 140px 1fr 90px; gap: 10px; align-items: center; padding: 5px 0; font-size: 14px; }
.bar-row .b { height: 10px; background: #E7EAE3; border-radius: 999px; overflow: hidden; } .bar-row .b > div { height: 100%; background: var(--green); }
#rExport a { margin-right: 12px; color: var(--green-dark); }

/* batch 7 */
#pasteBox { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; }
.sticky-total { position: sticky; bottom: 0; background: var(--card); border-top: 2px solid var(--slate); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; margin-top: 14px; box-shadow: 0 -4px 14px rgba(31,38,48,.06); border-radius: 10px 10px 0 0; }
.sticky-total span { font-weight: 700; font-size: 18px; }
.hist { background: #F3F5EF; border-radius: 8px; padding: 8px 12px; margin: 6px 0 10px; }
.hist b { color: var(--slate); }
.paybox { font-size: 13px; color: var(--muted); } .paybox b { color: var(--text); } .paybox .due { color: var(--neg); font-weight: 700; }
.retline { display: grid; grid-template-columns: 1fr 80px; gap: 8px; align-items: center; padding: 4px 0; }

.photo-btn.secondary { display: inline-block; margin-top: 8px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--slate); font-weight: 600; font-size: 14px; cursor: pointer; }
.photo-btn.secondary:hover { background: #F0F2EC; }
.nbadge { background: #F7C948; color: #3C2F00; }
.rcv-row { display: grid; grid-template-columns: 1fr 90px 110px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rcv-row .v { font-weight: 600; } .rcv-row .c { color: var(--muted); font-size: 13px; }
.rcv-head { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.rcv-sum { font-weight: 700; font-size: 17px; margin-top: 10px; }
.bigseg .segbtn { font-size: 17px; padding: 14px 22px; }

/* universal progress pop-up and toast */
.busy { position: fixed; inset: 0; background: rgba(31, 38, 48, .5); display: flex; align-items: center; justify-content: center; z-index: 80; }
.bbox { background: #fff; border-radius: 16px; padding: 28px 36px; min-width: 320px; max-width: 90vw; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
#busyText { font-size: 20px; font-weight: 700; color: var(--slate); margin: 14px 0 12px; }
.bbar { height: 8px; background: #E7EAE3; border-radius: 999px; overflow: hidden; }
.bbar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--orange)); border-radius: 999px; transition: width .15s linear; }
#busyPct { margin-top: 8px; font-weight: 600; }
.topbar { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 85; background: transparent; pointer-events: none; }
.topbar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--orange)); transition: width .15s linear; box-shadow: 0 0 8px rgba(245, 158, 11, .6); }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.peaks { display: flex; justify-content: center; align-items: flex-end; gap: 6px; height: 44px; }
.peaks span { display: block; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 36px solid var(--green); animation: bob 1.2s ease-in-out infinite; }
.peaks span:nth-child(2) { border-bottom-color: var(--orange); border-bottom-width: 44px; animation-delay: .2s; }
.peaks span:nth-child(3) { border-bottom-color: var(--slate); border-bottom-width: 30px; animation-delay: .4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 90; background: var(--slate-dark); color: #fff; padding: 16px 24px; border-radius: 12px; font-size: 18px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: min(720px, 92vw); border-left: 6px solid var(--green); }
.toast.bad { border-left-color: var(--neg); background: #4a1f1a; }
.msg { font-size: 17px; font-weight: 600; }

.ptable th.odoo, .ptable td.odoo { background: #F1F3ED; color: var(--muted); }
.ptable input.qty { width: 84px; background: #fff; }
.ptable input.changed { border-color: var(--orange); background: #FFF8EA; }
.ptable td.in { padding: 6px 8px; }
#rcvToggle { margin-left: 8px; vertical-align: middle; }
.rcv-sum { font-size: 17px; font-weight: 700; margin-right: 8px; align-self: center; }

/* audit log */
.logt .lr { cursor: pointer; }
.logt .lr:hover td { background: #F3F5F0; }
.logt .ld pre { white-space: pre-wrap; font-size: 13px; background: #F7F8F5; padding: 10px; border-radius: 8px; margin: 0; max-height: 320px; overflow: auto; }
.logt td.nowrap { white-space: nowrap; }
.row.wrap { flex-wrap: wrap; align-items: flex-end; }
a.btn { display: inline-block; text-decoration: none; }

/* Open in Odoo */
a.olink { font-size: 13px; font-weight: 600; color: var(--green); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; margin-left: 6px; vertical-align: middle; }
a.olink:hover { color: var(--orange); }
h1 a.olink { font-size: 15px; }
.modal.wide .mbox { max-width: min(1200px, 96vw); width: 100%; }

.cphoto { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.cphoto .photo { width: 96px; height: 96px; }
.cphoto .photo img { width: 100%; height: 100%; object-fit: cover; }

.ptable tfoot td { font-weight: 700; border-top: 2px solid var(--line); background: #FAFBF8; }
.ptable tfoot td.neg { color: var(--neg); }
.afilt { margin-bottom: 10px; }

/* product links and grouped report tabs */
a.plink { color: var(--slate); font-weight: 600; text-decoration: underline; text-decoration-color: #B9C2B3; text-underline-offset: 3px; }
a.plink:hover { color: var(--green); text-decoration-color: var(--green); }
.tabgroups { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 8px 0 16px; }
.tg .tgl { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.tg .tabs { margin: 0; }
#pValue { margin: 6px 0 10px; color: var(--muted); }
table tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
#vTotals #labelsBtn { white-space: nowrap; }

/* valuation drill-down */
tr.vrow { cursor: pointer; }
tr.vrow:hover td { background: #F3F5F0; }
tr.vrow.grp td { background: #FAFBF8; border-top: 2px solid var(--line); }

/* order desk v2 */
.order2 { display: grid; grid-template-columns: 1fr; gap: 0 28px; }
@media (min-width: 1250px) { .order2 { grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); align-items: start; } .order2 .osum { position: sticky; top: 12px; } }
.grid2 label.wide { grid-column: 1 / -1; }
.osum .lbl { margin-top: 12px; }
.osum .chip.on { background: var(--green); color: #fff; border-color: var(--green); }
.kvt { width: 100%; margin-top: 12px; box-shadow: none; border: 0; }
.kvt td { border: 0; padding: 5px 0; background: transparent; }
.kvt tr.total td { border-top: 2px solid var(--line); font-weight: 700; font-size: 17px; }
.custcard { width: 100%; text-align: left; margin-bottom: 6px; color: var(--slate); background: var(--card); font-weight: 400; }
.custcard:hover { border-color: var(--green); }
.loy { background: #FFF7E0; border: 1px solid #E9C766; border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.loy button { margin-left: 8px; padding: 6px 12px; }
#oEditBar { margin-bottom: 12px; }

/* the order as an invoice */
.invoice { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 26px 30px 22px; max-width: 1280px; }
.inv-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; border-bottom: 2px solid var(--slate); padding-bottom: 14px; margin-bottom: 18px; }
.inv-h { font-size: 26px; font-weight: 800; color: var(--slate); letter-spacing: -.01em; }
.inv-paste { max-width: 520px; flex: 1; }
.inv-paste summary { cursor: pointer; color: var(--muted); font-weight: 600; text-align: right; }
.inv-paste textarea { width: 100%; margin-top: 8px; }
.inv-parties { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 36px; margin-bottom: 8px; }
.inv-lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 0 8px; }
.invoice .grid2 { max-width: none; margin-top: 12px; }
.invoice .grid2.one { grid-template-columns: 1fr 1fr; }
.phone-search { display: flex; align-items: center; gap: 0; border: 2px solid var(--slate); border-radius: 12px; background: #fff; overflow: hidden; max-width: 560px; }
.phone-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(120, 150, 60, .18); }
.phone-search .ps-ic { font-size: 24px; padding: 0 6px 0 16px; color: var(--muted); }
.phone-search input { flex: 1; border: 0; outline: 0; font-size: 24px; font-weight: 600; letter-spacing: .04em; padding: 14px 10px; min-width: 0; background: transparent; }
.phone-search input::placeholder { font-size: 17px; font-weight: 400; letter-spacing: 0; }
.phone-search button { border-radius: 0; padding: 0 26px; font-size: 17px; align-self: stretch; }
#custHint { margin: 6px 2px 8px; }
.additem { margin: 0 0 10px; }
.additem input { flex: 1; max-width: 560px; font-size: 17px; padding: 11px 12px; }
table.invt { box-shadow: none; border: 1px solid var(--line); }
table.invt thead th { background: var(--slate); color: #fff; }
table.invt td { vertical-align: middle; }
.inv-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 520px); gap: 24px; margin-top: 14px; align-items: start; }
table.inv-totals { box-shadow: none; border: 0; width: 100%; }
table.inv-totals td { border: 0; border-bottom: 1px solid var(--line); padding: 9px 4px; background: transparent; vertical-align: top; }
table.inv-totals td.num { font-weight: 600; white-space: nowrap; font-size: 16px; }
table.inv-totals tr.total td { border-top: 2px solid var(--slate); border-bottom: 0; font-weight: 800; font-size: 19px; }
table.inv-totals tr.due td { color: var(--green-dark, #4d6b1f); }
.inv-totals .ctl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.inv-totals .ctl input { width: 96px; padding: 7px 8px; }
.inv-totals .ctl select { padding: 7px 8px; max-width: 190px; }
.inv-totals .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.inv-totals .chip { margin: 0; padding: 5px 10px; font-size: 13px; }
.inv-totals .chip.on { background: var(--green); color: #fff; border-color: var(--green); }
@media (max-width: 1000px) { .inv-parties, .inv-bottom { grid-template-columns: 1fr; } .inv-top { flex-direction: column; } .invoice { padding: 16px; } }

/* order lifecycle tags: one colour per status */
.badge.life { margin-left: 0; white-space: nowrap; }
.badge.life-approval { background: #FFE9C7; color: #8A4B00; }
.badge.life-to_dispatch { background: #DCE9FB; color: #1C4E9A; }
.badge.life-on_the_way { background: #E7E0FA; color: #51339A; }
.badge.life-delivered { background: #FFF1B8; color: #7A5B00; }
.badge.life-paid { background: #D9F0D0; color: #26631B; }
.badge.life-returned { background: #FAD9D5; color: #8E2B22; }
.badge.life-problem { background: #FFD9C2; color: #9A3B0A; }
.badge.life-cancelled { background: #E3E5E8; color: #4B5563; }
.sfraw { font-weight: 600; }
a.sflink { color: var(--green-dark); text-decoration: underline; font-size: 12px; white-space: nowrap; }
.good { color: var(--green-dark); } div.bad, b.bad { color: var(--neg); }

/* =====================================================================
   Round 17 (10 Nov 2026): lighter, calmer type and tidier tables.
   System fonts only: nothing is downloaded, so text paints instantly.
   These rules sit last on purpose: they override the sizes above.
   ===================================================================== */
body { font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
@media (min-width: 1500px) { body { font-size: 16.5px; } }
h1 { font-size: 1.6em; font-weight: 600; letter-spacing: -.015em; }
h2 { font-size: 1.07em; font-weight: 600; }
b, strong { font-weight: 600; }
button { font-size: .93em; font-weight: 500; padding: 9px 16px; }
button.link { padding: 2px 0; }
.tab, .otab { font-weight: 500; font-size: .9em; padding: 7px 13px; }
#side .navbtn { font-weight: 500; }
.badge { font-weight: 500; }
.tile .tn { font-size: 1.9em; font-weight: 600; }
table { box-shadow: none; border: 1px solid var(--line); }
th, td { padding: 9px 12px; }
th { font-weight: 600; font-size: .72em; background: #F4F6F1; }
td { font-size: .93em; }
td.neg, td.ok, td.cover.low { font-weight: 500; }
table tfoot td { font-weight: 600; }
table.inv-totals tr.total td { font-weight: 700; }

/* compact data tables (All orders, late orders) */
table.tight td { vertical-align: top; padding: 10px 12px; line-height: 1.4; }
table.tight .c { color: var(--muted); font-size: .88em; }
table.tight .c.late { color: var(--orange-dark); }
table.tight a.olink { margin-left: 0; font-weight: 500; font-size: .85em; }
table.tight .cst { font-weight: 600; }
table.tight .note { color: var(--muted); font-size: .8em; margin-top: 3px; }
table.tight tbody tr:hover { background: #FAFBF8; }
td.acts { white-space: nowrap; }
button.act { background: #fff; color: var(--slate); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font-size: .85em; font-weight: 500; margin: 0 4px 4px 0; }
button.act:hover { background: #F0F2EC; border-color: #CCD2C6; }
button.act.danger { color: #8E2B22; }
button.act.danger:hover { background: #FBEDEB; border-color: #E9C4BF; }
a.sflink { font-size: inherit; }

/* All orders: each action has its own colour, and fills in on hover so it reads as a button */
button.act { transition: background .12s, color .12s, border-color .12s; cursor: pointer; }
button.act.oa-edit { background: #EAF1FB; color: #1C4E9A; border-color: #C9DBF5; }
button.act.oa-edit:hover { background: #1C4E9A; color: #fff; border-color: #1C4E9A; }
button.act.oa-send { background: #E9F3D9; color: #3F6212; border-color: #CFE3AE; }
button.act.oa-send:hover { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
button.act.oa-ret { background: #FFF1DC; color: #8A4B00; border-color: #F5D9A8; }
button.act.oa-ret:hover { background: var(--orange-dark); color: #fff; border-color: var(--orange-dark); }
button.act.oa-cancel, button.act.danger { background: #FBE9E7; color: #8E2B22; border-color: #F1C9C4; }
button.act.oa-cancel:hover, button.act.danger:hover { background: #C0392B; color: #fff; border-color: #C0392B; }

/* order page */
.ord-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin: 6px 0 10px; }
.ord-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ord-grid .panel { margin: 0; box-shadow: none; }
.ord-grid .c, #ordBody .panel .c { color: var(--muted); font-size: .88em; }
a.ordlink { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a.ordlink:hover { color: var(--green-dark); text-decoration-color: var(--green-dark); }
/* sortable table headings */
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--text); background: #E9EDE4; }

/* round 22: logo. The file has its own white margin, so the box needs almost no padding. */
#side .brand img { max-width: none; width: 100%; padding: 4px 2px; border-radius: 10px; }
@media (max-width: 640px) { #side .brand img { width: 110px; padding: 2px; } }

/* ---------- phones and narrow windows (QA 11 Nov 2026) ----------
   A wide table scrolls sideways inside its own box; the page itself never scrolls sideways. */
@media (max-width: 900px) {
  main { min-width: 0; max-width: 100vw; overflow-x: hidden; padding-left: 14px; padding-right: 14px; }
  main table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  main table.inv-totals { display: table; }
  main input, main select { max-width: 100%; }
  .row { flex-wrap: wrap; }
  .tabs { flex-wrap: wrap; }
  .ord-head { flex-direction: column; }
  td.acts { white-space: normal; }
  button.act { padding: 7px 12px; }            /* easier to hit with a finger */
  #twofa svg { max-width: 100%; height: auto; }
}
@media (max-width: 640px) {
  /* New order on a phone: one column, nothing wider than the screen */
  .invoice { padding: 12px; max-width: 100%; }
  .invoice > *, .inv-parties > *, .inv-bottom > *, .order2 > * { min-width: 0; }
  .invoice .grid2, .invoice .grid2.one { grid-template-columns: 1fr; }
  .phone-search { max-width: 100%; }
  .phone-search input { font-size: 18px; padding: 12px 8px; }
  .phone-search input::placeholder { font-size: 14px; }
  .phone-search button { padding: 0 14px; font-size: 15px; }
  h1 { font-size: 1.35em; }
}
/* the widest tables scroll inside their own box on any screen, so the page never scrolls sideways */
#oaTable, #rsBox, #excRest, #valTable, #userList, #devList, #logTable, #poTable, #draftList { overflow-x: auto; }

/* Steadfast delivery risk: one small line under the phone search on the order form */
.risk { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0 2px; font-size: .88em; }
.risk .rn { color: var(--text); }
.risk .ra { color: var(--orange-dark); font-weight: 500; }
.risk .c { color: var(--muted); }

/* ---------- phones: slim top bar + menu drawer (11 Nov 2026) ----------
   Replaces the earlier phone layout where the whole menu sat at the top of every screen. */
#mbar, #sideShade { display: none; }
@media (max-width: 640px) {
  #mbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; background: var(--slate-dark); padding: 8px 12px; }
  #mbar img { height: 34px; width: auto; background: #fff; border-radius: 6px; padding: 2px 6px; }
  #mbar button { background: transparent; color: #fff; font-size: 24px; line-height: 1; padding: 6px 10px; border-radius: 8px; }
  #mbar button:active { background: rgba(255, 255, 255, .12); }
  #mScanBtn { margin-left: auto; font-size: 22px !important; }
  /* the menu itself: the normal desktop sidebar, slid in from the left */
  #side { position: fixed; top: 0; left: 0; bottom: 0; width: 270px; max-width: 82vw; height: 100vh; z-index: 40;
          flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; padding: 18px 14px 16px; overflow-y: auto;
          transform: translateX(-105%); transition: transform .2s ease; box-shadow: 4px 0 18px rgba(0, 0, 0, .25); }
  body.menu-open #side { transform: none; }
  #side .brand { padding: 0 6px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 8px; display: block; }
  #side .brand img { width: 160px; padding: 4px 6px; }
  #side .appname { margin-top: 8px; font-size: 12px; }
  #side nav { flex-direction: column; flex-wrap: nowrap; width: 100%; gap: 2px; }
  #side .navbtn { width: 100%; padding: 12px 12px; font-size: 16px; }
  #side .navbtn.on { box-shadow: none; background: rgba(255, 255, 255, .1); border-radius: 8px; }
  #side .ic { display: inline-block; }
  .side-foot { margin-left: 0; margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .1); padding: 12px 6px 0; flex-direction: column; align-items: flex-start; gap: 6px; }
  .side-foot .status { display: block; }
  #sideShade { display: block; position: fixed; inset: 0; background: rgba(15, 20, 28, .45); z-index: 30; }
  #sideShade.hidden { display: none; }
  body.menu-open { overflow: hidden; }
}
/* camera scan button next to the product search, and the scanner window */
#searchForm { display: flex; gap: 8px; align-items: stretch; }
#searchForm input { flex: 1; min-width: 0; }
.cam-btn { white-space: nowrap; }
#scanner { position: fixed; inset: 0; z-index: 60; background: rgba(10, 14, 20, .88); display: flex; align-items: center; justify-content: center; padding: 16px; }
#scanner.hidden { display: none; }
.sc-box { position: relative; width: min(520px, 100%); text-align: center; color: #fff; }
.sc-box video { width: 100%; max-height: 70vh; border-radius: 12px; background: #000; object-fit: cover; }
.sc-aim { position: absolute; left: 12%; right: 12%; top: 30%; height: 22%; border: 2px solid var(--orange); border-radius: 10px; pointer-events: none; }
.sc-box p { margin: 12px 0; }
/* before login the phone bar shows only the logo */
body:not(.in) #mScanBtn, body:not(.in) #menuBtn { visibility: hidden; }
@media (max-width: 640px) {
  .cam-txt { display: none; }                       /* the camera button is just the icon on a phone */
  #searchForm .cam-btn { padding: 0 14px; font-size: 20px; }
  #searchForm button[type=submit] { padding: 0 14px; }
}

/* Exceptions > Negative stock: product names open the product */
#negWrap .neg-open { color: var(--green-dark); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-align: left; padding: 0; }
#negWrap .neg-open:hover { color: var(--orange-dark); }

/* banner when this server may not write to Odoo */
.writes-off { background: var(--warn-bg); color: var(--orange-dark); border-bottom: 1px solid var(--line); padding: 8px 16px; font-size: .92em; font-weight: 500; }

/* product page: Delete product sits at the end of the row and looks like a destructive action */
button.secondary.danger { color: #8E2B22; border-color: #F1C9C4; background: #FBE9E7; margin-left: auto; }
button.secondary.danger:hover { background: #C0392B; color: #fff; border-color: #C0392B; }

/* product page: sortable variation headings */
#variants th.vsort { cursor: pointer; user-select: none; white-space: nowrap; }
#variants th.vsort:hover { color: var(--text); }
#variants th.vsort.asc::after { content: " ▲"; font-size: .8em; }
#variants th.vsort.desc::after { content: " ▼"; font-size: .8em; }

/* Products page: cards in a grid (the name and the stock sit close together), numbers, last counted, pages */
#startLists .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
#startLists .cards .card { margin: 0; }
.card .sn { min-width: 26px; text-align: right; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.card .lc { display: inline-block; font-size: 12px; font-weight: 600; color: #3F6212; background: #ECF5DC; border: 1px solid #CFE3AE;
            border-radius: 999px; padding: 2px 9px; margin-top: 5px; }
.card .lc::before { content: "✓ "; }
.card .lc.never { color: #8A5A12; background: #FFF4E0; border-color: #F5D9A8; font-weight: 500; }
.card .lc.never::before { content: ""; }
#allBox { margin-top: 18px; }
.allhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.allhead h2 { margin: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0 8px; color: var(--muted); }
@media (max-width: 640px) { #startLists .cards { grid-template-columns: 1fr; } }
.card .lc { white-space: nowrap; }

/* Products page cards (12 Nov): the stock column never gets squeezed or cut off; the name and the pill wrap instead.
   Cards are at least 360px wide on a computer, one per row on a phone, where the card is tightened a little. */
/* never more than 4 across (each card at least a quarter of the row), at least 210px wide, so a 1280px laptop shows 4 */
#startLists .cards { grid-template-columns: repeat(auto-fill, minmax(max(min(210px, 100%), calc((100% - 30px) / 4)), 1fr)); }
#startLists .card { align-items: center; }
#startLists .card .lead { flex: 1 1 auto; min-width: 0; }
#startLists .card .lead > div:last-child { min-width: 0; }
#startLists .card .n { overflow-wrap: anywhere; line-height: 1.25; }
#startLists .card .s { flex: none; min-width: 64px; }
#startLists .card .lc { white-space: normal; max-width: 100%; }
@media (max-width: 640px) {
  #startLists .card { padding: 12px; gap: 8px; }
  #startLists .card .lead { gap: 8px; }
  #startLists .card .n { font-size: 16px; }
  #startLists .card .thumb { width: 38px; height: 38px; }
  #startLists .card .sn { min-width: 18px; font-size: 12px; }
  .allhead label { width: 100%; }
  .allhead select { width: 100%; }
}

/* grid cards: an empty photo box is left out, which leaves room for the name; a real photo still shows */
#startLists .cards .card div.thumb { display: none; }
#startLists .cards .card { padding: 12px 14px; }
#startLists .cards .card .n { font-size: 16px; }
#startLists .cards .card .lc { font-size: 11.5px; padding: 1px 8px; }
#startLists .card .s { min-width: 56px; }
/* search results get the same pill */
#results .card .lc { font-size: 11.5px; padding: 1px 8px; }
/* product page: the same pill, a little bigger, under the category line */
#pCounted .lc { display: inline-block; font-weight: 600; color: #3F6212; background: #ECF5DC; border: 1px solid #CFE3AE; border-radius: 999px; }
#pCounted .lc::before { content: "✓ "; }
#pCounted .lc.never { color: #8A5A12; background: #FFF4E0; border-color: #F5D9A8; font-weight: 500; }
#pCounted .lc.never::before { content: ""; }
#pCounted .lc.big { font-size: 14px; padding: 4px 12px; margin: 0; }
/* the Last counted pill and the Pay after sale pill sit on one line under the product name */
.pbadges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 4px; }
.pas-pill { font-size: 14px; padding: 4px 12px; border-radius: 999px; background: #fff; color: #2C4A8A; border: 1px dashed #A9BBE0; font-weight: 500; cursor: pointer; }
.pas-pill:hover { background: #EEF3FF; }
/* on: filled navy with gold, so it never looks like the green or orange count pills */
.pas-pill.on { background: #1E2A44; color: #F1DC9A; border: 1px solid #1E2A44; font-weight: 600; }
.pas-pill.on::before { content: "● "; color: #C8A84B; }
.pas-pill.on:hover { background: #2A3A5C; }
/* Pay after sale pop-up: stacked fields, the new-supplier box as a two-column grid */
.pas-form label { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: 10px 0; font-size: 13px; color: #6B7280; }
.pas-form input, .pas-form select, .pas-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; color: #1F2937; }
.pas-form textarea { padding: 8px 10px; border: 1px solid #D1D5DB; border-radius: 8px; resize: vertical; }
.pas-new { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 10px; padding: 4px 14px; margin: 8px 0; }
.pas-new.hidden { display: none; }
.supcell { display: flex; flex-direction: column; }
.supcell > label:first-child { width: 100%; }
body.is-mgr label.pas-chk { display: flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 13px; color: #2C4A8A; }
.pas-new label { margin: 6px 0; }
.pas-new label.wide { grid-column: 1 / -1; }
.pas-new-h { grid-column: 1 / -1; font-weight: 600; font-size: 13px; color: #374151; margin-top: 8px; }
@media (max-width: 600px) { .pas-new { grid-template-columns: 1fr; } }

/* grid cards on a computer (stock strip): the name gets the whole width; stock and price sit in a strip at the bottom */
@media (min-width: 641px) {
  #startLists .cards .card { flex-direction: column; align-items: stretch; gap: 8px; }
  #startLists .cards .card .lead { align-items: flex-start; }
  #startLists .cards .card .s { display: flex; align-items: baseline; gap: 6px; text-align: left; min-width: 0; margin-top: auto;
                                border-top: 1px solid var(--line); padding-top: 8px; }
  #startLists .cards .card .s br { display: none; }
  #startLists .cards .card .s b { display: inline; font-size: 19px; }
  #startLists .cards .card .s .pr { margin-left: auto; color: var(--text); font-weight: 500; }
  #startLists .cards .card .lc { white-space: nowrap; }
  #startLists .cards .card .sn { padding-top: 2px; }
}

/* All products filters: category and counted side by side, stacked on a phone */
.allf { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .allf { width: 100%; } .allf label { width: 100%; } .allf select { width: 100%; } }

/* Manager-only parts (cost) stay hidden for Executives, whatever layout rule applies to them */
body:not(.is-mgr) .mgr { display: none !important; }

/* the variation table on a phone (13 Nov): the same columns as on a computer, only tighter. Headings wrap onto
   two lines, cells and boxes are narrower. A table wider than the screen scrolls inside its own box. */
@media (max-width: 640px) {
  #variants th, #variants td { padding: 6px 3px; }
  #variants th { font-size: 9.5px; letter-spacing: 0; line-height: 1.15; white-space: normal; vertical-align: bottom; word-break: normal; }
  #variants th.vsort { white-space: normal; }
  #variants td.in { padding: 3px 2px; }
  #variants input.qty { width: 40px; padding: 5px 2px; font-size: 16px; }
  #variants input[data-f="price"], #variants input[data-f="cost"] { width: 52px; font-size: 15px; }
  #variants td:first-child, #variants th:first-child { padding-left: 8px; }
  #variants td.odoo { font-size: 14px; }
  #variants .pl { padding: 0; font-size: 12px; }
  #product .row { flex-wrap: wrap; }
  #product .row label { flex: 1 1 140px; min-width: 0; }
  #product .row input { width: 100%; }
}

/* Approvals: a request at a glance (13 Nov) */
.rq-box { background: #F7F9F4; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 8px 0 10px; }
.rq-sum { font-size: 15.5px; line-height: 1.4; }
.rq-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.rq-facts b { color: var(--text); font-weight: 600; margin-right: 2px; }
table.rq { margin-top: 10px; box-shadow: none; border: 1px solid var(--line); font-size: 14px; width: auto; min-width: min(100%, 420px); }
table.rq th { font-size: 11px; padding: 6px 10px; background: #EEF1EA; }
table.rq td { padding: 6px 10px; }
.rq-up { color: var(--ok); font-weight: 600; }
.rq-down { color: var(--neg); font-weight: 600; }
tr.rq-miss td { background: #FFF4E0; }
.rq-warn { margin-top: 10px; font-size: 13px; color: #8A5A12; background: #FFF4E0; border: 1px solid #F5D9A8; border-radius: 8px; padding: 6px 10px; }
@media (max-width: 640px) {
  table.rq { width: 100%; min-width: 0; }
  table.rq th, table.rq td { padding: 5px 4px; }
  table.rq { font-size: 13px; }
  table.rq th { font-size: 10px; letter-spacing: 0; }
  .rq-box { padding: 10px 8px; }
  .draft { padding: 12px 10px; }
  table.rq th:nth-child(3), table.rq td:nth-child(3) { display: table-cell; }   /* the general phone rule hides column 3 of tables */
}

/* the barcode on a phone: the third column is hidden on phones, so it shows again as the last column (13 Nov) */
#variants .bcm { display: none; }
@media (max-width: 640px) { #variants th.bcm, #variants td.bcm { display: table-cell; font-size: 12px; white-space: nowrap; } }
.rq-tot-h { margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
table.rq.rq-tot { margin-top: 4px; }
table.rq.rq-tot tfoot td { background: #EEF1EA; }

/* Add size or colour: a typed size or colour */
.av-other { gap: 8px; margin: 8px 0 4px; flex-wrap: nowrap; }
.av-other input { flex: 1; min-width: 0; }

/* product page: a count waiting for a Manager */
.waiting { margin-top: 8px; display: inline-block; background: #FFF4E0; border: 1px solid #F5D9A8; color: #6B4510; border-radius: 10px; padding: 6px 12px; font-size: 14px; }
/* All orders: the Invoice button */
button.act.oa-inv { background: #F2F5FA; color: var(--slate); border-color: #D8DFEA; }
button.act.oa-inv:hover { background: var(--slate); color: #fff; border-color: var(--slate); }

body.is-mgr .exec-only { display: none; }

/* Pay after sale mark on the product page */
.pas { display: inline-block; margin: 6px 0; padding: 4px 10px; border-radius: 6px; background: #EEF3FF; color: #2C4A8A; font-size: 13px; }

/* ---------- POS (the counter) ----------
   Its own full screen with its own colours (navy and gold), so nobody mistakes it for the back office.
   body.pos-mode hides Basecamp's menu. Two views: .pos-start (session screen) and #posMain (selling screen).
   On the selling screen the page itself never scrolls: the ticket lines and the product shelf scroll inside their panels. */
body.pos-mode { grid-template-columns: 1fr; background: #EEF1F7; }
body.pos-mode #side, body.pos-mode #sideShade, body.pos-mode header { display: none; }
body.pos-mode main { padding: 0; }
#pos { --pn: #1E2A44; --pn2: #2A3A5E; --pg: #C8A84B; --pg2: #F1DC9A; --pgo: #17A34A; }
#pos button { transition: transform .06s ease, background .12s ease, box-shadow .12s ease; }
#pos button:active:not(:disabled) { transform: scale(.97); }

/* 1. session screen */
.pos-start { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: radial-gradient(1100px 620px at 12% 0%, #3A5090 0%, #1E2A44 52%, #121A2E 100%); }
.ps-wrap { display: grid; grid-template-columns: minmax(280px, 420px) minmax(340px, 520px); gap: 44px; align-items: center; width: min(1020px, 100%); }
.ps-hero { color: #fff; }
.ps-hero img { height: 54px; background: #fff; border-radius: 12px; padding: 8px 12px; }
.ps-hero h1 { font-size: 38px; line-height: 1.1; margin: 22px 0 6px; letter-spacing: -.01em; }
.ps-hero p { margin: 0 0 22px; color: #C9D2E6; font-size: 16px; }
.ps-menu { display: flex; flex-direction: column; gap: 8px; }
.ps-menu button { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #fff; text-align: left; padding: 12px 16px; border-radius: 12px; display: flex; flex-direction: column; gap: 1px; }
.ps-menu button:hover { background: rgba(255, 255, 255, .14); border-color: var(--pg); }
.ps-menu b { font-size: 15.5px; } .ps-menu span { font-size: 13px; font-weight: 400; color: #B9C3DA; }
.ps-card { background: #fff; border-radius: 22px; padding: 30px 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.ps-card h2 { margin: 0 0 12px; font-size: 18px; color: var(--pn); }
.ps-counters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.ps-counter { background: #F3F5FA; color: var(--pn); border: 2px solid transparent; border-radius: 12px; padding: 12px 18px; text-align: left; font-size: 16px; flex: 1; min-width: 130px; }
.ps-counter span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.ps-counter:hover { background: #E8ECF5; }
.ps-counter.on { background: #fff; border-color: var(--pg); box-shadow: 0 0 0 4px rgba(200, 168, 75, .2); }
.ps-state { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.ps-state.on { background: #DDF3E4; color: #1B7A3E; } .ps-state.off { background: #FDECC8; color: #8A5A00; }
.ps-sub { color: var(--slate); margin: 10px 0 14px; }
.ps-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.ps-nums div { background: #F3F5FA; border-radius: 12px; padding: 14px 16px; }
.ps-nums b { display: block; font-size: 22px; color: var(--pn); } .ps-nums span { font-size: 12.5px; color: var(--muted); }
.ps-cash { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--pn); margin-bottom: 16px; }
.ps-cash input { font-size: 32px; font-weight: 800; padding: 12px 16px; width: 100%; color: var(--pn); }
.ps-go { width: 100%; font-size: 20px; padding: 19px; border-radius: 14px; background: linear-gradient(180deg, #D9B95A, #C8A84B); color: var(--pn); box-shadow: 0 8px 22px rgba(200, 168, 75, .45); }
.ps-go:hover { background: linear-gradient(180deg, #CFAE4E, #B8983B); }
@media (max-width: 900px) { .ps-wrap { grid-template-columns: 1fr; gap: 22px; } .pos-start { align-items: flex-start; } }

/* 2. selling screen: top bar */
#posMain { height: 100vh; display: flex; flex-direction: column; }
.pos-bar { display: flex; align-items: center; gap: 14px; background: var(--pn); color: #fff; padding: 9px 16px; flex-wrap: wrap; flex: none; }
.pos-brand { display: flex; align-items: center; gap: 10px; }
.pb-logo { background: var(--pg); color: var(--pn); font-weight: 800; letter-spacing: .08em; padding: 5px 11px; border-radius: 8px; }
.pb-where { font-weight: 600; }
.pos-reg { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pos-reg.on { background: rgba(23, 163, 74, .22); color: #8FE3AC; border: 1px solid rgba(143, 227, 172, .35); }
.pos-reg.off { background: #B4302A; color: #fff; }
.pos-tabs { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.pos-tab { background: var(--pn2); color: #D8DEEC; padding: 8px 14px; font-size: 14px; }
.pos-tab:hover { background: #36497A; }
.pos-tab.on { background: #fff; color: var(--pn); }
.pos-tab .c { background: var(--pg); color: var(--pn); border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.pos-tab.add { background: transparent; border: 1px dashed #5568A0; color: #C9D2E6; }
.pos-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pos-tools button { background: var(--pn2); color: #fff; padding: 8px 12px; font-size: 14px; }
.pos-tools button:hover { background: #36497A; }
.pos-tools .pb-close { background: var(--pg); color: var(--pn); }
.pos-tools .pb-close:hover { background: #B8983B; }
.pos-tools .pb-exit { background: transparent; border: 1px solid #4A5B87; }
.pb-clock { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; color: var(--pg2); margin-left: 6px; min-width: 44px; text-align: right; }

/* the two panels */
.pos-body { flex: 1; min-height: 0; display: grid; grid-template-columns: clamp(460px, 40vw, 640px) minmax(0, 1fr); }
.pos-ticket { background: #fff; border-right: 1px solid #D9DFEC; display: flex; flex-direction: column; min-height: 0; padding: 18px 22px 20px; gap: 12px; z-index: 1; }
.pos-shelf { min-height: 0; overflow: auto; padding: 16px 20px 28px; }
.pos-shelf input[type=search] { width: 100%; font-size: 18px; padding: 14px 18px; border-radius: 14px; border: 1px solid #D9DFEC; box-shadow: 0 2px 10px rgba(30, 42, 68, .06); position: sticky; top: 0; z-index: 2; }
@media (max-width: 1000px) { #posMain { height: auto; } .pos-body { grid-template-columns: 1fr; } .pos-ticket { border-right: 0; } }

/* products: plain white cards, one accent colour. The name is what the cashier reads, so it gets the room. */
.pos-cats { display: flex; gap: 7px; flex-wrap: wrap; margin: 14px 0; }
.pos-chip { background: #fff; color: var(--pn); border: 1px solid #D9DFEC; border-radius: 999px; padding: 8px 17px; font-size: 14.5px; font-weight: 600; }
.pos-chip:hover { background: #F3F5FA; }
.pos-chip.on { background: var(--pn); border-color: var(--pn); color: #fff; }
.pos-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pos-tile { background: #fff; color: var(--text); border: 1px solid #E1E6F0; border-radius: 14px; padding: 14px 14px 12px; text-align: left; display: flex; flex-direction: column; gap: 10px; min-height: 104px; font-weight: 400; }
.pos-tile:hover { background: #fff; border-color: var(--pn); box-shadow: 0 6px 18px rgba(30, 42, 68, .12); }
.pos-tile .pn { font-weight: 600; font-size: 15px; line-height: 1.3; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.tile-foot b { font-size: 16px; color: var(--pn); }
.pos-tile .ps { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pos-tile.out { background: #F7F8FB; } .pos-tile.out .pn { color: var(--muted); } .pos-tile.out .ps { color: var(--neg); }
.pos-more, .pos-none { grid-column: 1 / -1; color: var(--muted); }
.pos-vars { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.pos-var { background: #fff; color: var(--text); border: 1px solid var(--line); padding: 10px 12px; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-weight: 600; border-radius: 12px; }
.pos-var:hover { background: #F3F5FA; border-color: var(--pn); }
.pos-var .pv { font-weight: 400; color: var(--slate); grid-column: 1; }
.pos-var .ps { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 15px; font-weight: 700; color: var(--ok); }
.pos-var.out { opacity: .55; } .pos-var.out .ps { color: var(--neg); }

/* ticket: customer */
.pos-custbox { display: flex; flex-direction: column; gap: 8px; flex: none; }
.pos-custfind input { width: 100%; font-size: 16px; padding: 12px 14px; border-radius: 12px; background: #F6F8FC; }
.pos-cust { display: flex; align-items: center; gap: 11px; background: #F6F8FC; border-radius: 12px; padding: 9px 12px; }
.pc-av { width: 38px; height: 38px; border-radius: 50%; background: var(--pn); color: var(--pg2); font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.pc-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pc-who span { font-size: 13px; color: var(--muted); }
.pos-pill { display: inline-block; background: var(--pn); color: var(--pg2); border-radius: 999px; font-size: 11.5px; font-weight: 600; padding: 1px 8px; }
/* the matches drop down over the ticket, so the sale underneath does not jump while the cashier types */
.pos-custfind { position: relative; }
.pos-custlist { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; display: flex; flex-direction: column; gap: 5px; max-height: 420px; overflow: auto; background: #fff; border: 1px solid #D9DFEC; border-radius: 14px; padding: 8px; box-shadow: 0 18px 40px rgba(30, 42, 68, .18); }
.pos-custlist:empty { display: none; }
.pos-cr { background: #fff; color: var(--text); border: 1px solid var(--line); text-align: left; padding: 11px 13px; font-weight: 400; font-size: 15px; }
.pos-cr:hover { background: #F3F5FA; border-color: var(--pn); }
.pos-cr.new { border-style: dashed; color: var(--muted); } .pos-cr.new b { color: var(--pn); }
.pos-form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.pos-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; }
.pos-form input, .pos-form select { font-size: 17px; padding: 12px 14px; width: 100%; }
.pos-seller { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pos-seller select { padding: 6px 9px; font-size: 14px; flex: 1; }

/* ticket: lines */
.pos-lines { flex: 1; min-height: 90px; overflow: auto; display: flex; flex-direction: column; margin: 0 -6px; padding: 0 6px; }
.pt-head { display: flex; align-items: baseline; gap: 8px; padding: 4px 0 6px; border-bottom: 2px solid var(--pn); position: sticky; top: 0; background: #fff; z-index: 1; }
.pt-head b { font-size: 15px; color: var(--pn); letter-spacing: .01em; } .pt-head span { flex: 1; font-size: 13px; color: var(--muted); }
.tl { border-bottom: 1px solid #EDF0F6; padding: 8px 0; }
.tl.open { background: #F6F8FC; margin: 0 -6px; padding: 8px 6px; border-radius: 10px; border-bottom-color: transparent; }
.tl.flash { animation: posFlash .7s ease; }
@keyframes posFlash { from { background: #FFF3C4; } to { background: transparent; } }
.tl-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.tl-qty { display: inline-flex; align-items: center; background: #EEF1F7; border-radius: 999px; }
.tl-qty button { background: transparent; color: var(--pn); padding: 3px 10px; font-size: 17px; border-radius: 999px; }
.tl-qty button:hover { background: #DDE3F0; }
.tl-qty b { min-width: 20px; text-align: center; font-size: 15px; }
.tl-name { background: none; color: var(--text); text-align: left; padding: 0; display: flex; flex-direction: column; gap: 1px; min-width: 0; font-weight: 400; }
.tl-name:hover { background: none; } .tl-name:hover b { text-decoration: underline; }
.tl-name b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-name span { font-size: 12.5px; color: var(--muted); } .tl-name em { font-style: normal; color: var(--pn); font-weight: 700; } .tl-name s { opacity: .7; }
.tl-total { font-weight: 700; font-size: 15px; min-width: 70px; text-align: right; font-variant-numeric: tabular-nums; }
.tl-edit { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; }
.tl-edit label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 2px; }
.tl-edit input { width: 64px; padding: 6px 8px; font-size: 14px; text-align: right; }
.tl-edit button { padding: 7px 10px; }
.pl-disc { display: inline-flex; }
.pl-disc input { border-radius: 8px 0 0 8px; }
.pl-disc select { padding: 6px 4px; font-size: 14px; border-radius: 0 8px 8px 0; border-left: 0; }
.pos-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); text-align: center; padding: 24px 0; margin: 0; }
.pos-empty b { color: var(--pn); font-size: 16px; } .pe-art { font-size: 44px; opacity: .85; }
.pos-warn { background: var(--warn-bg); color: #8A5A00; border-radius: 8px; padding: 6px 10px; font-size: 13px; margin-top: 6px; }
.pos-ex { background: #F1F4FA; border: 1px solid #D5DDEC; border-radius: 10px; padding: 9px 11px; font-size: 14px; margin: 8px 0 2px; }
.pos-ex > div:first-child { display: flex; justify-content: space-between; align-items: center; }
.pos-exl { display: flex; justify-content: space-between; color: var(--slate); margin-top: 3px; }

/* ticket: totals and the charge button */
.pos-totals { flex: none; border-top: 1px dashed #C9D1E2; padding-top: 8px; }
.pos-totals .pt { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14.5px; padding: 2px 0; }
.pt-btn { background: #EEF1F7; color: var(--pn); font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; margin-left: 4px; }
.pt-btn:hover { background: #DDE3F0; }
.pt-disc { color: var(--pn); margin-right: 4px; }
.pos-totals .pt.big { font-size: 30px; font-weight: 800; color: var(--pn); margin-top: 4px; font-variant-numeric: tabular-nums; }
.pos-deliv { display: flex; gap: 16px; align-items: center; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.pos-deliv label { display: flex; align-items: center; gap: 5px; color: var(--text); }
.pos-stop { background: var(--warn-bg); color: #8A5A00; border-radius: 10px; padding: 8px 11px; font-size: 13.5px; margin-top: 8px; }
.pos-pay { flex: none; background: linear-gradient(180deg, #1DB954, #17A34A); color: #fff; font-size: 21px; font-weight: 600; padding: 18px; border-radius: 16px; width: 100%; box-shadow: 0 10px 24px rgba(23, 163, 74, .35); display: flex; align-items: center; justify-content: center; gap: 10px; }
.pos-pay:hover { background: linear-gradient(180deg, #19A84B, #128A3D); }
.pos-pay:disabled { background: #C5CCDA; box-shadow: none; opacity: 1; }
.pos-pay b { font-size: 24px; font-weight: 800; }
.pos-pay kbd { font: 600 12px/1 inherit; background: rgba(255, 255, 255, .22); border-radius: 6px; padding: 4px 7px; margin-left: 6px; }

/* payment pop-up */
.pay-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.pay-top span { color: var(--muted); } .pay-top b { font-size: 34px; font-weight: 800; color: #1E2A44; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.pay-methods button { padding: 18px 8px; font-size: 16px; border-radius: 12px; }
.pay-methods button.on { background: #1E2A44; color: #fff; border-color: #1E2A44; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 6px 0; font-weight: 600; }
.pay-row input { width: 190px; font-size: 22px; font-weight: 700; text-align: right; padding: 8px 12px; }
.pay-quick { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin: 0 0 8px; }
.pay-quick button { padding: 7px 14px; font-size: 14px; border-radius: 999px; }
.pay-info { font-size: 18px; margin: 10px 0 2px; min-height: 28px; }
.pay-info .neg, .tn.neg, td.neg { color: var(--neg); } .pay-info .ok { color: var(--ok); font-weight: 600; }
.pos-done { text-align: center; padding: 6px 0 2px; }
.pd-ok { width: 62px; height: 62px; border-radius: 50%; background: #DDF3E4; color: #1B7A3E; font-size: 34px; line-height: 62px; margin: 0 auto 8px; }
.pd-name { color: var(--muted); margin: 0 0 10px; }
.pd-change { background: #FBF7EA; border: 1px solid #EBDDAE; border-radius: 16px; padding: 14px; margin: 0 0 14px; display: flex; flex-direction: column; }
.pd-change span { color: #7A6420; font-size: 14px; } .pd-change b { font-size: 44px; font-weight: 800; color: #1E2A44; line-height: 1.1; }
.pd-change.none { background: #F3F5FA; border-color: #E1E6F0; } .pd-change.none b { font-size: 22px; }

/* register, sessions, team */
.pos-notes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0; }
.pos-notes label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); gap: 3px; }
.pos-notes input { width: 100%; padding: 6px 8px; font-size: 15px; }
.pos-rt .tile .tn { font-size: 24px; }
.pos-dl { margin: 12px 0; }
.pos-team { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.pos-chipx { background: #EEF1F7; color: #1E2A44; border-radius: 999px; padding: 6px 6px 6px 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.pos-chipx button { background: #fff; color: var(--neg); border-radius: 50%; width: 24px; height: 24px; padding: 0; line-height: 1; font-size: 16px; }
.po-row { cursor: pointer; }
.po-row:hover td { background: #F3F5FA; }
tr.off td { opacity: .55; }
a.btn { display: inline-block; font-size: 15px; font-weight: 600; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
a.btn.secondary { background: #fff; color: var(--slate); border: 1px solid var(--line); }
a.btn.secondary:hover { background: #F0F2EC; }

/* the X at the top right of every pop-up. It stays in view while a long pop-up scrolls. */
.mx { position: sticky; top: 0; float: right; z-index: 3; margin: -8px -10px 0 10px; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: #EEF1F7; color: var(--slate); font-size: 22px; line-height: 1; font-weight: 400; }
.mx:hover { background: #DDE3F0; color: var(--text); }
#modal[data-pos="1"] .mbtns { display: none; }      /* POS pop-ups that only show things close with the X */
.pos-test { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #B4302A; color: #fff; }
