/* skript. coffee ops mock-up. Brick and leather palette from docs/DESIGN.md; #C90000 only on the logo dot. */
@font-face { font-family: 'Open Sauce One'; src: url('open-sauce-one-latin-400-normal.woff2') format('woff2'); font-weight: 400; }
@font-face { font-family: 'Open Sauce One'; src: url('open-sauce-one-latin-500-normal.woff2') format('woff2'); font-weight: 500; }
@font-face { font-family: 'Open Sauce One'; src: url('open-sauce-one-latin-600-normal.woff2') format('woff2'); font-weight: 600; }

:root {
  --ink: #2A1410; --leather: #5C2C1B; --brick: #8A4230; --deepred: #6E1A1F; --logo: #C90000;
  --cream: #F6EFE5; --paper: #FDFDFC; --paper2: #F9F8F8; --soft: #6E5A50; --line: #E4D8CA;
  --ok: #2F5D46; --okbg: #E6EFE9; --warn: #9A6212; --warnbg: #F7ECD9; --bad: #9B2C1F; --badbg: #F6E1DC;
  --tint: #F3E7DA; --shadow: 0 1px 2px rgba(42,20,16,.06), 0 4px 14px rgba(42,20,16,.07);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Open Sauce One', system-ui, sans-serif; color: var(--ink); background: var(--paper2); font-size: 14px; line-height: 1.45; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 20px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
.muted { color: var(--soft); } .small { font-size: 12px; }
.brand { font-weight: 600; letter-spacing: -.01em; text-transform: none; white-space: nowrap; }
.brand .dot { color: inherit; }
.cupmark { display: inline-block; width: 11px; height: 14px; background: var(--logo); border-radius: 2px 2px 4px 4px; margin-right: 8px; vertical-align: -1px; }

.demobar .dbtn { background: transparent; border: 1px solid #6b4a3e; color: #f3e9de; border-radius: 999px; padding: 5px 12px; margin-left: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; padding: 9px 18px; border: 1px solid var(--leather); background: var(--paper); color: var(--leather); font-weight: 500; }
.btn:hover { background: var(--tint); }
.btn.fill { background: var(--leather); color: #fff; border-color: var(--leather); }
.btn.fill:hover { background: var(--ink); }
.btn.urgent { background: var(--deepred); border-color: var(--deepred); color: #fff; }
.btn.sm { padding: 5px 12px; font-size: 12px; }
.btn.block { width: 100%; padding: 13px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--brick); text-decoration: underline; text-underline-offset: 2px; }

/* Status chips */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.ok { color: var(--ok); background: var(--okbg); }
.chip.warn { color: var(--warn); background: var(--warnbg); }
.chip.bad { color: var(--bad); background: var(--badbg); }
.chip.plain { color: var(--soft); background: var(--tint); }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 6px; background: var(--tint); color: var(--leather); }
.tag.ext { background: #E9E4F0; color: #4B3B66; } .tag.int { background: var(--warnbg); color: var(--warn); }

/* ⓘ notes open beside the icon */
.info { position: relative; display: inline-block; }
.info > button { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--soft); background: var(--paper); color: var(--soft); font-size: 11px; line-height: 16px; padding: 0; font-style: italic; font-family: Georgia, serif; }
.info .note { display: none; position: absolute; left: 24px; top: -6px; z-index: 30; width: 260px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 10px 12px; font-size: 12px; color: var(--ink); font-weight: 400; }
.info.open .note { display: block; }

/* ===== Company tab (barista), phone sized ===== */
.stage { display: flex; justify-content: center; padding: 22px 16px 40px; }
.phone { width: 390px; min-height: 800px; background: var(--paper); border-radius: 30px; box-shadow: 0 0 0 10px #1b0d0a, 0 20px 50px rgba(0,0,0,.25); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.ph-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; background: var(--ink); color: #f6efe5; }
.ph-top .brand { font-size: 16px; }
.ph-top .where { text-align: right; font-size: 12px; color: #d9c8b8; }
.ph-top .where b { color: #fff; font-weight: 500; }
.ph-body { flex: 1; padding: 16px 18px 92px; overflow-y: auto; }
.ph-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 18px 18px; background: linear-gradient(rgba(253,253,252,0), var(--paper) 30%); }
.steps { display: flex; gap: 6px; margin: 0 0 16px; }
.steps .st { flex: 1; text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--paper2); border: 1px solid var(--line); font-size: 12px; color: var(--soft); }
.steps .st b { display: block; font-size: 13px; color: var(--ink); font-weight: 500; }
.steps .st.now { border-color: var(--leather); background: var(--tint); }
.steps .st.done b::after { content: ' ✓'; color: var(--ok); }
.hello { font-size: 18px; font-weight: 600; margin-bottom: 2px; }

.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 26px 0 8px; }
.pin-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--leather); }
.pin-dots span.on { background: var(--leather); }
.pin-msg { text-align: center; min-height: 20px; font-size: 13px; color: var(--bad); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 12px 0; }
.keypad button { height: 64px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper2); font-size: 24px; font-weight: 500; }
.keypad button:active { background: var(--tint); }
.keypad button.ghost { background: transparent; border-color: transparent; font-size: 14px; color: var(--soft); }

.bigaction { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); margin-bottom: 12px; }
.bigaction .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--leather); font-size: 18px; flex: none; }
.bigaction b { display: block; font-weight: 600; font-size: 15px; }
.bigaction.main { border-color: var(--leather); }
.bigaction.main .ic { background: var(--leather); color: #fff; }
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.extras button { padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper2); font-size: 13px; }
.extras button span { display: block; font-size: 18px; color: var(--leather); }
.sect-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); margin: 18px 0 8px; }

.count-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.grp { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); margin: 16px 0 6px; display: flex; justify-content: space-between; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); border-radius: 8px; }
.row.changed { background: var(--tint); }
.thumb { width: 40px; height: 40px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; background: var(--brick); }
.row .nm { flex: 1; min-width: 0; }
.row .nm b { display: block; font-weight: 500; font-size: 14px; }
.row .nm span { font-size: 11px; color: var(--soft); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--leather); background: var(--paper); color: var(--leather); font-size: 18px; line-height: 1; }
.stepper output { width: 30px; text-align: center; font-size: 16px; font-weight: 600; }
.low { font-size: 10px; font-weight: 600; color: var(--warn); background: var(--warnbg); border-radius: 5px; padding: 0 5px; margin-left: 4px; vertical-align: 1px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--soft); margin-bottom: 5px; }
.field select, .field input, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.photo { display: flex; align-items: center; justify-content: center; gap: 8px; height: 84px; border: 1.5px dashed var(--line); border-radius: 12px; color: var(--soft); background: var(--paper2); width: 100%; }
.photo.has { border-style: solid; border-color: var(--ok); color: var(--ok); background: var(--okbg); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cards button { text-align: left; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; }
.cards button[aria-pressed="true"] { border-color: var(--leather); background: var(--tint); font-weight: 500; }
.done-box { text-align: center; padding: 26px 10px; }
.done-box .big { font-size: 42px; color: var(--ok); }
.timebox { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.timebox div { padding: 12px; border-radius: 12px; background: var(--paper2); border: 1px solid var(--line); }
.timebox b { display: block; font-size: 20px; font-weight: 600; }
.hours { text-align: center; padding: 16px; border-radius: 14px; background: var(--tint); margin-bottom: 14px; }
.hours b { display: block; font-size: 32px; font-weight: 600; }
.back { background: none; border: 0; padding: 0; color: var(--soft); font-size: 13px; margin-bottom: 10px; }

/* Popups open directly under the button pressed */
.pop-anchor { position: relative; }
.pop { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 40; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 34px rgba(42,20,16,.22); padding: 14px; }
.pop.under { bottom: auto; top: calc(100% + 8px); }
.pop h3 { margin-bottom: 8px; }

/* ===== Back office (executive and Feroz), computer first ===== */
.desk { min-height: calc(100vh - 38px); display: grid; grid-template-rows: 54px 1fr; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 0 20px; background: var(--ink); color: #f6efe5; }
.topbar .brand { font-size: 17px; }
.topbar .who { margin-left: auto; font-size: 13px; color: #d9c8b8; display: flex; align-items: center; gap: 14px; }
.topbar .who b { color: #fff; font-weight: 500; }
.topbar .btn { border-color: #7d5a4c; background: transparent; color: #f6efe5; }
.cols { display: grid; grid-template-columns: 196px minmax(0, 1fr) 236px; background: var(--paper2); min-height: 0; }
.lefttab { background: var(--paper); border-right: 1px solid var(--line); padding: 14px 10px; }
.lefttab .lt-h { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--soft); padding: 6px 10px; }
.lefttab button { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-radius: 9px; padding: 9px 10px; font-size: 13px; color: var(--ink); }
.lefttab button:hover { background: var(--paper2); }
.lefttab button[aria-current="page"] { background: var(--tint); font-weight: 600; color: var(--leather); }
.lefttab .cnt { font-size: 11px; min-width: 20px; text-align: center; border-radius: 999px; padding: 0 6px; background: var(--paper2); color: var(--soft); font-weight: 500; }
.lefttab .cnt.bad { background: var(--badbg); color: var(--bad); }
.center { padding: 22px 26px 40px; min-width: 0; }
.center-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.center-head .sp { flex: 1; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px; position: relative; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head .sp { flex: 1; }
.seg2 { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg2 button { border: 0; background: var(--paper); padding: 4px 12px; font-size: 12px; color: var(--soft); }
.seg2 button[aria-pressed="true"] { background: var(--leather); color: #fff; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.t td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rightpanel { background: var(--paper); border-left: 1px solid var(--line); padding: 14px 12px; }
.rp-bar { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: var(--paper); }
.rp-bar > button { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: 10px 12px; font-size: 13px; font-weight: 500; text-align: left; }
.rp-bar > button:hover { background: var(--paper2); border-radius: 10px; }
.rp-bar.soft > button { background: var(--warnbg); border-radius: 10px; }
.rp-bar .arrow { font-size: 10px; color: var(--soft); }
.rp-bar .body { padding: 2px 12px 12px; font-size: 12.5px; color: var(--ink); }
.rp-bar .body ul { margin: 0; padding-left: 16px; } .rp-bar .body li { margin: 4px 0; }
.rp-line { border-top: 1px solid var(--line); margin: 12px 0; }

.tasks .task { display: grid; grid-template-columns: 10px 1fr 130px 150px 110px; gap: 12px; align-items: center; padding: 11px 6px; border-bottom: 1px solid var(--line); }
.tasks .task:last-child { border-bottom: 0; }
.tasks .bar { width: 4px; height: 30px; border-radius: 2px; background: var(--line); }
.tasks .late .bar { background: var(--bad); } .tasks .due .bar { background: var(--warn); } .tasks .soon .bar { background: var(--leather); }
.tasks .what b { font-weight: 500; display: block; } .tasks .what span { font-size: 12px; color: var(--soft); }
.tasks .esc { font-size: 12px; color: var(--soft); }
.pct { display: flex; align-items: center; gap: 10px; }
.pct .track { flex: 1; height: 8px; border-radius: 4px; background: var(--paper2); border: 1px solid var(--line); overflow: hidden; }
.pct .fill { height: 100%; background: var(--ok); }

.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: start; }
.lane { background: var(--paper2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 360px; }
.lane > h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); display: flex; justify-content: space-between; margin: 2px 2px 10px; }
.lane.help { background: #FBF3EF; border-color: #EBCFC5; }
.pcard { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; box-shadow: var(--shadow); width: 100%; text-align: left; display: block; position: relative; }
.pcard b { font-weight: 500; display: block; }
.pcard .meta { display: block; font-size: 11.5px; color: var(--soft); margin-top: 2px; }
.pcard .rsn { margin-top: 6px; display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.pcard.stale { border-color: var(--bad); }
.pcard .stalebadge { font-size: 11px; color: var(--bad); margin-top: 5px; }
.detail { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; width: 320px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 34px rgba(42,20,16,.22); padding: 14px; text-align: left; }
.detail h3 { margin-bottom: 4px; }
.detail .cards { grid-template-columns: 1fr 1fr; }
.detail .cards button { font-size: 12px; padding: 8px; }

.outlets { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--paper); text-align: left; position: relative; }
.tile .lbl { font-size: 12px; color: var(--soft); display: block; }
.tile .val { font-size: 15px; font-weight: 600; display: block; margin-top: 2px; }
.tile.ok { border-left: 4px solid var(--ok); } .tile.warn { border-left: 4px solid var(--warn); } .tile.bad { border-left: 4px solid var(--bad); }
.needs .n { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); align-items: center; }
.needs .n:last-child { border-bottom: 0; }
.needs .n b { font-weight: 500; } .needs .n span { display: block; font-size: 12px; color: var(--soft); }
.split { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 6px 0; }
.split .e { background: #8B7AA8; } .split .i { background: var(--warn); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--soft); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.pinbox { display: inline-flex; align-items: center; gap: 6px; }
.pinbox code { font-family: inherit; letter-spacing: .2em; min-width: 46px; }
.eye { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 2px 6px; font-size: 12px; }
.score { font-size: 28px; font-weight: 600; }
.chk { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.chk .seg2 button { padding: 3px 10px; }

/* Meeting view: bigger text, left tab and right panel hidden */
body.meeting .cols { grid-template-columns: 0 minmax(0, 1fr) 0; }
body.meeting .lefttab, body.meeting .rightpanel { display: none; }
body.meeting .center { font-size: 17px; padding: 28px 48px; }
body.meeting .tile .val { font-size: 20px; }

/* ===== Review: numbered circles (Feroz's review method, 4 Nov 2026) ===== */
.rv { position: relative; }
.rvdot { position: absolute; z-index: 50; width: 24px; height: 24px; border-radius: 50%; background: var(--logo); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.25); pointer-events: none; font-family: 'Open Sauce One', system-ui, sans-serif; font-style: normal; }
.rvring { outline: 2px solid var(--logo); outline-offset: 3px; border-radius: 8px; }
.revpanel { position: fixed; top: 38px; right: 0; bottom: 0; width: 420px; background: var(--paper); border-left: 1px solid var(--line); box-shadow: -10px 0 30px rgba(0,0,0,.12); z-index: 100; overflow-y: auto; padding: 14px 16px; font-size: 13px; }
.revpanel ol { list-style: none; padding: 0; margin: 0; }
.revpanel li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.revnum { width: 24px; height: 24px; border-radius: 50%; background: var(--logo); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.revrec { display: block; margin-top: 3px; color: var(--ok); font-weight: 500; font-size: 12px; }
.revscr { display: block; font-size: 11px; color: var(--soft); text-transform: uppercase; letter-spacing: .05em; margin-top: 10px; }

/* Shot mode: the screen plus a notes column, for the review pictures */
body.shot { background: #efe9e2; }
body.shot .demobar { display: none; }
body.shot .shotwrap { display: flex; align-items: flex-start; }
body.shot .shotwrap > .appcol { flex: 1; min-width: 0; }
body.shot .notes { width: 430px; flex: none; background: var(--paper); border-left: 1px solid var(--line); padding: 20px 20px 30px; min-height: 100vh; }
body.shot .notes h2 { font-size: 17px; margin-bottom: 2px; }
body.shot .notes .sub { font-size: 12px; color: var(--soft); margin-bottom: 14px; }
body.shot .notes li { grid-template-columns: 30px 1fr; }
body.shot .desk { min-height: 900px; }

#rvlayer { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 90; pointer-events: none; }
body.shot.cap .phone { max-height: 1420px; }
body.shot.cap .ph-body { overflow: hidden; }

/* 18 Nov 2026 revision: Android tablet first (Feroz: "staff will log in to this on android tab so the display should fit such"). */
.phone.tablet { width: 1180px; min-height: 760px; border-radius: 22px; }
.phone.tablet.portrait { width: 800px; min-height: 1180px; }
.phone.tablet .ph-body { padding: 20px 28px 96px; }
.phone.tablet .clist, .phone.tablet .count-head, .phone.tablet .prog { max-width: 860px; margin-left: auto; margin-right: auto; }
.crow { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); border-radius: 8px; cursor: text; }
.crow.has { background: var(--tint); }
.crow .nm { flex: 1; min-width: 0; }
.crow .nm b { display: block; font-weight: 500; font-size: 16px; }
.crow .nm span { font-size: 12px; color: var(--soft); }
.crow .st { min-width: 104px; text-align: right; }
.cin { width: 92px; height: 48px; font: 600 22px/1 inherit; text-align: center; border: 1.5px solid var(--leather); border-radius: 10px; background: var(--paper); color: inherit; }
.cin:focus { outline: 3px solid var(--leather); outline-offset: 1px; }
.phone:not(.tablet) .cin { width: 76px; height: 44px; font-size: 20px; }
.phone:not(.tablet) .crow .st { min-width: 0; }
.qrcard { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 4px 0 18px; background: var(--paper); }
.qrcard .qr { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mnote { font-size: 12px; color: var(--soft); background: var(--tint); border-radius: 10px; padding: 8px 10px; margin-bottom: 12px; }
table.t.list input.led { width: 100%; min-width: 60px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: var(--paper); }
table.t.list input.led.n { width: 64px; text-align: right; }
table.t.list td.ord button { width: 26px; height: 26px; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; margin-right: 2px; }
table.t.list tr.gr td { background: var(--tint); }
/* Barista row: Item | Unopened to count | Number (Feroz, 18 Nov 2026, 04:30 and 04:32 MYT). Nothing else on the row. */
.chead, .crow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 96px; align-items: center; gap: 14px; }
.chead { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); padding: 6px 10px; border-bottom: 2px solid var(--line); }
.chead span:last-child { text-align: center; }
.crow .nm { font-size: 16px; font-weight: 500; }
.crow .un { font-size: 15px; color: var(--ink, inherit); }
.phone:not(.tablet) .chead, .phone:not(.tablet) .crow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 76px; gap: 8px; }
.phone:not(.tablet) .crow .nm, .phone:not(.tablet) .crow .un { font-size: 14px; }
.lockphone { background: linear-gradient(160deg, #3a1d16, #1b0d0a); }
.lock { padding: 70px 18px 40px; }
.lock-time { color: #fff; font-size: 64px; font-weight: 300; text-align: center; line-height: 1; }
.lock-date { color: #e9dccf; text-align: center; margin: 6px 0 26px; }
.notif { display: block; width: 100%; text-align: left; background: rgba(255,255,255,.92); border: 0; border-radius: 16px; padding: 12px 14px; color: #1b0d0a; font: inherit; cursor: pointer; }
.notif .ap { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #6b5a52; margin-bottom: 4px; }
.notif b { display: block; font-size: 14px; margin-bottom: 2px; }
.notif > span:last-child { font-size: 13px; line-height: 1.35; }
.slow { font-size: 11px; color: var(--warn, #9a6a1a); margin-top: 3px; text-align: right; white-space: nowrap; }
.buyform { display: inline-flex; gap: 6px; align-items: center; }
.buyform input { width: 64px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; font: inherit; text-align: right; }

/* 18 Nov 2026, 05:34 MYT: the count on the tablet itself, phone code beside it; restock entry and spend. */
.qrmini { display: flex; gap: 12px; align-items: center; float: right; max-width: 330px; margin: 0 0 8px 16px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.qrmini b { display: block; font-size: 14px; }
.phone.tablet.portrait .qrmini { float: none; margin: 0 0 10px; max-width: none; }
.rsform { display: grid; gap: 12px; max-width: 460px; }
.rsform .field { display: grid; gap: 6px; margin: 0; }
.rsform .field > span:first-child { font-size: 13px; color: var(--soft); }
.rsform input { height: 46px; padding: 0 12px; border: 1.5px solid var(--leather); border-radius: 10px; font: 500 17px/1 inherit; background: var(--paper); color: inherit; }
.rsform .rm { display: flex; align-items: center; gap: 8px; }
.rsform .rm input { flex: 1; }
.rscalc { background: var(--tint); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.rscalc div { display: flex; justify-content: space-between; gap: 10px; }
.qrmini { float: none; max-width: none; margin: 0 0 12px; }
.phone.tablet .qrmini { max-width: 860px; margin: 0 auto 12px; }

/* Confirm pop-up and receipt (Feroz, 18 Nov 2026, 05:37 MYT). */
.confirmpop { min-width: 340px; }
.confirmpop table.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.confirmpop table.kv td { padding: 4px 0; border-bottom: 1px solid var(--line); }
.confirmpop table.kv td:first-child { color: var(--soft); width: 45%; }
.receipt { font-weight: 600; margin: 14px 0 2px; }

/* ---------- The app (release 1). Phone first; the tab and computer get more room. ---------- */
.loading { padding: 40px 20px; text-align: center; color: var(--soft); }
.brand-sub { font-weight: 400; color: #d9c8b8; }
.msg { background: var(--badbg); color: var(--bad); border-radius: 10px; padding: 8px 12px; margin: 10px 0; }
.tc { text-align: center; } .gap { margin-top: 22px; }
.solo { min-height: 100vh; background: var(--paper2); }
.solo-top { background: var(--ink); color: #f6efe5; padding: 14px 18px; }
.solo-body { max-width: 520px; margin: 0 auto; padding: 22px 16px; display: grid; gap: 14px; }
.row-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.row-form input, .row-form select, .grid-form input { height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); min-width: 0; }
.row-form input { flex: 1 1 140px; }
.grid-form { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 6px 0 10px; }
.grid-form label { display: grid; gap: 4px; font-size: 13px; color: var(--soft); }
.checks { display: flex; flex-wrap: wrap; gap: 14px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ink); }
.card.staff.off { opacity: .6; }
.paircode { font-size: 18px; margin: 12px 0 0; }
.paircode b { font-size: 26px; letter-spacing: .12em; }
.tablewrap { overflow-x: auto; }
table.t.list .pre { font-size: 11px; color: var(--soft); display: block; }
.tabframe { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.tabframe .ph-body { flex: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 18px 16px 40px; }
.center-col { max-width: 420px !important; }
.desk { min-height: 100vh; }
@media (min-width: 640px) { .grid-form { grid-template-columns: 1fr 1fr; align-items: end; } }
/* Phone: the left tab becomes a scrolling strip under the top bar, so the centre keeps the width. */
@media (max-width: 799px) {
  .ops-cols { display: block !important; }
  .ops-cols .lefttab { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); position: static; height: auto; }
  .ops-cols .lefttab .lt-h { display: none; }
  .ops-cols .lefttab button { flex: none; width: auto; }
  .ops-cols .center { padding: 14px 12px 40px; }
  .center-head { flex-wrap: wrap; gap: 8px; }
}
.grid-form input[type="checkbox"], .row-form input[type="checkbox"] { width: 20px; height: 20px; flex: none; padding: 0; }
/* Phone: each stock item becomes a small card (name on top; unit and minimum side by side; order, restock to, remove below). */
@media (max-width: 799px) {
  table.t.list, table.t.list tbody { display: block; }
  table.t.list tr:first-child { display: none; }
  table.t.list tr { display: grid; grid-template-columns: 1fr 96px; gap: 6px 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  table.t.list tr.gr { display: block; padding: 8px 6px; }
  table.t.list td { display: block; border: 0; padding: 0; }
  table.t.list td:nth-child(2) { grid-column: 1 / -1; order: 1; }
  table.t.list td:nth-child(3) { order: 2; }
  table.t.list td:nth-child(4) { order: 3; text-align: left; }
  table.t.list td:nth-child(4)::before { content: 'Minimum'; display: block; font-size: 11px; color: var(--soft); }
  table.t.list td:nth-child(1) { order: 4; }
  table.t.list td:nth-child(5) { order: 5; text-align: left; font-size: 12px; color: var(--soft); }
  table.t.list td:nth-child(5)::before { content: 'Restock to '; }
  table.t.list td:nth-child(6) { order: 6; grid-column: 1 / -1; }
  table.t.list input.led { width: 100%; }
  table.t.list input.led.n { width: 100%; text-align: left; }
}
.grid-form label.check { display: inline-flex; grid-template-columns: none; color: var(--ink); font-size: 14px; }
.tabframe .ph-foot { position: sticky; left: auto; right: auto; bottom: 0; z-index: 30; }
.tabframe .ph-foot .pop-anchor { width: 100%; }
.tabframe .ph-foot .btn.wide { display: flex; width: 100%; }
/* Release 3: buying. */
.ok-text { color: var(--ok); margin: 8px 0 0; }
.sub-h { margin: 14px 0 6px; font-size: 14px; }
.rsform { display: grid; gap: 12px; max-width: 520px; }
/* Phone: nothing may be wider than the screen (16 px side gutter, no sideways page scroll). */
.desk, .desk > *, .ops-cols, .ops-cols .center, .card { min-width: 0; max-width: 100%; }
@media (max-width: 799px) {
  .desk { grid-template-columns: minmax(0, 1fr); }
  .topbar { gap: 10px; padding: 0 12px; }
  .topbar .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .center-head .seg2 { max-width: 100%; overflow-x: auto; }
}
/* Release 4: notifications. */
.notice { background: var(--warnbg); color: var(--warn); border-radius: 10px; padding: 10px 14px; font-weight: 500; }
.topbar .bellbtn { margin-left: auto; background: transparent; color: #f6efe5; border-color: #8a6a5e; }
.topbar .bell { margin-left: auto; }
.open-name { min-width: 130px; }
/* Feroz, 18 Nov 2026, 06:46: anything clickable looks clickable (button style); plain tiles must not look like buttons.
   The steps only show progress, so they are a flat line with an underline for the current step, not boxes. */
.steps .st { border: 0 !important; background: transparent !important; border-radius: 0 !important; box-shadow: none !important; cursor: default; border-bottom: 3px solid var(--line) !important; }
.steps .st.now { border-bottom-color: var(--leather) !important; }
.steps .st.done { border-bottom-color: var(--ok) !important; color: var(--soft); }
.btn.sm.gap { margin-top: 18px; }
td .btn.sm { white-space: nowrap; }
@media (max-width: 799px) { .topbar .bellbtn { font-size: 11px; padding: 4px 9px; white-space: nowrap; } .topbar .who b + * , .topbar .who { max-width: 70px; } }
/* R5a: Urgent on the tab; Today in the back office. */
.foot-row { display: flex; gap: 8px; align-items: stretch; max-width: 900px; margin: 0 auto; }
.foot-row .grow { flex: 1; }
.urg-anchor { flex: none; width: 120px; }
.urgpop { left: auto; right: 0; width: min(360px, 90vw); }
.urgnote { width: 100%; margin: 10px 0; padding: 8px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.urgrow { padding: 10px 0; border-bottom: 1px solid var(--line); }
.urgrow:last-child { border-bottom: 0; }
.tabframe .ph-foot .pop-anchor.grow { flex: 1; width: auto; }
.tabframe .ph-foot .urg-anchor { flex: none; width: 130px; max-width: 130px; margin: 0; }
.grid-form select { height: 44px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); }
.stageform { display: grid; gap: 8px; margin-top: 8px; } .wide-in { width: 100%; height: 40px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; } td.btns { white-space: nowrap; }
@media (max-width: 799px) { td.btns { white-space: normal; } td.btns .btn { display: inline-flex; margin: 2px 0; } }
.extras-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; } .sect-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); margin: 22px 0 4px; }
.mvrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line, #e7ddd3); } .mvrow:first-of-type { border-top: 0; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 8px 0 14px; }
.inline-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.asect { font-size: 14px; margin: 18px 0 4px; }
.chk { flex-wrap: wrap; }
.afoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.cleancard { border-color: var(--leather); }
.cleancard label { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 12px; }
.hrow { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.hrow:first-of-type { border-top: 0; }
.hrow .inline-form { margin: 0; }
.hnums { display: flex; gap: 16px; }
.hnums > span { display: flex; flex-direction: column; align-items: flex-end; }
.done.tc { color: var(--ok, #2f5d46); }
@media (max-width: 600px) { .hrow { grid-template-columns: 1fr; } .hnums > span { align-items: flex-start; } }
.hrow > .chip { justify-self: end; } @media (max-width: 600px) { .hrow > .chip { justify-self: start; } }
.btnrow { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cashform { margin: 4px 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font: inherit; color: inherit; }
.tile b { font-size: 15px; }
.tile .tview { font-size: 12px; text-decoration: underline; color: var(--soft); }
.tile.ok { border-left: 5px solid #2f6b4f; } .tile.warn { border-left: 5px solid #b07a1f; background: #fdf6ea; } .tile.bad { border-left: 5px solid #a3302a; background: #fbeeed; }
.tile:hover, .tile:focus-visible { box-shadow: 0 2px 8px rgba(43, 22, 12, .12); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.mvrow .btn, .btnrow .btn { white-space: nowrap; flex-shrink: 0; }
