/* Layout: steel-tiffin office mess. Navy command bar, menu wall on the left, the day's plate on the right; ledger views are dense tables. */
:root{
  --bg:#E6E9ED; --surface:#FFFFFF; --surface-2:#F2F4F6; --ink:#111821; --muted:#5A6572; --line:#D3D9E0;
  --navy:#0D2137; --navy-2:#163150; --on-navy:#F1F4F8;
  --turmeric:#E59E00; --turmeric-soft:#FFF1CC; --turmeric-ink:#3B2700;
  --chilli:#D2362B; --chilli-soft:#FDE6E3; --leaf:#16853B; --leaf-soft:#DDF3E3; --nonveg:#8A3B12;
  --display:"Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body:"Figtree", "Segoe UI", system-ui, sans-serif;
  --r:14px; --shadow:0 1px 2px rgba(13,33,55,.06), 0 6px 20px rgba(13,33,55,.06);
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0A0F15; --surface:#121A23; --surface-2:#18222D; --ink:#E7ECF1; --muted:#93A0AE; --line:#243140;
    --navy:#071321; --navy-2:#10263D; --on-navy:#EAF0F6;
    --turmeric:#F5B22B; --turmeric-soft:#3A2B07; --turmeric-ink:#FFE9B3;
    --chilli:#FF5D50; --chilli-soft:#3B1613; --leaf:#3CC06A; --leaf-soft:#0F2E1A; --nonveg:#E0844F;
    --shadow:0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0A0F15; --surface:#121A23; --surface-2:#18222D; --ink:#E7ECF1; --muted:#93A0AE; --line:#243140;
  --navy:#071321; --navy-2:#10263D; --on-navy:#EAF0F6;
  --turmeric:#F5B22B; --turmeric-soft:#3A2B07; --turmeric-ink:#FFE9B3;
  --chilli:#FF5D50; --chilli-soft:#3B1613; --leaf:#3CC06A; --leaf-soft:#0F2E1A; --nonveg:#E0844F;
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme:dark;
}
*{box-sizing:border-box}
html,body{margin:0}
html,body{overflow-x:clip}
.acc-grid > *, .kitchen > *, .order > *, .set-grid > *{min-width:0}
.acc-grid > div{grid-template-columns:minmax(0,1fr)}
body{background:var(--bg); color:var(--ink); font-family:var(--body); font-size:15px; line-height:1.45; -webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit; color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--turmeric); outline-offset:2px; border-radius:6px}
h1,h2,h3,h4{font-family:var(--display); margin:0; text-wrap:balance; letter-spacing:-.01em}
.num{font-variant-numeric:tabular-nums}
.muted{color:var(--muted)}
.wrap{max-width:1320px; margin:0 auto; padding:0 20px}

/* top bar */
.bar{background:var(--navy); color:var(--on-navy); position:sticky; top:0; z-index:20; padding-top:env(safe-area-inset-top)}
.bar-in{display:flex; align-items:center; gap:18px; min-height:66px; flex-wrap:wrap; padding-top:8px; padding-bottom:8px}
.brand{display:flex; align-items:center; gap:12px; margin-right:auto}
.brand svg{flex:none}
.brand b{font-family:var(--display); font-size:22px; font-weight:800; letter-spacing:-.02em; display:block; line-height:1}
.brand small{font-size:12px; opacity:.7; letter-spacing:.02em}
.tabs{display:flex; gap:4px; background:var(--navy-2); padding:4px; border-radius:12px}
.tab{border:0; background:transparent; color:var(--on-navy); opacity:.75; padding:8px 14px; border-radius:9px; font-weight:600; display:flex; gap:8px; align-items:center}
.tab:hover{opacity:1}
.tab[aria-selected="true"]{background:var(--turmeric); color:#2A1C00; opacity:1}
.badge{min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:var(--chilli); color:#fff; font-size:12px; font-weight:700; display:inline-grid; place-items:center}
.me{display:flex; align-items:center; gap:10px}
.iconbtn{position:relative; width:40px; height:40px; border-radius:10px; border:1px solid rgba(255,255,255,.16); background:transparent; color:var(--on-navy); display:grid; place-items:center}
.iconbtn .badge{position:absolute; top:-6px; right:-6px}
.mechip{border:1px solid rgba(255,255,255,.16); background:transparent; color:var(--on-navy); border-radius:10px; padding:5px 10px; text-align:left; line-height:1.2}
.mechip small{display:block; opacity:.65; font-size:11px}
.status{font-size:12px; padding:3px 8px; border-radius:20px; background:rgba(255,255,255,.1)}
.status.live::before{content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background:#4ADE80; margin-right:6px; vertical-align:1px}

/* date strip */
.days{display:flex; align-items:center; gap:8px; padding:16px 0 6px; flex-wrap:wrap}
.days .strip{display:flex; gap:6px; flex:1; min-width:0; overflow-x:auto; padding-top:10px; padding-bottom:4px}
.day{flex:1 0 64px; border:1px solid var(--line); background:var(--surface); border-radius:12px; padding:7px 6px; text-align:center; position:relative}
.day b{display:block; font-family:var(--display); font-size:20px; line-height:1.1}
.day small{font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em}
.day[aria-pressed="true"]{background:var(--ink); color:var(--bg); border-color:var(--ink)}
.day[aria-pressed="true"] small{color:inherit; opacity:.7}
.day.today::after{content:"Today"; position:absolute; top:-8px; left:50%; transform:translateX(-50%); background:var(--turmeric); color:#2A1C00; font-size:10px; font-weight:700; padding:0 6px; border-radius:6px}
.day .dot{position:absolute; bottom:5px; right:7px; width:6px; height:6px; border-radius:50%; background:var(--leaf)}
.navbtn{border:1px solid var(--line); background:var(--surface); border-radius:10px; width:38px; height:38px; display:grid; place-items:center}
.btn{border:1px solid var(--line); background:var(--surface); border-radius:10px; padding:9px 14px; font-weight:600; display:inline-flex; gap:8px; align-items:center; justify-content:center}
.btn:hover{border-color:var(--muted)}
.btn.primary{background:var(--turmeric); border-color:var(--turmeric); color:#2A1C00}
.btn.ink{background:var(--ink); border-color:var(--ink); color:var(--bg)}
.btn.danger{color:var(--chilli); border-color:color-mix(in srgb, var(--chilli) 40%, var(--line))}
.btn.sm{padding:5px 10px; font-size:13px; border-radius:8px; white-space:nowrap}
.btn[disabled]{opacity:.45; cursor:not-allowed}

main{padding-bottom:60px}
.banner{margin:14px 0 0; padding:10px 14px; border-radius:10px; background:var(--turmeric-soft); color:var(--turmeric-ink); font-size:14px}
.card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow)}
.card-h{display:flex; align-items:center; gap:10px; padding:16px 18px 0; flex-wrap:wrap}
.card-h h3{font-size:18px; margin-right:auto}
.card-b{padding:14px 18px 18px}
.eyebrow{font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted)}

/* order view */
.order{display:grid; grid-template-columns:minmax(0,1fr) 370px; gap:22px; margin-top:14px; align-items:start}
.meals{display:grid; grid-template-columns:repeat(3,1fr); gap:10px}
.meal{border:2px solid var(--line); background:var(--surface); border-radius:14px; padding:12px 14px; text-align:left; display:grid; gap:2px}
.meal b{font-family:var(--display); font-size:19px}
.meal small{font-size:12.5px; color:var(--muted)}
.meal[aria-pressed="true"]{border-color:var(--ink); box-shadow:inset 0 -4px 0 var(--turmeric)}
.meal .closed{color:var(--chilli); font-weight:600}
.meal .open{color:var(--leaf); font-weight:600}
.chips{display:flex; gap:8px; flex-wrap:wrap; margin:16px 0 4px}
.chip{border:1px solid var(--line); background:var(--surface); border-radius:30px; padding:6px 12px; font-size:13.5px; font-weight:600; display:inline-flex; align-items:center; gap:7px}
.chip i{width:9px; height:9px; border-radius:50%; background:var(--v,var(--muted))}
.chip[aria-pressed="true"]{background:var(--ink); color:var(--bg); border-color:var(--ink)}
.vendor-block{margin-top:20px}
.vendor-h{display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; padding-bottom:10px; border-bottom:3px solid var(--v)}
.vendor-h h3{font-size:21px}
.vendor-h .tag{font-size:13px; color:var(--muted); margin-right:auto}
.pill{font-size:12px; font-weight:700; padding:3px 9px; border-radius:20px; background:var(--surface-2); color:var(--muted)}
.pill.ok{background:var(--leaf-soft); color:var(--leaf)}
.pill.no{background:var(--chilli-soft); color:var(--chilli)}
.pill.warn{background:var(--turmeric-soft); color:var(--turmeric-ink)}
.dishes{display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; margin-top:12px}
.dish{background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:14px; display:flex; flex-direction:column; gap:10px; position:relative; overflow:hidden; min-height:150px}
.dish::before{content:""; position:absolute; inset:0 0 auto 0; height:4px; background:var(--v)}
.dish h4{font-family:var(--body); font-weight:700; font-size:15.5px; line-height:1.3}
.dish .foot{margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:8px}
.price{font-family:var(--display); font-weight:800; font-size:24px; letter-spacing:-.02em}
.dish.out{opacity:.55}
.dish.out .price{text-decoration:line-through}
.dish.in-plate{border-color:var(--ink); box-shadow:0 0 0 1px var(--ink)}
.vm{width:16px; height:16px; border:2px solid var(--leaf); border-radius:3px; display:inline-grid; place-items:center; flex:none}
.vm::after{content:""; width:7px; height:7px; border-radius:50%; background:var(--leaf)}
.vm.nv{border-color:var(--nonveg)}
.vm.nv::after{border-radius:0; width:0; height:0; background:none; border-left:4px solid transparent; border-right:4px solid transparent; border-bottom:7px solid var(--nonveg)}
.add{border:0; background:var(--ink); color:var(--bg); border-radius:9px; padding:7px 14px; font-weight:700}
.add[disabled]{background:var(--surface-2); color:var(--muted); cursor:not-allowed}
.step{display:inline-flex; align-items:center; border:2px solid var(--ink); border-radius:10px; overflow:hidden}
.step button{border:0; background:transparent; width:30px; height:30px; font-weight:800; font-size:17px}
.step span{min-width:22px; text-align:center; font-weight:800}
.empty{padding:34px 20px; text-align:center; color:var(--muted); border:2px dashed var(--line); border-radius:14px; margin-top:18px}
.empty b{display:block; color:var(--ink); font-family:var(--display); font-size:19px; margin-bottom:4px}

.plate{position:sticky; top:84px; display:grid; gap:16px}
.ringwrap{display:flex; gap:16px; align-items:center}
.ring{flex:none}
.ring .big{font-family:var(--display); font-weight:800; font-size:30px; fill:var(--ink)}
.ring .sm{font-size:12px; fill:var(--muted)}
.split{display:grid; gap:6px; flex:1; font-size:14px}
.split div{display:flex; justify-content:space-between; gap:8px}
.split .ded{color:var(--chilli); font-weight:700}
.lines{display:grid; gap:2px; margin-top:12px}
.lgroup{font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); margin-top:10px}
.lrow{display:grid; grid-template-columns:1fr auto auto; gap:10px; align-items:center; padding:7px 0; border-bottom:1px dashed var(--line); font-size:14px}
.lrow .v{font-size:12px; color:var(--muted)}
.lrow.rej{opacity:.75}
.lrow.rej .nm{text-decoration:line-through}
.stat{font-size:11px; font-weight:700; padding:2px 7px; border-radius:6px; white-space:nowrap}
.stat.placed{background:var(--surface-2); color:var(--muted)}
.stat.accepted{background:var(--turmeric-soft); color:var(--turmeric-ink)}
.stat.delivered{background:var(--leaf-soft); color:var(--leaf)}
.stat.rejected{background:var(--chilli-soft); color:var(--chilli)}
.consent{display:flex; gap:10px; align-items:flex-start; padding:12px; border-radius:10px; background:var(--chilli-soft); color:var(--ink); font-size:13.5px; margin-top:12px}
.consent input{margin-top:3px; accent-color:var(--chilli); width:17px; height:17px}
.go{width:100%; margin-top:12px; padding:13px; font-size:16px}
.note{font-size:12.5px; color:var(--muted); margin-top:8px; text-align:center}
.mini{display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:4px}
.mini div{background:var(--surface-2); border-radius:10px; padding:9px 10px}
.mini b{display:block; font-family:var(--display); font-size:19px}
.mini small{font-size:11.5px; color:var(--muted)}
.mini .red b{color:var(--chilli)}

/* kitchen */
.kitchen{display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.25fr); gap:22px; margin-top:16px; align-items:start}
.form-row{display:grid; grid-template-columns:1fr 92px 120px 96px auto; gap:8px}
.inp{border:1px solid var(--line); background:var(--surface-2); border-radius:9px; padding:8px 10px; width:100%; min-width:0}
.inp:focus{border-color:var(--ink); outline:none; background:var(--surface)}
textarea.inp{min-height:180px; resize:vertical; font-family:ui-monospace, monospace; font-size:13px}
.mrow{display:grid; grid-template-columns:auto 1fr auto auto auto; gap:10px; align-items:center; padding:9px 0; border-bottom:1px solid var(--line)}
.mrow .nm{font-weight:600}
.toggle{display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; cursor:pointer; user-select:none}
.toggle input{-webkit-appearance:none; appearance:none; width:38px; height:22px; border-radius:20px; background:var(--line); position:relative; transition:background .2s; margin:0; cursor:pointer}
.toggle input::after{content:""; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; transition:left .2s; box-shadow:0 1px 2px rgba(0,0,0,.3)}
.toggle input:checked{background:var(--leaf)}
.toggle input:checked::after{left:19px}
.gate{display:grid; grid-template-columns:repeat(3,1fr); gap:10px}
.gate .g{border:1px solid var(--line); border-radius:12px; padding:12px; display:grid; gap:8px; background:var(--surface-2)}
.gate .g.shut{background:var(--chilli-soft); border-color:color-mix(in srgb, var(--chilli) 35%, var(--line))}
.gate .g b{font-family:var(--display); font-size:16px}
.meter{height:7px; border-radius:6px; background:var(--line); overflow:hidden}
.meter i{display:block; height:100%; background:var(--turmeric)}
.meter.full i{background:var(--chilli)}
.kpis{display:grid; grid-template-columns:repeat(4,1fr); gap:10px}
.kpi{background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:14px 16px}
.kpi small{font-size:12px; color:var(--muted); font-weight:600}
.kpi b{display:block; font-family:var(--display); font-size:28px; font-weight:800; letter-spacing:-.02em; line-height:1.15}
.kpi.hot{background:var(--chilli); border-color:var(--chilli); color:#fff}
.kpi.hot small{color:#fff; opacity:.85}
.kpi.gold{background:var(--turmeric); border-color:var(--turmeric); color:#2A1C00}
.kpi.gold small{color:#2A1C00; opacity:.75}
.prep{display:grid; gap:6px}
.prep .p{display:flex; justify-content:space-between; gap:10px; padding:8px 12px; border-radius:10px; background:var(--surface-2); font-weight:600}
.prep .p b{font-family:var(--display); font-size:18px}
.ticket{border:1px solid var(--line); border-radius:12px; padding:12px 14px; display:grid; gap:8px; background:var(--surface)}
.ticket.new{border-color:var(--turmeric); box-shadow:0 0 0 2px var(--turmeric-soft); animation:pulse 1.6s ease 2}
@keyframes pulse{50%{box-shadow:0 0 0 6px var(--turmeric-soft)}}
.ticket-h{display:flex; gap:8px; align-items:baseline; flex-wrap:wrap}
.ticket-h b{font-size:15px}
.ticket-h small{color:var(--muted)}
.tline{display:grid; grid-template-columns:1fr auto auto; gap:8px; align-items:center; font-size:14px}
.tline .acts{display:flex; gap:6px}
.tickets{display:grid; gap:10px}

/* ledger styles */
.acc-top{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:18px}
.seg{display:flex; gap:3px; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:3px; flex-wrap:wrap}
.segb{border:0; background:transparent; padding:7px 12px; border-radius:9px; font-weight:600; font-size:14px; color:var(--muted)}
.segb[aria-pressed="true"]{background:var(--ink); color:var(--bg)}
.acc-range{display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; margin-top:14px; padding:12px 14px; background:var(--surface); border:1px solid var(--line); border-radius:14px}
.rfield{display:grid; gap:3px}
.acc-exports{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; margin-top:10px}
.rfield label{font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.06em}
.rfield .inp{width:auto}
tr.clk[aria-selected="true"] td{background:var(--turmeric-soft)}
.headline{font-family:var(--display); font-size:clamp(24px,3.2vw,38px); font-weight:800; letter-spacing:-.025em; line-height:1.08; margin:18px 0 16px; max-width:30ch}
.headline em{font-style:normal; color:var(--chilli)}
.kpis.five{grid-template-columns:repeat(5,1fr)}
.acc-grid{display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:20px; margin-top:20px; align-items:start}
.tbl-wrap{overflow-x:auto}
table{width:100%; border-collapse:collapse; font-size:14px}
th{font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); text-align:left; font-weight:700; padding:8px 10px; border-bottom:2px solid var(--line); white-space:nowrap}
th.r, td.r{text-align:right}
td.nw{white-space:nowrap}
td{padding:9px 10px; border-bottom:1px solid var(--line); font-variant-numeric:tabular-nums; vertical-align:top}
tr.clk{cursor:pointer}
tr.clk:hover td{background:var(--surface-2)}
td.ded{color:var(--chilli); font-weight:700}
tr.sub td{background:var(--surface-2); font-size:13px}
tfoot td{font-weight:800; border-top:2px solid var(--ink); border-bottom:0}
.chart svg{width:100%; height:auto; display:block}
.legend{display:flex; gap:16px; font-size:13px; color:var(--muted); flex-wrap:wrap}
.legend i{display:inline-block; width:11px; height:11px; border-radius:3px; margin-right:6px; vertical-align:-1px}

/* settings */
.set-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:20px; margin-top:18px; align-items:start}
.field{display:grid; gap:5px; margin-bottom:12px}
.field label{font-size:13px; font-weight:600; color:var(--muted)}
.vrow{display:grid; grid-template-columns:38px 1.2fr 1.5fr 1fr auto; gap:8px; align-items:center; padding:8px 0; border-bottom:1px solid var(--line)}
.vrow input[type=color]{width:38px; height:36px; border:1px solid var(--line); border-radius:8px; padding:2px; background:var(--surface)}

details.tl{margin-top:14px; font-size:13px}
details.tl summary{cursor:pointer; font-weight:700; color:var(--muted)}
details.tl ol{list-style:none; margin:8px 0 0; padding:0 0 0 12px; border-left:2px solid var(--line); display:grid; gap:6px}
details.tl li{position:relative}
details.tl li::before{content:""; position:absolute; left:-17px; top:6px; width:8px; height:8px; border-radius:50%; background:var(--turmeric)}
details.tl li span.num{color:var(--muted); margin-right:6px}
/* overlays */
.scrim{position:fixed; inset:0; background:rgba(7,19,33,.55); display:grid; place-items:center; z-index:50; padding:16px}
.modal{background:var(--surface); border-radius:18px; width:min(520px,100%); max-height:90vh; overflow:auto; box-shadow:0 30px 80px rgba(0,0,0,.35)}
.modal .card-h{padding:20px 22px 0}
.modal .card-b{padding:16px 22px 22px}
.radio{display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border:1px solid var(--line); border-radius:10px; margin-bottom:8px; cursor:pointer}
.radio:has(input:checked){border-color:var(--ink); background:var(--surface-2)}
.drawer{position:fixed; top:72px; right:16px; width:min(380px,calc(100% - 32px)); max-height:70vh; overflow:auto; z-index:40}
.notice{padding:12px 16px; border-bottom:1px solid var(--line); display:grid; gap:3px; font-size:14px}
.notice.unseen{background:var(--chilli-soft)}
.notice small{color:var(--muted)}
.toasts{position:fixed; bottom:18px; left:50%; transform:translateX(-50%); display:grid; gap:8px; z-index:60; width:min(460px,calc(100% - 32px))}
.toast{background:var(--ink); color:var(--bg); padding:12px 16px; border-radius:12px; font-weight:600; box-shadow:0 10px 30px rgba(0,0,0,.25); display:flex; gap:10px; align-items:center}
.toast.bad{background:var(--chilli); color:#fff}
.toast.good{background:var(--leaf); color:#fff}
.imports{display:grid; grid-template-columns:repeat(3,1fr); gap:8px}
.imp{position:relative; border:1.5px dashed var(--line); background:var(--surface-2); border-radius:12px; padding:12px; text-align:left; display:grid; gap:3px; cursor:pointer; color:var(--ink)}
.imp:hover{border-color:var(--ink)}
.imp svg{color:var(--turmeric)}
.imp b{font-size:14px}
.imp small{font-size:12px; color:var(--muted); line-height:1.3}
.imp input[type=file]{position:absolute; inset:0; opacity:0; cursor:pointer; width:100%}
.imp.dis{opacity:.5; pointer-events:none}
.imp:focus-within{outline:3px solid var(--turmeric); outline-offset:2px}
.imp-list{max-height:45vh; overflow:auto; border:1px solid var(--line); border-radius:10px; padding:4px 12px 10px}
.who{display:grid; gap:10px}
details.rc{border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-bottom:8px}
details.rc > summary{cursor:pointer; display:flex; gap:10px; align-items:center; flex-wrap:wrap; list-style:none}
details.rc > summary::-webkit-details-marker{display:none}
details.rc[open]{background:var(--surface-2)}
.rc-meals{display:grid; grid-template-columns:repeat(3,1fr) auto; gap:8px; align-items:end; margin-top:12px}
.rc-meals .field{margin:0}
@media (max-width:760px){ .rc-meals{grid-template-columns:1fr 1fr 1fr} .rc-meals .btn{grid-column:1 / -1} }
.whob{border:2px solid var(--line); background:var(--surface); border-radius:14px; padding:14px 16px; text-align:left; display:grid; gap:4px}
.whob:hover{border-color:var(--ink)}
.whob b{font-family:var(--display); font-size:17px}
.whob small{color:var(--muted)}
.xbtn{border:0; background:transparent; font-weight:800; padding:0 2px 0 4px; color:var(--chilli)}
.tl-short,.platebar,.sheet-grip,.sheet-scrim{display:none}
.tico{display:none}
@media (max-width:1060px){
  .order,.kitchen,.acc-grid,.set-grid{grid-template-columns:minmax(0,1fr)}
  .plate{position:static}
  .kpis.five{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:760px){
  body{font-size:15px; padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  .wrap{padding-left:max(14px, env(safe-area-inset-left)); padding-right:max(14px, env(safe-area-inset-right))}
  .bar-in{min-height:56px; gap:10px; flex-wrap:nowrap}
  .brand b{font-size:19px}
  .brand small{display:none}
  .brand svg{width:30px; height:33px}
  .status{display:none}
  .mechip{display:none}
  .iconbtn{width:42px; height:42px}
  /* bottom tab bar */
  .tabs{position:fixed; left:0; right:0; bottom:0; width:100%; z-index:30; border-radius:0; background:var(--navy); padding:6px 6px calc(6px + env(safe-area-inset-bottom)); display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:2px; box-shadow:0 -6px 20px rgba(0,0,0,.18)}
  .tab{flex-direction:column; gap:2px; padding:6px 2px; font-size:11.5px; border-radius:10px; position:relative; min-height:52px; justify-content:center}
  .tab[aria-selected="true"]{background:var(--navy-2); color:var(--turmeric)}
  .tab .badge{position:absolute; top:2px; right:calc(50% - 22px)}
  .tico{display:block}
  .tl-long{display:none}
  .tl-short{display:inline}
  /* day strip */
  .days{padding-top:12px; gap:6px; flex-wrap:nowrap}
  .days .navbtn{display:none}
  .days .strip{scroll-snap-type:x mandatory}
  .day{flex:0 0 54px; scroll-snap-align:start; padding:6px 4px}
  .day b{font-size:18px}
  /* order */
  .meals{grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px}
  .meal{padding:9px 10px; border-radius:12px}
  .meal b{font-size:16px}
  .meal small{font-size:11px; line-height:1.25}
  .meal small:last-child{display:none}
  .chips{flex-wrap:nowrap; overflow-x:auto; margin-left:-14px; margin-right:-14px; padding:0 14px 4px; scrollbar-width:none}
  .chips::-webkit-scrollbar{display:none}
  .chip{flex:none}
  .chips .toggle{flex:none}
  .vendor-h h3{font-size:18px}
  .vendor-h .tag{flex-basis:100%; order:3}
  .dishes{grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px}
  .dish{padding:12px; min-height:138px; gap:8px}
  .dish h4{font-size:14px}
  .price{font-size:20px}
  .dish .foot{flex-wrap:wrap}
  .add{padding:9px 14px; min-height:40px}
  .step button{width:36px; height:38px}
  /* plate as bottom sheet */
  .platebar{display:flex; position:fixed; left:10px; right:10px; bottom:calc(72px + env(safe-area-inset-bottom)); z-index:25; align-items:center; gap:10px; background:var(--ink); color:var(--bg); border:0; border-radius:16px; padding:10px 14px; box-shadow:0 10px 30px rgba(0,0,0,.3); text-align:left}
  .platebar.over{background:var(--chilli); color:#fff}
  .pb-ring{width:30px; height:30px; border-radius:50%; flex:none; background:conic-gradient(var(--turmeric) calc(var(--p)*1%), rgba(255,255,255,.2) 0)}
  .platebar.over .pb-ring{background:conic-gradient(#fff 100%, #fff 0)}
  .pb-txt{flex:1; min-width:0; line-height:1.2}
  .pb-txt b{font-family:var(--display); font-size:19px}
  .pb-txt small{opacity:.8; font-size:12px; display:block}
  .pb-go{font-weight:700; font-size:13.5px; white-space:nowrap}
  .order{padding-bottom:70px}
  .sheet-scrim{display:block; position:fixed; inset:0; background:rgba(7,19,33,.5); z-index:34}
  .plate{position:fixed; left:0; right:0; bottom:0; z-index:35; max-height:88vh; overflow:auto; transform:translateY(105%); transition:transform .25s ease; background:var(--bg); border-radius:20px 20px 0 0; padding:6px 10px calc(16px + env(safe-area-inset-bottom)); gap:10px; box-shadow:0 -10px 40px rgba(0,0,0,.3); top:auto}
  .plate.open{transform:none}
  .sheet-grip{display:block; width:44px; height:5px; border-radius:3px; background:var(--line); margin:6px auto 4px; cursor:pointer}
  .ring{width:120px; height:120px}
  /* kitchen */
  .gate{grid-template-columns:minmax(0,1fr)}
  .gate .g{grid-template-columns:1fr auto; align-items:center}
  .gate .g b{grid-column:1}
  .gate .g .toggle{grid-column:2; grid-row:1}
  .gate .g > div, .gate .g small, .gate .meter{grid-column:1 / -1}
  .imports{grid-template-columns:1fr}
  .imp{grid-template-columns:auto 1fr; column-gap:12px; align-items:center}
  .imp svg{grid-row:span 2}
  .form-row{grid-template-columns:1fr 1fr}
  .form-row input:first-child{grid-column:1 / -1}
  .form-row .btn{grid-column:1 / -1}
  .mrow{grid-template-columns:auto 1fr auto; row-gap:6px}
  .mrow .toggle{grid-column:2}
  .mrow .btn{grid-column:3}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px}
  .kpi{padding:12px}
  .kpi b{font-size:22px}
  .card-h{padding:14px 14px 0}
  .card-b{padding:12px 14px 14px}
  .card-h h3{font-size:16px; flex-basis:100%}
  .card-h .btn{flex:1}
  .tline{grid-template-columns:1fr auto; row-gap:6px; padding:6px 0; border-top:1px dashed var(--line)}
  .tline .acts{grid-column:1 / -1; flex-wrap:wrap}
  .tline .acts .btn{flex:1; min-height:38px}
  .ticket{padding:12px}
  /* accounts */
  .acc-top{margin-top:12px}
  .acc-top h2{font-size:22px!important; flex-basis:100%}
  .seg{flex-wrap:nowrap; overflow-x:auto; width:100%; scrollbar-width:none}
  .segb{flex:none}
  .acc-range{display:flex; flex-wrap:wrap; gap:8px; padding:10px}
  .acc-range .rfield{flex:1 1 40%; min-width:0}
  .acc-range .rfield:nth-of-type(3){flex-basis:100%}
  .acc-range .navbtn{order:2; flex:1; height:42px}
  .acc-range .pill{order:2; align-self:center}
  .rfield .inp{width:100%; padding:9px 8px; font-size:15px}
  .acc-exports{display:grid; grid-template-columns:1fr 1fr; justify-content:stretch}
  .acc-exports .btn{padding:10px 8px; font-size:13.5px}
  .acc-exports .btn.primary, .acc-exports .btn.ink, .acc-exports .btn.danger{grid-column:1 / -1}
  .headline{font-size:24px; margin:14px 0 12px}
  .kpis.five{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kpis.five .kpi.hot{grid-column:1 / -1}
  .tbl-wrap{margin:0 -14px; padding:0 14px}
  .tbl-wrap table{min-width:560px}
  th, td{padding:8px 8px}
  .chart .card-h .legend{flex-basis:100%}
  /* settings */
  .vrow{grid-template-columns:38px 1fr; }
  .vrow > :nth-child(n+3){grid-column:1 / -1}
  /* inputs: 16px avoids iOS zoom */
  .inp, select.inp, textarea.inp{font-size:16px; padding:10px 12px}
  .btn{min-height:42px}
  .btn.sm{min-height:36px; padding:6px 12px}
  /* dialogs become bottom sheets */
  .scrim{place-items:end stretch; padding:0}
  .modal{width:100%; max-height:92vh; border-radius:20px 20px 0 0; padding-bottom:env(safe-area-inset-bottom)}
  .drawer{top:auto; bottom:calc(72px + env(safe-area-inset-bottom)); left:8px; right:8px; width:auto; max-height:65vh}
  .toasts{bottom:calc(140px + env(safe-area-inset-bottom))}
  .banner{font-size:13.5px}
}
@media (max-width:360px){
  .dishes{grid-template-columns:1fr}
  .meal small{display:none}
}
@media (prefers-reduced-motion: reduce){ *{animation:none!important; transition:none!important} }

/* ===================== Tiffin Desk (Django) additions ===================== */
.logout{display:inline-flex; align-items:center; gap:6px; text-decoration:none; height:40px; padding:0 12px; border-radius:10px; border:1px solid rgba(255,255,255,.16); color:var(--on-navy); font-weight:600; font-size:13.5px}
.logout:hover{background:rgba(255,255,255,.08)}
.mebtn{display:none}
.rolechip{font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:3px 8px; border-radius:6px; background:var(--turmeric); color:#2A1C00}
.loading{padding:60px 0; text-align:center; color:var(--muted)}
.loading i{display:inline-block; width:26px; height:26px; border:3px solid var(--line); border-top-color:var(--turmeric); border-radius:50%; animation:spin .8s linear infinite; margin-bottom:10px}
@keyframes spin{to{transform:rotate(360deg)}}
.utbl td{vertical-align:middle}
.utbl .off td{opacity:.55}
.role-pill{font-size:11px; font-weight:700; padding:2px 8px; border-radius:20px; text-transform:uppercase; letter-spacing:.05em; white-space:nowrap}
.role-pill.r-admin{background:var(--navy-2); color:var(--on-navy)}
.role-pill.r-kitchen{background:var(--turmeric-soft); color:var(--turmeric-ink)}
.role-pill.r-employee{background:var(--leaf-soft); color:var(--leaf)}
.role-pill.r-super{background:var(--turmeric); color:var(--navy-2)}
.role-note{font-size:12.5px; margin:-4px 0 12px}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:0 12px}
.ufilter{display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:10px}
.ufilter .inp{width:auto; flex:1; min-width:160px}
.acct dl{display:grid; grid-template-columns:120px 1fr; gap:8px 12px; margin:0 0 16px; font-size:14px}
.acct dt{color:var(--muted); font-weight:600}
.acct dd{margin:0}
@media (max-width:760px){ .mebtn{display:grid} .me{gap:8px} .logout span{display:none} .logout{width:42px; justify-content:center; padding:0} .grid2{grid-template-columns:1fr} }

/* ----------------------------- auth pages ----------------------------- */
.auth{min-height:100vh; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); background:var(--bg)}
.auth-side{background:var(--navy); color:var(--on-navy); padding:48px 56px; display:flex; flex-direction:column; gap:28px; position:relative; overflow:hidden}
.auth-side::after{content:""; position:absolute; right:-120px; bottom:-120px; width:380px; height:380px; border-radius:50%; border:60px solid rgba(229,158,0,.12)}
.auth-side::before{content:""; position:absolute; right:60px; top:-80px; width:220px; height:220px; border-radius:50%; background:rgba(255,255,255,.04)}
.auth-brand{display:flex; align-items:center; gap:14px; position:relative; z-index:1}
.auth-brand b{font-family:var(--display); font-size:26px; font-weight:800; letter-spacing:-.02em; display:block; line-height:1}
.auth-brand small{opacity:.7; font-size:13px}
.auth-hero{margin-top:auto; position:relative; z-index:1; max-width:520px}
.auth-hero .rolechip{margin-bottom:16px; display:inline-block}
.auth-hero h1{font-size:clamp(30px,3.4vw,46px); line-height:1.05; font-weight:800; letter-spacing:-.03em; margin-bottom:14px}
.auth-hero h1 em{font-style:normal; color:var(--turmeric)}
.auth-hero p{opacity:.8; font-size:16px; margin:0 0 22px; max-width:46ch}
.auth-points{list-style:none; padding:0; margin:0; display:grid; gap:10px}
.auth-points li{display:flex; gap:10px; align-items:center; font-weight:600; font-size:15px}
.auth-points li::before{content:""; width:20px; height:20px; border-radius:6px; background:var(--turmeric) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A1C00' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; flex:none}
.auth-foot{position:relative; z-index:1; font-size:12.5px; opacity:.55; margin-top:auto}
.auth-main{display:grid; place-items:center; padding:40px 24px}
.auth-card{width:min(430px,100%); background:var(--surface); border:1px solid var(--line); border-radius:20px; box-shadow:0 2px 4px rgba(13,33,55,.04), 0 24px 60px rgba(13,33,55,.10); padding:34px 32px 28px}
.auth-card h2{font-size:26px; font-weight:800; letter-spacing:-.02em; margin-bottom:6px}
.auth-card .sub{color:var(--muted); margin:0 0 22px; font-size:14.5px}
.auth-steps{display:flex; gap:6px; margin-bottom:22px}
.auth-steps i{flex:1; height:4px; border-radius:4px; background:var(--line)}
.auth-steps i.on{background:var(--turmeric)}
.auth-card .field label{font-size:13px; font-weight:700; color:var(--ink)}
.auth-card .inp{padding:12px 14px; font-size:16px; border-radius:11px}
.auth-card .go{margin-top:6px; padding:13px; font-size:16px; border-radius:11px; width:100%}
.alert{padding:11px 14px; border-radius:11px; font-size:14px; margin-bottom:16px; display:flex; gap:10px; align-items:flex-start}
.alert.err{background:var(--chilli-soft); color:var(--chilli); font-weight:600}
.alert.ok{background:var(--leaf-soft); color:var(--leaf); font-weight:600}
.alert.dev{background:var(--turmeric-soft); color:var(--turmeric-ink)}
.otp-boxes{display:grid; grid-template-columns:repeat(6,1fr); gap:8px; margin:4px 0 6px}
.otp-boxes input{width:100%; min-height:52px; aspect-ratio:1/1.1; -webkit-appearance:none; text-align:center; font-family:var(--display); font-size:26px; font-weight:800; border:1.5px solid var(--line); border-radius:12px; background:var(--surface-2); padding:0}
.otp-boxes input:focus{outline:none; border-color:var(--ink); background:var(--surface); box-shadow:0 0 0 3px var(--turmeric-soft)}
.auth-row{display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:16px; font-size:13.5px; flex-wrap:wrap}
.linkbtn{border:0; background:none; padding:0; color:var(--ink); font-weight:700; text-decoration:underline; text-underline-offset:3px; cursor:pointer}
.linkbtn[disabled]{color:var(--muted); text-decoration:none; cursor:default}
.auth-switch{margin-top:22px; padding-top:18px; border-top:1px solid var(--line); font-size:13.5px; color:var(--muted); display:flex; gap:6px; flex-wrap:wrap; align-items:center}
.auth-switch a{color:var(--ink); font-weight:700; text-decoration:none; padding:4px 10px; border:1px solid var(--line); border-radius:8px}
.auth-switch a:hover{border-color:var(--ink)}
.portal-wrap{min-height:100vh; display:flex; flex-direction:column}
.portal-top{background:var(--navy); color:var(--on-navy)}
.portal-hero{max-width:1100px; margin:0 auto; padding:56px 24px 110px; text-align:center}
.portal-hero h1{font-size:clamp(30px,4vw,50px); font-weight:800; letter-spacing:-.03em; line-height:1.05}
.portal-hero h1 em{font-style:normal; color:var(--turmeric)}
.portal-hero p{opacity:.75; font-size:17px; margin:14px auto 0; max-width:52ch}
.portals{max-width:1100px; margin:-70px auto 40px; padding:0 24px; display:grid; grid-template-columns:repeat(3,1fr); gap:18px; width:100%}
.portal{background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:24px; box-shadow:var(--shadow); text-decoration:none; color:var(--ink); display:flex; flex-direction:column; gap:10px; transition:transform .15s, box-shadow .15s, border-color .15s}
.portal:hover{transform:translateY(-3px); border-color:var(--ink); box-shadow:0 18px 40px rgba(13,33,55,.14)}
.portal .ic{width:52px; height:52px; border-radius:14px; display:grid; place-items:center; background:var(--turmeric-soft); color:var(--turmeric-ink)}
.portal.p-employee .ic{background:var(--leaf-soft); color:var(--leaf)}
.portal.p-admin .ic{background:var(--navy); color:var(--turmeric)}
.portal h3{font-size:21px}
.portal small{color:var(--muted); font-weight:700; text-transform:uppercase; font-size:11.5px; letter-spacing:.07em}
.portal p{margin:0; color:var(--muted); font-size:14.5px}
.portal .cta{margin-top:auto; padding-top:8px; font-weight:700; display:flex; align-items:center; gap:6px}
.portal-foot{text-align:center; color:var(--muted); font-size:13px; padding:10px 0 30px; margin-top:auto}
@media (max-width:900px){
  .auth{grid-template-columns:1fr}
  .auth-side{padding:24px 22px 26px; gap:16px}
  .auth-hero{margin-top:6px}
  .auth-hero h1{font-size:28px}
  .auth-hero p, .auth-points, .auth-foot{display:none}
  .auth-main{padding:22px 14px 40px; align-items:start}
  .auth-card{padding:26px 20px 22px}
  .portals{grid-template-columns:1fr; margin-top:-80px}
}

/* ----------------------------- chat (kitchen <-> office admin) ----------------------------- */
.chat-fab{position:fixed; right:22px; bottom:22px; z-index:70; width:58px; height:58px; border-radius:50%; border:0; background:var(--navy); color:var(--turmeric); display:grid; place-items:center; box-shadow:0 10px 28px rgba(13,33,55,.35); cursor:pointer; transition:transform .15s}
.chat-fab:hover{transform:scale(1.06)}
.chat-fab .badge{position:absolute; top:-2px; right:-2px; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background:var(--chilli); color:#fff; font-size:11.5px; font-weight:800; display:grid; place-items:center; border:2px solid var(--bg)}
.chat-panel{position:fixed; right:22px; bottom:92px; z-index:71; width:380px; height:min(560px, calc(100vh - 130px)); background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:0 24px 60px rgba(13,33,55,.28); display:flex; flex-direction:column; overflow:hidden}
.chat-h{display:flex; align-items:center; gap:8px; padding:12px 12px 12px 16px; background:var(--navy); color:var(--on-navy)}
.chat-ht{flex:1; min-width:0}
.chat-ht b{display:block; font-family:var(--display); font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.chat-ht small{opacity:.7; font-size:12px}
.chat-ib{width:34px; height:34px; border-radius:9px; border:1px solid rgba(255,255,255,.16); background:none; color:var(--on-navy); font-size:22px; line-height:1; cursor:pointer}
.chat-list{overflow:auto; flex:1}
.chat-row{display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:12px 16px; border:0; border-bottom:1px solid var(--line); background:none; color:var(--ink); cursor:pointer; font:inherit}
.chat-row:hover{background:var(--surface-2)}
.chat-row > i{width:12px; height:12px; border-radius:50%; flex:none}
.chat-rt{flex:1; min-width:0}
.chat-rt b{display:block}
.chat-rt small{display:block; color:var(--muted); font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.chat-rm{display:flex; flex-direction:column; align-items:flex-end; gap:4px}
.chat-rm small{color:var(--muted); font-size:11.5px}
.chat-rm .badge{min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:var(--chilli); color:#fff; font-size:11.5px; font-weight:800; display:grid; place-items:center}
.chat-body{flex:1; overflow:auto; padding:14px; background:var(--bg); display:flex; flex-direction:column; gap:8px}
.chat-empty{margin:auto; text-align:center; color:var(--muted); font-size:14px; max-width:260px}
.chat-day{align-self:center; font-size:11.5px; font-weight:700; color:var(--muted); background:var(--surface); border:1px solid var(--line); padding:2px 10px; border-radius:20px; margin:6px 0}
.chat-m{display:flex; flex-direction:column; align-items:flex-start; max-width:82%}
.chat-m.me{align-self:flex-end; align-items:flex-end}
.chat-who{font-size:11.5px; color:var(--muted); font-weight:700; margin:0 0 2px 4px}
.chat-bub{background:var(--surface); border:1px solid var(--line); padding:8px 12px; border-radius:14px 14px 14px 4px; font-size:14.5px; line-height:1.4; word-wrap:break-word; overflow-wrap:anywhere}
.chat-m.me .chat-bub{background:var(--navy); color:var(--on-navy); border-color:var(--navy); border-radius:14px 14px 4px 14px}
.chat-t{font-size:11px; color:var(--muted); margin:2px 4px 0}
.chat-in{display:flex; gap:8px; padding:10px; border-top:1px solid var(--line); background:var(--surface)}
.chat-in textarea{flex:1; resize:none; border:1px solid var(--line); border-radius:12px; padding:10px 12px; font:inherit; font-size:15px; max-height:120px; background:var(--surface-2); color:var(--ink)}
.chat-in textarea:focus{outline:none; border-color:var(--ink); background:var(--surface)}
.chat-in .btn{width:46px; padding:0; justify-content:center}
@media (max-width:760px){
  .chat-fab{right:14px; bottom:calc(env(safe-area-inset-bottom) + 150px); width:52px; height:52px}
  .chat-panel{right:0; left:0; bottom:0; top:0; width:auto; height:auto; border-radius:0; z-index:90}
  .chat-in{padding-bottom:calc(env(safe-area-inset-bottom) + 10px)}
}

/* login loader */
.spin{display:inline-block; width:16px; height:16px; border:2.5px solid currentColor; border-right-color:transparent; border-radius:50%; animation:spin .7s linear infinite; vertical-align:-3px; margin-right:9px}
.auth-card .go.busy{opacity:1; cursor:progress}
.auth-card .go.busy, .auth-card .go.busy:disabled{background:var(--turmeric); color:#2A1C00}
.auth-wait{display:flex; align-items:center; gap:2px; margin:12px 0 0; font-size:13.5px; color:var(--muted); font-weight:600}
.auth-wait[hidden]{display:none}
.auth-wait .spin{width:14px; height:14px; border-width:2px; color:var(--turmeric)}

/* ----------------------------- billing documents (A4, print) ----------------------------- */
.bill-toolbar{position:sticky; top:0; z-index:10; display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:12px 20px; background:var(--navy); color:var(--on-navy)}
.bill-toolbar .btn{text-decoration:none}
.bill-toolbar .seg a{text-decoration:none}
.bill-period{display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:13px}
.bill-period label{display:flex; gap:6px; align-items:center}
.bill-period .inp{width:auto; padding:6px 8px; font-size:13px}
.bill-period .toggle{color:var(--on-navy)}
.bill-wrap{padding:24px 12px 60px; display:grid; gap:24px; justify-content:center; background:var(--bg)}
.page{width:210mm; min-height:297mm; background:#fff; color:#111821; padding:14mm 14mm 12mm; box-shadow:0 4px 24px rgba(13,33,55,.15); display:flex; flex-direction:column; font-size:12.5px}
.lh{display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding-bottom:12px; border-bottom:3px solid #0D2137}
.lh-brand{display:flex; gap:12px; align-items:center}
.lh-brand b{display:block; font-family:var(--display); font-size:22px; font-weight:800; color:#0D2137; letter-spacing:-.01em}
.lh-brand small{color:#5A6572; font-size:11.5px}
.lh-doc{text-align:right}
.lh-doc > b{display:block; font-family:var(--display); font-size:19px; font-weight:800; color:#0D2137; text-transform:uppercase; letter-spacing:.04em; margin-bottom:6px}
.lh-doc table{border-collapse:collapse; margin-left:auto; font-size:11.5px}
.lh-doc th{text-align:left; color:#5A6572; font-weight:600; padding:1px 10px 1px 0}
.lh-doc td{text-align:right; font-weight:700; padding:1px 0}
.bill-stamp{margin:10px 0 0; padding:5px 10px; border-radius:6px; background:#E6F4EA; color:#16853B; font-weight:700; font-size:11.5px}
.bill-stamp.draft{background:#FFF1CC; color:#7A5300}
.bill-to{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:16px 0 12px}
.bill-to > div{border:1px solid #D3D9E0; border-radius:8px; padding:10px 12px}
.bill-to small{display:block; color:#5A6572; text-transform:uppercase; letter-spacing:.06em; font-size:10px; font-weight:700}
.bill-to b{display:block; font-size:14px; margin:2px 0}
.bill-to span{color:#5A6572; font-size:11.5px}
.bill-kpis{display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:6px 0 4px}
.bill-kpis > div{border:1px solid #D3D9E0; border-radius:8px; padding:10px 12px}
.bill-kpis small{display:block; color:#5A6572; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em}
.bill-kpis b{font-family:var(--display); font-size:19px; color:#0D2137}
.bill-kpis .hot{background:#FFF1CC; border-color:#E59E00}
.bill-h{font-family:var(--display); font-size:14px; color:#0D2137; margin:16px 0 6px; text-transform:uppercase; letter-spacing:.05em}
.bt{width:100%; border-collapse:collapse; font-size:12px}
.bt th{background:#0D2137; color:#fff; text-align:left; padding:6px 8px; font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.03em}
.bt td{padding:5px 8px; border-bottom:1px solid #E1E5EA; vertical-align:top}
.bt tbody tr:nth-child(even) td{background:#F6F8FA}
.bt .r{text-align:right; font-variant-numeric:tabular-nums}
.bt .nw{white-space:nowrap}
.bt .ded{color:#B4231A}
.bt tfoot td{font-weight:800; background:#FFF1CC; border-top:2px solid #0D2137; border-bottom:3px double #0D2137}
.bt.kv th{background:#F6F8FA; color:#111821; text-transform:none; letter-spacing:0; font-size:12px; border-bottom:1px solid #E1E5EA; width:auto}
.bt.sum{max-width:110mm; margin-left:auto}
.bt.sum tr.net th, .bt.sum tr.net td{background:#FFF1CC; font-weight:800; font-size:14px; border-top:2px solid #0D2137; border-bottom:3px double #0D2137}
.bill-words{margin:10px 0 0; padding:8px 12px; background:#F6F8FA; border-left:4px solid #E59E00; font-size:12.5px}
.bill-notes{margin:12px 0 0; padding-left:18px; color:#5A6572; font-size:11px}
.bill-status{margin:12px 0 0; color:#5A6572; font-size:11.5px}
.bill-sign{display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:auto; padding-top:44px}
.bill-sign .line{display:block; border-bottom:1px solid #111821; height:36px; margin-bottom:6px}
.bill-sign b{display:block; font-size:12px}
.bill-sign small{color:#5A6572; font-size:11px}
.bill-foot{margin-top:16px; padding-top:8px; border-top:1px solid #D3D9E0; color:#8A949F; font-size:10px; text-align:center}
@page{size:A4; margin:0}
@media print{
  body{background:#fff}
  .no-print{display:none !important}
  .bill-wrap{padding:0; gap:0; background:#fff; display:block}
  .page{box-shadow:none; width:auto; min-height:297mm; page-break-after:always; break-after:page}
  .page:last-child{page-break-after:auto; break-after:auto}
  .bt thead{display:table-header-group}
  .bt tr{page-break-inside:avoid}
  *{-webkit-print-color-adjust:exact; print-color-adjust:exact}
}
@media screen and (max-width:900px){ .page{width:100%; min-height:0; padding:18px} .bill-kpis{grid-template-columns:1fr 1fr} .bill-to{grid-template-columns:1fr} }
.acc-bills{padding:12px 14px; border:1px solid var(--line); border-radius:14px; background:var(--surface); margin-bottom:8px}
.acc-bills a{text-decoration:none}

/* ----------------------------- login: kitchen background + full-screen loader ----------------------------- */
/* Put your own photo at sn/static/sn/img/login-bg.jpg and it is used automatically (navy tint on top). */
.auth-side, .portal-top{
  background-color:var(--navy);
  background-image:
    linear-gradient(160deg, rgba(13,33,55,.62) 0%, rgba(13,33,55,.80) 55%, rgba(13,33,55,.94) 100%),
    url("../img/login-bg.jpg"),
    url("../img/kitchen-pattern.svg");
  background-size:cover, cover, 360px 360px;
  background-position:center, center, 0 0;
  background-repeat:no-repeat, no-repeat, repeat;
}
.auth-main{background:
  radial-gradient(circle at 85% 12%, rgba(229,158,0,.10), transparent 40%),
  radial-gradient(circle at 10% 90%, rgba(13,33,55,.06), transparent 45%), var(--bg)}
.otp-overlay{position:fixed; inset:0; z-index:200; display:grid; place-items:center; background:rgba(13,33,55,.55); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); animation:ovIn .15s ease-out}
.otp-overlay[hidden]{display:none}
@keyframes ovIn{from{opacity:0}to{opacity:1}}
.ov-card{width:min(360px, calc(100vw - 40px)); background:var(--surface); border-radius:20px; padding:28px 26px 24px; text-align:center; box-shadow:0 30px 80px rgba(0,0,0,.35)}
.ov-tiffin{display:inline-block; animation:ovBob 1.1s ease-in-out infinite; margin-bottom:12px}
.ov-tiffin .steam path{stroke:var(--turmeric); stroke-width:2.4; fill:none; stroke-linecap:round; animation:ovSteam 1.4s ease-in-out infinite}
.ov-tiffin .steam path:nth-child(2){animation-delay:.25s}
.ov-tiffin .steam path:nth-child(3){animation-delay:.5s}
@keyframes ovBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes ovSteam{0%{opacity:0; transform:translateY(4px)}40%{opacity:1}100%{opacity:0; transform:translateY(-6px)}}
.ov-card b{display:block; font-family:var(--display); font-size:20px; font-weight:800; color:var(--ink); margin-bottom:6px}
.ov-card span{display:block; color:var(--muted); font-size:14px; line-height:1.45}
.ov-bar{height:5px; border-radius:5px; background:var(--surface-2); overflow:hidden; margin-top:18px}
.ov-bar i{display:block; height:100%; width:40%; border-radius:5px; background:var(--turmeric); animation:ovBar 1.2s ease-in-out infinite}
@keyframes ovBar{0%{transform:translateX(-100%)}100%{transform:translateX(260%)}}
.ov-card small{display:block; margin-top:12px; color:var(--muted); font-size:12px}

/* ----------------------------- guide (full-screen process diagram) ----------------------------- */
.guidebtn{background:rgba(229,158,0,.14); border-color:rgba(229,158,0,.45); color:var(--turmeric); cursor:pointer; font:inherit; font-weight:600; font-size:13.5px}
.guidebtn:hover{background:rgba(229,158,0,.24)}
.guide-ov{position:fixed; inset:0; z-index:150; background:#0B1726; display:flex; flex-direction:column; animation:ovIn .15s ease-out}
.guide-bar{display:flex; align-items:center; gap:12px; padding:10px 16px; color:var(--on-navy); flex-wrap:wrap}
.guide-bar > b{font-family:var(--display); font-size:17px}
.guide-tabs{display:flex; gap:6px; flex-wrap:wrap}
.guide-tabs button{border:1px solid rgba(255,255,255,.2); background:none; color:var(--on-navy); padding:7px 12px; border-radius:9px; font:inherit; font-size:13.5px; font-weight:600; cursor:pointer}
.guide-tabs button.on{background:var(--turmeric); border-color:var(--turmeric); color:#2A1C00}
.guide-ib{width:42px; height:42px; border-radius:11px; border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.06); color:#fff; display:grid; place-items:center; font-size:19px; text-decoration:none; cursor:pointer}
.guide-x{background:var(--chilli); border-color:var(--chilli); font-size:18px; font-weight:800}
.guide-x:hover{filter:brightness(1.1)}
.guide-body{flex:1; min-height:0; display:flex; align-items:center; justify-content:center; padding:4px 16px; overflow:auto; cursor:zoom-in}
.guide-body img{max-width:100%; max-height:100%; object-fit:contain; border-radius:12px; box-shadow:0 20px 60px rgba(0,0,0,.4); background:#fff}
.guide-body.zoom{align-items:flex-start; justify-content:flex-start; cursor:zoom-out}
.guide-body.zoom img{max-width:none; max-height:none; width:1600px}
.guide-hint{text-align:center; color:rgba(241,244,248,.6); font-size:12.5px; padding:8px 0 12px}
@media (max-width:760px){ .guidebtn span{display:none} .guidebtn{width:42px; justify-content:center; padding:0} .guide-bar > b{display:none} }

/* ----------------------------- dish search (employee order page) ----------------------------- */
.dsearch{display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:4px 0 12px}
.dsearch-box{flex:1 1 280px; display:flex; align-items:center; gap:10px; background:var(--card,#fff); border:1.5px solid var(--line); border-radius:12px; padding:0 8px 0 14px; height:48px; color:var(--muted); transition:border-color .15s, box-shadow .15s}
.dsearch-box:focus-within{border-color:var(--turmeric); box-shadow:0 0 0 3px rgba(229,158,0,.18); color:var(--ink)}
.dsearch-box input{flex:1; min-width:0; border:0; outline:0; background:none; font:inherit; font-size:16px; color:var(--ink); height:100%}
.dsearch-box input::-webkit-search-cancel-button{display:none}
.dsearch-x{width:32px; height:32px; border:0; border-radius:8px; background:rgba(0,0,0,.06); color:var(--ink); font-size:14px; font-weight:700; cursor:pointer; flex:none}
.dsearch-veg{display:flex; gap:6px}
.dsearch-veg .chip{display:inline-flex; align-items:center; gap:6px}
.dsearch-veg .vm{width:13px; height:13px}
.dsearch-veg .vm::after{width:5px; height:5px}
.dsearch-info{display:flex; gap:14px; align-items:center; flex-wrap:wrap; font-size:13.5px; color:var(--muted); margin:-4px 0 12px}
.dsearch-info b{color:var(--ink)}
.dsearch-info .linkbtn{font-size:13.5px; color:var(--turmeric-d,#9A6400)}
@media (max-width:760px){ .dsearch-box{flex-basis:100%} .dsearch-veg{width:100%} .dsearch-veg .chip{flex:1; justify-content:center} }
.dsearch-veg .vm.nv::after{width:0; height:0; border-left-width:3px; border-right-width:3px; border-bottom-width:5px}

/* ---------- Build Your Plate (loose menu, flat price per plate) vs Menu card (fixed prices) ---------- */
.byp{margin-top:12px; border:2px dashed color-mix(in srgb, var(--v) 70%, var(--line)); border-radius:16px; background:color-mix(in srgb, var(--v) 6%, var(--surface)); padding:14px 16px}
.byp-h{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.byp-badge{display:inline-flex; align-items:center; gap:7px; font-weight:800; font-size:16px}
.byp-badge svg{color:var(--v)}
.byp-price{margin-left:auto; background:var(--ink); color:var(--bg); font-weight:800; border-radius:10px; padding:4px 11px; font-size:15px}
.byp-sub{font-size:13px; color:var(--muted); margin:4px 0 10px}
.byp-list{display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:8px}
.byp-row{display:flex; align-items:center; gap:9px; background:var(--surface); border:1px solid var(--line); border-radius:11px; padding:8px 10px; min-height:48px}
.byp-row .nm{flex:1; font-weight:600; font-size:14.5px; line-height:1.25}
.byp-row.on{border-color:var(--ink); box-shadow:0 0 0 1px var(--ink)}
.byp-row.out{opacity:.55}
.byp-row.out .nm{text-decoration:line-through}
.byp-row .add{padding:5px 12px}
.byp-row .step button{width:28px; height:28px}
.byp-f{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:10px; padding-top:10px; border-top:1px dashed var(--line); font-size:13.5px}
.byp-f b{font-weight:800}
.byp-f .picks{flex:1; min-width:0; color:var(--muted)}
.kind-h{display:flex; align-items:center; gap:8px; margin-top:16px}
.kind-h small{color:var(--muted); font-size:12.5px; text-transform:none; letter-spacing:0; font-weight:500}
.kind-pill{font-size:11px; font-weight:800; padding:2px 8px; border-radius:20px; text-transform:uppercase; letter-spacing:.05em; white-space:nowrap}
.kind-pill.k-plate{background:var(--ink); color:var(--bg)}
.kind-pill.k-fixed{background:var(--surface-2); color:var(--muted); border:1px solid var(--line)}
.lrow .picks{font-size:12.5px; color:var(--ink); margin-top:2px}
.tline .picks{display:block; font-size:12.5px; color:var(--muted); margin-top:2px}
.kind-seg{display:flex; gap:6px; flex-wrap:wrap; margin-bottom:8px}
/* kitchen: Build Your Plate block, one area per meal; menu card below, meals collapsible */
.kbyp{margin-top:18px}
.kmeal{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-top:10px}
.kmeal-h{display:flex; align-items:baseline; gap:8px; margin-bottom:6px}
.kmeal-h b{font-size:15px}
.kpick{display:grid; grid-template-columns:auto 1fr auto auto; gap:10px; align-items:center; padding:6px 0; border-bottom:1px dashed var(--line)}
.kpick .nm{font-weight:600; font-size:14.5px}
.kpick.out .nm{text-decoration:line-through; color:var(--muted)}
.kadd{display:flex; gap:8px; margin-top:8px}
.kadd .inp{flex:1}
.kfix-h{margin-top:24px; padding-top:16px; border-top:2px solid var(--line)}
.kfix-t{display:flex; justify-content:space-between; width:100%; margin-top:10px; padding:9px 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); font-weight:700; font-size:14px; text-align:left}
@media (max-width:560px){ .kpick{grid-template-columns:auto 1fr; } .kpick .toggle, .kpick .btn{grid-column:2; justify-self:start} .kpick .btn{margin-top:-2px} }
/* kitchen screen: Orders / Menu / Statement tabs */
.ktabs{display:flex; gap:4px; margin-top:14px; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:4px; position:sticky; top:66px; z-index:5; box-shadow:var(--shadow)}
.ktab{flex:1; border:0; background:transparent; border-radius:10px; padding:10px 12px; font-weight:700; font-size:15px; color:var(--muted); display:flex; align-items:center; justify-content:center; gap:7px; white-space:nowrap}
.ktab small{font-weight:600; font-size:12px; opacity:.8}
.ktab[aria-selected="true"]{background:var(--ink); color:var(--bg)}
.kbadge{background:var(--turmeric); color:#2A1C00; border-radius:20px; padding:1px 8px; font-size:12px; font-weight:800}
.kpane{margin-top:14px; max-width:1040px}
@media (max-width:560px){ .ktab{padding:9px 6px; font-size:14px; flex-direction:column; gap:1px} .ktabs{top:58px} }
.kgate-sum{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.kgate-sum .linkbtn{margin-left:auto; font-weight:700}
.kmeal-h .pill{margin-left:auto}
.kmeal.locked{background:var(--surface-2)}
.kclosed{font-size:12.5px; margin:8px 0 0}
.mine{display:grid; gap:16px; max-width:760px; margin-top:16px}
.mine .kpick{grid-template-columns:0 1fr auto auto}
