:root{--navy:#102a43;--navy2:#0b2033;--blue:#176b87;--teal:#00a896;--mint:#dff7f1;--ink:#152536;--muted:#66788a;--line:#dbe3ea;--soft:#f3f6f8;--white:#fff;--danger:#c2413b;--shadow:0 18px 55px rgba(16,42,67,.13);font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:#e9eff3;font-size:16px}*{box-sizing:border-box}body{margin:0;min-height:100vh;overflow:hidden}button,input{font:inherit}button{cursor:pointer}.topbar{height:72px;background:var(--navy);color:#fff;display:flex;align-items:center;padding:0 24px;gap:28px}.brand{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none;font-size:1.08rem;letter-spacing:-.02em}.brand b{color:#75e2d3}.brand-mark{display:grid;place-items:center;width:34px;height:34px;background:var(--teal);border-radius:9px;font-weight:900}.store{border-left:1px solid #345069;padding-left:28px;display:flex;flex-direction:column;gap:3px}.store-name{font-weight:700;font-size:.9rem}.register{font-size:.75rem;color:#a9bac8}.top-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.status,.sync-button{height:42px;border-radius:9px;display:flex;align-items:center;gap:9px}.status{padding:0 13px;background:#183b54;color:#d9e7ef;font-size:.82rem}.status span{width:8px;height:8px;border-radius:50%;background:#46d7a8;box-shadow:0 0 0 4px rgba(70,215,168,.13)}.status.offline span{background:#ffb65c}.sync-button{border:1px solid #3b566b;background:transparent;color:white;padding:0 13px}.sync-button span:last-child{font-size:.78rem;color:#c6d4de}.icon-button{width:40px;height:40px;border:1px solid var(--line);background:white;border-radius:9px;font-size:1.2rem;color:var(--muted)}.topbar .icon-button{background:#183b54;border-color:#3b566b;color:white}.pos-shell{height:calc(100vh - 72px);display:grid;grid-template-columns:minmax(0,1fr) 430px}.catalog-panel{background:var(--soft);padding:24px 26px 16px;overflow:auto;display:flex;flex-direction:column}.scan-row{display:flex;gap:10px}.search-box{height:50px;flex:1;background:white;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;padding:0 14px;gap:10px;box-shadow:0 3px 14px rgba(30,57,75,.05)}.search-box:focus-within{border-color:var(--teal);box-shadow:0 0 0 3px rgba(0,168,150,.12)}.search-box span{font-size:1.5rem;color:var(--muted)}.search-box input{border:0;outline:0;flex:1;min-width:0}.search-box kbd,.catalog-footer kbd{background:#eef2f4;border:1px solid #d3dce2;border-bottom-width:2px;border-radius:5px;padding:2px 6px;color:#657687;font-size:.7rem}.camera-button{border:0;border-radius:10px;background:var(--blue);color:white;padding:0 21px;font-weight:750}.catalog-head{display:flex;align-items:end;justify-content:space-between;margin:25px 0 17px}.eyebrow{margin:0 0 5px;color:var(--teal);font-size:.7rem;font-weight:850;letter-spacing:.12em}.catalog-head h1,.cart-head h2,.dialog-title h2{margin:0;font-size:1.35rem;letter-spacing:-.03em}.category-tabs{display:flex;gap:5px;background:#e7ecef;border-radius:9px;padding:4px}.category-tabs button{border:0;background:transparent;color:var(--muted);padding:7px 10px;border-radius:6px;font-size:.78rem}.category-tabs button.active{background:white;color:var(--navy);font-weight:750;box-shadow:0 2px 7px rgba(16,42,67,.08)}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:12px}.product-card{position:relative;text-align:left;background:white;border:1px solid var(--line);border-radius:12px;padding:16px;min-height:130px;transition:.15s ease;box-shadow:0 4px 14px rgba(16,42,67,.035)}.product-card:hover,.product-card:focus-visible{border-color:#71c9bd;transform:translateY(-2px);box-shadow:0 8px 20px rgba(16,42,67,.09);outline:none}.product-card .sku{font-size:.67rem;color:#8a99a7}.product-card h3{font-size:.9rem;line-height:1.3;margin:8px 0 18px;min-height:36px}.product-card .product-bottom{display:flex;align-items:end;justify-content:space-between}.product-card .price{font-size:.87rem;font-weight:800}.product-card .stock{font-size:.67rem;color:var(--teal)}.product-card .stock.low{color:#bb6b17}.add-dot{position:absolute;right:12px;top:12px;width:24px;height:24px;border-radius:7px;background:var(--mint);color:#058b7c;display:grid;place-items:center;font-weight:900}.catalog-footer{display:flex;gap:22px;margin-top:auto;padding-top:18px;color:#8493a0;font-size:.68rem}.catalog-footer span{display:flex;align-items:center;gap:6px}.cart-panel{background:white;border-left:1px solid var(--line);padding:24px;display:flex;flex-direction:column;min-height:0}.cart-head{display:flex;justify-content:space-between;align-items:center}.text-button{border:0;background:transparent;font-size:.75rem;font-weight:700}.danger{color:var(--danger)}.customer-card{margin:18px 0 15px;border:1px solid var(--line);background:#f8fafb;border-radius:10px;padding:10px 12px;display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;text-align:left}.avatar{width:36px;height:36px;border-radius:9px;background:var(--navy);color:white;display:grid;place-items:center;font-size:.7rem;font-weight:800}.customer-card small{display:block;color:var(--muted);font-size:.67rem;margin-bottom:2px}.customer-card strong{font-size:.82rem}.customer-card>span:last-child{font-size:1.5rem;color:#8a99a7}.cart-items{overflow:auto;display:flex;flex-direction:column}.cart-item{display:grid;grid-template-columns:1fr auto;gap:8px;padding:13px 0;border-bottom:1px solid #edf1f4}.cart-item h3{margin:0 0 4px;font-size:.82rem}.cart-item small{color:var(--muted);font-size:.68rem}.cart-item-price{text-align:right;font-weight:800;font-size:.82rem}.qty{margin-top:8px;display:flex;align-items:center;gap:8px}.qty button{width:25px;height:25px;border:1px solid var(--line);background:white;border-radius:6px}.qty span{min-width:20px;text-align:center;font-size:.76rem;font-weight:700}.empty-cart{margin:auto;text-align:center;color:#8a99a7}.empty-cart>span{display:grid;place-items:center;margin:0 auto 12px;width:52px;height:52px;border-radius:15px;background:#edf3f5;color:#89a1ae;font-size:1.5rem}.empty-cart strong{display:block;color:#586b79;font-size:.9rem}.empty-cart p{font-size:.74rem}.totals{margin-top:auto;border-top:1px solid var(--line);padding-top:15px;display:flex;flex-direction:column;gap:8px}.totals>div{display:flex;justify-content:space-between;font-size:.78rem;color:var(--muted)}.totals .grand-total{font-size:1rem;color:var(--ink);padding-top:8px;border-top:1px dashed var(--line)}.grand-total strong{font-size:1.25rem}.pay-button{margin-top:18px;border:0;background:var(--teal);color:#062f2b;border-radius:10px;min-height:52px;padding:0 17px;display:flex;align-items:center;justify-content:space-between;font-weight:850;box-shadow:0 6px 16px rgba(0,168,150,.2)}.pay-button:disabled{background:#cfdadd;color:#87969d;box-shadow:none;cursor:not-allowed}dialog{border:0;padding:0;border-radius:16px;box-shadow:var(--shadow);width:min(92vw,490px)}dialog::backdrop{background:rgba(6,25,39,.55);backdrop-filter:blur(3px)}.dialog-card{padding:24px;margin:0}.dialog-title{display:flex;justify-content:space-between;align-items:start;margin-bottom:20px}.field{display:flex;flex-direction:column;gap:7px}.field span,fieldset legend{font-size:.75rem;font-weight:750;color:#4d6272}.field input{height:46px;border:1px solid var(--line);border-radius:9px;padding:0 12px;outline:none}.field input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(0,168,150,.1)}.field small{color:var(--muted);font-size:.68rem}.customer-list{margin-top:13px;display:flex;flex-direction:column;gap:5px}.customer-option{border:0;background:#f5f8fa;border-radius:9px;padding:10px;display:grid;grid-template-columns:36px 1fr auto;align-items:center;text-align:left;gap:10px}.customer-option:hover{background:var(--mint)}.customer-option strong{font-size:.8rem}.customer-option small{display:block;color:var(--muted);font-size:.68rem;margin-top:3px}.amount-due{background:var(--navy);color:white;border-radius:12px;padding:15px 17px;display:flex;justify-content:space-between;align-items:center}.amount-due span{font-size:.76rem;color:#b8c9d5}.amount-due strong{font-size:1.3rem}.payment-methods{border:0;padding:0;margin:20px 0}.payment-methods legend{margin-bottom:9px}.payment-methods{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.payment-methods legend{grid-column:1/-1}.payment-methods label input{position:absolute;opacity:0}.payment-methods label span{height:74px;border:1px solid var(--line);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:.73rem}.payment-methods label input:checked+span{border:2px solid var(--teal);background:#edfbf8;color:#087d70}.payment-methods b{font-size:1rem}.sync-summary{background:#f3f7f9;padding:13px;border-radius:10px;font-size:.8rem;color:var(--muted)}.sync-list{margin-top:12px;max-height:280px;overflow:auto}.sync-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:12px 2px}.sync-row strong{display:block;font-size:.78rem}.sync-row small{color:var(--muted);font-size:.68rem}.pill{font-size:.65rem;font-weight:800;padding:4px 8px;border-radius:999px;background:#fff0dc;color:#a45a08}.pill.synced{background:var(--mint);color:#067a6c}.scanner-view{height:220px;background:linear-gradient(135deg,#122c3f,#07151f);border-radius:12px;margin-bottom:17px;display:grid;place-items:center;position:relative;color:#d5e0e7}.scan-frame{position:absolute;width:70%;height:105px;border:2px solid #55dbc8;border-radius:12px;box-shadow:0 0 0 999px rgba(4,16,24,.25)}.scan-frame:after{content:"";position:absolute;left:8px;right:8px;top:50%;height:2px;background:#55dbc8;box-shadow:0 0 12px #55dbc8}.scanner-view p{position:absolute;bottom:11px;margin:0;font-size:.72rem}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:var(--navy2);color:white;padding:11px 16px;border-radius:9px;font-size:.78rem;opacity:0;pointer-events:none;transition:.2s;box-shadow:var(--shadow)}.toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:1050px){.product-grid{grid-template-columns:repeat(3,1fr)}.pos-shell{grid-template-columns:minmax(0,1fr) 380px}}@media(max-width:780px){body{overflow:auto}.topbar{height:auto;min-height:64px;padding:10px 14px}.store{display:none}.status{display:none}.pos-shell{height:auto;display:block}.catalog-panel{padding:16px}.cart-panel{border-left:0;border-top:1px solid var(--line);min-height:600px}.product-grid{grid-template-columns:repeat(2,minmax(130px,1fr))}.catalog-head{display:block}.category-tabs{margin-top:12px;overflow:auto}.catalog-footer{display:none}.top-actions{gap:5px}.sync-button{padding:0 9px}.camera-button{padding:0 14px}}@media(max-width:420px){.brand span:last-child{display:none}.product-grid{grid-template-columns:1fr 1fr}.product-card{padding:12px;min-height:120px}.category-tabs button{padding:7px}.cart-panel{padding:18px}}
