:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#182a42;background:#f0f4f9;font-size:16px;color-scheme:light}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;padding-bottom:90px}header{background:#173c85;color:white;padding:20px max(20px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font-size:.75rem;font-weight:750;letter-spacing:.16em}h1{font-size:1.4rem;margin:5px 0 0}h2{font-size:1.15rem;margin:0 0 18px}main{max-width:1220px;margin:auto;padding:14px 20px}.panel{background:white;border:1px solid #d9e3ef;border-radius:15px;padding:22px}.narrow{max-width:430px;margin:30px auto}p{line-height:1.5}.muted{color:#63758b;font-size:.85rem}label{display:block;margin:14px 0;font-size:.9rem;font-weight:600}input,select,textarea{display:block;width:100%;font:inherit;padding:12px;border:1px solid #b6c6db;border-radius:8px;background:white;color:#182a42;margin-top:7px;min-height:46px}button{font:inherit;font-weight:650;padding:12px 16px;min-height:46px;border-radius:9px;border:1px solid #173c85;background:#173c85;color:white;cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8bb5f6;outline-offset:2px}.secondary{background:#fff;color:#173c85}.quiet{background:#edf2fa;color:#294974;border-color:transparent}header .quiet{background:#ffffff1a;color:white}#notice:not(:empty){padding:13px 16px;border-radius:9px;background:#e1ebfb;white-space:pre-line}#notice[data-kind=error]{background:#ffe8e5;color:#a32218}#notice[data-kind=success]{background:#dff3e9;color:#14633f}.identity,.section-head{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-bottom:16px}.section-head h2{margin:0}nav{display:flex;gap:8px;margin:16px 0}nav button{background:#fff;color:#173c85;border-color:#ccd8e8}nav button.selected{background:#173c85;color:#fff}.sales-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:20px;align-items:start}.barcode-row{display:flex;gap:8px}.barcode-row input{margin:0}.products{display:grid;gap:10px;margin-top:16px}.product{display:flex;gap:12px;justify-content:space-between;border:1px solid #e0e7f0;border-radius:10px;padding:14px}.product p{margin:5px 0;font-size:.85rem;color:#63758b}.product .price{font-weight:700;color:#173c85}.product button{align-self:center;white-space:nowrap}.pager{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:20px;font-size:.85rem}.line{border-bottom:1px solid #e0e7f0;padding:15px 0}.line-head{display:flex;justify-content:space-between;gap:12px}.line input{max-width:140px;min-width:0}.line-fields{display:flex;gap:14px;align-items:flex-end}.line-fields label{flex:1;margin-bottom:8px}.line small{color:#63758b}.total{display:flex;justify-content:space-between;border-top:1px solid #d9e3ef;padding:20px 0;margin-top:18px;font-size:1.15rem}#checkout,#loginButton{width:100%;margin-top:12px}.receipt-button{display:block;width:100%;text-align:left;background:white;color:#173c85;margin-top:10px;border-color:#cbd9eb}#receiptDetail{margin-top:25px}#receiptDetail table{width:100%;border-collapse:collapse;font-size:.9rem}#receiptDetail td{padding:10px 5px;border-bottom:1px solid #e0e7f0}#cartSummary{position:fixed;bottom:0;left:0;right:0;padding:12px max(20px,calc((100vw - 1180px)/2)) max(12px,env(safe-area-inset-bottom));background:white;border-top:1px solid #d2dfef;display:flex;gap:20px;align-items:center;justify-content:space-between;z-index:5}#summaryTotal{font-weight:750}dialog{width:min(460px,calc(100% - 30px));border:1px solid #c6d6eb;border-radius:16px;padding:22px}dialog::backdrop{background:#102038aa}video{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#122540;border-radius:10px}#cameraStop{width:100%}@media(max-width:800px){header{padding:17px 16px}main{padding:10px 12px}.panel{padding:18px}.sales-layout{display:block}#salesPanel[data-view=products] #cartView,#salesPanel[data-view=cart] #productsView,#salesPanel[data-view=receipts] #productsView,#salesPanel[data-view=receipts] #cartView{display:none}.product{padding:12px}.line-fields{gap:10px}nav button{flex:1;padding:12px 8px}body{padding-bottom:96px}}@media(min-width:801px){#receiptsView{grid-column:1/-1}#cartSummary{display:none}}
