.hp-shell{display:grid;gap:16px}.hp-card{padding:20px}.hp-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.hp-toolbar h2{margin-right:auto}.hp-toolbar [aria-pressed=true]{outline:2px solid var(--accent,#7c8cff)}.hp-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,1fr);gap:16px}.hp-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:16px 0;align-items:end}.hp-form label{display:grid;gap:6px;font-size:13px}.hp-form input,.hp-form select{min-width:0;width:100%;padding:10px;border:1px solid var(--border,#45455b);border-radius:8px;background:var(--bg,#171827);color:inherit}.hp-shell summary{cursor:pointer;padding:12px 0;font-weight:600}.hp-floor{height:420px;position:relative;margin-top:16px;background:linear-gradient(90deg,#8881 1px,transparent 1px),linear-gradient(#8881 1px,transparent 1px);background-size:20px 20px;border:1px solid #8884;border-radius:12px}.hp-table{position:absolute;border:2px solid #8893aa;background:#263047;color:#fff;overflow:hidden;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:4px;cursor:pointer;min-height:32px}.hp-table.occupied{background:#594897;border-color:#ad98ed}.hp-table.circle{border-radius:50%}.hp-table.rounded{border-radius:16px}.hp-table small{font-size:10px}.hp-lines details,.hp-tickets details{border-bottom:1px solid #8884}.hp-tickets{max-height:500px;overflow:auto}.hp-shell [aria-busy=true]{opacity:.7}@media(max-width:760px){.hp-grid{grid-template-columns:1fr}.hp-card{padding:14px}.hp-floor{height:350px}.hp-form{grid-template-columns:1fr 1fr}.hp-toolbar .action-btn{min-height:44px}.hp-grid .pos-product-grid{max-height:240px;overflow:auto}}

.hp-table[data-floor-edit]{touch-action:none;cursor:move;user-select:none}.hp-resize{position:absolute;right:0;bottom:0;width:32px;height:32px;display:grid;place-items:center;cursor:nwse-resize;background:#fff3;border-radius:8px}.hp-table:focus-visible{outline:3px solid #f5cc6b;outline-offset:3px}

/* Touch-first single-screen hospitality terminal */
.hp-mode-switch{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.hp-mode-switch .status-pill{margin-left:auto}.hp-mode-switch [aria-pressed=true],.hp-floor-tabs [aria-pressed=true],.hp-category-grid [aria-pressed=true]{background:linear-gradient(120deg,#627bf6,#9659dc);color:white;border-color:transparent}.hp-terminal{height:calc(100dvh - 160px);min-height:500px;display:flex;flex-direction:column;gap:10px;overflow:hidden}.hp-terminal-top{flex:none}.hp-terminal-top .hp-toolbar{justify-content:space-between}.hp-floor-tabs{display:flex;gap:8px;overflow:auto;padding:3px}.hp-terminal-body{flex:1;min-height:0;overflow:auto}.hp-terminal-body>.hp-card{margin-bottom:10px}.hp-terminal-body .hp-floor{height:min(58dvh,650px);min-height:280px}.hp-terminal-catalogue{display:flex;flex-direction:column;height:100%;min-height:0;gap:9px}.hp-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;flex:none}.hp-category-grid .action-btn{min-height:42px;white-space:normal}.hp-product-scroll{overflow:auto;flex:1;min-height:0}.hp-product-buttons{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:9px}.hp-product-buttons .action-btn{min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;white-space:normal;text-align:center;gap:5px}.hp-product-buttons small{font-size:12px;opacity:.75}.hp-terminal-bill{flex:none;max-height:36%;min-height:155px;overflow:auto;border-top:2px solid #8475e8}.hp-terminal-bill .hp-card{padding:12px}.hp-terminal-bill .hp-card h2{margin:0}.hp-terminal-bill .hp-form,.hp-terminal-bill details{margin:6px 0}.hp-terminal-bill .hp-lines{max-height:90px;overflow:auto}.hp-terminal-bill .hp-lines summary{padding:5px 0}.hp-terminal-tools{flex:none;max-height:42px;overflow:auto}.hp-terminal-tools>details>summary{padding:8px;font-size:12px}.hp-terminal-tools .hp-card{margin:8px 0}.hp-designer .hp-floor{height:380px}@media(max-width:760px){.hp-terminal{height:calc(100dvh - 125px);min-height:400px}.hp-terminal-bill{max-height:42%;min-height:145px}.hp-product-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}.hp-product-buttons .action-btn{min-height:66px;font-size:12px}.hp-category-grid .action-btn{font-size:12px;min-height:40px}.hp-terminal-body .hp-floor{height:45dvh}.hp-mode-switch .status-pill{display:none}}

/* Preview-inspired 2026 touch refinements */
.hp-terminal{border:1px solid rgba(137,129,200,.22);border-radius:18px;background:rgba(14,18,42,.35);padding:12px;box-sizing:border-box}
.hp-mode-switch{border-bottom:1px solid rgba(139,142,199,.22);padding-bottom:10px}
.hp-terminal-top .hp-toolbar{padding:5px 3px}
.hp-terminal-top .hp-toolbar strong{font-size:20px;letter-spacing:-.025em}
.hp-floor-tabs{padding:5px 0 9px}
.hp-floor-tabs .action-btn{min-height:44px;min-width:110px;border-radius:12px}
.hp-category-grid{gap:8px}
.hp-category-grid .action-btn{border-radius:12px;font-weight:650;background:rgba(87,92,151,.18);border:1px solid rgba(150,151,205,.24);min-height:48px}
.hp-category-grid .action-btn[aria-pressed=true]{background:linear-gradient(125deg,#5e74ef,#9459db);box-shadow:0 5px 18px rgba(117,89,220,.25)}
.hp-product-buttons{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.hp-product-buttons .action-btn{min-height:90px;padding:10px 6px;border-radius:13px;background:rgba(110,114,170,.12);border:1px solid rgba(152,152,205,.22);font-size:14px;font-weight:650}
.hp-product-buttons .action-btn:active{transform:scale(.98)}
.hp-product-buttons .action-btn small{font-size:13px;opacity:.8;font-weight:500}
.hp-terminal-bill{border:1px solid rgba(155,141,232,.4);border-radius:15px;background:rgba(14,18,43,.94);box-shadow:0 -4px 22px rgba(0,0,0,.12)}
.hp-terminal-bill .hp-card{background:transparent;border:0;box-shadow:none}
.hp-terminal-bill .hp-card>h2{font-size:18px}
.hp-terminal-bill .hp-card>p:first-of-type{font-size:11px;opacity:.6;margin:2px 0}
.hp-terminal-bill .hp-toolbar .action-btn{min-height:42px}
.hp-terminal-body .hp-card{border-radius:15px}
.hp-terminal-body .hp-floor{margin-top:8px}
.hp-floor-open .hp-terminal-body .hp-card>p{font-size:13px;margin:7px 0;color:var(--text-muted,#b4b5d1)}
.hp-table{border-radius:14px;border-color:#8087cf;background:rgba(81,88,140,.45);transition:background .15s,transform .15s}
.hp-table:hover{background:#3c477b;transform:scale(1.015)}
.hp-table.occupied{background:#6651aa;border-color:#ab90f8}
.hp-table strong{font-size:18px}
.hp-table small{font-size:11px;line-height:1.3;margin-top:3px}
.hp-designer>.hp-card:first-of-type{border-radius:18px}
.hp-designer .hp-card{border-radius:16px}
.hp-designer h2{font-size:23px}
.hp-designer .hp-form{background:rgba(98,105,166,.08);padding:12px;border-radius:12px}
.hp-designer .hp-form .action-btn.primary{min-height:44px}
@media(max-width:760px){.hp-terminal{padding:8px;border-radius:12px}.hp-category-grid .action-btn{min-height:45px}.hp-product-buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.hp-product-buttons .action-btn{min-height:73px;font-size:12px}.hp-terminal-bill .hp-card>p:first-of-type{display:none}}

.hp-tile-floor{padding:10px 4px;min-height:0}.hp-tile-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.hp-tile-heading strong{font-size:20px}.hp-tile-heading span{font-size:12px;opacity:.6}.hp-tile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:12px}.hp-tile-table{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:125px;padding:14px;border-radius:15px;border:1px solid rgba(140,150,201,.3);background:rgba(101,110,175,.14);color:inherit;cursor:pointer}.hp-tile-table>span{font-size:24px;color:#a5a9d0}.hp-tile-table>strong{font-size:20px}.hp-tile-table>small{font-size:12px;opacity:.76}.hp-tile-table.occupied{background:rgba(123,92,221,.3);border:2px solid #9b85ff}.hp-tile-table.occupied>span{color:#bcacff}.hp-tile-table:focus-visible{outline:3px solid #f0c96b;outline-offset:2px}.hp-quick-bill{padding:10px;display:flex;flex-direction:column;gap:8px}.hp-quick-heading,.hp-quick-total,.hp-quick-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.hp-quick-heading strong{font-size:17px}.hp-quick-heading span{font-size:12px;opacity:.7}.hp-quick-lines{flex:1;min-height:20px;max-height:95px;overflow-y:auto;font-size:13px}.hp-quick-line{padding:4px 0;border-bottom:1px solid rgba(151,148,204,.15)}.hp-quick-total{border-top:1px solid rgba(151,148,204,.25);padding-top:7px;font-size:13px}.hp-quick-total>strong{font-size:21px}.hp-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.hp-quick-actions .action-btn{min-height:43px;border-radius:10px;font-weight:650}.hp-quick-more>summary{font-size:12px;opacity:.8;padding:4px!important}.hp-quick-more>.hp-card{padding:10px 2px}.hp-terminal-bill{max-height:39%}.hp-terminal-body .hp-tile-grid{padding-bottom:12px}@media(max-width:760px){.hp-tile-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.hp-tile-table{min-height:90px;padding:8px}.hp-tile-table strong{font-size:17px}.hp-tile-table small{font-size:10px}.hp-quick-bill{padding:8px}.hp-quick-lines{max-height:65px}.hp-terminal-bill{max-height:46%}.hp-quick-total>strong{font-size:18px}}

/* Order workspace: cart first, secondary tools only on demand */
.hp-quick-bill{gap:7px;padding:11px 13px}
.hp-quick-heading{padding-bottom:2px}
.hp-quick-heading strong{font-size:18px}
.hp-quick-lines{max-height:145px;min-height:38px}
.hp-quick-line{min-height:43px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(70px,auto);gap:12px;padding:7px 9px;border:1px solid rgba(150,151,211,.17);background:rgba(97,101,158,.13);border-radius:10px;margin-bottom:5px}
.hp-item-name{min-width:0;display:flex;flex-direction:column;gap:2px;overflow-wrap:anywhere}
.hp-item-name strong{font-size:13px}
.hp-item-name small{opacity:.65}
.hp-qty-stepper{display:flex;align-items:center;gap:3px;background:rgba(18,21,45,.35);border-radius:9px;padding:2px}
.hp-qty-stepper button{display:grid;place-items:center;min-width:31px;min-height:31px;padding:0;border:1px solid rgba(165,161,221,.3);border-radius:7px;background:rgba(100,96,160,.25);color:inherit;font-size:18px;font-weight:700;cursor:pointer}
.hp-qty-stepper span{min-width:22px;text-align:center;font-weight:700}
.hp-quick-line>strong{min-width:64px;text-align:right;white-space:nowrap}
.hp-quick-total{padding:9px 3px}
.hp-quick-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
.hp-quick-actions .action-btn{min-height:48px;padding:7px 5px;white-space:normal}
.hp-quick-actions .primary{background:linear-gradient(120deg,#657af6,#9859de);color:white}
.hp-quick-more{border-top:1px solid rgba(147,145,205,.15);margin-top:2px}
.hp-quick-more>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;padding:8px 2px!important}
.hp-quick-more>summary:after{content:'⌄';font-size:20px}
.hp-quick-more[open]>summary:after{content:'⌃'}
.hp-quick-more>.hp-card{max-height:55dvh;overflow:auto;border:1px solid rgba(158,146,227,.27);border-radius:12px;background:rgba(22,25,56,.98);padding:12px}
.hp-terminal-bill{max-height:49%;overflow:auto}
@media(max-width:760px){.hp-quick-bill{padding:8px}.hp-quick-lines{max-height:100px}.hp-quick-line{grid-template-columns:minmax(0,1fr) auto auto;gap:5px;padding:5px}.hp-quick-line>strong{min-width:57px;font-size:12px}.hp-qty-stepper button{min-width:30px;min-height:34px}.hp-quick-actions{gap:4px}.hp-quick-actions .action-btn{font-size:11px;min-height:46px}.hp-terminal-bill{max-height:52%}}

/* Tablet viewport fix: ensure product area and checkout controls do not overlap */
.hp-terminal.hp-order-open{height:calc(100dvh - 148px);min-height:440px;display:grid;grid-template-rows:auto auto minmax(150px,1fr) minmax(190px,auto) auto;gap:8px;overflow:hidden}
.hp-order-open .hp-terminal-body{min-height:150px;overflow:hidden}
.hp-order-open .hp-terminal-catalogue{height:100%;min-height:0}
.hp-order-open .hp-category-grid{flex:none}
.hp-order-open .hp-product-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.hp-order-open .hp-terminal-bill{height:auto;min-height:190px;max-height:clamp(190px,36dvh,360px);display:flex;flex-direction:column;overflow:hidden}
.hp-order-open .hp-quick-bill{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(35px,1fr) auto auto auto;gap:5px;overflow:hidden}
.hp-order-open .hp-quick-lines{max-height:none;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.hp-order-open .hp-quick-total{flex:none}
.hp-order-open .hp-quick-actions{flex:none}
.hp-order-open .hp-quick-more{max-height:34px;overflow:hidden}
.hp-order-open .hp-quick-more[open]{position:absolute;z-index:30;bottom:55px;left:16px;right:16px;max-height:min(75dvh,650px);overflow-y:auto;background:var(--bg,#171827);border:1px solid #8b7edd;border-radius:13px;padding:10px;box-shadow:0 -12px 35px #0008}
.hp-order-open .hp-terminal-tools{height:35px;max-height:35px;overflow:hidden}
.hp-order-open .hp-terminal-tools>details>summary{padding:7px 9px}
.hp-order-open .hp-product-buttons .action-btn{min-height:77px}
.hp-order-open .hp-quick-actions .action-btn{min-height:45px}
@media(max-width:1100px){.hp-terminal.hp-order-open{height:calc(100dvh - 136px);grid-template-rows:auto auto minmax(128px,1fr) minmax(180px,auto) auto}.hp-order-open .hp-terminal-bill{max-height:35dvh;min-height:180px}.hp-order-open .hp-product-buttons .action-btn{min-height:68px}}
@media(max-width:760px){.hp-terminal.hp-order-open{height:calc(100dvh - 112px);min-height:390px;grid-template-rows:auto auto minmax(100px,1fr) minmax(170px,auto) auto;gap:5px}.hp-order-open .hp-terminal-bill{min-height:170px;max-height:43dvh}.hp-order-open .hp-quick-bill{padding:5px 7px}.hp-order-open .hp-quick-line{min-height:37px}.hp-order-open .hp-quick-actions .action-btn{min-height:43px}.hp-order-open .hp-category-grid .action-btn{min-height:35px}.hp-order-open .hp-product-buttons .action-btn{min-height:60px}.hp-order-open .hp-terminal-tools{height:28px;max-height:28px}}

/* Bill breathing room: give the cart a real viewport, not a one-row letterbox. */
.hp-terminal.hp-order-open{grid-template-rows:auto auto minmax(115px,1fr) minmax(260px,42dvh) auto}
.hp-order-open .hp-terminal-bill{height:100%;min-height:0;max-height:none;overflow:hidden;border-radius:18px}
.hp-order-open .hp-quick-bill{box-sizing:border-box;height:100%;min-height:0;grid-template-rows:auto minmax(70px,1fr) auto auto auto;gap:9px;padding:14px 18px}
.hp-order-open .hp-quick-heading{padding-bottom:5px}
.hp-order-open .hp-quick-heading strong{font-size:19px}
.hp-order-open .hp-quick-lines{min-height:0;max-height:none;overflow-y:auto;scrollbar-gutter:stable;display:flex;flex-direction:column;gap:7px;padding:1px 5px 2px 0}
.hp-order-open .hp-quick-line{flex-shrink:0;min-height:49px;box-sizing:border-box;padding:10px 13px;margin:0;border-radius:12px;gap:14px;align-items:center}
.hp-order-open .hp-quick-total{padding:9px 2px 5px;margin-top:1px}
.hp-order-open .hp-quick-actions{gap:10px}
.hp-order-open .hp-quick-actions .action-btn{min-height:48px}
.hp-order-open .hp-quick-more{max-height:31px}
.hp-order-open .hp-quick-more>summary{padding:4px 2px!important}
@media(max-width:1100px){.hp-terminal.hp-order-open{grid-template-rows:auto auto minmax(105px,1fr) minmax(245px,44dvh) auto}.hp-order-open .hp-terminal-bill{min-height:0;max-height:none}.hp-order-open .hp-quick-bill{padding:10px 12px;gap:6px}.hp-order-open .hp-quick-line{min-height:45px;padding:7px 10px}}
@media(max-width:760px){.hp-terminal.hp-order-open{grid-template-rows:auto auto minmax(95px,1fr) minmax(240px,47dvh) auto}.hp-order-open .hp-terminal-bill{min-height:0;max-height:none}.hp-order-open .hp-quick-bill{padding:9px 10px;gap:5px}.hp-order-open .hp-quick-lines{gap:5px}.hp-order-open .hp-quick-line{min-height:43px;padding:6px 8px}.hp-order-open .hp-quick-actions{gap:5px}}

/* AkiHQ POS 3.0: dedicated restaurant register, landscape-first */
@media(min-width:901px){
.hp-shell.hp-terminal.hp-order-open{
  height:calc(100dvh - 140px)!important;min-height:470px;
  display:grid!important;grid-template-columns:minmax(0,1.65fr) minmax(330px,1fr)!important;
  grid-template-rows:auto auto minmax(0,1fr) auto!important;
  gap:10px!important;padding:12px!important;align-items:stretch;
}
.hp-order-open>.hp-mode-switch{grid-column:1/-1;grid-row:1;margin:0}
.hp-order-open>.hp-terminal-top{grid-column:1/-1;grid-row:2;margin:0}
.hp-order-open>.hp-register-menu{grid-column:1;grid-row:3;min-width:0;min-height:0!important;overflow:hidden!important}
.hp-order-open>.hp-register-ticket{grid-column:2;grid-row:3;width:100%;height:100%!important;min-height:0!important;max-height:none!important;box-sizing:border-box;overflow:hidden!important}
.hp-order-open>.hp-terminal-tools{grid-column:1/-1;grid-row:4;min-height:30px}
.hp-order-open .hp-terminal-catalogue{display:flex;flex-direction:column;min-height:0;height:100%}
.hp-order-open .hp-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.hp-order-open .hp-category-grid .action-btn{min-height:44px}
.hp-order-open .hp-product-scroll{flex:1;min-height:0;overflow:auto;padding:4px}
.hp-order-open .hp-product-buttons{grid-template-columns:repeat(auto-fill,minmax(115px,1fr));align-content:start;gap:10px}
.hp-order-open .hp-product-buttons .action-btn{min-height:85px}
.hp-order-open .hp-quick-bill{height:100%!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto auto!important;gap:8px;padding:16px!important}
.hp-order-open .hp-quick-lines{min-height:0!important;max-height:none!important;overflow:auto!important;scrollbar-gutter:stable}
.hp-order-open .hp-quick-line{grid-template-columns:minmax(0,1fr) auto auto;gap:6px;min-height:54px}
.hp-order-open .hp-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hp-order-open .hp-quick-actions .action-btn{min-height:50px}
.hp-order-open .hp-quick-total{padding:11px 0 7px}
.hp-order-open .hp-quick-more{max-height:32px}
}
@media(min-width:901px) and (max-width:1150px){
.hp-shell.hp-terminal.hp-order-open{grid-template-columns:minmax(0,1.25fr) minmax(320px,1fr)!important}
.hp-order-open .hp-product-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}
.hp-order-open .hp-quick-line{padding:7px;gap:4px}
}
@media(max-width:900px){
.hp-shell.hp-terminal.hp-order-open{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto minmax(120px,1fr) minmax(230px,42dvh) auto!important}
.hp-order-open>.hp-register-menu{min-height:0;overflow:hidden}
.hp-order-open>.hp-register-ticket{height:100%;min-height:0;max-height:none}
.hp-order-open .hp-quick-bill{height:100%;grid-template-rows:auto minmax(40px,1fr) auto auto auto}
.hp-order-open .hp-quick-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
}
