/* SambaPOS 5.7.32 reference-aligned desktop workspace */
[hidden]{display:none!important}*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden}body{font:16px 'Segoe UI',Arial,sans-serif;background:#f4f4f4;color:#111}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #d4d4d4;background:#fff;color:#111;border-radius:0}button:disabled{opacity:.36;cursor:default}button:hover:not(:disabled){filter:brightness(.96)}#app{height:100dvh;display:flex;flex-direction:column}#app>header{height:48px;flex:none;background:#f4f4f4;border-bottom:1px solid #ddd;display:flex;align-items:center;gap:10px;padding:3px 10px}header strong{font-size:20px;white-space:nowrap}header strong span{color:#f69d00}header nav{display:flex;gap:3px;flex:1;min-width:0;overflow:auto;scrollbar-width:none}header nav button{background:#fff;padding:7px 12px;font-size:14px;white-space:nowrap;min-height:34px}header nav button.selected{background:#ffa500}header small{font-size:12px;white-space:nowrap}#logout{padding:7px 10px}#notice{display:none;background:#fff0c5;color:#7b3200;padding:5px 12px;flex:none}#notice.visible{display:block}#screen{flex:1;min-height:0;overflow:hidden;padding:0}h2{font-size:20px}.login{height:100dvh;display:grid;place-items:center;background:#eef1f4}.login form{width:min(420px,92vw);background:#fff;border-radius:12px;display:grid;gap:12px;padding:32px;box-shadow:0 12px 45px #0002}.login h1{font-size:25px;margin:0}.login p{color:#677;margin:0}.login input{padding:13px;border:1px solid #bbc7d3;border-radius:6px}.login button{padding:13px;background:#08764d;color:#fff;border:0;border-radius:6px}.samba-hub{height:100%;display:flex;flex-direction:column;padding:8px 12px 12px;gap:8px}.hub-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;height:56px;flex:none}.hub-tabs button{font-size:27px;background:#fff}.hub-tabs button.on{background:#dcdcdc}.hub-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));gap:8px}.hub-table{font-size:clamp(20px,3.4vw,48px);min-width:0}.hub-table.occupied{background:#ffa500}.hub-foot{height:36px;display:flex;align-items:center;gap:20px;font-size:14px}.hub-foot button{margin-left:auto;padding:7px 15px}.samba-pos{height:100%;display:grid;grid-template-columns:9.5% 34.5% 13.5% minmax(0,1fr);grid-template-rows:minmax(0,1fr) 34px;gap:7px;padding:8px 12px 7px}.samba-side{display:flex;flex-direction:column;gap:8px;min-height:0}.samba-side button{height:64px;flex:none;font-size:18px;line-height:1.25}.samba-ticket{display:flex;flex-direction:column;min-height:0;min-width:0}.ticket-head{height:60px;flex:none;background:#ddd;padding:9px 8px;font-size:15px;line-height:1.4}.ticket-items{flex:1;min-height:0;background:#fff;overflow:auto}.samba-line{display:flex;gap:9px;padding:6px 8px;min-height:56px;font-size:18px}.samba-line:nth-child(even){background:#f6f6f6}.line-qty{width:18px;flex:none}.line-name{flex:1}.line-name small{display:block;font-size:9px;margin-top:4px}.line-price{white-space:nowrap}.ticket-time{background:#ddd;padding:5px 6px;font-size:12px;min-height:25px}.ticket-balance{display:flex;justify-content:space-between;color:red;font-weight:bold;font-size:21px;padding:7px 6px;flex:none}.ticket-bottom{height:65px;display:grid;grid-template-columns:1fr 1fr;gap:8px;flex:none}.ticket-bottom button{font-size:26px}.ticket-bottom .close-button{background:#bf5353;color:#fff;border:0}.samba-categories{min-height:0;display:flex;flex-direction:column;gap:8px;overflow:auto;scrollbar-width:thin}.samba-categories button{flex:1;min-height:56px;background:#ffa500;border:0;font-size:clamp(16px,1.8vw,26px);padding:3px}.samba-categories button.active{box-shadow:inset 0 0 0 2px #b66b00}.samba-right{display:flex;flex-direction:column;min-height:0;min-width:0;gap:8px}.samba-products{flex:1;min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(76px,calc((100% - 16px)/3));align-content:start;gap:8px}.samba-products button{background:green;color:#fff;border:0;font-size:clamp(16px,1.8vw,25px);padding:4px;overflow-wrap:anywhere}.samba-keypad{height:250px;flex:none;display:flex;flex-direction:column;gap:7px}.key-input{display:grid;grid-template-columns:1fr 42px 42px;gap:6px;height:45px}.key-input input{min-width:0;border:1px solid #ccc;background:#fff;font-size:23px;text-align:right;padding:0 10px}.key-input button{font-size:26px}.key-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);gap:7px;flex:1;min-height:0}.key-grid button{font-size:25px}.samba-footer{grid-column:1/-1;display:flex;align-items:center;gap:7px;font-size:12px;overflow:hidden}.samba-footer span{background:#fff;border:1px solid #ddd;padding:4px}.samba-footer strong{color:red;font-size:14px;white-space:nowrap;margin-right:auto;overflow:hidden;text-overflow:ellipsis}.samba-footer button{font-size:12px;padding:5px 8px;white-space:nowrap}.page-title{display:flex;justify-content:space-between;padding:12px;gap:8px}.page-title h2{margin:0}.page-title button,.toolbar button{padding:9px}.panel{background:white;border:1px solid #ddd;padding:12px;margin:8px;overflow:auto;max-height:calc(100% - 75px)}.table-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:10px;overflow:auto;max-height:85%}.tile{min-height:90px;font-size:24px}.tile small{display:block;font-size:12px}.tile.occupied{background:#ffa500}.toolbar{display:flex;gap:8px}.toolbar input,.toolbar select{padding:7px}.ledger{border-collapse:collapse;width:100%}.ledger th,.ledger td{padding:8px;border-bottom:1px solid #ddd;text-align:left}.ledger tr{cursor:pointer}.stack{display:grid;gap:8px}.muted{color:#777}.primary{background:green;color:#fff}.danger{background:#b54b4b;color:#fff}.pill{padding:4px;background:#ddd}@media(max-width:900px){.samba-pos{grid-template-columns:10% 33% 16% minmax(0,1fr);gap:4px;padding:4px}.samba-side button{font-size:12px}.samba-products{grid-template-columns:repeat(2,minmax(0,1fr))}.samba-keypad{height:210px}.samba-footer strong{font-size:10px}.hub-grid{gap:4px}.hub-tabs button{font-size:20px}}@media(max-height:650px){.samba-side button{height:49px}.samba-keypad{height:190px}.ticket-bottom{height:50px}.ticket-head{height:48px}.samba-categories button{min-height:44px}}

/* v1.3: explicit app visibility and consistent viewport sizing */
#login[hidden],#app[hidden],[hidden]{display:none!important}
html,body{height:100%;overflow:hidden!important}
#app:not([hidden]){height:100dvh;min-height:0}
#screen{min-height:0;overflow:hidden}
.samba-hub,.samba-pos{min-height:0}

/* v1.4: navigation is shown only on the selection hub, never while ordering */
body.ordering-mode #app>header{display:none!important}
body.ordering-mode #screen{height:100%;flex:1;min-height:0}
/* Hub top navigation is the only department selector. Utility actions live at the bottom. */
.samba-hub .hub-tabs{height:56px}
.samba-hub .hub-foot{margin-top:auto}
#app>header nav button[data-page="tickets"],#app>header nav button[data-page="workperiod"],#app>header nav button[data-page="kitchen"]{display:none}
.samba-hub .hub-foot .utility-link{font-size:12px;padding:5px 8px}
.samba-pos{grid-template-rows:minmax(0,1fr) 34px}
.samba-footer button{font-size:12px}
/* v1.5: ticket editing, four action buttons, delivery-service-style board */
.samba-line{width:100%;border:0;border-bottom:1px solid #eee;text-align:left;background:#fff;cursor:pointer}
.samba-line.selected{background:#c6dff5!important;outline:2px solid #3579af;outline-offset:-2px}
.samba-side button{height:clamp(44px,9vh,64px);font-size:clamp(12px,1.25vw,18px)}
.ticket-bottom{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.ticket-bottom button{font-size:clamp(14px,1.8vw,23px)}
.hub-table small{display:block;font-size:12px}
.service-screen{height:100%;display:flex;flex-direction:column;background:#fff;padding:6px;gap:6px}
.service-top{display:flex;gap:5px;height:45px;flex:none}.service-top button{flex:1;font-size:clamp(13px,1.6vw,21px)}
.service-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:6px}
.service-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;min-height:0}
.service-column{min-width:0;display:flex;flex-direction:column;min-height:0}
.service-col-title{height:36px;display:grid;place-items:center;color:#fff;font-size:clamp(14px,1.5vw,22px);flex:none}
.service-0{background:#e8770b}.service-1{background:#5596d5}.service-2{background:#79a84b}
.service-cards{overflow:auto;flex:1;padding:3px;display:flex;flex-direction:column;gap:5px}
.service-ticket{display:flex;flex-direction:column;gap:6px;background:#265383;color:white;text-align:left;padding:10px;border:0;min-height:90px}
.service-ticket small{font-size:12px}.service-ticket b{text-align:right;font-size:24px}.service-ticket.selected{outline:4px solid #ff9e00;outline-offset:-4px}
.service-customers{border-left:1px solid #ccc;display:flex;flex-direction:column;gap:7px;padding:4px;min-height:0}
.service-customers h3{margin:0;background:#b84b50;color:#fff;padding:8px;text-align:center;font-weight:normal}
.service-customers input{padding:8px;min-width:0}.service-customers button{padding:10px}
#serviceCustomerList{flex:1;min-height:0;overflow:auto;border:1px solid #ddd}.customer-result{padding:6px;border-bottom:1px solid #eee}.customer-result small{display:block}
.service-customers p{margin:0;font-size:13px;text-align:center}
.service-footer{height:35px;display:flex;align-items:center;gap:8px;background:#eee;padding:3px;flex:none}.service-footer span{margin-right:auto}.service-footer button{padding:5px}
@media(max-width:850px){.service-layout{grid-template-columns:minmax(0,1fr) 175px}.service-col-title{font-size:12px}.service-ticket{padding:5px}.service-customers button{font-size:12px}}

/* v1.5.1: two-button cart, dedicated settlement and customer search */
.ticket-bottom{grid-template-columns:1fr 1fr;gap:8px}
.customer-screen{height:100%;display:flex;flex-direction:column;padding:12px;gap:8px;background:#f4f4f4}
.customer-toolbar{height:60px;display:flex;align-items:center;gap:8px}.customer-toolbar strong{flex:1;text-align:center;font-size:28px}.customer-toolbar button{padding:14px}
.customer-search-row{display:flex;gap:8px;align-items:center;font-size:25px}.customer-search-row input{flex:1;min-width:0;padding:10px;font-size:25px}.customer-search-row button{padding:10px 20px}
.customer-table{flex:1;min-height:0;background:#fff;border:1px solid #ccc;overflow:auto}.customer-table-head,.customer-row{display:grid;grid-template-columns:35% 30% 35%;align-items:center;text-align:left;width:100%;gap:0}.customer-table-head{background:#e4e4e4;font-size:18px}.customer-table-head span,.customer-row span{padding:8px;border-right:1px solid #ddd}.customer-row{border:0;border-bottom:1px solid #ddd;font-size:18px}.customer-row.selected{background:#aaa;color:white}.customer-bottom{height:70px;display:flex;justify-content:flex-end;gap:8px}.customer-bottom button{min-width:170px;font-size:19px}
.settle-screen{height:100%;display:grid;grid-template-columns:35% minmax(0,1fr) 15%;gap:8px;padding:10px;background:#f4f4f4}
.settle-items{display:flex;flex-direction:column;min-height:0}.settle-ticket-head{padding:9px;font-size:18px}.settle-lines{background:white;border:1px solid #ddd;flex:1;min-height:0;overflow:auto}.settle-lines>div{display:flex;justify-content:space-between;padding:12px 8px;border-bottom:1px solid #ddd;font-size:19px}.settle-balance{padding:14px 5px;color:red;font-size:23px;display:flex;justify-content:space-between}
.settle-main{display:flex;flex-direction:column;min-height:0;gap:8px}.settle-summary{height:160px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;align-items:center;gap:4px}.settle-summary span{font-size:clamp(32px,4vw,58px);color:#aaa}.settle-summary strong{font-size:clamp(28px,4vw,54px);text-align:right;font-weight:400;border-bottom:1px solid #bbb}
.settle-control{display:grid;grid-template-columns:18% minmax(0,1fr) 18%;gap:8px;flex:1;min-height:0}.settle-presets,.settle-amount{display:grid;grid-template-rows:repeat(6,1fr);gap:7px;min-height:0}.settle-presets button,.settle-amount button{font-size:22px}.settle-numbers{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);gap:7px;min-height:0}.settle-numbers button{background:#3498d5;color:white;border:0;font-size:35px}.settle-amount input{grid-row:span 3;width:100%;min-width:0;font-size:19px;text-align:center}.settle-amount button:last-child{grid-row:span 2}.settle-bottom{height:55px;display:flex;gap:8px}.settle-bottom button{flex:1;font-size:23px}.settle-bottom button:last-child{background:#bc5555;color:#fff}
.settle-methods{display:grid;grid-template-rows:repeat(4,1fr);gap:8px;min-height:0}.settle-methods button{font-size:clamp(18px,2vw,28px)}.settle-methods button:last-child{background:#bc5555;color:white}
@media(max-width:900px){.settle-screen{grid-template-columns:30% minmax(0,1fr) 17%;gap:4px}.settle-control{gap:3px}.settle-summary{height:120px}.settle-numbers button{font-size:24px}}

/* v1.5.2: one header per numbered order batch */
.order-batch-head{background:#e8e8e8;color:#777;font-size:12px;padding:3px 8px;border-top:1px solid #d0d0d0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ticket-note-strip{background:#fff8d6;font-size:12px;padding:4px 7px;max-height:35px;overflow:auto;border-top:1px solid #e5d8a0;flex:none}

/* Arban KDS v1.5.3: full-screen order cards + fixed dish count */
.kds{height:calc(100vh - 180px);min-height:450px;display:flex;flex-direction:column;background:#e9ecef;color:#17212b;font-family:Arial,sans-serif}
.kds-top{display:flex;align-items:center;gap:16px;padding:10px 14px;background:#202a32;color:#fff}.kds-top strong{font-size:18px}.kds-top span{margin-left:auto}.kds-top button{padding:8px 14px}
.kds-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;flex:1;min-height:0}.kds-orders{overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));align-content:start;gap:10px;padding:12px}.kds-card{background:white;min-height:205px;box-shadow:0 1px 3px #0002;display:flex;flex-direction:column}.kds-card header{display:flex;justify-content:space-between;gap:8px;padding:9px;color:white}.kds-card header div{display:flex;flex-direction:column;gap:4px}.kds-card header span{font-size:12px}.kds-card header.new{background:#d84c43}.kds-card header.cooking{background:#e49b23}.kds-card header.ready{background:#279653}.kds-card-items{padding:9px;flex:1}.kds-item{border-bottom:1px solid #ddd;padding:7px 0;display:flex;flex-direction:column;gap:3px}.kds-item small{color:#65717b}.kds-card footer{font-size:11px;color:#53606b;padding:7px 9px;background:#f4f5f6}.kds-dishes{background:#fff;border-left:2px solid #bcc5ce;overflow:auto;padding:12px}.kds-dishes h2{margin:0 0 5px;font-size:19px}.kds-dishes>p{font-size:12px;color:#66717a}.kds-dish{border-bottom:1px solid #ddd;padding:12px 0}.kds-dish-title{display:flex;justify-content:space-between;gap:8px}.kds-dish-title strong{background:#273b4a;color:white;padding:3px 9px;border-radius:3px}.kds-dish small{display:block;color:#68747e;margin:6px 0}.kds-dish-actions{display:grid;grid-template-columns:55px 1fr 1fr;gap:4px}.kds-dish-actions input{min-width:0;width:100%;text-align:center}.kds-dish-actions button{background:#287ba4;color:white;border:0;padding:9px 3px}.kds-dish-actions button:last-child{background:#279653}.kds-all{display:flex;gap:5px;margin-top:5px}.kds-all button{flex:1;padding:5px 2px;font-size:11px}.kds button:disabled{opacity:.35;cursor:not-allowed}.kds-foot{padding:8px 14px;background:#202a32;color:#fff;font-size:12px}.kds-empty{padding:20px}
@media(max-width:800px){.kds-layout{grid-template-columns:minmax(0,1fr) 220px}.kds-orders{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}

/* v1.5.3 KDS refinements: SambaPOS-style white surfaces, orange/green actions */
.kds{background:#f2f2f2;color:#161616}.kds-top,.kds-foot{background:#e5e5e5;color:#222;border-bottom:1px solid #ccc}.kds-top label{font-size:13px;white-space:nowrap}.kds-top input{width:55px;padding:6px}.kds-top button{background:#fff;border:1px solid #bbb;color:#222}.kds-top #kds-alarm{background:#ffa500;border-color:#ffa500}
.kds-layout{grid-template-columns:minmax(0,1fr) 285px}.kds-card{border:1px solid #d5d5d5;box-shadow:none;min-height:190px}.kds-card header{min-height:80px}.kds-card header.kds-type-dinein{background:#df8b10}.kds-card header.kds-type-takeaway{background:#287bb2}.kds-card header.kds-type-delivery{background:#7548a5}.kds-order-type{font-weight:900!important;font-size:18px!important;letter-spacing:.5px}.kds-card.kds-late{outline:3px solid #c82727;outline-offset:-2px}.kds-delay-flag{background:#b31d1d;color:white;padding:3px;font-size:12px}.kds-item{flex-direction:row;align-items:center;justify-content:space-between;gap:6px}.kds-item-main{display:flex;flex-direction:column;gap:3px;min-width:0}.kds-item-action{background:#0b8d12;color:#fff;border:0;padding:8px 10px;min-width:54px}.kds-dishes{background:#fff;border-left:3px solid #d5d5d5}.kds-dish{padding:8px 0}.kds-dish-row{display:flex;align-items:center;gap:6px}.kds-dish-label{min-width:0;flex:1}.kds-dish-label b{font-size:13px}.kds-dish-label small{font-size:10px;margin:3px 0}.kds-dish-count{background:#e8e8e8;padding:5px 7px;min-width:28px;text-align:center}.kds-dish-action{background:#0b8d12;color:#fff;border:0;min-width:60px;padding:9px 5px;font-weight:bold}.kds-dish-action[data-stage="ready"],.kds-item-action[data-stage="ready"]{background:#287bb2}

/* v1.5.3.1: delay shown as label only; no red border */
.kds-card.kds-late{outline:none!important;border-color:#d5d5d5!important}

/* KDS v1.5.3.2 ticket grouping and fixed footer */
.kds{height:100%;min-height:0;display:flex;flex-direction:column}.kds-top{flex:none}.kds-layout{flex:1;min-height:0;overflow:hidden}.kds-foot{flex:none;margin-top:auto;border-top:1px solid #ccc}.kds-orders,.kds-dishes{min-height:0;overflow-y:auto}.kds-batch+.kds-batch{border-top:2px solid #ddd;margin-top:7px}.kds-batch-head{background:#e3e3e3;font-weight:700;font-size:12px;padding:7px 5px}.kds-delay-flag{animation:kds-blink .8s step-end infinite}.kds-new-label{background:#075b18;color:white;font-size:12px;padding:4px;animation:kds-blink .5s step-end infinite}.kds-new-flash header{animation:kds-new-pulse .6s ease-in-out infinite alternate}@keyframes kds-blink{50%{visibility:hidden}}@keyframes kds-new-pulse{to{filter:brightness(1.4)}}

/* v1.5.3.3: compact, single-line KDS rows at 1366x768. */
.kds-orders{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:7px;padding:7px;align-content:start}
.kds-card{min-height:0;min-width:0}
.kds-card header{min-height:59px;padding:6px 8px;gap:4px}
.kds-card header div{gap:2px}
.kds-order-type{font-size:16px!important}
.kds-card header b{font-size:13px}
.kds-card header span{font-size:11px}
.kds-card-items{padding:4px 7px;flex:0 1 auto}
.kds-batch+.kds-batch{margin-top:3px;border-top:1px solid #d4d4d4}
.kds-batch-head{padding:4px 5px;font-size:11px}
.kds-item{display:grid;grid-template-columns:minmax(0,1fr) auto 48px;align-items:center;gap:5px;padding:3px 0;min-height:31px}
.kds-item-name{min-width:0;font-size:12px;line-height:1.2;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kds-item-status{font-size:9px;white-space:nowrap;color:#65717b;line-height:1.1}
.kds-item-action{min-width:48px;padding:6px 3px;font-size:11px;line-height:1.2;font-weight:600;min-height:27px}
.kds-card footer{padding:4px 7px;font-size:10px;margin-top:auto}
.kds-layout{grid-template-columns:minmax(0,1fr) 270px}
.kds-dishes{padding:7px 9px}
.kds-dishes h2{font-size:16px;margin:0 0 2px}
.kds-dishes>p{font-size:10px;margin:2px 0 6px}
.kds-dish{padding:4px 0}
.kds-dish-row{gap:4px}
.kds-dish-label b{font-size:11px;line-height:1.15;display:block}
.kds-dish-label small{font-size:9px;margin:2px 0;line-height:1.1}
.kds-dish-count{font-size:11px;padding:4px;min-width:22px}
.kds-dish-action{font-size:11px;min-width:48px;padding:6px 3px;min-height:28px}
.kds-top{padding:7px 10px;gap:10px}
.kds-top strong{font-size:16px}
.kds-top button{padding:6px 10px;font-size:13px}
.kds-foot{padding:5px 10px;font-size:11px}
@media(max-width:1050px){.kds-layout{grid-template-columns:minmax(0,1fr) 235px}.kds-orders{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}}
@media(max-width:700px){.kds-layout{grid-template-columns:minmax(0,1fr) 195px}.kds-orders{grid-template-columns:minmax(0,1fr)}.kds-item{grid-template-columns:minmax(0,1fr) auto 44px}.kds-item-name{font-size:11px}}

/* v1.5.3.4: six-column vertical ticket packing. */
.kds-layout{grid-template-columns:minmax(0,1fr) 265px}
.kds-orders{display:flex!important;align-items:stretch;gap:5px;padding:6px;overflow-y:auto;overflow-x:hidden}
.kds-stack{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:5px;align-items:stretch}
.kds-card{width:100%;min-width:0;min-height:0;flex:none;overflow:hidden}
.kds-card header{padding:5px;min-height:56px;gap:2px}
.kds-card header div{min-width:0;gap:2px}
.kds-order-type{font-size:14px!important;letter-spacing:0}
.kds-card header b{font-size:11px}
.kds-card header span{font-size:10px}
.kds-card header div:last-child{flex:none;text-align:right}
.kds-delay-flag,.kds-new-label{font-size:9px;padding:2px}
.kds-card-items{padding:3px 4px}
.kds-batch-head{padding:3px 2px;font-size:10px}
.kds-item{grid-template-columns:minmax(0,1fr) 25px 36px;gap:2px;min-height:29px;padding:3px 0}
.kds-item-name{font-size:10px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kds-item-status{font-size:8px;overflow:hidden}
.kds-item-action{min-width:0;min-height:25px;padding:4px 1px;font-size:10px}
.kds-card footer{padding:3px 4px;font-size:9px}
@media(max-width:1100px){.kds-layout{grid-template-columns:minmax(0,1fr) 230px}}
@media(max-width:700px){.kds-layout{grid-template-columns:minmax(0,1fr) 180px}}

/* Arban POS v1.5.4 Phase 1A: touchscreen ticket note */
.samba-products.note-active{display:block;overflow:auto;background:#f4f4f4;padding:10px}.arban-note-editor{display:flex;flex-direction:column;gap:9px;min-height:100%;}.arban-note-editor h2{font-size:23px;margin:0}.arban-note-editor textarea{width:100%;min-height:95px;flex:1;resize:none;font:20px 'Segoe UI',Arial,sans-serif;border:1px solid #aaa;padding:10px;background:#fff}.arban-note-keys{display:flex;flex-direction:column;gap:5px}.arban-note-keys>div{display:flex;gap:4px;justify-content:center}.arban-note-keys button{flex:1;min-width:0;min-height:39px;padding:3px;font-size:17px;background:#fff;color:#111;border:1px solid #bbb}.arban-note-keys [data-letter=" "]{flex:5}.arban-note-actions{display:flex;gap:7px}.arban-note-actions button{flex:1;min-height:45px;background:#fff;font-size:19px}.arban-note-actions #arbanNoteSave{background:#008000;color:white;border:0}.samba-side #removeItem{white-space:normal}
/* Phase 2B: void notices */
.kds-voided-item{background:#ffe0e0!important;border-left:4px solid #b00020!important;}
.kds-voided-item .kds-item-name{text-decoration:line-through;color:#8b1726;}
.kds-voided-item .kds-item-status{color:#b00020;font-weight:900;}
.kds-voided-card{border:3px solid #b00020!important;background:#fff2f2!important;}
.kds-voided-flag{display:block;background:#b00020;color:white;padding:3px 5px;font-size:11px;}
.kds-void-banner:not([hidden]){display:inline-block;background:#b00020;color:white;font-weight:900;padding:7px 12px;animation:kds-void-pulse .5s alternate infinite;}
@keyframes kds-void-pulse{from{opacity:1}to{opacity:.55}}

/* Phase 3 */
.gifted-line .line-name small{color:#28732b;font-weight:bold}.samba-side{overflow:auto}

.phase4-panel{height:100%;display:flex;flex-direction:column;gap:12px;padding:18px;max-width:850px;margin:auto}.phase4-list{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:8px}.phase4-list button{padding:16px;text-align:left;min-height:76px}.phase4-list small{display:block;margin-top:8px}.phase4-actions{display:flex;gap:10px;justify-content:flex-end}.phase4-actions button{padding:12px 24px}.phase4-transfer h2{margin:4px 0}.phase4-current{background:#ddd!important}.phase4-transfer .hub-table small{font-size:12px}

.p5-line{display:flex;align-items:center;gap:12px;background:white;color:#222;padding:10px;border:1px solid #bbb}.p5-line span{flex:1}.p5-line input{width:75px;padding:8px}.phase4-panel select{padding:8px;margin:8px}

/* Phase 7.1 touchscreen controls */
.p71-panel{max-width:1050px;width:100%;gap:10px;padding:16px;overflow:auto}.p71-panel h2{margin:0;background:#ddd;padding:14px}.p71-panel .phase4-list{flex:0 1 auto;min-height:80px;max-height:45vh}.p71-merge-row{display:flex;align-items:center;gap:16px;background:white;border:1px solid #bbb;padding:14px;min-height:72px;cursor:pointer}.p71-merge-row:has(input:checked){background:#dce9f7;border-color:#3579af}.p71-merge-row input{width:28px;height:28px;accent-color:green}.p71-merge-row span{flex:1}.p71-merge-row b{font-size:22px}.p71-panel>label{display:flex;align-items:center;justify-content:space-between;background:white;padding:8px 12px;border:1px solid #ccc}.p71-panel select{min-width:180px;max-width:65%;min-height:48px;margin:0}.p71-panel>p{margin:0;background:white;padding:14px;font-size:22px;font-weight:bold}.p71-panel .phase4-actions{margin-top:auto}.p71-panel .phase4-actions button{min-height:56px;flex:1;font-size:20px}.p71-panel .p5-line button{min-width:48px;min-height:48px;font-size:26px}.p71-panel .p5-line input{text-align:center}.p71-prep{font-weight:bold;color:#28732b}.p71-ticket-status{overflow-wrap:anywhere}.samba-line:disabled{opacity:1;cursor:default}
/* Phase 7.2 partial kitchen portions */
.kds-item .kds-portion-actions{display:flex;gap:3px;width:100%;grid-column:1/-1;flex-wrap:wrap}.kds-portion-actions .kds-item-action{flex:1;min-height:32px;white-space:normal}.kds-portion-actions [data-stage="ready"]{background:#008000;color:white}.kds-item:has(.kds-portion-actions){display:flex;flex-direction:column;align-items:stretch}.kds-item .kds-item-status{white-space:normal}

/* Phase 7.2.1 inline KDS controls */
.kds-item,.kds-item:has(.kds-portion-actions){display:flex;flex-direction:row;align-items:center;gap:3px;justify-content:space-between;min-height:29px}.kds-inline-label{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.kds-inline-label .kds-item-name{white-space:normal;overflow-wrap:anywhere}.kds-inline-label .kds-item-status{white-space:normal;overflow:visible;font-size:8px}.kds-inline-actions{display:flex;flex:none;align-items:center;gap:2px}.kds-item .kds-portion-actions{display:flex;flex-wrap:nowrap;width:auto;gap:1px}.kds-portion-actions .kds-item-action{flex:none;min-height:27px;min-width:0;padding:3px 2px;font-size:9px;white-space:nowrap}.kds-inline-actions:empty{display:none}
