/* Shared look for the owner dashboard, restaurant portal and invoice: Zeenath cream and green. */
:root{
 --green:#24543D; --green-dark:#193E2E; --cream:#FAF7EF; --sage:#E7EEDF; --band:#F0F2E9; --ink:#24332A;
 --orange:#C65A25; --orange-soft:#FBEBD5; --muted:#657065; --line:#DFE4D8; --white:#fff; --night:#0F2219;
 --red:#A33A2B; --red-soft:#F7E1DC; --blue:#2E5A88; --blue-soft:#E1EBF5;
 --heading:"Manrope","Segoe UI",Arial,sans-serif; --body:"DM Sans","Segoe UI",Arial,sans-serif;
 --ease:cubic-bezier(.22,.61,.36,1); color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--cream); color:var(--ink); font-family:var(--body); font-size:15px; line-height:1.55; -webkit-font-smoothing:antialiased}
a{color:inherit; text-decoration:none}
h1,h2,h3,h4,p{margin:0}
h1,h2,h3,h4{font-family:var(--heading); letter-spacing:-.035em; line-height:1.15; color:var(--green-dark)}
h1{font-size:clamp(24px,3vw,32px)} h2{font-size:22px} h3{font-size:17px}
button,input,select,textarea{font:inherit; color:inherit}
button{cursor:pointer; border:0; background:none}
:focus-visible{outline:3px solid var(--orange); outline-offset:2px; border-radius:6px}
.muted{color:var(--muted)} .num{font-variant-numeric:tabular-nums} .small{font-size:13px} .dot{color:var(--orange)}
.eyebrow{font-size:11px; letter-spacing:.14em; font-weight:700; color:var(--green); text-transform:uppercase; margin-bottom:6px}

/* app frame */
[hidden]{display:none!important}
.app{display:grid; grid-template-columns:248px minmax(0,1fr); min-height:100vh}
.side{background:var(--green-dark); color:#E9F0E4; padding:22px 16px; position:sticky; top:0; height:100vh; display:flex; flex-direction:column; gap:22px}
.brand{display:flex; align-items:center; gap:10px; font-family:var(--heading); font-weight:800; font-size:20px; letter-spacing:-.04em; color:#fff}
.brand svg{width:30px; height:34px; fill:none; stroke:#BED3B0; stroke-width:2.6; stroke-linecap:round}
.brand small{display:block; font-size:9.5px; letter-spacing:.18em; font-weight:700; color:#BED3B0; margin-top:2px}
.side nav{display:grid; gap:4px}
.side nav button{display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:10px 12px; border-radius:10px; color:#D5E1CF; transition:background .5s var(--ease),color .5s var(--ease)}
.side nav button:hover{background:rgba(255,255,255,.06); color:#fff}
.side nav button.on{background:#fff; color:var(--green-dark); font-weight:700}
.side nav .ct{margin-left:auto; background:var(--orange); color:#fff; font-size:11px; font-weight:700; border-radius:20px; padding:1px 8px; min-width:22px; text-align:center}
.side nav button.on .ct{background:var(--orange)}
.side .who{margin-top:auto; font-size:13px; color:#BED3B0; border-top:1px solid rgba(255,255,255,.12); padding-top:16px; display:grid; gap:8px}
.side .who b{color:#fff; font-size:14px}
.side .who a,.side .who button{color:#fff; text-decoration:underline; text-underline-offset:3px; text-align:left; padding:0}
.main{padding:28px clamp(16px,3vw,40px) 80px; min-width:0}
.top{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:24px}
.top .tools{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.bell{position:relative; width:42px; height:42px; border-radius:50%; background:#fff; border:1px solid var(--line); display:grid; place-items:center}
.bell svg{width:20px; height:20px; fill:none; stroke:var(--green); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.bell b{position:absolute; top:-4px; right:-4px; background:var(--orange); color:#fff; font-size:11px; border-radius:20px; padding:1px 6px; min-width:20px; text-align:center}
.bell.ring{animation:ring 1.4s var(--ease)}
@keyframes ring{0%,100%{transform:rotate(0)}15%{transform:rotate(14deg)}30%{transform:rotate(-12deg)}45%{transform:rotate(8deg)}60%{transform:rotate(-5deg)}}
.side .mobtop{display:none}

/* building blocks */
.card{background:#fff; border:1px solid var(--line); border-radius:16px; padding:22px}
.grid{display:grid; gap:16px}
.g4{grid-template-columns:repeat(4,minmax(0,1fr))} .g3{grid-template-columns:repeat(3,minmax(0,1fr))} .g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.stat{display:grid; gap:4px}
.stat .k{font-size:12px; color:var(--muted); font-weight:500}
.stat .v{font-family:var(--heading); font-size:28px; font-weight:800; color:var(--green-dark); letter-spacing:-.04em}
.stat .s{font-size:12px; color:var(--green)}
.stat.hot{background:var(--orange-soft); border-color:#F1D3B3}
.stat.hot .v{color:var(--orange)}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:0 18px; border-radius:999px; font-weight:700; font-size:14px; background:var(--green); color:#fff; transition:background .5s var(--ease),transform .5s var(--ease)}
.btn:hover{background:var(--green-dark)}
.btn:active{transform:scale(.98)}
.btn.outline{background:#fff; color:var(--green); border:1.5px solid var(--green)}
.btn.outline:hover{background:var(--sage)}
.btn.orange{background:var(--orange)} .btn.orange:hover{background:#A84A1C}
.btn.ghost{background:transparent; color:var(--muted); border:1px solid var(--line)}
.btn.sm{min-height:34px; padding:0 14px; font-size:13px}
.btn.lg{min-height:52px; padding:0 26px; font-size:16px}
.btn:disabled{opacity:.45; cursor:not-allowed}
.pill{display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; border-radius:999px; padding:3px 10px; background:var(--sage); color:var(--green); white-space:nowrap}
.pill.pending,.pill.awaiting{background:var(--orange-soft); color:var(--orange)}
.pill.declined{background:var(--red-soft); color:var(--red)}
.pill.paid{background:var(--blue-soft); color:var(--blue)}
.pill.packed{background:#EFE7F6; color:#6A4A8C}
.pill.confirmed{background:var(--blue-soft); color:var(--blue)}
.pill.due,.pill.requested,.pill.countered{background:var(--orange-soft); color:var(--orange)}
.pill.overdue{background:var(--red-soft); color:var(--red)}
.pill.accepted,.pill.approved{background:var(--sage); color:var(--green)}
.pill.plain::before{display:none}
.thread{display:grid; gap:8px; margin:12px 0}
.bubble{padding:10px 14px; border-radius:12px; background:var(--band); font-size:14px; max-width:85%}
.bubble.me{background:var(--sage); justify-self:end}
.bubble small{display:block; color:var(--muted); font-size:11px}
.hist{display:grid; gap:6px; font-size:13px; color:var(--muted); border-left:2px solid var(--line); padding-left:12px; margin-top:8px}
.kv{display:grid; grid-template-columns:auto auto; justify-content:space-between; gap:4px 16px; font-size:14px}
.kv .b{font-weight:800; font-family:var(--heading); font-size:18px; color:var(--green-dark)}
.pill::before{content:""; width:6px; height:6px; border-radius:50%; background:currentColor}
.field{display:grid; gap:6px; font-size:13px; font-weight:700; color:var(--ink)}
.field input,.field select,.field textarea,.inp{width:100%; min-height:44px; border:1px solid #CCD5C6; border-radius:10px; background:#fff; padding:9px 12px; font-weight:400; font-size:15px}
.field textarea{min-height:84px; resize:vertical}
.field input:focus,.field select:focus,.inp:focus{outline:none; border-color:var(--green); box-shadow:0 0 0 3px rgba(36,84,61,.15)}
.row2{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.form{display:grid; gap:14px}
.table{width:100%; border-collapse:collapse; font-size:14px}
.table th{font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); text-align:left; font-weight:700; padding:10px 12px; border-bottom:1px solid var(--line)}
.table td{padding:12px; border-bottom:1px solid var(--line); vertical-align:middle}
.table tr:last-child td{border-bottom:0}
.table .r{text-align:right}
.table tr.click{cursor:pointer; transition:background .4s var(--ease)}
.table tr.click:hover{background:var(--band)}
.tablewrap{overflow-x:auto; background:#fff; border:1px solid var(--line); border-radius:16px}
.empty{padding:40px 20px; text-align:center; color:var(--muted)}
.emo{display:inline-grid; place-items:center; width:38px; height:38px; border-radius:10px; background:var(--sage); font-size:20px; flex-shrink:0; overflow:hidden}
.emo img{width:100%; height:100%; object-fit:cover; display:block}
.item{display:flex; align-items:center; gap:12px; min-width:0}
.item b{display:block} .item span{font-size:12px; color:var(--muted)}
.list{display:grid; gap:10px}
.note{display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border-radius:12px; background:#fff; border:1px solid var(--line); transition:background .5s var(--ease)}
.note.unread{background:var(--orange-soft); border-color:#F1D3B3}
.note .ic{width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:var(--sage); flex-shrink:0; font-size:16px}
.note b{display:block; font-size:14px}
.note .t{margin-left:auto; font-size:12px; color:var(--muted); white-space:nowrap}
.seg{display:inline-flex; background:var(--band); border-radius:999px; padding:4px; gap:2px; border:1px solid var(--line)}
.seg button{padding:6px 14px; border-radius:999px; font-size:13px; font-weight:700; color:var(--muted)}
.seg button.on{background:#fff; color:var(--green); box-shadow:0 1px 3px rgba(0,0,0,.08)}
.banner{display:flex; gap:12px; align-items:center; padding:14px 18px; border-radius:12px; background:var(--sage); color:var(--green-dark); font-size:14px; margin-bottom:18px}
.banner.warn{background:var(--orange-soft); color:#7A3712}
.flex{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.between{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap}
.toggle{position:relative; width:42px; height:24px; flex-shrink:0}
.toggle input{position:absolute; opacity:0; inset:0; margin:0; cursor:pointer; z-index:1}
.toggle span{position:absolute; inset:0; background:#C9D1C3; border-radius:20px; transition:background .5s var(--ease)}
.toggle span::after{content:""; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; transition:transform .5s var(--ease)}
.toggle input:checked+span{background:var(--green)}
.toggle input:checked+span::after{transform:translateX(18px)}
.toggle input:focus-visible+span{outline:3px solid var(--orange); outline-offset:2px}
.pricein{width:96px; min-height:38px; text-align:right; font-variant-numeric:tabular-nums}
.pricein:disabled{background:var(--band); color:#9AA39A}
tr.off td{color:#9AA39A} tr.off .emo{filter:grayscale(1); opacity:.6}

/* toast + modal */
.toast{position:fixed; right:20px; bottom:20px; z-index:90; max-width:360px; background:var(--night); color:#fff; padding:14px 18px; border-radius:14px; box-shadow:0 18px 40px rgba(15,34,25,.3); font-size:14px; transform:translateY(20px); opacity:0; pointer-events:none; transition:opacity .7s var(--ease),transform .7s var(--ease)}
.toast.show{opacity:1; transform:none; pointer-events:auto}
.toast b{display:block; margin-bottom:2px}
.modal{position:fixed; inset:0; z-index:80; background:rgba(15,34,25,.45); display:grid; place-items:center; padding:16px; opacity:0; pointer-events:none; transition:opacity .6s var(--ease)}
.modal.open{opacity:1; pointer-events:auto}
.modal .card{width:min(560px,100%); max-height:calc(100vh - 32px); overflow:auto; transform:translateY(16px); transition:transform .7s var(--ease)}
.modal.open .card{transform:none}
.fade{animation:fade .8s var(--ease) both}
@keyframes fade{from{opacity:0; transform:translateY(10px)}to{opacity:1; transform:none}}
.demo-tag{display:inline-flex; gap:6px; align-items:center; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--orange); background:var(--orange-soft); padding:4px 10px; border-radius:999px}

/* live delivery map */
.tmap{position:relative; height:260px; border-radius:14px; overflow:hidden; background:var(--sage); border:1px solid var(--line); isolation:isolate}
.tmap.big{height:340px}
.tmap-in{position:absolute; inset:0}
.tpin{background:none; border:0}
.tpin span{display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:#fff; font-size:19px; box-shadow:0 4px 14px rgba(15,34,25,.28); border:2px solid #fff}
.tpin.van span{background:var(--orange); border-color:#fff; box-shadow:0 0 0 6px rgba(198,90,37,.22),0 6px 16px rgba(15,34,25,.3)}
.tpin.dest span{background:var(--sage)}
.trip{display:grid; gap:10px; background:var(--band); border-radius:14px; padding:14px}
.trip .tline{display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap}
.trip .eta{font-family:var(--heading); font-weight:800; font-size:20px; color:var(--green-dark)}
.livedot{display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--orange); margin-right:6px; vertical-align:1px; animation:live 2s ease-in-out infinite}
@keyframes live{0%,100%{box-shadow:0 0 0 0 rgba(198,90,37,.5)}50%{box-shadow:0 0 0 6px rgba(198,90,37,0)}}
.pill.onway{background:var(--orange-soft); color:var(--orange)}

/* simple card rows (used instead of wide tables) */
.rowc{background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px; display:grid; gap:12px}
.rowc .rhead{display:flex; justify-content:space-between; gap:12px; align-items:flex-start; text-align:left; width:100%}
.rowc .rhead>span:first-child{display:grid; gap:2px; min-width:0}
.rowc .rhead b{font-size:16px}
.rowc .amt{font-family:var(--heading); font-weight:800; font-size:18px; color:var(--green-dark); white-space:nowrap}
.rowc .acts{display:flex; gap:8px; flex-wrap:wrap}
.sech{margin:26px 0 12px; font-size:18px}
.sech:first-of-type{margin-top:0}
.filters{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:16px}
.menu{display:grid; gap:10px}
.menu button,.menu a{display:flex; align-items:center; gap:14px; padding:16px 18px; background:#fff; border:1px solid var(--line); border-radius:14px; font-weight:700; font-size:16px; text-align:left; color:var(--ink)}
.menu .ic{width:38px; height:38px; border-radius:50%; background:var(--sage); display:grid; place-items:center; flex-shrink:0}
.menu .ct{margin-left:auto; background:var(--orange); color:#fff; font-size:12px; border-radius:20px; padding:2px 10px}
.menu .go{margin-left:auto; color:var(--muted)}
.menu .ct+.go{margin-left:8px}
.helpbox{background:var(--band); border-radius:12px; padding:14px; display:grid; gap:10px}
.side nav .sh,.side nav .mobonly{display:none}

@media (max-width:980px){ .g4{grid-template-columns:repeat(2,minmax(0,1fr))} .g3{grid-template-columns:1fr 1fr} }
@media (max-width:820px){
 .app{grid-template-columns:minmax(0,1fr)}
 .side{min-width:0; position:sticky; top:0; z-index:50; height:auto; padding:10px 16px; gap:10px}
 .side .brand{font-size:17px} .side .brand svg{width:24px; height:28px}
 .side .mobtop{display:inline-grid; place-items:center}
 .main{padding:20px 16px 110px}
 .top{margin-bottom:16px} .top .bell,.top .demo-tag{display:none}
 .toast{left:12px; right:12px; bottom:84px; max-width:none}
 .filters{grid-template-columns:1fr 1fr} .filters>:first-child{grid-column:1/-1}
 .rowc .acts .btn{flex:1 1 auto; min-height:46px}
 .modal{align-items:end; padding:0}
 .modal .card{width:100%; border-radius:20px 20px 0 0; max-height:88vh; padding-bottom:calc(22px + env(safe-area-inset-bottom))}
 .modal .mact{display:grid; grid-template-columns:1fr; gap:8px}
 .modal .mact .btn{min-height:48px} .modal .mact .btn:not(.outline):not(.ghost){order:-1}
 /* tables that turn into simple stacked rows */
 .table.stack thead{display:none}
 .table.stack tr{display:block; padding:12px 14px; border-bottom:1px solid var(--line)}
 .table.stack tr:last-child{border-bottom:0}
 .table.stack td{display:flex; justify-content:space-between; align-items:center; gap:12px; padding:3px 0; border:0; text-align:right}
 .table.stack td:first-child{display:block; text-align:left; padding-bottom:6px}
 .table.stack td[data-l]::before{content:attr(data-l); color:var(--muted); font-size:13px; text-align:left}
 .table.stack td:empty{display:none}
 .table.prices thead{display:none}
 .table.prices tr{display:grid; grid-template-columns:auto 1fr 1fr; gap:8px 12px; align-items:center; padding:12px 14px; border-bottom:1px solid var(--line)}
 .table.prices td{padding:0; border:0}
 .table.prices td:nth-child(2){grid-column:2/-1}
 .table.prices td:nth-child(3),.table.prices td:nth-child(5){display:none}
 .table.prices td:nth-child(4){grid-column:2; text-align:left}
 .table.prices td:nth-child(6){grid-column:3; text-align:left}
 .table.prices td:nth-child(4)::before{content:"Price per box"} .table.prices td:nth-child(6)::before{content:"Price per unit"}
 .table.prices td:nth-child(4)::before,.table.prices td:nth-child(6)::before{display:block; font-size:12px; color:var(--muted); margin-bottom:3px}
 .table.prices .pricein{width:100%; text-align:left; min-height:44px}
}
@media (max-width:560px){ .g4,.g3,.g2,.row2{grid-template-columns:minmax(0,1fr)} .note>span:nth-child(2){min-width:0; overflow-wrap:anywhere} .stat .v{font-size:24px} .card{padding:18px} .note .t{display:none} }
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important; transition:none!important}}
@media print{ .side,.top .tools,.noprint,.toast{display:none!important} .app{display:block} body{background:#fff} }

/* ---------- catalogue: item list and item editor (owner) ---------- */
.btn.danger{background:var(--red)} .btn.danger:hover{background:#82291D}
.btn.ghost.danger{background:transparent; color:var(--red); border-color:#E7C3BB}
.pill.deal{background:var(--orange-soft); color:var(--orange)}
.pill.off{background:#ECEDEA; color:var(--muted)}
.icat-tools{display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:14px}
.icat-tools .inp{flex:1 1 220px; max-width:360px}
.ilist{display:grid; gap:10px}
.irow{display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:8px 12px 8px 8px; transition:border-color .5s var(--ease),opacity .5s var(--ease)}
.irow:hover{border-color:#C7D2C0}
.irow.off{opacity:.62}
.imain{flex:1; min-width:0; display:flex; align-items:center; gap:12px; text-align:left; padding:2px}
.ith{width:56px; height:56px; flex-shrink:0; border-radius:10px; overflow:hidden; background:var(--band); display:grid; place-items:center; font-size:28px}
.ith img{width:100%; height:100%; object-fit:cover; display:block}
.ith .ini{width:100%; height:100%; display:grid; place-items:center; color:#fff; font-weight:800; font-size:22px}
.itx{flex:1; min-width:0; display:grid; gap:2px}
.itx b{font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.itx .small{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.itags{display:flex; gap:4px; flex-wrap:wrap; margin-top:3px}
.ipr{display:grid; justify-items:end; font-weight:800; color:var(--green-dark); white-space:nowrap}
.ipr s{font-weight:400; font-size:12px; color:var(--muted)}
.ipr small{font-weight:400; font-size:11px; color:var(--muted)}
.istock{display:grid; justify-items:center; gap:3px; padding-left:10px; border-left:1px solid var(--line); cursor:pointer}
.istock small{font-size:10px; color:var(--muted); font-weight:700; white-space:nowrap}
.iedit{display:grid; gap:14px; max-width:720px}
.iform{display:grid; gap:14px}
.iform.ideal{background:#FFF8EF; border-color:#F1D3B3}
.itog{display:flex; justify-content:space-between; align-items:center; gap:14px; cursor:pointer}
.itog>span:first-child{display:grid; gap:2px}
.irs-h{display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap}
.irs-h>span:first-child{display:grid; gap:2px}
.irs{display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:8px}
.irs-c{display:flex; align-items:center; gap:10px; padding:10px 12px; border:1.5px solid var(--line); border-radius:10px; cursor:pointer; min-width:0; transition:border-color .4s ease, background .4s ease}
.irs-c span{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.irs-c input{width:18px; height:18px; accent-color:var(--brand, #1C8B4B); flex:none}
.irs-c:has(input:checked){border-color:var(--brand, #1C8B4B); background:#EEF7F1}
.iphoto{display:grid; gap:10px; font-weight:400}
.iph-img{position:relative; width:160px; height:160px; border-radius:14px; overflow:hidden; background:var(--band); border:1px dashed #C7D2C0; display:grid; place-items:center; color:var(--muted); font-size:13px; text-align:center}
.iph-img img{width:100%; height:100%; object-fit:cover; animation:fade .8s var(--ease) both}
.iph-img>span{font-size:13px}
.iph-busy{position:absolute; inset:0; display:grid; place-items:center; background:rgba(255,255,255,.82); font-weight:700; color:var(--green)}
.isizes{display:grid; gap:10px}
.isize{display:grid; grid-template-columns:1fr 1fr 1fr auto; gap:10px; align-items:end}
.ierr{margin:0; padding:12px 14px; border-radius:12px; background:var(--red-soft); color:var(--red); font-weight:700; font-size:14px}
.iacts{display:flex; gap:10px; flex-wrap:wrap}
.iacts .danger{margin-left:auto}
@media (max-width:560px){
 .ith{width:48px; height:48px}
 .isize{grid-template-columns:1fr 1fr; } .isize>label:first-child{grid-column:1/-1}
 .iacts{display:grid; grid-template-columns:1fr} .iacts .btn{min-height:48px} .iacts .danger{margin-left:0}
 .icat-tools .seg{overflow-x:auto; max-width:100%}
}

/* ---------- search box above an item list (order sheet, new order) ---------- */
.isearch{position:relative; margin-bottom:14px}
.isearch .inp{padding-left:40px; padding-right:44px; min-height:48px; font-size:16px; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23657065' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") no-repeat 13px center/18px}
.isearch .inp::-webkit-search-cancel-button{display:none}
.isx{position:absolute; right:6px; top:50%; transform:translateY(-50%); width:36px; height:36px; border-radius:50%; font-size:22px; line-height:1; color:var(--muted); display:grid; place-items:center}
.isx:hover{background:var(--band)}
.noshop .isearch,.shop .isearch{position:sticky; top:8px; z-index:5}

/* ---------- section menu: a sidebar on a computer; on a phone (and always in the restaurant portal)
   a ☰ button at the top right opens it as a panel from the right ---------- */
.drawer{display:flex; flex-direction:column; gap:22px; flex:1; min-height:0}
.dhead{display:none; margin:2px 0 0; font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:#BED3B0; font-weight:700}
.scrim{display:none}
.sidetools{display:none; align-items:center; gap:8px}
.menubtn{display:none; position:relative; width:44px; height:44px; border-radius:12px; flex-direction:column; justify-content:center; align-items:center; gap:5px; color:#fff; border:1px solid rgba(255,255,255,.22); transition:background .5s var(--ease)}
.menubtn:hover{background:rgba(255,255,255,.08)}
.menubtn span{display:block; width:20px; height:2px; border-radius:2px; background:currentColor; transition:transform .6s var(--ease),opacity .6s var(--ease)}
.menubtn .mdot{position:absolute; top:7px; right:7px; width:9px; height:9px; border-radius:50%; background:var(--orange); box-shadow:0 0 0 2px var(--green-dark)}
.side>.between{gap:10px}
.side>.between>.flexr{display:flex; align-items:center; gap:8px}
body.menu-open{overflow:hidden}
.app.topnav{grid-template-columns:minmax(0,1fr); grid-template-rows:auto 1fr; align-content:start}
.app.topnav .side{position:sticky; top:0; z-index:50; height:auto; padding:10px clamp(16px,3vw,40px)}
.app.topnav .main{width:100%; max-width:1240px; margin:0 auto}.app.topnav .side{gap:0}
.app.topnav .side .brand{font-size:17px} .app.topnav .side .brand svg{width:24px; height:28px}
.app.topnav .menubtn{display:inline-flex}
.app.topnav .sidetools{display:flex}
.app.topnav .drawer{position:fixed; top:0; right:0; bottom:0; z-index:70; width:min(340px,86vw); background:var(--green-dark); padding:18px 16px calc(18px + env(safe-area-inset-bottom)); gap:14px; overflow-y:auto; overscroll-behavior:contain; transform:translateX(104%); visibility:hidden; transition:transform .7s var(--ease),visibility 0s linear .7s; box-shadow:-24px 0 60px rgba(15,34,25,.32)}
.menu-open .app.topnav .drawer{transform:none; visibility:visible; transition:transform .7s var(--ease),visibility 0s}
.app.topnav .dhead{display:block}
.app.topnav .scrim{display:block; position:fixed; inset:0; z-index:65; background:rgba(15,34,25,.45); opacity:0; pointer-events:none; transition:opacity .7s var(--ease)}
.menu-open .app.topnav .scrim{opacity:1; pointer-events:auto}
.app.topnav .side nav .mobonly{display:none}
.app.topnav .side nav button{min-height:50px; font-size:15px}
.app.topnav .side nav .ct{margin-left:auto}
@media (max-width:820px){
.app .side{gap:0}
.app .side .brand{font-size:17px} .app .side .brand svg{width:24px; height:28px}
.app .menubtn{display:inline-flex}
.app .sidetools{display:flex}
.app .drawer{position:fixed; top:0; right:0; bottom:0; z-index:70; width:min(340px,86vw); background:var(--green-dark); padding:18px 16px calc(18px + env(safe-area-inset-bottom)); gap:14px; overflow-y:auto; overscroll-behavior:contain; transform:translateX(104%); visibility:hidden; transition:transform .7s var(--ease),visibility 0s linear .7s; box-shadow:-24px 0 60px rgba(15,34,25,.32)}
.menu-open .app .drawer{transform:none; visibility:visible; transition:transform .7s var(--ease),visibility 0s}
.app .dhead{display:block}
.app .scrim{display:block; position:fixed; inset:0; z-index:65; background:rgba(15,34,25,.45); opacity:0; pointer-events:none; transition:opacity .7s var(--ease)}
.menu-open .app .scrim{opacity:1; pointer-events:auto}
.app .side nav .mobonly{display:none}
.app .side nav button{min-height:50px; font-size:15px}
.app .side nav .ct{margin-left:auto}}
@media (max-width:820px){ .app{grid-template-rows:auto 1fr; align-content:start} }

/* ---------- restaurant profile (owner) ---------- */
.pcard{display:grid; gap:16px}
.phead{display:flex; gap:16px; align-items:flex-start}
.phead h2{font-size:24px; margin:0}
.pav{width:58px; height:58px; flex-shrink:0; border-radius:16px; background:var(--green); color:#fff; display:grid; place-items:center; font-family:var(--heading); font-weight:800; font-size:26px}
.pcontact{display:flex; flex-wrap:wrap; gap:8px 18px; font-size:14px}
.pcontact a{color:var(--green); font-weight:700; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere}
.pcard .acts{gap:8px; flex-wrap:wrap}
@media (max-width:560px){ .pcard .acts{display:grid; grid-template-columns:1fr} .pcard .acts .btn{min-height:46px} }

/* ---------- invoice filters ---------- */
.invf{display:grid; gap:12px; margin-bottom:12px; padding:16px}
.invf-row{display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1.2fr) minmax(0,1fr); gap:10px}
.invf-row:has(> :nth-child(2):last-child){grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.invf-row select.inp{min-height:48px}
.invf-dates{display:flex; gap:12px; flex-wrap:wrap; align-items:end; justify-content:space-between}
.invf .chips{flex-wrap:wrap; border-radius:16px}
.invf-from{display:flex; gap:10px}
.invf-from .field{font-size:12px; font-weight:700; color:var(--muted)}
.invf-from .inp{min-height:40px; padding:6px 10px}
.invsum{margin:4px 0 12px; font-size:14px; color:var(--muted)} .invsum b{color:var(--ink)} .invsum .owe{color:var(--orange); font-weight:700}
@media (max-width:820px){
 .invf-row{grid-template-columns:1fr 1fr} .invf-row>:first-child{grid-column:1/-1}
 .invf-row:has(> :nth-child(2):last-child){grid-template-columns:1fr}
 .invf .chips{display:flex; overflow-x:auto; flex-wrap:nowrap; max-width:100%; scrollbar-width:none} .invf .chips button{white-space:nowrap}
 .invf-from{width:100%} .invf-from .field{flex:1}
}

/* ---------- statements (owner) ---------- */
.stready{display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:16px; background:var(--orange-soft); border-color:#F1D3B3}
.stready>div:first-child{display:grid; gap:2px}
.stsum{display:grid; gap:10px; margin-top:14px}
.stsum>div{display:flex; justify-content:space-between; gap:12px; font-size:15px}
.stsum .grand{border-top:2px solid var(--green); padding-top:10px; font-family:var(--heading); font-weight:800; font-size:20px; color:var(--green-dark)}
.stchk{display:flex; align-items:center; gap:12px; padding:12px 14px; border:1.5px solid var(--line); border-radius:12px; cursor:pointer; transition:border-color .5s var(--ease),background .5s var(--ease)}
.stchk:has(input:checked){border-color:var(--orange); background:#FFF8EF}
.stchk input{width:20px; height:20px; accent-color:var(--orange); flex-shrink:0}
.stchk>span:nth-child(2){display:grid; gap:2px; flex:1}
.stchk.dis{opacity:.55; cursor:default}

/* quick "+ Add item" (owner) and the item form's "More options" */
.side .addside{width:100%; justify-content:center; min-height:44px}

/* on/off switches say "On" or "Off" so it is clear which way they are set */
.toggle{display:inline-block; vertical-align:middle; width:60px; height:30px}
.toggle span::after{top:3px; left:3px; width:24px; height:24px; box-shadow:0 1px 3px rgba(15,34,25,.25)}
.toggle input:checked+span::after{transform:translateX(30px)}
.toggle span::before{content:"Off"; position:absolute; right:8px; top:50%; transform:translateY(-50%); font-size:11px; font-weight:800; letter-spacing:.02em; color:#4E5A4B; transition:opacity .5s var(--ease)}
.toggle input:checked+span::before{content:"On"; right:auto; left:9px; color:#fff}
.onlbl{font-style:normal; color:var(--green); font-weight:700}
.offlbl{font-style:normal; color:var(--muted); font-weight:700}

/* restaurant names open their profile */
.rlink{color:var(--green); font-weight:inherit; font-size:inherit; text-align:left; padding:0; text-decoration:underline; text-decoration-color:rgba(46,94,62,.35); text-underline-offset:3px; transition:text-decoration-color .5s var(--ease)}
.rlink:hover{text-decoration-color:currentColor}
.rlinkhead{width:100%; text-align:left; cursor:pointer}
.rlinkhead b{color:var(--green)}
.rlinkhead .go{display:inline-block; margin-left:4px; color:var(--muted); transition:transform .5s var(--ease)}
.rlinkhead:hover .go{transform:translateX(3px)}

/* ---------- mobile simplifications (Nov 2026) ---------- */
/* invoice filters: "Filter" button only matters on a phone */
.invf-tog{display:none}
.invf-row:not(:has(select+select)){grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
@media (max-width:820px){
 .invf-row,.invf-row:not(:has(select+select)){grid-template-columns:minmax(0,1fr) auto}
 .invf-row>:first-child{grid-column:auto}
 .invf-tog{display:inline-flex; align-items:center; min-height:48px; padding:0 18px; border-radius:12px; border:1.5px solid var(--line); background:#fff; font-weight:700; color:var(--green); white-space:nowrap; transition:background .5s var(--ease),border-color .5s var(--ease)}
 .invf-tog.on{border-color:var(--green); background:var(--sage)}
 .invf:not(.open) .invf-row>select,.invf:not(.open) .invf-dates{display:none}
 .invf.open .invf-row>select{grid-column:1/-1; animation:imore .6s var(--ease) both}
 .invf.open .invf-dates{animation:imore .6s var(--ease) both}
 .invf:not(.open){padding:12px}
}
/* summary numbers: two small boxes per row on a phone instead of one big box each */
@media (max-width:560px){
 .grid.g3:has(>.stat),.grid.g4:has(>.stat){grid-template-columns:1fr 1fr; gap:10px}
 .grid.g3:has(>.stat)>.stat:last-child:nth-child(odd){grid-column:1/-1}
 .grid>.stat{padding:14px 14px 12px}
 .grid>.stat .v{font-size:21px}
 .grid>.stat .k{font-size:12px}
 .grid>.stat .s{font-size:12px}
}
/* the owner's big + button (phone) */
.ofab{display:none}
@media (max-width:820px){
 .ofab{display:grid; place-items:center; position:fixed; right:16px; bottom:calc(20px + env(safe-area-inset-bottom)); z-index:60; width:60px; height:60px; border-radius:50%; background:var(--orange); color:#fff; font-size:32px; font-weight:400; line-height:1; padding-bottom:4px; box-shadow:0 14px 30px rgba(15,34,25,.32); transition:transform .5s var(--ease)}
 .ofab:active{transform:scale(.94)}
 .menu-open .ofab{opacity:0; pointer-events:none}
 /* pages with their own buttons at the bottom don't need it */
 body[data-view="neworder"] .ofab,body[data-view="item"] .ofab,body[data-view="editor"] .ofab,body[data-view="more"] .ofab{display:none}
 .main:has(.nobar) ~ .ofab,.main:has(.savebar) ~ .ofab{bottom:calc(92px + env(safe-area-inset-bottom))}
}
@media (max-width:820px){ .top .tools>.btn[data-go="item:shop:new"]{display:none} }
/* change an invoice: one row per item, quantity and price side by side */
.chl{display:grid; border:1px solid var(--line); border-radius:14px; overflow:hidden}
.chrow{display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 14px; align-items:center; padding:12px 14px; border-bottom:1px solid var(--line); transition:background .5s var(--ease)}
.chrow:last-child{border-bottom:0}
.chrow.gone{background:#F4F4F1} .chrow.gone .chname b{text-decoration:line-through; color:var(--muted)}
.chname{display:grid; gap:2px; min-width:0}
.chctl{display:flex; align-items:center; gap:10px}
.chq{display:flex; align-items:center; gap:2px}
.chq b{min-width:28px; text-align:center}
.chp{display:flex; align-items:center; gap:4px; font-size:13px; color:var(--muted)}
.chp .inp{width:84px; min-height:40px; padding:6px 8px; text-align:right}
.chtot{min-width:76px; text-align:right}
@media (max-width:560px){
 .chrow{grid-template-columns:minmax(0,1fr)}
 .chctl{justify-content:space-between}
}
/* tables inside a profile card: never wider than the card */
.ptable{overflow-x:auto; margin:0 -4px; padding:0 4px}
.ptable .table{min-width:0}
@media (max-width:1200px){ .grid.g2:has(.ptable){grid-template-columns:minmax(0,1fr)} }
@media (min-width:821px){ .ptable .invacts{flex-wrap:wrap} }
/* change-invoice rows on very small phones */
@media (max-width:380px){ .chctl{flex-wrap:wrap; row-gap:8px} .chtot{margin-left:auto} .chp .inp{width:76px} }
.invacts{justify-content:flex-end; flex-wrap:nowrap}
@media (max-width:820px){ .invacts{display:grid; grid-template-columns:repeat(auto-fit,minmax(104px,1fr)); width:100%} .invacts .btn{min-height:44px} .table.stack td:last-child{display:block; padding-top:8px} }
/* call / WhatsApp / email on a restaurant's profile */
.callrow{display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:8px}
.callrow .btn{min-height:46px}
/* price list: save bar stays in reach; button to show the items they can't see */
.showoff{margin-top:12px; width:100%; min-height:48px}
.savebar{display:flex; gap:12px; align-items:center; justify-content:flex-end; flex-wrap:wrap; margin-top:18px}
@media (max-width:820px){
 .savebar{position:sticky; bottom:0; z-index:20; margin:18px -16px 0; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); background:rgba(250,247,239,.96); border-top:1px solid var(--line); backdrop-filter:blur(8px)}
 .savebar .small{display:none} .savebar .btn{width:100%}
}
/* swipe an order card to mark the next step */
[data-swipe]{position:relative; touch-action:pan-y; will-change:transform}
[data-swipe]::before{content:"✓ " attr(data-swipel); position:absolute; left:0; top:0; bottom:0; width:0; display:flex; align-items:center; overflow:hidden; white-space:nowrap; transform:translateX(-100%); padding:0; color:var(--green); font-weight:800; font-size:14px; opacity:0; transition:opacity .4s var(--ease)}
[data-swipe][data-swipeon="1"]::before{opacity:.55; width:160px; justify-content:flex-end; padding-right:14px}
[data-swipe].swipe-go{border-color:var(--green); background:var(--sage)}
[data-swipe].swipe-go::before{opacity:1}
.swipehint{display:none}
@media (hover:none){ .swipehint{display:block; margin:-6px 0 12px} }
/* restaurant portal: reorder card and "you order this often" */
.reorder{display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:16px; background:var(--sage); border-color:#CFE0C6}
.reorder>div{display:grid; gap:3px; min-width:0; flex:1 1 220px}
.reorder .btn{min-height:48px}
@media (max-width:560px){ .reorder .btn{width:100%} }
.usual{font-style:normal; color:var(--orange); font-weight:700}
/* bigger tap targets on a phone */
@media (max-width:820px){
 .btn.sm{min-height:42px; padding-inline:16px}
 .rlink{min-height:32px; display:inline-flex; align-items:center}
 .top .tools .btn.ghost.sm{min-height:42px}
}

/* invoice filters never push the page wider than a phone screen */
.ilist{grid-template-columns:minmax(0,1fr)} .irow{min-width:0} .ipr{flex-shrink:0}
@media (max-width:560px){ .istock{padding-left:8px} .imain{gap:10px} }
.invf,.invf>*,.invf-row>*,.invf-dates>*,.invf-from .field,.invf-from .inp{min-width:0}
@media (max-width:820px){
 .invf-dates{display:grid; grid-template-columns:minmax(0,1fr)}
 .invf-from .inp{width:100%}
 .main{overflow-x:clip}
}
.bell.addtop{font-size:26px; line-height:1; font-weight:500; color:var(--green); padding-bottom:3px}
.imore-btn{display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; width:100%; text-align:left; padding:14px 18px; border:1px dashed var(--line); border-radius:14px; background:#fff; font-weight:700; color:var(--green); transition:background .5s var(--ease)}
.imore-btn:hover{background:var(--band)}
.imore{display:grid; gap:16px; animation:imore .7s var(--ease) both}
@keyframes imore{from{opacity:0; transform:translateY(-6px)}to{opacity:1; transform:none}}
@media (prefers-reduced-motion:reduce){.imore{animation:none}}

/* statement: pick dates + invoices, preview */
.stdates{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.stdates .inp{min-width:0; width:100%}
.stquick{display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 12px}
.stquick .chip{padding:7px 13px; border-radius:999px; border:1.5px solid var(--line); background:#fff; font-size:13px; font-weight:600; color:var(--ink); transition:background .5s var(--ease),border-color .5s var(--ease),color .5s var(--ease)}
.stquick .chip.on{background:var(--green); border-color:var(--green); color:#fff}
.stpick td{vertical-align:middle}
.stpick tr.off td{opacity:.5}
.stpick .stck{width:20px; height:20px; accent-color:var(--green); cursor:pointer}
.stacts{flex-wrap:wrap}
@media (max-width:480px){.stacts .btn{flex:1 1 auto} .stacts .btn.orange{flex-basis:100%}}
.stpick .stid{white-space:nowrap}
.stpick td{padding-left:10px; padding-right:10px}
@media (max-width:480px){.stpick .stpill{display:none}}
/* GST marks */
.gtag{display:inline-grid; place-items:center; min-width:18px; height:18px; padding:0 4px; border-radius:5px; background:#FBEBD5; color:#7A3712; font-size:11px; font-weight:800; vertical-align:middle; margin-left:4px}
.gnote{color:#9A4A16; font-weight:700}
/* restaurant Home */
.hgo{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:12px; margin-bottom:14px}
.hstart{display:flex; align-items:center; gap:14px; text-align:left; width:100%; background:var(--green); color:#fff; border-color:var(--green); transition:transform .5s var(--ease),box-shadow .5s var(--ease)}
.hstart b{display:block; font-size:18px; font-family:var(--heading)}
.hstart .small{color:rgba(255,255,255,.82)!important; display:block; margin-top:2px}
.hstart.alt{background:#fff; color:var(--ink); border-color:var(--line)}
.hstart.alt .small{color:var(--muted)!important}
.hstart>span:nth-child(2){flex:1; min-width:0}
.hstart .hic{display:grid; place-items:center; width:46px; height:46px; border-radius:12px; background:rgba(255,255,255,.16); font-size:22px; flex:none}
.hstart.alt .hic{background:var(--band); color:var(--green)}
.hstart .har{font-size:22px; flex:none}
.hstart:hover{transform:translateY(-2px); box-shadow:0 12px 26px rgba(15,34,25,.12)}
.hstats{margin-bottom:6px}
.hstat{text-align:left; width:100%; cursor:pointer; transition:border-color .5s var(--ease),transform .5s var(--ease)}
.hstat:hover{border-color:var(--green); transform:translateY(-1px)}
.hlist{padding:6px 16px; display:grid}
.hrow{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); text-align:left; width:100%}
.hrow:last-of-type{border-bottom:0}
.hrow>span:first-child{min-width:0; display:grid; gap:2px}
.hrow>span:first-child .small{overflow-wrap:anywhere}
.hend{display:flex; align-items:center; gap:10px; flex:none}
.hrow>.btn{flex:none}
.hmore{justify-self:start; padding:10px 0 8px; color:var(--green); font-weight:700; font-size:14px}
.hdot{display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--orange); margin-right:6px; vertical-align:middle}
@media (max-width:560px){
 .hrow{flex-wrap:wrap} .hend{width:100%; justify-content:space-between}
 .hrow>.btn{width:100%}
 .hstart b{font-size:17px}
}
/* card payments go through Clover (demo stand-in) */
.clv{display:grid; gap:10px; padding:16px; border:1.5px solid var(--line); border-radius:14px; background:#FBFCFB}
.clvh{display:flex; align-items:center; justify-content:space-between; gap:10px}
.clvlogo{font-weight:800; font-size:18px; letter-spacing:.01em; color:#14703B}
.clvlogo.stp{color:#635BFF; font-size:20px; letter-spacing:-.03em}
/* restaurant stock switch */
.prod.oos .pimg img{filter:grayscale(.85); opacity:.6}
.prod.oos .pimg{position:relative}
.oosbadge{position:absolute; left:10px; top:10px; background:#B42318; color:#fff; font-size:12px; font-weight:800; letter-spacing:.04em; padding:5px 10px; border-radius:999px}
/* packing check */
.pkl{display:grid; gap:10px}
.pkrow{border:1.5px solid var(--line); border-radius:14px; padding:12px 14px; display:grid; gap:10px; transition:border-color .5s var(--ease),background .5s var(--ease)}
.pkrow.ok{border-color:#BFD9C6; background:#F4FAF5}
.pkrow.short{border-color:#F1D3B3; background:#FFF8F0}
.pkmain{display:flex; align-items:center; gap:12px}
.pkname{flex:1; min-width:0; display:grid; gap:2px}
.pkchk{width:34px; height:34px; flex:none; border-radius:10px; border:2px solid var(--line); background:#fff; color:#fff; font-weight:800; font-size:18px; display:grid; place-items:center}
.pkrow.ok .pkchk{background:var(--green); border-color:var(--green)}
.pkfix{display:flex; flex-wrap:wrap; gap:10px 16px; align-items:end}
.pkfix .chq{display:flex; align-items:center; gap:6px}
.pkfix .field{min-width:170px; flex:1}
.pkhide{display:flex; gap:8px; align-items:center; font-size:13.5px; width:100%}
.pkhide input{width:18px; height:18px; accent-color:var(--green)}
