:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#172033;background:#f4f6f8;line-height:1.5;--blue:#155eef;--navy:#101828;--line:#dfe3ea}*{box-sizing:border-box}body{margin:0}.shell{width:min(960px,calc(100% - 32px));margin:0 auto;padding:48px 0 80px}header{margin-bottom:28px}h1{font-size:clamp(2rem,5vw,3.5rem);line-height:1.05;margin:.3rem 0}h2{margin-top:0;font-size:1.2rem}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:var(--blue);font-size:.75rem}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;margin:18px 0;box-shadow:0 8px 30px rgba(16,24,40,.05)}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.wide{grid-column:1/-1}label{display:grid;gap:7px;font-weight:700;font-size:.9rem}input{width:100%;border:1px solid #bdc5d1;border-radius:9px;padding:11px 12px;font:inherit;background:#fff}.toggle{display:flex;align-items:center;font-weight:500}.toggle input{width:auto}.button{display:inline-block;border:0;border-radius:10px;padding:12px 18px;text-decoration:none;font:inherit;font-weight:800;background:var(--navy);color:#fff;cursor:pointer}.button.primary{background:var(--blue)}.button:disabled{opacity:.45;cursor:not-allowed}.checks{display:grid;grid-template-columns:1fr 1fr;gap:10px}.check{display:flex;gap:10px;align-items:center;padding:10px;border-radius:10px;background:#f8fafc}.check>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;color:#fff;font-weight:900}.check.ok>span{background:#079455}.check.bad>span{background:#d92d20}.check.warn>span{background:#dc6803}.check small{display:block;color:#667085}.alert{padding:14px 16px;border-radius:10px}.error{background:#fee4e2;color:#912018}.success{border-color:#75e0a7}.notice{border-color:#84adff}nav{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100% - 960px)/2));gap:15px}nav a{color:var(--blue)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stats .card{margin:0}.stats strong{display:block;font-size:2rem}.stats span{color:#667085}.login{max-width:480px}.login form{display:grid;gap:18px}@media(max-width:700px){.grid,.checks,.stats{grid-template-columns:1fr}.wide{grid-column:auto}.shell{padding-top:28px}nav span{font-size:.8rem}}
.admin.shell{width:min(1260px,calc(100% - 32px))}.admin-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:start}.admin-menu{position:sticky;top:16px;display:grid;gap:3px;padding:12px;margin:0}.admin-menu a{text-decoration:none;color:#344054;padding:9px 12px;border-radius:8px;font-weight:650}.admin-menu a[aria-current]{background:#e9f0ff;color:#155eef}.admin-content{min-width:0}.editor{display:grid;gap:20px}.editor select{width:100%;border:1px solid #bdc5d1;border-radius:9px;padding:11px 12px;font:inherit;background:#fff}.actions{display:flex;align-items:center;gap:16px}.actions a,.row-actions a{color:#155eef}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.86rem}th,td{text-align:left;padding:12px;border-bottom:1px solid #e5e7eb;white-space:nowrap}th{background:#f8fafc}.row-actions{display:flex;align-items:center;gap:10px}.row-actions button{background:none;border:0;color:#b42318;text-decoration:underline;cursor:pointer;font:inherit}.row-actions form{display:inline}.success-msg{background:#dcfae6;color:#05603a}.token{display:block;white-space:normal;overflow-wrap:anywhere;background:#f2f4f7;padding:16px;border-radius:8px;font-size:1.05rem}.admin header p{color:#667085}@media(max-width:700px){.admin-layout{grid-template-columns:1fr}.admin-menu{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}}
.work-screen.shell{width:min(1320px,calc(100% - 32px))}.work-screen header p{color:#667085}.work-screen .card{margin:0}.service-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:18px;align-items:start}.service-main{min-width:0;display:grid;gap:18px}.table-panel{max-height:calc(100vh - 110px);overflow:auto;position:sticky;top:16px}.table-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.table-tile{position:relative;text-align:left;min-height:94px;border:2px solid #e5e7eb;background:#fff;border-radius:11px;padding:12px;font:inherit;font-weight:800;cursor:pointer}.table-tile.selected{border-color:#155eef;background:#eff4ff}.table-tile small,.order-row small,.station-item small{display:block;font-weight:400;color:#667085}.tile-count,.tile-ready{display:block;font-size:.75rem;font-weight:700;color:#344054}.tile-ready{color:#b54708}.ready-area{background:#fff3d6;border:1px solid #fdb022;border-radius:14px;padding:18px;margin:0 0 18px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title h2{margin:0 0 10px}.ready-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.ready-card{display:grid;gap:7px;background:#fff;border-radius:10px;padding:12px}.ready-card span{color:#667085}.ready-card .button{justify-self:start}.item-list{display:grid;gap:10px}.order-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e5e7eb;padding:10px 0}.order-row>div:first-child{flex:1}.status{white-space:nowrap;font-weight:700;font-size:.8rem;padding:5px 9px;border-radius:99px;background:#f2f4f7}.status-ready{background:#fef0c7;color:#93370d}.status-served{background:#dcfae6;color:#05603a}.status-preparing{background:#e9f0ff;color:#155eef}.menu-category{margin:18px 0}.menu-category h3{font-size:1rem;margin:0 0 8px}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:9px}.product-button{background:#f8fafc;border:1px solid #d0d5dd;border-radius:10px;min-height:64px;padding:10px;font:inherit;font-weight:700;text-align:left;cursor:pointer}.product-button:hover{background:#e9f0ff}.cart-row{display:flex;align-items:center;gap:9px;border-bottom:1px solid #e5e7eb;padding:8px 0}.cart-row strong{min-width:155px}.cart-row input{flex:1;min-width:80px}.quiet-button{border:1px solid #d0d5dd;border-radius:8px;background:white;color:#344054;padding:8px 10px;cursor:pointer;font:inherit}.cart-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}.small-button{padding:7px 11px;font-size:.85rem}.station-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px!important}.station-toolbar label{min-width:240px}.station-toolbar select{font:inherit;border:1px solid #bdc5d1;border-radius:9px;padding:10px}.pill{background:#e9f0ff;border-radius:99px;color:#155eef;padding:7px 12px;font-weight:800}.station-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.station-group{align-self:start}.station-item{border-top:1px solid #e5e7eb;padding:13px 0;display:grid;gap:10px}.station-item strong{font-size:1.1rem}.station-actions{display:flex;flex-wrap:wrap;gap:7px}.empty-board{grid-column:1/-1}.actions{flex-wrap:wrap}.actions .button{color:white}@media(max-width:780px){.service-layout{grid-template-columns:1fr}.table-panel{position:static;max-height:none}.table-grid{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}.cart-row{flex-wrap:wrap}.cart-row input{flex-basis:100%;order:3}.station-board{grid-template-columns:1fr}}@media(max-width:480px){.order-row{flex-wrap:wrap}.order-row>div:first-child{flex-basis:100%}.ready-list{grid-template-columns:1fr}}
.stat-link{text-decoration:none;color:inherit;transition:transform .12s,border-color .12s}.stat-link:hover,.stat-link:focus-visible{transform:translateY(-2px);border-color:#84adff;outline:2px solid transparent}.overview-list{display:grid;gap:12px}.overview-order{display:flex;justify-content:space-between;align-items:center;gap:20px}.overview-order h2{margin:.3rem 0}.overview-order p{margin:.4rem 0;color:#667085}.bill-lines{margin:18px 0}.bill-line{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #e5e7eb;padding:10px 0}.bill-line.muted{color:#98a2b3;text-decoration:line-through}.bill-total{border-top:2px solid #344054;font-size:1.2rem}.payment-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}.payment-form select{font:inherit;border:1px solid #bdc5d1;border-radius:9px;padding:11px 12px;background:#fff}.payment-form .payment-total,.payment-form button{grid-column:1/-1}.payment-total{font-size:1.25rem;margin:0}.closing-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.closing-stats>div{padding:14px;border:1px solid #dfe3ea;border-radius:10px;background:#f8fafc}.closing-stats span{display:block;color:#667085;font-size:.8rem}.closing-stats strong{display:block;font-size:1.25rem}.closing-form{margin-top:20px}@media(max-width:750px){.overview-order{display:block}.closing-stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:500px){.payment-form,.closing-stats{grid-template-columns:1fr}.overview-order .actions{margin-top:14px}}
.select-line{cursor:pointer;align-items:center}.select-line>span:first-child{display:flex;align-items:center;gap:10px}.select-line input.item-check{width:22px;height:22px;flex:none;accent-color:#155eef}.select-line small{font-size:.78rem;color:#667085}.select-line.muted{text-decoration:none;cursor:default}.select-line.muted small{color:#b42318}.check-placeholder{display:inline-block;width:22px;flex:none}.select-line:has(input:checked){background:#eff4ff}.select-line:hover:has(input){background:#f4f7ff}

/* Touch controls and live work indicators */
button,a,select,input[type="checkbox"],input[type="file"]{touch-action:manipulation}
.button,.quiet-button,.small-button,.row-actions button,nav a,.admin-menu a,.station-actions button{min-height:48px;display:inline-flex;align-items:center;justify-content:center}
input,select,textarea{min-height:48px;font-size:16px}input[type="checkbox"]{min-width:28px;min-height:28px}
textarea{width:100%;border:1px solid #bdc5d1;border-radius:9px;padding:11px 12px;font:inherit;resize:vertical}
.select-line{min-height:58px;padding:13px;gap:15px}.select-line input.item-check{width:30px;height:30px}
.table-tile{min-height:100px}.product-button{min-height:70px}.ready-card button,.station-actions button{min-height:52px}
.task-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;border:2px solid #d92d20;background:#fff0ef;color:#a1120d;border-radius:14px;padding:16px 20px;min-height:60px;font-weight:800;text-decoration:none;margin:10px 0}
.task-alert strong{font-size:1.3rem}.task-alert[hidden]{display:none!important}
.task-alert:focus-visible,.button:focus-visible,.table-tile:focus-visible,.admin-menu a:focus-visible{outline:3px solid #f04438;outline-offset:2px}
.pulse-alert{border:2px solid #d92d20!important;background:#fff0ef!important;color:#9b1c15!important;animation:task-pulse 1.8s ease-in-out infinite}
@keyframes task-pulse{50%{box-shadow:0 0 0 6px rgba(217,45,32,.18)}}
.table-tile.has-open-bill{border-color:#f5a524;background:#fff8df}.table-tile.payment-requested,.station-group.needs-attention{border-color:#d92d20;background:#fff2f1}.tile-payment{display:block;margin-top:5px;color:#b42318;font-weight:900}
.tile-ready{color:#b42318;font-weight:900}.ready-area{background:#fff0ef;border:2px solid #d92d20}
.brand-preview{max-width:220px;max-height:110px;object-fit:contain;display:block}
@media(prefers-reduced-motion:reduce){.pulse-alert{animation:none}}
/* The stored theme is used on every application page; printed receipts use white paper. */
html[data-theme="dark"]{color-scheme:dark;background:#101722;color:#f2f5fa;--blue:#8ab4ff;--navy:#27364a;--line:#435165}
html[data-theme="dark"] body{background:#101722;color:#f2f5fa}
html[data-theme="dark"] .card,html[data-theme="dark"] nav,html[data-theme="dark"] .table-tile,html[data-theme="dark"] .ready-card{background:#1c2736;color:#f2f5fa}
html[data-theme="dark"] .product-button,html[data-theme="dark"] .check,html[data-theme="dark"] th,html[data-theme="dark"] .closing-stats>div,html[data-theme="dark"] .token{background:#293749;color:#f2f5fa}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .quiet-button,html[data-theme="dark"] .editor select,html[data-theme="dark"] .station-toolbar select,html[data-theme="dark"] .payment-form select{background:#243245;color:#fff;border-color:#69788a}
html[data-theme="dark"] .button{color:#fff}html[data-theme="dark"] .button.primary{background:#315edb;color:#fff}
html[data-theme="dark"] .stat-link,html[data-theme="dark"] .admin-menu a,html[data-theme="dark"] .order-row small,html[data-theme="dark"] .table-tile small,html[data-theme="dark"] .station-item small,html[data-theme="dark"] .stats span,html[data-theme="dark"] .overview-order p,html[data-theme="dark"] .work-screen header p,html[data-theme="dark"] .admin header p,html[data-theme="dark"] .check small{color:#c7d2e0}
html[data-theme="dark"] .pulse-alert,html[data-theme="dark"] .task-alert,html[data-theme="dark"] .ready-area,html[data-theme="dark"] .table-tile.payment-requested,html[data-theme="dark"] .station-group.needs-attention{background:#4c2428!important;color:#ffe8e6!important}html[data-theme="dark"] .table-tile.has-open-bill{background:#4a3d1c;border-color:#d9a62e;color:#fff3c4}
html[data-theme="dark"] .select-line:has(input:checked),html[data-theme="dark"] .table-tile.selected{background:#223b61}
html[data-theme="dark"] .status{background:#334155;color:#fff}html[data-theme="dark"] .status-ready{background:#613c17;color:#ffe1a6}
html[data-theme="dark"] .alert.notice{background:#26344a;color:#e5efff}html[data-theme="dark"] .alert.error{background:#5a2626;color:#fff}html[data-theme="dark"] .success-msg{background:#184634;color:#e5fff0}

[hidden]{display:none!important}
.hospitality-toggle{display:flex;align-items:center;gap:14px;grid-column:1/-1;padding:14px;border:1px solid var(--line);border-radius:10px;min-height:56px;cursor:pointer}
.hospitality-toggle input{width:28px;height:28px;flex:none;margin:0}
.hospitality-fields{grid-column:1/-1;display:grid;gap:12px}
.receipt-page{max-width:680px;padding-top:24px}.receipt-page>.actions{margin-bottom:16px}
.receipt-paper{width:min(100%,360px);margin:0 auto;padding:20px 15px;background:#fff!important;color:#111!important;border:1px solid #ccd1da;border-radius:6px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.receipt-paper h1{font-size:21px;text-align:center;margin:8px 0}.receipt-paper h2{font-size:15px;text-align:center;margin:18px 0 8px}.receipt-paper p{margin:9px 0}.receipt-logo{display:block;max-width:100%;max-height:70px;margin:0 auto 10px;object-fit:contain}.receipt-address{text-align:center}.receipt-rule{border-top:1px dashed #111;margin:12px 0}.receipt-line{display:flex;gap:10px;justify-content:space-between;padding:4px 0}.receipt-line>span:last-child{flex:none;text-align:right}.receipt-grand{border-top:1px solid #111;margin-top:7px;padding-top:9px}.hospitality-receipt{border-top:1px dashed #111;margin-top:18px}.signature-line{border-top:1px solid #111;margin-top:34px;padding-top:5px;font-size:11px}.receipt-footer{text-align:center;margin-top:22px!important}
@media print{@page{margin:4mm}html,html[data-theme="dark"],body,html[data-theme="dark"] body{background:#fff!important;color:#000!important;color-scheme:light!important}.no-print,nav,.receipt-page>.actions{display:none!important}.receipt-page{width:100%;max-width:none;padding:0;margin:0}.receipt-paper{width:72mm;max-width:72mm;border:0;border-radius:0;padding:0;margin:0 auto;box-shadow:none;font-size:11px}.receipt-paper h1{font-size:18px}.receipt-paper h2{font-size:13px}}
.row-actions a,.overview-order .actions a,.stat-link,.admin-menu a,.pill{min-height:48px;display:inline-flex;align-items:center;padding:10px 12px}
.pill{text-decoration:none}.row-actions button{padding:10px 12px}
@media print{@page{margin:4mm}}
.stat-link{display:block}
.receipt-paper.receipt-58{width:min(100%,270px)}
.receipt-paper.receipt-a4{width:min(100%,794px);min-height:1123px;padding:58px 68px;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:14px}.receipt-paper.receipt-a4 .receipt-logo{max-height:110px;margin:0 0 20px}.receipt-paper.receipt-a4 h1,.receipt-paper.receipt-a4 .receipt-address{text-align:left}.receipt-paper.receipt-a4 h2{text-align:left;font-size:22px;margin-top:32px}
@media print{.receipt-paper.receipt-58{width:50mm;max-width:50mm}}
@media print{.receipt-paper.receipt-a4{width:190mm;max-width:190mm;min-height:277mm;padding:15mm;font-size:11pt}.receipt-paper.receipt-a4 .receipt-logo{max-height:28mm}}
/* Responsive layouts for phones, tablets and desktops. */
html{overflow-x:hidden}body{min-width:0}img,svg,video{max-width:100%}
.shell{width:min(100% - 32px,960px)}.admin.shell,.work-screen.shell{width:min(100% - 32px,1320px)}
nav{min-height:64px;height:auto;padding-block:10px;flex-wrap:wrap}nav strong,nav span{min-width:0;overflow-wrap:anywhere}
.card,.service-main,.admin-content,.overview-order,.bill-line{min-width:0}
.actions{display:flex;flex-wrap:wrap;gap:10px}.actions .button{min-height:48px}
.terminal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.terminal-actions button{min-height:64px}
.drink-list{display:grid;gap:0}.drink-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}.drink-row span{min-width:0;overflow-wrap:anywhere}.drink-row small{display:block;color:#667085}.drink-row strong{white-space:nowrap}
html[data-theme="dark"] .drink-row small{color:#c7d2e0}
@media(max-width:1020px){.admin-layout{grid-template-columns:180px minmax(0,1fr)}.service-layout{grid-template-columns:230px minmax(0,1fr)}}
@media(max-width:780px){.admin-layout,.service-layout{grid-template-columns:1fr}.admin-menu{position:static;display:flex;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;gap:6px}.admin-menu a{flex:none;scroll-snap-align:start}.table-panel{position:static;max-height:none}.table-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.station-board{grid-template-columns:1fr}.station-toolbar{flex-wrap:wrap}}
@media(max-width:600px){.shell,.admin.shell,.work-screen.shell{width:calc(100% - 24px);padding:22px 0 48px}.card{padding:16px;border-radius:12px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats strong{font-size:1.5rem}.grid,.payment-form,.closing-stats{grid-template-columns:1fr}.wide{grid-column:auto}.section-title{flex-wrap:wrap}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.station-board,.ready-list{grid-template-columns:1fr}.overview-order{display:grid;gap:10px}.table-scroll{max-width:100%;overflow-x:auto}th,td{padding:10px}.admin-menu a{min-height:48px}.button,.quiet-button,.product-button,.table-tile,.row-actions button{min-height:48px}.cart-footer{flex-wrap:wrap}}
@media(max-width:380px){.stats,.product-grid,.terminal-actions{grid-template-columns:1fr}.table-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.actions .button{width:100%;text-align:center}.receipt-page>.actions .button{width:100%}}
@media print{.terminal-actions,.drink-list{break-inside:avoid}}
.notification-toolbar{display:flex;justify-content:flex-end;margin:0 0 12px}.notification-toolbar button{min-height:48px}
.receipt-paper{--receipt-accent:#155eef;--receipt-rule:dashed}.receipt-paper h1,.receipt-paper h2{color:var(--receipt-accent)}.receipt-paper .receipt-rule,.receipt-paper .hospitality-receipt{border-top-style:var(--receipt-rule)}.receipt-logo-left .receipt-logo{margin-left:0;margin-right:auto}.receipt-logo-center .receipt-logo{margin-left:auto;margin-right:auto}.receipt-logo-right .receipt-logo{margin-left:auto;margin-right:0}.receipt-custom-header{text-align:center;font-weight:800;color:var(--receipt-accent)}
.designer-layout{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:20px;align-items:start}.designer-preview-wrap{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}.preview-logo{border:2px dashed currentColor;padding:14px;margin-bottom:12px;font-weight:900;color:var(--receipt-accent)}.designer-preview-wrap .receipt-paper{transition:width .2s,font-size .2s}
@media(max-width:900px){.designer-layout{grid-template-columns:1fr}.designer-preview-wrap{position:static;max-height:none}}
.admin-menu{z-index:20;max-height:calc(100vh - 32px);overflow-y:auto}.admin-menu-title{padding:8px 12px;color:#667085;text-transform:uppercase;letter-spacing:.08em;font-size:.75rem}
@media(max-width:780px){.admin-menu{position:sticky!important;top:0!important;z-index:50;background:#fff;max-height:none;box-shadow:0 8px 22px rgba(16,24,40,.12)}.admin-menu-title{display:none}html[data-theme="dark"] .admin-menu{background:#1c2736}}

/* Personal module layouts: mouse, touch and keyboard-safe controls. */
.layout-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 16px}.layout-hidden{display:flex;flex-wrap:wrap;gap:8px;width:100%;padding:12px;border:1px dashed var(--line);border-radius:10px}
[data-module-id]{position:relative}.module-controls{display:none;align-items:center;justify-content:flex-end;gap:6px;margin:-8px -8px 10px}.layout-editing .module-controls{display:flex}.module-controls button{border:1px solid #bdc5d1;border-radius:8px;background:#fff;color:#344054;min-height:44px;padding:8px 12px;font:inherit;font-weight:700;touch-action:none}.module-grip{cursor:grab;font-size:1.25rem;min-width:48px}.module-grip:active{cursor:grabbing}.module-moving{opacity:.62;outline:3px solid var(--blue);outline-offset:3px}.layout-editing [data-module-id]{outline:2px dashed #84adff;outline-offset:3px}.layout-editing [data-module-id] .stat-link{padding-top:0}
html[data-theme="dark"] .module-controls button{background:#243245;color:#fff;border-color:#69788a}
@media(max-width:600px){.layout-toolbar>.quiet-button{flex:1}.module-controls{margin:-4px -4px 8px}.module-controls button{min-height:48px}}
