/* SpiceRack Frisco Closing Tool — the final design (Nov 22, 2026).
   White background; thick grid lines (3px #3A3A3E); thick page border
   (6px near-black); dark blue heading bands (#1F3A6E, white bold);
   dark green section bars (#14532D, white bold, white-oval markers);
   calculated fields cream (#F7F1DC); totals dark red (#8F0B21, white
   bold, larger); primary buttons dark gold (#8C6D00, white bold);
   the date bar is light warm yellow (#FFF0A6).
   Admin pages use the compact sizes (they must fit one landscape phone
   screenshot); the employee entry page (body.entrypage) uses the larger
   touchscreen sizes from the v11 sample. */
:root{
  --red:#A50D26; --red-d:#8F0B21; --red-dd:#5E0715;
  --blue:#1F3A6E; --blue-l:#16305E; --blue-d:#12294F;
  --green:#14532D; --green-d:#0D3B1F;
  --ink:#000000; --body:#1B1B1E; --muted:#4A4A4F; --zero:#5F5F64;
  --line:#B7B7BD; --cream:#F7F1DC;
  --grid:#3A3A3E; --page:#26262A; --gold:#8C6D00; --gold-d:#6E5500; --gold-l:#C9A227; --yellow:#FFF0A6;
  color-scheme:light;
}
* { box-sizing:border-box; }
body { margin:0; font-family:-apple-system,'Segoe UI','Helvetica Neue',Arial,sans-serif; background:#FFFFFF; color:var(--body); overflow-x:hidden; }
.wrap { max-width:1240px; margin:0 auto; padding:0 0 10px; border:6px solid var(--page); }
a.toplink { color:#FFFFFF; }
/* ---------- LOCATION BANNER: the masthead at the very top of every
   page (login, entry, all admin tabs). The location name from
   config.php ('location_name') in large bold display lettering on a
   dark blue band — darker at the edges, brighter in the middle — with
   the city larger still in bright gold, gold rules flanking the name
   and a gold rule under the band. It is deliberately the biggest
   lettering on the page, so staff can tell at a glance which
   location's tool they are in. The Plano build flips only the config
   value to 'SPICERACK PLANO'. ---------- */
.locbanner { background:linear-gradient(90deg,var(--blue-d),var(--blue) 45%,var(--blue-l)); border-bottom:5px solid var(--gold-l); padding:13px 20px 11px; display:flex; align-items:center; justify-content:center; gap:26px; }
.locbanner .loc-rule { flex:0 1 130px; height:3px; background:var(--gold-l); }
.locbanner .loc-name { font-size:42px; font-weight:800; letter-spacing:3px; color:#FFFFFF; line-height:1.05; white-space:nowrap; }
.locbanner .loc-city { color:var(--gold-l); font-size:50px; letter-spacing:5px; }
body.entrypage .locbanner { padding:17px 20px 15px; }
body.entrypage .locbanner .loc-name { font-size:50px; }
body.entrypage .locbanner .loc-city { font-size:60px; }
/* ---------- header: DARK BLUE band, white letters ---------- */
.topbar { background:linear-gradient(90deg,var(--blue),var(--blue-l)); color:#FFFFFF; padding:9px 30px 8px; display:flex; justify-content:space-between; align-items:flex-end; border-bottom:4px solid var(--blue-d); }
.brand { font-size:29px; font-weight:800; letter-spacing:.2px; } .brand .gold { letter-spacing:4px; font-size:27px; }
.brandsub { font-size:17px; font-weight:300; margin-top:0; }
.topmeta { text-align:right; line-height:1.5; }
.topmeta .tm1 { font-size:11px; font-weight:700; letter-spacing:2px; }
.topmeta .tm2 { font-size:13px; }
body.entrypage .wrap { padding:0 0 34px; }
body.entrypage .topbar { padding:20px 30px 18px; }
body.entrypage .brand { font-size:36px; } body.entrypage .brand .gold { font-size:33px; }
body.entrypage .brandsub { font-size:20px; margin-top:2px; }
body.entrypage .topmeta .tm1 { font-size:13px; }
body.entrypage .topmeta .tm2 { font-size:15px; }
/* ---------- admin tab bar: active tab DARK GOLD, white bold ---------- */
.tabbar { display:flex; gap:12px; margin:8px 20px 0; align-items:center; flex-wrap:wrap; }
.tabbtn { font-size:15px; font-weight:800; letter-spacing:1px; padding:7px 22px; border-radius:12px; border:3px solid var(--blue); background:#FFFFFF; color:var(--blue); cursor:pointer; text-decoration:none; display:inline-block; }
.tabbtn.active { background:var(--gold); border-color:var(--gold-d); color:#FFFFFF; }
.tabhint { margin-left:auto; font-size:12px; color:var(--muted); }
/* ---------- section card & DARK GREEN bar ---------- */
section { background:#FFFFFF; margin:10px 20px 0; border:4px solid var(--blue); border-radius:18px; box-shadow:0 6px 14px rgba(0,0,0,.08); padding:12px 16px 14px; }
body.entrypage section { margin:24px 20px 0; padding:26px 28px 28px; }
.stephead { display:flex; align-items:center; gap:18px; background:var(--green); border:3px solid var(--green-d); border-radius:12px; padding:6px 14px; margin-bottom:16px; }
body.entrypage .stephead { padding:12px 16px; flex-wrap:wrap; }
.steppill { background:#FFFFFF; color:#000000; font-size:13px; font-weight:800; letter-spacing:2px; padding:8px 18px; border-radius:999px; }
h2 { margin:0; font-size:21px; font-weight:800; color:#FFFFFF; }
body.entrypage h2 { font-size:25px; }
.sub { font-size:14px; color:var(--muted); line-height:1.55; margin:0 0 16px; }
body.entrypage .sub { margin:10px 0 16px; max-width:1020px; }
.sub b { color:#000; }
.footnote { font-size:13.5px; color:var(--muted); margin:12px 2px 0; line-height:1.55; }
/* ---------- messages ---------- */
.msg { background:#E2F2D8; border:3px solid var(--green); color:#000; font-size:16px; font-weight:700; border-radius:12px; padding:12px 18px; margin:16px 20px 0; }
.err { background:#FBE3E3; border:3px solid var(--red); color:#000; font-size:16px; font-weight:700; border-radius:12px; padding:12px 18px; margin:16px 20px 0; }
/* ---------- YELLOW DATE BAR ---------- */
.datebar { background:var(--yellow); border:4px solid var(--blue); border-bottom:6px solid var(--blue-d); border-radius:18px; box-shadow:0 6px 14px rgba(0,0,0,.08); padding:10px 20px 12px; margin:0 0 10px; }
body.entrypage .datebar { margin:20px 20px 0; padding:18px 28px 20px; }
.db-top { display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; }
.db-last { font-size:13px; color:var(--muted); }
body.entrypage .db-last { font-size:15px; }
.db-last b { color:#000; }
.db-pill { font-size:12px; font-weight:800; letter-spacing:1px; color:#FFFFFF; padding:6px 16px; border-radius:999px; white-space:nowrap; }
body.entrypage .db-pill { font-size:14px; padding:10px 20px; }
.db-pill.entered { background:var(--green); }
.db-pill.new { background:var(--gold); }
.db-big { font-size:30px; font-weight:800; color:#000; text-align:center; margin:5px 0 10px; letter-spacing:.2px; }
body.entrypage .db-big { font-size:34px; margin:12px 0 16px; }
.db-controls { display:flex; align-items:flex-end; gap:14px; flex-wrap:wrap; }
.dbtn { background:#FFFFFF; color:#000; border:3px solid var(--grid); border-radius:12px; font-size:15px; font-weight:800; padding:0 16px; height:42px; cursor:pointer; }
body.entrypage .dbtn { font-size:17px; padding:0 22px; height:54px; }
.dbtn:active { background:var(--cream); }
.db-field { display:inline-flex; align-items:center; gap:10px; background:#FFFFFF; border:3px solid var(--grid); border-radius:12px; height:42px; padding:0 14px; font-size:16px; font-weight:700; color:#000; cursor:pointer; }
body.entrypage .db-field { height:54px; padding:0 18px; font-size:18px; }
input.db-field { font-family:inherit; }
.db-caret { font-size:15px; }
.db-sel { display:flex; flex-direction:column; gap:5px; font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--muted); }
.db-sel select { height:42px; font-size:15px; font-weight:700; color:#000; background:#FFFFFF; border:3px solid var(--grid); border-radius:12px; padding:0 12px; cursor:pointer; }
body.entrypage .db-sel select { height:54px; font-size:17px; }
.db-fieldwrap { position:relative; }
/* calendar dropdown popup (employee date bar) */
.calpop { position:absolute; top:62px; left:0; z-index:50; width:344px; background:#FFFFFF; border:3px solid var(--grid); border-radius:14px; box-shadow:0 14px 30px rgba(0,0,0,.25); padding:14px; }
.calpop-head { display:flex; gap:10px; margin-bottom:10px; }
.calpop-head select { flex:1; height:42px; font-size:15px; font-weight:700; border:2px solid var(--grid); border-radius:9px; background:#FFFFFF; color:#000; padding:0 8px; cursor:pointer; }
table.calgrid { border:none; border-radius:0; overflow:visible; }
.calgrid th { background:none; color:var(--muted); border:none; text-align:center; font-size:12px; letter-spacing:0; text-transform:none; padding:4px 0; }
.calgrid td { border:none; text-align:center; font-size:16px; padding:1px 0; }
.calgrid tr:nth-child(even) td { background:transparent; }
.calgrid td button { width:40px; height:40px; border-radius:10px; border:2px solid transparent; background:none; font-size:16px; font-weight:600; cursor:pointer; color:#000; font-family:inherit; }
.calgrid td button:hover { border-color:var(--grid); }
.calgrid td button.sel { background:var(--red-d); color:#FFFFFF; font-weight:800; }
.calgrid td button.today { border-color:var(--red-d); }
.calgrid td button.othermonth { color:var(--zero); font-weight:400; }
/* date-range row (admin MTD / YTD) */
.db-range { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:10px; border-top:3px solid rgba(31,58,110,.25); padding-top:10px; }
.db-range .fromto { font-size:13px; font-weight:800; letter-spacing:1px; text-transform:uppercase; color:#000; }
.db-range .arrow { font-size:18px; font-weight:800; color:#000; }
.chip { background:#FFFFFF; color:#000; border:3px solid var(--grid); border-radius:999px; font-size:13px; font-weight:700; padding:8px 16px; cursor:pointer; }
.chip.on { background:var(--blue); border-color:var(--blue-d); color:#FFFFFF; font-weight:800; }
.applybtn { background:var(--gold); color:#FFFFFF; font-size:16px; font-weight:800; border:none; border-bottom:4px solid var(--gold-d); border-radius:12px; padding:10px 26px; cursor:pointer; }
/* view switcher (admin reports) */
.seg { display:inline-flex; border:3px solid var(--grid); border-radius:12px; overflow:hidden; }
.seg a { font-size:14px; font-weight:700; padding:6px 20px; background:#FFFFFF; color:#000; border-right:3px solid var(--grid); text-decoration:none; }
.seg a:last-child { border-right:none; }
.seg a.on { background:var(--blue); color:#FFFFFF; font-weight:800; }
.ctlrow { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:15px; }
.printrow { text-align:left; margin:0 0 10px; }
.printbtn { display:inline-block; background:#0F766E; color:#FFFFFF; font-size:16px; font-weight:800; border-bottom:4px solid #115E59; border-radius:12px; padding:10px 26px; cursor:pointer; text-decoration:none; }
.ctlrow label { font-size:13px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--muted); display:flex; align-items:center; gap:8px; }
.ctlrow input[type="date"], .ctlrow select { height:44px; font-size:16px; font-weight:600; padding:4px 10px; border:3px solid var(--grid); border-radius:10px; background:#FFFFFF; color:#000; }
/* ---------- tables: DARK BLUE header row, thick grid ---------- */
table { border-collapse:separate; border-spacing:0; width:100%; border:3px solid var(--grid); border-radius:12px; overflow:hidden; }
th { font-size:13px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:#FFFFFF; background:var(--blue); text-align:right; padding:6px 8px; white-space:nowrap; border-right:3px solid var(--blue-d); border-bottom:3px solid var(--grid); }
body.entrypage th { font-size:12px; padding:11px 8px; }
th:last-child { border-right:none; }
th.dept, td.dept { text-align:left; }
th.left, td.left { text-align:left; }
th.acthead { text-align:center; }
td { padding:5px 8px; font-size:20px; text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; border-bottom:3px solid var(--grid); border-right:3px solid var(--grid); vertical-align:middle; color:#000; }
body.entrypage td { padding:7px 6px; font-size:17px; }
td:last-child { border-right:none; }
table tr:last-child > td { border-bottom:none; }
table tr:nth-child(even) td { background:#F4F4F5; }
td.dept { font-weight:700; }
td.zero { color:var(--zero); }
td.cd { background:var(--cream); font-weight:700; }
table tr:nth-child(even) td.cd { background:var(--cream); }
td.tot { background:var(--red-d); color:#FFFFFF; font-weight:800; font-size:25px; }
table tr:nth-child(even) td.tot { background:var(--red-d); }
table tr.totrow td { background:var(--red-d); color:#FFFFFF; font-weight:800; font-size:26px; border-bottom:none; padding:11px 8px; border-right:3px solid var(--red-dd); }
body.entrypage table tr.totrow td { font-size:22px; padding:14px 8px; }
table tr.totrow td:last-child { border-right:none; }
.dotmark { display:inline-block; width:11px; height:11px; border-radius:50%; margin-right:10px; vertical-align:baseline; }
/* ---------- report block boxes ---------- */
.blockbox { border:4px solid var(--blue); border-radius:18px; padding:16px 16px 14px; }
.blockbox + .blockbox { margin-top:14px; }
.blocktitle { display:flex; align-items:center; gap:10px; margin:0 0 11px; font-size:17px; font-weight:700; letter-spacing:2px; color:#FFFFFF; background:var(--blue); padding:6px 12px; border:3px solid var(--blue-d); border-radius:10px; }
body.entrypage .blocktitle { font-size:15px; padding:10px 14px; margin:22px 0 10px; }
body.entrypage .blocktitle.first { margin-top:2px; }
.blocktitle .rule { flex:1; height:2px; background:rgba(255,255,255,.35); }
.locktag { font-size:10px; font-weight:800; letter-spacing:1px; color:#FFFFFF; background:var(--red); border-radius:999px; padding:3px 9px; vertical-align:middle; }
.deliv { margin:0 0 20px; border:3px solid var(--grid); background:#FAFAFA; border-radius:14px; padding:8px 12px 10px; }
body.entrypage .deliv { margin:14px 0 0; padding:14px 18px 16px; }
.deliv-head { font-size:14px; font-weight:700; letter-spacing:2px; color:#FFFFFF; background:var(--blue); border:3px solid var(--blue-d); border-radius:10px; padding:6px 12px; margin-bottom:6px; }
body.entrypage .deliv-head { font-size:15px; padding:10px 14px; margin-bottom:12px; }
table.delivtab { margin-bottom:14px; }
table.delivtab td.plabel { text-align:left; font-weight:600; }
table.delivtab tr.dsub td { background:var(--red-d); color:#FFFFFF; font-weight:800; font-size:25px; padding:11px 8px; border-right:3px solid var(--red-dd); }
table.delivtab tr.dsub td:last-child { border-right:none; }
table.delivtab tr.dsub td.plabel { font-size:17px; letter-spacing:1px; }
table.totband { margin:14px 20px 0; width:calc(100% - 40px); }
/* ---------- report alignment: one shared grid, one scroller ----------
   Every report table (blocktab, delivtab, totband) uses the same
   9-column colgroup with table-layout:fixed, so columns and edges
   line up exactly across Grocery / Restaurant / Catering / TOTAL.
   The blocks sit in .reportscroll: wide screens show them full
   width; narrow screens scroll the whole report sideways as one
   aligned piece instead of each table bursting out of its card and
   stretching the page. */
.reportscroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.reportscroll > .blockbox { min-width:1020px; }
.reportscroll > table.totband { min-width:980px; }
table.blocktab, table.delivtab, table.totband { table-layout:fixed; }
table.totband tr.totrow td.lbl { text-align:left; letter-spacing:2px; }
/* ---------- embedded report (.prpt) ----------
   Scoped copies of the report block styles, so the report that
   dashboard.php and view.php embed inline (via print_report_html()
   in lib.php) renders identically for both logins.
   Every selector is prefixed with .prpt to keep them off the
   rest of the admin pages.
   Nov 23, 2026 — Plano palette + FLUID layout (owner-approved
   mockup): navy #00246C, indigo #363670, gold #FEBD11, teal
   #21C3C6. The report is width:100% with table-layout:fixed, so
   it fits the phone screen natively — no fixed design width, no
   transform scaling, no sideways scroll. Type is at the Plano
   scale: headers 14px, figures 18px, row labels 14px, grand
   row 20px. */
.prpt { width:100%; }
.prpt h3.blk { display:inline-block; font-size:12px; letter-spacing:2px; margin:10px 0 4px; color:#FFFFFF; background:#363670; padding:3px 12px; border-radius:4px; }
.prpt h3.blk.first { margin-top:0; }
.prpt .dphead { font-size:12.5px; font-weight:700; letter-spacing:2px; color:#fff; background:#21C3C6; padding:5px 8px; margin-bottom:4px; text-align:center; }
.prpt table { border-collapse:collapse; width:100%; table-layout:fixed; border:none; border-radius:0; overflow:visible; }
.prpt th { background:#363670; color:#fff; font-size:13px; letter-spacing:0; text-transform:uppercase; text-align:left; white-space:normal; padding:8px 6px; border:3px solid #26264D; }
.prpt table.rng td { font-size:15.5px; padding:8px 5px; }
.prpt table.rng td.tot { font-size:16.5px; }
.prpt table.rng tr.grandrow td { font-size:17px; padding:9px 5px; }
.prpt table.rng th { font-size:11.5px; padding:8px 5px; }
.prpt th.left, .prpt td.left { text-align:center; }
.prpt td { font-size:18px; font-weight:700; text-align:left; padding:9px 8px; border:3px solid #3F3F46; font-variant-numeric:tabular-nums; color:#26262A; }
.prpt td.zero { color:#8A8A90; }
.prpt td.cd { font-weight:700; }
.prpt table tr td { background:transparent; }
.prpt table tr td.tot { background:transparent; color:#26262A; font-weight:800; font-size:19px; }
.prpt table tr td.ptot { background:transparent; color:#B21428; }
.prpt table tr td.cd { background:transparent; }
/* NO alternating tint on the report tables (owner, Nov 23, 2026:
   "try to be consistent and update as others"): the main report
   table's ordinary rows are plain white like every other table
   in the tool — the mockup's pale odd-row tint is gone, in
   landscape and portrait alike. Only the gold row labels, the
   navy grand row and the red partner-total text carry colour. */
.prpt td.rowlab { background:#FEBD11; color:#00246C; font-weight:800; font-size:13px; letter-spacing:0; padding:9px 6px; line-height:1.15; overflow-wrap:break-word; }
.prpt table tr.grandrow td { background:#00246C; color:#fff; font-weight:800; font-size:20px; padding:10px 8px; }
.prpt table tr.grandrow td.rowlab { background:#00246C; color:#FEBD11; }
.prpt table tr.grandrow td.gtot { color:#FEBD11; }
.prpt tr.dsub td { background:#00246C; color:#fff; font-weight:800; font-size:16px; }
.prpt tr.dsub td.left { font-size:12.5px; letter-spacing:1px; }
.prpt .pbox { border:2px solid #363670; border-radius:10px; padding:10px 12px 12px; margin:0 0 12px; }
.prpt .pbox h3.blk { margin-top:0; }
.prpt .pboxin { border:2px solid #C9C9CE; border-radius:8px; padding:8px 10px 10px; margin:0 0 10px; background:#FFFFFF; }
.prpt .pboxin.below { margin-top:56px; }
.prpt table.totband { margin:4px 14px 0; width:calc(100% - 28px); }
.prpt table.totband td { background:#00246C; color:#fff; font-weight:800; font-size:18px; padding:8px 7px; }
.prpt table.totband td.lbl { text-align:center; letter-spacing:2px; }
.prpt table.rcpts { margin-top:6px; }
.prpt table.rcpts td, .prpt table.rcpts th { font-size:14px; }
.prpt table.rcpts tr.rtot td { font-weight:800; background:#00246C; color:#FFFFFF; }
.prpt table.rcpts tr.rtot td.left { color:#FEBD11; }
/* Receipt highlights in the DISPLAY table (owner, Nov 23, 2026):
   the same gold + red the entry screen gives inserted receipts —
   a non-zero money value sits in a gold box, and the per-receipt
   TOTAL is the dark-red pill. One renderer serves both logins
   (admin Receipts tab + employee Catering tickets tab), so both
   get the highlights. The totals row (rtot) stays navy. (The
   :nth-child twins date from when the report tables carried an
   alternating tint; the tint is gone, the twins are harmless.) */
.prpt table.rcpts tr td.hit,
.prpt table.rcpts tr:nth-child(odd):not(.grandrow) td.hit { background:#FEBD11; color:#000000; font-weight:800; }
.prpt table.rcpts tr td.totcol,
.prpt table.rcpts tr:nth-child(odd):not(.grandrow) td.totcol { background:var(--red-d); color:#FFFFFF; font-weight:800; }
/* Compact ribbon on the Reports date bars (owner, Nov 22, 2026):
   smaller buttons so the controls fit in one row and the saved
   space goes to the report below. Entry page keeps its big buttons. */
.datebar.compact { padding:12px 14px; }
.datebar.compact .db-controls { gap:6px; }
.datebar.compact .dbtn { font-size:13px; height:38px; padding:0 10px; border-width:2px; border-radius:10px; }
.datebar.compact .printbtn { font-size:13px; height:38px; padding:0 12px; border-bottom-width:3px; border-radius:10px; }
.datebar.compact .applybtn { font-size:13px; height:38px; padding:0 14px; border-bottom-width:3px; border-radius:10px; }
.datebar.compact .db-field { font-size:13px; height:38px; padding:0 8px; border-width:2px; border-radius:10px; }
.datebar.compact .db-sel select { font-size:13px; height:38px; padding:0 8px; }
.datebar.compact .db-sel span { display:none; }
.stephead a.printbtn { margin-left:auto; background:var(--gold); border-bottom-color:var(--gold-d); }
.datebar.compact .chip { font-size:12.5px; padding:6px 12px; }
.datebar.compact .db-range { margin-top:10px; padding-top:10px; gap:6px; }
section.repsheet { margin:10px 2px 0; padding:10px 4px 12px; }
/* ---------- entry page inputs & calculated cells ---------- */
input.num { width:100%; min-width:84px; height:48px; font-size:18px; font-weight:600; text-align:right; border:1px solid var(--line); border-radius:10px; padding:4px 10px; background:#FFFFFF; color:#000; font-family:inherit; }
input.num:focus { border-color:#000; outline:3px solid rgba(165,13,38,.45); }
input.num[readonly] { background:transparent; border-color:transparent; color:#3A3A3E; }
input.rcpt { min-width:108px; text-align:left; }
input.rcpt[readonly] { background:#EFEFF1; border:1px solid #D5D5DA; border-radius:8px; color:#000; padding-left:12px; }
td.calc { font-weight:700; }
td.calc span { display:block; border-radius:10px; padding:11px 10px; }
td.calc .totv, td.cdcalc span, td.delcalc span { background:var(--cream); box-shadow:inset 0 0 0 1px #DDD6C2; color:#000; }
td.rt span { background:#FDECEA; box-shadow:inset 0 0 0 1px #F0C6C2; color:#000; }
td.calc.totcol span { background:var(--red-d); color:#FFFFFF; font-weight:800; font-size:21px; box-shadow:none; }
table tr.locked td { background:var(--cream); color:#1B1B1E; }
td.actcell { text-align:center; }
.updbtn { background:#FFFFFF; color:#000; border:2px solid #6E6E73; border-radius:10px; font-size:14px; font-weight:700; padding:10px 13px; cursor:pointer; min-height:48px; }
.updbtn:active { background:var(--red); border-color:var(--red); color:#FFFFFF; }
.delbtn { background:#FFFFFF; color:#000; border:2px solid #C8102E; border-radius:10px; font-size:14px; font-weight:700; padding:10px 13px; cursor:pointer; min-height:48px; }
.delbtn:active { background:var(--red); color:#FFFFFF; }
.caption { font-size:14px; color:var(--muted); margin:14px 0 0; }
.addbtn { margin-top:16px; background:var(--gold); color:#FFFFFF; font-size:18px; font-weight:800; border:none; border-bottom:4px solid var(--gold-d); border-radius:12px; padding:15px 26px; cursor:pointer; }
.addbtn .plus { color:#FFFFFF; margin-right:8px; }
.deliv-fields { display:flex; gap:22px; flex-wrap:wrap; align-items:flex-end; }
.deliv-fields label { font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--muted); display:flex; flex-direction:column; gap:6px; }
.deliv-fields input.num { width:160px; min-width:120px; border:3px solid var(--grid); }
.deliv-total { font-size:15px; font-weight:700; color:#000; padding-bottom:12px; }
.deliv-total .dp-tot { background:var(--cream); border:3px solid var(--grid); border-radius:10px; padding:9px 14px; margin:0 4px; display:inline-block; min-width:110px; text-align:right; color:#000; font-weight:700; }
/* Clover-fed fields (owner, Nov 22, 2026): greyed and read-only — the
   combined card totals and the delivery-partner amounts arrive from
   Clover (the clover_feed table); staff type only the white boxes.
   These rules sit after input.num[readonly] and .deliv-fields
   input.num so the grey wins over both. */
input.num.fed { background:#E5E7EB; color:#374151; border:1px solid #9CA3AF; }
input.num.fed:focus { border-color:#9CA3AF; outline:none; }
.deliv-fields input.num.fed { border:3px solid #9CA3AF; }
.feednote { background:#FEF3C7; border:2px solid #D97706; color:#92400E; border-radius:10px; padding:10px 14px; font-size:14.5px; font-weight:700; margin:0 0 14px; }
#totaltab { margin-top:14px; }
#totaltab td.lbl { text-align:left; letter-spacing:2px; }
/* cash drawer + submit */
.cashhead { margin-bottom:18px; }
.flex { display:flex; gap:34px; flex-wrap:wrap; align-items:flex-start; }
.denom { max-width:520px; }
.denom td, .denom th { font-size:17px; }
.denom input.num { min-width:70px; height:46px; }
.denom td.amt span { display:block; background:var(--cream); box-shadow:inset 0 0 0 1px #DDD6C2; border-radius:10px; padding:10px; font-weight:700; color:#000; }
.submitbox { flex:1; min-width:340px; display:flex; align-items:center; justify-content:center; }
.submitbtn { width:360px; max-width:100%; height:80px; border-radius:999px; background:var(--gold); border:none; border-bottom:5px solid var(--gold-d); color:#FFFFFF; font-size:23px; font-weight:800; letter-spacing:1px; cursor:pointer; }
/* ---------- badges & text tables (Login IDs / Observations / Change Log) ---------- */
.badge { display:inline-block; padding:5px 14px; border-radius:999px; font-size:13px; font-weight:800; letter-spacing:1px; color:#FFFFFF; }
.badge.admin { background:var(--gold); } .badge.emp { background:var(--blue); } .badge.on { background:var(--green); }
.badge.off { background:var(--zero); } .badge.open { background:var(--red-d); } .badge.checked { background:var(--green); }
table.texttab td { text-align:left; font-size:17px; white-space:normal; }
table.texttab td.idcell { font-weight:800; white-space:nowrap; }
table.texttab td.when { white-space:nowrap; }
/* Login IDs (owner, Nov 23, 2026): in the landscape table the Last
   login value stacks on TWO lines — date over time — so the column
   stays narrow and the table no longer stretches past the right
   edge of its card; the freed width goes to Actions. The portrait
   card (<=700px block below) overrides these back to one line. */
table.texttab.userstab td.when .lld, table.texttab.userstab td.when .llt { display:block; }
table.texttab.userstab td.when .llsep { display:none; }
table.texttab td.fig { line-height:1.45; }
table.texttab td.status { text-align:center; }
table.texttab td.old { text-align:right; color:var(--muted); }
table.texttab td.new { text-align:right; font-weight:700; }
table.texttab td.who { font-weight:700; }
/* ---------- panels & forms ---------- */
.subpanel { border:3px solid var(--grid); border-radius:14px; padding:18px 20px 20px; margin-top:22px; background:#FAFAFA; }
.sp-head { font-size:15px; font-weight:700; letter-spacing:2px; color:#FFFFFF; background:var(--blue); border:3px solid var(--blue-d); border-radius:10px; padding:10px 14px; margin-bottom:16px; }
.formgrid { display:flex; gap:20px; flex-wrap:wrap; align-items:flex-end; }
.formgrid label { font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--muted); display:flex; flex-direction:column; gap:6px; }
.formgrid input, .formgrid select { height:48px; font-size:17px; font-weight:600; padding:4px 12px; border:1px solid var(--line); border-radius:10px; background:#FFFFFF; color:#000; min-width:180px; font-family:inherit; }
.createbtn { background:var(--gold); color:#FFFFFF; font-size:17px; font-weight:800; border:none; border-bottom:4px solid var(--gold-d); border-radius:12px; padding:13px 30px; cursor:pointer; min-height:48px; }
form.inline { display:inline; }
.rowactions { display:flex; flex-direction:column; gap:8px; align-items:stretch; }
.rowactions .mini { display:flex; gap:8px; align-items:center; }
.rowactions input[type="password"] { height:44px; font-size:15px; padding:4px 10px; border:1px solid var(--line); border-radius:10px; flex:1; min-width:110px; font-family:inherit; }
.rowactions select { height:44px; font-size:15px; font-weight:600; padding:4px 8px; border:1px solid var(--line); border-radius:10px; background:#FFFFFF; color:#000; font-family:inherit; }
.smallbtn { background:#FFFFFF; color:#000; border:2px solid #6E6E73; border-radius:10px; font-size:13px; font-weight:700; padding:9px 12px; cursor:pointer; min-height:44px; }
.smallbtn.danger { border-color:#C8102E; }
/* ---------- login page ---------- */
.loginwrap { max-width:520px; margin:40px auto; padding:0 16px; }
.loginbox { border:4px solid var(--blue); border-radius:18px; box-shadow:0 6px 14px rgba(0,0,0,.08); padding:26px 28px 28px; }
.loginbox h1 { font-size:24px; margin:0 0 14px; color:#000; }
.loginbox label { display:block; font-size:12px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--muted); margin:14px 0 6px; }
.loginbox input { width:100%; height:52px; font-size:18px; font-weight:600; padding:4px 12px; border:3px solid var(--grid); border-radius:10px; background:#FFFFFF; color:#000; font-family:inherit; }
.loginbox .err { margin:0 0 8px; }
.loginbtn { width:100%; margin-top:20px; background:var(--gold); color:#FFFFFF; font-size:19px; font-weight:800; border:none; border-bottom:4px solid var(--gold-d); border-radius:12px; padding:15px 30px; cursor:pointer; }
/* ---------- narrow screens (phones) ----------
   The page frame (banner, bars, cards) always fits the screen; only
   the report grid inside .reportscroll may scroll sideways. Report
   figures step down a size so more of the grid is visible at once. */
@media (max-width:1100px) {
  table.blocktab td, table.delivtab td { font-size:18px; }
  table.blocktab td.tot, table.delivtab tr.dsub td { font-size:22px; }
  table.totband tr.totrow td { font-size:22px; }
}
@media (max-width:700px) {
  .locbanner { gap:10px; padding:10px 8px 9px; }
  .locbanner .loc-rule { flex:0 1 30px; }
  .locbanner .loc-name, body.entrypage .locbanner .loc-name { font-size:23px; letter-spacing:1px; }
  .locbanner .loc-city, body.entrypage .locbanner .loc-city { font-size:27px; letter-spacing:2px; }
  .topbar { flex-wrap:wrap; gap:4px 14px; padding:9px 14px 8px; }
  body.entrypage .topbar { padding:12px 14px 10px; }
  .brand, body.entrypage .brand { font-size:21px; }
  .brand .gold, body.entrypage .brand .gold { font-size:19px; }
  .brandsub, body.entrypage .brandsub { font-size:14px; }
  .topmeta { text-align:left; }
  .tabbar { margin:8px 10px 0; gap:8px; }
  .tabhint { margin-left:0; }
  section, body.entrypage section { margin:10px 8px 0; padding:10px 10px 12px; }
  .blockbox { padding:10px; }
  .reportscroll > table.totband { min-width:992px; margin:14px 14px 0; width:calc(100% - 28px); }
  .datebar, body.entrypage .datebar { margin:0 0 10px; padding:10px 12px 12px; }
  body.entrypage .datebar { margin:12px 8px 0; }
  .db-big, body.entrypage .db-big { font-size:23px; }
  .msg, .err { margin:12px 8px 0; }
  table.blocktab th, table.delivtab th, table.totband th { font-size:10.5px; letter-spacing:0; }
  table.blocktab td, table.delivtab td { font-size:16px; padding:4px 5px; }
  table.blocktab td.tot, table.delivtab tr.dsub td { font-size:19px; }
  table.totband tr.totrow td { font-size:19px; padding:9px 5px; }
  .blocktitle { font-size:15px; }
  .loginwrap { margin:20px auto; }
}

/* Slim admin header + one-row tab ribbon (owner, Nov 22, 2026) */
.tabbar { gap:8px; }
.tabbtn { font-size:13px; letter-spacing:.5px; padding:6px 11px; border-width:2.5px; border-radius:10px; }
.tabbtn.logout { margin-left:auto; border-color:#6B7280; color:#374151; }

/* ---- Employee entry redesign (owner-approved mockup v14,
   Nov 22, 2026): catering as one container; below it a RESTAURANT
   column (ribbon, a Zelle/Cheque fields box, a denominations box)
   and a GROCERY column (ribbon, denominations box). Green = an
   entry box; the result band under each count is highlighted. ---- */
.catbox { border:5px solid var(--blue-d); border-radius:14px; padding:0 14px 14px; margin-bottom:26px; overflow:hidden; }
.ribbon { background:var(--blue); color:#FFFFFF; font-size:24px; font-weight:800; letter-spacing:2px; padding:12px 16px; }
.catbox .ribbon { margin:0 -14px 12px; }
.deptgrid { display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:start; margin-bottom:26px; }
@media (max-width:820px) { .deptgrid { grid-template-columns:1fr; } }
.deptcol .ribbon { border-radius:10px; }
.fieldsbox { border:5px solid var(--blue-d); border-radius:12px; padding:14px; display:flex; gap:16px; margin-top:14px; }
.fld { flex:1; display:flex; flex-direction:column; gap:6px; font-size:16px; font-weight:800; }
input.num.green { background:#E2F4E6; border:2px solid #166E2D; }
input.num.green:focus { border-color:#166E2D; outline:3px solid rgba(22,110,45,.35); }
.countbox { border:5px solid var(--blue-d); border-radius:12px; padding:14px; margin-top:14px; }
.countbox.done { box-shadow:inset 0 0 0 3px #166E2D; }
.denrow { display:flex; align-items:center; gap:12px; padding:5px 0; }
.denlab { width:52px; font-size:20px; font-weight:800; }
.denrow input.cnt { width:110px; min-width:90px; text-align:center; }
.denamt { margin-left:auto; font-size:18px; font-weight:700; }
.band { background:#FDF3CD; border-radius:12px; padding:12px 14px; margin-top:12px; }
.bandrow { display:flex; justify-content:space-between; align-items:baseline; font-size:17px; padding:3px 0; }
.bandrow.big { font-size:20px; }
.pill { border-radius:10px; padding:9px 12px; font-size:15.5px; font-weight:800; margin-top:10px; text-align:center; }
.pill.ok { background:#E2F4E6; color:#166E2D; }
.pill.bad { background:#FAE8E8; color:#A51E1E; }
.pill.idle { background:#EEEEEE; color:#555555; }
.donebtn { margin-top:10px; background:var(--gold); color:#FFFFFF; font-size:17px; font-weight:800; border:none; border-bottom:4px solid var(--gold-d); border-radius:10px; padding:10px 22px; cursor:pointer; }
.submitrow { text-align:center; margin:4px 0 30px; }
.submitbtn.navy { background:var(--blue); border-bottom:5px solid var(--blue-d); width:100%; max-width:720px; border-radius:12px; }

/* ---- Admin display: Plano palette (owner-approved mockup,
   Nov 23, 2026). Scoped to body.adminpage (set by admin_header in
   lib.php) so the employee entry screen keeps its finalized look.
   Navy #00246C · indigo #363670 · gold #FEBD11 · teal #21C3C6 ·
   honeydew #F0FFF0 page background, white cards. ---- */
body.adminpage { background:#F0FFF0; }
body.adminpage .wrap { border-color:#F0FFF0; }
body.adminpage .topbar { background:#00246C; border-bottom:4px solid #00184A; }
body.adminpage .brand { color:#FEBD11; }
body.adminpage .brand .gold { color:#FEBD11; }
body.adminpage .brandsub { color:#FFFFFF; font-weight:700; }
body.adminpage section { border:2px solid #C1C1C1; box-shadow:none; }
body.adminpage .datebar { background:#FFFFFF; border:2px solid #C1C1C1; border-bottom:2px solid #C1C1C1; box-shadow:none; }
body.adminpage .applybtn { background:#FEBD11; color:#00246C; border-bottom-color:#D9A400; }
/* Tab ribbon in the Plano palette: active tab navy with gold text,
   the rest white with grey text. */
.tabbtn { border-color:#C1C1C1; color:#525252; }
.tabbtn.active { background:#00246C; border-color:#00246C; color:#FEBD11; }
.tabbtn.logout { border-color:#C1C1C1; color:#525252; }
.seg a.on { background:#00246C; }
.chip.on { background:#00246C; border-color:#00246C; }

/* Portrait / narrow screens (owner, Nov 23, 2026): when the table cannot
   fit, it must not garble — each row becomes a stacked card with labelled
   lines, like the Plano tool. Landscape keeps the horizontal table. */
@media (max-width: 700px) {
  .prpt table, .prpt table tbody, .prpt table tr, .prpt table td { display:block; width:100%; }
  .prpt table { border:none; }
  .prpt table colgroup { display:none; }
  .prpt table tr.hrow { display:none; }
  .prpt table tr { border:3px solid #3F3F46; border-radius:12px; margin:0 0 12px; overflow:hidden; background:#fff; }
  .prpt table td { border:none; border-bottom:2px solid #3F3F46; display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:8px 12px; font-size:16px; }
  .prpt table td:last-child { border-bottom:none; }
  .prpt table td::before { content:attr(data-label); font-weight:700; color:#55565E; font-size:13px; text-transform:uppercase; letter-spacing:.4px; }
  .prpt table td:empty { display:none; }
  .prpt td.rowlab { display:block; background:#FEBD11; color:#00246C; font-size:15px; padding:9px 12px; }
  .prpt td.rowlab::before { content:none; }
  .prpt table tr.grandrow { border-color:#00246C; }
  .prpt table tr.grandrow td { background:#00246C; color:#fff; border-bottom-color:#33507E; }
  .prpt table tr.grandrow td::before { color:#B9C6DE; }
  .prpt table tr.grandrow td.rowlab { background:#00246C; color:#FEBD11; }
  .prpt table tr.grandrow td.gtot { color:#FEBD11; font-size:20px; }
  .prpt td.tot { font-size:17px; }
  .prpt .pboxin { padding:10px; }
  .prpt table.rcpts td.left { display:block; background:#EFF7EF; font-weight:800; }
  .prpt table.rcpts tr.rtot { border-color:#00246C; }
  .prpt table.rcpts tr.rtot td { background:#00246C; color:#fff; border-bottom-color:#33507E; }
  .prpt table.rcpts tr.rtot td::before { color:#B9C6DE; }
  .prpt table.rcpts tr.rtot td.left { background:#00246C; color:#FEBD11; }
  /* Consistency (owner, Nov 23, 2026): the alternating pale tint
     landed on whole ticket cards in portrait — one ticket tinted,
     the next white — though the tint means nothing. Every ticket
     card is now plain white; only the gold hit values and the red
     TOTAL pills below carry colour. Landscape keeps its striping. */
  .prpt table.rcpts tr:nth-child(odd):not(.grandrow):not(.rtot) td:not(.rowlab):not(.hit):not(.totcol) { background:#FFFFFF; }
  .prpt table.rcpts tr:not(.rtot) td.left { background:#FFFFFF; }
  /* Receipt highlights in portrait cards mirror the entry screen:
     the line itself stays plain; the label word of an entered line
     is a gold chip and its value a gold box; the TOTAL line's label
     word and value are dark-red pills (owner, Nov 23, 2026). */
  .prpt table.rcpts tr td.hit,
  .prpt table.rcpts tr:nth-child(odd):not(.grandrow) td.hit { background:transparent; }
  .prpt table.rcpts td.hit span { background:#FEBD11; color:#000000; padding:4px 10px; border-radius:8px; }
  .prpt table.rcpts td.hit::before { background:#FEBD11; color:#000000; padding:3px 8px; border-radius:6px; }
  .prpt table.rcpts tr td.totcol,
  .prpt table.rcpts tr:nth-child(odd):not(.grandrow) td.totcol { background:transparent; color:#26262A; }
  .prpt table.rcpts td.totcol span { background:var(--red-d); color:#FFFFFF; padding:6px 10px; border-radius:8px; }
  .prpt table.rcpts td.totcol::before { background:var(--red-d); color:#FFFFFF; padding:8px 10px; border-radius:8px; }
}

/* Admin ribbon cosmetics (owner, Nov 23, 2026): "Closing Reports" in
   the same font treatment as the SpiceRack FRISCO brand; the tab and
   date ribbons get thick navy borders so they read as separate
   ribbons, with the tab buttons centered; the date field is pink;
   Observations sits next to Receipts in the seg ribbon. */
body.adminpage .brandsub { font-size:24px; font-weight:800; letter-spacing:.2px; }
body.adminpage .tabbar { border:3px solid #00246C; border-radius:16px; background:#FFFFFF; padding:10px 12px; justify-content:center; }
body.adminpage section.repsheet .tabbar { margin-left:0; margin-right:0; }
body.adminpage .tabbtn.logout { margin-left:0; }
body.adminpage .datebar { border:3px solid #00246C; border-bottom:3px solid #00246C; }
body.adminpage .datebar input.db-field { background:#F8BBD0; color:#111111; }
@media (max-width:700px) {
  body.adminpage .brandsub { font-size:19px; }
  .seg { display:flex; flex-wrap:wrap; }
  .seg a { flex:1 1 auto; text-align:center; padding:6px 10px; }
}

/* Dark rows keep WHITE gridlines (owner, Nov 23, 2026): on the indigo
   header row and the navy TOTAL / receipts-total rows, dark lines
   vanish into the dark background — white lines keep cells divided. */
.prpt table th { border-color:#FFFFFF; }
.prpt table tr.grandrow td { border-color:#FFFFFF; }
.prpt table.rcpts tr.rtot td { border-color:#FFFFFF; }

/* Portrait cards: the TOTAL line of each card gets a darker band
   (owner, Nov 23, 2026) so the total portion stands out. */
@media (max-width:700px) {
  .prpt table tr td.tot, .prpt table tr td.ptot,
  .prpt table tr:nth-child(odd):not(.grandrow) td.tot,
  .prpt table tr:nth-child(odd):not(.grandrow) td.ptot { background:#B9B9C2; }
}

/* "As of" label at the right end of the seg ribbon band. */
.asof { margin-left:auto; font-size:14px; font-weight:800; color:#00246C; white-space:nowrap; }

/* Portrait: the navy TOTAL card and the Delivery Partners card lost
   their inner dividers (collapsed borders on stacked cells). Force
   separate borders in portrait and restate the dividers for those
   two sections (owner, Nov 23, 2026). */
@media (max-width:700px) {
  .prpt table { border-collapse:separate; }
  .prpt table tr.grandrow td { border-bottom:2px solid #FFFFFF; }
  .prpt table tr.grandrow td:last-child { border-bottom:none; }
  .prpt .pboxin table td { border-bottom:2px solid #3F3F46; }
  .prpt .pboxin table td:last-child { border-bottom:none; }
  /* The navy receipts TOTAL card (rtot) is a solid block in
     portrait — restate its dividers in white too (owner,
     Nov 23, 2026). Landscape already has white gridlines here. */
  .prpt table.rcpts tr.rtot td { border-bottom:2px solid #FFFFFF; }
  .prpt table.rcpts tr.rtot td:last-child { border-bottom:none; }
}

/* The as-of date is a gold display pill inside the seg ribbon, right
   after Observations — not a tab, just a display (owner, Nov 23, 2026). */
.seg .asof { background:#FEBD11; color:#00246C; font-size:14px; font-weight:800; padding:6px 16px; white-space:nowrap; margin-left:0; }
@media (max-width:700px) {
  .seg .asof { flex:1 1 auto; text-align:center; padding:6px 10px; }
}

/* ---- Employee entry: Plano palette + portrait stacking, mirroring
   the admin display (owner, Nov 23, 2026). The masthead takes the
   palette everywhere. Green entry boxes stay green (green = type
   here) and the status pills keep their colors. ---- */
.locbanner { background:#00246C; border-bottom:5px solid #FEBD11; }
.locbanner .loc-rule { background:#FEBD11; }
.locbanner .loc-city { color:#FEBD11; }
body.entrypage { background:#F0FFF0; }
body.entrypage .wrap { border-color:#F0FFF0; }
body.entrypage .topbar { background:#00246C; border-bottom:4px solid #00184A; }
body.entrypage .brand { color:#FEBD11; }
body.entrypage .brand .gold { color:#FEBD11; }
body.entrypage .brandsub { color:#FFFFFF; font-weight:700; }
body.entrypage .datebar { background:#FFFFFF; border:3px solid #00246C; border-bottom:3px solid #00246C; box-shadow:none; }
body.entrypage .db-big { color:#00246C; }
body.entrypage .dbtn { border-color:#00246C; color:#00246C; }
body.entrypage .datebar .db-field { background:#F8BBD0; color:#111111; }
body.entrypage .printbtn { background:#FEBD11; color:#00246C; border-bottom-color:#D9A400; }
body.entrypage .stephead { background:#363670; border-color:#26264D; }
body.entrypage .ribbon { background:#00246C; }
body.entrypage .catbox, body.entrypage .fieldsbox, body.entrypage .countbox { border:3px solid #00246C; background:#FFFFFF; }
body.entrypage th { background:#363670; border-right-color:#FFFFFF; }
body.entrypage td.tot { border-color:#FFFFFF; }
body.entrypage .donebtn { background:#FEBD11; color:#00246C; border-bottom-color:#D9A400; }
body.entrypage .submitbtn.navy { background:#00246C; border-bottom-color:#00184A; }

/* Portrait: the catering receipts grid stacks into cards like the
   admin report — never garble; landscape keeps the grid. */
@media (max-width:700px) {
  body.entrypage table#rcpts, body.entrypage table#rcpts tbody, body.entrypage table#rcpts tr, body.entrypage table#rcpts td { display:block; width:100%; }
  body.entrypage table#rcpts { border:none; }
  body.entrypage table#rcpts tr.hrow { display:none; }
  body.entrypage table#rcpts tr { border:3px solid #3F3F46; border-radius:12px; margin:0 0 12px; overflow:hidden; background:#FFFFFF; }
  body.entrypage table#rcpts td { border:none; border-bottom:2px solid #3F3F46; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; white-space:normal; text-align:right; font-size:16px; }
  body.entrypage table#rcpts td:last-child { border-bottom:none; }
  body.entrypage table#rcpts td::before { content:attr(data-label); font-weight:700; font-size:12.5px; text-transform:uppercase; letter-spacing:.4px; color:#55565E; text-align:left; }
  body.entrypage table#rcpts td:empty { display:none; }
  body.entrypage table#rcpts td input.num { flex:1 1 auto; max-width:64%; min-width:0; }
  body.entrypage table#rcpts td.actcell { justify-content:flex-end; }
  body.entrypage table#rcpts td.actcell::before { margin-right:auto; }
  body.entrypage table#rcpts tr.totrow { border-color:#5E0715; }
  body.entrypage table#rcpts tr.totrow td { background:var(--red-d); color:#FFFFFF; border-bottom:2px solid #FFFFFF; }
  body.entrypage table#rcpts tr.totrow td::before { color:#F3C2CB; }
  body.entrypage table#rcpts tr.totrow td:last-child { border-bottom:none; }
  /* Consistency (owner, Nov 23, 2026): the global even-row tint
     alternated whole ticket cards in portrait — saved tickets now
     all sit on plain white, same as the display tab. The green
     Insert row and the dark-red totals row keep their colours. */
  body.entrypage table#rcpts tr:nth-child(even):not(.totrow):not(.newrow) td { background:#FFFFFF; }
  body.entrypage .fieldsbox { flex-direction:column; }
}

/* Inserted catering receipts: on the money line(s) carrying a value,
   only the word and the number are highlighted gold — not the whole
   line (owner, Nov 23, 2026). The number box is gold everywhere; in
   portrait the line's label word gets a gold chip too. */
body.entrypage table#rcpts td.hit input.num { background:#FEBD11; border-color:#D9A400; color:#000000; font-weight:800; }
@media (max-width:700px) {
  body.entrypage table#rcpts td.hit::before { background:#FEBD11; color:#000000; padding:3px 8px; border-radius:6px; }
}

/* Landscape phones / narrow windows (701–1100px): fit the receipts
   grid to the page — fixed layout, proportional columns, inputs
   shrink, Update/Delete stack — instead of running off the right
   edge (owner, Nov 23, 2026). Portrait (<=700px) keeps its cards.
   Nov 23, 2026 (later) — figures clipped/garbled in this band
   (owner screenshot: the gold Cash value "495.00" cut at its box's
   right edge; the CATERING TOTALS figures wrapping mid-number):
   the band's page chrome (wrap border + section margins/padding +
   catbox border/padding = 142px) leaves only ~608px of grid on a
   750px phone, and at the old sizes an 11% money column offered
   ~42px of text room against ~51px needed for "495.00" at 15px
   (~65px for "1,325.00"); the totals row at 16px needed ~69px
   against ~56px offered. Fix, this band only: reclaim 44px of
   chrome (catbox section padding 28->12, catbox padding 14->8),
   widen the money columns that carry 4-digit values (Cash/Zelle
   11->12.5%, Cheque 11->11.5%, paid for by Receipt No. 15->13%
   and Misc 9->7.5%), step the type down (inputs 15->13px with
   tighter padding, totals row 16->14.5px, TOTAL pill 15->14px)
   and pin the totals-row money cells to nowrap so a figure can
   never wrap mid-number. Fit at the band's floor (750px viewport,
   grid 652px): input text room vs "1,325.00" at 13px (~56px) —
   Cash/Zelle ~65px, Credit/Debit ~61px, Cheque ~58px; totals-row
   room vs "3,202.96" at 14.5px (~63px) — Cash ~73px, Total ~76px;
   every figure clears with margin, growing with width. */
@media (min-width:701px) and (max-width:1100px) {
  body.entrypage section.catbox { padding:20px 12px 22px; }
  body.entrypage .catbox { padding:0 8px 10px; }
  body.entrypage .catbox .ribbon { margin:0 -8px 10px; }
  body.entrypage table#rcpts { table-layout:fixed; }
  body.entrypage table#rcpts th { white-space:normal; font-size:11px; letter-spacing:0; padding:8px 3px; }
  body.entrypage table#rcpts th:nth-child(1) { width:13%; }
  body.entrypage table#rcpts th:nth-child(2) { width:12%; }
  body.entrypage table#rcpts th:nth-child(3) { width:12.5%; }
  body.entrypage table#rcpts th:nth-child(4) { width:11.5%; }
  body.entrypage table#rcpts th:nth-child(5) { width:12.5%; }
  body.entrypage table#rcpts th:nth-child(6) { width:7.5%; }
  body.entrypage table#rcpts th:nth-child(7) { width:13%; }
  body.entrypage table#rcpts th:nth-child(8) { width:18%; }
  body.entrypage table#rcpts td { white-space:normal; padding:5px 3px; font-size:14px; }
  body.entrypage table#rcpts td.calc.totcol span { font-size:14px; padding:8px 2px; text-align:center; }
  body.entrypage table#rcpts td input.num { min-width:0; width:100%; height:44px; font-size:13px; padding:4px 3px; }
  body.entrypage table#rcpts td.actcell .updbtn, body.entrypage table#rcpts td.actcell .delbtn { display:block; width:100%; margin:0 0 6px; font-size:13.5px; padding:8px 4px; }
  body.entrypage table#rcpts td.actcell .delbtn { margin-bottom:0; }
  body.entrypage table#rcpts tr.totrow td { font-size:14.5px; padding:10px 3px; }
  body.entrypage table#rcpts tr.totrow td:not(:first-child) { white-space:nowrap; }
}

/* Same band, DISPLAY receipts table (admin Receipts tab + employee
   Catering tickets tab): the whole-dollar figures already fit
   (a 13% Cash column offers ~73px against ~48px for "$1,325" at
   14px at the band's floor), but the cell padding steps down a
   touch in this band so the gold/red cells keep clear air around
   their figures, matching the entry grid's treatment. */
@media (min-width:701px) and (max-width:1100px) {
  .prpt table.rcpts td { padding:8px 6px; }
  .prpt table.rcpts th { padding:8px 5px; }
}

/* The blank Insert row is where new receipts are typed: light green
   row with green-bordered boxes, matching the green = type here
   theme (owner, Nov 23, 2026). */
body.entrypage table#rcpts tr.newrow td { background:#E2F4E6; }
body.entrypage table#rcpts tr.newrow td input.num { background:#FFFFFF; border:2px solid #166E2D; }
body.entrypage table#rcpts tr.newrow td.actcell .updbtn { border-color:#166E2D; color:#166E2D; }

/* Portrait receipt cards: the word TOTAL wears the same dark-red
   pill as its number, so the total line reads as a pair (owner,
   Nov 23, 2026). */
@media (max-width:700px) {
  body.entrypage table#rcpts td.totcol::before { background:var(--red-d); color:#FFFFFF; padding:8px 10px; border-radius:8px; }
}

/* The red CATERING TOTALS row takes WHITE dividers between its
   cells, same rule as the admin dark rows (owner, Nov 23, 2026). */
body.entrypage table#rcpts tr.totrow td { border-right-color:#FFFFFF; }

/* Locked history days: the read-only banner on the entry page. */
body.entrypage .locknote { margin:24px 20px 0; background:#FAE8E8; border:3px solid #A51E1E; color:#A51E1E; border-radius:12px; padding:14px 18px; font-size:17px; font-weight:800; }
@media (max-width:700px) { body.entrypage .locknote { margin:12px 8px 0; } }

/* Employee tab bar (owner, Nov 23, 2026): the three employee tabs —
   Data entry / Daily totals / Catering tickets — plus Logout. On
   the entry page (body.entrypage) the bar takes the same
   navy-bordered white ribbon treatment the admin tab bar gets on
   admin pages; view.php uses the admin page shell, so the
   body.adminpage .tabbar rules above already cover it there. The
   buttons use the shared .tabbtn palette rules (active = navy
   with gold text). */
body.entrypage .tabbar { border:3px solid #00246C; border-radius:16px; background:#FFFFFF; padding:10px 12px; justify-content:center; margin:16px 20px 0; }
body.entrypage .tabbtn.logout { margin-left:0; }
@media (max-width:700px) { body.entrypage .tabbar { margin:12px 8px 0; } }

/* Employee masthead (owner, Nov 23, 2026): on employee screens
   the location banner and the old top bar are ONE ribbon — the
   brand was printed twice. The single band is two halves: LEFT,
   the brand in TWO lines (name over city) at top-bar scale —
   the huge one-line masthead lettering pushed the info onto a
   second band; RIGHT, the page label, EMPLOYEE VIEW and the
   signed-in line, right-aligned and vertically centred against
   the brand (the band is align-items:center). (No Logout here —
   the single Logout is in the tab ribbon.)
   The halves never wrap: in portrait they compress a step
   smaller, still side by side in the one band. Admin pages and
   login keep their two bands. */
.locbanner.empbanner { justify-content:space-between; gap:18px; flex-wrap:nowrap; }
.locbanner .locbrand { display:flex; flex-direction:column; line-height:1.12; }
.locbanner .lb-name { font-size:27px; font-weight:800; letter-spacing:2px; color:#FFFFFF; white-space:nowrap; }
.locbanner .lb-city { font-size:25px; font-weight:800; letter-spacing:4px; color:#FEBD11; white-space:nowrap; }
.locbanner .locmeta { display:flex; flex-direction:column; text-align:right; line-height:1.45; color:#FFFFFF; }
.locbanner .locmeta .lm-label { font-size:19px; font-weight:800; }
.locbanner .locmeta .lm-view { font-size:11px; font-weight:700; letter-spacing:2px; }
.locbanner .locmeta .lm-user { font-size:13px; }
body.entrypage .locbanner .locmeta .lm-label { font-size:21px; }
body.entrypage .locbanner .locmeta .lm-view { font-size:13px; }
body.entrypage .locbanner .locmeta .lm-user { font-size:15px; }
@media (max-width:700px) {
  .locbanner .lb-name { font-size:21px; letter-spacing:1px; }
  .locbanner .lb-city { font-size:19px; letter-spacing:2px; }
  .locbanner .locmeta .lm-label { font-size:16px; }
  .locbanner .locmeta .lm-view { font-size:10px; }
  .locbanner .locmeta .lm-user { font-size:12px; }
  body.entrypage .locbanner .locmeta .lm-label { font-size:17px; }
  body.entrypage .locbanner .locmeta .lm-view { font-size:11px; }
  body.entrypage .locbanner .locmeta .lm-user { font-size:13px; }
}

/* Employee date-bar controls take the TAB BUTTONS' size (owner,
   Nov 23, 2026): same font size, padding, border width and radius
   as .tabbtn, with no fixed heights, so Prev / Next / Today, the
   pink date field and the month/year selectors stand exactly as
   tall as the tabs below. Colors and behavior unchanged — the
   date field stays pink, the buttons keep their navy outline.
   Scoped to the employee screens only (entry page; view.php via
   body.empview) — the admin date bars keep their compact size. */
body.entrypage .datebar .dbtn,
body.entrypage .datebar .db-field,
body.empview .datebar .dbtn,
body.empview .datebar .db-field { font-size:13px; letter-spacing:.5px; padding:6px 11px; border-width:2.5px; border-radius:10px; height:auto; }
body.entrypage .datebar .db-sel select,
body.empview .datebar .db-sel select { font-size:13px; padding:6px 11px; border-width:2.5px; border-radius:10px; height:auto; }

/* Entry date bar: with the "Last entry" line gone (owner,
   Nov 23, 2026) the status pill is the only thing on its line;
   it sits MIDDLE-justified (owner, Nov 23, 2026). */
body.entrypage .db-top { justify-content:center; }

/* Ribbon alignment + light green bands (owner, Nov 23, 2026):
   the stacked ribbons — admin tab / date / seg bands, employee
   date / tabs bands — share ONE geometry so they line up edge to
   edge: full width of their container, 3px navy border, 16px
   radius, 10px 12px padding, and a light green #EFF7EF
   background (the app's pale-green tint). Contents, colors,
   labels and order inside each band are unchanged; the navy
   masthead is not one of these ribbons. The seg band is the
   dashboard's .ctlrow inside the report sheet — the Change Log
   filter row of the same class is not a ribbon and is untouched. */
body.adminpage .tabbar { background:#EFF7EF; }
body.adminpage .datebar { background:#EFF7EF; border-radius:16px; padding:10px 12px; }
body.adminpage section.repsheet .ctlrow { border:3px solid #00246C; border-radius:16px; background:#EFF7EF; padding:10px 12px; margin:0 0 10px; justify-content:center; }
body.entrypage .datebar { background:#EFF7EF; border-radius:16px; }
body.entrypage .tabbar { background:#EFF7EF; }

/* Ticket boxes — no alternating tint anywhere + navy
   double-weight outlines (owner, Nov 23, 2026): the portrait
   consistency fix left the LANDSCAPE receipts rows alternating
   white / pale tint, and the entry grid's even rows carried the
   legacy grey tint — ticket rows are now plain white in BOTH
   orientations on both ticket tables (display receipts + entry
   grid). Only the gold hits, the red TOTAL pills and the navy /
   dark-red totals rows carry colour; the main report table
   dropped its own striping the same day, so it is plain too.
   And each ticket card's OUTER outline
   (portrait) — plus the landscape receipts table's outer frame —
   is dark navy at double weight (6px against the 3px grid
   lines), so the box stands apart from the lines inside it.
   The totals cards keep their own outline colours (navy rtot,
   dark-red entry totrow) at the same double weight. */
.prpt table.rcpts tr:nth-child(odd):not(.grandrow):not(.rtot) td:not(.rowlab):not(.hit):not(.totcol) { background:#FFFFFF; }
body.entrypage table#rcpts tr:nth-child(even):not(.totrow):not(.newrow) td { background:#FFFFFF; }
@media (min-width:701px) {
  .prpt table.rcpts { border:6px solid #00246C; }
}
@media (max-width:700px) {
  .prpt table.rcpts tr { border:6px solid #00246C; }
  body.entrypage table#rcpts tr { border:6px solid #00246C; }
}

/* Separate ribbons (owner correction, Nov 23, 2026): "The tabs
   should have its own ribbon. I was asking not to merge both
   the ribbons, but separate them, but have its own ribbon. Both
   are common line ribbon for both ribbons." The brief combined-
   container experiment (.ribbons) is REMOVED: every band is its
   OWN complete ribbon again — the common style from the ribbon
   alignment block above (full 3px navy border, 16px radius,
   light green #EFF7EF background, full width, edges aligned),
   stacked with the small gap between ribbons. The rules below
   only restore the stacking gaps the merged container used to
   absorb: inside the admin report sheet the tab ribbon carries
   the gap under it (the date bar and the seg band already carry
   their own 10px bottom margins), and on the employee display
   pages the date bar's bottom margin is the gap above the tabs
   ribbon. */
body.adminpage section.repsheet .tabbar { margin-top:0; margin-bottom:10px; }

/* Seg group — SEPARATE buttons (owner, Nov 23, 2026): "Maybe
   separate them like buttons." The Daily | MTD | YTD | Receipts |
   Observations switcher was ONE joined bar with shared edges; in
   portrait it wrapped with Observations glued underneath the rest.
   Each item is now its own pill button in the .tabbtn family —
   same box as the slim tab buttons (13px, 6px 11px padding, 2.5px
   border, 10px radius), grey border / grey text on white, the
   active view keeping the seg's navy fill with white text. The
   gold as-of pill stays a separate display element after the
   buttons (same text rules), now with the Print button's gold
   border and radius so it stands alone cleanly. The group flows:
   one line in landscape; in portrait the separate buttons simply
   wrap onto clean rows — no glued look, and never shrunk below
   the tab buttons' size. Markup unchanged (dashboard.php only —
   no other page renders a .seg group). */
.seg { display:inline-flex; flex-wrap:wrap; align-items:center; gap:8px; border:none; border-radius:0; overflow:visible; background:transparent; }
.seg a { font-size:13px; font-weight:800; letter-spacing:.5px; padding:6px 11px; background:#FFFFFF; color:#525252; border:2.5px solid #C1C1C1; border-radius:10px; text-decoration:none; }
.seg a.on { background:#00246C; border-color:#00246C; color:#FFFFFF; }
.seg .asof { border:2.5px solid #D9A400; border-radius:10px; }
@media (max-width:700px) {
  .seg { display:flex; }
  .seg a { flex:0 1 auto; text-align:center; }
  .seg .asof { flex:0 1 auto; text-align:center; }
}

/* Portrait audit (owner, Nov 23, 2026): "apply the same change,
   vertical versus horizontal" — every tab was checked at portrait
   widths. The three admin TEXT tables (Observations, Change Log,
   Login IDs) never had a portrait mode: they stayed squeezed
   horizontal tables — tall crammed rows, and the Observations
   table's nowrap cells and Status forms pushed it past the
   section card's right edge. They now stack like the main report:
   in portrait each row is its own card with labelled lines (the
   label rides in via data-label, same words as the column heads),
   the header row hides, and landscape keeps the tables exactly
   as they are. The Observations Status cell keeps its badge and
   both buttons, fully usable inside the card; the Login IDs
   action forms stack full-width inside theirs. Width fix on the
   same pass: at portrait the admin tab ribbon sat at 10px side
   margins while the section cards sit at 8px, so the two never
   lined up — the ribbon now shares the sections' 8px inset, edge
   to edge like every other page. (Reports, employee entry /
   Daily totals / Catering tickets already stack via .prpt and
   the entry cards; the login page is fluid — neither needed a
   change.) */
@media (max-width:700px) {
  body.adminpage .tabbar { margin-left:8px; margin-right:8px; }
  table.texttab.obstab, table.texttab.logtab, table.texttab.userstab { border:none; border-radius:0; }
  table.texttab.obstab, table.texttab.obstab tbody, table.texttab.obstab tr, table.texttab.obstab td,
  table.texttab.logtab, table.texttab.logtab tbody, table.texttab.logtab tr, table.texttab.logtab td,
  table.texttab.userstab, table.texttab.userstab tbody, table.texttab.userstab tr, table.texttab.userstab td { display:block; width:100%; }
  table.texttab.obstab tr:first-child, table.texttab.logtab tr:first-child, table.texttab.userstab tr:first-child { display:none; }
  table.texttab.obstab tr, table.texttab.logtab tr, table.texttab.userstab tr { border:3px solid #3F3F46; border-radius:12px; margin:0 0 12px; overflow:hidden; background:#FFFFFF; }
  table.texttab.obstab td, table.texttab.logtab td, table.texttab.userstab td { border:none; border-bottom:2px solid #3F3F46; padding:8px 12px; font-size:16px; text-align:left; white-space:normal; }
  table.texttab.obstab td:last-child, table.texttab.logtab td:last-child, table.texttab.userstab td:last-child { border-bottom:none; }
  table.texttab.obstab td[data-label]::before, table.texttab.logtab td[data-label]::before, table.texttab.userstab td[data-label]::before { content:attr(data-label); display:block; font-weight:700; color:#55565E; font-size:13px; text-transform:uppercase; letter-spacing:.4px; margin-bottom:2px; }
  table.texttab.obstab td.status form.inline { display:inline-block; margin-top:8px; }
  table.texttab.userstab td .rowactions { width:100%; }
  /* Change Log date separator as a portrait divider bar: the row
     itself is the bar, its cell is not rendered. */
  table.texttab.logtab tr.datesep { border:none; border-radius:6px; background:#00246C; height:10px; margin:0 0 12px; }
  table.texttab.logtab tr.datesep td { display:none; }
  /* Portrait card has full width: Last login back to a single line. */
  table.texttab.userstab td.when .lld, table.texttab.userstab td.when .llt { display:inline; }
  table.texttab.userstab td.when .llsep { display:inline; }
}

/* ---- Employee entry: TABBED SECTIONS + PER-TAB SUBMIT BLOCKS
   (owner, Nov 23, 2026) ----
   The entry form's three sections are TABS (Ribbon 1: Catering
   Tickets / Restaurant Cash / Grocery Cash) so staff tap instead
   of scrolling: one panel visible at a time, switched by JS
   show/hide inside the ONE form — hidden panels' inputs still
   count in every live total and in the submit. On this page the
   ribbons are SEPARATE bands (date ribbon, Ribbon 1, Ribbon 2),
   each in the common ribbon style. EACH panel ends with its own
   SUBMIT block (.submitbar, inside the panel): the dark-red
   totals-band styling with the gold top rule, holding ONLY the
   Submit button, in the ONE form, one shared submit. (The block
   first carried the day's TOTAL next to the button — the total
   having shipped in a single page-level bar, sticky, which the
   owner rejected as a floating overlay, then plain
   bottom-of-page, before he moved it into each tab the same
   afternoon — until he removed the figure later that day:
   "Total next to submit closing is irrelevant. I don't think we
   need to put that number there.") On locked history days each
   block carries the locked state instead of a working Submit. */
.entrytabs .tabbtn { font-family:inherit; }
.tabpanels { margin:24px 20px 26px; }
.tabpanel[hidden] { display:none; }
.tabpanel > section.catbox { margin:0; }
body.entrypage .feednote { margin:0 20px 14px; }
.submitbar { display:flex; align-items:center; gap:18px; margin:16px 0 0; padding:12px 20px; background:var(--red-d); color:#FFFFFF; border:3px solid var(--red-dd); border-top:4px solid var(--gold-l); border-radius:14px; }
.submitbar .submitbtn { width:auto; height:56px; padding:0 34px; font-size:19px; border-radius:12px; }
.submitbar .sb-locked { background:#FFFFFF; color:#A51E1E; font-size:14px; font-weight:800; letter-spacing:1px; padding:9px 18px; border-radius:999px; white-space:nowrap; }
@media (max-width:700px) {
  .tabpanels { margin:12px 8px 14px; }
  body.entrypage .feednote { margin:0 8px 12px; }
  .submitbar { margin:12px 0 0; padding:10px 12px; gap:12px; }
  .submitbar .submitbtn { height:50px; font-size:16px; padding:0 20px; }
}

/* Ribbon name labels (owner, Nov 23, 2026): each employee ribbon
   leads with its name — "Data Entry" on Ribbon 1 (entry.php),
   "Data Display" on the display ribbon (employee_tabbar) — a
   label CHIP, not a link or button, sitting inline-block at the
   start of the ribbon's button row; when the row wraps in
   portrait the chip stays first and leads the ribbon. It is the
   ribbon's identifier now that the Data entry button is removed.
   The date ribbon gets no label. Colours traded at the owner's
   word later the same day: the chip carries the red as its
   background and the letters are white bold (originally red
   letters on the ribbon's light green). Radius matches .tabbtn;
   padding is the tab buttons' vertical with less horizontal. */
.tabbar .ribbonlabel { background:var(--red); color:#FFFFFF; font-size:15px; font-weight:800; letter-spacing:.5px; white-space:nowrap; display:inline-block; padding:7px 14px; border-radius:12px; }

/* Label → arrow → buttons (owner, Nov 23, 2026, 3:20 PM):
   "Between the data entry and the button give some space or put
   an arrow mark and then start the buttons — same thing with
   data display — and then make sure all of them are aligned
   properly." After each red chip a bold navy ARROW (.ribbonarrow,
   a plain span in the markup) points into the ribbon's buttons,
   and the chip carries a FIXED width — sized for the longer
   "Data Display", the shorter "Data Entry" centred in the same
   box (box-sizing is border-box tool-wide, so the width includes
   the padding) — so the arrow and the first button start at the
   SAME horizontal position on both ribbons and the pair reads as
   one aligned system. Scoped to the employee pages (entrypage /
   empview): the admin ribbons carry no label chip and are
   untouched. flex:none keeps chip and arrow from shrinking under
   flex pressure, which would break the alignment; the buttons
   still wrap as before. In portrait the chip narrows a step so
   chip + arrow + first button still share the first line. */
body.entrypage .tabbar .ribbonlabel,
body.empview .tabbar .ribbonlabel { width:140px; flex:none; text-align:center; }
body.entrypage .tabbar .ribbonarrow,
body.empview .tabbar .ribbonarrow { color:#00246C; font-size:19px; font-weight:800; line-height:1; flex:none; }
@media (max-width:700px) {
  body.entrypage .tabbar .ribbonlabel,
  body.empview .tabbar .ribbonlabel { width:126px; padding-left:8px; padding-right:8px; }
  body.entrypage .tabbar .ribbonarrow,
  body.empview .tabbar .ribbonarrow { font-size:17px; }
}

/* Observations numbering (owner, Nov 23, 2026): the list is
   numbered in displayed order (a display-only No. column added
   in observations.php) so the count reads at a glance. The
   number cell is centred and bold in the landscape table; in
   portrait the card's first line is the "No." line via the
   shared data-label card rules above. */
table.texttab.obstab td.obsno { text-align:center; font-weight:800; }
table.texttab.logtab td.logno { text-align:center; font-weight:800; }
/* Change Log (owner, Nov 23, 2026): entries are numbered (No.
   column above) and a plain NAVY BAR separates each new DATE —
   a full-width separator row in landscape; the <=700px portrait
   block turns the same row into a navy divider between cards. */
table.texttab.logtab tr.datesep td { background:#00246C; height:10px; padding:0; border:none; }

/* Employee ribbons pack LEFT + BLUE GAPS in the ribbon stack
   (owner, Nov 23, 2026) —
   LEFT: inside the Data Entry and Data Display ribbons the red
   name label leads and the buttons follow in order, packed to
   the left. The centred justification on the employee tab bars
   is overridden and the Logout right-push (margin-left:auto in
   the shared .tabbtn rules) is removed on the employee pages
   only. The admin ribbon keeps its centred
   layout; the DATE ribbon is untouched (its status pill stays
   centred).
   BLUE GAPS: the stacked ribbons on an employee screen sit in a
   .ribbonstack wrapper whose background is the palette navy
   #00246C, so the gaps between successive ribbons — the
   ribbons' own vertical margins showing through — read as blue
   and each light-green ribbon stands out as its own band. The
   stack takes the ribbons' side margins (20px; 8px in portrait)
   and inside it the ribbons sit flush (their side margins are
   zeroed below at higher specificity), so each ribbon's on-page
   position and width are unchanged. The first ribbon's top
   margin collapses through the stack, so the space above the
   date ribbon keeps the page background; everything below the
   stack is untouched. On the display pages the stack wraps the
   date form + both tab ribbons inside the report sheet, whose
   ribbons already sit flush, so the stack there is marginless. */
body.entrypage .tabbar, body.empview .tabbar { justify-content:flex-start; }
body.entrypage .tabbtn.logout,
body.empview .tabbtn.logout { margin-left:0; }
.ribbonstack { background:#00246C; margin:0 20px; }
body.entrypage .ribbonstack .datebar,
body.entrypage .ribbonstack .tabbar { margin-left:0; margin-right:0; }
body.empview .ribbonstack { margin:0; }
@media (max-width:700px) {
  .ribbonstack { margin:0 8px; }
  body.empview .ribbonstack { margin:0; }
}

/* BLUE GAPS on the ADMIN pages too (owner, Nov 23, 2026): "Dark
   blue between the ribbons, please apply to all ribbons and all
   the logins." The .ribbonstack treatment above is now tool-wide:
   — dashboard.php wraps its three ribbons (tab bar, date bar,
     seg band) in the stack INSIDE the report sheet, exactly as
     view.php does. The sheet's ribbons already sit flush (side
     margins zero), so the stack there is marginless — the rule
     below — and the navy shows in the gaps between successive
     ribbons, which are the ribbons' own 10px bottom margins.
     The date bar's margin collapses through its form, same as
     on the employee display pages.
   — users.php / changelog.php / observations.php get the stack
     around the tab ribbon from admin_header (lib.php): the
     generic .ribbonstack rules above give the stack the ribbon's
     side margins (20px; 8px in portrait) and the flush rule
     below zeroes the ribbon's side margins inside it, so the
     ribbon's position and width are unchanged. A single-band
     stack shows little navy — the first ribbon's top margin
     collapses through the stack, as on the employee screens —
     which is fine: the treatment is uniform.
   Admin alignment is NOT touched: the admin ribbons keep their
   centred layout — the pack-LEFT overrides above stay scoped
   to the employee pages — and no ribbon's own colours change. */
body.adminpage section.repsheet .ribbonstack { margin:0; }
body.adminpage .ribbonstack .tabbar { margin-left:0; margin-right:0; }
