/* POS: a stable workspace for repeated touch input, with no decorative blur. */
:root[data-theme] body.pos-mode{background:var(--surface-2)}
:root[data-theme] .pos-mode .shell{display:block;padding:12px;max-width:none}
.pos-mode .sidebar{display:none}
:root[data-theme] .pos-mode .sidebar.open{display:flex;position:fixed;z-index:40;inset:12px auto 12px 12px;width:260px;height:calc(100dvh - 24px);background:var(--surface);overflow-y:auto;box-shadow:var(--shadow)}
.pos-mode .topbar .mobile-nav{display:inline-flex;align-items:center;justify-content:center}
.pos-mode .mobile-bottom{display:none!important}
:root[data-theme] .pos-mode .main:has(.pos-pro){height:calc(100dvh - 24px);display:flex;flex-direction:column;overflow:hidden;min-width:0}
.pos-mode .topbar{height:50px;min-height:50px;flex-shrink:0}
.pos-mode .topbar .status{display:none}
.pos-mode .topbar .assistant-launch{width:44px;min-height:44px;padding:0;justify-content:center}
.pos-mode .topbar .assistant-launch span{display:none}
:root[data-theme] .pos-mode .main>.content{padding:8px 0 0;flex:1;min-height:0;display:flex;flex-direction:column}
.pos-mode .page-head{display:none}
:root[data-theme] .pos-mode .demo-banner{padding:5px 10px;margin:0 0 10px;font-size:10px;flex-shrink:0;background:transparent;border:0}
.pos-mode .demo-banner>span:last-child{display:none}
.pos-mode .pos-pro{flex:1;display:flex;flex-direction:column;min-height:0}
:root[data-theme] .pos-mode .pos-pro .op-toolbar{flex-direction:row;align-items:end;gap:12px;margin:0 0 12px;flex-shrink:0}
.pos-mode .op-toolbar .actions{margin-left:auto;flex-wrap:nowrap}
.pos-mode .op-selectors{flex:1;min-width:0;gap:10px}
:root[data-theme] .pos-mode .op-selectors .field{min-width:0;max-width:260px;flex:1;font-size:11px;gap:4px}
:root[data-theme] .pos-mode .op-selectors select{font-size:16px;padding:9px 30px 9px 12px;height:44px;min-height:44px}
:root[data-theme] .pos-mode button{touch-action:manipulation;min-height:44px;box-shadow:none;backdrop-filter:none;-webkit-tap-highlight-color:transparent}
:root[data-theme] .pos-mode .op-toolbar button{font-size:13px;padding:10px 16px;white-space:nowrap}
:root[data-theme] .pos-mode .pos-workspace{flex:1;min-height:0;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 342px;gap:14px}
:root[data-theme] .pos-mode .pos-catalog{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:0}
.pos-mode .op-catalog-head{flex-shrink:0}
:root[data-theme] .pos-mode .op-search{margin:0 0 8px;padding:2px 8px 2px 14px;border-color:var(--line);border-radius:14px}
:root[data-theme] .pos-mode .op-search input{font-size:16px;min-height:44px;padding:9px 0}
:root[data-theme] .pos-mode .op-search button{min-width:44px;width:44px;padding:0;font-size:24px;border:0;background:transparent}
:root[data-theme] .pos-mode .op-search button.selected{color:var(--accent);background:var(--selected)}
:root[data-theme] .pos-mode .op-categories{gap:8px;flex-shrink:0;margin:0 0 10px;padding:0 0 4px;scrollbar-width:thin}
:root[data-theme] .pos-mode .op-categories button{font-size:13px;min-height:44px;padding:10px 18px;border-radius:12px}
:root[data-theme] .pos-mode .op-products{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;grid-auto-rows:max-content;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:12px;padding:1px 4px 12px 1px;scrollbar-width:thin}
:root[data-theme] .pos-mode .op-product{border-radius:16px;box-shadow:none;transition:none;background:var(--surface);border:1px solid var(--line);overflow:hidden;align-self:start}
:root[data-theme] .pos-mode .op-product:hover{transform:none;box-shadow:none}
:root[data-theme] .pos-mode .op-product-add{height:auto;min-height:110px;color:var(--ink);touch-action:manipulation}
:root[data-theme] .pos-mode .op-product-add:active{background:var(--selected)!important}
:root[data-theme] .pos-mode .op-product-add>img{height:96px;width:100%;object-fit:cover;filter:none}
:root[data-theme] .pos-mode .op-product-add>div{padding:12px 14px}
:root[data-theme] .pos-mode .op-product-add h3{font-size:16px;font-weight:600;letter-spacing:-.3px;line-height:1.3;margin:0;min-height:42px;overflow-wrap:anywhere}
:root[data-theme] .pos-mode .op-product-add footer{margin:9px 0 0;min-height:26px}
:root[data-theme] .pos-mode .op-product-add footer strong{font-size:19px;letter-spacing:-.4px}
:root[data-theme] .pos-mode .op-product-add small{font-size:11px;color:var(--warning);min-height:0}
.pos-mode .op-stock:empty{display:none}
:root[data-theme] .pos-mode .op-added-count{background:var(--button);color:var(--button-ink);font-size:13px;font-weight:600;min-width:26px;height:26px;padding:4px 7px;border-radius:8px;text-align:center}
.pos-mode [hidden]{display:none!important}
:root[data-theme] .pos-mode .op-favorite{width:44px;height:44px;min-height:44px;top:6px;right:6px}
:root[data-theme] .pos-mode .op-ticket{height:100%;min-height:0;align-self:stretch;overflow:hidden;display:flex;flex-direction:column;margin:0;border-radius:18px;background:var(--surface);border:1px solid var(--line);box-shadow:none}
:root[data-theme] .pos-mode .op-ticket-head{padding:16px 16px 10px;flex-shrink:0;border-bottom:1px solid var(--line)}
.pos-mode .op-ticket-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
:root[data-theme] .pos-mode .op-ticket-head h2{display:block;font-size:20px;letter-spacing:-.5px;margin:0;font-weight:600}
:root[data-theme] .pos-mode .op-account-summary{display:block;width:100%;margin-top:5px;background:transparent;border:0;text-align:left;padding:9px 0;font-size:13px;color:var(--muted);white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.pos-mode .op-back-catalog{display:none}
:root[data-theme] .pos-mode .op-cart-lines{flex:1;min-height:70px;overflow-y:auto;overscroll-behavior:contain;padding:0 14px;scrollbar-width:thin}
:root[data-theme] .pos-mode .op-cart-line{padding:12px 0;gap:8px;align-items:start}
:root[data-theme] .pos-mode .op-line-info{flex:1;min-width:0;padding:0;background:transparent;border:0;text-align:left;line-height:1.35}
:root[data-theme] .pos-mode .op-line-info strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
:root[data-theme] .pos-mode .op-line-info small{font-size:12px;line-height:1.4;margin-top:6px;overflow-wrap:anywhere}
:root[data-theme] .pos-mode .op-quantity{grid-template-columns:44px 22px 44px;gap:3px;flex-shrink:0}
:root[data-theme] .pos-mode .op-quantity button{width:44px;height:44px;min-height:44px;border:1px solid var(--line);font-size:21px;border-radius:12px;padding:0}
:root[data-theme] .pos-mode .op-quantity strong{font-size:14px;text-align:center}
:root[data-theme] .pos-mode .op-line-total{font-size:14px;margin-top:4px;font-variant-numeric:tabular-nums}
:root[data-theme] .pos-mode .op-empty{font-family:inherit;font-size:20px;padding:40px 10px;color:var(--ink)}
:root[data-theme] .pos-mode .op-empty span{font-size:13px;line-height:1.6}
:root[data-theme] .pos-mode .op-payment{flex-shrink:0;padding:14px 16px 10px;background:var(--surface);border-top:1px solid var(--line)}
:root[data-theme] .pos-mode .op-total{margin:0 0 12px}
:root[data-theme] .pos-mode .op-total>span{font-size:13px}
:root[data-theme] .pos-mode .op-total small{font-size:11px}
:root[data-theme] .pos-mode .op-total>strong{font-size:30px;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.pos-mode .op-pay-methods{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px}
:root[data-theme] .pos-mode .op-pay-methods button{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 4px;font-size:13px;border:1px solid var(--line);border-radius:11px}
:root[data-theme] .pos-mode .op-pay-methods button.selected{background:var(--selected);color:var(--ink);border-color:var(--accent)}
.pos-mode .op-pay-methods .icon{width:18px;height:18px;flex-shrink:0}
:root[data-theme] .pos-mode .op-charge{width:100%;min-height:54px;font-size:18px;letter-spacing:-.3px;border-radius:13px}
:root[data-theme] .pos-mode .op-cart-actions{margin:4px 0 0;gap:10px}
:root[data-theme] .pos-mode .op-cart-actions button{min-height:44px;padding:8px;font-size:12px}
.pos-mode .op-payment-notice{font-size:11px;color:var(--muted);line-height:1.4;margin:0}
.pos-mode .op-mobile-total{display:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.op-tools-menu{display:grid;gap:10px}.op-tools-menu button{min-height:48px;text-align:left}
#op-details-form{display:grid;gap:16px}
:root[data-theme] .pos-mode .modal :is(input,select,textarea){font-size:16px}
:root[data-theme] .pos-mode .modal-backdrop{backdrop-filter:none}
@media(min-width:1400px){:root[data-theme] .pos-mode .pos-workspace{grid-template-columns:minmax(0,1fr) 390px}:root[data-theme] .pos-mode .op-products{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}
@media(min-width:700px) and (max-width:900px){:root[data-theme] .pos-mode .pos-workspace{grid-template-columns:minmax(0,1fr) 310px;gap:12px}:root[data-theme] .pos-mode .op-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}:root[data-theme] .pos-mode .op-product-add>div{padding:10px}:root[data-theme] .pos-mode .op-product-add h3{font-size:15px}:root[data-theme] .pos-mode .op-toolbar button{padding:10px;font-size:12px}.pos-mode .op-selectors{gap:8px}}
@media(max-width:699px){:root[data-theme] .pos-mode .shell{padding:8px}:root[data-theme] .pos-mode .main:has(.pos-pro){height:calc(100dvh - 16px)}.pos-mode .topbar .breadcrumb{max-width:110px}.pos-mode .top-actions>.btn-icon{display:none}:root[data-theme] .pos-mode .pos-pro .op-toolbar{gap:6px;margin-bottom:10px}.pos-mode .op-selectors{gap:6px}:root[data-theme] .pos-mode .op-selectors .field{font-size:10px}:root[data-theme] .pos-mode .op-selectors select{padding-left:7px;padding-right:17px;font-size:16px}:root[data-theme] .pos-mode .op-toolbar button{padding:10px 8px;font-size:11px}.pos-mode .op-toolbar .actions{gap:5px}:root[data-theme] .pos-mode .pos-workspace{display:flex;gap:0;overflow:hidden}:root[data-theme] .pos-mode .pos-catalog{width:100%;flex:1}:root[data-theme] .pos-mode .op-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}:root[data-theme] .pos-mode .op-ticket{display:none;width:100%;flex:1}.pos-mode .show-ticket .pos-catalog{display:none!important}:root[data-theme] .pos-mode .show-ticket .op-ticket{display:flex}.pos-mode .op-back-catalog{display:block;padding:8px 10px;font-size:12px}.pos-mode .op-mobile-total{display:block;position:static;flex-shrink:0;padding:8px 0 max(0px,env(safe-area-inset-bottom));pointer-events:auto}.pos-mode .show-ticket .op-mobile-total{display:none}:root[data-theme] .pos-mode .op-mobile-total button{min-height:52px;font-size:16px}.pos-mode .demo-banner{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:root[data-theme] .pos-mode .op-ticket-head{padding:12px 16px 6px}}
@media(max-height:550px){:root[data-theme] .pos-mode .main:has(.pos-pro){height:550px}.pos-mode .topbar{height:44px;min-height:44px}.pos-mode .demo-banner{display:none}}
@media print{.pos-mode .shell,.pos-mode .op-mobile-total{display:none!important}}

:root[data-theme] .pos-mode .topbar .breadcrumb{max-width:none;font-size:13px}.pos-mode .topbar .breadcrumb span{margin-inline:6px}
.scan-other-readers{margin:12px 0;color:var(--muted);font-size:13px}.scan-other-readers summary{min-height:44px;padding:12px 0;cursor:pointer;touch-action:manipulation}.scan-other-readers .actions{margin-top:8px}
@media(max-width:450px){:root[data-theme] .pos-mode .topbar .breadcrumb{font-size:11px}.pos-mode .topbar .breadcrumb span{margin-inline:2px}}

.pos-mode .pos-close-nav{margin:0 16px 18px;flex-shrink:0}
