.pos-shell{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:10px;height:100%;min-height:0;position:relative;color:var(--text)}
#content:has(.pos-shell){height:calc(100% - 42px)!important;max-height:calc(100% - 42px)!important;min-height:0!important;overflow:hidden!important;padding-bottom:0!important}
.pos-shell{max-height:100%;overflow:hidden!important}
.pos-left{min-width:0;display:flex;flex-direction:column;gap:8px;overflow:hidden}.pos-customer-bar{display:grid;grid-template-columns:150px minmax(240px,1fr) 150px;gap:8px;padding:10px;background:linear-gradient(135deg,#111d33,#122840);border:1px solid var(--line);border-radius:12px}.pos-customer-bar label span,.pos-totals label span{display:block;font-size:10px;color:var(--muted);margin:0 0 4px;font-weight:800}.pos-customer-bar input,.pos-customer-bar select,.pos-totals input{width:100%;height:36px;border:1px solid #31516d;border-radius:8px;background:#091626;color:#fff;padding:0 10px;outline:none}.pos-customer-bar input:focus,.pos-customer-bar select:focus,.pos-totals input:focus{border-color:#22d3ee;box-shadow:0 0 0 3px rgba(34,211,238,.12)}.pos-customer-due{border:1px solid rgba(251,191,36,.4);border-radius:9px;padding:7px 10px;background:rgba(251,191,36,.08)}.pos-customer-due span{font-size:9px;color:#f8d782}.pos-customer-due b{display:block;margin-top:4px;color:#fbbf24;font-size:16px}.pos-search{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;border:1px solid #294966;background:#081525;border-radius:10px;overflow:hidden}.pos-search>span{text-align:center;color:#70dff2;font-size:20px}.pos-search input{height:40px;border:0;background:transparent;color:#fff;outline:0;padding:0 6px}.pos-search button{height:40px;border:0;border-left:1px solid #294966;border-radius:0;background:linear-gradient(135deg,#6d28d9,#8b5cf6);color:#fff;font-weight:900;padding:0 15px}.pos-categories{display:flex;gap:6px;overflow:auto;padding:1px 0 4px;scrollbar-width:thin}.pos-categories button{white-space:nowrap;border:1px solid #344a69;border-radius:999px;background:#111a2d;color:#cbd5e1;padding:6px 12px;font-size:11px;font-weight:800}.pos-categories button.active{background:linear-gradient(135deg,#0ea5a6,#2563eb);border-color:#22d3ee;color:#fff}.pos-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:9px;overflow:auto;padding:2px 3px 12px;align-content:start;scrollbar-width:thin}.pos-product-card{background:linear-gradient(180deg,#132139,#0d1729);border:1px solid #2c4765;border-radius:13px;overflow:hidden;box-shadow:0 10px 22px rgba(0,0,0,.24);transition:.18s;min-width:0}.pos-product-card:hover{transform:translateY(-2px);border-color:#22d3ee;box-shadow:0 12px 28px rgba(14,165,233,.16)}.pos-product-image{height:112px;position:relative;background:#06101d;overflow:hidden}.pos-product-image img{width:100%;height:100%;object-fit:cover;display:block}.pos-product-image>span{position:absolute;top:6px;left:6px;background:rgba(5,13,24,.85);border:1px solid #44617b;border-radius:6px;padding:3px 6px;font:700 8px ui-monospace;color:#d7efff}.pos-product-image>b{position:absolute;right:6px;top:6px;background:rgba(5,128,94,.92);border:1px solid #34d399;border-radius:999px;padding:3px 7px;font-size:8px;color:#fff}.pos-product-info{padding:8px}.pos-product-info h4{font-size:12px;margin:0;color:#f8fafc;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pos-product-info p{font-size:9px;color:#94a3b8;margin:3px 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pos-product-info strong{display:block;color:#fbbf24;font-size:15px;margin-bottom:7px}.pos-add-btn{width:100%;height:32px;border:0;border-radius:8px;background:linear-gradient(90deg,#06b6a4,#1688ea);color:#fff;font-size:11px;font-weight:900}.pos-add-btn:disabled{opacity:.4;cursor:not-allowed}.pos-cart-panel{min-width:0;border:1px solid #2d4c68;border-radius:13px;background:linear-gradient(180deg,#0b1b2c,#081521);display:flex;flex-direction:column;overflow:hidden}.pos-cart-head{display:flex;justify-content:space-between;align-items:center;padding:10px 11px;border-bottom:1px solid #28455f;background:#11253c}.pos-cart-head h3{margin:0;font-size:17px}.pos-cart-head h3 span{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:#2563eb;font-size:11px}.pos-cart-head p{margin:2px 0 0;color:#8fa8ba;font-size:8px}.pos-clear{border:0;background:transparent;color:#fb7185;font-size:9px;font-weight:800}.pos-cart-items{flex:1;min-height:110px;overflow:auto;padding:6px;scrollbar-width:thin}.pos-cart-row{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-areas:'img name' 'qty price';gap:4px 7px;padding:7px;border:1px solid #263d56;border-radius:10px;background:#101d2f;margin-bottom:6px;position:relative}.pos-cart-row img{grid-area:img;width:42px;height:42px;border-radius:8px;object-fit:cover;background:#06101d}.pos-cart-name{grid-area:name;min-width:0;padding-right:18px}.pos-cart-name b{font-size:10px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pos-cart-name small{color:#8fd9e8;font-size:9px}.pos-qty{grid-area:qty;display:flex;align-items:center}.pos-qty button{width:22px;height:24px;border:1px solid #40566f;background:#17263b;color:#fff}.pos-qty input{width:30px;height:24px;border:1px solid #40566f;background:#091321;color:#fff;text-align:center}.pos-cart-row>strong{grid-area:price;align-self:center;justify-self:end;color:#fbbf24;font-size:10px}.pos-remove{position:absolute;right:5px;top:5px;border:0;background:transparent;color:#fb7185;font-size:16px}.pos-cart-empty{height:100%;min-height:150px;display:grid;place-content:center;text-align:center;color:#71899d;gap:5px}.pos-cart-empty i{font-style:normal;font-size:32px}.pos-cart-empty b{color:#c4d4e0}.pos-cart-empty span{font-size:9px}.pos-totals{border-top:1px solid #28455f;padding:8px 10px;display:grid;gap:7px;background:#0d1c2d}.pos-totals>div,.pos-totals label{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px}.pos-totals label span{margin:0}.pos-totals input{width:120px;height:30px;text-align:right}.pos-grand{border-top:1px dashed #40566f;padding-top:7px;font-size:15px!important}.pos-grand b{color:#a78bfa;font-size:17px}.pos-change b{color:#34d399}.pos-cart-actions{display:grid;grid-template-columns:85px 1fr;gap:7px;padding:9px;border-top:1px solid #28455f}.pos-cart-actions button{height:38px;border-radius:9px;font-weight:900}.pos-complete{border:0;background:linear-gradient(90deg,#7c3aed,#a855f7);color:#fff}.pos-history{position:absolute;inset:0;z-index:5;background:#0a1424;border:1px solid #3d5471;border-radius:13px;padding:12px;overflow:auto}.pos-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.pos-section-title h3{margin:0}.pos-section-title p{margin:2px 0 0;color:#94a3b8;font-size:9px}.pos-no-product{grid-column:1/-1;display:grid;place-items:center;min-height:180px;color:#8199ad;border:1px dashed #314c67;border-radius:12px}
@media(min-width:821px){.pos-left,.pos-cart-panel{height:100%;min-height:0}.pos-products{flex:1 1 0;min-height:0!important;overflow-y:auto!important}.pos-cart-items{flex:1 1 0;min-height:58px!important;overflow-y:auto!important}.pos-cart-head,.pos-totals,.pos-cart-actions{flex:0 0 auto}.pos-cart-empty{min-height:80px}}
@media(max-width:820px){#content:has(.pos-shell){height:auto!important;max-height:none!important;overflow:visible!important}.pos-shell{grid-template-columns:1fr;height:auto;max-height:none;overflow:visible!important}.pos-left{overflow:visible}.pos-products{overflow:visible;grid-template-columns:repeat(2,minmax(0,1fr))}.pos-cart-panel{min-height:480px}.pos-customer-bar{grid-template-columns:1fr 1fr}.pos-customer-bar .wide{grid-column:1/-1;grid-row:1}.pos-history{position:fixed;inset:46px 8px 8px}.pos-search{grid-template-columns:32px 1fr}.pos-search button{display:none}}
@media(max-width:480px){.pos-products{grid-template-columns:1fr 1fr;gap:6px}.pos-product-image{height:94px}.pos-product-info{padding:7px}.pos-product-info h4{font-size:10px}.pos-customer-bar{grid-template-columns:1fr}.pos-customer-bar .wide{grid-column:auto;grid-row:auto}.pos-categories button{font-size:9px;padding:5px 9px}}
@media(max-width:820px){#appWindow{overflow-y:auto!important;overflow-x:hidden!important}.main{height:auto!important;max-height:none!important;overflow:visible!important}}
@media(min-width:821px){.pos-products{grid-auto-rows:223px!important}.pos-product-card{height:223px!important}}
