/* Theme tokens are scoped to the POS and its dialogs. */
:root { --pos-surface:#ffffff; --pos-ink:#24282e; --pos-orange:#ff6500; --pos-pressed:#e45a00; --pos-soft:#ffffff; --pos-soft-strong:#e2e5e9; --pos-control-ink:#343a42; --pos-line:#e5e7eb; --pos-canvas:#f7f8fa; --pos-muted:#646d78; --pos-raised:#ffffff; --pos-hover:#f0f2f5; }
:root[data-theme="dark"] { --pos-surface:var(--surface); --pos-ink:var(--ink); --pos-orange:var(--orange); --pos-pressed:var(--primary-hover); --pos-soft:var(--surface); --pos-soft-strong:var(--line); --pos-control-ink:var(--ink); --pos-line:var(--line); --pos-canvas:var(--bg); --pos-muted:var(--muted); --pos-raised:var(--raised); --pos-hover:var(--raised); }
/* Smashing service counter: food first, decisive orange controls, one white theme. */
#app.pos-layout{--brand:var(--pos-orange);--accent:var(--pos-orange);--primary:var(--pos-orange);--ink:var(--pos-ink);--text:var(--pos-ink);--muted:var(--pos-ink);--surface:var(--pos-surface);--surface-raised:var(--pos-surface);--bg:var(--pos-surface);--line:var(--pos-orange);color:var(--pos-ink);background:var(--pos-surface);display:block!important;padding:0!important;grid-template-columns:1fr!important}
#app.pos-layout *,body:has(.pos-layout) #dialog *{scrollbar-width:none!important}
#app.pos-layout *::-webkit-scrollbar,body:has(.pos-layout) #dialog *::-webkit-scrollbar{width:0!important;height:0!important}
#app.pos-layout [hidden]{display:none!important}
#app.pos-layout .app-body{margin:0!important;width:100%!important;background:var(--pos-surface);min-width:0}
#app.pos-layout .sidebar,#app.pos-layout .workspace-foot{display:none!important}
#app.pos-layout .pos-toolbar{position:relative!important;inset:auto!important;display:flex!important;align-items:center;gap:14px;padding:12px 22px!important;height:auto!important;min-height:86px;background:var(--pos-surface)!important;border:0!important;border-bottom:2px solid var(--pos-ink)!important;box-shadow:none!important;width:100%!important}
#app.pos-layout .pos-toolbar-start{display:flex;align-items:center;gap:30px;flex-shrink:0}
#app.pos-layout .pos-brand{display:flex;flex-direction:column;align-items:flex-start;text-decoration:none;color:var(--pos-ink);gap:3px}
#app.pos-layout .pos-brand img{width:154px!important;height:auto!important;max-height:42px;object-fit:contain}
#app.pos-layout .pos-brand small{font:700 12px 'DM Sans',sans-serif;letter-spacing:.02em;color:var(--pos-ink);padding-left:2px}
#app.pos-layout .pos-toolbar-orders{display:flex;gap:8px;margin-left:auto!important}
#app.pos-layout .pos-toolbar-utilities{display:flex;gap:8px;align-items:center}
#app.pos-layout .button,#app.pos-layout .icon-button,#app.pos-layout .category-chip,#app.pos-layout .pos-channel-tabs button,#app.pos-layout .quantity button{background:var(--pos-orange)!important;color:var(--pos-ink)!important;border:1px solid var(--pos-orange)!important;box-shadow:none!important;border-radius:9px!important;font:800 13px 'DM Sans',sans-serif;min-height:42px;padding:10px 12px}
#app.pos-layout .icon-button{width:42px;flex-shrink:0;padding:10px}
#app.pos-layout .button:hover,#app.pos-layout .icon-button:hover,#app.pos-layout .category-chip:hover{background:var(--pos-pressed)!important;border-color:var(--pos-pressed)!important}
#app.pos-layout :focus-visible{outline:2px solid var(--pos-orange)!important;outline-offset:2px}
#app.pos-layout .button:disabled{opacity:.5;cursor:not-allowed}
#app.pos-layout kbd{background:none!important;border:0!important;color:inherit!important;box-shadow:none!important;font:600 10px 'DM Sans',sans-serif;opacity:.75}
#app.pos-layout .pos-order-trigger{gap:7px}
#app.pos-layout .pos-order-trigger .trigger-caret{width:12px}
#app.pos-layout svg{color:inherit}
#app.pos-layout #main{padding:0!important;max-width:none!important;height:calc(100dvh - 88px)!important;overflow:hidden!important;background:var(--pos-surface)!important}
#app.pos-layout .pos-grid{display:grid!important;grid-template-columns:minmax(0,1fr) 390px!important;gap:0!important;height:100%!important;min-height:0!important;margin:0!important}
#app.pos-layout .panel{background:var(--pos-surface)!important;color:var(--pos-ink)!important;border:0!important;border-radius:0!important;box-shadow:none!important}
#app.pos-layout .catalogue{display:flex!important;flex-direction:column;min-width:0;min-height:0;overflow:hidden!important;padding:20px!important;gap:20px}
#app.pos-layout .pos-categories{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:8px!important;flex-shrink:0;padding:0!important;align-items:center}
#app.pos-layout .pos-view-toggle{display:flex;align-items:center;gap:3px;flex:0 0 auto;margin-left:auto;padding:3px;border:1px solid var(--pos-line);border-radius:10px;background:var(--pos-canvas)}
#app.pos-layout .pos-view-toggle button{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:7px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--pos-control-ink);cursor:pointer}
#app.pos-layout .pos-view-toggle button[aria-pressed=true]{background:var(--pos-orange);color:#201e1f;border-color:var(--pos-orange)}
#app.pos-layout .pos-view-toggle button:hover{background:var(--pos-hover);border-color:var(--pos-line)}
#app.pos-layout .pos-view-toggle button[aria-pressed=true]:hover{background:var(--pos-pressed);border-color:var(--pos-pressed)}
#app.pos-layout .pos-view-toggle .icon{display:block!important;width:19px;height:19px}
#app.pos-layout .category-chip{flex:0 0 auto!important;white-space:normal!important;max-width:100%;border-radius:8px!important;padding:10px 15px!important}
#app.pos-layout .category-chip.active,#app.pos-layout .pos-channel-tabs button[aria-pressed=true]{background:var(--pos-ink)!important;color:var(--pos-surface)!important;border-color:var(--pos-ink)!important}
#app.pos-layout .pos-search-control{display:flex;gap:6px;align-items:center;max-width:100%}
#app.pos-layout #pos-search{width:210px!important;background:var(--pos-surface)!important;color:var(--pos-ink)!important;border:1px solid var(--pos-orange)!important;border-radius:8px;min-height:42px;padding:10px}
#app.pos-layout .catalogue>.product-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:18px 12px!important;overflow:auto!important;align-content:start!important;padding:0 0 20px!important;min-height:0!important;flex:1}
#app.pos-layout .catalogue>.product-grid[data-view-mode="grid-nine"]{grid-template-columns:repeat(9,minmax(0,1fr))!important;gap:12px 8px!important}
#app.pos-layout .catalogue>.product-grid[data-view-mode="grid-nine"] .product-card-copy{padding:7px 1px 2px!important;gap:5px}
#app.pos-layout .catalogue>.product-grid[data-view-mode="grid-nine"] .product-card-copy strong{font-size:12px!important;line-height:1.25!important;min-height:30px;letter-spacing:-.2px}
#app.pos-layout .catalogue>.product-grid[data-view-mode="grid-nine"] .product-price{font-size:12px!important}
#app.pos-layout .catalogue>.product-grid[data-view-mode="grid-nine"] .product-price b{width:22px;height:22px;border-radius:6px}
#app.pos-layout .catalogue>.product-grid[data-view-mode="list"]{display:flex!important;flex-direction:column;gap:6px!important;padding:0 2px 16px!important}
#app.pos-layout .pos-list-item{display:grid;grid-template-columns:54px minmax(0,1fr) auto 76px;align-items:center;gap:12px;min-height:62px;padding:6px 10px;border:1px solid var(--pos-line);border-radius:10px;background:var(--pos-surface);color:var(--pos-ink)}
#app.pos-layout .pos-list-image{display:grid;place-items:center;width:52px;height:52px;object-fit:cover;border-radius:8px;background:var(--pos-canvas);color:var(--pos-muted)}
#app.pos-layout .pos-list-name{min-width:0;font:750 13px/1.3 Manrope,sans-serif;overflow-wrap:anywhere}
#app.pos-layout .pos-list-price{font:750 13px/1.2 'DM Sans',sans-serif;white-space:nowrap}
#app.pos-layout .pos-list-add{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px!important;padding:7px 10px!important}
#app.pos-layout .pos-list-add .icon{width:16px;height:16px}
#app.pos-layout .pos-list-item [role=img] .icon{width:20px;height:20px}
#app.pos-layout .product-card{display:flex!important;flex-direction:column;align-self:start;background:var(--pos-surface)!important;color:var(--pos-ink)!important;border:0!important;border-radius:12px!important;box-shadow:none!important;padding:0!important;overflow:hidden;min-width:0;transition:none!important}
#app.pos-layout .product-card:hover{outline:2px solid var(--pos-orange);outline-offset:3px;transform:none!important}
#app.pos-layout .product-card img,#app.pos-layout .product-placeholder,#app.pos-layout .product-card>.reference-photo{width:100%!important;height:auto!important;aspect-ratio:1!important;object-fit:cover!important;border-radius:12px!important;background:var(--pos-surface)!important;min-height:0!important;flex:none!important}
#app.pos-layout .product-placeholder{display:grid;place-items:center;border:1px solid var(--pos-orange);color:var(--pos-orange)}
#app.pos-layout .product-placeholder svg{width:48px;height:48px}
#app.pos-layout .product-card-copy{padding:11px 2px 3px!important;display:flex;flex-direction:column;gap:8px;text-align:left}
#app.pos-layout .product-card-copy strong{font:800 15px/1.3 Manrope,sans-serif!important;color:var(--pos-ink)!important;white-space:normal!important;display:block!important;overflow:visible!important;min-height:39px;letter-spacing:-.3px}
#app.pos-layout .product-price{font:800 15px 'DM Sans',sans-serif!important;color:var(--pos-ink)!important;display:flex;align-items:center;justify-content:space-between;gap:4px}
#app.pos-layout .product-price b{display:grid;place-items:center;background:var(--pos-orange)!important;color:var(--pos-ink)!important;width:26px;height:26px;border-radius:7px}
#app.pos-layout .product-tag{display:none}
#app.pos-layout .pos-order-column{display:flex!important;flex-direction:column!important;border-left:2px solid var(--pos-ink)!important;min-height:0;overflow:hidden!important;gap:0!important;padding:0!important;background:var(--pos-surface)!important}
#app.pos-layout .ticket{flex:1!important;min-height:0!important;display:flex!important;flex-direction:column;overflow:auto!important;padding:18px!important}
#app.pos-layout .pos-ticket-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}
#app.pos-layout .pos-ticket-header h2{font:800 21px Manrope,sans-serif;letter-spacing:-.7px;margin:0}
#app.pos-layout .pos-ticket-header .button{font-size:12px;padding:8px;gap:5px}
#app.pos-layout .pos-channel-tabs{display:grid!important;grid-template-columns:repeat(3,1fr);gap:6px;padding:0!important;background:var(--pos-surface)!important;border:0!important;margin-bottom:14px}
#app.pos-layout .pos-channel-tabs button{font-size:12px;justify-content:center;gap:5px;padding:9px 6px}
#app.pos-layout .ticket-context{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 10px}
#app.pos-layout input,#app.pos-layout select,#app.pos-layout textarea{color:var(--pos-ink)!important;background:var(--pos-surface)!important;border-color:var(--pos-orange)!important;border-radius:7px!important}
#app.pos-layout .pos-context-field,#app.pos-layout .pos-note-field{background:var(--pos-surface)!important;border:1px solid var(--pos-orange)!important;color:var(--pos-ink)!important;border-radius:7px;min-width:0}
#app.pos-layout .pos-note-field{margin:0 0 12px}
#app.pos-layout #cart-lines{overflow:visible!important;flex:1}
#app.pos-layout .cart-line{background:var(--pos-surface)!important;color:var(--pos-ink)!important;border-color:var(--pos-orange)!important;padding:14px 0!important}
#app.pos-layout .cart-line-name strong{font:800 14px Manrope,sans-serif!important}
#app.pos-layout .cart-line small,#app.pos-layout .muted{color:var(--pos-ink)!important}
#app.pos-layout .quantity{background:var(--pos-surface)!important;color:var(--pos-ink)!important;border-color:var(--pos-orange)!important}
#app.pos-layout .quantity button{min-height:28px;width:28px;padding:0;border-radius:5px!important}
#app.pos-layout .pos-line-remove{width:28px;min-height:28px;padding:5px}
#app.pos-layout .payment-panel{flex-shrink:0!important;padding:14px 18px 18px!important;border-top:2px solid var(--pos-ink)!important}
#app.pos-layout .payment-panel>.panel-title{display:none}
#app.pos-layout .payment-body,#app.pos-layout .pos-actions{padding:0!important;background:var(--pos-surface)!important}
#app.pos-layout #totals,#app.pos-layout .totals,#app.pos-layout .totals>div,#app.pos-layout .grand-total,#app.pos-layout .grand-total *{background:var(--pos-surface)!important;color:var(--pos-ink)!important;border-color:var(--pos-orange)!important}
#app.pos-layout .grand-total{padding:12px 0!important}
#app.pos-layout .grand-total dd{font:800 30px Manrope,sans-serif!important;letter-spacing:-1px}
#app.pos-layout .quote-status{font-size:11px;margin:3px 0 10px}
#app.pos-layout .pay-button{width:100%!important;min-height:52px!important;font-size:18px!important;border-radius:10px!important;display:flex;align-items:center;justify-content:space-between;margin:0 0 9px!important}
#app.pos-layout .pos-secondary-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
#app.pos-layout .pos-secondary-actions>.button{display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:64px!important;padding:7px 3px!important;font-size:11px!important;text-align:center}
#app.pos-layout .pos-more{grid-column:1/-1}
#app.pos-layout .pos-more>summary{min-height:30px;padding:5px 10px;display:flex;justify-content:center;gap:8px;font-size:11px}
#app.pos-layout .empty{color:var(--pos-ink)!important;background:var(--pos-surface)!important;padding:24px 10px}
#app.pos-layout .empty h3{font:800 18px Manrope,sans-serif}
#app.pos-layout .empty p{max-width:28ch;margin-inline:auto;color:var(--pos-ink)!important;font-size:13px}
#app.pos-layout .pos-bill-bar{display:none!important}
body:has(.pos-layout) #dialog{--surface:var(--pos-surface);--surface-raised:var(--pos-surface);--ink:var(--pos-ink);--text:var(--pos-ink);--muted:var(--pos-ink);--line:var(--pos-orange);--brand:var(--pos-orange);background:var(--pos-surface)!important;color:var(--pos-ink)!important}
body:has(.pos-layout) #dialog .button{background:var(--pos-orange);color:var(--pos-ink);border-color:var(--pos-orange)}
@media(max-width:1199px){#app.pos-layout .catalogue>.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}#app.pos-layout .pos-toolbar{padding:10px 14px!important;flex-wrap:wrap}#app.pos-layout .pos-toolbar-start{gap:16px}#app.pos-layout .pos-toolbar-orders{gap:5px}#app.pos-layout .pos-grid{grid-template-columns:minmax(0,1fr) 360px!important}#app.pos-layout .pos-toolbar .button{font-size:11px;padding:9px}#app.pos-layout .pos-brand img{width:125px!important}}
@media(max-width:900px){#app.pos-layout #main{height:calc(100dvh - 140px)!important}#app.pos-layout .pos-toolbar-start{flex:1}#app.pos-layout .pos-toolbar-orders{order:3;width:100%;justify-content:flex-end}#app.pos-layout .catalogue>.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}#app.pos-layout .pos-grid{grid-template-columns:minmax(0,1fr) 330px!important}#app.pos-layout .catalogue{padding:14px!important}}
@media(max-width:650px){#app.pos-layout .pos-grid{display:block!important;padding-bottom:62px}#app.pos-layout .catalogue{height:100%!important}#app.pos-layout .catalogue>.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#app.pos-layout .pos-order-column{display:none!important;height:100%;border:0!important}#app.pos-layout.pos-show-bill .catalogue{display:none!important}#app.pos-layout.pos-show-bill .pos-order-column{display:flex!important}#app.pos-layout .pos-bill-bar{display:flex!important;position:fixed!important;bottom:0;left:0;right:0;background:var(--pos-surface)!important;color:var(--pos-ink)!important;border-top:2px solid var(--pos-ink);z-index:30;height:62px;padding:8px 14px}#app.pos-layout .pos-bill-bar strong{color:var(--pos-ink)!important}#app.pos-layout .pos-brand img{width:106px!important}#app.pos-layout .pos-toolbar-start{gap:10px}#app.pos-layout .pos-toolbar{gap:8px;padding:8px!important}#app.pos-layout .pos-toolbar .button{font-size:10px;min-height:36px;padding:7px}#app.pos-layout .pos-toolbar-utilities{gap:4px}#app.pos-layout .pos-toolbar-utilities .icon-button{width:32px;min-height:36px;padding:6px}#app.pos-layout .pos-toolbar-orders{justify-content:space-between}#app.pos-layout .pos-toolbar-orders .button{flex:1;justify-content:center}#app.pos-layout .pos-brand small{font-size:10px}#app.pos-layout .pos-ticket-header{margin-bottom:10px}#app.pos-layout .ticket{padding:14px!important}#app.pos-layout .payment-panel{padding:10px 14px!important}}
#app.pos-layout .pos-toolbar-start{flex:0 0 auto!important}
#app.pos-layout .pos-toolbar-orders{flex:0 0 auto!important;position:static!important;transform:none!important;justify-content:flex-end!important}
#app.pos-layout .pos-dashboard{display:inline-flex!important;align-items:center;gap:7px;width:auto!important;height:auto!important}
#app.pos-layout .pos-search-control .icon-button{display:grid!important;place-items:center}
#app.pos-layout .pos-search-control svg,#app.pos-layout .pos-search-control .icon{display:block!important;width:20px!important;height:20px!important;visibility:visible!important;opacity:1!important}
#app.pos-layout .pos-more>summary{display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;min-height:32px!important;height:32px!important;padding:5px 10px!important}
#app.pos-layout .pos-more>summary svg{width:16px;height:16px}
@media(max-width:900px){#app.pos-layout .pos-toolbar-start{flex:1!important}#app.pos-layout .pos-toolbar-orders{width:100%!important}}
#app.pos-layout .pos-toolbar-orders{width:auto!important;min-width:0!important;max-width:none!important;margin-left:auto!important}
#app.pos-layout .pos-toolbar-utilities{width:auto!important;flex:0 0 auto!important}
#app.pos-layout .pos-brand{width:154px!important;flex:0 0 auto!important}
#app.pos-layout .pos-toolbar-start{width:auto!important;min-width:0!important}
@media(max-width:1199px){#app.pos-layout .pos-brand{width:125px!important}}
@media(max-width:900px){#app.pos-layout .pos-toolbar-orders{width:100%!important}}
@media(max-width:650px){#app.pos-layout .pos-brand{width:106px!important}}
#app.pos-layout .pos-brand .brand-logo-light{display:block!important}
#app.pos-layout .pos-brand .brand-logo-dark{display:none!important}
#app.pos-layout .preview-banner{background:var(--pos-surface)!important;color:var(--pos-ink)!important;border-color:var(--pos-orange)!important}
#app.pos-layout .pay-button{min-width:0!important;overflow:hidden;white-space:normal!important;gap:5px}
#app.pos-layout .pay-button>*{min-width:0}
@media(max-width:360px){#app.pos-layout .pos-brand,#app.pos-layout .pos-brand img{width:90px!important}#app.pos-layout .pos-dashboard{max-width:106px!important;font-size:9px!important;padding:7px!important;white-space:normal!important}#app.pos-layout .pos-toolbar-start{gap:8px}#app.pos-layout .pos-ticket-header h2{font-size:19px}#app.pos-layout .pay-button{font-size:14px!important}}
/* Clean neutral hierarchy: quiet inactive controls, orange selected actions and payment. */
#app.pos-layout{--muted:var(--pos-muted);--line:var(--pos-line)}
#app.pos-layout .pos-toolbar{border-bottom:1px solid var(--pos-line)!important;padding-inline:24px!important;gap:12px}
#app.pos-layout .pos-toolbar-start{gap:24px}
#app.pos-layout .pos-brand small{font-size:11px;letter-spacing:.04em;color:var(--pos-muted)}
#app.pos-layout .button,#app.pos-layout .icon-button,#app.pos-layout .category-chip,#app.pos-layout .pos-channel-tabs button{font-weight:700;background:var(--pos-soft)!important;color:var(--pos-control-ink)!important;border-color:var(--pos-soft-strong)!important}
#app.pos-layout .button:hover,#app.pos-layout .icon-button:hover,#app.pos-layout .category-chip:hover{background:var(--pos-hover)!important;border-color:var(--pos-soft-strong)!important}
#app.pos-layout .pos-toolbar .pos-dashboard{background:var(--pos-soft)!important;color:var(--pos-control-ink)!important}
#app.pos-layout .pos-toolbar-orders .button{min-height:44px;padding-inline:14px;border-radius:11px!important}
#app.pos-layout .pos-toolbar-utilities{border-left:1px solid var(--pos-line);padding-left:12px}
#app.pos-layout .pos-toolbar-utilities .icon-button{background:var(--pos-surface)!important;border-color:var(--pos-line)!important;color:var(--pos-ink)!important}
#app.pos-layout .pos-toolbar-utilities .active,#app.pos-layout .pos-theme[aria-pressed=true]{background:var(--pos-soft)!important;border-color:var(--pos-soft-strong)!important;color:var(--pos-control-ink)!important}
#app.pos-layout .pos-grid{grid-template-columns:minmax(0,1fr) 400px!important;background:var(--pos-canvas);padding:18px!important;gap:18px!important}
#app.pos-layout .catalogue{padding:4px!important;gap:20px;background:var(--pos-canvas)!important}
#app.pos-layout .pos-categories{gap:8px!important;padding:0 0 4px!important}
#app.pos-layout .category-chip{border-radius:11px!important;background:var(--pos-surface)!important;color:var(--pos-muted)!important;border-color:var(--pos-line)!important;font-weight:700;padding:11px 17px!important}
#app.pos-layout .category-chip.active{background:var(--pos-orange)!important;color:#1b1007!important;border-color:var(--pos-orange)!important;box-shadow:0 3px 8px #ff650020!important}
#app.pos-layout .pos-search-control .icon-button{background:var(--pos-soft)!important;border-color:var(--pos-soft-strong)!important}
#app.pos-layout .catalogue>.product-grid{gap:16px 12px!important;padding:4px 3px 20px!important}
#app.pos-layout .product-card{border:1px solid var(--pos-line)!important;border-radius:14px!important;padding:7px!important;background:var(--pos-surface)!important}
#app.pos-layout .product-card:hover{outline:0;transform:none!important;border-color:var(--pos-orange)!important;background:var(--pos-surface)!important}
#app.pos-layout .product-card img,#app.pos-layout .product-placeholder{border-radius:9px!important}
#app.pos-layout .product-card-copy{padding:12px 3px 4px!important;gap:12px}
#app.pos-layout .product-card-copy strong{font-size:14px!important;min-height:37px;line-height:1.35!important;letter-spacing:-.2px}
#app.pos-layout .product-price{font-size:15px!important;letter-spacing:-.3px}
#app.pos-layout .product-price b{background:var(--pos-soft)!important;color:var(--pos-control-ink)!important;border:1px solid var(--pos-soft-strong);width:28px;height:28px;border-radius:8px}
#app.pos-layout .product-card:hover .product-price b{background:var(--pos-orange)!important;color:#1b1007!important}
#app.pos-layout .pos-order-column{border:1px solid var(--pos-line)!important;border-radius:16px!important;background:var(--pos-surface)!important;box-shadow:0 5px 20px #00000006}
#app.pos-layout .ticket{padding:20px!important}
#app.pos-layout .pos-ticket-header{margin-bottom:20px}
#app.pos-layout .pos-ticket-header h2{font-size:21px;font-weight:800;letter-spacing:-.7px}
#app.pos-layout .pos-ticket-header .button{background:var(--pos-soft)!important;border-color:var(--pos-soft-strong)!important;border-radius:9px!important;min-height:36px;font-size:11px}
#app.pos-layout .pos-channel-tabs{padding:5px!important;border:1px solid var(--pos-line)!important;border-radius:12px;background:var(--pos-canvas)!important;gap:3px;margin-bottom:16px}
#app.pos-layout .pos-channel-tabs button{background:transparent!important;border-color:transparent!important;color:var(--pos-muted)!important;min-height:38px;padding:8px 5px}
#app.pos-layout .pos-channel-tabs button[aria-pressed=true]{background:var(--pos-orange)!important;color:#1b1007!important;border-color:var(--pos-orange)!important}
#app.pos-layout .pos-context-field,#app.pos-layout .pos-note-field,#app.pos-layout input,#app.pos-layout select,#app.pos-layout textarea{border-color:var(--pos-line)!important;border-radius:9px!important}
#app.pos-layout .pos-context-field>svg,#app.pos-layout .pos-note-field>svg{color:var(--pos-muted)}
#app.pos-layout input::placeholder,#app.pos-layout textarea::placeholder{color:var(--pos-muted)!important}
#app.pos-layout .pos-note-field{margin-top:2px}
#app.pos-layout .cart-line{border-color:var(--pos-line)!important}
#app.pos-layout .cart-line small,#app.pos-layout .muted{color:var(--pos-muted)!important}
#app.pos-layout .cart-image{border-radius:9px}
#app.pos-layout .quantity{border-color:var(--pos-line)!important}
#app.pos-layout .quantity button{background:var(--pos-soft)!important;border-color:var(--pos-soft)!important;color:var(--pos-control-ink)!important}
#app.pos-layout .payment-panel{border-top:1px solid var(--pos-line)!important;background:var(--pos-canvas)!important;padding:16px 20px 18px!important}
#app.pos-layout .payment-body,#app.pos-layout .pos-actions{background:transparent!important}
#app.pos-layout #totals,#app.pos-layout .totals,#app.pos-layout .totals>div,#app.pos-layout .grand-total,#app.pos-layout .grand-total *{background:transparent!important;border-color:var(--pos-line)!important}
#app.pos-layout .grand-total{border:0!important;padding:5px 0 10px!important}
#app.pos-layout .grand-total dt{font:700 15px 'DM Sans',sans-serif!important}
#app.pos-layout .grand-total dd{font-size:32px!important}
#app.pos-layout .quote-status{color:var(--pos-muted)!important;margin:0 0 12px;font-size:11px}
#app.pos-layout .pay-button{background:var(--pos-orange)!important;color:#1b1007!important;border-color:var(--pos-orange)!important;min-height:54px!important;font-size:17px!important;box-shadow:0 4px 10px #ff650018!important}
#app.pos-layout .pay-button:disabled{opacity:1;background:var(--pos-soft-strong)!important;border-color:var(--pos-soft-strong)!important;color:var(--pos-control-ink)!important}
#app.pos-layout .pos-secondary-actions{gap:7px!important}
#app.pos-layout .pos-secondary-actions>.button{background:var(--pos-soft)!important;border-color:var(--pos-soft-strong)!important;min-height:66px!important;font-size:11px!important;border-radius:10px!important;gap:6px}
#app.pos-layout .pos-secondary-actions>[data-action=send-kitchen]{background:var(--pos-surface)!important;border-color:var(--pos-soft-strong)!important}
#app.pos-layout .pos-more>summary{background:transparent!important;border-color:var(--pos-line)!important;color:var(--pos-muted)!important;margin-top:2px;min-height:30px!important;height:30px!important}
#app.pos-layout .pos-more-menu{background:var(--pos-surface)!important;color:var(--pos-ink)!important;border-color:var(--pos-line)!important}
#app.pos-layout .empty{background:transparent!important;padding:30px 12px}
#app.pos-layout .empty>svg{color:var(--pos-muted)!important;background:var(--pos-hover);padding:14px;width:64px;height:64px;border-radius:18px;box-sizing:content-box}
#app.pos-layout .empty h3{font-size:17px;margin-top:14px}
#app.pos-layout .empty p{color:var(--pos-muted)!important;font-size:12px;line-height:1.65}
#app.pos-layout .pos-bill-bar{border-color:var(--pos-line)!important}
:root[data-theme=dark] #app.pos-layout .pos-brand .brand-logo-light{display:none!important}
:root[data-theme=dark] #app.pos-layout .pos-brand .brand-logo-dark{display:block!important}
body:has(.pos-layout) #dialog{--line:var(--pos-line);--muted:var(--pos-muted);border:1px solid var(--pos-line)}
body:has(.pos-layout) #dialog input,body:has(.pos-layout) #dialog select,body:has(.pos-layout) #dialog textarea{background:var(--pos-raised)!important;color:var(--pos-ink)!important;border-color:var(--pos-line)!important}
body:has(.pos-layout) #dialog .button{background:var(--pos-soft);color:var(--pos-control-ink);border-color:var(--pos-soft-strong)}
body:has(.pos-layout) #dialog .button.primary{background:var(--pos-orange);color:#1b1007;border-color:var(--pos-orange)}
@media(max-width:1199px){#app.pos-layout .pos-grid{grid-template-columns:minmax(0,1fr) 360px!important;padding:12px!important;gap:12px!important}#app.pos-layout .pos-toolbar{padding-inline:14px!important}#app.pos-layout .pos-toolbar-orders .button{padding-inline:10px}#app.pos-layout .pos-toolbar-start{gap:16px}}
@media(max-width:900px){#app.pos-layout .pos-grid{grid-template-columns:minmax(0,1fr) 330px!important}#app.pos-layout .pos-toolbar-orders{justify-content:flex-start!important}#app.pos-layout .pos-toolbar-utilities{border:0;padding:0}#app.pos-layout .catalogue{padding:0!important}#app.pos-layout .ticket{padding:14px!important}#app.pos-layout .payment-panel{padding:12px 14px!important}}
@media(max-width:650px){#app.pos-layout .pos-toolbar{padding:10px!important}#app.pos-layout .pos-toolbar-start{gap:12px;flex:1!important}#app.pos-layout .pos-toolbar-orders{justify-content:space-between!important}#app.pos-layout .pos-toolbar-orders .button{min-height:36px;padding:8px}#app.pos-layout .pos-grid{padding:12px 10px 66px!important}#app.pos-layout .pos-order-column{border:1px solid var(--pos-line)!important}#app.pos-layout .category-chip{padding:10px 14px!important}#app.pos-layout .pos-brand,#app.pos-layout .pos-brand img{width:96px!important}#app.pos-layout .pos-dashboard{font-size:10px!important;max-width:124px;white-space:normal}#app.pos-layout .pos-toolbar-utilities{gap:4px}#app.pos-layout .pos-toolbar-utilities .icon-button{width:32px;min-height:36px}#app.pos-layout .product-card{padding:6px!important}#app.pos-layout .product-card-copy{padding:10px 2px 3px!important}#app.pos-layout .product-card-copy strong{font-size:13px!important}#app.pos-layout .pos-bill-bar{border-top:1px solid var(--pos-line)!important}}
@media(max-width:360px){#app.pos-layout .pos-toolbar-start{flex:0 0 100%!important;justify-content:space-between}#app.pos-layout .pos-toolbar-utilities{margin-left:auto;position:absolute;right:10px;top:70px}#app.pos-layout .pos-toolbar-orders{padding-right:110px;flex-wrap:wrap;gap:5px!important}#app.pos-layout .pos-toolbar-orders .button{min-width:0;flex:1 0 28%;padding:7px 4px;font-size:9px!important}#app.pos-layout .pos-toolbar-orders .trigger-caret{display:none}#app.pos-layout .pos-toolbar-orders .icon{width:13px!important}#app.pos-layout #main{height:calc(100dvh - 150px)!important}#app.pos-layout .pos-ticket-header h2{font-size:18px}#app.pos-layout .pay-button{font-size:14px!important}}
/* Order details collapse independently from the selected-item list. */
#app.pos-layout .ticket{overflow:hidden!important;gap:0}
#app.pos-layout .pos-ticket-header{flex-shrink:0;margin-bottom:14px}
#app.pos-layout .pos-selected-items{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#app.pos-layout .pos-selected-items>header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;padding:0 0 10px;border-bottom:1px solid var(--pos-line)}
#app.pos-layout .pos-selected-items h3{font:800 13px 'DM Sans',sans-serif;margin:0;color:var(--pos-ink)}
#app.pos-layout #pos-selected-count{font:600 11px 'DM Sans',sans-serif;color:var(--pos-muted)}
#app.pos-layout #cart-lines{flex:1;min-height:0;overflow:auto!important;overscroll-behavior:contain}
#app.pos-layout #cart-lines>.empty{padding:20px 5px}
#app.pos-layout #cart-lines>.empty>svg{width:36px;height:36px;padding:12px}
#app.pos-layout #cart-lines>.empty h3{margin-top:10px;font-size:15px}
/* Keep selected rows visible even while order details are expanded. */
#app.pos-layout .pos-selected-items{flex:1 0 140px;min-height:140px}
#app.pos-layout .pos-secondary-actions>.button{height:66px!important}
#app.pos-layout .payment-panel .totals{margin:0!important}
#app.pos-layout .payment-panel .totals>div{min-height:0!important;padding:5px 0!important}
#app.pos-layout .payment-panel .totals>.grand-total{padding:10px 0!important}
#app.pos-layout .pos-secondary-actions>.button{height:78px!important;min-height:78px!important;gap:3px!important;padding:7px 3px!important;justify-content:center!important}
#app.pos-layout .pos-secondary-actions>.button>svg{flex:0 0 18px!important;width:18px!important;height:18px!important;margin:0!important}
#app.pos-layout .pos-secondary-actions>.button>span{flex:0 0 auto!important;font-size:10px;line-height:1.2;margin:0!important}
#app.pos-layout .pos-secondary-actions>.button>kbd{flex:0 0 auto!important;line-height:10px;margin:0!important;font-size:9px}
#app.pos-layout .payment-panel .totals{gap:0!important}
#app.pos-layout .payment-panel .totals>div:not(.grand-total){padding:4px 0!important;line-height:18px}
/* Fixed context, independently scrolling items, anchored payment. */
#app.pos-layout .pos-fixed-details{flex:0 0 auto;padding:0 0 14px;margin-bottom:14px;border-bottom:1px solid var(--pos-line)}
#app.pos-layout .pos-fixed-details .pos-channel-tabs{margin-bottom:10px}
#app.pos-layout .pos-fixed-details .ticket-context{margin-bottom:8px}
#app.pos-layout .pos-extra-trigger{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:32px;padding:7px 10px;font-size:11px!important}
#app.pos-layout .pos-extra-trigger svg{width:15px;height:15px}
#app.pos-layout .pos-selected-items{flex:1 1 0;min-height:70px}
#app.pos-layout .pos-ticket-header{margin-bottom:12px}
#app.pos-layout #pos-ticket-extras{width:min(440px,calc(100vw - 24px));max-width:100vw;height:100dvh;max-height:100dvh;margin:0 0 0 auto;padding:0;border:0;border-left:1px solid var(--pos-line);border-radius:16px 0 0 16px;background:var(--pos-surface);color:var(--pos-ink);box-shadow:-12px 0 40px #0001}
#app.pos-layout #pos-ticket-extras::backdrop{background:#0005}
#app.pos-layout #pos-ticket-extras .panel-header{padding:20px 22px;border-bottom:1px solid var(--pos-line)}
#app.pos-layout #pos-ticket-extras .panel-header h2{font:800 19px/1.3 Manrope,sans-serif;margin:0;color:var(--pos-ink)}
#app.pos-layout #pos-ticket-extras .panel-body{display:flex;flex-direction:column;gap:16px;padding:22px;overflow-y:auto;scrollbar-width:none}
#app.pos-layout #pos-ticket-extras .panel-body::-webkit-scrollbar{width:0;height:0}
#app.pos-layout #pos-ticket-extras .field{margin:0 0 14px}
#app.pos-layout #pos-ticket-extras .pos-note-field{display:flex;margin:0}
#app.pos-layout #pos-ticket-extras textarea{width:100%;min-height:88px}
#app.pos-layout #pos-ticket-extras .panel-footer{display:flex;justify-content:flex-end;padding:14px 22px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--pos-line);background:var(--pos-surface)}
#app.pos-layout #pos-ticket-extras .panel-footer .primary{min-width:110px;background:var(--pos-orange)!important;color:#1b1007!important;border-color:var(--pos-orange)!important}
@media(max-width:700px){#app.pos-layout #pos-ticket-extras{width:100vw;border-radius:0}#app.pos-layout #pos-ticket-extras .panel-header{padding:calc(16px + env(safe-area-inset-top)) 18px 16px}#app.pos-layout #pos-ticket-extras .panel-body{padding:18px}#app.pos-layout #pos-ticket-extras .panel-footer{padding-inline:18px}}
@media(max-height:800px){#app.pos-layout .ticket{padding:12px 16px!important}#app.pos-layout .pos-ticket-header{margin-bottom:8px}#app.pos-layout .pos-fixed-details{padding-bottom:8px;margin-bottom:8px}#app.pos-layout .pos-fixed-details .pos-channel-tabs{margin-bottom:7px}#app.pos-layout .pos-fixed-details .pos-channel-tabs button{min-height:32px}#app.pos-layout .payment-panel{padding:10px 16px!important}#app.pos-layout .pos-secondary-actions>.button{min-height:68px!important;height:68px!important}#app.pos-layout .grand-total dd{font-size:27px!important}}
#app.pos-layout .pos-fixed-details .ticket-context{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 34px;margin-bottom:0}
#app.pos-layout .pos-extra-trigger{width:34px;min-height:40px;padding:8px;justify-content:center}
#app.pos-layout .pos-extra-trigger span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#app.pos-layout .pos-total-breakdown{display:block!important}
#app.pos-layout .pos-total-breakdown>summary{display:flex!important;align-items:center;justify-content:space-between;padding:4px 0;font-size:11px;color:var(--pos-muted);cursor:pointer;list-style:none}
#app.pos-layout .pos-total-breakdown:not([open])>dl{display:none!important}
#app.pos-layout .pos-total-breakdown>summary svg{width:13px;height:13px}
#app.pos-layout .pos-order-column .ticket{flex:1 1 0!important;height:auto!important;max-height:none!important;min-height:0!important}
#app.pos-layout .pos-order-column .payment-panel{flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important}
#app.pos-layout .payment-panel{gap:0!important}
#app.pos-layout .payment-body{flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important}
#app.pos-layout .pos-actions{display:block!important;height:auto!important;min-height:0!important}
#app.pos-layout .pos-actions .pay-button{height:54px!important;min-height:54px!important}
#app.pos-layout .pos-secondary-actions{height:auto!important;min-height:0!important;grid-auto-rows:auto!important}
#app.pos-layout .pos-more{height:auto!important;min-height:0!important}
#app.pos-layout .pos-total-breakdown>summary{height:24px!important;min-height:24px!important;padding:3px 0!important;line-height:18px}
#app.pos-layout .pos-secondary-actions{margin:0!important}
#app.pos-layout .pos-fixed-details .pos-context-field{margin:0!important;min-height:38px!important}
#app.pos-layout .pos-fixed-details .pos-context-field input,#app.pos-layout .pos-fixed-details .pos-context-field select{min-height:36px!important}
#app.pos-layout .pos-fixed-details .pos-extra-trigger{margin:0!important}
@media(max-width:900px),(max-height:800px){#app.pos-layout .payment-panel .totals>.grand-total{padding:4px 0!important;margin:0!important}#app.pos-layout .payment-panel .quote-status{margin-bottom:6px!important}#app.pos-layout .pos-fixed-details{padding-bottom:8px;margin-bottom:8px}#app.pos-layout .pos-fixed-details .pos-channel-tabs{margin-bottom:8px;padding:4px!important}#app.pos-layout .pos-fixed-details .pos-channel-tabs button{min-height:32px!important}#app.pos-layout .pos-ticket-header{margin-bottom:8px}}
@media(max-width:650px){#app.pos-layout .pos-fixed-details{height:104px;min-height:104px}#app.pos-layout .pos-fixed-details .pos-channel-tabs{height:42px!important;min-height:0!important;margin:0 0 8px!important}#app.pos-layout .pos-fixed-details .pos-channel-tabs button{white-space:nowrap;font-size:10px!important;padding:6px 3px!important;gap:3px}#app.pos-layout .pos-fixed-details .pos-channel-tabs svg{width:16px!important;height:16px!important;flex-shrink:0}#app.pos-layout .pos-fixed-details .ticket-context{height:40px!important;min-height:0!important;margin:0!important}#app.pos-layout .pos-fixed-details .pos-context-field{height:40px!important;padding:0 5px!important}#app.pos-layout.pos-show-bill .pos-grid{padding-bottom:44px!important}#app.pos-layout.pos-show-bill .pos-bill-bar{height:40px!important;padding:4px 10px}#app.pos-layout.pos-show-bill .pos-bill-bar>div,#app.pos-layout.pos-show-bill #pos-bill-count{display:none}#app.pos-layout.pos-show-bill .pos-bill-bar .button{min-height:30px;padding:5px 10px;font-size:11px}}
@media(max-width:650px) and (max-height:750px){#app.pos-layout .pos-secondary-actions{grid-template-columns:repeat(5,minmax(0,1fr))!important}#app.pos-layout .pos-secondary-actions>.button{height:58px!important;min-height:58px!important;padding:5px 2px!important}#app.pos-layout .pos-secondary-actions>.button>kbd{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#app.pos-layout .pos-more{grid-column:auto}#app.pos-layout .pos-more>summary{height:58px!important;min-height:58px!important;flex-direction:column!important;padding:5px 2px!important;gap:4px!important;color:var(--pos-control-ink)!important;background:var(--pos-surface)!important;font-size:10px!important}#app.pos-layout .pos-more>summary svg:last-child{display:none}#app.pos-layout .payment-panel .quote-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);margin:0!important}}
@media(max-width:650px){#app.pos-layout .pos-ticket-line{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto 28px!important;gap:6px 8px!important;padding:10px 0!important}#app.pos-layout .pos-ticket-line .pos-line-photo{grid-column:1;grid-row:1/3}#app.pos-layout .pos-ticket-line .pos-line-photo img,#app.pos-layout .pos-ticket-line .pos-line-photo .cart-image{width:42px!important;height:42px!important}#app.pos-layout .pos-ticket-line .cart-line-name{grid-column:2/4;grid-row:1}#app.pos-layout .pos-ticket-line .quantity{display:inline-flex!important;grid-column:2;grid-row:2;width:max-content;align-items:center;gap:6px}#app.pos-layout .pos-ticket-line .quantity button{width:22px;min-height:24px}#app.pos-layout .pos-ticket-line>.money{display:block!important;grid-column:3;grid-row:2;font-size:12px;align-self:center}#app.pos-layout .pos-ticket-line .pos-line-remove{display:flex!important;grid-column:4;grid-row:1/3;align-self:start}#app.pos-layout .pos-ticket-line .pos-line-extras,#app.pos-layout .pos-ticket-line .pos-line-note{grid-column:2/-1;grid-row:auto}}
@media(max-width:650px){#app.pos-layout .pos-ticket-line{padding:8px 0!important}#app.pos-layout .pos-ticket-line .cart-line-name>small{display:none}#app.pos-layout .pos-ticket-line .cart-line-name>strong{font-size:13px!important;line-height:17px!important}}
/* Balanced compact ticket: reserve vertical space for the selected food. */
#app.pos-layout .pos-order-column .ticket{padding:12px 16px!important}
#app.pos-layout .pos-ticket-header{margin-bottom:8px;min-height:34px}
#app.pos-layout .pos-ticket-header h2{font-size:18px;line-height:1.2}
#app.pos-layout .pos-ticket-header .button{min-height:32px;padding:6px 8px}
#app.pos-layout .pos-fixed-details{height:auto;min-height:0;padding-bottom:8px;margin-bottom:8px}
#app.pos-layout .pos-fixed-details .pos-channel-tabs{height:42px!important;min-height:0!important;padding:4px!important;margin:0 0 8px!important}
#app.pos-layout .pos-fixed-details .pos-channel-tabs button{min-height:32px!important;padding:6px 4px!important;font-size:11px!important;gap:4px}
#app.pos-layout .pos-fixed-details .pos-channel-tabs svg{width:16px;height:16px}
#app.pos-layout .pos-fixed-details .ticket-context{height:38px!important;margin:0!important}
#app.pos-layout .pos-fixed-details .pos-context-field,#app.pos-layout .pos-extra-trigger{height:38px!important;min-height:38px!important;margin:0!important}
#app.pos-layout .pos-selected-items>header{padding-bottom:7px}
#app.pos-layout .pos-order-column .payment-panel{padding:10px 16px!important}
#app.pos-layout .payment-panel .totals>.grand-total{padding:4px 0!important;margin:0!important}
#app.pos-layout .grand-total dd{font-size:27px!important;line-height:1.2!important}
#app.pos-layout .payment-panel .quote-status{font-size:10px;line-height:14px;margin:0 0 6px!important}
#app.pos-layout .pos-actions .pay-button{height:44px!important;min-height:44px!important;font-size:15px!important;margin:0 0 7px!important}
#app.pos-layout .pos-secondary-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
#app.pos-layout .pos-secondary-actions>.button{flex-direction:row!important;height:36px!important;min-height:36px!important;padding:7px 8px!important;gap:6px!important;justify-content:flex-start!important}
#app.pos-layout .pos-secondary-actions>.button>span{font-size:11px;line-height:16px;flex:1 1 auto!important;text-align:left}
#app.pos-layout .pos-secondary-actions>.button>svg{width:16px!important;height:16px!important;flex:0 0 16px!important}
#app.pos-layout .pos-secondary-actions>.button>kbd{position:static;width:auto;height:auto;clip:auto;font-size:8px;line-height:10px}
#app.pos-layout .pos-more{grid-column:1/-1}
#app.pos-layout .pos-more>summary{flex-direction:row!important;height:26px!important;min-height:26px!important;padding:4px 8px!important;gap:6px!important;font-size:10px!important;margin:0}
#app.pos-layout .pos-more>summary svg:last-child{display:block}
@media(max-width:650px){#app.pos-layout .pos-fixed-details{height:98px;min-height:98px}#app.pos-layout .pos-fixed-details .pos-channel-tabs button{font-size:10px!important}#app.pos-layout .pos-secondary-actions>.button>kbd{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#app.pos-layout .pos-order-column .ticket,#app.pos-layout .pos-order-column .payment-panel{padding:10px 12px!important}}
@media(max-width:650px) and (max-height:750px){#app.pos-layout .pos-secondary-actions{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important}#app.pos-layout .pos-secondary-actions>.button{height:52px!important;min-height:52px!important;flex-direction:column!important;gap:3px!important;padding:4px 2px!important}#app.pos-layout .pos-secondary-actions>.button>span{flex:0 0 auto!important;text-align:center;font-size:9px;line-height:11px}#app.pos-layout .pos-more{grid-column:auto}#app.pos-layout .pos-more>summary{height:52px!important;min-height:52px!important;flex-direction:column!important;padding:4px 2px!important}#app.pos-layout .pos-more>summary svg:last-child{display:none}}
@media(min-width:651px){#app.pos-layout .pos-ticket-line{display:grid!important;grid-template-columns:48px minmax(0,1fr) auto 26px!important;gap:5px 8px!important;padding:10px 0!important}#app.pos-layout .pos-ticket-line .pos-line-photo{grid-column:1;grid-row:1/3}#app.pos-layout .pos-ticket-line .pos-line-photo img,#app.pos-layout .pos-ticket-line .pos-line-photo .cart-image{width:48px!important;height:48px!important}#app.pos-layout .pos-ticket-line .cart-line-name{grid-column:2/4;grid-row:1;display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 7px}#app.pos-layout .pos-ticket-line .cart-line-name strong{font-size:14px!important;line-height:19px}#app.pos-layout .pos-ticket-line .cart-line-name small{font-size:10px;line-height:14px}#app.pos-layout .pos-ticket-line .quantity{display:inline-flex!important;grid-column:2;grid-row:2;width:max-content;align-items:center;gap:7px}#app.pos-layout .pos-ticket-line .quantity button{width:26px;min-height:26px}#app.pos-layout .pos-ticket-line>.money{grid-column:3;grid-row:2;font-size:13px;align-self:center}#app.pos-layout .pos-ticket-line .pos-line-remove{grid-column:4;grid-row:1/3;align-self:start;width:26px}#app.pos-layout .pos-ticket-line .pos-line-extras,#app.pos-layout .pos-ticket-line .pos-line-note{grid-column:2/-1;grid-row:auto}}
/* Prevent inherited touch-control and thumbnail minimums stretching ticket rows. */
#app.pos-layout .pos-ticket-line{min-height:0!important}
#app.pos-layout .pos-ticket-line .pos-line-photo{width:48px!important;height:48px!important;min-height:0!important;align-self:start}
#app.pos-layout .pos-ticket-line .quantity{height:28px!important;min-height:28px!important;padding:0!important;gap:5px!important}
#app.pos-layout .pos-ticket-line .quantity button{width:28px!important;height:28px!important;min-height:28px!important;padding:0!important}
#app.pos-layout .pos-ticket-line .quantity>span{min-height:0!important;line-height:26px!important}
#app.pos-layout .pos-ticket-line .cart-line-name{min-height:0!important}
@media(max-width:650px){#app.pos-layout .pos-ticket-line .pos-line-photo{width:42px!important;height:42px!important}}
/* One complete focus treatment, on the field's outer boundary. */
#app.pos-layout{--pos-focus-glow:#ff650020}
:root[data-theme=dark] #app.pos-layout{--pos-focus-glow:color-mix(in srgb,var(--pos-orange) 16%,transparent)}
#app.pos-layout :is(input,select,textarea):focus{outline:none!important;outline-offset:0!important;border-color:var(--pos-orange)!important;box-shadow:0 0 0 2px var(--pos-focus-glow)!important}
#app.pos-layout :is(.pos-context-field,.pos-note-field):focus-within{border-color:var(--pos-orange)!important;box-shadow:0 0 0 2px var(--pos-focus-glow)!important}
#app.pos-layout :is(.pos-context-field,.pos-note-field) :is(input,select,textarea):focus{outline:none!important;border-color:transparent!important;box-shadow:none!important}
body:has(.pos-layout) #dialog :is(input,select,textarea):focus{outline:none!important;outline-offset:0!important;border-color:var(--pos-orange)!important;box-shadow:0 0 0 2px #ff650020!important}
body:has(.pos-layout) #dialog :is(button,a):focus-visible{outline:2px solid var(--pos-orange)!important;outline-offset:2px}
/* Feedback is an active orange bar at the top, in either theme. */
#toast,#toast.error{position:fixed;inset:auto;top:max(14px,env(safe-area-inset-top));left:50%;bottom:auto;transform:translate(-50%,-8px);display:flex;align-items:center;gap:12px;width:min(680px,calc(100vw - 28px));max-width:calc(100vw - 28px);box-sizing:border-box;margin:0;padding:13px 14px;background:#ff8b3d!important;color:#000!important;border:1px solid #ff6500;border-radius:12px;box-shadow:0 6px 24px #0000001a;z-index:2147483647;font:600 14px/1.5 'DM Sans',sans-serif;opacity:0;pointer-events:none;transition:opacity .16s ease,transform .16s ease}
#toast.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
#toast .alert-bar-icon{display:grid;place-items:center;flex:0 0 28px}
#toast .alert-bar-icon svg{width:23px;height:23px;color:#000}
#toast .alert-bar-message{flex:1;min-width:0;overflow-wrap:anywhere}
#toast .alert-bar-close{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;min-height:32px;padding:6px;border:0;border-radius:8px;color:#000;background:#ffffff38;cursor:pointer}
#toast .alert-bar-close:hover{background:#ffffff68}
#toast .alert-bar-close svg{width:18px;height:18px}
#toast .alert-bar-close:focus-visible{outline:2px solid #000;outline-offset:2px}
#notification-dropdown{position:fixed!important;inset:auto!important;top:88px!important;right:16px!important;width:min(420px,calc(100vw - 32px))!important;max-height:min(560px,calc(100dvh - 110px))!important;overflow:hidden!important;z-index:1000}
#notification-dropdown .notification-item{border-radius:0}
#notification-dropdown .notification-item>.icon{color:var(--accent,var(--orange))}
.service-request-tray.calm-panel:not(.is-collapsed){top:88px!important;bottom:auto!important;right:16px!important;max-height:calc(100dvh - 110px)!important;overflow:auto;background:#fff2e8!important;color:#000!important;border:1px solid #ffb47f!important;border-radius:12px!important;box-shadow:0 8px 28px #0000001a}
.service-request-tray.calm-panel:not(.is-collapsed)>header{background:#ff8b3d!important;color:#000!important}
.service-request-tray.calm-panel:not(.is-collapsed) :is(h2,h3,p,strong,small,a){color:#000!important}
@media(max-width:650px){#toast,#toast.error{padding:10px 11px;font-size:13px;gap:8px}#notification-dropdown,.service-request-tray.calm-panel:not(.is-collapsed){top:142px!important;right:10px!important;width:calc(100vw - 20px)!important;max-height:calc(100dvh - 158px)!important}}
@media(prefers-reduced-motion:reduce){#toast{transition:none}}
.service-request-tray.calm-panel:not(.is-collapsed) :is(.button,.icon-button){background:#ffd8ba!important;color:#000!important;border-color:#ffb47f!important}

/* Saved-ticket status stays inside the menu pane; it never displaces checkout. */
#app.pos-layout #pos-offline-status {flex:0 0 auto;align-self:flex-start;max-width:100%;min-height:32px!important;padding:6px 10px!important;margin:0 0 8px;font-size:12px!important;white-space:normal;text-align:left;background:var(--pos-surface)!important;border-color:var(--pos-orange)!important;color:var(--pos-ink)!important;}
#app.pos-layout #pos-offline-status:hover {background:var(--pos-hover)!important;}

@media(max-width:1279px) and (min-width:901px){#app.pos-layout .catalogue>.product-grid[data-view-mode="grid-nine"]{grid-template-columns:repeat(6,minmax(0,1fr))!important}}
@media(max-width:900px) and (min-width:651px){#app.pos-layout .catalogue>.product-grid[data-view-mode="grid-nine"]{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:650px){#app.pos-layout .pos-view-toggle{margin-left:auto}#app.pos-layout .catalogue>.product-grid[data-view-mode="grid-nine"]{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px 8px!important}#app.pos-layout .catalogue>.product-grid[data-view-mode="list"]{gap:5px!important}#app.pos-layout .pos-list-item{grid-template-columns:42px minmax(0,1fr) auto 66px;gap:7px;min-height:52px;padding:5px 7px}#app.pos-layout .pos-list-image{width:40px;height:40px}#app.pos-layout .pos-list-name,#app.pos-layout .pos-list-price{font-size:11px}#app.pos-layout .pos-list-add{min-height:34px!important;padding:6px 7px!important;font-size:11px!important}#app.pos-layout .pos-list-add .icon{display:none}}
@media(max-width:390px){#app.pos-layout .catalogue>.product-grid[data-view-mode="grid-nine"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Keep the POS return action compact and align its subtitle with the brand mark. */
#app.pos-layout .pos-brand{align-items:center!important}
#app.pos-layout .pos-brand .brand-logo{width:100%!important;max-width:100%}
#app.pos-layout .pos-brand small{width:100%;padding-left:0!important;text-align:center}
#app.pos-layout .pos-toolbar .pos-dashboard{display:inline-grid!important;place-items:center;width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;flex:0 0 42px!important;padding:0!important;border-radius:12px!important;background:var(--pos-soft)!important;color:var(--pos-control-ink)!important}
#app.pos-layout .pos-toolbar .pos-dashboard>.icon{width:19px!important;height:19px!important;flex:none}
#app.pos-layout .pos-toolbar .pos-dashboard:focus-visible{outline:2px solid var(--pos-orange)!important;outline-offset:3px}

/* Use the same POS palette for the workspace and dialogs mounted beside it. */
body:has(.pos-layout) #dialog {
  --surface: var(--pos-surface);
  --raised: var(--pos-hover);
  --ink: var(--pos-ink);
  --muted: var(--pos-muted);
  --line: var(--pos-line);
  --primary: var(--pos-orange);
  --primary-hover: var(--pos-pressed);
  --on-primary: #1b1007;
  --pos-dialog-focus: color-mix(in srgb, var(--pos-orange) 18%, transparent);
}

body:has(.pos-layout) #dialog :is(input, select, textarea):focus {
  box-shadow: 0 0 0 2px var(--pos-dialog-focus) !important;
}
