:root{color-scheme:light;--bg:#f3f2ed;--panel:#ffffff;--panel2:#f0f2ee;--line:#d8dfd8;--text:#263c35;--muted:#65746d;--accent:#416758;--accent2:#8ba596;--good:#188542;--touch:48px}
*{box-sizing:border-box}html,body{margin:0;width:100%;min-width:320px;min-height:100%;background:var(--bg);color:var(--text);font:14px/1.4 system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
button,input,textarea{font:inherit}button{color:inherit;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--accent2);outline-offset:2px}
.app{height:100dvh;min-height:420px;display:flex;flex-direction:column;background:var(--bg);overflow:hidden}
.topbar{display:flex;gap:clamp(8px,1.7vw,32px);align-items:center;min-height:64px;flex:0 0 auto;padding:6px clamp(10px,1.5vw,22px);background:#ffffff;border-bottom:1px solid #d8dfd8}
.brand{display:flex;align-items:center;gap:10px;min-width:214px}.logo{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#416758,#e8eee8);font-size:17px;font-weight:900;color:#416758;letter-spacing:.04em}
.brand strong{font-size:18px;letter-spacing:.04em;display:block}.brand small{color:#416758;letter-spacing:.21em;font-size:10px;display:block}
.nav-tabs{display:flex;align-items:center;flex:1;gap:10px;min-width:0}.nav-btn{border:1px solid transparent;border-radius:11px;min-height:46px;padding:8px 20px;background:transparent;white-space:nowrap;font-size:15px}
.nav-btn.active{background:#416758;border-color:#8ba596}.nav-btn:hover{background:#e8eee8}
.top-right{display:flex;gap:8px;align-items:center;white-space:nowrap}.test-flag{padding:5px 9px;border-radius:7px;color:#416758;background:#e8eee8;font-size:11px}.shift-pill{font-size:12px;color:#386b54}
.icon-action{min-width:40px;min-height:42px;padding:6px;border-radius:10px;background:#f0f2ee;border:1px solid #d8dfd8;font-size:19px}
.test-strip{text-align:center;flex:0 0 auto;font-size:11px;padding:5px 10px;background:#e8eee8;color:#65746d;min-height:26px}
.screen{display:none;min-height:0;flex:1}.screen.active{display:flex}
.floor-screen{flex-direction:column;padding:18px 22px 12px;gap:12px}
.floor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 2px}.floor-heading h1{margin:0;font-size:23px;font-weight:650;letter-spacing:-.04em}.floor-heading p{margin:2px 0 0;color:var(--muted);font-size:12px}.floor-heading>span{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.floor-stage{flex:1;position:relative;min-height:0;max-width:100%;border:1px solid #dedfd6;border-radius:20px;overflow:hidden;background:#eeeee7}
.floor-background{position:absolute;inset:0;background:url('/floorplan.svg') center/100% 100% no-repeat;pointer-events:none}
.floor-location{--tile-size:clamp(116px,12.5vw,176px);position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:7px;width:var(--tile-size);height:var(--tile-size);padding:14px;border:1px solid #d1d9d0;border-radius:18px;background:#fffefb;color:#263c35;box-shadow:0 3px 5px #273c3505,0 12px 24px #273c3509;z-index:1;text-shadow:none}
.floor-location::before{content:'';position:absolute;top:13px;left:14px;width:6px;height:6px;border-radius:50%;background:#71917b}
.floor-location b{font-size:clamp(19px,2vw,28px);font-weight:650;letter-spacing:-.045em;line-height:1.15}.floor-location small{font-size:12px;color:#7b857d}.floor-location:active{transform:translate(-50%,-50%) scale(.97)}
.floor-location:hover{border-color:#7b9b86;box-shadow:0 0 0 3px #8ba59620,0 12px 24px #273c3510}
.floor-status{font-size:11px;border-radius:6px;padding:4px 9px;background:#edf2ea;color:#536e56;font-weight:550;white-space:nowrap}
.floor-location[data-status=occupied]{background:#fffaf0;border-color:#cdbb92}.floor-location[data-status=occupied]::before{background:#a78244}.floor-status.occupied{background:#f2e7ce;color:#796033}
.floor-location[data-status=ready]{background:#eaf3eb;border-color:#85a88d}.floor-location[data-status=ready]::before{background:#467854}.floor-status.ready{background:#d4e6d6;color:#345d3e}
.floor-location.table-1{left:22%;top:62%}.floor-location.table-2{left:22%;top:27%}.floor-location.table-3{left:50%;top:27%}.floor-location.table-4{left:50%;top:62%}
.floor-location.bar-1{left:28%;top:88%}.floor-location.bar-2{left:48%;top:88%}.floor-location.bar-3{left:68%;top:88%}.floor-location.bar-label{height:72px;width:clamp(116px,12.5vw,176px);flex-direction:row;gap:9px;border-radius:13px;padding:10px}.floor-location.bar-label b{font-size:16px;letter-spacing:-.02em}.floor-location.bar-label::before{display:none}.floor-location.bar-label .floor-status{font-size:10px;padding:4px 6px}
.floor-location.takeout{left:86%;top:27%}.floor-location.delivery{left:86%;top:62%}.floor-location.takeout b,.floor-location.delivery b{font-size:clamp(16px,1.6vw,23px)}
.entrance{position:absolute;left:67%;top:7%;transform:translateX(-50%);border:0;color:#899387;background:transparent;border-radius:0;padding:3px 12px;font-weight:550;font-size:10px;letter-spacing:.18em;opacity:1!important}
.floor-foot{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:2px 3px;font-size:11px;color:#758075}.floor-foot #floor-summary{margin-left:auto}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;vertical-align:middle;margin-right:5px}.dot.free{background:#71917b}.dot.occupied{background:#a78244}.dot.ready{background:#467854}
.order-screen{padding:9px;gap:10px;overflow:hidden}
.products{display:flex;min-width:0;min-height:0;flex:1;flex-direction:column;background:#ffffff;border:1px solid #d8dfd8;border-radius:14px;padding:9px;overflow:hidden}
.products-toolbar{display:flex;gap:12px;align-items:center;flex:0 0 auto;padding:1px 3px 8px}.return-btn{min-height:42px;padding:8px 15px;border:1px solid #8ba596;border-radius:10px;background:#416758;font-weight:750}.current-context{font-size:18px;font-weight:800}.order-hint{margin-left:auto;color:#65746d;font-size:11px}
.menu-filters{display:flex;gap:7px;margin-bottom:9px}.search{display:flex;align-items:center;gap:12px;background:#f0f2ee;border:1px solid #d8dfd8;border-radius:10px;min-height:48px;padding:0 13px;flex:1;min-width:0}.search span{font-size:22px}.search input{border:0;outline:none;background:transparent;color:#263c35;min-width:0;width:100%;font-size:14px}.search input::placeholder{color:#65746d}
.filter-tool{min-width:44px;min-height:44px;background:#f0f2ee;border:1px solid #d8dfd8;border-radius:10px;font-size:22px}
.categories-bar{display:flex;flex:0 0 auto;min-height:47px;gap:7px;margin-bottom:9px}.category-scroll{display:flex;min-width:0;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#d8dfd8 transparent;gap:7px;flex:1;scroll-behavior:smooth}
.category{padding:8px 13px;min-height:42px;border:1px solid #d8dfd8;background:#f0f2ee;border-radius:9px;white-space:nowrap;font-size:13px;flex:0 0 auto}.category.active{background:#416758;border-color:#8ba596}
.product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));grid-auto-rows:minmax(156px,1fr);gap:9px;overflow:auto;align-content:start;min-height:0;overscroll-behavior:contain}
.dish{display:flex;flex-direction:column;text-align:left;border:1px solid #d8dfd8;border-radius:12px;background:#ffffff;overflow:hidden;min-height:156px;padding:0}
.dish:hover{border-color:#8ba596}.dish-photo{min-height:75px;flex:1;display:grid;place-items:center;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 20%,#eef1e8,#ffffff 60%)}
.dish-art{font-size:46px;filter:drop-shadow(0 6px 8px #253c3512)}.dish-tag{position:absolute;top:6px;left:7px;font-size:10px;color:#65746d;background:#ffffffd9;padding:2px 5px;border-radius:5px}
.dish-meta{padding:9px;flex:0 0 auto;display:flex;flex-direction:column;gap:4px}.dish-meta strong{font-size:13px;min-height:33px;max-height:38px;overflow:hidden;line-height:1.24}
.dish-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px}.dish-price{color:#416758;font-weight:800;font-size:15px}.dish-plus{width:39px;height:39px;background:#416758;border-radius:9px;display:grid;place-items:center;font-size:24px;color:white;font-weight:700}
.receipt{display:flex;flex-direction:column;flex:0 0 clamp(335px,31%,490px);min-width:0;min-height:0;border:1px solid #d8dfd8;border-radius:14px;background:linear-gradient(155deg,#f0f2ee,#f0f2ee);overflow:hidden}
.receipt-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:15px 15px 10px}.receipt-top strong{font-size:clamp(19px,1.7vw,25px)}.receipt-status{font-size:11px;color:#386b54;margin-top:3px}
.more{width:46px;height:44px;background:#f0f2ee;border:1px solid #d8dfd8;border-radius:10px;font-size:20px}
.guests{display:flex;align-items:center;gap:7px;margin:0 13px 10px;padding:10px 13px;min-height:44px;background:#f0f2ee;border:1px solid #d8dfd8;border-radius:10px;text-align:left;font-weight:650}.guests-edit{font-size:11px;color:#65746d;margin-left:auto}
.receipt-lines{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;border-top:1px solid #d8dfd8;border-bottom:1px solid #d8dfd8;padding:5px 9px}
.receipt-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;padding:11px 3px;border-bottom:1px solid #d8dfd8}
.receipt-item-name{font-weight:650;font-size:13px;overflow-wrap:anywhere}.receipt-item-sub{font-size:11px;color:#65746d;margin-top:4px}.receipt-item-note{font-size:11px;color:#e5b58f;margin-top:4px;overflow-wrap:anywhere}
.item-side{display:flex;align-items:center;gap:6px}.item-qty{font-weight:800;min-width:12px;text-align:center}.qty-btn{min-width:32px;min-height:38px;background:#f0f2ee;border:1px solid #d8dfd8;border-radius:7px;font-size:20px;padding:0}.qty-btn.plus{background:#416758}.item-note-btn{border:1px solid #d8dfd8;border-radius:8px;background:#f0f2ee;min-width:35px;min-height:38px;font-size:17px}.item-cost{text-align:right;font-size:12px;font-weight:750;color:#416758;margin-bottom:4px}
.receipt-bottom{flex:0 0 auto;padding:12px 13px 14px;background:#f0f2ee}.loyalty{display:flex;width:100%;align-items:center;gap:8px;min-height:44px;padding:9px 12px;border:1px solid #8ba596;background:#e8eee8;border-radius:10px;text-align:left}.loyalty .chevron{margin-left:auto;font-size:19px}.bill-grand{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0}.bill-grand strong{font-size:clamp(21px,2vw,30px);color:#416758;white-space:nowrap;font-variant-numeric:tabular-nums}.bill-grand span{font-size:18px;font-weight:750}
.receipt-actions{display:grid;grid-template-columns:1fr 1.15fr;gap:8px}.action{min-height:54px;padding:9px;border-radius:11px;border:1px solid #d8dfd8;font-weight:800;font-size:14px}.action.kitchen,.action.outline{background:#f0f2ee}.action.pay{color:#263c35;background:linear-gradient(145deg,#416758,#416758);border-color:#8ba596}.note-hint{color:#65746d;font-size:11px;margin-bottom:6px}
.empty{color:#65746d;padding:26px 10px;text-align:center}
.payment-screen{flex-direction:column;padding:clamp(10px,2vw,24px);overflow:auto;gap:14px}.pay-header{display:flex;align-items:center;gap:18px}.pay-header strong{font-size:20px}.pay-header>span{color:#65746d;font-size:11px;margin-left:auto}
.payment-layout{min-height:0;flex:1;display:grid;grid-template-columns:1fr 1.2fr;gap:15px}
.pay-summary,.payment-method{background:#ffffff;border:1px solid #d8dfd8;border-radius:14px;padding:clamp(15px,2vw,28px);overflow:auto}.eyebrow{color:#65746d;font-size:12px;letter-spacing:.09em}.huge-total{font-size:clamp(32px,5vw,60px);font-weight:800;color:#416758;margin:14px 0}.pay-divider{height:1px;background:#d8dfd8;margin:17px 0}
.payment-lines{max-height:40vh;overflow:auto}.pay-row{display:flex;justify-content:space-between;gap:14px;margin:10px 0}
.method-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:14px 0 25px}.method{min-height:110px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;border:1px solid #d8dfd8;border-radius:12px;background:#f0f2ee;font-size:23px}.method strong{font-size:12px}.method.selected{background:#416758;color:#263c35;border-color:#8ba596}
.payment-method label{display:block;color:#65746d;margin:12px 0 8px}.payment-method input{width:100%;min-height:56px;padding:12px;background:#ffffff;border:1px solid #d8dfd8;border-radius:10px;color:#263c35;font-size:22px}
.quick-values{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}.quick-values button{min-height:45px;background:#f0f2ee;border:1px solid #d8dfd8;border-radius:9px;padding:7px 13px}
.pay-change{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:22px 0}.pay-change strong{color:#386b54;font-size:28px}
.payment-buttons{display:grid;grid-template-columns:1fr 2fr;gap:11px}
.analytics-screen{padding:25px;flex-direction:column;overflow:auto}.analytics-screen h1{font-size:25px}.analytics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.stat{background:#ffffff;border:1px solid #d8dfd8;padding:22px;border-radius:14px}.stat strong{display:block;font-size:29px;color:#416758;margin-top:9px}.analytics-screen p{color:#65746d}
dialog{width:min(440px,calc(100% - 22px));max-height:90vh;overflow:auto;background:#ffffff;color:#263c35;border:1px solid #d8dfd8;border-radius:15px;padding:0;box-shadow:0 30px 100px #253c3526}dialog::backdrop{background:#253c3570}
.dialog-inner{padding:20px}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px;font-size:19px}.close{border:1px solid #d8dfd8;border-radius:8px;background:#f0f2ee;width:37px;height:37px;font-size:24px}
.dialog-action{display:block;width:100%;text-align:left;min-height:50px;border:0;background:transparent;border-bottom:1px solid #d8dfd8;font-size:14px;padding:11px}.dialog-action.danger{color:#a44139}
.dialog-inner label{display:block;font-size:13px;color:#65746d;margin:12px 0}.dialog-inner textarea{background:#ffffff;color:#263c35;width:100%;padding:12px;resize:vertical;border:1px solid #d8dfd8;border-radius:9px}
.dialog-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.transfer-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}.transfer-list button{background:#f0f2ee;border:1px solid #d8dfd8;border-radius:9px;min-height:48px}
.toast{position:fixed;z-index:10;bottom:16px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 20px);padding:13px 20px;background:#e8eee8;border:1px solid #8ba596;border-radius:10px;box-shadow:0 10px 50px #253c3512}.toast.error{background:#fff0ed;border-color:#a44139}
@media(min-width:1920px){.topbar{min-height:75px}.product-grid{grid-template-columns:repeat(auto-fit,minmax(188px,1fr));grid-auto-rows:minmax(185px,1fr)}.dish-photo{min-height:100px}.dish-art{font-size:59px}.receipt-item{padding:14px 5px}}
@media(max-width:1150px){.brand{min-width:165px}.brand strong{font-size:15px}.nav-btn{padding:7px 12px}.receipt{flex-basis:340px}.product-grid{grid-template-columns:repeat(auto-fit,minmax(135px,1fr));grid-auto-rows:minmax(137px,1fr)}.dish-photo{min-height:70px}.dish-art{font-size:38px}.dish-meta{padding:6px}.order-screen{gap:6px}}
@media(max-width:800px){.brand{min-width:unset}.brand small{display:none}.topbar{flex-wrap:wrap;gap:4px}.nav-tabs{order:3;flex:0 0 100%;justify-content:space-around}.nav-btn{min-height:39px}.shift-pill{display:none}.order-screen{flex-direction:column;overflow:auto}.products{flex:1 0 min(65vh,560px);min-height:320px}.receipt{flex:0 0 auto;min-height:360px}.receipt-lines{max-height:300px}.product-grid{grid-template-columns:repeat(auto-fit,minmax(148px,1fr))}.payment-layout{grid-template-columns:1fr}}
@media(max-height:700px) and (min-width:801px){.topbar{min-height:52px}.logo{width:34px;height:34px}.test-strip{min-height:20px;padding:2px}.order-screen{padding:5px}.products-toolbar{padding:0 3px 4px}.categories-bar{min-height:39px;margin-bottom:5px}.category{min-height:36px;padding:5px 10px}.menu-filters{margin-bottom:5px}.search{min-height:42px}.receipt-top{padding:8px 10px}.receipt-bottom{padding:6px 10px}.guests{margin-bottom:5px;padding:6px}.product-grid{grid-auto-rows:minmax(128px,1fr)}.dish-photo{min-height:60px}.receipt-item{padding:6px 3px}.action{min-height:46px}}
@media(orientation:portrait) and (max-width:1080px){.order-screen{flex-direction:column;overflow:auto}.products{min-height:42vh;flex:1 0 45vh}.receipt{flex:0 0 auto;min-height:35vh}.receipt-lines{max-height:240px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .12s,border-color .12s,transform .1s}.floor-location:active{transform:translate(-50%,-50%) scale(.97)}}

/* v0.4 — touch-first Windows kiosk-like interactions (no native text selection). */
body,button,div,span,small,strong,section,article,main,aside,nav,header,output{
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
}
input,textarea{user-select:text;-webkit-user-select:text;-webkit-touch-callout:default}
.receipt-lines,.product-grid,.payment-lines{
  overflow-y:auto;overflow-x:hidden;touch-action:pan-y;-webkit-overflow-scrolling:touch;
  overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#d8dfd8 #f0f2ee;
}
.category-scroll{
  touch-action:pan-x;-webkit-overflow-scrolling:touch;overflow-x:auto;overflow-y:hidden;
  overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#d8dfd8 #f0f2ee;
  scroll-snap-type:x proximity;padding-bottom:5px;
}
.category{scroll-snap-align:start;touch-action:pan-x;flex-shrink:0}
.dish{touch-action:manipulation;min-width:0;height:100%;max-height:100%}
.product-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-rows:164px;align-content:start;align-items:start;justify-content:start}
@media(min-width:1920px){.product-grid{grid-template-columns:repeat(auto-fill,minmax(188px,1fr));grid-auto-rows:183px}}
@media(max-width:1150px){.product-grid{grid-template-columns:repeat(auto-fill,minmax(135px,1fr));grid-auto-rows:142px}}
@media(max-width:800px){.product-grid{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));grid-auto-rows:152px}}
@media(max-height:700px) and (min-width:801px){.product-grid{grid-auto-rows:135px}}
/* Payment — tight summary + real POS-style custom touch keyboard. */
.payment-screen{padding:10px 13px;gap:9px;overflow:hidden}
.pay-header{min-height:44px;gap:11px}
.pay-header strong{font-size:18px}
.payment-layout{grid-template-columns:minmax(250px,.76fr) minmax(455px,1.45fr);gap:10px;min-height:0}
.pay-summary,.payment-method{padding:14px 16px;min-height:0;overflow:auto}
.pay-summary{display:flex;flex-direction:column}
.pay-summary .huge-total{font-size:clamp(30px,3vw,43px);margin:9px 0;line-height:1.1}
.pay-summary .pay-divider{margin:10px 0}
.payment-lines{font-size:12px;flex:1;max-height:none;min-height:0}
.payment-lines .pay-row{margin:8px 0}
.payment-method{display:flex;flex-direction:column;gap:5px}
.method-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:5px 0 7px}
.method{min-height:67px;padding:7px 3px;font-size:20px;gap:4px}
.method strong{font-size:11px;line-height:1.22;text-align:center}
.method:not(.selected){opacity:.58}
.cash-entry{background:#ffffff;border:1px solid #d8dfd8;border-radius:10px;padding:8px 12px}
.cash-entry-top{display:flex;justify-content:space-between;gap:8px;color:#65746d;font-size:12px;margin-bottom:2px}
.cash-unit{color:#65746d;font-variant-numeric:tabular-nums}
.cash-display{display:block;color:#263c35;font-size:clamp(25px,2.8vw,36px);font-weight:850;font-variant-numeric:tabular-nums;line-height:1.2;text-align:right;min-height:36px}
.quick-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:7px 0 8px}
.quick-values button{min-height:44px;padding:6px;border-radius:9px;background:#f0f2ee;border:1px solid #d8dfd8;font-size:12px;font-weight:750;white-space:nowrap}
.quick-values button.exact{background:#416758;border-color:#8ba596;color:#263c35}
.cash-lower{display:grid;grid-template-columns:minmax(205px,.92fr) minmax(190px,1fr);gap:12px;min-height:0;flex:1}
.keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(46px,1fr));gap:6px;min-height:208px;max-height:280px}
.keypad .key{min-height:46px;border:1px solid #d8dfd8;border-radius:10px;background:linear-gradient(150deg,#f0f2ee,#f0f2ee);color:#263c35;font-size:clamp(21px,2.2vw,30px);font-weight:800}
.keypad .key:active{background:#416758}
.keypad .key.utility{background:#e8eee8;color:#416758}
.cash-checkout{display:flex;flex-direction:column;justify-content:flex-end;gap:12px}
.pay-change{margin:0;padding:12px 0;display:flex;flex-wrap:wrap;gap:6px}
.pay-change span{color:#65746d;font-size:13px}
.pay-change strong{font-size:clamp(20px,2.4vw,30px);color:#386b54}
.payment-buttons{display:grid;grid-template-columns:1fr 1.85fr;gap:7px;margin:0}
.payment-buttons .action{min-height:57px;font-size:12px;padding:6px}
.cash-warning{font-size:10px;color:#65746d;text-align:center;line-height:1.2}
@media(max-width:1100px){.payment-layout{grid-template-columns:minmax(220px,.78fr) minmax(425px,1.55fr)}.pay-summary,.payment-method{padding:11px}.method{min-height:60px}.payment-screen{padding:7px;gap:7px}.cash-lower{gap:7px;grid-template-columns:minmax(180px,.85fr) minmax(170px,1fr)}}
@media(max-width:800px){.payment-screen{overflow:auto}.payment-layout{grid-template-columns:1fr;overflow:visible}.pay-summary,.payment-method{overflow:visible}.cash-lower{grid-template-columns:1fr 1fr}.payment-lines{max-height:200px}}
@media(max-width:540px){.cash-lower{grid-template-columns:1fr}.payment-buttons{grid-template-columns:1fr 1.8fr}.keypad{max-height:260px}}
@media(max-height:700px) and (min-width:801px){.payment-screen{padding:5px 8px;gap:5px}.pay-header{min-height:40px}.pay-summary,.payment-method{padding:8px 10px}.method{min-height:52px}.method-grid{margin:3px 0}.cash-entry{padding:6px 9px}.cash-display{font-size:27px;min-height:30px}.quick-values button{min-height:40px}.keypad{grid-template-rows:repeat(4,minmax(42px,1fr));min-height:180px}.keypad .key{min-height:42px}.payment-buttons .action{min-height:48px}}


.dialog-inner input{width:100%;min-height:44px;background:#ffffff;color:#263c35;padding:9px;border:1px solid #d8dfd8;border-radius:9px}

select{font:inherit;max-width:100%;min-height:44px;background:#f0f2ee;color:#263c35;border:1px solid #d8dfd8;border-radius:8px}a{color:#416758}#inventory-message{color:#416758}

table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}th,td{text-align:left;border-bottom:1px solid #d8dfd8;padding:10px}#report-form{display:flex;gap:12px;align-items:center;flex-wrap:wrap}input[type=date]{background:#f0f2ee;color:#263c35;border:1px solid #d8dfd8;padding:8px;border-radius:8px}

[hidden]{display:none!important}

input[type=checkbox]{width:22px;min-height:22px;height:22px;vertical-align:middle}

#bill-switcher{flex-wrap:nowrap;overflow:auto;max-width:100%;padding:4px}#bill-switcher button{flex:0 0 auto;font-size:12px;min-height:34px}#order-changes{max-height:70px;overflow:auto;font-size:12px;padding:0 8px}#order-changes p{margin:4px 0}

/* Catalog uses all remaining space; tile dimensions never depend on item count. */
.products{padding:16px;background:var(--panel);border-color:var(--line)}
.products-toolbar{padding:0 0 14px;border-bottom:1px solid var(--line);margin-bottom:14px}
.return-btn{background:#f0f2ee;border-color:var(--line);color:var(--text)}
.catalog-toolbar{display:flex;gap:12px;align-items:center;flex:0 0 auto;margin-bottom:14px;min-height:48px}
.catalog-heading{flex:1;display:flex;gap:12px;align-items:baseline;min-width:0}.catalog-heading strong{font-size:21px;overflow-wrap:anywhere}.catalog-heading span{font-size:12px;color:var(--muted)}
#toggle-search{display:grid;place-items:center;width:48px;height:48px;background:#f4f5f1;border:1px solid var(--line)}
#toggle-search[aria-expanded=true]{background:#e3ece5;border-color:var(--accent)}
.menu-filters{flex:0 0 auto;margin-bottom:14px}.search input{color:var(--text)}
.product-grid{flex:1 1 0;width:100%;min-height:0;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-rows:164px;gap:12px;align-content:start;align-items:stretch;scrollbar-color:#b4c2b8 transparent;padding:0 2px 2px 0;scroll-padding-block:8px}
.dish,.menu-group{min-height:0;height:100%;max-height:100%;border:1px solid var(--line);border-radius:12px;background:#fafbf8;box-shadow:0 2px 3px #253c3505}
.dish:hover,.menu-group:hover{border-color:#8ba596;background:#f0f5ee}
.dish:active,.menu-group:active{background:#e0ebe1}
.dish-photo{min-height:0;flex:1 1 0;background:#f1f3eb}.dish-art{font-size:34px;filter:none}.dish-tag{background:#ffffffd9;color:#65746d}
.dish-meta{padding:10px;gap:4px}.dish-meta strong{font-size:13px;min-height:32px;max-height:32px;line-height:16px;font-weight:650}.dish-price{font-size:14px;color:var(--text)}.dish-plus{height:32px;width:32px;background:#e5ece4;color:#416758;font-size:22px}
.menu-group{position:relative;padding:16px;text-align:left;display:flex;flex-direction:column;gap:8px;touch-action:manipulation;color:var(--text)}
.group-tile-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:auto;color:#738c7c}.group-symbol{font-size:26px;line-height:1}.group-index{font-size:10px;letter-spacing:.12em}
.menu-group>strong{font-size:16px;font-weight:650;line-height:1.25;overflow-wrap:anywhere}.group-tile-count{font-size:12px;color:var(--muted)}.group-arrow{position:absolute;right:14px;bottom:14px;color:#738c7c;font-size:20px}
.receipt{background:#f8f9f5;border-color:var(--line);flex-basis:clamp(320px,30%,450px)}.receipt-bottom{background:#f8f9f5}.receipt-top{padding:18px 16px 12px}.receipt-top strong{font-weight:650}.receipt-lines{background:#fff;border-color:var(--line)}
.loyalty{background:transparent;border-color:var(--line);color:var(--muted)}.bill-grand strong{color:var(--text)}
.action{font-weight:650}.action.pay{background:#416758;border-color:#416758;color:#fff}.action.pay:hover{background:#345647}.action.kitchen,.action.outline{background:#f0f2ee;color:var(--text);border-color:var(--line)}
.logo{background:#416758;color:#fff;border-radius:12px;font-size:16px;font-weight:700}.brand strong{font-weight:650;letter-spacing:.1em}.brand small{color:#7d887d;letter-spacing:.24em}.topbar{background:#fff;border-color:var(--line)}
.nav-btn.active{background:#e8eee8;border-color:#d8e1d6;color:#345647}.test-flag{background:#f1eee4;color:#796d4d}.test-strip{background:#eaece5;color:#6a756c}.shift-pill{color:#547763}
.method.selected{background:#e3ece5;color:#263c35;border-color:#8ba596}.method:not(.selected){opacity:1}.keypad .key{background:#f5f6f2;color:#263c35;border-color:var(--line);font-weight:600}.keypad .key.utility{background:#e8eee8;color:#416758}.quick-values button.exact{color:#263c35;background:#e3ece5;border-color:#8ba596}.cash-display{color:#263c35}.cash-entry{border-color:#8ba596}

.group-management{margin:24px 0;padding:20px;border:1px solid var(--line);border-radius:14px;background:#fff}.group-management h2{margin:0}.group-management form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:16px 0}.group-management label{display:flex;flex-direction:column;gap:6px}.group-management .group-check{display:block}.group-management input:not([type=checkbox]){min-height:46px;padding:9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text)}.group-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line);flex-wrap:wrap}.group-row strong{min-width:170px}.group-row span{flex:1;color:var(--muted)}.group-row .action{min-height:44px}.group-management>button{margin-top:14px}
#bill-switcher{display:flex;gap:6px;margin:0 10px 8px;max-width:calc(100% - 20px);touch-action:pan-x}#bill-switcher button{padding:6px 10px;background:#e8eee8;border-color:#ccd8ce;color:#416758}
@media(min-width:1920px){.product-grid{grid-template-columns:repeat(auto-fill,minmax(188px,1fr));grid-auto-rows:183px}}
@media(max-width:1150px){.product-grid{grid-template-columns:repeat(auto-fill,minmax(135px,1fr));grid-auto-rows:142px}.products{padding:12px}.dish-meta{padding:8px}.dish-art{font-size:28px}.menu-group{padding:12px}.menu-group>strong{font-size:15px}}
@media(max-width:800px){.product-grid{grid-template-columns:repeat(auto-fill,minmax(135px,1fr));grid-auto-rows:152px}}
/* POS landscape stays side by side even at 800×600. Narrow/portrait layouts have a bounded menu and a separate receipt. */
@media(min-width:760px) and (orientation:landscape){.order-screen{flex-direction:row;overflow:hidden}.products{flex:1 1 0;min-height:0}.receipt{flex:0 0 clamp(290px,30%,450px);min-height:0}.receipt-lines{max-height:none}.topbar{flex-wrap:nowrap}.nav-tabs{order:initial;flex:1;justify-content:initial}.nav-btn{min-height:44px}.shift-pill{display:none}}
@media(max-height:700px) and (min-width:760px) and (orientation:landscape){.products{padding:10px}.products-toolbar{padding-bottom:8px;margin-bottom:8px}.catalog-toolbar{margin-bottom:8px}.product-grid{grid-auto-rows:142px}.receipt-top{padding:10px}.order-hint{display:none}.dish-photo{min-height:0}.dish-plus{height:28px;width:28px}.dish-meta{padding:7px}.action{min-height:46px}}
@media(orientation:portrait) and (max-width:1080px), (max-width:759px){.order-screen{overflow:auto;flex-direction:column}.products{flex:0 0 auto;height:52dvh;min-height:320px}.receipt{flex:0 0 auto;min-height:400px}.receipt-lines{flex:0 0 auto;min-height:100px;max-height:240px}.order-hint{display:none}}

.table-scroll{max-width:100%;overflow:auto;touch-action:pan-x}.payables-form{display:flex;gap:14px;align-items:end;flex-wrap:wrap}.payables-form label{display:flex;flex-direction:column;gap:6px;min-width:170px}.payables-form input{min-height:46px;padding:9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text)}.payable-overdue{color:#a44139;font-weight:650}.payable-entry{border-top:1px solid var(--line);padding:16px 0}#payable-invoices input[type=number]{width:130px;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:8px}#payables-message{position:sticky;top:0;z-index:2;background:var(--bg);padding:8px 0}

/* Working cashier controls remain large; rare actions live behind the item title and settings. */
.receipt-item-name{display:block;width:100%;min-height:48px;background:transparent;border:0;text-align:left;padding:4px 0;color:var(--text);font-size:14px;font-weight:650;line-height:1.3;cursor:pointer}.receipt-modifiers{font-size:12px;color:#547763;line-height:1.4;margin:3px 0;overflow-wrap:anywhere}.qty-btn{width:48px;min-width:48px;min-height:48px;height:48px}.item-qty{min-width:20px}.item-side{gap:7px}.receipt-item{align-items:start}.receipt-item-sub{font-size:12px}.receipt-item-name::after{content:' ⋯';color:#829087}.close{width:48px;min-width:48px;height:48px}.icon-action{min-width:48px;min-height:48px}.dialog-action{min-height:52px;text-decoration:none;color:var(--text)}summary{min-height:48px;padding:12px 0;cursor:pointer}#order-changes{max-height:220px;font-size:13px;padding:0}#settings-dialog{width:min(560px,calc(100% - 24px))}.modifier-dialog{width:min(900px,calc(100% - 24px));height:min(800px,calc(100dvh - 28px));max-height:calc(100dvh - 28px);overflow:hidden}.modifier-layout{height:100%;display:flex;flex-direction:column;padding:20px;gap:14px;min-height:0}.modifier-layout>.dialog-heading{flex:0 0 auto;margin:0}.modifier-layout>.dialog-heading p{font-size:13px;font-weight:400;color:var(--muted);margin:6px 0 0}.modifier-groups{flex:1 1 0;min-height:0;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;scrollbar-width:thin}.modifier-group{padding:6px 0 18px}.modifier-group h2{font-size:19px;margin:8px 0}.modifier-rule{font-size:13px;color:var(--muted);margin:4px 0 10px}.modifier-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}.modifier-option-row{display:flex;flex-direction:column;gap:6px}.modifier-option{position:relative;display:flex;flex-direction:column;gap:8px;justify-content:center;min-height:90px;padding:14px 35px 14px 14px;border:1px solid var(--line);border-radius:12px;text-align:left;background:#f8faf6;color:var(--text);touch-action:manipulation}.modifier-option strong{font-size:15px}.modifier-option>span{font-size:12px;color:var(--muted)}.modifier-option.selected{border:2px solid #416758;background:#e8f0e7;padding:13px 34px 13px 13px}.modifier-option .modifier-tick{position:absolute;right:12px;top:12px;color:#416758;font-weight:800}.modifier-quantity{display:flex;align-items:center;justify-content:center;gap:14px}.modifier-checkout{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--line)}.modifier-checkout>div{flex:1;min-width:0}.modifier-checkout p{font-size:13px;color:var(--muted);margin:0 0 7px}.modifier-checkout strong{font-size:23px}.modifier-checkout .action{min-height:56px;padding:12px 18px}#modifier-add{min-width:180px}.modifier-groups,.modifier-option{-webkit-user-select:none;user-select:none}
@media(max-width:800px){.modifier-layout{padding:12px}.modifier-checkout{flex-wrap:wrap}.modifier-checkout>div{flex-basis:100%}.modifier-options{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}#modifier-add{flex:1}.receipt-item-name{font-size:13px}.qty-btn{width:48px;min-width:48px}}
.modifier-editor-option{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 2fr auto;gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}.modifier-editor-option label{display:flex;flex-direction:column;gap:6px;min-width:0}.modifier-editor-option input{max-width:100%}#modifier-links label{min-height:48px;display:flex;align-items:center;gap:12px}#modifiers-message{position:sticky;top:0;background:var(--bg);padding:8px;z-index:2}@media(max-width:1100px){.modifier-editor-option{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.modifier-editor-option{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:1050px){.floor-screen{padding:12px;gap:8px}.floor-heading h1{font-size:20px}.floor-location{--tile-size:116px;padding:12px;gap:6px}.floor-location.bar-label{height:64px;flex-direction:column;gap:2px}.floor-location.bar-label b{font-size:15px}.floor-location.bar-label .floor-status{padding:2px 6px}}
@media(max-width:700px){.floor-screen{padding:10px}.floor-heading>span{display:none}.floor-heading h1{font-size:21px}.floor-heading p{font-size:11px}.floor-stage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px 12px;align-content:start;overflow:auto;background:#eeeee7}.floor-background,.entrance{display:none}.floor-stage .floor-location{position:relative;left:auto;top:auto;transform:none;width:100%;height:auto;aspect-ratio:1;min-height:108px;padding:10px;flex-direction:column;gap:6px;border-radius:14px}.floor-location:active{transform:scale(.97)}.floor-location b{font-size:21px}.floor-location.takeout b,.floor-location.delivery b{font-size:16px}.floor-location small{font-size:11px}.floor-location.bar-label b{font-size:18px}.floor-foot{gap:10px}.floor-foot #floor-summary{flex-basis:100%;margin-left:0}}

/* Room overview and readable order states on touch screens. */
.floor-overview{display:flex;align-items:center;gap:8px}.floor-overview>span{padding:8px 12px;background:#fafaf6;border:1px solid #e0e4db;border-radius:10px;font-size:11px;color:#6c786e;white-space:nowrap}.floor-overview strong{font-size:15px;font-weight:650;color:#304b3c;margin-right:3px;font-variant-numeric:tabular-nums}.floor-overview .dot{margin-right:6px}
.floor-zone{position:absolute;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#8a9585;pointer-events:none}.zone-hall{left:7%;top:8%}.zone-service{left:79%;top:8%}.zone-bar{left:10%;top:87%;font-size:9px;letter-spacing:.1em}
.floor-location{--tile-size:clamp(128px,13vw,184px);gap:5px;border-radius:19px;background:linear-gradient(155deg,#fffefc,#fbfcf8);box-shadow:0 1px 2px #273c3505,0 8px 24px #273c3508,inset 0 1px 0 #fff}
.floor-table-label{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#7e8e80;line-height:1}.floor-location b.floor-number{font-size:clamp(30px,3vw,42px);line-height:1;font-weight:550;letter-spacing:-.06em;font-variant-numeric:tabular-nums}.floor-location small{font-size:11px}.floor-amount{font-weight:650;font-size:16px;line-height:1.2;letter-spacing:-.025em;font-variant-numeric:tabular-nums}.floor-meta{font-size:10px;color:#7c8275;line-height:1.2}.floor-amount[hidden],.floor-meta[hidden],.floor-location small[hidden]{display:none}
.floor-location[data-status=occupied]{background:linear-gradient(150deg,#fffdf6,#faf3e5)}.floor-location[data-status=ready]{background:linear-gradient(150deg,#f6fbf5,#e8f1e7)}.floor-location[data-status=ready] .floor-status{color:#2d5939}.floor-location:focus-visible{outline:3px solid #416758;outline-offset:5px}
.floor-location.bar-label{height:76px;width:clamp(128px,13vw,184px);display:grid;grid-template-columns:1fr;justify-items:center;align-content:center;gap:3px;padding:8px}.floor-location.bar-label .floor-amount{font-size:13px}.floor-location.bar-label .floor-meta{display:none}.floor-location.bar-label .floor-status{font-size:10px;max-width:100%}.floor-location.bar-label[data-status=ready] .floor-status{font-size:9px}
@media(max-width:1050px){.floor-location{--tile-size:128px;padding:10px;gap:4px}.floor-location .floor-status{font-size:10px;padding:3px 7px}.floor-location b.floor-number{font-size:31px}.floor-location .floor-amount{font-size:15px}.floor-overview{gap:5px}.floor-overview>span{padding:6px 8px;font-size:10px}.floor-overview strong{font-size:13px}.zone-bar{left:8%;max-width:65px;font-size:8px}}
@media(max-width:850px){.floor-overview>span{padding:5px 7px}.floor-overview>span:last-child{display:none}.zone-bar{display:none}.floor-location{gap:3px}.floor-meta{font-size:9px}}
@media(max-width:700px),(max-height:599px){.floor-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}.floor-overview{width:100%;gap:6px}.floor-overview>span,.floor-overview>span:last-child{display:block;flex:1;text-align:center;padding:6px 3px;font-size:10px}.floor-overview strong{font-size:14px}.floor-zone{display:none}.floor-stage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;overflow:auto;gap:10px;padding:14px 10px}.floor-background,.entrance{display:none}.floor-stage .floor-location,.floor-stage .floor-location.bar-label{position:relative;left:auto;top:auto;transform:none;width:100%;height:142px;min-height:142px;aspect-ratio:auto;padding:9px 5px;gap:5px;display:flex;flex-direction:column}.floor-location b.floor-number{font-size:33px}.floor-location .floor-amount{font-size:14px}.floor-location.bar-label .floor-meta{display:block}.floor-location.bar-label .floor-amount{font-size:14px}.floor-location.bar-label .floor-status{font-size:9px}.floor-location .floor-status{font-size:9px;padding:4px 5px}.floor-location.takeout b,.floor-location.delivery b{font-size:15px}.floor-location::before{left:10px;top:10px;width:5px;height:5px}}
@media(max-width:350px){.floor-stage{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Calm ordering workspace with a readable receipt and explicit payment context. */
.order-screen{padding:14px;gap:14px}.products{border-radius:18px;padding:18px}.products-toolbar{margin-bottom:14px;padding-bottom:14px}.current-context{font-weight:650;letter-spacing:-.03em}.order-hint{color:#7d897e}.return-btn{font-weight:550;border-radius:10px}.catalog-heading strong{font-weight:600;letter-spacing:-.025em}.catalog-heading span{white-space:nowrap}.product-grid{grid-template-columns:repeat(auto-fill,minmax(165px,1fr));grid-auto-rows:180px;gap:12px}.menu-group{padding:18px;background:linear-gradient(145deg,#fffefa,#f4f6ef);border-radius:15px}.menu-group>strong{font-size:18px;letter-spacing:-.025em}.group-symbol{color:#82977f}.group-tile-count{font-size:11px}.group-arrow{color:#6a826d}
.dish{background:#fffefb;border-radius:15px;text-align:left}.dish-photo{background:linear-gradient(150deg,#f4f5ef,#e9eee3);flex:1;min-height:38px}.dish-art{width:50px;height:50px;border:1px solid #d9e2d1;border-radius:50%;display:grid;place-items:center;font-size:14px;font-weight:500;letter-spacing:.12em;color:#809777;background:#f9fbf240}.dish-tag{top:8px;left:9px;padding:0;background:transparent;font-size:9px;letter-spacing:.025em}.dish-meta{padding:12px;gap:9px;background:#fffefb}.dish-meta strong{font-size:15px;font-weight:600;line-height:1.3;min-height:39px;max-height:39px}.dish-price{font-size:16px;font-weight:650;letter-spacing:-.02em}.dish-plus{height:36px;width:36px;border-radius:10px;font-weight:400;font-size:24px}.dish-ordered{position:absolute;right:7px;bottom:7px;border-radius:6px;padding:3px 6px;background:#416758;color:#fff;font-size:10px;font-weight:550;font-variant-numeric:tabular-nums}.dish.in-order{border-color:#91aa95}.dish:focus-visible,.menu-group:focus-visible{outline:3px solid #416758;outline-offset:-3px}
.receipt{flex-basis:clamp(340px,33%,480px);border-radius:18px;background:#fffefb;box-shadow:0 5px 20px #263c3505}.receipt-top{padding:18px 16px 10px}.receipt-top strong{font-size:23px;font-weight:600;letter-spacing:-.035em}.receipt-status{font-size:11px;color:#647d68}.receipt-reference{font-size:10px;color:#8a9488;margin-top:4px;font-variant-numeric:tabular-nums}.more{background:#f5f6f0;border-color:#dce2d6;font-size:17px}.guests{background:#f5f7f0;border-color:#e0e6d9;font-size:12px;font-weight:500;min-height:44px;margin:0 14px 10px}.guests-edit{font-size:10px}.receipt-lines{background:#fffefb;padding:4px 14px;border-color:#e4e7dd}.receipt-item{padding:12px 0;gap:12px;border-color:#e7eadf}.receipt-item-name{font-size:15px;font-weight:600;padding:0 0 4px;min-height:40px}.receipt-item-name::after{font-size:12px;color:#93a18d}.receipt-item-sub{font-size:10px;color:#7d8979}.receipt-modifiers{font-size:11px;color:#5b795c;margin:2px 0 5px}.receipt-item-note{font-size:11px;color:#8c7144;background:#faf4e8;padding:5px 7px;border-radius:5px;margin-top:6px}.receipt-line-state{font-size:9px;display:inline-block;margin-top:5px;color:#9c7e44;letter-spacing:.01em}.receipt-line-state.sent{color:#627f64}.item-cost{font-size:14px;font-weight:650;letter-spacing:-.02em;margin:0 0 9px;font-variant-numeric:tabular-nums}.item-side{gap:5px}.qty-btn{border-radius:10px;background:#f4f6ef;border-color:#e0e5d9;font-weight:400}.qty-btn.plus{background:#e8efe3;color:#3e6148;border-color:#d4e0cc}.item-qty{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}.receipt-bottom{background:#f7f8f2;padding:12px 14px 14px}.loyalty{font-size:12px;min-height:42px;background:#fffef980;border-color:#dce3d4;font-weight:500}.bill-grand{padding:12px 0}.bill-grand>span{font-size:15px;font-weight:500}.bill-grand>strong{font-size:29px;font-weight:600;letter-spacing:-.045em}.receipt-actions{gap:8px;grid-template-columns:1fr 1.15fr}.receipt-actions .action{min-height:54px;font-size:14px;border-radius:12px}.receipt-actions .action.kitchen{background:#edf1e7;border-color:#dce4d4}.receipt-actions .action.pay{background:#365b46;border-color:#365b46}.receipt-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:180px;color:#8c9987;padding:24px 8px}.receipt-empty-mark{display:grid;place-items:center;width:42px;height:42px;border:1px solid #e0e6d8;border-radius:12px;font-size:21px;color:#92a188;margin-bottom:4px}.receipt-empty strong{font-size:14px;font-weight:550;color:#64785f}.receipt-empty>span:last-child{font-size:11px}.receipt-breakdown{font-size:11px;color:#697d63;padding-top:8px}.receipt-breakdown>div,.receipt-deposit>div{display:flex;justify-content:space-between;gap:8px;align-items:center}.receipt-breakdown strong,.receipt-deposit strong{font-weight:600;font-variant-numeric:tabular-nums}.receipt-deposit{padding:0 0 10px;font-size:11px;color:#718269}.receipt-deposit>div+div{margin-top:5px;color:#345b41;font-size:12px}.receipt-deposit>div:last-child strong{font-size:15px}.receipt-reference:empty{display:none}#bill-switcher button{min-height:44px;background:#f3f6ed;font-size:11px;white-space:nowrap;border-radius:8px}.bill-switcher-active{border-color:#738f72!important;background:#e6eee0!important}
@media(min-width:1920px){.product-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));grid-auto-rows:208px}.dish-meta strong{font-size:17px;max-height:44px;min-height:44px}.dish-price{font-size:18px}}
@media(max-width:1150px){.order-screen{padding:10px;gap:10px}.products{padding:12px}.product-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));grid-auto-rows:162px;gap:10px}.menu-group{padding:14px}.menu-group>strong{font-size:16px}.dish-meta{padding:9px;gap:6px}.dish-meta strong{font-size:14px;min-height:36px;max-height:36px}.dish-price{font-size:14px}.dish-plus{width:32px;height:32px}.dish-art{width:42px;height:42px;font-size:12px}.receipt{flex-basis:340px}.receipt-top{padding:12px 12px 8px}.receipt-top strong{font-size:21px}.receipt-lines{padding:3px 11px}.receipt-item{gap:8px}.receipt-item-name{font-size:14px}.receipt-bottom{padding:10px 12px}.bill-grand>strong{font-size:27px}}
@media(min-width:760px) and (orientation:landscape){.receipt{flex:0 0 clamp(310px,33%,480px)}.products{min-height:0}}
@media(max-height:700px) and (min-width:760px) and (orientation:landscape){.order-screen{padding:8px;gap:8px}.products{padding:10px}.products-toolbar{padding-bottom:8px;margin-bottom:8px}.catalog-toolbar{margin-bottom:8px}.product-grid{grid-auto-rows:150px;grid-template-columns:repeat(auto-fill,minmax(135px,1fr))}.receipt-top{padding:8px 10px 6px}.receipt-top strong{font-size:19px}.receipt-reference{font-size:9px}.guests{min-height:40px;margin:0 10px 6px;padding:7px 10px}.receipt-item{padding:9px 0}.receipt-bottom{padding:8px 10px}.loyalty{min-height:38px;padding:7px 10px}.bill-grand{padding:8px 0}.bill-grand>strong{font-size:24px}.receipt-actions .action{min-height:48px}.receipt-empty{min-height:90px}.dish-meta{padding:7px}.dish-photo{min-height:30px}.dish-tag{top:5px;left:7px;font-size:8px}.dish-art{width:32px;height:32px;font-size:10px}.receipt-deposit{font-size:10px;padding-bottom:7px}.receipt-deposit>div:last-child strong{font-size:13px}}
@media(orientation:portrait) and (max-width:1080px),(max-width:759px){.receipt{flex:0 0 auto;min-height:400px}.products{min-height:340px}.receipt-item-name{font-size:15px}.receipt-item-sub{font-size:11px}.receipt-actions .action{min-height:54px}.receipt-empty{min-height:140px}.receipt-lines{min-height:140px;max-height:300px}.product-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));grid-auto-rows:166px}}

/* Front is a cashier workspace; administration is reached separately. */
.topbar{min-height:64px;gap:18px}.nav-tabs>.nav-btn{font-size:18px;min-height:48px;padding:8px 26px;border-radius:12px}.front-menu-button{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 18px;border:1px solid #d7e1d1;border-radius:12px;background:#eef3e9;color:#36553e;font-size:16px;font-weight:600}.front-menu-button:focus-visible{outline:3px solid #789a75;outline-offset:2px}.front-work-menu{display:grid;grid-template-columns:1fr 1fr;gap:8px}.front-work-menu .dialog-action{text-align:left;white-space:normal;margin:0;padding:14px;border:1px solid #dce4d5;border-radius:10px;background:#f6f8f1;display:flex;align-items:center;min-height:66px;font-size:14px}.front-work-menu .dialog-action:last-child{grid-column:1/-1;color:#7e633d}#settings-dialog{width:min(580px,calc(100% - 24px))}.test-strip{font-size:9px;padding:3px 8px;min-height:18px}.receipt-line-heading{display:flex;align-items:flex-start;gap:4px}.receipt-line-heading .receipt-item-name{flex:1;min-width:0}.receipt-delete{flex:0 0 40px;width:40px;min-height:40px;padding:0;border:1px solid #e9ddd2;background:#fbf5ec;color:#9a7050;border-radius:9px;font-size:22px}.receipt-delete:disabled{opacity:.35}.form-error{color:#a24d37;font-size:13px;min-height:18px}.receipt-line-heading .receipt-item-name{font-size:14px}#front-stock-dialog,#cancel-check-dialog{width:min(560px,calc(100% - 24px))}#front-stock-dialog input,#cancel-check-dialog input{min-height:48px;width:100%;padding:10px;border:1px solid #d5dece;border-radius:8px;background:#fffefb}#front-stock-dialog select,#cancel-check-dialog select{min-height:48px;width:100%;padding:10px;border:1px solid #d5dece;border-radius:8px}#front-stock-dialog label,#cancel-check-dialog label{display:block;margin:12px 0}#front-stock-dialog p,#cancel-check-dialog p{font-size:12px;color:#77856c;line-height:1.5}.backoffice #access-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}.backoffice #access-form label{min-width:0}.backoffice #access-form input:not([type=checkbox]),.backoffice #access-form select{width:100%;min-height:42px}.backoffice #access-rights{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:12px;border:1px solid #dce4d5}.backoffice #access-rights label,#front-access-rights label{display:flex;align-items:center;gap:8px;font-size:12px;margin:4px 0}.backoffice #access-users>p{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #dce4d5}.backoffice #access-users button{min-height:42px;font-size:12px}#front-access-dialog{width:min(600px,calc(100% - 24px))}#front-access-dialog input[type=password]{min-height:48px;width:100%;padding:10px;border:1px solid #d5dece;border-radius:8px}#front-access-rights{border:1px solid #dce4d5;padding:12px}
@media(max-width:800px){.topbar{flex-wrap:nowrap;gap:8px}.topbar .brand{min-width:0;gap:7px}.topbar .brand strong{font-size:12px}.topbar .brand small{display:none}.topbar .logo{width:40px;height:40px;font-size:14px}.topbar .nav-tabs{order:initial;flex:1;justify-content:flex-start}.nav-tabs>.nav-btn{font-size:16px;padding:7px 15px}.front-menu-button{padding:9px 13px;font-size:14px}.topbar .shift-pill{display:none}.backoffice #access-form{grid-template-columns:1fr 1fr}.receipt-line-heading .receipt-item-name{font-size:13px}.receipt-delete{width:36px;flex-basis:36px;min-height:40px}}
@media(max-width:420px){.front-menu-button span{display:none}.front-work-menu{grid-template-columns:1fr}.topbar .brand strong{letter-spacing:.03em}.backoffice #access-form{grid-template-columns:1fr}}
/* Three cashier views share live orders and a single occupancy strip. */
.topbar{gap:12px}.topbar .brand{min-width:0;gap:8px}.topbar .brand strong{font-size:14px}.topbar .logo{width:40px;height:40px;font-size:14px}.topbar .nav-tabs{gap:4px;flex:1}.topbar .nav-tabs>.nav-btn{font-size:14px;min-height:46px;padding:8px 14px}.topbar .nav-tabs>.nav-btn.active{color:white}.topbar .floor-overview{display:flex;gap:11px;flex-wrap:nowrap;white-space:nowrap;font-size:11px}.topbar .floor-overview span{display:flex;gap:4px;align-items:center}.topbar .floor-overview strong{font-size:15px}.topbar .floor-overview .dot{width:6px;height:6px}.topbar .shift-pill{display:none}.topbar .front-menu-button{min-height:46px;padding:8px 12px;font-size:14px}.floor-heading{min-height:45px}.service-view{flex-direction:column;padding:22px;overflow:auto}.service-heading{margin-bottom:20px}.service-heading h1{font-size:23px;letter-spacing:-.03em;margin:0}.service-heading p{color:var(--muted);margin:4px 0;font-size:12px}.waiter-board{display:flex;flex-direction:column;gap:24px}.waiter-section{padding:18px;border:1px solid #d7dfd6;border-radius:14px;background:#fafbf7}.waiter-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.waiter-heading h2{font-size:18px;margin:0}.waiter-heading>span{font-size:12px;color:var(--muted)}.waiter-tables{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:12px}.service-table{min-height:140px;display:flex;flex-direction:column;align-items:start;gap:7px;padding:18px;text-align:left;border:1px solid #ccd9c9;border-radius:12px;background:#fff}.service-table strong{font-size:20px}.service-table>span{font-size:18px;font-weight:600}.service-table small{font-size:12px;color:var(--muted)}.service-table .service-status{color:#4a7655}.open-orders-board{overflow:auto;min-height:0;border-radius:10px;border:1px solid #d6ded5;background:white}.open-order-table{min-width:720px}.open-order-table th{font-size:12px;color:var(--muted);background:#eff3ec;position:sticky;top:0;z-index:1}.open-order-table td{font-size:14px;padding:14px 10px;white-space:nowrap}.open-order-table th:first-child,.open-order-table td:first-child{padding-left:18px}.open-order-table td:nth-child(6){font-weight:650;font-variant-numeric:tabular-nums}.open-order-button{min-height:44px;padding:8px 14px;border:1px solid #d1ddd0;border-radius:8px;background:#f2f6ef}.service-empty{padding:35px 15px;text-align:center;color:var(--muted)}#waiter-dialog{width:min(480px,calc(100% - 24px))}#waiter-choice{min-height:46px;padding:10px;width:100%;border:1px solid #d0dbce;border-radius:8px;background:white}#waiter-error{color:#a24d37}
@media(max-width:1150px){.topbar .brand>div:not(.logo){display:none}.topbar .nav-tabs>.nav-btn{font-size:13px;padding:8px 10px}.topbar .floor-overview{gap:8px}.topbar .front-menu-button span{display:none}}
@media(max-width:800px){.topbar{flex-wrap:wrap;gap:5px 10px;padding:6px 10px}.topbar .nav-tabs{order:0;justify-content:flex-start}.topbar .floor-overview{order:3;flex-basis:100%;justify-content:center;padding:3px 0;border-top:1px solid #edf0e8}.topbar .nav-tabs>.nav-btn{font-size:13px;padding:8px 11px}.topbar .brand{display:none}.topbar .front-menu-button{min-height:44px;padding:8px 12px}.service-view{padding:16px}.waiter-heading{align-items:start;flex-direction:column;gap:4px}}
@media(max-width:420px){.topbar .nav-tabs{gap:0;overflow-x:auto}.topbar .nav-tabs>.nav-btn{font-size:12px;padding:8px;min-height:44px}.topbar .floor-overview{font-size:11px;gap:18px}.topbar .floor-overview strong{font-size:14px}.topbar .top-right{gap:0}.topbar .front-menu-button{padding:8px}.service-view{padding:12px}.waiter-tables{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.waiter-section{padding:12px}.service-table{padding:12px;min-height:132px}.service-table strong{font-size:17px}.service-table>span{font-size:15px}}
.topbar .nav-tabs>.nav-btn.active{background:#416758;border-color:#416758;color:#fff}.open-order-table tbody tr{cursor:pointer}.open-order-table tbody tr:hover{background:#f4f7ef}.open-order-table tbody tr:focus-visible{outline:3px solid #8ba596;outline-offset:-3px}
.topbar .nav-tabs>.nav-btn{transition:none}
#open-orders-board{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;align-items:start;overflow:visible;border:0;border-radius:0;background:transparent;min-height:auto}.open-order-card{min-width:0;padding:20px;background:#fffefb;border:1px solid #d2ddce;border-radius:14px;cursor:pointer;box-shadow:0 4px 16px #243d2b04}.open-order-card:hover{border-color:#8da98a;background:#fff}.open-order-card:focus-visible{outline:3px solid #8ba596;outline-offset:3px}.open-card-heading{display:flex;justify-content:space-between;align-items:start;gap:12px}.open-card-heading h2{margin:0;font-size:20px;font-weight:650;letter-spacing:-.03em}.open-card-status{font-size:11px;background:#edf2e8;color:#58714c;border-radius:6px;padding:4px 7px;white-space:nowrap}.open-card-reference{font-size:11px;color:#819078;margin-top:5px}.open-card-people{font-size:12px;color:#62725d;display:grid;gap:3px;margin:15px 0;padding-bottom:14px;border-bottom:1px solid #e5eadf}.open-card-lines{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:13px}.open-card-line{display:flex;gap:9px;align-items:start;min-width:0}.open-card-qty{font-size:12px;font-weight:650;min-width:28px;padding:3px 4px;background:#eef3e8;border-radius:5px;text-align:center;color:#527249}.open-card-description{flex:1;min-width:0;overflow-wrap:anywhere}.open-card-description>strong{font-size:13px;font-weight:600;display:block;line-height:1.45}.open-card-line-total{font-size:11px;white-space:nowrap;color:#77836c;padding-top:3px}.open-card-modifiers,.open-card-comment{font-size:11px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:4px;color:#66815e}.open-card-comment{color:#928064}.open-card-order-note{font-size:12px;padding:10px;background:#f5f5eb;border-radius:6px;color:#7c7657;white-space:pre-wrap;overflow-wrap:anywhere;margin:16px 0 0}.open-card-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #e2e8dc;margin-top:18px;padding-top:14px}.open-card-footer>span{font-size:12px;color:#7d8875}.open-card-footer>strong{font-size:20px;font-variant-numeric:tabular-nums}.open-card-balance{font-size:11px;color:#77866b;margin-top:7px}.open-card-link{font-size:11px;color:#56764e;margin-top:12px}.open-card-empty{font-size:12px;color:#8a9582;padding:12px 0}#open-orders-board>.service-empty{grid-column:1/-1}.open-card-people>div{overflow-wrap:anywhere}@media(max-width:420px){#open-orders-board{grid-template-columns:minmax(0,1fr);gap:12px}.open-order-card{padding:16px}}
.custom-floor-stage{overflow:auto;min-height:200px;background:#f4f6f0}.custom-floor-canvas{position:relative;width:1000px;height:600px;flex:none;margin:auto;background:linear-gradient(#dce4d544 1px,transparent 1px),linear-gradient(90deg,#dce4d544 1px,transparent 1px);background-size:20px 20px}.custom-floor-canvas .custom-place{transform:none;min-width:0;min-height:0;padding:8px;gap:4px}.custom-floor-canvas .custom-place:active{transform:none}.custom-floor-canvas .custom-place b{font-size:18px}.custom-floor-canvas .custom-place .floor-amount{font-size:15px}.floor-services{display:flex;gap:8px;padding:7px 0}.floor-service-button{display:flex;align-items:center;gap:12px;padding:8px 14px;border:1px solid #d1ddcf;border-radius:10px;background:#fff;min-height:46px}.floor-service-button .floor-amount,.floor-service-button .floor-meta{font-size:12px}

.front-connection{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:8px 14px;background:#fff0d4;color:#6e4e17;font-size:13px;border-bottom:1px solid #e2c78f}.front-connection[hidden]{display:none}.front-connection button{min-height:36px;font-size:12px;padding:6px 12px}

/* SAM4S: the saved room plan is scaled in place, never a 1000px-wide scroller. */
.custom-floor-stage{display:grid;place-items:center;overflow:hidden;min-width:0}
.custom-floor-canvas{transform-origin:top left;max-width:none}
.floor-services{flex-wrap:wrap;max-width:100%;min-width:0}
.floor-service-button{min-width:0;flex:1 1 130px}
@media(max-width:1150px) and (orientation:landscape){
 .floor-screen{min-width:0;overflow:hidden}
 .floor-stage{min-width:0}
 .floor-foot{min-width:0}
 .floor-foot #floor-summary{white-space:normal;min-width:0}
}

/* Room plan v2 — simple spatial layout inspired by the actual iiko desk
   screenshot. Names, assignments, order IDs, and stored dimensions unchanged. */
.floor-stage.custom-floor-stage{
 display:flex;flex-direction:row;align-items:stretch;justify-content:space-between;
 gap:0;padding:0;overflow:hidden;background:#fafcf9;border-radius:8px;
}
.custom-floor-stage .custom-floor-canvas{
 position:relative;flex:0 0 auto;margin:auto;
 background-color:#fdfefc;
 background-image:linear-gradient(#e8eee62b 1px,transparent 1px),linear-gradient(90deg,#e8eee62b 1px,transparent 1px);
 background-size:50px 50px;
}
.custom-floor-stage .custom-floor-canvas .custom-place{
 border:2px solid #a9bcae;border-radius:4px;background:#fff;box-shadow:none;
 padding:8px;gap:4px;min-width:0;min-height:0;overflow:hidden;
}
.custom-floor-stage .custom-floor-canvas .custom-place::before{display:none}
.custom-floor-stage .custom-floor-canvas .custom-place b{font-size:clamp(20px,2.5vw,28px);line-height:1.1;font-weight:650;color:#253e32}
.custom-floor-stage .custom-floor-canvas .custom-place .floor-seats{font-size:12px;color:#7c8d7a;white-space:nowrap}
.custom-floor-stage .custom-floor-canvas .custom-place .floor-status{font-size:11px;white-space:normal;text-align:center;padding:3px 6px}
.custom-floor-stage .custom-floor-canvas .custom-place .floor-meta{font-size:11px;line-height:1.25}
.custom-floor-stage .custom-floor-canvas .custom-place[data-status=occupied]{border-color:#c88b68;background:#fff3eb}
.custom-floor-stage .custom-floor-canvas .custom-place[data-status=ready]{border-color:#749b7b;background:#eaf7eb}
.custom-floor-stage .custom-floor-canvas .custom-place:hover{border-color:#416758;box-shadow:inset 0 0 0 1px #416758}
.custom-floor-stage .floor-services{
 flex:0 0 clamp(125px,17%,184px);width:clamp(125px,17%,184px);
 align-self:stretch;display:flex;flex-direction:column;justify-content:flex-start;
 gap:11px;min-width:0;max-width:none;margin:0;padding:16px 10px;
 border-left:1px solid #dce7de;background:#f1f6f1;overflow-y:auto;
}
.custom-floor-stage .floor-services-heading{
 margin:0 0 6px;text-transform:uppercase;letter-spacing:.04em;line-height:1.35;
 font-size:12px;color:#577562;text-align:center;
}
.custom-floor-stage .floor-service-button{
 min-width:0;width:100%;min-height:111px;flex:0 0 auto;
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
 padding:12px 6px;border:2px solid #b6c9b9;border-radius:4px;
 background:white;color:#253e32;box-shadow:none;overflow-wrap:anywhere;
}
.custom-floor-stage .floor-service-button b{font-size:17px;line-height:1.2}
.custom-floor-stage .floor-service-button .floor-status{font-size:11px;text-align:center;white-space:normal}
.custom-floor-stage .floor-service-button[data-status=occupied]{background:#fff3eb;border-color:#c88b68}
.custom-floor-stage .floor-service-button[data-status=ready]{background:#eaf7eb;border-color:#749b7b}
.custom-floor-stage .floor-service-button:hover{border-color:#416758}
.custom-floor-stage .floor-service-button .floor-amount{font-size:15px;font-weight:650}
@media(max-width:680px){
 .floor-stage.custom-floor-stage{display:flex;flex-direction:column;align-items:stretch;overflow:auto;gap:10px;padding:10px}
 .custom-floor-stage .custom-floor-canvas{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
  width:100%;height:auto;margin:0;zoom:1!important;background:none;
 }
 .custom-floor-stage .custom-floor-canvas .custom-place{
  position:relative;left:auto!important;top:auto!important;
  width:100%!important;height:110px!important;transform:none;
 }
 .custom-floor-stage .floor-services{
  flex:0 0 auto;width:100%;max-width:100%;padding:9px;
  flex-direction:row;align-items:stretch;flex-wrap:wrap;overflow:visible;border-left:0;border-top:1px solid #dce7de;
 }
 .custom-floor-stage .floor-services-heading{flex-basis:100%;text-align:left}
 .custom-floor-stage .floor-service-button{flex:1 1 120px;min-height:100px}
}

/* Separate order channels, with small sequential rows rather than big room tiles. */
.front-mode-title{flex:0 0 auto;min-width:92px;text-align:center;font-size:18px;letter-spacing:.06em;color:#274b3c;white-space:nowrap}
.channel-screen{flex-direction:column;min-height:0;padding:16px 24px 20px;gap:14px;overflow:hidden}
.channel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.channel-header h1{font-size:20px;font-weight:650;margin:0}
.channel-header p{font-size:12px;color:var(--muted);margin:5px 0 0}
.channel-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.channel-new{min-height:48px;padding:8px 16px}
.channel-list{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
.channel-ticket{display:grid;grid-template-columns:54px minmax(0,1fr) minmax(140px,190px);gap:14px;align-items:center;text-align:left;width:100%;min-height:85px;padding:11px 16px;background:white;border:1px solid #d4dfd6;border-radius:8px;box-shadow:none}
.channel-ticket:hover,.channel-ticket:focus-visible{border-color:#416758;background:#f8fbf9}
.channel-number{font-size:24px;font-weight:650;color:#8ba596;font-variant-numeric:tabular-nums}
.channel-details{display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere}
.channel-details strong{font-size:16px}
.channel-details small,.channel-meta small{font-size:12px;color:#6d7d71}
.channel-address{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.channel-meta{display:flex;flex-direction:column;gap:5px;text-align:right;align-items:flex-end;font-variant-numeric:tabular-nums}
.channel-meta strong{font-size:17px}
.channel-ticket-link{font-size:12px;color:#416758}
#cancel-no-consumption-label{display:flex;gap:10px;align-items:flex-start;background:#fff3db;border:1px solid #e2c58a;border-radius:8px;padding:12px;font-size:13px;line-height:1.5}
#cancel-no-consumption-label[hidden]{display:none}
#cancel-no-consumption-label input{width:20px;height:20px;flex:none;accent-color:#416758}
@media(max-width:1199px){
 .topbar{gap:7px;padding:6px 9px}
 .topbar .brand{min-width:0;gap:0}
 .topbar .brand>div:not(.logo){display:none}
 .topbar .brand .logo{width:40px;height:40px}
 .topbar .nav-tabs{gap:2px}
 .topbar .nav-tabs .nav-btn{padding:6px 8px;min-height:42px;font-size:12px}
 .front-mode-title{font-size:15px;min-width:70px}
 .topbar .floor-overview{gap:5px}
 .topbar .floor-overview span{font-size:11px;padding:6px 5px}
 .topbar .shift-pill{display:none}
 .topbar .front-menu-button{min-width:43px}
}
@media(max-width:750px){
 .front-mode-title{order:-1;flex:1 1 100%;padding:2px 0}
 .topbar{flex-wrap:wrap}
 .topbar .nav-tabs{overflow-x:auto;order:3;flex:1 1 100%;min-height:40px}
 .topbar .floor-overview{margin-left:auto}
 .topbar .nav-tabs .nav-btn{white-space:nowrap}
 .channel-screen{padding:10px}
 .channel-header{gap:8px}
 .channel-header h1{font-size:18px}
 .channel-actions,.channel-new{flex:1 1 auto}
 .channel-ticket{grid-template-columns:34px minmax(0,1fr) minmax(108px,132px);gap:8px;padding:10px 8px;min-height:76px}
 .channel-number{font-size:17px}
 .channel-details strong{font-size:13px}
 .channel-meta strong{font-size:13px}
 .channel-meta small,.channel-details small{font-size:11px}
}

/* Empty FRONT menu: actionable explanation without silently changing source data. */
.menu-empty-diagnostic{max-width:min(650px,100%);display:flex;flex-direction:column;gap:10px;align-items:flex-start;line-height:1.5}
.menu-empty-diagnostic p{margin:0;white-space:normal}
.menu-empty-diagnostic>strong{font-size:17px}
.menu-empty-meta{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.menu-empty-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:5px}
.menu-empty-actions a,.menu-empty-actions button{min-height:46px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}


/* Compact delivery context inside POS receipt: the food order remains primary. */
.delivery-quick[hidden],.guests[hidden]{display:none!important}
.delivery-quick{display:flex;align-items:center;gap:10px;min-height:61px;width:calc(100% - 28px);margin:0 14px 9px;padding:9px 12px;border:1px solid #d9af6c;background:#fff4df;border-radius:12px;text-align:left;color:#44301e;cursor:pointer;box-shadow:0 1px 3px #5d371013}
.delivery-quick:focus-visible{outline:3px solid #d7a45f;outline-offset:2px}
.delivery-quick.complete{border-color:#c8d9c2;background:#f0f6ea;color:#334e37}
.delivery-quick-icon{font-size:21px;flex:0 0 28px;text-align:center}
.delivery-quick-copy{display:flex;flex-direction:column;min-width:0;flex:1;gap:2px}
.delivery-quick-copy strong{font-size:14px;font-weight:700;line-height:1.2}
.delivery-quick-copy small{font-size:11px;font-weight:400;color:#79634e;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.delivery-quick.complete .delivery-quick-copy small{color:#546b52}
.delivery-quick-chevron{font-size:24px;line-height:1;color:#94754d}
.delivery-details-dialog{width:min(520px,calc(100% - 18px));max-height:calc(100dvh - 24px);overflow-y:auto;border-radius:15px}
.delivery-details-dialog .dialog-inner{padding:18px}
.delivery-details-dialog .dialog-heading{margin-bottom:8px}
.delivery-details-dialog .dialog-heading strong{font-size:19px}
.delivery-details-subtitle{font-size:11px;font-weight:400;color:#6c7a6b;margin:2px 0}
.delivery-details-explain{margin:6px 0 12px;color:#6e776b;font-size:12px;line-height:1.5}
.delivery-details-dialog label{font-size:13px;font-weight:650;color:#334a3b;margin:10px 0}
.delivery-details-dialog input,.delivery-details-dialog textarea{display:block;width:100%;margin-top:5px;padding:9px 11px;background:#fffefb;border:1px solid #cdd7c6;border-radius:9px;min-height:45px;font-size:15px;line-height:1.4;color:#263c35}
.delivery-details-dialog textarea{min-height:75px;resize:vertical}
.delivery-details-dialog input:focus-visible,.delivery-details-dialog textarea:focus-visible{outline:3px solid #d7a45f}
.delivery-extra{margin:12px 0;padding:8px 11px;border-radius:9px;border:1px solid #e1e5db;background:#fafbf7}
.delivery-extra summary{font-weight:650;min-height:40px;padding:7px 0}
.delivery-details-dialog .dialog-buttons{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
.delivery-details-dialog .dialog-buttons button{flex:1 1 180px;min-height:48px}
.delivery-details-full{display:block;text-align:center;font-size:12px;color:#4b6d52;margin-top:14px;text-decoration:underline}
@media(max-height:700px){.delivery-quick{min-height:52px;margin-bottom:6px;padding:6px 9px}.delivery-details-dialog .dialog-inner{padding:12px}.delivery-details-dialog label{margin:7px 0}}
@media(max-width:800px){.delivery-quick{width:calc(100% - 20px);margin-left:10px;margin-right:10px}}


/* Cancellation is a full cashier workspace, never a scroll-trapped modal.
   Keep ticket context visible while selecting the portion and typing a reason. */
.void-work-tab[hidden]{display:none!important}
.void-screen{flex-direction:column;min-height:0;overflow:auto;background:#f0f3ec;padding:14px 18px;overscroll-behavior:contain}
.void-workspace{max-width:1380px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:13px}
.void-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;background:white;border:1px solid #dce4d9;border-radius:15px;padding:17px 20px}
.void-heading h1{font-size:clamp(22px,2.8vw,30px);margin:3px 0 5px;color:#263e30}
.void-heading p{font-size:14px;color:#607668;margin:0}
.void-eyebrow{font-size:11px;font-weight:750;letter-spacing:.07em;color:#698671}
.void-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.void-toolbar button{min-width:158px;min-height:48px;padding:9px 15px;border:1px solid #aac0ad;font-size:13px}
.void-work-grid{display:grid;grid-template-columns:minmax(230px,.75fr) minmax(350px,1.35fr);gap:14px;min-height:0}
.void-order-summary,.void-editor{min-width:0;border:1px solid #d9e2d7;background:#fff;border-radius:15px;padding:20px}
.void-order-summary h2,.void-editor h2{margin:0;font-size:19px;color:#304a36}
.void-check-status{font-size:13px;color:#62806a;margin:10px 0 15px}
.void-check-lines{display:flex;flex-direction:column;gap:7px}
.void-summary-line{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:11px 9px;border:1px solid #e1e8df;border-radius:10px;font-size:14px;background:#f9fbf7}
.void-summary-line span{overflow-wrap:anywhere}
.void-summary-line strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.void-check-hint,.void-small-note{font-size:12px;color:#61766a;line-height:1.5;margin-top:17px}
.void-form-header{display:flex;justify-content:space-between;gap:10px;align-items:center}
.void-form-header span{font-size:12px;color:#718073}
.void-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:10px 0}
.void-editor label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:#4a6655;font-weight:650;min-width:0}
.void-editor input,.void-editor select{width:100%;height:49px;min-height:49px;min-width:0;border:1px solid #c9d8ca;border-radius:9px;background:#fff;padding:8px 11px;font:inherit;color:#263b30}
.void-editor select{white-space:normal}
.void-reason-label{margin:12px 0}
.void-editor input:focus-visible,.void-editor select:focus-visible,.void-toolbar button:focus-visible{outline:3px solid #8fb999;outline-offset:2px}
.void-stage-warning{padding:12px 14px;margin:12px 0;border-radius:10px;border:1px solid #c6dec9;background:#eef8ee;color:#315d3c;font-size:13px}
.void-stage-warning.is-warning{border-color:#e5b88c;background:#fff4e8;color:#904317}
.void-form-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:10px;margin-top:13px}
.void-form-actions button{min-height:53px;font-size:15px}
.void-editor .form-error{min-height:19px;color:#a03525;margin:9px 0}
body.keyboard-visible #screen-void.active{padding-bottom:min(47dvh,380px)}
@media(max-width:900px){.void-screen{padding:10px}.void-work-grid{grid-template-columns:minmax(210px,.8fr) minmax(320px,1.4fr);gap:10px}.void-heading{padding:12px}.void-order-summary,.void-editor{padding:14px}.void-fields{gap:8px}}
@media(max-width:740px){.void-work-grid{grid-template-columns:1fr}.void-order-summary{order:1}.void-editor{order:0}.void-fields{grid-template-columns:1fr 1fr}.void-toolbar{width:100%}.void-toolbar button{flex:1}.void-heading{flex-wrap:wrap}.void-order-summary .void-check-lines{max-height:160px;overflow-y:auto}}
@media(max-width:430px){.void-fields{grid-template-columns:1fr}.void-form-actions{grid-template-columns:1fr}.void-screen{padding:7px}.void-heading,.void-editor,.void-order-summary{padding:12px}}


/* Syrve draft names are reference-only: never use POS dish/button styling. */
.product-grid.has-imported-preview{display:block;overflow-y:auto;grid-auto-rows:auto;padding:2px 2px 14px}
.product-grid.has-imported-preview .menu-empty-diagnostic{max-width:100%;width:100%;padding:12px 14px;margin-bottom:12px;background:#fffefb;border:1px solid var(--line);border-radius:12px}
.imported-preview{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fffefb;color:var(--text)}
.imported-preview>strong{display:block;font-size:16px;margin-bottom:3px}
.imported-preview>p{font-size:13px;color:var(--muted);line-height:1.45;margin:0 0 12px}
.imported-preview-group{border-top:1px solid var(--line);padding:2px 0}
.imported-preview-group summary{list-style:revert;cursor:pointer;min-height:46px;display:list-item;padding:11px 9px;font-size:14px;font-weight:650;touch-action:manipulation}
.imported-preview-group summary:focus-visible{outline:3px solid var(--accent2);outline-offset:-3px}
.imported-preview-items{padding:0 8px 10px 16px}
.imported-preview-item{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:9px;align-items:center;min-height:44px;padding:7px 8px;border-bottom:1px solid #e6e9e2;overflow-wrap:anywhere}
.imported-preview-code{font-variant-numeric:tabular-nums;font-size:12px;color:var(--muted)}
.imported-preview-unpriced{font-size:11px;color:#805736}
@media(max-width:800px){.imported-preview-item{grid-template-columns:53px minmax(0,1fr)}.imported-preview-unpriced{grid-column:2}.product-grid.has-imported-preview .menu-empty-diagnostic{padding:10px}}
/* Keep the title readable when the catalogue status needs its own line. */
@media(max-width:1024px){.catalog-heading{display:grid;gap:3px;align-items:start}.catalog-heading strong{font-size:18px;line-height:1.2}.catalog-heading span{font-size:11px;line-height:1.25}}

/* Central Test imported TTKs: tactile selectable rows, never sale-price tiles. */
.imported-preview-add{width:100%;font:inherit;color:inherit;text-align:left;background:transparent;border:0;border-radius:7px;cursor:pointer}
.imported-preview-add:hover:not(:disabled),.imported-preview-add:focus-visible{background:#f3efe4;outline:2px solid #b38b4b;outline-offset:-2px}
.imported-preview-add:disabled{opacity:.58;cursor:not-allowed}
.imported-preview-add .imported-preview-unpriced{color:#805736;font-weight:650}

/* SAM4S cashier layout: receipt on the left, touch menu on the right.
   Restrict this to desktop terminals; mobile retains its original stacking. */
@media(min-width:901px){
 #screen-order.active{display:flex;flex-direction:row;gap:8px}
 #screen-order .receipt{order:0;flex:0 0 40%;min-width:0}
 #screen-order .products{order:1;flex:1 1 60%;min-width:0}
 #screen-order .product-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(100px,auto);gap:7px;align-content:start}
 #screen-order .product-grid .menu-group{min-height:100px;max-height:100px;padding:10px 12px;gap:5px;border-radius:8px;justify-content:space-between}
 #screen-order .product-grid .menu-group strong{font-size:clamp(12px,1.15vw,16px);line-height:1.2;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow-wrap:anywhere}
 #screen-order .product-grid .menu-group .group-tile-count{font-size:10px;line-height:1.1}
 #screen-order .product-grid .menu-group .group-arrow{font-size:17px;line-height:1}
 #screen-order .products-toolbar{padding-bottom:5px}
 #screen-order .catalog-toolbar{min-height:44px}
 #screen-order .receipt-top{padding:9px 12px 7px}
 #screen-order .receipt-lines{min-height:0}
}
@media(min-width:901px) and (max-width:1100px){
 #screen-order .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(94px,auto)}
 #screen-order .product-grid .menu-group{min-height:94px;max-height:94px}
}

/* Training dishes use the same touch tiles as the rest of the folder menu. */
.dish.imported-preview-item{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;min-height:140px;border:1px solid var(--line);overflow:hidden}
.dish.imported-preview-item .dish-price{font-size:11px;line-height:1.3}


/* Mobile cashier: reclaim top chrome. A short landscape phone such as
   956x440 must not fall into desktop SAM4S split view. */
.mobile-order-bar{display:none}
@media (max-width:900px), (max-height:600px) and (max-width:1100px){
 .app{height:100dvh;min-height:0;overflow:hidden}
 .topbar{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;padding:2px max(5px,env(safe-area-inset-right)) 2px max(5px,env(safe-area-inset-left))!important;min-height:42px!important;max-height:44px;flex:0 0 auto}
 .topbar .brand,.topbar .floor-overview,.front-mode-title{display:none!important}
 .topbar .nav-tabs{display:flex;order:0!important;flex:1 1 0!important;flex-basis:0!important;min-width:0;min-height:0!important;max-width:none;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:2px!important;overflow-x:auto!important;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 .topbar .nav-tabs::-webkit-scrollbar{display:none}
 .topbar .nav-tabs>.nav-btn{flex:0 0 auto;min-height:38px!important;height:38px;padding:5px 10px!important;font-size:12px!important;line-height:1.2;white-space:nowrap;border-radius:8px}
 .topbar .top-right{flex:0 0 auto;margin-left:0}
 .topbar .front-menu-button{min-height:38px!important;height:38px;min-width:40px;padding:5px 8px!important;border-radius:8px}
 .topbar .front-menu-button span,.topbar .shift-pill{display:none}
 #screen-order.active{display:flex;flex-direction:column!important;gap:4px!important;padding:4px 6px max(3px,env(safe-area-inset-bottom))!important;overflow:hidden!important;min-height:0}
 #screen-order .mobile-order-bar{display:grid;grid-template-columns:44px minmax(68px,.8fr) minmax(122px,1.45fr) minmax(0,.9fr);gap:4px;align-items:center;flex:0 0 42px;min-width:0}
 #screen-order .mobile-order-back,#screen-order .mobile-order-tab{height:42px;min-height:42px;min-width:0;border:1px solid #cbd9c8;border-radius:9px;background:#fff;padding:6px 7px;font-size:13px;font-weight:650}
 #screen-order .mobile-order-back{font-size:21px}
 #screen-order .mobile-order-tab.active{background:#416758;border-color:#416758;color:#fff}
 #screen-order .mobile-order-context{font-size:12px;font-weight:650;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:right;color:#42594a}
 #screen-order .products,#screen-order .receipt{order:initial;flex:1 1 0!important;flex-basis:auto!important;width:100%;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important;border-radius:10px}
 #screen-order .products{padding:5px!important}
 #screen-order .receipt{display:none;flex-direction:column;padding:0!important}
 #screen-order.mobile-panel-receipt .products{display:none!important}
 #screen-order.mobile-panel-receipt .receipt{display:flex!important}
 #screen-order .products-toolbar{display:none!important}
 #screen-order .catalog-toolbar{min-height:36px;max-height:40px;margin:0 0 4px!important;gap:6px;flex:0 0 auto}
 #screen-order .catalog-heading{gap:1px;min-width:0}
 #screen-order .catalog-heading strong{font-size:15px;line-height:1.15}
 #screen-order .catalog-heading span{font-size:10px;line-height:1.1}
 #screen-order #toggle-search{width:38px;height:38px;min-width:38px;min-height:38px}
 #screen-order #all-categories{min-height:36px;padding:4px 9px;font-size:12px}
 #screen-order .menu-filters{margin:0 0 3px;min-height:0}
 #screen-order .search input{min-height:39px;font-size:16px}
 #screen-order .product-grid{flex:1 1 0;min-height:0!important;overflow-y:auto;overscroll-behavior-y:contain;grid-template-columns:repeat(auto-fill,minmax(128px,1fr))!important;grid-auto-rows:132px!important;gap:6px!important;padding:1px 1px max(4px,env(safe-area-inset-bottom))}
 #screen-order .product-grid .menu-group{min-height:0;max-height:none;height:100%;padding:10px;border-radius:9px;gap:3px}
 #screen-order .product-grid .menu-group strong{font-size:14px;line-height:1.2}
 #screen-order .product-grid .group-symbol{font-size:20px}
 #screen-order .product-grid .group-arrow{right:7px;bottom:5px}
 #screen-order .dish{border-radius:9px}
 #screen-order .dish-photo{min-height:20px}
 #screen-order .dish-meta{padding:5px 7px;gap:3px}
 #screen-order .dish-meta strong{font-size:12px;line-height:1.2;min-height:28px;max-height:30px}
 #screen-order .dish-price{font-size:13px}
 #screen-order .dish-plus{width:28px;height:28px}
 #screen-order .receipt-top{padding:7px 9px 4px}
 #screen-order .receipt-top strong{font-size:18px}
 #screen-order .receipt-lines{flex:1 1 0!important;max-height:none!important;min-height:0!important;overflow-y:auto;padding:3px 9px}
 #screen-order .receipt-item{padding:6px 0}
 #screen-order .receipt-bottom{flex:0 0 auto;padding:4px 9px max(7px,env(safe-area-inset-bottom))}
 #screen-order .loyalty{min-height:36px;padding:5px 8px}
 #screen-order .bill-grand{padding:5px 0}
 #screen-order .bill-grand strong{font-size:23px}
 #screen-order .receipt-actions .action{min-height:46px}
 #screen-order .receipt-empty{min-height:70px}
 .floor-screen{padding:5px 7px 6px;gap:5px}
 .floor-heading{min-height:0;padding:0}
 .floor-heading p{margin:0;font-size:11px}
 .floor-foot{display:none}
 .channel-screen,.service-view{padding:6px!important}
 .channel-header{margin-bottom:6px}
}
@media (max-width:490px){
 #screen-order .mobile-order-bar{grid-template-columns:40px minmax(58px,.75fr) minmax(128px,1.4fr) minmax(0,.55fr);gap:3px}
 #screen-order .mobile-order-tab{font-size:12px;padding:4px}
 #screen-order .mobile-order-context{font-size:11px}
 #screen-order .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:128px!important}
 #screen-order .product-grid .menu-group{padding:9px}
}
@media (max-height:480px) and (max-width:1100px) and (orientation:landscape){
 #screen-order .mobile-order-bar{flex-basis:39px}
 #screen-order .mobile-order-back,#screen-order .mobile-order-tab{height:39px;min-height:39px}
 #screen-order .catalog-toolbar{min-height:33px;max-height:36px}
 #screen-order .product-grid{grid-auto-rows:118px!important}
 #screen-order .receipt-top{padding:4px 8px}
 #screen-order .receipt-bottom{padding-top:2px}
 #screen-order .guests{min-height:34px;margin-bottom:4px}
}
