:root{--navy:#1c2541;--accent:#a73b2e;--tint:#e7dec7;--ink:#1c2541;--muted:#4b5578;--line:#d3c6a4;--bg:#f1ead9;--ok:#2c4436;--okbg:#d5e0d0;--oktx:#2c4436;--warn:#b5832a;--warnbg:#f3e1b8;--warntx:#6b4308;--bad:#a73b2e;--badbg:#f3dcd5;--badtx:#8a2d21;}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;font-size:16px;line-height:1.4;color:var(--ink);background:var(--bg);-webkit-text-size-adjust:100%;}
button,input,select,textarea{font:inherit;color:inherit;}
button{cursor:pointer;}
.hidden{display:none!important;}

.top{background:var(--navy);color:#f1ead9;padding:0 16px;height:60px;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:30;}
.top .name{font-weight:700;font-size:18px;letter-spacing:.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
.top .who{font-size:13px;opacity:.85;}
nav.tabs{display:flex;background:#fbf7ec;border-bottom:1px solid var(--line);position:sticky;top:60px;z-index:25;}
nav.tabs button{flex:1;border:0;background:none;padding:14px 6px;font-weight:600;color:var(--muted);border-bottom:3px solid transparent;min-height:48px;}
nav.tabs button.on{color:var(--navy);border-bottom-color:var(--accent);}
main{max-width:960px;margin:0 auto;padding:14px 14px 90px;}

.card{background:#fbf7ec;border:1px solid var(--line);border-radius:10px;padding:14px;margin-bottom:14px;}
h2{font-size:18px;margin:0 0 10px;color:var(--navy);}
h3{font-size:15px;margin:14px 0 8px;color:var(--navy);}
label{display:block;font-size:13px;font-weight:600;color:var(--muted);margin:10px 0 4px;}
input,select{width:100%;min-height:46px;padding:9px 12px;border:1px solid #c6b896;border-radius:8px;background:#fbf7ec;}
input:focus,select:focus,button:focus-visible{outline:2px solid var(--accent);outline-offset:1px;}
.row{display:flex;gap:10px;flex-wrap:wrap;}
.row>*{flex:1 1 140px;}
.btn{min-height:48px;padding:10px 18px;border-radius:8px;border:1px solid var(--navy);background:#fbf7ec;color:var(--navy);font-weight:600;}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#f1ead9;}
.btn.navy{background:var(--navy);color:#f1ead9;}
.btn.small{min-height:36px;padding:4px 12px;font-size:14px;}
.btn.danger{border-color:#e8a89b;color:var(--badtx);}
.btn[disabled]{opacity:.5;cursor:not-allowed;}
.btn.big{width:100%;min-height:58px;font-size:18px;margin-top:14px;}

.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;margin-bottom:6px;}
.chip{flex:0 0 auto;border:1px solid #c6b896;background:#fbf7ec;border-radius:999px;padding:8px 16px;min-height:40px;font-weight:600;color:var(--navy);}
.chip.on{background:var(--navy);border-color:var(--navy);color:#f1ead9;}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-bottom:16px;}
.prod{background:#fbf7ec;border:1px solid var(--line);border-radius:10px;padding:10px;text-align:left;min-height:84px;display:flex;flex-direction:column;justify-content:space-between;}
.prod:active{background:var(--tint);}
.prod .pn{font-weight:600;font-size:14px;line-height:1.25;overflow-wrap:anywhere;}
.prod .pp{color:var(--navy);font-weight:700;margin-top:6px;}
.prod .ps{font-size:12px;color:var(--muted);}
.prod .ps.low{color:var(--warntx);font-weight:700;}

.cartline{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line);}
.cartline .nm{flex:1 1 110px;min-width:110px;font-size:14px;overflow-wrap:break-word;word-break:normal;}
.cartline .askrm{flex:1 0 100%;}
.qty{display:flex;align-items:center;gap:6px;}
.qty button{width:38px;height:38px;border-radius:8px;border:1px solid #c6b896;background:#fbf7ec;font-size:20px;line-height:1;}
.cartline .amt{min-width:84px;text-align:right;font-weight:600;}
.totalbar{display:flex;justify-content:space-between;font-size:20px;font-weight:700;color:var(--navy);margin:12px 0 4px;}
.payline{display:flex;gap:8px;margin-bottom:8px;}
.payline select{flex:1.2;}
.payline input{flex:1;text-align:right;}
.payline .x{flex:0 0 46px;border:1px solid #c6b896;background:#fbf7ec;border-radius:8px;font-size:20px;}
.hint{font-size:13px;color:var(--muted);}
.hint.bad{color:var(--badtx);font-weight:700;}

.sale{border-bottom:1px solid var(--line);padding:10px 0;}
.sale .l1{display:flex;justify-content:space-between;gap:10px;font-weight:600;}
.sale .l2{font-size:13px;color:var(--muted);overflow-wrap:anywhere;}
.badge{display:inline-block;background:var(--bad);color:#f1ead9;border-radius:4px;padding:1px 6px;font-size:11px;font-weight:700;margin-left:6px;}
.sale.void .l1 span:last-child{text-decoration:line-through;color:var(--muted);}

.seg{display:flex;flex-wrap:wrap;gap:8px;}
.seg button{flex:1 1 90px;min-height:46px;border:1px solid #c6b896;background:#fbf7ec;border-radius:8px;font-weight:600;color:var(--navy);}
.seg button.on{background:var(--navy);border-color:var(--navy);color:#f1ead9;}
.check{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:15px;font-weight:500;color:var(--ink);}
.check input{width:22px;min-height:22px;height:22px;}

.msg{border-radius:8px;padding:12px 14px;margin-top:14px;font-size:15px;}
.msg.err,.msg.info.alert{background:#a73b2e;border:1px solid #8a2d21;border-left:8px solid #4a1710;color:#f1ead9;font-weight:700;}
.msg.info{background:#f6ead0;border:1px solid #e6c97f;color:#6b4308;}
.msg.ok{background:#d5e0d0;border:1px solid #a9c7b0;color:#2c4436;}
.spin{display:inline-block;width:18px;height:18px;border:3px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:s .8s linear infinite;vertical-align:-3px;margin-right:8px;}
@keyframes s{to{transform:rotate(360deg);}}

#toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);background:var(--navy);color:#f1ead9;padding:12px 18px;border-radius:10px;max-width:92vw;opacity:0;pointer-events:none;transition:opacity .2s;z-index:20;font-size:15px;}
#toast.show{opacity:1;}
.login{max-width:380px;margin:12vh auto 0;padding:0 16px;}
.login .brand{text-align:center;margin-bottom:18px;}
.login .brand b{display:block;font-size:26px;color:var(--navy);letter-spacing:.5px;}
.login .brand span{color:var(--muted);}

/* Added in the second build */
.top .brandline{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto;}
.top img.lg{height:30px;max-width:90px;object-fit:contain;background:#fbf7ec;border-radius:4px;padding:2px;}
nav.tabs{overflow-x:auto;}
nav.tabs button{white-space:nowrap;padding-left:14px;padding-right:14px;}
.subnav{margin-bottom:14px;}
.btnrow{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;}
.btnrow .btn{flex:1 1 140px;margin-top:0;}
.btnrow .btn.big{width:auto;}
.item{border-bottom:1px solid var(--line);padding:10px 0;}
.item .l1{display:flex;justify-content:space-between;gap:10px;font-weight:600;}
.item .l2{font-size:13px;color:var(--muted);overflow-wrap:anywhere;}
.item .acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;}
.item .sub{background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin-top:10px;}
.item.off .l1>span:first-child{color:var(--muted);text-decoration:line-through;}
.badge.grey{background:#5f6784;}
.badge.ok{background:var(--ok);}
.logo-prev{max-height:80px;max-width:240px;border:1px solid var(--line);border-radius:8px;padding:6px;background:#fbf7ec;display:block;margin:8px 0;}
input[type=color]{padding:3px;min-height:46px;}
input[type=file]{padding:8px;}
.aud{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px;}
.aud .t{color:var(--muted);font-size:12px;grid-column:1/-1;}
.aud .a{font-weight:700;color:var(--navy);white-space:nowrap;}
.aud .a.bad{color:var(--badtx);}
.login .brand img{max-height:70px;max-width:220px;display:block;margin:0 auto 10px;}
textarea{width:100%;padding:9px 12px;border:1px solid #c6b896;border-radius:8px;min-height:70px;}
.subnav button{flex:1 1 20%;min-width:0;padding:0 4px;}

#offline{position:fixed;left:0;right:0;top:0;z-index:50;background:#a73b2e;color:#f1ead9;text-align:center;padding:8px 12px;font-size:14px;font-weight:600}
#offline[hidden]{display:none}

/* Open orders board */
.boardhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;}
.boardhead h2{margin:0;font-size:20px;}
.blocks{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px;margin-bottom:16px;}
.oblock{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;background:#fbf7ec;border:1px solid var(--line);border-left:5px solid var(--navy);border-radius:10px;padding:8px 9px;min-height:104px;}
.oblock.client{border-left-color:var(--accent);}
.oblock.mine{background:var(--tint);}
.oblock:active{filter:brightness(.96);}
.oblock .otag,.otag{font-size:10px;font-weight:700;letter-spacing:.06em;color:var(--muted);}
.oblock .olabel{font-weight:700;font-size:16px;line-height:1.15;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--navy);}
.oblock .ototal{font-weight:700;font-size:14px;margin-top:auto;}
.oblock .ometa{font-size:11px;color:var(--muted);}
.obar{display:flex;align-items:center;gap:12px;margin-bottom:10px;}
.obar .ot{flex:1;min-width:0;}
.obar .ot b{font-size:20px;color:var(--navy);overflow-wrap:anywhere;}
.obar .otag{margin-left:6px;vertical-align:middle;}
.tblgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:8px;}
.tbl{min-height:52px;border:1px solid #c6b896;background:#fbf7ec;border-radius:10px;font-size:18px;font-weight:700;color:var(--navy);}
.tbl.busy{background:var(--navy);border-color:var(--navy);color:#f1ead9;}
.tbl.busy::after{content:"open";display:block;font-size:9px;font-weight:600;letter-spacing:.04em;}

.oblock{min-height:118px;}
.oblock.unpaid{border-top:3px solid #b5832a;}
.oblock .orec{margin-top:6px;align-self:stretch;text-align:center;font-size:12px;font-weight:700;border-radius:6px;padding:5px 4px;background:var(--accent);color:#f1ead9;}
.oblock:not(.unpaid) .orec{background:#fbf7ec;color:var(--navy);border:1px solid #c6b896;}
.pendbar{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;background:#f6ead0;border:1px solid #d4a548;border-radius:10px;padding:10px 12px;margin-bottom:10px;color:#6b4308;}
.pendbar .pendamt{font-size:18px;color:#6b4308;}
.paidbar{background:#d5e0d0;color:#2c4436;}
.cfwd{margin:8px 0 0;width:100%;}
.debtbox{margin-top:10px;padding:10px;border:1px dashed #c6b896;border-radius:10px;background:#f6ead0;}
.billbox{margin-top:12px;padding:10px;border:1px dashed #c6b896;border-radius:10px;background:#f7f1e1;}
.billbox .btnrow{margin-top:8px;}
.agebar{display:flex;gap:8px;margin:0 0 10px;}
.agebar>div{flex:1;background:#fbf7ec;border:1px solid var(--line);border-radius:10px;padding:8px 10px;}
.agebar .al{font-size:11px;color:var(--muted);font-weight:600;}
.agebar .av{font-weight:700;color:var(--navy);font-size:14px;}
.agebar .old .av{color:var(--badtx);}
.otag.over{color:#f1ead9;background:var(--bad);padding:1px 6px;border-radius:4px;}
.limitbox{margin-top:10px;padding:10px;border:1px dashed #c6b896;border-radius:10px;background:#f7f1e1;}
.wa{display:inline-block;margin-top:8px;text-decoration:none;text-align:center;}
.refline input{text-transform:uppercase;}
.cnt-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--line);}
.cnt-row .nm{flex:1;font-size:14px;overflow-wrap:anywhere;}
.cnt-row input{width:90px;flex:0 0 90px;text-align:right;}
.diff-short{color:var(--badtx);font-weight:700;}
.diff-over{color:#6b4308;font-weight:700;}

.qbar{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f6ead0;border:1px solid #d4a548;border-radius:10px;padding:10px 12px;margin-bottom:10px;color:#6b4308;}
.qbar.bad{background:#f3dcd5;border-color:#e8a89b;color:#8a2d21;}
.offbanner{background:#f6ead0;border-bottom:1px solid #e6c97f;color:#6b4308;padding:8px 14px;font-size:14px;display:flex;gap:10px;align-items:center;justify-content:space-between;}
.offmsg{grid-column:1/-1;}

/* Takeaway (staff) */
.tkcard{padding:0;overflow:hidden;}
.tkhead{padding:12px 14px;cursor:pointer;}
.tkhead .l1{display:flex;justify-content:space-between;gap:10px;color:var(--navy);}
.tkhead .l2{font-size:13px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere;}
.tkbody{padding:0 14px 14px;border-top:1px solid var(--line);}
.tkcard.open{border-color:var(--navy);}
.tkgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 4px;}
.tkurl{display:flex;gap:8px;margin-top:4px;}
.tkurl input{flex:1;min-width:0;}
.tkprods{max-height:260px;overflow-y:auto;border:1px solid var(--line);border-radius:8px;padding:0 10px;margin-top:6px;}
.qty b{min-width:24px;text-align:center;}
.rider{background:#f1ead9;border:1px solid #e7dec7;border-radius:8px;padding:10px 12px;margin-top:10px;}
.tl{display:grid;grid-template-columns:96px 1fr;gap:8px;font-size:13px;padding:5px 0;border-bottom:1px solid var(--line);}
.tl span:first-child{color:var(--muted);}
.st{display:inline-block;border-radius:999px;padding:2px 9px;font-size:11px;font-weight:700;margin-right:6px;color:#f1ead9;background:#5f6784;}
.st-pending{background:#6b4308;}.st-confirmed{background:#a73b2e;}.st-ready{background:#2c4436;}.st-in_transit{background:#1c2541;}
.st-delivered{background:var(--ok);}.st-cancelled{background:#5d6585;}.st-paid{background:#2c4436;}.st-unpaid{background:#fbf7ec;color:#6b4308;border:1px solid #b5832a;}
nav.tabs .badge{margin-left:4px;}
.tkbody .sub{background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin-top:14px;}
.tkbody .btnrow{margin-top:14px;}
.trackmap{height:240px;border-radius:10px;border:1px solid var(--line);overflow:hidden;background:#e7dec7;color:var(--muted);display:flex;align-items:center;justify-content:center;font-size:14px;margin:8px 0;}
.trackmap.leaflet-container{display:block;}
.custlogin{margin-top:14px;text-align:center;}
.custlogin .btnrow{justify-content:center;}
.custlogin a.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;}
.credit{text-align:center;font-size:12px;line-height:1.5;color:var(--muted);margin:22px 8px 10px;}
.credit a{color:inherit;font-weight:600;}
/* Dish photos */
.prod.withimg{padding:0;overflow:hidden;}
.prod .pimg{width:100%;height:84px;object-fit:cover;display:block;background:var(--tint);}
.prod.withimg .pn,.prod.withimg>span{padding:0 10px;}
.prod.withimg>span:last-child{padding-bottom:10px;}
.prod.withimg .pn{margin-top:6px;}
.thumb{width:72px;height:72px;border-radius:10px;object-fit:cover;border:1px solid var(--line);background:#fbf7ec;flex:0 0 72px;}
.thumb.ph{display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--muted);text-align:center;background:var(--tint);}
.photo-row{display:flex;gap:10px;align-items:center;margin:6px 0;}
.photo-row input[type=file]{max-width:100%;font-size:13px;}
.dish{display:flex;gap:10px;align-items:flex-start;}
.dish .dinfo{flex:1;min-width:0;}
.mini{width:28px;height:28px;border-radius:6px;object-fit:cover;vertical-align:middle;margin-right:8px;}
/* Larger dish photos on the Sell screen */
.prod .pimg{height:auto;aspect-ratio:4/3;}
/* Roles */
.rolesel{width:auto;flex:0 0 auto;padding:7px 10px;font-size:14px;min-height:0;}
.grid .prod:not(.withimg){align-self:start;}
.badge.bad{background:var(--bad);color:#f1ead9;}

/* Live special-day offers: bright, cool colour with a pulsing live dot */
.livedot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#d4a548;box-shadow:0 0 0 0 rgba(0,229,255,.7);animation:livepulse 1.4s infinite;margin-right:6px;vertical-align:middle;}
@keyframes livepulse{0%{box-shadow:0 0 0 0 rgba(0,229,255,.7);}70%{box-shadow:0 0 0 9px rgba(0,229,255,0);}100%{box-shadow:0 0 0 0 rgba(0,229,255,0);}}
@media (prefers-reduced-motion:reduce){.livedot{animation:none;}}
.chip.offer{background:#a73b2e;border-color:transparent;color:#f1ead9;box-shadow:0 2px 10px rgba(31,95,230,.35);}
.chip.offer.on{outline:3px solid #1c2541;}
.prod.offer{background:#e7dec7;border:2px solid #a73b2e;box-shadow:0 2px 12px rgba(31,95,230,.25);}
.prod.offer .pp{color:#a73b2e;}
.livetag{font-size:11px;font-weight:800;letter-spacing:.06em;color:#1c2541;}
.oblock.offer{background:#e7dec7;border:2px solid #a73b2e;box-shadow:0 2px 12px rgba(31,95,230,.25);}
.offtag{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.04em;color:#f1ead9;background:#a73b2e;border-radius:999px;padding:2px 9px;margin:2px 0;}
.offtag .livedot{width:7px;height:7px;background:#fbf7ec;margin-right:5px;}
.psearch{margin:2px 0 8px;}
.psearch input{width:100%;box-sizing:border-box;}
.btn.small .spin{width:12px;height:12px;border-width:2px;margin-right:6px;border-color:rgba(22,33,63,.25);border-top-color:#1c2541;vertical-align:-2px;}

/* Kitchen and bar tickets */
.card.tix{border-left:6px solid #8a92ad;}
.card.tix.kitchen{border-left-color:#b5832a;}
.card.tix.bar{border-left-color:#a73b2e;}
.card.tix.late1{background:#f6ead0;}
.card.tix.late2{background:#f3dcd5;border-color:#a73b2e;}
.stn{font-size:11px;font-weight:800;letter-spacing:.06em;padding:2px 8px;border-radius:999px;color:#f1ead9;background:#8a92ad;}
.stn.kitchen{background:#b5832a;}
.stn.bar{background:#a73b2e;}
.tixline{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--line);font-size:16px;}
.tixline .tq{font-weight:800;min-width:34px;}
.tixline .tn{flex:1;}
.tixline.ready .tn{color:var(--muted);}

/* ----- Kitchen display ----- */
.kds{position:fixed;inset:0;background:#10162b;color:#f1ead9;display:flex;flex-direction:column;z-index:100;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
.kdshead{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:10px 16px;background:#161d36;border-bottom:2px solid #2a3452}
.kdsname{font-weight:800;font-size:18px;letter-spacing:.02em}
.kdsseg{display:flex;gap:6px}
.kdsseg button,.kdsacts button{background:#1c2541;color:#f1ead9;border:1px solid #3a4466;border-radius:10px;padding:10px 16px;font:inherit;font-weight:700;min-height:48px;cursor:pointer}
.kdsseg button.on{background:#d4a548;color:#131a30;border-color:#d4a548}
.kdscnt{display:inline-block;margin-left:8px;background:#a73b2e;color:#f1ead9;border-radius:999px;font-size:14px;padding:1px 9px;min-width:24px}.kdscnt:empty{display:none}
.kdsclock{font-size:26px;font-weight:800;font-variant-numeric:tabular-nums}
.kdsacts{display:flex;gap:8px}.kdsacts button.warn{border-color:#d4a548;color:#d4a548}
.kdsbody{flex:1;overflow:auto;padding:14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px;align-content:start}
.kdsempty{grid-column:1/-1;text-align:center;font-size:30px;color:#5f6784;margin-top:18vh;line-height:1.5}.kdsempty span{font-size:18px}
.kt{background:#1a2240;border-radius:14px;border-top:10px solid #3d6b52;display:flex;flex-direction:column;overflow:hidden}
.kt.warm{border-top-color:#b5832a}.kt.late1{border-top-color:#b5832a}.kt.late2{border-top-color:#a73b2e;box-shadow:0 0 0 2px #a73b2e}.kt.ready{border-top-color:#a73b2e;opacity:.85}
.kth{display:flex;justify-content:space-between;align-items:baseline;padding:12px 14px 0}.ktl{font-size:26px;font-weight:800}.ktm{font-size:20px;font-weight:700;color:#c6b896}
.kt.late1 .ktm{color:#b5832a}.kt.late2 .ktm{color:#d9776a}
.kts{padding:0 14px 8px;color:#8a92ad;font-size:15px}.ktst{font-weight:800;font-size:12px;padding:2px 8px;border-radius:6px;background:#3d4666}.ktst.kitchen{background:#3d6b52}.ktst.bar{background:#a73b2e}
.kti{padding:0 14px;flex:1}.ktline{display:flex;gap:12px;align-items:baseline;font-size:24px;padding:7px 0;border-top:1px solid #2a3452}
.ktq{font-weight:800;min-width:46px;color:#d4a548}.ktn{flex:1;line-height:1.2}.ktline.ready .ktn,.ktline.ready .ktq{color:#5f6784}.ktok{font-size:13px;font-weight:800;color:#d4a548}
.kta{display:flex;gap:8px;padding:12px 14px 14px}.ktbtn{border:0;border-radius:12px;font:inherit;font-weight:800;font-size:20px;min-height:60px;cursor:pointer;color:#131a30}
.ktbtn.go{flex:1;background:#6fae8a}.ktbtn.done{flex:1;background:#d4a548}.ktbtn.pr{background:#2a3452;color:#c6b896;font-size:15px;padding:0 16px}.ktbtn:disabled{opacity:.5}
@media (max-width:600px){.kdsbody{grid-template-columns:1fr}.kdsname{display:none}}

.unsent{display:inline-block;background:#a73b2e;color:#f1ead9;font-size:11px;font-weight:800;letter-spacing:.04em;padding:2px 7px;border-radius:6px;margin-top:4px}

.stick{position:sticky;top:114px;z-index:4;background:#fbf7ec;padding:8px 0;margin:0 0 4px;}
.stick input{width:100%;}
.cnt-row[hidden],h3[hidden]{display:none;}

/* Full-screen live offer on the sign-in page */
body.promoopen{overflow:hidden;}
#promo{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;color:#f1ead9;background:radial-gradient(120% 90% at 50% 0%,#2c4436 0%,#1c2541 62%);transition:transform .38s ease,opacity .38s ease;touch-action:pan-y;user-select:none;-webkit-user-select:none;}
#promo.away{transform:translateY(-100%);opacity:.2;}
#promo .pbody{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;text-align:center;padding:max(28px,env(safe-area-inset-top)) 20px 8px;max-width:760px;width:100%;margin:0 auto;}
#promo .pkick{font-weight:800;letter-spacing:2px;font-size:clamp(20px,4.5vw,34px);color:#d4a548;display:flex;align-items:center;gap:8px;}
#promo .pbiz{margin-top:6px;opacity:1;font-weight:800;font-size:clamp(26px,6vw,48px);line-height:1.1;}
#promo .ptitle{font-size:clamp(34px,8vw,64px);line-height:1.05;margin:16px 0 8px;font-weight:900;}
#promo .pnote{font-size:clamp(16px,3.2vw,22px);opacity:.9;margin:0 0 14px;}
#promo .pdeals{flex:1;min-height:0;overflow:auto;width:100%;display:flex;flex-direction:column;gap:10px;padding:4px 2px 10px;}
#promo .pdeal{display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:16px;padding:14px 16px;}
#promo .pdn b{display:block;font-size:clamp(18px,3.6vw,26px);}
#promo .pdn span{display:block;opacity:.8;font-size:14px;margin-top:2px;}
#promo .pdp{font-weight:900;font-size:clamp(20px,4vw,30px);white-space:nowrap;color:#e6c97f;}
#promo .pfoot{padding:8px 20px max(20px,env(safe-area-inset-bottom));text-align:center;max-width:760px;width:100%;margin:0 auto;}
#promo .pswipe{font-size:14px;opacity:.85;line-height:1.1;margin-bottom:10px;animation:pbob 1.6s ease-in-out infinite;}
#promo #pgo{width:100%;background:#fbf7ec;color:var(--navy);border-color:#fff;}
@keyframes pbob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@media (prefers-reduced-motion:reduce){#promo .pswipe{animation:none}#promo{transition:none}}

#promo.welcome .pbody{justify-content:flex-start;}
#promo .plogo{max-height:84px;max-width:60%;object-fit:contain;margin:6px 0 0;}
#promo.welcome .ptitle{margin:10px 0 2px;}
#promo .pshow{position:relative;flex:1;min-height:0;width:100%;margin:12px 0 6px;border-radius:22px;overflow:hidden;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.2);}
#promo .pshow.empty{background:none;border:0;}
#promo .pshow figure{position:absolute;inset:0;margin:0;opacity:0;transition:opacity .9s ease;}
#promo .pshow figure.on{opacity:1;}
#promo .pshow img{width:100%;height:100%;object-fit:cover;display:block;}
#promo .pshow figcaption{position:absolute;left:0;right:0;bottom:0;padding:34px 16px 14px;font-weight:800;font-size:clamp(18px,3.6vw,26px);text-align:left;background:linear-gradient(transparent,rgba(0,0,0,.7));}

.was{text-decoration:line-through;opacity:.65;font-weight:600;font-size:.85em;}
#promo .pdsec{display:flex;flex-direction:column;gap:10px;margin-top:6px;}
#promo .pdsec .pkick{text-align:center;margin:8px 0 2px;}
#promo .pdp .was{display:block;font-size:.55em;color:#f1ead9;}

/* Cinematic welcome: full-bleed photos, slow Ken Burns zoom, crossfade, vignette and letterbox bars. */
#promo.welcome{background:#000;}
#promo.welcome .pbody{position:static;max-width:none;padding:0;}
#promo.welcome .pshow{position:absolute;inset:0;margin:0;border:0;border-radius:0;background:#000;z-index:0;}
#promo.welcome .pshow figure{opacity:0;transition:opacity 1.6s ease;}
#promo.welcome .pshow figure.on{opacity:1;}
#promo.welcome .pshow img{transform:scale(1.02);transition:none;}
#promo.welcome .pshow figure.on img{animation:kenburns 9s ease-out forwards;}
#promo.welcome .pshow figure:nth-child(even).on img{animation-name:kenburns2;}
@keyframes kenburns{from{transform:scale(1.02) translate(0,0);}to{transform:scale(1.18) translate(-2.5%,-1.5%);}}
@keyframes kenburns2{from{transform:scale(1.18) translate(2%,1%);}to{transform:scale(1.02) translate(0,0);}}
#promo.welcome .pshow::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,transparent 45%,rgba(0,0,0,.65) 100%),linear-gradient(rgba(0,0,0,.65),transparent 28%,transparent 62%,rgba(0,0,0,.8));}
#promo.welcome .pshow figcaption{left:0;right:0;bottom:clamp(96px,16vh,140px);padding:0 24px;text-align:center;background:none;font-weight:300;letter-spacing:.32em;text-transform:uppercase;font-size:clamp(14px,2.6vw,22px);text-shadow:0 2px 14px rgba(0,0,0,.9);}
#promo.welcome .plogo,#promo.welcome .ptitle,#promo.welcome .pnote{position:relative;z-index:2;}
#promo.welcome .plogo{margin-top:max(34px,env(safe-area-inset-top));filter:drop-shadow(0 2px 10px rgba(0,0,0,.7));}
#promo.welcome .ptitle{font-weight:800;letter-spacing:.08em;text-transform:uppercase;text-shadow:0 4px 24px rgba(0,0,0,.85);margin:12px 12px 2px;font-size:clamp(34px,8vw,72px);}
#promo.welcome .pnote{letter-spacing:.5em;text-transform:uppercase;font-weight:300;opacity:.9;text-shadow:0 2px 12px rgba(0,0,0,.9);}
#promo.welcome::before,#promo.welcome .pfoot::before{content:"";position:absolute;left:0;right:0;height:5vh;background:#000;z-index:3;pointer-events:none;}
#promo.welcome::before{top:0;}
#promo.welcome .pfoot{position:relative;z-index:4;max-width:none;background:linear-gradient(transparent,rgba(0,0,0,.75));}
#promo.welcome .pfoot::before{display:none;}
@media (prefers-reduced-motion:reduce){#promo.welcome .pshow figure.on img{animation:none;}}

/* Offer banners and deal photos */
.thumb.wide{width:120px;height:68px;object-fit:cover;border-radius:8px;}
.obanner{grid-column:1/-1;width:100%;max-height:220px;object-fit:cover;border-radius:14px;border:2px solid #a73b2e;display:block;}
.obanner.small{width:100%;max-width:260px;max-height:120px;margin:4px 0;}
#promo .pbanner{display:block;width:100%;max-height:34vh;object-fit:contain;margin:6px auto 12px;border-radius:16px;box-shadow:0 6px 24px rgba(0,0,0,.45);}
#promo .pdimg{width:64px;height:64px;object-fit:cover;border-radius:12px;flex:none;}
#promo .pdeal{align-items:center;}
#promo .pdeal .pdn{flex:1;min-width:0;text-align:left;margin-left:2px;}

/* Offer or discounts: the banner and product photos animate behind the text (slow zoom, crossfade, dark veil). */
#promo.cine{background:#000;}
#promo.cine .pshow{position:absolute;inset:0;margin:0;border:0;border-radius:0;background:#000;z-index:0;overflow:hidden;}
#promo.cine .pshow figure{position:absolute;inset:0;margin:0;opacity:0;transition:opacity 1.6s ease;overflow:hidden;}
#promo.cine .pshow figure.on{opacity:1;}
#promo.cine .pshow figure.bn::before{content:"";position:absolute;inset:-30px;background:var(--bg) center/cover;filter:blur(26px) brightness(.55);}
#promo.cine .pshow img{position:relative;width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.02);}
#promo.cine .pshow figure.bn img{object-fit:contain;}
#promo.cine .pshow figure.on img{animation:kenburns 9s ease-out forwards;}
#promo.cine .pshow figure:nth-child(even).on img{animation-name:kenburns2;}
#promo.cine .pshow::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(rgba(0,0,0,.62),rgba(0,0,0,.28) 38%,rgba(0,0,0,.34) 66%,rgba(0,0,0,.82));}
#promo.cine .pbody,#promo.cine .pfoot{position:relative;z-index:2;}
#promo.cine .pdeal{background:rgba(0,0,0,.5);border-color:rgba(255,255,255,.3);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);}
#promo.cine .ptitle,#promo.cine .pbiz,#promo.cine .pkick,#promo.cine .pnote{text-shadow:0 2px 16px rgba(0,0,0,.85);}
@media (prefers-reduced-motion:reduce){#promo.cine .pshow figure.on img{animation:none;}}

/* Clear photos: each one shown whole at its own size (never stretched), over a blurred copy of itself, with only a gentle zoom. */
#promo.welcome .pshow figure,#promo.cine .pshow figure{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:clamp(150px,27vh,200px) 12px clamp(150px,26vh,200px);}
#promo.welcome .pshow figure::before,#promo.cine .pshow figure::before{content:"";position:absolute;inset:-30px;background:var(--bg) center/cover;filter:blur(30px) brightness(.55);}
#promo.welcome .pshow img,#promo.cine .pshow img{position:relative;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;border-radius:12px;box-shadow:0 10px 40px rgba(0,0,0,.55);}
#promo.welcome .pshow figure.on img,#promo.cine .pshow figure.on img{animation:kbsoft 9s ease-out forwards;}
#promo.welcome .pshow figure:nth-child(even).on img,#promo.cine .pshow figure:nth-child(even).on img{animation-name:kbsoft2;}
@keyframes kbsoft{from{transform:scale(1);}to{transform:scale(1.06);}}
@keyframes kbsoft2{from{transform:scale(1.06);}to{transform:scale(1);}}
#promo.welcome .pshow::after{background:linear-gradient(rgba(0,0,0,.55),transparent 26%,transparent 70%,rgba(0,0,0,.7));}
#promo.cine .pshow::after{background:linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.2) 40%,rgba(0,0,0,.25) 68%,rgba(0,0,0,.78));}
#promo.welcome .pshow figcaption{bottom:clamp(120px,20vh,156px);}
#promo.welcome .ptitle{margin-top:clamp(30px,8vh,70px);}

/* Ad video behind the sign-in screen */
#bgvid{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;background:#000;z-index:0;pointer-events:none;}
body.vidbg{background:#000;}
body.vidbg #app,body.vidbg .login{position:relative;z-index:1;background:transparent;}
body.vidbg .login::before{content:"";position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:-1;}
body.vidbg .login .brand b,body.vidbg .login .brand span,body.vidbg .login .credit,body.vidbg .login .credit a{color:#f1ead9;}
#promo.vid{background:rgba(8,10,24,.35);}
#promo.vid .pshow,#promo.vid .pshow figure{display:none;}
#promo.vid .pbody{text-shadow:0 2px 10px rgba(0,0,0,.8);}
body.vidbg .login::before{background:rgba(0,0,0,.28);}
/* Shots, bottles, breakages */
.pzbar{height:8px;background:#d3c6a4;border-radius:6px;overflow:hidden;margin:6px 0;}
.pzbar i{display:block;height:100%;background:var(--ok,#3d6b52);border-radius:6px;}
.pzbar i.bad{background:var(--bad);}
.warnt{color:var(--badtx);font-weight:700;}
.pztiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin:12px 0;}
.pztiles>div{background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:10px;text-align:center;}
.pztiles b{display:block;font-size:20px;color:var(--navy);}
.pztiles span{font-size:12px;color:var(--muted);}
.pztiles .neg b{color:var(--badtx);}
.login .polinks a{color:inherit;text-decoration:underline}body.vidbg .login .polinks,body.vidbg .login .polinks a{color:#f1ead9}
.wagrid{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}.wacard{display:flex;flex-direction:column;gap:2px;align-items:flex-start;text-align:left;min-width:150px;padding:10px 12px;border:1px solid #d3c6a4;border-left:4px solid #1c2541;border-radius:12px;background:#fbf7ec;font:inherit;cursor:pointer}.wacard.on{background:#e7dec7;border-color:#1c2541}.wacard .bad{color:#a73b2e;font-weight:700}

.tnote{display:block;font-size:.82em;font-weight:700;color:#b5832a;margin-top:1px}
.nchip{display:inline-block;margin:3px 4px 0 0;padding:1px 8px;border-radius:10px;background:#f6ead0;color:#6b4308;font-size:12px;font-weight:600}
.nbtn{display:block;margin-top:3px;padding:0;border:0;background:none;color:var(--accent,#a73b2e);font-size:12px;font-weight:600;text-decoration:underline;cursor:pointer}
.dlgback{position:fixed;inset:0;background:rgba(10,15,30,.55);z-index:900;display:flex;align-items:flex-end;justify-content:center}
.dlgbox{background:var(--card,#fff);width:100%;max-width:520px;max-height:88vh;overflow:auto;border-radius:16px 16px 0 0;padding:16px}
@media(min-width:700px){.dlgback{align-items:center}.dlgbox{border-radius:16px}}
.nrow{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--line)}
.nchips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.askwait{display:block;background:#f6ead0;border:1px solid #e6c97f;color:#6b4308;font-size:11px;font-weight:800;letter-spacing:.03em;padding:2px 7px;border-radius:6px;margin-top:4px}
.myreq{border-left:4px solid #d4a548}

.psticky{padding:6px 0 4px;margin:0 0 6px;box-shadow:0 6px 6px -6px rgba(0,0,0,.18);}
.psticky .chips{margin-bottom:4px;padding-bottom:4px;}
.debtitems{font-size:13px;margin:3px 0 0;padding-left:8px;border-left:3px solid var(--line,#ddd);}

.pqty{display:flex;align-items:center;gap:6px;margin-top:4px;}
.pqty button{width:34px;height:34px;border-radius:8px;border:1px solid #2c4436;background:#fbf7ec;color:#2c4436;font-size:18px;line-height:1;}
.pqty b{min-width:22px;text-align:center;}
.paidtxt{font-size:13px;color:#2c4436;font-weight:600;margin-top:2px;}
.paynow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}

/* Store room: Store / Bar / Kitchen columns and the dashboard */
.stk{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:6px}
.stk>div{background:#f1ead9;border-radius:8px;padding:4px 6px;text-align:center;border:1px solid transparent}
.stk span{display:block;font-size:11px;color:var(--muted);letter-spacing:.03em;text-transform:uppercase}
.stk b{font-size:17px}
.stk .off b{color:#8a92ad;font-weight:500}
.stk .low b{color:var(--warntx)}
.stk .dest{border-color:var(--navy);background:#e7dec7}
.kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:0 0 12px}
.kpis>div{background:#fbf7ec;border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.kpis b{display:block;font-size:22px;color:var(--navy)}
.kpis span{font-size:12px;color:var(--muted)}
.kpis .warn b{color:var(--badtx)}
.stcat{margin:14px 0 4px;font-weight:700;color:var(--navy);border-bottom:2px solid var(--navy);padding-bottom:3px}
.stprod{padding:8px 0;border-bottom:1px solid var(--line)}
.stname{font-weight:600}
.stcatrow td{background:#e7dec7;font-weight:700;color:var(--navy)}

.ktold{background:#4a1710;color:#ebc3b9;font-size:12px;font-weight:700;padding:4px 8px;border-radius:6px;margin:4px 0}
.prod.soldout{opacity:.45}.prod.soldout .ps{color:#8a2d21;font-weight:700}.chip.bad{background:#a73b2e;border-color:#a73b2e;color:#f1ead9}
.ktask{margin-left:8px;background:#1c2541;color:#f1ead9;border:1px solid #3a4466;border-radius:8px;min-width:36px;min-height:36px;font-size:16px;cursor:pointer}

#alertbar{position:fixed;left:0;right:0;top:0;z-index:60;display:none;align-items:center;gap:12px;background:#a73b2e;color:#f1ead9;padding:14px 16px;font-size:17px;font-weight:700;border-bottom:4px solid #4a1710;box-shadow:0 4px 14px rgba(0,0,0,.35);}
#alertbar.show{display:flex;}
#alertbar .at{flex:1;line-height:1.3;}
#alertbar button{background:#fbf7ec;color:#a73b2e;border:0;border-radius:8px;padding:8px 16px;font-weight:700;font-size:15px;}

/* Easier reading: field labels, notes under figures, and differences are bigger, bolder and darker. */
label{font-size:15px;font-weight:700;color:var(--navy);margin:14px 0 5px;}
.hint{font-size:14px;font-weight:500;color:#3d4666;}
.hint.bad,span.bad,b.bad,div.bad{color:#a73b2e;font-weight:700;}
.hint.ok,span.ok,b.ok,div.ok:not(.feebox):not(.msg){color:#2c4436;font-weight:700;}
.badge.ok,.badge.bad,.badge.grey{color:#f1ead9;}
.cartline .nm{font-size:15px;font-weight:600;color:var(--ink);}
.cartline .nm .hint{font-weight:500;}
.item .l2,.sale .l2{font-size:14px;color:#3d4666;}
.item .l1{font-size:16px;}
.ometa .owho{font-weight:800;color:var(--navy);font-size:14px;}

/* Sell screen, modern POS layout: items on the left, the order always visible on the right (wide screens). */
.prod{border:1.5px solid var(--line);border-radius:14px;padding:12px 14px;min-height:96px;transition:box-shadow .12s,border-color .12s,transform .12s;}
.prod:hover:not(.soldout){border-color:var(--navy);box-shadow:0 6px 18px rgba(27,31,42,.12);}
.prod:active:not(.soldout){transform:scale(.98);}
.prod .pn{font-size:16px;font-weight:700;}
.prod .pp{font-size:18px;font-weight:800;color:var(--navy);}
.prod .ps{display:inline-block;margin-top:6px;font-size:13px;font-weight:700;padding:3px 9px;border-radius:999px;background:#e7dec7;color:#3d4666;}
.prod .ps:empty{display:none;}
.prod .ps.low{background:#f3e1b8;color:#6b4308;}
.prod.soldout{opacity:1;background:#f1ead9;border-color:#d3c6a4;}
.prod.soldout .pn,.prod.soldout .pp{color:#5d6585;}
.prod.soldout .ps{background:#f3dcd5;color:#8a2d21;}
.psticky .chip{min-height:44px;padding:8px 20px;font-size:15px;}
.ordlayout .totalbar{font-size:20px;}
@media (min-width:900px){
  main:has(.ordlayout){max-width:1440px;}
  .ordlayout{display:flex;gap:20px;align-items:flex-start;}
  .ordlayout .ordleft{flex:1 1 0;min-width:0;}
  .ordlayout .grid{grid-template-columns:repeat(auto-fill,minmax(172px,1fr));gap:14px;}
  .ordlayout #cart{flex:0 0 400px;width:400px;box-sizing:border-box;position:sticky;top:120px;display:flex;flex-direction:column;max-height:calc(100vh - 136px);overflow-y:auto;margin-top:0;}
  .ordlayout #cart #lines{flex:1 1 auto;min-height:120px;overflow-y:auto;}
}
.grid .prod:not(.withimg){align-self:stretch;}

/* Kitchen and bar screen, modern layout: light, two columns (new / ready), big actions, bottles and sold-out strip. */
.kds{background:#f1ead9;color:#1c2541;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.kdshead{background:#fbf7ec;border-bottom:1px solid #d3c6a4;padding:14px 24px;gap:14px}
.kdsname{font-size:22px;font-weight:800;color:#1c2541}
.kdsseg button,.kdsacts button{background:#fbf7ec;color:#a73b2e;border:1.5px solid #d3c6a4;border-radius:12px;min-height:46px;font-weight:700}
.kdsseg button.on{background:#a73b2e;color:#f1ead9;border-color:#a73b2e}
.kdsacts button.warn{border-color:#b5832a;color:#6b4308}
.kdscnt{background:#a73b2e}
.kdsclock{font-size:24px;color:#1c2541}
.kdssum{display:flex;gap:10px}.kdsb{border-radius:12px;padding:8px 14px;font-size:14px;font-weight:700}.kdsb b{font-size:22px;margin-right:6px}
.kdsb.new{background:#e7dec7;color:#1c2541}.kdsb.ready{background:#d5e0d0;color:#2c4436}
.kdsmain{flex:1;min-height:0;display:flex;gap:20px;padding:18px 24px 0}
.kdsbody{flex:1;min-width:0;overflow:hidden;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-content:stretch}
.kdscol{display:flex;flex-direction:column;min-height:0;gap:12px}
.kdschead{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:800}
.kdsdot{width:12px;height:12px;border-radius:3px;background:#a73b2e}.kdsdot.ready{background:#2c4436}
.kdsn{font-size:14px;font-weight:700;color:#3d4666;background:#d3c6a4;border-radius:999px;padding:2px 10px}
.kdsstack{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:14px;padding-bottom:14px}
.kdsnone{border:2px dashed #d3c6a4;border-radius:16px;padding:28px 16px;text-align:center;font-size:16px;color:#4b5578}
.kt{background:#fbf7ec;border:1px solid #d3c6a4;border-top:1px solid #d3c6a4;border-radius:16px;box-shadow:0 1px 2px rgba(27,31,42,.04);flex:0 0 auto}
.kt.late2{box-shadow:none;border-color:#a73b2e}.kt.ready{opacity:1}
.kth{padding:12px 16px;background:#e7dec7;color:#1c2541;align-items:center}.ktl{font-size:22px}.ktm{font-size:17px;font-weight:800;color:inherit}
.kt.warm .kth,.kt.late1 .kth{background:#f3e1b8;color:#6b4308}.kt.late1 .ktm,.kt.warm .ktm{color:#6b4308}
.kt.late2 .kth{background:#a73b2e;color:#f1ead9}.kt.late2 .ktm{color:#f1ead9}
.kt.ready .kth{background:#d5e0d0;color:#2c4436}
.kts{padding:8px 16px 0;color:#4b5578;font-size:15px;font-weight:600}
.kti{padding:4px 16px 0}.ktline{font-size:19px;font-weight:700;border-top:1px solid #e7dec7;padding:10px 0;color:#1c2541}
.ktq{color:#a73b2e;min-width:40px}.ktline.ready .ktn,.ktline.ready .ktq{color:#5d6585}.ktok{color:#2c4436}
.tnote{display:block;margin-top:3px;font-size:13px;font-weight:700;background:#f3e1b8;color:#6b4308;border-radius:6px;padding:2px 8px;width:fit-content}
.kta{padding:10px 16px 16px}.ktbtn{border-radius:12px;min-height:52px;font-size:17px;color:#f1ead9}
.ktbtn.go{background:#a73b2e}.ktbtn.done{background:#2c4436}.ktbtn.pr{background:#fbf7ec;color:#a73b2e;border:1.5px solid #d3c6a4;font-size:15px}
.ktold{background:#f3dcd5;color:#8a2d21}
.ktst.kitchen{background:#b5832a;color:#f1ead9}.ktst.bar{background:#a73b2e;color:#f1ead9}
.kdsempty{color:#4b5578}
.kdsside{flex:0 0 340px;min-height:0;overflow-y:auto}.kdsside:empty{display:none}
.kdspanel{background:#fbf7ec;border:1px solid #d3c6a4;border-radius:16px;padding:16px 18px}
.kdsptitle{font-size:17px;font-weight:800;margin-bottom:4px}.kdsptitle span{font-size:13px;font-weight:600;color:#4b5578;margin-left:6px}
.kdsbot{padding:12px 0;border-bottom:1px solid #e7dec7}.kdsbot:last-child{border-bottom:0}
.kdsbrow{display:flex;justify-content:space-between;align-items:baseline;font-size:15px}.kdsbrow span{font-weight:800}
.kdsbrow .ok,.kdsbar i.ok{color:#2c4436}.kdsbrow .mid{color:#6b4308}.kdsbrow .low{color:#a73b2e}
.kdsbar{height:10px;background:#e7dec7;border-radius:5px;overflow:hidden;margin:8px 0 6px}.kdsbar i{display:block;height:100%;border-radius:5px;background:#2c4436}.kdsbar i.mid{background:#b5832a}.kdsbar i.low{background:#a73b2e}
.kdshint{font-size:13px;color:#4b5578;font-weight:500}
.kdsfin{margin-top:8px;width:100%;min-height:44px;border-radius:10px;border:1.5px solid #a73b2e;background:#fbf7ec;color:#a73b2e;font:inherit;font-weight:700;cursor:pointer}
.kdsfoot{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 24px;background:#fbf7ec;border-top:1px solid #d3c6a4}.kdsfoot:empty{display:none}
.kdschip{min-height:44px;padding:0 16px;border-radius:999px;border:1.5px solid #d3c6a4;background:#fbf7ec;color:#1c2541;font:inherit;font-size:15px;font-weight:600;cursor:pointer}
.kdschip.out{background:#a73b2e;border-color:#a73b2e;color:#f1ead9}
.kdsfoot .kdshint{margin-left:auto}
@media (max-width:900px){.kdsmain{flex-direction:column;overflow:auto}.kdsbody{grid-template-columns:1fr;overflow:visible}.kdsside{flex:0 0 auto}.kdsstack{overflow:visible}}
.kdsfoot{flex-wrap:nowrap;overflow-x:auto}.kdschip{flex:0 0 auto}.kdsfoot b{flex:0 0 auto}.kdsfoot .kdshint{display:none}
.ktask{background:#fbf7ec;color:#8a2d21;border:1.5px solid #ebc3b9;border-radius:10px}

/* Store room, modern layout: status chips, filters, and the issue slip beside the list on wide screens. */
.stchip{display:inline-block;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;margin-left:8px;vertical-align:middle;background:#d5e0d0;color:#2c4436}
.stchip.low{background:#f3e1b8;color:#6b4308}.stchip.out{background:#f3dcd5;color:#8a2d21}
.stfilters{display:flex;gap:8px;margin:6px 0 10px;flex-wrap:wrap}.stfilters .chip{min-height:44px}
.slipline{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e7dec7}.slipline .nm{flex:1;font-weight:700;font-size:16px}.slipq{font-size:22px;color:var(--navy)}
@media (min-width:900px){
  main:has(.stlayout){max-width:1300px}
  .stlayout{display:flex;gap:20px;align-items:flex-start}.stleft{flex:1 1 0;min-width:0}
  .stlayout .stslip{flex:0 0 380px;width:380px;box-sizing:border-box;position:sticky;top:120px;max-height:calc(100vh - 136px);overflow-y:auto;margin-top:0}
}

/* The Daily Close and Sales Summary on screen. */
.scr{margin-top:14px}
.scr h2{margin:0;font-size:22px}.scr h3{margin:0 0 10px;font-size:17px;color:var(--navy)}
.scrhead{display:flex;justify-content:space-between;align-items:flex-end;margin:0 2px 10px}
.scrbanner{display:flex;flex-direction:column;gap:2px;border-radius:14px;padding:14px 18px;margin-bottom:12px;border:1.5px solid}
.scrbanner b{font-size:19px}.scrbanner span{font-size:14px;font-weight:600}
.scrbanner.ok{background:#d5e0d0;border-color:#a9c7b0;color:#2c4436}.scrbanner.warn{background:#f3e1b8;border-color:#d4a548;color:#6b4308}.scrbanner.bad{background:#f3dcd5;border-color:#e8a89b;color:#8a2d21}
.scrkpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
.scrk{background:#fbf7ec;border:1px solid var(--line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:3px}
.scrk span{font-size:13px;font-weight:700;color:var(--muted)}.scrk b{font-size:26px;color:var(--navy);line-height:1.15}.scrk small{font-size:13px;font-weight:600;color:var(--muted)}
.scrk.main{background:var(--navy);border-color:var(--navy)}.scrk.main span,.scrk.main small{color:#c6b896}.scrk.main b{color:#f1ead9}.scrk.main small .ok{color:#a9c7b0}.scrk.main small .bad{color:#e8a89b}
.scrk.ok b{color:#2c4436}.scrk.bad b{color:#8a2d21}
.scrkpis.small .scrk b{font-size:22px}
.scrgrid{display:grid;grid-template-columns:1fr;gap:0}
.scr .card{margin:0 0 12px}
.scrattn{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid #e7dec7;font-size:15px;font-weight:600}
.scrattn i{flex:0 0 12px;height:12px;border-radius:50%;margin-top:5px;background:#8a92ad}
.scrattn.bad i{background:#a73b2e}.scrattn.warn i{background:#b5832a}.scrattn.ok i{background:#2c4436}.scrattn.bad{color:#8a2d21}
.scrbar{display:flex;height:16px;border-radius:8px;overflow:hidden;background:#e7dec7;margin-bottom:10px}
.scrbar i,.scrleg i{display:block}.scrbar i{height:100%}
.c0{background:#1c2541}.c1{background:#a73b2e}.c2{background:#4b5578}.c3{background:#2c4436}.c4{background:#b5832a}.c5{background:#c6b896}
.scrleg{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #e7dec7;font-size:15px}
.scrleg i{flex:0 0 12px;height:12px;border-radius:3px}.scrleg span{flex:1}.scrleg b{font-size:16px}.scrleg em{font-style:normal;min-width:48px;text-align:right;color:var(--muted);font-weight:700}
.scrrow{display:grid;grid-template-columns:minmax(80px,1.1fr) 1.4fr auto 48px;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #e7dec7;font-size:15px}
.scrrow span{font-weight:700}.scrrow em{font-style:normal;text-align:right;color:var(--muted);font-weight:700}
.scrmeter{height:10px;background:#e7dec7;border-radius:5px;overflow:hidden}.scrmeter i{display:block;height:100%;background:var(--accent);border-radius:5px}
.scrtop{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid #e7dec7}.scrtop .n{flex:0 0 28px;height:28px;border-radius:50%;background:var(--navy);color:#f1ead9;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:14px}
.scrtop .nm{flex:1;font-weight:700;font-size:15px}.scrtop small{display:block;color:var(--muted);font-weight:600;font-size:13px}
.scrhours{display:flex;align-items:flex-end;gap:5px;height:140px;padding-top:6px}
.scrh{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px}
.scrh .bar{width:100%;background:#c6b896;border-radius:5px 5px 0 0}.scrh.best .bar{background:var(--accent)}.scrh span{font-size:11px;font-weight:700;color:var(--muted)}
.scrcash{display:flex;flex-direction:column}
.scrcl{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid #e7dec7;font-size:15px}
.scrcl span:first-child{font-weight:600}.scrcl b{font-size:16px;text-align:right}
.scrcl.tot{background:#f1ead9;margin:0 -8px;padding:11px 8px;border-radius:8px;border:0}.scrcl.tot b{font-size:18px}
.scrcl.tot.bad b,.scrcl b.bad,.scrtr .bad{color:#8a2d21}.scrcl.tot.ok b{color:#2c4436}
.scrwarn{margin:12px 0 4px;padding:10px 12px;background:#f3e1b8;color:#6b4308;border-radius:10px;font-size:15px}
.scrtbl{display:flex;flex-direction:column}.scrtr{display:grid;grid-template-columns:1.4fr .6fr 1.1fr 1fr .6fr;gap:8px;padding:10px 0;border-bottom:1px solid #e7dec7;font-size:15px}.scrtr.hd{font-size:12px;font-weight:800;color:var(--muted);text-transform:uppercase}
@media (min-width:900px){
  main:has(.scr){max-width:1100px}
  .scrkpis{grid-template-columns:repeat(4,minmax(0,1fr))}.scrkpis.small{grid-template-columns:repeat(4,minmax(0,1fr))}
  .scrgrid{grid-template-columns:1fr 1fr;gap:12px}
  .scrgrid>.card{margin-bottom:12px}
}
.scrgrid{align-items:start}

/* Manager and cashier board, modern layout: key figures on top, orders as cards, waitress accounts and pending payment beside them. */
.bkpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 12px}
.bkpis:empty{display:none}
.bk{background:#fbf7ec;border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.bk span{font-size:13px;font-weight:700;color:var(--muted)}.bk b{font-size:22px;color:var(--navy);line-height:1.15}.bk small{font-size:13px;font-weight:600;color:var(--muted)}
.bk.main{background:var(--navy);border-color:var(--navy)}.bk.main span,.bk.main small{color:#c6b896}.bk.main b{color:#f1ead9}
.bk.warn{background:#f3e1b8;border-color:#d4a548}.bk.warn span,.bk.warn small{color:#6b4308}.bk.warn b{color:#6b4308}
.bk.bad b{color:#8a2d21}
.ochip{align-self:flex-start;font-size:11px;font-weight:800;border-radius:999px;padding:2px 9px;background:#f3e1b8;color:#6b4308}
.oblock .owho{font-size:14px;color:var(--navy)}
@media (min-width:900px){
  main:has(.bgrid){max-width:1300px}
  .bkpis{grid-template-columns:repeat(4,minmax(0,1fr))}
  .bgrid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
  .bgrid .bside{grid-column:2;grid-row:1;position:sticky;top:120px;max-height:calc(100vh - 136px);overflow-y:auto}
  .bgrid .bmain{grid-column:1;grid-row:1;min-width:0}
  .bgrid .blocks{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
  .bgrid .oblock{min-height:150px;padding:14px 16px;border-radius:14px;gap:4px;border:1.5px solid var(--line);border-left-width:5px;transition:box-shadow .12s}
  .bgrid .oblock:hover{box-shadow:0 6px 18px rgba(27,31,42,.10)}
  .bgrid .oblock .olabel{font-size:19px}.bgrid .oblock .ototal{font-size:20px;margin-top:6px}.bgrid .oblock .ometa{font-size:13px;font-weight:600}
  .bgrid .oblock .orec{font-size:14px;padding:10px 6px;border-radius:10px}
  .bgrid .oblock.unpaid{border-top:4px solid #b5832a}
  .bgrid .wagrid{flex-direction:column;flex-wrap:nowrap}
  .bgrid .wacard{width:100%;min-width:0;display:grid;grid-template-columns:1fr auto;align-items:center;gap:0 10px;padding:10px 14px}
  .bgrid .wacard>.hint:first-child{display:none}
  .bgrid .wacard b{font-size:17px;grid-column:1}.bgrid .wacard>span:nth-of-type(2){grid-column:2;grid-row:1 / span 2;font-size:15px;font-weight:800}
  .bgrid .wacard>.hint:last-child{grid-column:1}
  .bgrid .pendbar{margin-top:12px}
}

/* Cashier Cash up, modern layout: key figures on top, waitress cash on the left, the one till-closing form on the right. */
.cdverdict{margin-top:10px;padding:12px 14px;border-radius:12px;font-size:15px;font-weight:700;line-height:1.35}
.cdverdict.idle{background:#e7dec7;color:#3d4666}.cdverdict.warn{background:#f3e1b8;color:#6b4308}.cdverdict.ok{background:#d5e0d0;color:#2c4436}.cdverdict.bad{background:#f3dcd5;color:#8a2d21}
.cdverdict b,.cdverdict .ok,.cdverdict .bad{color:inherit}
.cuside #ccc,.cuside #cof{height:52px;font-size:20px;font-weight:700}
.cuside input[data-ms]{height:46px;font-size:17px;font-weight:700}
.cuside h2{color:var(--accent-dark,#1c2541);font-size:20px}
@media (min-width:900px){
  main:has(.cugrid.withside){max-width:1300px}
  .cugrid.withside{display:grid;grid-template-columns:minmax(0,1fr) 440px;gap:20px;align-items:start}
  .cugrid.withside .culeft{grid-column:1;grid-row:1;min-width:0}
  .cugrid.withside .cuside{grid-column:2;grid-row:1;position:sticky;top:120px;max-height:calc(100vh - 136px);overflow-y:auto;margin-top:0}
  .bkpis:has(+ .cugrid){grid-template-columns:repeat(4,minmax(0,1fr))}
}
.cuside .row label{min-height:2.7em;display:block}
.kdsopen{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}.kdsopen select{width:100%;min-height:44px;margin-bottom:6px}
.bpick{display:block;width:100%}.bpick .bpq{width:100%;min-height:44px;margin-bottom:6px}.bpick .bps{width:100%;min-height:44px}.bpick .bpmsg:empty{display:none}.kdsopen .bpick .bps{margin-bottom:6px}

/* The bell: always in the header, never in the way */
.top .who{margin-left:auto;white-space:nowrap;flex:0 0 auto}
.bell{position:relative;background:transparent;border:0;color:#f1ead9;padding:6px 8px;margin-left:8px;cursor:pointer;border-radius:12px;line-height:0;flex:0 0 auto}
.bell:hover,.bell:focus-visible{background:rgba(255,255,255,.14)}
.bell svg{width:24px;height:24px;display:block}
.bell .bdg{position:absolute;top:-2px;right:-2px;min-width:18px;height:18px;border-radius:9px;background:#a73b2e;color:#f1ead9;font-size:11px;font-weight:800;line-height:18px;text-align:center;padding:0 4px;box-sizing:border-box;border:2px solid #1c2541}
.bell .bdg:empty{display:none}
.kdsacts .bell{background:#fbf7ec;color:#a73b2e;border:1.5px solid #d3c6a4;border-radius:12px;padding:10px 14px;min-height:46px;margin-left:0}
.kdsacts .bell .bdg{border-color:#fff}
#bellpanel{position:fixed;top:58px;right:10px;width:min(94vw,400px);max-height:74vh;overflow:auto;background:#fbf7ec;color:#1c2541;border:1px solid #d3c6a4;border-radius:14px;box-shadow:0 16px 44px rgba(20,25,43,.28);z-index:9500;font-size:15px}
#bellpanel .bphead{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid #d3c6a4;position:sticky;top:0;background:#fbf7ec;border-radius:14px 14px 0 0}
#bellpanel .bphead span{display:flex;gap:4px;align-items:center}
#bellpanel .bphead button{white-space:nowrap;background:transparent;border:0;color:#a73b2e;font:inherit;font-size:13px;font-weight:700;padding:6px 8px;cursor:pointer;border-radius:8px}
#bellpanel .bphead button[data-bact=close]{color:#4b5578;font-size:22px;line-height:1;padding:2px 8px}
#bellpanel .bpitem{position:relative;padding:12px 40px 12px 14px;border-bottom:1px solid #e7dec7}
#bellpanel .bpitem.unread{background:#f7f1e1;box-shadow:inset 4px 0 0 #a73b2e}
#bellpanel .bpx{position:absolute;top:6px;right:6px;background:transparent;border:0;color:#5f6784;font-size:20px;line-height:1;width:32px;height:32px;cursor:pointer;border-radius:8px}
#bellpanel .bpx:hover{background:#e7dec7;color:#1c2541}
#bellpanel .bpt{font-weight:800}
#bellpanel .bpb{color:#3d4666;margin-top:2px;font-size:14px}
#bellpanel .bpm{color:#4b5578;font-size:12px;margin-top:4px}
#bellpanel .bpl{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
#bellpanel .bplink{background:#a73b2e;color:#f1ead9;border:0;border-radius:10px;padding:9px 14px;font:inherit;font-size:14px;font-weight:700;cursor:pointer;min-height:40px}
#bellpanel .bplink.alt{background:#fbf7ec;color:#a73b2e;border:1.5px solid #a73b2e}
#bellpanel .bpempty{padding:22px 16px;color:#4b5578;text-align:center;margin:0}
.mpend{border-left:4px solid var(--bad,#a73b2e);margin:0 0 12px}
.mpend .mprow{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px;flex-wrap:wrap}
.mpend .mprow span{flex:1;min-width:200px}

/* Titles use a classic serif like the Osubula Talks website; sizes are unchanged. */
h1,h2,.top .name,.login .brand b{font-family:Georgia,"Times New Roman",serif;}

/* Waitress accounts hidden: the open tables use the whole width. The pending-payment strip stays, as a row above them. */
.bgrid.wahide #wabar{display:none}
@media (min-width:900px){
  .bgrid.wahide{grid-template-columns:minmax(0,1fr)}
  .bgrid.wahide .bside{grid-column:1;grid-row:1;position:static;max-height:none;overflow:visible}
  .bgrid.wahide .bmain{grid-column:1;grid-row:2}
  .bgrid.wahide .pendbar{margin-top:0}
  .bgrid.wahide .bside{margin-bottom:12px}
  .bgrid.wahide #pendbar{display:flex;gap:10px;align-items:center}
  .bgrid.wahide #pendbar .pendbar{flex:1}
  .bgrid.wahide #pendbar .cfwd{width:auto;flex:none;margin:0;white-space:nowrap}
}
#watoggle{white-space:nowrap}
.boardhead>.btnrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}
.boardhead>.btnrow>.btn{width:auto;flex:none}
