:root{--primary:#2563eb;--primary-dark:#1d4ed8;--navy:#0f172a;--navy-2:#172033;--green:#16a34a;--amber:#d97706;--red:#dc2626;--purple:#7c3aed;--bg:#f3f6fa;--card:#fff;--line:#dde5ef;--line-soft:#edf1f6;--muted:#64748b;--text:#172033;--shadow:0 18px 50px rgba(15,23,42,.1);--shadow-sm:0 6px 20px rgba(15,23,42,.07);--radius:14px;--sidebar:238px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}body{font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}.hidden{display:none!important}.muted{color:var(--muted)}.danger-text{color:var(--red)}.success-text{color:var(--green)}.money{font-variant-numeric:tabular-nums}.nowrap{white-space:nowrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 14px;border:1px solid transparent;border-radius:10px;background:var(--primary);color:#fff;font-weight:800;transition:.15s}.btn:hover{background:var(--primary-dark)}.btn.secondary{background:#fff;color:var(--text);border-color:var(--line)}.btn.secondary:hover{background:#f8fafc}.btn.success{background:var(--green)}.btn.danger{background:var(--red)}.btn.ghost{background:transparent;color:var(--muted)}.btn.small{min-height:32px;padding:6px 10px;font-size:12px}.btn.icon{width:40px;padding:0}.btn:disabled{opacity:.5;cursor:not-allowed}.field,.select,.textarea{width:100%;min-height:42px;border:1px solid var(--line);border-radius:10px;padding:9px 11px;background:#fff;color:var(--text);outline:none}.textarea{min-height:86px;resize:vertical}.field:focus,.select:focus,.textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(37,99,235,.12)}.label{display:block;margin-bottom:5px;font-size:11px;font-weight:850;letter-spacing:.025em;color:#475569}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.form-group.full{grid-column:1/-1}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 2px rgba(15,23,42,.02)}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;border-bottom:1px solid var(--line-soft)}.card-body{padding:17px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 8px;background:#eff6ff;color:#1d4ed8;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.badge.green{background:#ecfdf5;color:#047857}.badge.amber{background:#fff7ed;color:#c2410c}.badge.red{background:#fef2f2;color:#b91c1c}.badge.gray{background:#f1f5f9;color:#475569}.badge.purple{background:#f5f3ff;color:#6d28d9}.empty{padding:45px 20px;text-align:center;color:var(--muted)}.empty strong{display:block;color:var(--text);margin-bottom:6px}.divider{height:1px;background:var(--line-soft);margin:14px 0}
.toast-stack{position:fixed;right:14px;top:14px;z-index:10000;display:grid;gap:7px;width:min(300px,calc(100vw - 24px))}.toast{position:relative;padding:9px 31px 9px 11px;border:1px solid var(--line);border-left:4px solid var(--primary);border-radius:10px;background:#fff;box-shadow:var(--shadow-sm);font-size:12px;animation:toast-in .18s ease}.toast.success{border-left-color:var(--green)}.toast.error{border-left-color:var(--red)}.toast.warning{border-left-color:var(--amber)}.toast b{display:block;font-size:12px;margin-bottom:2px}.toast button{position:absolute;right:7px;top:7px;width:20px;height:20px;border:0;background:transparent;color:var(--muted)}@keyframes toast-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.login-page{min-height:100vh;display:grid;grid-template-columns:1.15fr .85fr;background:linear-gradient(135deg,#081120,#172a4a)}.login-visual{padding:70px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;background:radial-gradient(circle at 20% 20%,rgba(37,99,235,.45),transparent 38%),radial-gradient(circle at 80% 80%,rgba(22,163,74,.18),transparent 40%)}.logo{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:950}.logo-mark{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(145deg,#60a5fa,#2563eb);color:#fff}.login-visual h1{max-width:650px;font-size:46px;line-height:1.08;margin-bottom:15px}.login-features{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;max-width:620px}.login-feature{padding:14px;border:1px solid rgba(255,255,255,.15);border-radius:14px;background:rgba(255,255,255,.06);backdrop-filter:blur(8px)}.login-panel{display:grid;place-items:center;padding:30px;background:#f8fafc}.login-card{width:min(430px,100%);padding:30px}.login-card h2{font-size:27px;margin:20px 0 6px}.login-card .btn{width:100%;margin-top:5px}
.app-shell{min-height:100vh;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;background:var(--navy);color:#cbd5e1;display:flex;flex-direction:column;overflow-y:auto;scrollbar-width:none}.sidebar::-webkit-scrollbar{display:none}.sidebar-brand{height:68px;display:flex;align-items:center;padding:0 18px;border-bottom:1px solid rgba(255,255,255,.08);color:#fff}.sidebar-brand small{display:block;color:#60a5fa;font-size:10px;letter-spacing:.12em}.nav{padding:13px 10px;display:grid;gap:3px}.nav-section{padding:12px 10px 5px;font-size:9px;font-weight:900;letter-spacing:.14em;color:#64748b}.nav-item{display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:9px;color:#aebbd0;font-weight:700;font-size:13px}.nav-item:hover{background:rgba(255,255,255,.06);color:#fff}.nav-item.active{background:#2563eb;color:#fff;box-shadow:0 8px 20px rgba(37,99,235,.25)}.nav-icon{width:18px;height:18px;display:grid;place-items:center}.sidebar-foot{margin-top:auto;padding:13px;border-top:1px solid rgba(255,255,255,.08)}.staff-mini{display:flex;align-items:center;gap:9px}.avatar{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#334155;color:#fff;font-weight:900}.staff-mini b{display:block;color:#fff;font-size:12px}.staff-mini small{display:block;color:#94a3b8;font-size:10px;max-width:135px;overflow:hidden;text-overflow:ellipsis}.main{min-width:0}.topbar{position:sticky;top:0;z-index:50;height:68px;background:rgba(255,255,255,.95);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 22px}.top-left{display:flex;align-items:center;gap:12px}.menu-toggle{display:none}.page-title{font-size:17px;font-weight:900}.top-actions{display:flex;align-items:center;gap:9px}.shift-chip{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:999px;padding:7px 10px;background:#fff;font-size:11px;font-weight:800}.shift-dot{width:8px;height:8px;border-radius:50%;background:var(--red)}.shift-chip.open .shift-dot{background:var(--green)}.shift-chip.attention{border-color:#f59e0b;background:#fffbeb;color:#92400e}.shift-chip.attention .shift-dot{background:#f59e0b}.shift-chip.blocked{border-color:#fca5a5;background:#fef2f2;color:#991b1b}.shift-chip.blocked .shift-dot{background:var(--red)}.content{padding:20px;max-width:1700px;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:17px}.page-head h1{font-size:24px;margin-bottom:4px}.page-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.stat{padding:16px}.stat-top{display:flex;justify-content:space-between;align-items:center}.stat-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:#eff6ff;color:var(--primary);font-weight:950}.stat small{display:block;color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.05em;margin-top:11px}.stat strong{display:block;font-size:22px;margin-top:4px}.grid-2{display:grid;grid-template-columns:1.5fr 1fr;gap:14px}.grid-equal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.table-wrap{width:100%;overflow:auto;scrollbar-width:none}.table-wrap::-webkit-scrollbar{display:none}.table{width:100%;border-collapse:collapse;min-width:740px}.table th{padding:10px 12px;text-align:left;background:#f8fafc;border-bottom:1px solid var(--line);font-size:10px;text-transform:uppercase;letter-spacing:.055em;color:#64748b}.table td{padding:11px 12px;border-bottom:1px solid var(--line-soft);vertical-align:middle}.table tr:hover td{background:#fbfdff}.table .actions{display:flex;gap:5px}.toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:13px}.toolbar .grow{flex:1;min-width:230px}.search-wrap{position:relative}.search-wrap .field{padding-left:36px}.search-icon{position:absolute;left:12px;top:12px;color:#94a3b8}.pagination{display:flex;justify-content:flex-end;gap:6px;padding-top:12px}
.sale-layout{height:calc(100vh - 108px);min-height:620px;display:grid;grid-template-columns:minmax(0,1fr) 430px;gap:13px}.sale-products{min-height:0;display:flex;flex-direction:column}.sale-toolbar{padding:12px;border-bottom:1px solid var(--line-soft);display:flex;gap:8px}.product-grid{padding:12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;overflow-y:auto;scrollbar-width:none}.product-grid::-webkit-scrollbar{display:none}.product-card{position:relative;padding:11px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;min-height:130px;transition:.15s}.product-card:hover{border-color:#60a5fa;transform:translateY(-1px);box-shadow:var(--shadow-sm)}.product-card.out{opacity:.55;cursor:not-allowed}.product-card h3{font-size:12px;line-height:1.35;margin:10px 0 6px;min-height:33px}.product-card .sku{font-size:9px;color:var(--muted)}.product-card .price{position:absolute;bottom:11px;left:11px;font-weight:950}.product-card .stock{position:absolute;bottom:11px;right:11px;font-size:9px;color:var(--muted)}.sale-cart{min-height:0;display:flex;flex-direction:column}.customer-bar{padding:12px;border-bottom:1px solid var(--line-soft)}.selected-customer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.cart-lines{flex:1;overflow-y:auto;scrollbar-width:none}.cart-lines::-webkit-scrollbar{display:none}.cart-line{display:grid;grid-template-columns:minmax(0,1fr) 90px 86px 24px;gap:7px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--line-soft)}.cart-line h4{font-size:11px;margin:0 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cart-line small{font-size:9px;color:var(--muted)}.mini-select{display:block;margin-top:4px;max-width:105px;height:24px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:9px;padding:2px 5px}.qty-control{display:flex;align-items:center;justify-content:center;gap:5px}.qty-control button{width:24px;height:24px;border:1px solid var(--line);border-radius:7px;background:#fff}.line-price{width:100%;height:30px;padding:5px 6px;border:1px solid var(--line);border-radius:7px;font-size:11px}.remove-line{border:0;background:transparent;color:#94a3b8;font-size:18px}.remove-line:hover{color:var(--red)}.cart-settings{padding:10px 12px;border-top:1px solid var(--line-soft);display:grid;grid-template-columns:1fr 1fr;gap:8px}.cart-totals{padding:12px;border-top:1px solid var(--line-soft)}.total-row{display:flex;justify-content:space-between;padding:3px 0;color:var(--muted);font-size:11px}.total-row.grand{color:var(--text);font-size:20px;font-weight:950;padding-top:8px}.cart-buttons{display:grid;grid-template-columns:1fr 1.6fr;gap:8px;margin-top:10px}.locked-sale{padding:12px;margin:12px;background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;color:#9a3412;font-size:12px}
.customer-results{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:80;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);max-height:280px;overflow:auto;scrollbar-width:none}.customer-results::-webkit-scrollbar{display:none}.customer-result{display:flex;justify-content:space-between;gap:10px;padding:10px 11px;border-bottom:1px solid var(--line-soft);cursor:pointer}.customer-result:hover{background:#f8fafc}.customer-result b{font-size:12px}.customer-result small{display:block;font-size:10px;color:var(--muted)}
.modal-backdrop{position:fixed;inset:0;z-index:9000;background:rgba(15,23,42,.58);display:grid;place-items:center;padding:18px;backdrop-filter:blur(3px)}.modal{width:min(620px,100%);max-height:calc(100vh - 36px);overflow:auto;scrollbar-width:none;background:#fff;border-radius:17px;box-shadow:0 28px 80px rgba(0,0,0,.25)}.modal::-webkit-scrollbar{display:none}.modal.large{width:min(980px,100%)}.modal-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:15px 17px;border-bottom:1px solid var(--line);background:#fff}.modal-head h3{margin:0;font-size:16px}.modal-close{width:32px;height:32px;border:1px solid var(--line);border-radius:9px;background:#fff}.modal-body{padding:17px}.modal-foot{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:8px;padding:13px 17px;border-top:1px solid var(--line);background:#fff}.payment-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.payment-option{padding:12px;border:1px solid var(--line);border-radius:11px}.payment-option b{display:block;margin-bottom:7px}.payment-summary{margin-top:13px;padding:13px;border-radius:11px;background:#f8fafc}.receipt{width:302px;margin:auto;color:#000;background:#fff;font-family:"Courier New",monospace;font-size:11px}.receipt h2{text-align:center;margin:0}.receipt .center{text-align:center}.receipt .dash{border-top:1px dashed #000;margin:8px 0}.receipt table{width:100%;border-collapse:collapse}.receipt td{padding:3px 0;vertical-align:top}.receipt .r{text-align:right}.receipt-total{font-size:14px;font-weight:900}.report-tabs{display:flex;gap:5px;overflow:auto;scrollbar-width:none;margin-bottom:13px}.report-tabs::-webkit-scrollbar{display:none}.tab{white-space:nowrap;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:11px;font-weight:800}.tab.active{background:var(--navy);color:#fff;border-color:var(--navy)}.chart{height:230px;display:flex;align-items:flex-end;gap:8px;padding:14px}.bar-col{flex:1;min-width:24px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%}.bar{width:100%;max-width:38px;min-height:2px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,#60a5fa,#2563eb)}.bar-label{font-size:8px;color:var(--muted);margin-top:6px;white-space:nowrap}.bar-value{font-size:8px;font-weight:800;margin-bottom:4px}.mobile-overlay{display:none}
@media(max-width:1250px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sale-layout{grid-template-columns:minmax(0,1fr) 390px}.stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){:root{--sidebar:220px}.grid-2,.grid-equal{grid-template-columns:1fr}.sale-layout{height:auto;grid-template-columns:1fr}.sale-products{min-height:560px}.sale-cart{min-height:620px}.product-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.app-shell{display:block}.sidebar{position:fixed;left:-250px;top:0;z-index:200;height:100vh;width:238px;transition:.2s}.app-shell.sidebar-open .sidebar{left:0}.mobile-overlay{position:fixed;inset:0;z-index:190;background:rgba(15,23,42,.5)}.app-shell.sidebar-open .mobile-overlay{display:block}.menu-toggle{display:inline-flex}.topbar{padding:0 13px}.content{padding:13px}.page-head{display:block}.page-actions{margin-top:10px}.stats{grid-template-columns:1fr 1fr;gap:8px}.stat{padding:12px}.stat strong{font-size:18px}.product-grid{grid-template-columns:repeat(2,1fr)}.sale-layout{min-height:0}.sale-products{min-height:520px}.sale-cart{min-height:600px}.cart-line{grid-template-columns:minmax(0,1fr) 76px 72px 22px}.form-grid,.payment-grid{grid-template-columns:1fr}.login-page{display:block}.login-visual{display:none}.login-panel{min-height:100vh}.table{min-width:680px}.shift-chip span{display:none}}
@media print{body>*:not(#modal-root){display:none!important}.modal-backdrop{position:static;display:block;background:#fff;padding:0}.modal{box-shadow:none;max-height:none;width:auto}.modal-head,.modal-foot{display:none}.modal-body{padding:0}.receipt{width:80mm;padding:2mm}@page{margin:0}}
.receipt-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:14px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.receipt-toolbar>div:first-child{width:min(250px,100%)}.receipt-status{display:grid;justify-items:end;gap:5px}.receipt-preview{overflow:auto;max-height:62vh;padding:18px;border:1px solid var(--line);border-radius:12px;background:#e9eef5;scrollbar-width:none}.receipt-preview::-webkit-scrollbar{display:none}.receipt{width:302px;margin:auto;padding:10px;color:#000;background:#fff;font-family:Arial,sans-serif;font-size:11px;box-shadow:0 10px 28px rgba(15,23,42,.12)}.receipt.receipt-58{width:219px;font-size:9.5px}.receipt.receipt-A4,.receipt.receipt-a4{width:min(100%,794px);min-height:900px;padding:48px;font-size:12px}.receipt-copy{text-align:center;font-size:9px;font-weight:950;letter-spacing:.17em;border:1px solid #111;padding:3px;margin-bottom:8px}.receipt-brand{display:flex;align-items:center;justify-content:center;gap:8px}.receipt-logo{width:30px;height:30px;border-radius:8px;background:#111;color:#fff;display:grid;place-items:center;font-weight:950}.receipt-brand h2{margin:0;font-size:16px}.receipt-brand p{margin:1px 0;font-size:.82em}.receipt-divider{border-top:1px dashed #111;margin:8px 0}.receipt-meta{display:grid;gap:3px}.receipt-a4 .receipt-meta{grid-template-columns:1fr 1fr;gap:6px 30px}.receipt-meta div,.receipt-totals div,.receipt-payments div,.receipt-refunds div{display:flex;justify-content:space-between;gap:10px}.receipt-customer{display:grid;gap:2px}.receipt-customer span,.receipt-customer small{font-size:.86em}.receipt-items{width:100%;border-collapse:collapse}.receipt-items th{text-align:left;padding:4px 0;border-bottom:1px solid #111;font-size:.85em}.receipt-items td{padding:5px 0;vertical-align:top;border-bottom:1px dotted #bbb}.receipt-items td small{display:block;font-size:.78em;margin-top:2px}.receipt-items .r{text-align:right}.receipt-totals,.receipt-payments,.receipt-refunds{display:grid;gap:3px}.receipt-grand{font-size:1.35em;border-top:1px solid #111;padding-top:4px;margin-top:2px}.receipt-refund{color:#b91c1c}.receipt-barcode{display:block;width:100%;height:58px}.receipt-footer{text-align:center;margin-top:9px}.receipt-footer p{font-weight:800;margin:0 0 3px}.receipt-footer small{font-size:.78em}@media(max-width:720px){.receipt-toolbar{display:grid;align-items:stretch}.receipt-toolbar>div:first-child{width:100%}.receipt-status{justify-items:start}.receipt-preview{padding:8px}.receipt.receipt-A4,.receipt.receipt-a4{padding:20px;min-height:700px}}

/* POS 2.1.0 exact-unit asset controls and A4 receipt framing */
.receipt.receipt-A4,.receipt.receipt-a4{border-top:8px solid var(--receipt-accent,var(--primary));border-bottom:8px solid var(--receipt-accent,var(--primary))}
.receipt.receipt-A4 .receipt-logo,.receipt.receipt-a4 .receipt-logo{background:var(--receipt-accent,var(--primary))}
.identifier-config{min-width:0}.check-row.identifier-config{align-items:center;gap:8px;padding-top:22px;font-size:12px;font-weight:750}.serial-entry-table input{min-width:130px}
@media(max-width:720px){.receipt.receipt-A4,.receipt.receipt-a4{border-top-width:6px;border-bottom-width:6px}.check-row.identifier-config{padding-top:0}}

/* POS 2.2.0 staff accountability, verified A4/A5 receipts and personal records */
.receipt.receipt-A5,.receipt.receipt-a5{width:min(100%,560px);min-height:760px;padding:36px;font-size:11.5px}
.receipt.receipt-paper{border-top:8px solid var(--receipt-accent,var(--primary));border-bottom:8px solid var(--receipt-accent,var(--primary))}
.receipt.receipt-paper .receipt-logo{background:var(--receipt-accent,var(--primary))}
.receipt-verification{display:grid;grid-template-columns:112px 1fr;gap:14px;align-items:center;margin:13px 0;padding:11px;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc}
.receipt-verification p{margin:4px 0;font-size:10px;line-height:1.38;color:#475569}.receipt-verification small{word-break:break-all}.receipt-qr-svg{display:block;width:100%;height:auto;background:#fff}
.staff-record-badge{display:grid;justify-items:end;gap:3px;padding:9px 12px;border:1px solid var(--line);border-radius:11px;background:#fff}.staff-record-badge b{font-size:12px}.staff-record-badge span{font-size:10px;color:var(--muted);text-transform:capitalize}
.record-product{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line-soft)}.record-product:last-child{border-bottom:0}.record-product .avatar{width:30px;height:30px}.record-product small{display:block;color:var(--muted);margin-top:2px}.record-product>strong{text-align:right;font-size:11px}.record-product>strong small{font-weight:800}
@media(max-width:720px){.receipt.receipt-A5,.receipt.receipt-a5{padding:18px;min-height:650px}.receipt.receipt-paper{border-top-width:6px;border-bottom-width:6px}.receipt-verification{grid-template-columns:92px 1fr}.staff-record-badge{justify-items:start}.page-head:has(.staff-record-badge){align-items:flex-start}}

/* Vanfleek POS 2.3.0 branch operations and responsive repair */
.brand-image{overflow:hidden}.brand-image img{width:100%;height:100%;object-fit:contain}.branch-switch{display:grid;gap:2px}.branch-switch small{font-size:8px;font-weight:900;color:var(--muted);letter-spacing:.08em}.branch-switch .select{height:36px;min-width:160px;padding-block:4px}.branch-chip{display:inline-flex;align-items:center;min-height:34px;padding:0 11px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:11px;font-weight:850}
.performance-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.performance-toolbar .field,.performance-toolbar .select{width:auto;min-width:150px}.performance-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.target-list{display:grid;gap:10px}.target-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:11px;border:1px solid var(--line);border-radius:10px}.target-row small{display:block;color:var(--muted);margin-top:2px}.target-row .progress{grid-column:1/-1;height:7px;border-radius:999px;background:#e2e8f0;overflow:hidden}.target-row .progress span{display:block;height:100%;border-radius:inherit;background:var(--primary)}.compact-list{display:grid;gap:7px}.compact-list>div{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:9px 0;border-bottom:1px solid var(--line-soft)}.compact-list small{grid-column:1/-1;color:var(--muted)}
.attendance-status{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.attendance-status>div{padding:12px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.attendance-status small,.attendance-status b{display:block}.attendance-status small{color:var(--muted);font-size:9px;font-weight:800}.attendance-status b{margin-top:4px}.switch-row{display:flex;align-items:flex-start;gap:8px;padding:10px;border:1px solid var(--line);border-radius:9px;background:#f8fafc}.switch-row input{margin-top:2px}
/* Keep sale controls readable and prevent amount/discount overlap. */
.sale-layout{grid-template-columns:minmax(560px,1fr) minmax(420px,470px);height:calc(100vh - 108px)}.sale-products,.sale-cart{overflow:hidden}.sale-toolbar{flex-wrap:wrap}.sale-toolbar .search-wrap{min-width:260px}.product-grid{grid-template-columns:repeat(auto-fill,minmax(165px,1fr));align-content:start}.product-card{min-width:0;min-height:150px;padding-bottom:38px}.product-card h3{font-size:13px;min-height:auto;margin-bottom:5px}.product-card .price{font-size:15px;bottom:12px;max-width:62%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-card .stock{bottom:13px;max-width:38%;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cart-line{grid-template-columns:minmax(150px,1fr) 86px minmax(112px,130px) 24px;align-items:start}.cart-line>div{min-width:0}.line-price{min-width:0}.cart-lines{min-height:180px}.cart-settings{flex:0 0 auto}.cart-totals{flex:0 0 auto;background:#fff}.receipt-paper:after{content:"";position:absolute;left:0;right:0;bottom:0;height:6px;background:linear-gradient(90deg,var(--receipt-accent,#2563eb) 0 74%,var(--accent,#f59e0b) 74%)}
/* Hidden scrollbars remain scrollable. */
.sidebar,.nav,.product-grid,.cart-lines,.table-wrap{scrollbar-width:none;-ms-overflow-style:none}.sidebar::-webkit-scrollbar,.nav::-webkit-scrollbar,.product-grid::-webkit-scrollbar,.cart-lines::-webkit-scrollbar,.table-wrap::-webkit-scrollbar{width:0;height:0;display:none}
/* Compact enterprise notifications. */
.toast-stack{right:14px;top:78px;max-width:340px}.toast{min-width:260px;max-width:340px;padding:10px 34px 10px 12px;border-radius:10px;font-size:12px}.toast b{font-size:12px}.toast span{font-size:11px;line-height:1.35}.toast button{top:6px;right:7px}
@media(max-width:1350px){.sale-layout{grid-template-columns:minmax(480px,1fr) 410px}.product-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.performance-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1050px){.sale-layout{height:auto;grid-template-columns:1fr}.sale-products{min-height:560px}.sale-cart{min-height:620px}.attendance-status{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.top-actions{gap:5px}.branch-switch{display:none}.sale-layout{display:block}.sale-products{min-height:520px;margin-bottom:12px}.sale-cart{min-height:620px}.sale-toolbar{display:grid;grid-template-columns:1fr 1fr}.sale-toolbar .search-wrap{grid-column:1/-1;min-width:0}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px;gap:7px}.product-card{min-height:140px;padding:9px 9px 36px}.cart-line{grid-template-columns:minmax(0,1fr) 74px 100px 22px;padding:9px 8px}.performance-stats{grid-template-columns:1fr 1fr}.attendance-status{grid-template-columns:1fr}.performance-toolbar .field,.performance-toolbar .select{width:100%}.toast-stack{left:10px;right:10px;top:72px;max-width:none}.toast{min-width:0;max-width:none;width:100%}}
.receipt-logo-image{background:#fff;border:1px solid var(--line);padding:4px}.receipt-logo-image img{width:100%;height:100%;object-fit:contain}.receipt-paper:before,.receipt-paper:after{background:linear-gradient(90deg,var(--receipt-accent,#2563eb) 0 74%,var(--receipt-secondary,#f59e0b) 74%)}
/* Searchable native selectors: the select remains accessible while a compact filter hides non-matching options. */
.select-search-field{height:34px;margin:0 0 6px;padding:6px 9px;font-size:11px;background:#f8fafc}

/* POS 2.3.0 formal paper receipt framing: matching branch-colour rules above and below. */
.receipt.receipt-paper{position:relative;overflow:hidden;border-top:0!important;border-bottom:0!important;padding-top:calc(36px + 7px);padding-bottom:calc(36px + 7px)}
.receipt.receipt-paper:before,.receipt.receipt-paper:after{content:"";position:absolute;left:0;right:0;z-index:1;height:7px;background:linear-gradient(90deg,var(--receipt-accent,#2563eb) 0 74%,var(--receipt-secondary,#f59e0b) 74%)}
.receipt.receipt-paper:before{top:0}.receipt.receipt-paper:after{bottom:0}
@media(max-width:720px){.receipt.receipt-paper{padding-top:25px;padding-bottom:25px}.receipt.receipt-paper:before,.receipt.receipt-paper:after{height:6px}}
.login-status{display:grid;grid-template-columns:12px minmax(0,1fr);align-items:center;gap:10px;margin:14px 0;padding:10px 12px;border:1px solid var(--line,#dbe2ea);border-radius:11px;background:#f8fafc}.login-status b,.login-status small{display:block}.login-status b{font-size:12px}.login-status small{margin-top:2px;color:#64748b;font-size:10px;line-height:1.4}.login-status.online{border-color:#bbf7d0;background:#f0fdf4}.login-status.offline{border-color:#fecaca;background:#fef2f2}.login-status-dot{width:9px;height:9px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.14)}.login-status-dot.online{background:#16a34a;box-shadow:0 0 0 4px rgba(22,163,74,.14)}.login-status-dot.offline{background:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.14)}.login-status-dot.checking{animation:pos-login-pulse 1.2s infinite}@keyframes pos-login-pulse{50%{opacity:.4}}

/* POS 2.4.0 sale types, approval queue and receipt print reliability */
.sale-policy-panel{display:grid;gap:9px;padding:12px 14px;border-bottom:1px solid var(--line);background:#f8fafc}
.sale-rule-note{display:grid;gap:3px;padding:9px 10px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1e3a8a;font-size:11px;line-height:1.4}
.sale-rule-note.required{border-color:#fed7aa;background:#fff7ed;color:#9a3412}
.sale-rule-note b{font-size:12px}.sale-rule-note span,.sale-rule-note small{display:block}
.customer-required{border-color:#f59e0b!important;background:#fffbeb!important;color:#92400e!important}
.approval-box.blocked{border-color:#fecaca;background:#fef2f2;color:#991b1b}
.approval-request-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 14px}
.approval-request-summary>div{padding:10px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}
.approval-request-summary span{display:block;color:var(--muted);font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.approval-request-summary b{display:block;margin-top:4px}
.sale-type-payment-note{display:grid;gap:3px;margin-bottom:12px;padding:10px 12px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff}
.sale-type-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}
.sale-type-summary span{font-weight:850}.sale-type-summary b{font-size:10px;letter-spacing:.08em}
.receipt-colour-rule{display:flex;position:absolute;left:0;right:0;height:7px}
.receipt-colour-rule:first-child{top:0}.receipt-colour-rule:last-child{bottom:0}
.receipt-colour-rule i{display:block;width:74%;border-top:7px solid}.receipt-colour-rule i+i{width:26%}
.receipt-paper{position:relative;overflow:hidden;padding-top:48px!important;padding-bottom:48px!important}
.receipt-document-title{margin-left:auto;text-align:right}.receipt-document-title span{display:block;color:var(--receipt-accent,var(--primary));font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.receipt-document-title strong{display:block;margin-top:4px;font-size:18px}.receipt-document-title small{display:block;margin-top:3px;color:var(--muted)}
.receipt-document-title.thermal-title{margin:8px 0;text-align:center}
.receipt-reference-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:12px 0;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#f8fafc}
.receipt-reference-strip>div{padding:9px;border-right:1px solid var(--line)}.receipt-reference-strip>div:last-child{border-right:0}
.receipt-reference-strip span{display:block;color:var(--muted);font-size:7px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.receipt-reference-strip b{display:block;margin-top:4px;font-size:9px}
.receipt-section-label{display:block;color:var(--receipt-accent,var(--primary));font-size:8px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.receipt-balance{color:#b42318;font-size:1.08em}.receipt-logo-image{overflow:hidden;border:1px solid var(--line);background:#fff}.receipt-logo-image img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:720px){.approval-request-summary{grid-template-columns:1fr}.receipt-reference-strip{grid-template-columns:1fr 1fr}.receipt-reference-strip>div:nth-child(2){border-right:0}.receipt-reference-strip>div:nth-child(-n+2){border-bottom:1px solid var(--line)}}


/* POS 2.4.0 receipt print preservation. Real borders remain visible even when browser background graphics are disabled. */
@media print{
  html,body{background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .receipt-colour-rule{display:flex!important;visibility:visible!important}
  .receipt-colour-rule i{border-top-style:solid!important}
  .receipt-items th{background:#fff!important;color:#101828!important;border-top:2px solid var(--receipt-accent,#2563eb)!important;border-bottom:2px solid var(--receipt-accent,#2563eb)!important}
  .receipt-paper{overflow:visible!important}
  .receipt-logo-image img{visibility:visible!important;opacity:1!important}
}

/* POS 2.4.0 account security and protected receipt lookup */
.lookup-locked{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #fed7aa;background:#fff7ed;color:#9a3412}.lookup-locked b{font-size:12px}.lookup-locked span{flex:1;font-size:11px}.alert{display:grid;gap:4px;margin-bottom:14px;padding:12px 14px;border:1px solid var(--line);border-radius:11px}.alert.danger{border-color:#fecaca;background:#fef2f2;color:#991b1b}.alert span{font-size:11px}.security-state{display:flex;align-items:center;gap:8px}.account-security-note{padding:10px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1e3a8a;font-size:11px;line-height:1.45}
@media(max-width:720px){.lookup-locked{align-items:flex-start;flex-direction:column}.lookup-locked .btn{width:100%}}

/* Vanfleek POS 3.0.0 - procurement, branch branding and accountable stock controls */
.branch-branding-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(135deg,#fff,#f8fafc)}
.branch-branding-assets{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.branch-branding-assets img{display:block;max-width:110px;max-height:58px;object-fit:contain;border:1px solid var(--line);border-radius:10px;padding:6px;background:#fff}.branch-branding-swatch{width:34px;height:34px;border-radius:10px;border:3px solid #fff;box-shadow:0 0 0 1px var(--line)}
.purchase-lines,#transfer-lines,#receive-lines{display:grid;gap:10px;margin:12px 0}.purchase-line,.transfer-line{display:grid;grid-template-columns:minmax(230px,2fr) minmax(90px,.55fr) minmax(110px,.75fr) auto;gap:9px;align-items:end;padding:11px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.transfer-line{grid-template-columns:minmax(230px,1.6fr) 90px minmax(220px,1fr) auto}.transfer-unit{min-width:0}.receive-line{box-shadow:none}.receive-line .card-head{align-items:flex-end}.serialized-receive{display:grid;gap:8px;padding:12px}.serialized-receive-row{display:grid;grid-template-columns:90px repeat(auto-fit,minmax(150px,1fr));gap:8px;align-items:center;padding:9px;border:1px dashed var(--line);border-radius:10px;background:#fff}.serialized-receive-row>b{font-size:11px;color:var(--muted)}
.detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.detail-grid>div{padding:11px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.detail-grid small,.detail-grid b{display:block}.detail-grid small{margin-bottom:5px;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.clickable{cursor:pointer}.clickable:hover td{background:#eff6ff!important}.report-error{border:1px solid #fecaca;background:#fff7f7;color:#991b1b;border-radius:12px;margin:14px}.report-error strong{color:#7f1d1d}
.application-branding-preview{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.application-branding-preview img{max-width:140px;max-height:64px;object-fit:contain;border:1px solid var(--line);border-radius:10px;padding:6px;background:#fff}
@media(max-width:1150px){.purchase-line,.transfer-line{grid-template-columns:1fr 1fr}.purchase-line .remove,.transfer-line .remove{justify-self:start}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.purchase-line,.transfer-line,.serialized-receive-row,.detail-grid,.branch-branding-summary{grid-template-columns:1fr}.purchase-line,.transfer-line{align-items:stretch}.branch-branding-assets{justify-content:flex-start}.receive-line .card-head{align-items:stretch;flex-direction:column}.receive-line .receive-qty{width:100%!important}}
.location-capture{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.location-capture small{flex:1;min-width:220px}.secure-location-state{display:inline-flex;margin-top:8px;padding:5px 9px;border:1px solid #d0d5dd;border-radius:999px;background:#f8fafc;color:#475467;font-size:11px;font-weight:700}@media(max-width:640px){.location-capture{align-items:stretch}.location-capture .btn,.location-capture small{width:100%;min-width:0}.secure-location-state{border-radius:8px}}


/* POS 3.0.2 automatic pagination for reports and operational tables */
.table-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-top:1px solid var(--line);background:#fff;color:var(--muted);font-size:11px}
.table-pagination[hidden]{display:none!important}.table-pagination-summary b{color:var(--text)}.table-pagination-controls{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}.table-pagination-controls label{display:flex;align-items:center;gap:6px;margin-right:5px;font-weight:750}.table-page-size{height:32px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 7px;color:var(--text)}.table-page-button{display:grid;place-items:center;min-width:32px;height:32px;padding:0 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);font-weight:850}.table-page-button:hover:not(:disabled){border-color:var(--primary);color:var(--primary);background:#eff6ff}.table-page-button.active{border-color:var(--primary);background:var(--primary);color:#fff}.table-page-button:disabled{opacity:.4;cursor:not-allowed}@media(max-width:720px){.table-pagination{align-items:flex-start;flex-direction:column}.table-pagination-controls{width:100%;justify-content:flex-start}.table-pagination-controls label{width:100%;justify-content:space-between;margin:0 0 4px}.table-page-size{min-width:82px}}@media print{.table-pagination{display:none!important}}

/* POS 3.0.4: full-height scrolling sale workspace and inline customer capture. */
html,body,#app{height:100%;overflow:hidden}
.app-shell{height:100vh;min-height:0;overflow:hidden}
.main{height:100vh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.content{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}
.content::-webkit-scrollbar{width:0;height:0;display:none}
.sale-layout{height:100%;min-height:0}
.sale-products{min-height:0;overflow:hidden}
.sale-products .product-grid{flex:1;min-height:0}
.sale-cart{min-height:0;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior:contain}
.sale-cart::-webkit-scrollbar{width:0;height:0;display:none}
.sale-policy-panel,.customer-bar,.cart-settings,#approval-summary{flex:0 0 auto}
.sale-cart .cart-lines{flex:0 0 auto;min-height:210px;overflow:visible}
.sale-cart .cart-totals{position:sticky;bottom:0;z-index:8;background:#fff;box-shadow:0 -10px 24px rgba(15,23,42,.06)}
.sale-customer-panel{display:grid;gap:9px;padding:10px;border:1px solid var(--line);border-radius:11px;background:#f8fafc}
.sale-customer-panel.required{border-color:#f59e0b;background:#fffbeb}
.sale-customer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.sale-customer-head b{display:block;font-size:12px}.sale-customer-head small{display:block;margin-top:2px;color:var(--muted);font-size:10px}
.sale-customer-phone-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.sale-customer-phone-row .btn{min-width:76px}
.sale-customer-status{min-height:18px;font-size:10px;line-height:1.45}
.sale-customer-status.not-found{color:#92400e}.sale-customer-status.error{color:#b91c1c}
.sale-customer-register{display:grid;gap:10px;padding-top:10px;border-top:1px solid var(--line)}
.sale-customer-register[hidden]{display:none!important}
.customer-selected-card{align-items:flex-start}
.customer-selected-copy{display:grid;gap:3px;min-width:0}.customer-selected-copy>b{font-size:12px}.customer-selected-copy>small{max-width:310px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.customer-selected-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.customer-results-static{position:static;max-height:360px;margin-top:10px;box-shadow:none}
.customer-results-static .customer-result{width:100%;border:0;background:#fff;text-align:left}
@media(max-width:1050px){html,body,#app{overflow:auto}.app-shell,.main{height:auto;min-height:100vh;overflow:visible}.content{overflow:visible}.sale-layout{height:auto}.sale-products,.sale-cart{overflow:visible}.sale-cart .cart-totals{position:static}.sale-cart .cart-lines{min-height:280px}}
@media(max-width:720px){.sale-customer-phone-row{grid-template-columns:1fr}.sale-customer-phone-row .btn{width:100%}.sale-customer-head{align-items:stretch;flex-direction:column}.sale-customer-head .btn{width:100%}.customer-selected-card{align-items:stretch;flex-direction:column}.customer-selected-actions{justify-content:flex-start}.customer-selected-copy>small{max-width:100%}}

/* POS 3.0.5 shift awareness */
.shift-issues-panel{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:12px;align-items:center;margin-bottom:12px;padding:11px 13px;border:1px solid #fed7aa;border-radius:12px;background:#fffaf0}.shift-issues-panel b,.shift-issues-panel small{display:block}.shift-issues-panel small{margin-top:2px;color:#7c2d12}.shift-issue-tags{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.shift-issue-tag{padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900;background:#fff7ed;color:#c2410c}.shift-issue-tag.blocking{background:#fef2f2;color:#b91c1c}.shift-issue-tag.warning{background:#fffbeb;color:#a16207}.shift-issue-list{display:grid;gap:9px}.shift-issue-card{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fff}.shift-issue-card>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#fff7ed;color:#c2410c;font-weight:950}.shift-issue-card.blocking{border-color:#fecaca;background:#fffafa}.shift-issue-card.blocking>span{background:#fee2e2;color:#b91c1c}.shift-issue-card p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.45}@media(max-width:820px){.shift-issues-panel{grid-template-columns:1fr}.shift-issue-tags{justify-content:flex-start}.shift-issues-panel .btn{width:100%}.shift-issue-card{grid-template-columns:28px 1fr}.shift-issue-card .btn{grid-column:1/-1}}

/* POS 3.0.7 - consistent full-width route panels and enterprise spacing. */
.main{width:100%;min-width:0;max-width:none}
.content{width:100%;max-width:none;margin:0;align-self:stretch;padding:22px clamp(16px,2vw,30px)}
#content{width:100%;min-width:0;max-width:none;margin:0}
#content>*{min-width:0;max-width:none}
#content>.page-head,#content>.card,#content>.stats,#content>.grid-2,#content>.grid-equal,#content>.toolbar,#content>.shift-issues-panel{width:100%}
.page-head{width:100%;align-items:center;margin:0 0 14px;padding:0}
.page-head>div:first-child{flex:1;min-width:0}
.page-head h1{margin:0 0 4px;font-size:22px;line-height:1.2;letter-spacing:-.015em}
.page-head p{max-width:980px;margin-bottom:0;line-height:1.5}
.page-actions{flex:0 0 auto;justify-content:flex-end}
.card{width:100%;min-width:0;overflow:hidden}
.card+.card{margin-top:14px}
.table-wrap{width:100%;max-width:100%;margin:0}
.table{width:100%}
.table .empty{padding:26px 18px}
.toolbar{width:100%;margin-bottom:12px}
.grid-2,.grid-equal,.stats{width:100%}
.detail-grid{width:100%}
.route-error{width:100%;margin:0}
.topbar{min-width:0}
.top-left{min-width:0;flex:1}
.top-left>div{min-width:0}
.page-title,.top-left .muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top-actions{min-width:0;max-width:72%;justify-content:flex-end}
.shift-chip{min-width:0;max-width:min(460px,46vw)}
.shift-chip span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Keep route tables visually aligned with their headings and avoid narrow centered panels. */
#content>.page-head+.card,#content>.page-head+.grid-2,#content>.page-head+.grid-equal,#content>.page-head+.toolbar{margin-top:0}
#content>.card .table-wrap:first-child{border-radius:inherit}

@media(min-width:1600px){
  .content{padding-left:34px;padding-right:34px}
}
@media(max-width:1050px){
  .content{width:100%;padding:18px}
  .top-actions{max-width:68%}
  .page-head{align-items:flex-start}
}
@media(max-width:720px){
  .content{width:100%;padding:13px}
  .page-head{display:flex;align-items:stretch;flex-direction:column;gap:10px;margin-bottom:12px}
  .page-head h1{font-size:20px}
  .page-actions{width:100%;justify-content:flex-start;margin-top:0}
  .page-actions .btn{flex:1 1 auto}
  .top-actions{max-width:none}
  .top-actions .branch-chip{display:none}
  .shift-chip{max-width:150px}
}

/* POS 3.0.8 - customer account and approval controls. */
.customer-account-balance{display:grid;gap:4px;margin:12px 0;padding:14px;border:1px solid #bfdbfe;border-radius:13px;background:linear-gradient(135deg,#eff6ff,#fff);color:#1e3a8a}.customer-account-balance span{font-size:9px;font-weight:900;letter-spacing:.1em}.customer-account-balance b{font-size:24px;line-height:1.1;color:#0f172a}.customer-account-balance small{color:#64748b}.customer-account-balance.large{margin:0 0 16px;padding:18px}.customer-account-balance.large b{font-size:30px}.customer-result{width:100%;border:1px solid var(--line);background:#fff;cursor:pointer}.customer-result:hover{border-color:var(--primary);background:#f8fbff}.payment-option input[data-method="CUSTOMER_ACCOUNT"]{border-color:#93c5fd;background:#eff6ff}


/* POS 3.0.8.1 - independent sale-cart scrolling with fixed payment controls. */
.sale-cart{overflow:hidden!important}
.sale-cart-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior:contain;padding-bottom:10px}
.sale-cart-scroll::-webkit-scrollbar{width:0;height:0;display:none}
.sale-cart-scroll .sale-policy-panel,.sale-cart-scroll .customer-bar,.sale-cart-scroll .cart-settings,.sale-cart-scroll #approval-summary{flex:0 0 auto}
.sale-cart .cart-lines{flex:0 0 auto;min-height:120px;overflow:visible}
.sale-cart .cart-totals{position:relative!important;bottom:auto!important;z-index:10;flex:0 0 auto;background:#fff;box-shadow:0 -10px 24px rgba(15,23,42,.08)}
@media(max-width:1050px){.sale-cart{overflow:visible!important}.sale-cart-scroll{overflow:visible;padding-bottom:0}.sale-cart .cart-totals{position:static!important}}


/* POS 3.0.8.2 - complete enterprise modal styling and responsive behaviour. */
body.modal-open{overflow:hidden}
.modal-backdrop{align-items:center;justify-items:center;overflow-y:auto;overscroll-behavior:contain}
.modal{display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(148,163,184,.28);background:#fff}
.modal.large{width:min(1100px,100%)}
.modal-head{flex:0 0 auto;min-height:58px;padding:16px 19px;background:linear-gradient(180deg,#fff,#fbfdff)}
.modal-head h3{min-width:0;margin:0;font-size:17px;line-height:1.25;letter-spacing:-.01em;overflow-wrap:anywhere}
.modal-close{flex:0 0 auto;display:grid;place-items:center;color:#475569;font-size:22px;line-height:1;transition:.15s}
.modal-close:hover{border-color:#cbd5e1;background:#f1f5f9;color:#0f172a}
.modal-body{flex:1 1 auto;min-height:0;max-height:calc(100dvh - 154px);overflow-y:auto;overflow-x:hidden;padding:18px 19px;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;overscroll-behavior:contain}
.modal-body::-webkit-scrollbar{width:7px}.modal-body::-webkit-scrollbar-track{background:transparent}.modal-body::-webkit-scrollbar-thumb{border-radius:999px;background:#cbd5e1}
.modal-foot{flex:0 0 auto;min-height:64px;align-items:center;padding:12px 19px;background:#fff;box-shadow:0 -8px 24px rgba(15,23,42,.04)}
.modal-foot .btn{min-width:112px}
.modal-body>form{display:grid;gap:14px}
.modal-body .form-grid{align-items:start}
.modal-body .form-grid>*,.modal-body .form-group,.modal-body .group{min-width:0}
.modal-body .form-group,.modal-body .group{display:grid;gap:6px;margin:0}
.modal-body .form-grid>.full,.modal-body .full{grid-column:1/-1}
.modal-body .toolbar{position:relative;margin-bottom:14px}
.modal-body .table-wrap{border:1px solid var(--line);border-radius:12px;background:#fff}
.modal-body .table th{position:sticky;top:0;z-index:1}
.modal-body .table td{vertical-align:top}
.modal-body .card{box-shadow:none}
.modal-body h4{margin:0 0 10px;font-size:13px}
.modal-body p:last-child{margin-bottom:0}

/* Modal information and section blocks. */
.info-box{display:block;padding:11px 13px;border:1px solid #bfdbfe;border-radius:11px;background:#eff6ff;color:#1e3a8a;font-size:11px;line-height:1.55}
.info-box b{color:#172554}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 9px;padding-bottom:8px;border-bottom:1px solid var(--line-soft)}
.section-head:first-child{margin-top:0}.section-head h3,.section-head h4,.section-head b{margin:0}
.product-overview{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:start;padding:14px;border:1px solid var(--line);border-radius:13px;background:linear-gradient(135deg,#f8fafc,#fff)}
.product-overview h3{margin:0 0 5px;font-size:17px}.product-overview p{margin:3px 0;color:var(--muted);font-size:11px;line-height:1.5}.product-overview p b{color:var(--text)}
.price-policy{display:grid;gap:6px;padding:12px;border:1px solid #fed7aa;border-radius:11px;background:#fff7ed;color:#9a3412;font-size:11px;line-height:1.5}
.price-policy b{color:#7c2d12}
.approval-box.approved{border-color:#bbf7d0;background:#f0fdf4;color:#166534}
.imei-sale-detail{display:grid;gap:4px;margin-top:8px;padding:9px 10px;border:1px solid #fde68a;border-radius:9px;background:#fffbeb;color:#92400e;font-size:10px;line-height:1.45}
.movement-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--line-soft)}
.movement-row:last-child{border-bottom:0}.movement-row b,.movement-row small{display:block}.movement-row small{margin-top:3px;color:var(--muted);font-size:10px}.movement-row>span{flex:0 0 auto;color:var(--muted);font-size:10px;text-align:right}

/* Variant and exact-unit selector modals. */
.unit-list{display:grid;gap:9px}
.unit-option{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px 13px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text);text-align:left;transition:.15s}
.unit-option:not(label){grid-template-columns:minmax(0,1fr) auto}
.unit-option:hover{border-color:#93c5fd;background:#f8fbff;box-shadow:0 5px 16px rgba(37,99,235,.07)}
.unit-option:has(.unit-check:checked){border-color:var(--primary);background:#eff6ff;box-shadow:0 0 0 2px rgba(37,99,235,.1)}
.unit-option>div{min-width:0}.unit-option b,.unit-option small{display:block}.unit-option small{margin-top:3px;color:var(--muted);font-size:10px;line-height:1.4;overflow-wrap:anywhere}.unit-option>div:last-child{text-align:right}
.unit-check{width:18px;height:18px;accent-color:var(--primary)}

/* Product creation, inspection and tracked stock-in modals. */
.inspection-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;padding:12px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}
.inspection-options .check-row{min-height:38px;margin:0;padding:8px 10px;border:1px solid var(--line-soft);border-radius:9px;background:#fff}
.stock-in-head{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(180px,.65fr);gap:12px;align-items:end;margin-bottom:14px;padding:13px;border:1px solid var(--line);border-radius:13px;background:#f8fafc}
.stock-product-picker{display:grid;gap:6px;min-width:0}
.serial-entry-wrap{width:100%;max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff;scrollbar-width:thin}
.serial-entry-wrap .serial-entry-table{min-width:1180px;margin:0}
.serial-entry-wrap .field,.serial-entry-wrap .select{min-width:118px}
.serial-entry-wrap .unit-primary,.serial-entry-wrap .unit-secondary{min-width:155px}
.serial-entry-wrap .unit-notes,.serial-entry-wrap .unit-accessories{min-width:170px}
.stock-in-head+.info-box{margin-bottom:13px}

/* Refund, payment, transfer and action-modal details. */
.payment-input{margin-top:6px}
.refund-unit-list{display:grid;gap:6px;min-width:210px}
.refund-unit{display:flex;align-items:center;gap:7px;padding:7px 9px;border:1px solid var(--line-soft);border-radius:8px;background:#f8fafc;font-size:10px}
.refund-unit input{accent-color:var(--primary)}
.refund-qty,.counted{min-width:92px}
.row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.modal .transfer-product,.modal .transfer-qty,.modal .unit-id{min-width:0}
.modal .group+.group{margin-top:2px}
.modal form>.btn:last-child{justify-self:end;min-width:180px}
.modal .receipt-toolbar{border-radius:11px}

@media(max-width:720px){
  .modal-backdrop{place-items:end center;padding:0;background:rgba(15,23,42,.62)}
  .modal,.modal.large{width:100%;max-height:94dvh;border:0;border-radius:18px 18px 0 0}
  .modal-head{min-height:55px;padding:14px 15px}.modal-head h3{font-size:16px}
  .modal-body{max-height:none;padding:15px}.modal-foot{min-height:62px;padding:10px 15px calc(10px + env(safe-area-inset-bottom));flex-wrap:wrap}
  .modal-foot .btn{flex:1 1 130px;min-width:0}
  .modal-body .form-grid{grid-template-columns:1fr}
  .modal-body .form-grid>.full,.modal-body .full{grid-column:1}
  .product-overview,.stock-in-head{grid-template-columns:1fr}
  .inspection-options{grid-template-columns:1fr!important}
  .unit-option{grid-template-columns:auto minmax(0,1fr)}.unit-option:not(label){grid-template-columns:1fr}.unit-option>div:last-child{text-align:left}
  .movement-row{display:grid}.movement-row>span{text-align:left}
  .modal form>.btn:last-child{width:100%;justify-self:stretch}
}
@media print{body.modal-open{overflow:visible}.modal-body{max-height:none;overflow:visible}}

/* 3.0.8 PIN/password credential clarity */
.field-help{display:block;margin-top:6px;color:var(--muted);font-size:11px;line-height:1.45}
