@font-face {font-family:Roboto;font-style:normal;font-weight:100 900;font-display:swap;src:url('fonts/roboto/Roboto.ttf') format('truetype');}
/* Desktop layouts from the owner's supplied references; no global CRM theme changes. */
.pos-ref-invoices {display:flex;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:thin;align-items:stretch;}
.pos-ref-invoice-select,.pos-ref-invoice-close,.pos-ref-invoice-add {border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;white-space:nowrap;min-height:36px;}
.pos-ref-invoice-select {padding:8px 4px;}
.pos-ref-invoice-close {font-size:22px;padding:4px;}
.pos-ref-invoice-add {padding:6px 12px;font-size:25px;}
.pos-ref-invoice-arrow {font-size:23px;line-height:1;}
.pos-ref-invoice:has([aria-pressed=true]) .pos-ref-invoice-arrow {color:#0070f4;}
@media(max-width:850px){.pos-ref-invoices{margin-bottom:10px;background:#eef5ff;border-radius:8px}.pos-ref-invoice{display:flex;align-items:center;padding:0 8px}.pos-ref-invoice:has([aria-pressed=true]){background:white;color:#0070f4}}
@media (min-width:851px) {
  body:has(#view-pos:not([hidden]) .pos-workspace.pos-reference.pos-pc-scan) .topbar { display:none; }
  body:has(#view-pos:not([hidden]) .pos-workspace.pos-reference.pos-pc-scan) .main { margin:0; }
  .pos-workspace.pos-reference.pos-pc-scan { --pos-blue:#0070f4; --pos-ref-text:clamp(14px,.88vw,18px); --font:'Helvetica Neue',Arial,sans-serif; background:#eef0f2;color:#1c2228;min-height:0;position:relative;font:var(--pos-ref-text)/1.45 var(--font); }
  .pos-workspace.pos-reference.pos-pc-scan * { box-sizing:border-box; }
  .pos-workspace.pos-reference.pos-pc-scan button,.pos-workspace.pos-reference.pos-pc-scan input,.pos-workspace.pos-reference.pos-pc-scan select,.pos-workspace.pos-reference.pos-pc-scan textarea { font-family:var(--font); }
  .pos-workspace.pos-reference.pos-pc-scan .pos-head { height:clamp(56px,3.125vw,64px);min-height:clamp(56px,3.125vw,64px);padding:0 10px 0 6px;border:0;border-radius:0;margin:0;background:var(--pos-blue);color:white;gap:12px;z-index:30; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-icon { display:inline-flex;flex:none;width:22px;height:22px;align-items:center;justify-content:center; }
  .pos-ref-icon svg { width:100%;height:100%; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-button { display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;min-width:34px;min-height:36px;padding:4px;background:transparent;color:inherit;cursor:pointer;border-radius:5px;font:inherit; }
  .pos-workspace.pos-reference.pos-pc-scan button:focus-visible,.pos-workspace.pos-reference.pos-pc-scan summary:focus-visible { outline:2px solid #0070f4;outline-offset:3px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-head button:focus-visible,.pos-workspace.pos-reference.pos-pc-scan .pos-head summary:focus-visible { outline-color:white; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-head .pos-workspace-search { width:28%;max-width:560px;min-width:235px;position:relative;gap:8px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-workspace-search>.pos-ref-icon { position:absolute;left:10px;color:#96a2ad;z-index:1;width:20px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-workspace-search .pos-search { height:40px;min-height:40px;border-radius:5px;padding:0 42px 0 32px;background:white;border:1px solid #dce4ec; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-search::before { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-head .pos-search input { background:white;color:#19212b;border:1px solid #ddd;border-radius:5px;padding:7px 42px 7px 34px;font-size:16px!important;box-shadow:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-search .scan-field-btn { right:0;background:transparent;border:0;color:#6eaaff;min-width:36px;width:36px;font-size:0; }
  .pos-workspace.pos-reference.pos-pc-scan .scan-field-btn::after { content:'▥';font:25px Arial; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-invoice { align-self:stretch;display:flex;align-items:center;gap:12px;background:#eef0f2;color:#1d252b;border-radius:9px 9px 0 0;padding:0 12px;margin-top:7px;font-size:15px;white-space:nowrap; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-invoice strong { font-weight:600; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-invoices {align-self:stretch;flex:1;}
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-invoice {background:transparent;color:white;gap:8px;padding:0 8px;}
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-invoice:has([aria-pressed=true]) {background:#eef0f2;color:#1d252b;}
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-invoice .pos-ref-icon { width:16px; }
  .pos-ref-swap { color:#0070f4;font-size:24px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-header-actions { display:flex;align-items:center;gap:12px;margin-left:auto;min-width:0; }
  .pos-ref-store { max-width:185px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-layout { padding:10px;gap:10px;grid-template-columns:minmax(0,1fr) clamp(350px,28vw,600px);overflow:hidden; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-catalog { border:0;border-radius:0;background:transparent;padding:0;gap:0;position:relative;overflow:auto; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-checkout { border:0;border-radius:12px;background:white;padding:14px 16px 12px;gap:0;overflow:hidden; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-checkout-scroll { gap:0!important;scrollbar-width:thin; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-cashier { display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px;min-height:23px; }
  .pos-ref-cashier>span { max-width:55%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase; }
  .pos-ref-cashier time { color:#808890;font-size:12px;white-space:nowrap; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-basket-head { border:0;padding:0;margin:0 0 15px;display:flex;gap:10px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-basket-head>div:first-child { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-customer-trigger { width:100%;justify-content:flex-start;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:38px;background:#f0f1f3;color:#697887;border:0;border-radius:6px;font-size:14px;padding:8px 34px;position:relative;font-weight:400;box-shadow:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-customer-trigger::before { content:'⌕';position:absolute;left:9px;font:22px Arial;top:3px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-customer-trigger::after { content:'+';position:absolute;right:10px;font:24px Arial;top:3px; }
  /* Keep one full row usable on short screens; the catalog can scroll to totals below. */
  .pos-workspace.pos-reference.pos-pc-scan .pos-workspace-cart { border:0;border-radius:0;flex:1 1 0px;min-height:min(240px,40dvh);overflow:hidden; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-cart-table-head { display:none!important; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-lines { flex:1 1 0px;height:0;min-height:0;overflow-x:hidden;overflow-y:scroll;scrollbar-width:auto;scrollbar-gutter:stable;overscroll-behavior:contain;max-height:none!important;padding:0 2px 10px!important; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-lines>.pos-note { color:#8b969f;text-align:center;margin-top:48px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-line { grid-template-columns:20px 24px 106px minmax(120px,1fr) 36px 100px 100px 142px 106px 32px;gap:9px;padding:12px 14px;border:1px solid #ced3da;border-radius:12px;min-height:56px;box-shadow:0 2px 6px #26394d25;margin:0 0 9px;align-content:center; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-line[aria-selected=true] { background:white;box-shadow:0 2px 6px #26394d25;border-color:#c9cfd7; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-line-index { grid-column:1; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-line-top>button { grid-column:2;grid-row:1;width:24px;min-height:28px;color:#35424d; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-line-top>button .pos-ref-icon { width:19px;height:19px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-line-code { grid-column:3;grid-row:1;font-size:14px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-line-name { grid-column:4;grid-row:1;font-size:14px;font-weight:400;line-height:1.4;overflow-wrap:anywhere;min-width:0; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-line-name small { font-size:11px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-unit { grid-column:5;grid-row:1;border-radius:4px;background:#e5f1fe;color:var(--pos-blue);padding:2px 4px;text-align:center;font-size:12px;overflow-wrap:anywhere; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-qty { display:grid;grid-column:6;grid-row:1;grid-template-columns:22px minmax(30px,1fr) 22px;gap:2px;align-items:center;width:100%;min-width:0; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-qty input { grid-column:2;grid-row:1;border:0;border-bottom:1px solid #ccd2da;border-radius:0;background:transparent;text-align:center;padding:3px!important;width:100%;font-size:15px!important;box-shadow:none;height:30px;appearance:textfield; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-qty input::-webkit-inner-spin-button { appearance:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-qty>button:first-child,.pos-workspace.pos-reference.pos-pc-scan .pos-qty>button:last-child { display:grid;place-items:center;grid-row:1;border:0;background:transparent;font:21px Arial;padding:0;color:#35424d;min-width:0;min-height:30px;width:22px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-qty>button:first-child {grid-column:1;}
  .pos-workspace.pos-reference.pos-pc-scan .pos-qty>button:last-child {grid-column:3;}
  .pos-workspace.pos-reference.pos-pc-scan .pos-line-price { grid-column:7;grid-row:1;border-bottom:1px solid #d0d5dc;padding:3px 0;font-size:14px;white-space:nowrap;font-weight:400; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-line-discount {grid-column:8;grid-row:1;display:flex;align-items:center;gap:4px;min-width:0;}
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-discount-label {font-size:11px;color:#718196;flex:none;}
  .pos-workspace.pos-reference.pos-pc-scan .pos-line-discount input {flex:1;width:54px;min-width:0;height:30px;font-size:13px!important;padding:3px;}
  .pos-workspace.pos-reference.pos-pc-scan .pos-line-discount select {flex:0 0 54px;width:54px;height:30px;padding:3px;font-size:12px!important;}
  .pos-workspace.pos-reference.pos-pc-scan .pos-line-top>strong { grid-column:9;grid-row:1;font-size:14px;white-space:nowrap; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-line-more { grid-column:10;grid-row:1;position:relative; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-line-trigger { display:grid;place-items:center;cursor:pointer;width:32px;min-width:32px;height:32px;min-height:32px;padding:6px;border:0;border-radius:6px;background:transparent;color:#64748b; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-line-trigger:hover,.pos-workspace.pos-reference.pos-pc-scan .pos-ref-line-trigger[aria-expanded=true] { background:#e8f2ff;color:var(--pos-blue); }
  .pos-workspace.pos-reference.pos-pc-scan summary::-webkit-details-marker { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-line-popover { position:fixed;inset:auto;margin:0;width:224px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;padding:6px;background:white;color:#263445;border:1px solid #e1e6ec;border-radius:8px;box-shadow:0 6px 20px #20334d29; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-line-action { display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:8px 10px;border:0;border-radius:4px;background:transparent;color:inherit;text-align:left;font-size:14px;cursor:pointer; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-line-action .pos-ref-icon { width:18px;height:18px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-line-action:hover,.pos-workspace.pos-reference.pos-pc-scan .pos-ref-line-action:focus-visible { background:#edf5ff;color:var(--pos-blue); }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-line-action-danger { color:#dc2626;border-top:1px solid #edf0f3;border-radius:0;margin-top:4px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-line-popover .pos-line-discount { display:flex;margin-top:10px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-line-discount input { flex:1;min-width:0;width:100px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-line-discount select { width:70px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-order-note { margin:12px 10px 10px;position:relative; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-order-note>span { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-order-note textarea { resize:none;height:54px;min-height:54px;border:0;border-radius:12px;box-shadow:0 3px 12px #26394d12;padding:17px 16px 17px 44px;font-size:var(--pos-ref-text)!important; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-order-note::before { content:'✎';position:absolute;top:9px;left:17px;font-size:25px;color:#8a98a7; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-totals { display:flex;flex-direction:column;gap:0;margin:0;padding:0;border:0; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-total-row { min-height:36px;font-size:14px;color:#1c2228;align-items:center; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-total { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-pc-due { margin:0 0 10px;padding:5px 0;display:flex;justify-content:space-between;align-items:center;text-align:left;background:white; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-pc-due span { font-size:14px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-pc-due strong { font-size:21px;color:var(--pos-blue); }
  .pos-workspace.pos-reference.pos-pc-scan .pos-workspace-extras { border:0;padding:0;margin:10px 0;color:#536373;font-size:12px;order:8; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-payment-methods { display:flex;gap:12px;margin:5px 0 14px;flex-wrap:wrap; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-payment-method { min-height:28px;height:auto;display:flex;align-items:center;gap:7px;padding:0;border:0;border-radius:0;background:transparent;color:#1c2228;box-shadow:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-payment-method::before { content:'';width:16px;height:16px;border-radius:50%;border:1px solid #697787;display:block;flex:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-payment-method[aria-pressed=true]::before { border:5px solid var(--pos-blue); }
  .pos-workspace.pos-reference.pos-pc-scan .pos-payment-method>b { font-size:13px;font-weight:400; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-payment-method>span { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-payment-transfer { background:#f7f8fa;border-radius:12px;padding:14px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-tender .pos-field { padding:0!important; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-tender input { border:0;border-bottom:1px solid #ccd2da;border-radius:0;text-align:right;font-size:18px!important; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-cash-quick { margin:10px 0 16px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-cash-quick button { background:#f3f7fc;border-color:#e4ebf5;color:#42596e; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-payment-footer { display:block!important;padding:12px 0 0!important; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-payment-footer>.btn.primary,.pos-workspace.pos-reference.pos-pc-scan .pos-ref-normal-footer>.btn { width:100%;min-height:56px;border-radius:10px;background:var(--pos-blue);border:0;font-size:18px;font-weight:600;color:white; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-payment-footer>.btn.secondary { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-keyboard-bar,.pos-workspace.pos-reference.pos-pc-scan .pos-workspace-quick { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-bottom { height:clamp(55px,3.125vw,64px);flex:0 0 clamp(55px,3.125vw,64px);display:flex;align-items:stretch;justify-content:space-between;background:#fff;border-top:1px solid #e0e4ea;padding:0 20px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-modes { display:flex;gap:22px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-modes button { border-radius:0;border-top:2px solid transparent;padding:0 3px;font-size:var(--pos-ref-text);font-weight:600;color:#67717c; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-modes button>.pos-ref-icon { border-radius:50%;padding:6px;width:34px;height:34px;background:#f0f1f3; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-modes button[aria-pressed=true] { color:var(--pos-blue);border-top-color:var(--pos-blue); }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-modes button[aria-pressed=true]>.pos-ref-icon { background:#e0eeff; }
  .pos-ref-shortcuts { align-self:center;font-size:11px;color:#98a1aa; }
  .pos-ref-menu { position:relative; }
  .pos-ref-menu>summary { list-style:none;cursor:pointer;display:flex;align-items:center;min-height:36px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-menu-body { position:absolute;right:0;top:44px;background:white;color:#233345;border:1px solid #d8e0ea;box-shadow:0 10px 32px #0c315036;width:min(340px,calc(100vw - 24px));border-radius:10px;padding:15px;display:flex;flex-direction:column;gap:12px;max-height:min(75dvh,calc(100dvh - 90px));overflow:auto; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-menu-body .pos-head-tools { display:flex;justify-content:flex-start;flex-wrap:wrap; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-menu-body h1,.pos-workspace.pos-reference.pos-pc-scan .pos-ref-menu-body .pos-workspace-modes,.pos-workspace.pos-reference.pos-pc-scan .pos-ref-menu-body .pos-current-order,.pos-workspace.pos-reference.pos-pc-scan .pos-ref-menu-body .pos-cashier { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-menu-body .btn { color:#244d76;background:#edf5ff;border-color:#d5e5f8; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-menu-body .pos-workspace-quick,.pos-workspace.pos-reference.pos-pc-scan .pos-ref-menu-body .pos-keyboard-bar {display:block;}
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-products { z-index:22;min-width:0; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-ref-products,.pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-ref-products { position:absolute;top:0;left:0;width:min(780px,100%);background:white;border:1px solid #d7e0eb;border-radius:10px;padding:12px;box-shadow:0 8px 28px #22394e25; }
  .pos-workspace.pos-reference.pos-pc-scan:not(.pos-mode-grid) .pos-ref-products:has(.pos-grid[hidden]) { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-catalog-controls { margin:0; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-scan-status { font-size:11px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-stock-stamp { font-size:10px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-products .pos-grid { display:grid;max-height:370px;grid-auto-rows:auto;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:8px;padding:0; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-products .pos-grid[hidden] { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-ref-products .pos-grid {grid-template-columns:repeat(auto-fill,minmax(210px,1fr));grid-auto-rows:minmax(88px,max-content);max-height:192px;padding:4px;}
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-products .pos-product { padding:9px;border-radius:7px;min-height:100px;font-size:12px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-products .pos-product-name { height:auto;flex-basis:auto;font-size:12px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-catalog-pages { margin:8px 0 0; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-catalog-actions { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-normal-footer,.pos-workspace.pos-reference.pos-pc-scan .pos-ref-close-payment,.pos-workspace.pos-reference.pos-pc-scan .pos-ref-carrier,.pos-workspace.pos-reference.pos-pc-scan .pos-ref-delivery-form,.pos-workspace.pos-reference.pos-pc-scan .pos-ref-delivery-sources,.pos-workspace.pos-reference.pos-pc-scan .pos-ref-cart-total { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-layout { grid-template-columns:minmax(0,1.55fr) minmax(350px,1fr); }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-line { grid-template-columns:20px 24px 106px minmax(80px,1fr) 142px 100px 34px 32px;gap:6px;min-height:94px; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-line-name {grid-column:4 / 7;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-unit { grid-column:7; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-qty {grid-column:3;grid-row:2;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-qty input { grid-column:2;grid-row:1;width:100%; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-line-price { grid-column:4;grid-row:2;width:100px;justify-self:end; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-line-discount {grid-column:5;grid-row:2;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-line-top>strong { grid-column:6 / 8;grid-row:2; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-line-more { grid-column:8; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid:not(.pos-reference-checkout) .pos-checkout-scroll> :not(.pos-basket-head):not(.pos-ref-products) { display:none!important; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid:not(.pos-reference-checkout) .pos-payment-footer { display:none!important; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid:not(.pos-reference-checkout) .pos-ref-normal-footer { display:block;padding-top:12px; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-cart-total { display:none;position:absolute;right:24px;bottom:29px;max-width:55%;background:white;font-size:15px;font-weight:600;white-space:pre-wrap; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-order-note textarea { padding-right:12px; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-catalog-actions { display:flex; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products { display:flex;flex:1;min-height:0;flex-direction:column; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-grid { flex:1;max-height:none;overflow:auto;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));align-content:start; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-grid img { display:block;width:100%;height:75px;object-fit:contain; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-catalog-tools { display:flex; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-product-filters:not([hidden]) { display:flex;flex-wrap:wrap;gap:5px; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-filter-toggle { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-list .pos-grid { grid-template-columns:1fr!important; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-list .pos-product { flex-direction:row;min-height:50px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-list .pos-product img { display:none!important; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-reference-checkout .pos-ref-products { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-reference-checkout .pos-ref-close-payment { display:block;text-align:left;background:none;border:0;padding:0 0 12px;color:#0070f4;cursor:pointer; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-layout { grid-template-columns:minmax(0,1.65fr) minmax(315px,1fr) minmax(300px,1fr); }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line { grid-template-columns:90px minmax(90px,1fr) 140px 90px 32px;min-height:94px; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-index,.pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-top>button { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-code { grid-column:1; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-name { grid-column:2 / 4; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-ref-unit { grid-column:4; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-qty {grid-column:1;grid-row:2;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-qty input { grid-column:2;grid-row:1;width:100%; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-price { grid-column:2;grid-row:2;width:90px;justify-self:end; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-top>strong { grid-column:4 / 6;grid-row:2; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-ref-line-more { grid-column:5;justify-self:end; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-discount {grid-column:3;grid-row:2;width:140px;max-width:100%;justify-self:end;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-ref-carrier { display:flex;flex-direction:column;padding:12px;border:0;overflow:auto;min-height:0; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-checkout-scroll>:not(.pos-ref-cashier):not(.pos-basket-head):not(.pos-ref-delivery-form):not(.pos-ref-delivery-sources) { display:none!important; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-payment-footer { display:none!important; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-ref-delivery-form,.pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-ref-delivery-sources { display:block; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-delivery-sources { margin-bottom:14px;border-bottom:1px solid #e0e6ee;padding-bottom:10px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-delivery-sources button { color:#0070f4;float:right;font-size:12px; }
  .pos-ref-carrier-title { display:flex;align-items:center;justify-content:center;gap:8px;color:#0070f4;font-size:16px;margin:0 0 15px; }
  .pos-ref-carrier-note { background:#f2f8ff;border:1px solid #cce0fd;border-radius:6px;padding:12px;font-size:13px;color:#536577;margin:0; }
  .pos-ref-carrier-body { flex:1; }
  .pos-ref-carrier-footer { margin-top:auto; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-step-body { padding:0; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-steps,.pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-step-intro { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-step-section { border:0;padding:6px 0;margin:0;box-shadow:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-step-section h3 { font-size:12px;font-weight:500;color:#6e7e8c;margin:8px 0; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-field input,.pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-field select { border:0;border-bottom:1px solid #ced6df;border-radius:0;font-size:14px!important;padding:6px 0; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-field>span { font-size:12px;color:#72808d; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-step-grid { gap:10px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-step-footer { display:flex;flex-direction:column; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-step-footer>.btn.primary { width:100%;min-height:55px;background:#0070f4;color:white;font-size:16px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-step-summary { font-size:13px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-step-summary .is-main { color:#0070f4; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery>.pos-order-board:not([hidden]) { left:10px;right:10px;top:66px;bottom:65px;z-index:28;border-radius:12px;border-color:#cdd8e6; }
  .pos-workspace.pos-reference.pos-pc-scan>.pos-order-board:not([hidden]) { inset:66px 10px 65px;z-index:28; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-board-close { float:right; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-delivery-form.pos-step-modal { width:100%;max-width:none;max-height:none;padding:0;box-shadow:none;border-radius:0; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-line-code,.pos-workspace.pos-reference.pos-pc-scan .pos-line-name,.pos-workspace.pos-reference.pos-pc-scan .pos-line-price,.pos-workspace.pos-reference.pos-pc-scan .pos-line-top>strong,.pos-workspace.pos-reference.pos-pc-scan .pos-total-row { font-size:var(--pos-ref-text); }
  .pos-workspace.pos-reference.pos-pc-scan .pos-customer-trigger { font-size:var(--pos-ref-text); }
  .pos-workspace.pos-reference.pos-pc-scan .pos-payment-method[aria-pressed=true] { background:transparent;color:#1c2228; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-change-card { background:#f6f9fe;border-color:#e3eaf4;color:#34526d; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-change { color:#0070f4; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-product-price { color:#0070f4; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-product-in-cart { background:#eef6ff;border-color:#8bbafa; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod form,.pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-step-body,.pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-step-section { min-width:0;width:100%;grid-template-columns:minmax(0,1fr);box-shadow:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-step-grid { grid-template-columns:repeat(2,minmax(0,1fr));min-width:0; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-field { min-width:0; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-field input,.pos-workspace.pos-reference.pos-pc-scan .pos-inline-cod .pos-field select { width:100%;min-width:0; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-carrier { background:white; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-carrier .pos-step-summary { background:#f3f8ff;margin-top:15px;border-radius:8px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-carrier .pos-step-summary strong { color:#0070f4;font-size:20px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-carrier .pos-step-footer { padding:0;border:0;background:white;box-shadow:none; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-carrier .pos-step-footer>.btn.secondary { min-height:36px;border:0;font-size:12px;margin:0; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-delivery-totals { display:none; }
  .pos-workspace.pos-reference.pos-pc-scan:is(.pos-mode-delivery,.pos-mode-grid) .pos-ref-delivery-totals { display:block;background:white;border-radius:12px;padding:10px 15px;margin:0 10px 10px; }
  .pos-workspace.pos-reference.pos-pc-scan:is(.pos-mode-delivery,.pos-mode-grid) .pos-ref-delivery-totals .pos-total-row { min-height:28px;font-size:13px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-gift-line .pos-gift-total { grid-column:9;grid-row:1; }
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-gift-line .pos-gift-total,.pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-gift-line .pos-gift-total { grid-column:3 / 5;grid-row:2; }
  @media (max-width:1200px) {
    .pos-workspace.pos-reference.pos-pc-scan .pos-ref-store,.pos-workspace.pos-reference.pos-pc-scan .pos-ref-shortcuts { display:none; }
    .pos-workspace.pos-reference.pos-pc-scan .pos-ref-header-actions { gap:6px; }
    .pos-workspace.pos-reference.pos-pc-scan .pos-line { grid-template-columns:18px 22px 75px minmax(95px,1fr) 30px 45px 75px 84px 22px 32px;gap:5px;padding:10px 8px; }
    .pos-workspace.pos-reference.pos-pc-scan .pos-line-code,.pos-workspace.pos-reference.pos-pc-scan .pos-line-price,.pos-workspace.pos-reference.pos-pc-scan .pos-line-name,.pos-workspace.pos-reference.pos-pc-scan .pos-line-top>strong { font-size:12px; }
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-layout { grid-template-columns:minmax(0,1.1fr) minmax(280px,1fr) minmax(245px,.9fr);gap:8px; }
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line { grid-template-columns:88px minmax(50px,1fr) 80px 32px; }
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-name {grid-column:2;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-ref-unit {grid-column:3;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-ref-line-more {grid-column:4;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-top>strong {grid-column:3 / 5;grid-row:2;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-price {grid-column:1 / 3;grid-row:3;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-discount {grid-column:3 / 5;grid-row:3;width:100%;}
  }
  @media (max-width:1550px) {
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line {grid-template-columns:18px 20px 80px minmax(80px,1fr) 32px 100px 85px 32px;gap:6px;padding:10px;min-height:82px;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-discount {grid-column:4 / 7;grid-row:2;width:165px;max-width:100%;justify-self:end;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-top>strong {grid-column:7 / 9;grid-row:2;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-ref-line-more {grid-column:8;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-gift-line .pos-gift-total {grid-column:7 / 9;grid-row:2;}
  }
  @media (max-width:1100px) {
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-line {grid-template-columns:18px 22px 100px minmax(65px,1fr) 30px 32px;gap:5px;padding:10px;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-line-name {grid-column:4;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-unit {grid-column:5;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-line-more {grid-column:6;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-line-top>strong {grid-column:5 / 7;grid-row:2;font-size:12px;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-line-discount {grid-column:4 / 7;grid-row:3;width:165px;max-width:100%;justify-self:end;}
  }
  @media (max-width:1200px) {
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-name {grid-column:4 / 8;grid-row:1;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-ref-unit {grid-column:3;grid-row:2;justify-self:start;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-qty {grid-column:4 / 6;grid-row:2;width:100px;max-width:100%;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-price {grid-column:6;grid-row:2;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-discount {grid-column:4 / 7;grid-row:3;}
  }
}

/* Normal-sale catalog is a bounded page, not an ever-growing flex grid. */
.pos-catalog-quick-search,.pos-catalog-page-label {display:none;}
@media(min-width:851px) {
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-layout {grid-template-columns:minmax(450px,.65fr) minmax(0,1fr);}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products {container-type:inline-size;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-catalog-controls {display:flex;flex:none;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:8px;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-catalog-tools {display:flex;flex-wrap:wrap;gap:8px;align-items:center;width:100%;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-catalog-quick-search {display:block;flex:1;min-width:160px;width:100%;padding:8px 10px;font-size:14px;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-policy {flex:1;min-width:180px;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-stock-stamp {width:100%;margin:0;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-scan-status:empty {display:none;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-find-all {display:inline-flex;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-filter-toggle {display:inline-flex;margin:0;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-product-filters {flex:none;margin:0 0 8px;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-grid {flex:1;min-height:0;max-height:none;grid-template-columns:repeat(8,minmax(110px,1fr));grid-template-rows:repeat(3,minmax(156px,1fr));grid-auto-rows:minmax(156px,1fr);gap:8px;align-content:stretch;align-items:stretch;overflow:auto;}
  /* Like the supplied KiotViet catalog: compact rows, with the image owning the free card space. */
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products:not(.pos-ref-list) .pos-grid {max-height:840px;max-height:calc(3 * ((100cqw - 56px) / 8 + 106px) + 16px);}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-product-tile {min-height:156px;border-radius:8px;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-product-tile>.pos-product {display:flex;flex:1;min-height:0;padding:4px;gap:2px;overflow:hidden;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-product img,.pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-product .pos-image-empty {display:grid;place-items:center;width:100%;height:0;min-height:48px;max-height:160px;flex:1 1 0;object-fit:contain;border-radius:5px;background:#fff;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-product-name {height:32px;min-height:32px;flex:0 0 32px;line-height:16px;font-size:12px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-product-sku {font-size:11px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-product-price-stock {flex-wrap:wrap;gap:0 4px;margin-top:0;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-product-price-stock strong {font-size:12px;line-height:16px;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-product-price-stock .pos-stock {font-size:10px;line-height:14px;white-space:normal;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-product-stock-details {flex:none;font-size:11px;max-height:140px;overflow:auto;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-product-stock-details>summary {padding:4px 6px;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-catalog-pages {flex:none;display:flex;justify-content:center;align-items:center;gap:12px;padding-top:8px;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-catalog-page-label {display:inline;font-size:13px;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-catalog-pages button {min-width:38px;font:24px/1 Arial;padding:5px;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-list .pos-grid {grid-template-rows:none;grid-auto-rows:minmax(70px,auto);}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-list .pos-product-tile {min-height:70px;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-list .pos-product-name {flex:1;min-width:0;}
}

@media(min-width:851px) {
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-workspace-cart {container-type:inline-size;container-name:pos-normal-cart;}
  @container pos-normal-cart (max-width:700px) {
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-line {grid-template-columns:18px 22px 100px minmax(85px,1fr) 55px 32px;gap:5px;padding:10px;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-line-name {grid-column:4 / 6;grid-row:1;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-line-more {grid-column:6;grid-row:1;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-qty {grid-column:3;grid-row:2;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-line-price {grid-column:4;grid-row:2;width:100%;max-width:100px;font-size:12px;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-line-top>strong {grid-column:5 / 7;grid-row:2;font-size:12px;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-unit {grid-column:3;grid-row:3;justify-self:start;}
    .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-line-discount {grid-column:4 / 7;grid-row:3;width:165px;max-width:100%;justify-self:end;}
  }
}

/* Quick sale: quantity and unit share the second line directly below the SKU. */
@media(min-width:851px) {
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line {grid-template-columns:20px 24px 150px minmax(140px,1fr) 100px 142px 106px 32px;gap:8px;min-height:90px;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-code {grid-column:3;grid-row:1;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-name {grid-column:4;grid-row:1;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-qty {grid-column:3;grid-row:2;width:100px;max-width:100%;justify-self:start;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-ref-unit {grid-column:3;grid-row:2;justify-self:end;width:40px;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-price {grid-column:5;grid-row:1;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-discount {grid-column:6;grid-row:1;width:100%;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-top>strong,.pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-gift-line .pos-gift-total {grid-column:7;grid-row:1;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-ref-line-more {grid-column:8;grid-row:1;}
}
@media(min-width:851px) and (max-width:1550px) {
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line {grid-template-columns:18px 22px 150px minmax(80px,1fr) 100px 32px;gap:5px;padding:10px;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-name {grid-column:4 / 6;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-price {grid-column:4;grid-row:2;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-discount {grid-column:4 / 7;grid-row:3;width:165px;max-width:100%;justify-self:end;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-top>strong,.pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-gift-line .pos-gift-total {grid-column:5 / 7;grid-row:2;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-ref-line-more {grid-column:6;}
}

@media(min-width:851px) and (min-height:1100px) {
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-product-name {height:36px;min-height:36px;flex-basis:36px;line-height:18px;font-size:13px;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-product-price-stock strong {font-size:14px;line-height:18px;}
  .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-product-price-stock .pos-stock {font-size:11px;}
}

/* Normal-sale catalog follows the supplied horizontal photo/name/price reference. */
@media(min-width:851px) {
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-layout {grid-template-columns:minmax(0,1fr) clamp(350px,50vw,760px);}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-basket-head {align-items:center;flex-direction:row;flex-wrap:nowrap;gap:8px;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-customer-trigger {flex:1;min-width:0;width:auto;background:#f0f1f3;color:#697887;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-catalog-actions {flex:none;width:auto;gap:4px;justify-content:flex-end;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-filter-toggle {display:none;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products:not(.pos-ref-filters-open) .pos-catalog-controls {display:none;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-grid,
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products:not(.pos-ref-list) .pos-grid {
  grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));grid-template-rows:none;grid-auto-rows:max-content;
  align-content:start;align-items:start;gap:18px 16px;max-height:none;overflow-x:hidden;padding:20px 2px;
 }
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-product-tile {min-height:0;border:0;border-radius:6px;background:transparent;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-product-tile>.pos-product {
  display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-rows:auto auto auto;gap:3px 12px;
  padding:5px;min-height:82px;border-radius:6px;background:transparent;box-shadow:none;align-content:start;
 }
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-product img,
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-product .pos-image-empty {
  display:grid;grid-column:1;grid-row:1 / 4;width:72px;height:72px;min-height:72px;max-height:72px;object-fit:contain;border-radius:6px;background:#f0f1f2;
 }
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-product-name {
  grid-column:2;grid-row:1;height:auto;min-height:0;max-height:22.714px;line-height:1.3;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:8.736px;font-weight:400;color:#111111;
 }
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-product-sku {display:none;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-product-price-stock {display:contents;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-product-price-stock strong {
  grid-column:2;grid-row:2;position:static;margin:0;padding:0;background:none;color:#0070f4;font-size:18px;line-height:24px;white-space:normal;overflow-wrap:anywhere;
 }
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-stock {grid-column:2;grid-row:3;margin:0;text-align:left;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products:not(.pos-ref-filters-open) .pos-stock:not(.pos-stock-out):not(.pos-stock-unknown) {display:none;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products:not(.pos-ref-filters-open) .pos-product-stock-details {display:none;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-product:not(:disabled):hover,
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-product-in-cart {background:#f0f7ff;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-products .pos-product-selection {top:2px;left:2px;right:auto;padding:2px 4px;font-size:10px;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-list .pos-product-tile>.pos-product {grid-template-columns:minmax(0,1fr);}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-list :is(.pos-product-name,.pos-product-price-stock strong,.pos-stock) {grid-column:1;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid:not(.pos-reference-checkout) .pos-ref-normal-footer {display:flex;align-items:center;gap:12px;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-ref-normal-footer>.btn {flex:1;min-width:0;width:auto;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-catalog-pages {margin:0;padding:0;gap:8px;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-catalog-pages button {border-radius:50%;background:#f0f1f3;width:32px;min-width:32px;height:32px;padding:0;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-catalog-page-label {font-size:12px;white-space:nowrap;}
}

/* Per-product note stays below the name, alongside quantity. */
.pos-line input.pos-line-note {min-width:0;width:100%;max-width:100%;box-sizing:border-box;text-align:left;}
.pos-line-note[hidden] {display:none!important;}
@media(min-width:851px) {
 .pos-workspace.pos-reference.pos-pc-scan .pos-line-note {grid-column:4 / -2;grid-row:2;font-size:13px!important;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-grid .pos-line-note,
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-note {grid-column:2 / -1;grid-row:4;}
}
@media(min-width:851px) and (max-width:1550px) {
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-has-note .pos-line-price,
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-has-note .pos-line-top>strong {grid-row:3;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-has-note .pos-line-discount {grid-row:4;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-scan .pos-line-note {grid-column:4 / 7;}
}

.pos-ref-deposit-summary {border-top:1px solid #e2e8f0;padding-top:6px;}
.pos-ref-deposit-summary .pos-total-row {display:flex;justify-content:space-between;gap:12px;align-items:center;}
.pos-ref-deposit-summary .pos-ref-balance {color:var(--pos-blue);font-size:18px;}

.pos-ref-deposited input {width:150px;max-width:100%;text-align:right;font:inherit;padding:6px 8px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#18202a;}
.pos-ref-carrier-body .pos-step-section {padding:12px;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:12px;}
@media(min-width:851px) {
 .pos-workspace.pos-reference.pos-pc-scan .pos-payment-method[data-method="cod"] {display:none;}
 .pos-workspace.pos-reference.pos-pc-scan .pos-ref-delivery-sources {display:none;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-ref-delivery-sources {display:flex;}
 .pos-workspace.pos-reference.pos-pc-scan .pos-ref-delivery-sources .pos-ref-web-orders {float:none;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 10px;color:#9a3412;background:#fff7ed;border:1px solid #fdba74;border-radius:8px;}
 .pos-workspace.pos-reference.pos-pc-scan .pos-ref-web-orders.has-pending {color:#fff;background:#c2410c;border-color:#c2410c;}
 .pos-ref-web-count {display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:12px;background:#fff;color:#9a3412;font-weight:700;font-variant-numeric:tabular-nums;}
 .pos-ref-web-orders:focus-visible {outline:3px solid #fdba74;outline-offset:2px;}
}

.pos-ref-deposited:has(.pos-deposit-controls){display:block;width:100%;font-weight:400}

.pos-ref-deposit-summary > .pos-total-row:has(.pos-deposit-controls){display:block;position:relative}
.pos-ref-deposit-summary > .pos-total-row:has(.pos-deposit-controls)>span{position:absolute;top:10px;left:0}
.pos-ref-deposited:has(.pos-deposit-controls)>input{display:block;margin-left:auto}
.pos-ref-crm {white-space:nowrap;flex-shrink:0;}

/* Keep payment method and amount on the deposit heading row. */
.pos-ref-deposited:has(.pos-deposit-controls){display:grid;grid-template-columns:minmax(45px,1fr) minmax(110px,180px) minmax(90px,150px);gap:6px;align-items:center}
.pos-ref-deposited:has(.pos-deposit-controls)>.pos-deposit-method{grid-column:2;grid-row:1;margin:0;min-width:0}
.pos-ref-deposited>.pos-deposit-method>span{display:none}
.pos-ref-deposited>.pos-deposit-method select{width:100%;min-width:0;min-height:38px;padding:6px 8px;border:1px solid #cbd5e1;border-radius:6px;background:#fff}
.pos-ref-deposited:has(.pos-deposit-controls)>input{grid-column:3;grid-row:1;width:100%;box-sizing:border-box;margin:0;min-width:0;min-height:38px}
.pos-ref-deposited>.pos-deposit-controls,.pos-ref-deposited>.pos-cod-confirm{grid-column:1/-1}

/* Cash tender: one amount row, compact suggestions, then change owed. */
.pos-payment-cash .pos-tender{display:block!important;margin:0}
.pos-payment-cash .pos-tender .pos-field{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;border:0;border-radius:0;background:transparent;padding:0!important;margin:0}
.pos-payment-cash .pos-tender .pos-field>span{color:#172336;font-size:14px;white-space:nowrap}
.pos-payment-cash .pos-tender input{width:48%;min-width:0;min-height:40px;border:0;border-bottom:1px solid #cbd5e1;border-radius:0;background:transparent;text-align:right;box-shadow:none}
.pos-payment-cash .pos-cash-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px;background:#f0f2f5;border-radius:10px;margin:10px 0 14px}
.pos-workspace.pos-reference.pos-pc-scan .pos-payment-cash .pos-cash-quick .btn,.pos-payment-modal .pos-payment-cash .pos-cash-quick .btn{min-height:40px;min-width:0;padding:6px 3px;border-radius:24px;background:#fff;border:1px solid #c5cdd8;color:#172336;font-size:14px}
.pos-workspace.pos-reference.pos-pc-scan .pos-payment-cash .pos-cash-quick .btn[aria-pressed=true],.pos-payment-modal .pos-payment-cash .pos-cash-quick .btn[aria-pressed=true]{background:#006fee;color:#fff;border-color:#006fee}
.pos-workspace.pos-reference.pos-pc-scan .pos-payment-cash .pos-change-card,.pos-payment-modal .pos-payment-cash .pos-change-card{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:0;background:transparent;border:0;border-radius:0;color:#172336}
.pos-payment-cash .pos-change-card .pos-note{font-size:14px;color:inherit;margin:0}
.pos-payment-cash .pos-change{font-size:18px;color:#172336}
.pos-payment-cash .pos-tender .pos-field{flex-direction:row;text-align:left}
.pos-payment-cash .pos-cash-quick .btn[aria-pressed=true]{background:#006fee!important;color:#fff!important;border-color:#006fee!important}
.pos-payment-cash .pos-cash-quick .btn{white-space:normal;overflow-wrap:anywhere}
/* Delivery lines retain a direct remove action and keep unit after quantity. */
@media(min-width:851px){
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line{grid-template-columns:32px 100px 44px minmax(70px,1fr) 140px 100px 32px;gap:6px}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-top>button{display:flex;grid-column:1;grid-row:1;align-items:center;justify-content:center;width:32px;min-height:36px;padding:4px}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-code{grid-column:2;grid-row:1;overflow-wrap:anywhere}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-name{grid-column:3 / 7;grid-row:1}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-ref-line-more{grid-column:7;grid-row:1}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-qty{grid-column:2;grid-row:2}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-ref-unit{grid-column:3;grid-row:2;justify-self:start;align-self:center}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-price{grid-column:4;grid-row:2;width:100%;min-width:0}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-discount{grid-column:5;grid-row:2}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-top>strong{grid-column:6 / 8;grid-row:2}
}
@media(min-width:851px) and (max-width:1550px){
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line{grid-template-columns:32px 90px minmax(40px,1fr) 100px 32px}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-name{grid-column:3 / 5}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-ref-line-more{grid-column:5}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-top>strong{grid-column:4 / 6;grid-row:2}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-price{grid-column:2;grid-row:3}
 .pos-workspace.pos-reference.pos-pc-scan.pos-mode-delivery .pos-line-discount{grid-column:3 / 6;grid-row:3;width:140px;justify-self:start}
}

@media (min-width: 851px) {
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-fees { flex:none; min-height:36px; max-height:220px; overflow:auto; margin:6px 10px 0; padding:8px 12px; background:white; border-radius:8px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-fees summary { cursor:pointer; color:#005fce; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-fees[open] summary { margin-bottom:8px; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-fees .pos-service-fee { grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; }
  .pos-workspace.pos-reference.pos-pc-scan .pos-ref-fees .pos-service-fee > :first-child { grid-column:1 / -1; }
}

.pos-ref-deposited>.pos-note,.pos-ref-deposited>.error{grid-column:1/-1;margin:0}
