:root{color-scheme:dark;--bg:#151517;--page:#1e1e20;--side:#222224;--panel:#29292b;--panel2:#303032;--border:#3b3b3e;--muted:#98989e;--ink:#f6f6f6;--accent:#ef655d;--accent2:#ff9b4e;--green:#82c98f;--shadow:0 18px 55px #0004;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:#121214;color:var(--ink)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}h1,h2,h3,h4,p{margin:0}h1{font-size:30px;letter-spacing:-1px}h2{font-size:21px;letter-spacing:-.6px}h3{font-size:15px}p{line-height:1.6}a{color:inherit;text-decoration:none}input,select,textarea{width:100%;padding:12px 13px;background:#242427;border:1px solid #464649;border-radius:12px;color:white;outline:0;min-height:43px}textarea{min-height:85px;resize:vertical}input:focus,textarea:focus,select:focus{border-color:#f07b72;box-shadow:0 0 0 3px #ef655d25}input[type=checkbox]{width:17px;height:17px;min-height:0;accent-color:var(--accent)}input[type=color]{padding:4px;height:45px}input[type=date]{color-scheme:dark}button{border:0}button:focus-visible,a:focus-visible{outline:2px solid #ff9b4e;outline-offset:2px}.primary,.secondary,.ghost,.danger,.light-btn{border-radius:12px;padding:12px 16px;font-weight:750;transition:background .15s,transform .15s}.primary{background:linear-gradient(120deg,#f66c61,#d84c49);color:#fff}.primary:hover{background:linear-gradient(120deg,#ff8177,#dc5651)}.secondary{background:#353539;border:1px solid #4b4b50;color:#fff}.secondary:hover,.ghost:hover{background:#3d3d41}.ghost{color:#ddd;background:transparent}.danger{background:#662f30;color:#ffb6b0}.light-btn{background:#eee;color:#222}.small-btn{font-size:12px;padding:8px 10px;border-radius:9px}.wide{width:100%}.primary span{margin-left:10px}.muted,.sub,.dim{color:var(--muted)}.small{font-size:12px}.micro{font-size:10px}.upper{text-transform:uppercase}.bold{font-weight:800}.eyebrow{font-size:10px;font-weight:900;letter-spacing:1.55px;text-transform:uppercase;color:var(--accent)}.sub{font-size:13px;margin-top:6px}.center{text-align:center}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.stack{display:flex;flex-direction:column;gap:12px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.field,form label{display:flex;flex-direction:column;gap:7px;color:#d6d6d8;font-weight:650;font-size:12px}.field{margin:9px 0}label input,label select,label textarea{margin-top:2px;font-weight:450}.checklabel{display:flex;flex-direction:row;align-items:center;gap:9px;font-size:12px;font-weight:500;color:#c4c4c7}.brandmark{height:52px;width:52px;display:flex;align-items:center;justify-content:center;border-radius:17px;background:#f15f56;color:#fff;font-size:36px;font-weight:1000;letter-spacing:-4px;line-height:1}.brandmark span{color:#ffd07e;font-size:35px}.loading{display:flex;min-height:100vh;justify-content:center;align-items:center;flex-direction:column;gap:12px}.loading p{color:#aaa}.auth-wrap{min-height:100vh;padding:6vh 20px 40px;display:flex;flex-direction:column;align-items:center;gap:28px;background:radial-gradient(ellipse at 90% 2%,#522e2e65,transparent 35%),#171719}.auth-brand{display:flex;align-items:center;gap:13px;font-weight:950;letter-spacing:2px}.auth-card{width:min(440px,100%);background:#232326;border:1px solid #3a3a3c;border-radius:27px;padding:34px;box-shadow:var(--shadow)}.auth-card .sub{margin:14px 0 24px}.auth-card form{display:flex;flex-direction:column;gap:18px}.auth-card h1{font-size:34px;margin-top:12px}.mini-note{font-size:11px;color:#888;line-height:1.6;margin-top:20px}.app-frame{margin:26px auto;width:min(1550px,calc(100% - 46px));min-height:calc(100vh - 52px);background:var(--page);border-radius:38px;box-shadow:var(--shadow);overflow:hidden;display:grid;grid-template-columns:210px minmax(0,1fr)}.app-frame.has-cart{grid-template-columns:210px minmax(0,1fr) 340px}.sidebar{background:#242426;border-right:1px solid #333336;display:flex;flex-direction:column;min-height:calc(100vh - 52px);padding:32px 19px 24px}.side-head{display:flex;align-items:center;gap:12px;margin:4px 8px 45px}.side-head .brandmark{width:44px;height:44px;font-size:30px;border-radius:13px}.side-head strong{font-size:15px;line-height:1.15;letter-spacing:.5px}.side-head small{display:block;color:#9e9ea2;font-size:10px;margin-top:6px}.navcol{display:flex;flex-direction:column;gap:7px}.nav-item{width:100%;display:flex;align-items:center;gap:13px;padding:12px 13px;border-radius:14px;background:transparent;color:#a8a8ae;text-align:left;font-size:12px;font-weight:700}.nav-item:hover{background:#323236;color:#fff}.nav-item.active{color:#ff716a;background:#3b2e30}.nav-icon{font-size:19px;width:25px;text-align:center}.nav-spacer{flex:1}.side-footer{display:flex;flex-direction:column;gap:10px;padding:20px 5px 0;border-top:1px solid #363639}.avatar{width:35px;height:35px;display:grid;place-items:center;border-radius:50%;background:#5b413e;color:#ffd0c9;font-weight:800}.surface{padding:31px 32px 55px;min-width:0}.page-heading{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:25px}.page-heading h1{font-size:26px}.heading-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #4b4b4e;border-radius:999px;padding:6px 10px;color:#cacacd;background:#333336;font-size:11px;font-weight:700}.chip.success{border-color:#3a6248;color:#a8e0b0;background:#294131}.chip.warn{border-color:#665033;color:#ffc587;background:#453629}.kpi-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:23px}.kpi{padding:17px 16px;border:1px solid #3b3b3d;border-radius:17px;background:#29292b;min-width:0}.kpi .k-label{font-size:11px;color:#98989d}.kpi strong{font-size:21px;letter-spacing:-.6px;display:block;margin-top:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kpi .k-note{font-size:10px;color:#9c9ca1;margin-top:5px}.kpi.accent{border-color:#6b3938;background:linear-gradient(135deg,#46302f,#322829)}.kpi.accent strong{color:#ffb0a8}.section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:18px 0 13px}.section-heading h2{font-size:17px}.section-heading p{font-size:11px;color:var(--muted);margin-top:3px}.category-strip{display:flex;gap:15px;overflow:auto;padding:8px 2px 10px;scrollbar-width:thin}.category-tile{flex:0 0 77px;border:0;background:transparent;color:#bdbdc1;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:11px}.category-tile .bubble{height:58px;width:58px;display:grid;place-items:center;border-radius:50%;font-size:28px;border:2px solid #4c4c50;background:radial-gradient(circle at 35% 20%,#585454,#333336)}.category-tile.active{color:#ff8479}.category-tile.active .bubble{border-color:#ff7e74;box-shadow:0 0 0 3px #ee6c6120}.products-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:19px 0 24px}.product-card{min-width:0;background:#2b2b2d;border:1px solid #39393c;border-radius:22px;padding:13px;position:relative;overflow:hidden;display:flex;flex-direction:column;gap:8px;min-height:190px}.product-card:hover{border-color:#6c5150}.product-photo{height:85px;width:95px;border-radius:21px;background:radial-gradient(circle at 30% 20%,#62524d,#373438 80%);display:grid;place-items:center;font-size:52px;overflow:hidden;align-self:center;margin:4px 0 2px}.product-photo img{width:100%;height:100%;object-fit:contain}.product-card b{font-size:13px}.product-card .price{font-weight:900;color:#fff;margin-top:auto}.add-round{border-radius:50%;background:#e95e56;color:#fff;width:30px;height:30px;display:grid;place-items:center;font-size:20px}.product-card .bottom{display:flex;justify-content:space-between;align-items:center;gap:7px}.unavailable{opacity:.53}.unavailable .add-round{background:#555}.panel{border:1px solid #3a3a3d;border-radius:20px;background:#29292c;padding:20px;margin-bottom:15px}.panel-header{display:flex;align-items:start;justify-content:space-between;gap:10px;margin-bottom:13px}.panel h2{font-size:17px}.divider{height:1px;background:#434347;margin:15px 0}.order-list{display:flex;flex-direction:column;gap:10px}.order-card{background:#333336;border:1px solid #444448;border-radius:15px;padding:13px}.order-card .title{display:flex;justify-content:space-between;align-items:center;gap:8px}.order-card .order-items{font-size:11px;color:#b4b4b9;margin:8px 0}.order-card .row{justify-content:space-between}.right-cart{background:#303032;border-left:1px solid #404043;padding:30px 18px;min-width:0;display:flex;flex-direction:column;gap:15px}.cart-header{border-radius:20px;background:#414143;padding:19px 18px}.cart-header h3{font-size:13px}.cart-header .sub{font-size:11px}.cart-section{flex:1;display:flex;flex-direction:column;min-height:260px}.cart-lines{display:flex;flex-direction:column;gap:5px;overflow:auto;max-height:50vh}.cart-line{padding:12px 0;border-bottom:1px solid #444448;display:flex;gap:9px;align-items:center}.line-icon{height:44px;width:46px;flex:0 0 46px;display:grid;place-items:center;background:#464043;border-radius:13px;font-size:25px}.cart-line-info{flex:1;min-width:0}.cart-line-info b{font-size:12px}.cart-line-info p{font-size:10px;color:#aaa}.qtybox{display:flex;align-items:center;gap:9px;margin-top:8px}.qtybox button{width:23px;height:23px;border-radius:50%;border:1px solid #777;background:transparent;color:white}.qtybox span{font-size:12px}.subtotal{margin-top:auto;padding-top:18px}.subtotal .row{justify-content:space-between;margin:6px 0;font-size:13px}.grandtotal{display:flex;justify-content:space-between;align-items:center;font-size:17px;font-weight:900;padding:17px 0;border-top:1px solid #4b4b4e;margin-top:16px}.cart-empty{padding:40px 8px;text-align:center;color:#999;font-size:12px}.cart-empty span{display:block;font-size:37px;margin-bottom:10px}.checkline{display:flex;gap:8px;align-items:center;font-size:12px;color:#c1c1c3}.quick-actions{display:flex;flex-wrap:wrap;gap:7px}.quick-actions button{padding:8px 10px;font-size:11px}.list-table{width:100%;border-collapse:collapse;font-size:12px}.list-table th{font-size:10px;color:#a7a7a9;text-transform:uppercase;letter-spacing:.7px;background:#363639;padding:12px;text-align:left}.list-table td{padding:12px;border-bottom:1px solid #404044}.list-table th:first-child{border-radius:12px 0 0 12px}.list-table th:last-child{border-radius:0 12px 12px 0}.status{border-radius:999px;padding:5px 10px;font-size:10px;font-weight:800;background:#50412e;color:#ffd68e;display:inline-flex}.status.success{background:#294c34;color:#a1e6ae}.status.danger{background:#5b3034;color:#ffaba9}.status.gray{background:#454549;color:#b8b8bd}.money{font-variant-numeric:tabular-nums}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-grid .full{grid-column:1/-1}.form-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.modal-layer{position:fixed;inset:0;z-index:100;background:#000b;display:flex;align-items:center;justify-content:center;padding:16px}.modal-box{width:min(590px,100%);max-height:90vh;overflow:auto;background:#2a2a2d;border:1px solid #58585a;border-radius:22px;padding:28px;position:relative;box-shadow:0 25px 75px #0008}.modal-box h2{font-size:21px;margin:0 30px 7px 0}.modal-box .sub{margin-bottom:16px}.modal-close{position:absolute;right:16px;top:14px;width:31px;height:31px;border-radius:50%;background:#454549;color:white;font-size:20px}.toast-msg{display:block;background:#353336;color:white;border:1px solid #a65e58;border-radius:10px;max-width:520px;padding:13px 17px;box-shadow:var(--shadow);margin:7px auto}#toast{z-index:200;position:fixed;bottom:15px;left:15px;right:15px;pointer-events:none;text-align:center}.empty-state{text-align:center;padding:34px 10px;color:#aaa;font-size:12px}.empty-state span{font-size:34px;display:block;margin-bottom:12px}.pill-tabs{display:flex;flex-wrap:wrap;background:#363638;border:1px solid #444448;padding:4px;border-radius:13px;gap:3px}.pill-tabs button{padding:9px 15px;border-radius:10px;background:transparent;color:#c7c7ca;font-size:12px;font-weight:700}.pill-tabs button.active{background:var(--accent);color:#fff}.note-line{font-size:10px;background:#4c3b32;color:#ffe3b2;padding:7px 8px;border-radius:8px;margin:8px 0}.receipt-preview{font:12px/1.6 monospace;white-space:pre-wrap;padding:13px;border:1px dashed #65656a;background:#1b1b1d;border-radius:11px;max-height:350px;overflow:auto}.media-upload{display:flex;flex-direction:column;gap:10px;padding:13px;border:1px dashed #5b5b5f;border-radius:14px}.search-row{display:flex;gap:9px;align-items:center;margin-bottom:15px}.search-row input{flex:1}.search-row .category-select{max-width:210px}.stock-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #3f3f42;padding:12px 2px}.stock-row:last-child{border:0}.switch{border-radius:999px;background:#51403a;border:1px solid #785047;color:#ffb5a5;font-size:11px;font-weight:800;padding:7px 10px}.switch.on{background:#2b4733;border-color:#4c7957;color:#b3f5ba}.notif{padding:11px 0;border-bottom:1px solid #39393b}.notif:last-child{border:0}.dashboard-note{border-left:3px solid var(--accent);background:#393237;border-radius:0 10px 10px 0;padding:11px 14px;font-size:12px;color:#cfc6c4;margin-bottom:15px}.file-thumb{height:52px;width:52px;object-fit:cover;border-radius:12px}.owner-section{display:none}.owner-section.active{display:block}.scroll-card{max-height:480px;overflow:auto}.mini-stat{padding:10px;background:#333337;border:1px solid #424246;border-radius:12px}.mini-stat small{color:#aaa}.mini-stat b{display:block;font-size:16px;margin-top:5px}.desktop-only{}.mobile-only{display:none}
@media(max-width:1370px){.app-frame.has-cart{grid-template-columns:185px minmax(0,1fr) 310px}.app-frame{grid-template-columns:185px minmax(0,1fr)}.sidebar{padding:27px 12px}.surface{padding:25px 22px}.products-grid{gap:9px}.product-card{padding:11px}.right-cart{padding:25px 15px}}
@media(max-width:1120px){.app-frame.has-cart{grid-template-columns:158px minmax(0,1fr)}.app-frame{grid-template-columns:158px minmax(0,1fr)}.right-cart{grid-column:2;grid-row:2;border-left:0;border-top:1px solid #404043;display:block}.right-cart .cart-section{min-height:0}.right-cart .cart-lines{max-height:260px}.side-head{margin-left:3px}.side-head strong{font-size:12px}.sidebar{grid-row:1/span 2}.product-photo{width:78px;height:78px;font-size:40px}}
@media(max-width:850px){.app-frame,.app-frame.has-cart{width:100%;margin:0;border-radius:0;min-height:100vh;grid-template-columns:1fr;display:block}.sidebar{min-height:0;padding:11px 13px;display:flex;flex-direction:row;gap:12px;align-items:center;border-right:0;border-bottom:1px solid #38383b;overflow-x:auto}.side-head{margin:0 10px 0 0;white-space:nowrap}.side-head small{display:none}.side-head .brandmark{width:34px;height:34px;font-size:23px}.side-head strong{font-size:12px}.navcol{flex-direction:row;gap:3px}.nav-item{padding:9px;white-space:nowrap}.nav-icon{width:auto}.nav-spacer,.side-footer{display:none}.surface{padding:21px 15px}.right-cart{padding:22px 16px}.products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-only{display:block}.desktop-only{display:none}}
@media(max-width:530px){h1,.page-heading h1{font-size:23px}.page-heading{flex-wrap:wrap}.surface{padding:17px 12px}.products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-card{min-height:164px}.product-photo{height:68px;width:73px;font-size:38px}.grid2,.grid3,.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.category-tile{flex-basis:68px}.category-tile .bubble{height:51px;width:51px;font-size:24px}.kpi-row{gap:7px}.kpi{padding:12px}.kpi strong{font-size:17px}.auth-card{padding:26px}.right-cart{padding:17px 12px}.cart-header{padding:14px}.sidebar{gap:0}}
@media print{body{background:white!important;color:black}.app-frame,.sidebar,.surface,.right-cart,#toast,.modal-close{display:none!important}.modal-layer{background:white!important;position:static!important;padding:0!important}.modal-box{background:white!important;color:black!important;border:0!important;box-shadow:none!important;max-height:none!important}.modal-box>*:not(.receipt-preview){display:none!important}.receipt-preview{display:block!important;color:#000!important;background:#fff!important;border:0!important;max-height:none!important;font-size:10px!important;width:58mm!important;padding:0!important}}

/* v1.1 UI fixes */
.product-click{width:100%;text-align:left;cursor:pointer}
.product-click .bottom{margin-top:auto}
.product-click .add-round{display:none!important}
.products-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));align-items:stretch}
.product-card{min-height:220px;justify-content:flex-start}
.product-card b,.cart-line-info b,.order-card b,.order-items,.note-line,.status,.kpi strong{overflow-wrap:anywhere;word-break:break-word}
.cart-line{align-items:flex-start}
.cart-line-info,.order-card,.panel,.cart-header,.product-card{min-width:0}
.cart-line-info p,.order-items,.note-line{white-space:normal}
.qtybox{flex-wrap:wrap;row-gap:6px}
.qtybox button:last-child{border-radius:10px;padding:4px 8px;width:auto;height:auto}
.right-cart h2,.cart-header h3,.panel h2{overflow-wrap:anywhere}
.wrap-row{flex-wrap:wrap}
.compact-panel{padding:16px 18px}
.cashier-simple .surface{padding-bottom:28px}
.cashier-simple .right-cart{gap:12px}
.scroll-card{max-height:38vh;overflow:auto}
@media(max-width:1120px){.products-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}.cashier-simple .right-cart{display:block}}
@media(max-width:850px){.cashier-simple .surface{padding:16px 12px}.cashier-simple .right-cart{padding:18px 12px}.products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-card{min-height:190px}.shift-mini-grid{grid-template-columns:1fr}.page-heading .heading-actions{width:100%}}
@media(max-width:560px){.products-grid{grid-template-columns:1fr 1fr;gap:10px}.product-photo{width:72px;height:72px}.cart-line{gap:8px}.line-icon{width:40px;height:40px;flex-basis:40px}.cart-header,.panel{padding:14px}.product-card{min-height:176px;padding:12px}.page-heading{margin-bottom:16px}}
