:root{font-family:Segoe UI,Arial,sans-serif;color:#1e2934;background:#f4f6f8;font-size:14px;--green:#12765f;--border:#e4e9ed;--muted:#77838e}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{outline-offset:3px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button,a{transition:background .15s}button{border:0;background:none;color:inherit}button:hover{background:#edf2f0}input,select{width:100%;border:1px solid #d8e0e5;border-radius:9px;padding:11px 12px;background:white;color:#1e2934}input:focus,select:focus{outline:2px solid #97cfbf;outline-offset:1px}label{display:block;font-weight:600}label input,label select{margin-top:6px}h1,h2,h3,p{margin:0}h1{font-size:26px;letter-spacing:-.7px}h2{font-size:18px;letter-spacing:-.3px}p{line-height:1.6}.muted{color:var(--muted);font-size:13px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.9px;color:var(--muted);margin-bottom:5px}.primary,.secondary{border-radius:9px;padding:12px 18px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:12px}.primary{color:white;background:var(--green)}.primary:hover{background:#0c604c}.secondary{background:white;border:1px solid #dce4e8}.text-button{color:var(--muted);font-size:12px;padding:7px;border-radius:6px}.icon-button{width:34px;height:34px;border:1px solid var(--border);border-radius:8px;font-size:22px;display:grid;place-items:center}.badge{background:#edf1f4;color:#65727b;font-size:11px;font-weight:600;border-radius:6px;padding:7px 10px}.badge.open{background:#e7f4ee;color:var(--green)}.sidebar{position:fixed;inset:0 auto 0 0;width:190px;background:#fff;border-right:1px solid var(--border);padding:28px 17px;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;color:#223d34;text-decoration:none;font-size:16px;line-height:1.15;margin:0 6px 43px}.brand b{font-size:22px}.brand-mark{background:var(--green);color:white;border-radius:14px;font-size:36px;font-weight:700;width:66px;height:66px;display:grid;place-items:center}.brand-mark.small{width:42px;height:46px;border-radius:11px;font-size:27px}.nav-item{width:100%;padding:13px 12px;display:flex;gap:12px;align-items:center;color:#75818a;border-radius:9px;margin-bottom:7px;font-weight:600}.nav-item>span{font-size:21px;width:24px}.nav-item.active{background:#e9f4ef;color:var(--green)}kbd{font-size:10px;border:1px solid #dfe5e5;border-radius:4px;padding:3px;color:#8b969b;background:#fafbfb}.nav-item kbd{margin-left:auto}.sidebar-bottom{margin-top:auto;font-size:12px;color:#63716c;padding:10px}.sidebar-bottom p{font-size:11px;color:#a0a9ad;margin-top:9px;margin-bottom:15px}.status-dot{display:inline-block;background:#32a77b;width:7px;height:7px;border-radius:50%;margin-right:4px}main{margin-left:190px}.topbar{height:102px;padding:25px 32px;border-bottom:1px solid var(--border);background:#fff;display:flex;align-items:center;justify-content:space-between}.topbar-right{display:flex;align-items:center;gap:17px;font-size:13px}.view{padding:25px 30px}.pos-layout{display:grid;grid-template-columns:minmax(300px,1fr) 380px;gap:24px;height:calc(100vh - 153px);min-height:550px}.catalog{display:flex;flex-direction:column;min-width:0}.search-row{display:flex;gap:12px}.search-label{display:flex;align-items:center;background:white;border:1px solid #dce4e9;border-radius:10px;flex:1;gap:10px;padding:4px 12px;font-weight:400}.search-label span{font-size:25px;color:#98a5ac}.search-label input{margin:0;padding:10px 0;border:0;min-width:0}.search-label input:focus{outline:none}.search-label:focus-within{outline:2px solid #97cfbf}.categories{display:flex;gap:7px;overflow:auto;padding:20px 0}.category{white-space:nowrap;font-size:12px;background:white;border:1px solid var(--border);border-radius:7px;padding:8px 13px}.category.active{background:#273d36;color:white;border-color:#273d36}.catalog-heading{display:flex;justify-content:space-between;align-items:center;padding:2px 0 16px}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:13px;align-content:start;overflow:auto;flex:1;padding:2px}.product-card{background:white;border:1px solid var(--border);border-radius:12px;padding:16px;text-align:left;min-height:160px;position:relative}.product-card:hover{border-color:#8ebda8;background:#fff;box-shadow:0 5px 15px #183c3010}.product-card:disabled{opacity:.55}.product-icon{width:40px;height:40px;border-radius:10px;background:#eef4f1;display:grid;place-items:center;font-size:21px;color:#719582;margin-bottom:15px}.product-card:nth-child(3n+2) .product-icon{background:#f9f0e7;color:#ba9674}.product-card:nth-child(3n) .product-icon{background:#edf0f8;color:#8b95b3}.product-name{display:block;font-size:13px;font-weight:600;line-height:1.4;min-height:36px;margin-bottom:14px;overflow-wrap:anywhere}.product-bottom{display:flex;justify-content:space-between;align-items:center;gap:6px}.product-price{font-size:16px;font-weight:700}.product-stock{font-size:10px;color:var(--muted)}.catalog-footer{display:flex;justify-content:space-between;gap:10px;padding-top:17px;font-size:11px;color:#98a3aa}.cart-panel{background:white;border:1px solid var(--border);border-radius:13px;display:flex;flex-direction:column;overflow:hidden;min-height:0;box-shadow:0 4px 20px #1a2c3510}.cart-header{padding:21px 20px;display:flex;justify-content:space-between;border-bottom:1px solid var(--border);align-items:center}.cart-header h2{font-size:17px;margin-bottom:5px}.notice{background:#fff7e4;padding:12px 20px;color:#95732f;font-size:12px}.cart-items{flex:1;overflow:auto;padding:7px 20px}.empty-state{padding:50px 20px;text-align:center;color:#95a1a8;grid-column:1/-1;align-self:center}.empty-state .empty-symbol{font-size:44px;display:block;margin-bottom:16px;color:#b8c5c0}.empty-state h3{font-size:16px;color:#687971;margin-bottom:7px}.empty-state p{font-size:12px;max-width:250px;margin:auto}.empty-state button{margin-top:20px}.cart-item{padding:15px 0;border-bottom:1px solid #edf0f2}.cart-item-title{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px}.cart-item-title strong{font-size:13px;overflow-wrap:anywhere}.remove-item{color:#a0aab1;padding:0 2px;font-size:17px}.cart-item-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.quantity{display:flex;border:1px solid var(--border);border-radius:7px;align-items:center;overflow:hidden}.quantity button{height:27px;width:27px;font-size:16px}.quantity input{border:0;padding:3px;width:40px;border-radius:0;text-align:center;font-size:12px;margin:0;appearance:textfield}.quantity input::-webkit-inner-spin-button{appearance:none}.cart-item-price{color:#849098;font-size:11px;margin-left:8px}.cart-item-sum{font-size:13px;font-weight:600}.cart-footer{padding:20px;border-top:1px solid var(--border);background:#fff}.summary-row{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#7b8790;margin-bottom:12px}.summary-row strong{font-size:13px;color:#33434b}.discount{font-weight:400}.discount input{width:95px;margin:0;padding:7px 10px;text-align:right;font-size:12px}.total-row{display:flex;justify-content:space-between;align-items:center;padding:15px 0 23px}.total-row>span{font-weight:600}.total-row strong{font-size:31px;letter-spacing:-1px}.total-row small{font-size:18px;color:#8c999e;font-weight:400}.checkout{width:100%;justify-content:space-between;padding:16px 17px}.checkout span{opacity:.6;font-size:12px}.fine-print{text-align:center;font-size:9px;color:#9ca6ad;margin-top:12px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.section-heading h2{font-size:23px;margin-bottom:5px}.section-heading.compact{padding:20px;margin-bottom:0}.section-heading.compact h2{font-size:17px}.panel{background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px;white-space:nowrap}th{font-size:10px;letter-spacing:.5px;color:#8d99a0;font-weight:600;text-align:left;background:#fafbfc;padding:15px 20px;border-bottom:1px solid var(--border)}td{padding:17px 20px;border-bottom:1px solid #edf0f2}tr:last-child td{border:0}td:first-child{font-weight:600}td .text-button{color:var(--green)}.wide-search{margin:18px;width:calc(100% - 36px);max-width:430px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:24px}.metric{background:white;border:1px solid var(--border);border-radius:12px;padding:23px}.metric>span{font-size:12px;color:var(--muted)}.metric strong{display:block;font-size:27px;letter-spacing:-1px;margin-top:13px}.metric small{font-size:12px;color:#a2aeb3}.spaced-title{margin:28px 0 18px}.settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}.settings-card{padding:30px}.settings-card h2{margin:15px 0 12px}.settings-card p{color:#7c8991;font-size:13px;margin-bottom:20px}.tile-symbol{font-size:32px;color:var(--green)}.button-link{text-decoration:none}.auth-screen{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 30% 20%,#e1efe7,#f4f6f8 65%)}.auth-card{background:white;max-width:430px;width:calc(100% - 32px);padding:42px;border:1px solid var(--border);border-radius:20px;box-shadow:0 15px 80px #203b3210}.auth-card .brand-mark{margin-bottom:25px}.auth-card h1{margin-bottom:10px}.auth-card form{display:grid;gap:16px;margin-top:25px}.auth-card small{display:block;text-align:center;color:#a1abb0;font-size:11px;margin-top:22px}.auth-card label{font-size:12px}.error{color:#c04842;font-size:13px;line-height:1.5;margin-top:10px}.error:empty{display:none}dialog{border:1px solid var(--border);border-radius:17px;padding:25px;width:520px;max-width:calc(100vw - 32px);max-height:90vh;box-shadow:0 20px 100px #132e3030}dialog::backdrop{background:#142b3360;backdrop-filter:blur(3px)}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid .full{grid-column:1/-1}.form-grid label{font-size:12px}.modal-actions{margin-top:24px;display:flex;gap:10px;justify-content:flex-end}.payment-total{text-align:center;border-bottom:1px solid var(--border);padding:5px 0 23px;margin-bottom:22px}.payment-total strong{display:block;font-size:38px;margin-top:6px}.payment-methods{display:flex;gap:10px;margin-bottom:22px}.payment-methods button{flex:1;padding:12px;border:1px solid var(--border);border-radius:8px}.payment-methods button.active{border-color:var(--green);background:#eaf5ef;color:var(--green)}.payment-result{display:flex;justify-content:space-between;padding:20px 0;font-size:16px}.receipt{font-family:Consolas,monospace;font-size:13px;padding:5px 10px}.receipt h3,.receipt p{text-align:center;margin:6px 0}.receipt table{font:inherit;white-space:normal;margin:15px 0}.receipt td{padding:8px 3px}.receipt td:last-child{text-align:right}.receipt .summary-row{font:inherit}.receipt-total{font-size:20px;display:flex;justify-content:space-between;padding:15px 0;border-top:1px dashed #9ca6ad}.receipt-note{font-size:11px;color:#8b969d}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#213d34;color:white;padding:14px 25px;border-radius:10px;z-index:10;box-shadow:0 4px 24px #0002}.toast.failure{background:#98433d}#print-area{display:none}[hidden]{display:none!important}@media(max-width:1200px){.sidebar{width:160px;padding:25px 12px}main{margin-left:160px}.view{padding:22px}.pos-layout{grid-template-columns:minmax(250px,1fr) 340px;gap:18px}.product-grid{grid-template-columns:repeat(auto-fill,minmax(135px,1fr))}.topbar{padding:25px 22px}.metrics{grid-template-columns:repeat(2,1fr)}}@media(max-width:850px){.sidebar{position:static;width:auto;padding:12px 18px;flex-direction:row;align-items:center;gap:16px}.brand{margin:0;font-size:11px}.brand b{font-size:16px}.brand-mark.small{width:32px;height:36px;font-size:22px}.sidebar nav{display:flex;gap:5px;overflow:auto}.nav-item{padding:8px;margin:0;white-space:nowrap;font-size:12px}.nav-item span,.nav-item kbd,.sidebar-bottom{display:none}main{margin:0}.topbar{height:80px}.topbar-right{gap:8px}.pos-layout{height:auto;grid-template-columns:1fr;min-height:0}.catalog{min-height:350px}.product-grid{max-height:450px}.cart-panel{min-height:450px}.settings-grid{grid-template-columns:1fr}.view{padding:18px}.topbar-right #cashier{display:none}.section-heading h2{font-size:20px}.search-row .secondary{padding:10px}.search-label kbd{display:none}}@media print{body>*{display:none!important}#print-area{display:block!important;width:76mm;color:black;font-size:11px;margin:0 auto}#print-area *{box-shadow:none}#print-area .receipt{padding:0}#print-area table{font-size:11px}#print-area .receipt-total{font-size:15px}@page{size:auto;margin:8mm}}
:root .cashier-mode .sidebar{display:none}.cashier-mode main{margin-left:0}.cashier-mode .pos-layout{grid-template-columns:minmax(300px,1fr) 400px}.topbar{gap:20px}.topbar-right{flex-wrap:wrap;justify-content:flex-end}.topbar-right .secondary{font-size:12px;padding:9px 12px}.auth-divider{text-align:center;color:#8b989e;font-size:12px;margin:20px 0 15px}.auth-card #badge-form{gap:14px;margin-top:0}.auth-card #cashier-setup{display:grid;gap:16px}.profile-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.badge-card{text-align:center;border:1px solid #d8e0e5;border-radius:12px;padding:24px 15px;background:white}.badge-card h2{font-size:25px;margin:12px 0}.badge-card img{display:block;width:100%;height:auto;margin:20px auto 8px}.badge-code{font-family:Consolas,monospace;font-size:11px;overflow-wrap:anywhere}.badge-card small{display:block;color:#8b989e;margin-top:12px}@media(max-width:1050px){.topbar{height:auto;min-height:102px}.topbar-right{gap:8px}.topbar-right #shift-badge{font-size:10px}.cashier-mode .pos-layout{grid-template-columns:minmax(250px,1fr) 340px}}@media(max-width:850px){.cashier-mode .pos-layout{grid-template-columns:1fr}.topbar{align-items:flex-start}.topbar h1{font-size:22px}.topbar-right{max-width:60%}.topbar-right #shift-badge{flex-basis:100%;text-align:right}.topbar-right .secondary{font-size:11px;padding:8px}.cashier-mode .topbar-right #cashier{display:block;font-size:12px}}@media print{#print-area:has(.badge-card){width:100mm}.badge-card{width:100mm;padding:6mm;border:1px solid #aaa}.badge-card h2{font-size:22px}.badge-card img{margin:8mm 0 2mm}}
