.lpos-frontend-body{margin:0!important;padding:0!important;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.lpos-frontend-body .lpos-admin-app{min-height:100vh;margin:0!important;width:100%;}.lpos-frontend-body .lpos-main{min-height:100vh}.lpos-frontend-body .lpos-content{box-sizing:border-box}.lpos-frontend-body .lpos-sidebar{position:relative}.lpos-frontend-body button,.lpos-frontend-body input,.lpos-frontend-body select,.lpos-frontend-body textarea{font-family:inherit}
:root{--blue:#2563eb;--blue2:#1d4ed8;--navy:#111827;--text:#1f2937;--muted:#6b7280;--line:#e5e7eb;--bg:#f4f7fb;--card:#fff;--green:#16a34a;--red:#dc2626;--orange:#f59e0b;--shadow:0 8px 30px rgba(15,23,42,.07)}
#wpbody-content{padding-bottom:0}.lpos-admin-app{display:flex;min-height:calc(100vh - 32px);margin:-10px -20px -20px;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.lpos-admin-app *{box-sizing:border-box}.lpos-sidebar{width:220px;background:#101828;color:#cbd5e1;padding:18px 12px;display:flex;flex-direction:column;flex-shrink:0}.lpos-brand{height:52px;display:flex;align-items:center;gap:9px;color:#fff;font-size:21px;font-weight:800;padding:0 10px}.lpos-brand small{display:block;font-size:9px;color:#94a3b8;font-weight:500;margin-left:-5px;margin-top:20px}.brand-mark{display:inline-flex;width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#60a5fa,#2563eb);color:#fff;align-items:center;justify-content:center;font-weight:900;font-size:21px;box-shadow:0 5px 14px rgba(37,99,235,.35)}.lpos-store-mini{margin:12px 4px 18px;padding:10px 9px;border-radius:9px;background:rgba(255,255,255,.06);font-size:11px;display:flex;align-items:center;gap:7px;white-space:nowrap;overflow:hidden}.status-dot{width:7px;height:7px;background:#22c55e;border-radius:50%;display:inline-block;box-shadow:0 0 0 3px rgba(34,197,94,.12)}.lpos-sidebar nav{display:flex;flex-direction:column;gap:4px}.lpos-sidebar nav a{height:43px;padding:0 12px;border-radius:9px;color:#9ca3af;text-decoration:none;display:flex;align-items:center;gap:12px;font-size:13px;font-weight:600}.lpos-sidebar nav a:hover{background:rgba(255,255,255,.06);color:#fff}.lpos-sidebar nav a.active{background:#2563eb;color:#fff;box-shadow:0 5px 15px rgba(37,99,235,.25)}.lpos-sidebar nav i{font-style:normal;width:19px;text-align:center;font-size:17px}.lpos-sidebar-foot{margin-top:auto;border-top:1px solid rgba(255,255,255,.08);padding:14px 7px 4px;display:flex;gap:9px;align-items:center}.avatar{width:31px;height:31px;border-radius:50%;background:#334155;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px}.lpos-sidebar-foot b,.lpos-sidebar-foot small{display:block}.lpos-sidebar-foot b{font-size:11px;color:#fff}.lpos-sidebar-foot small{font-size:9px;color:#64748b;margin-top:2px}.lpos-main{min-width:0;flex:1;display:flex;flex-direction:column}.lpos-topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px}.lpos-topbar h1{font-size:21px;margin:0;font-weight:800;color:#111827}.lpos-topbar p{font-size:11px;color:var(--muted);margin:4px 0 0}.top-actions{display:flex;gap:10px;align-items:center}.online{font-size:11px;color:#64748b;display:flex;align-items:center;gap:7px}.icon-btn{width:37px;height:37px;border:1px solid var(--line);background:#fff;border-radius:9px;cursor:pointer;color:#334155}.lpos-content{padding:18px;flex:1;min-height:0}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:16px;height:calc(100vh - 145px)}.pos-left,.pos-right{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);min-height:0}.pos-left{display:flex;flex-direction:column;overflow:hidden}.pos-toolbar{padding:13px;border-bottom:1px solid var(--line);display:flex;gap:9px}.pos-search{height:42px;flex:1;border:1px solid #dbe2ea!important;border-radius:9px!important;padding:0 14px!important;box-shadow:none!important;font-size:13px}.scan-btn{height:42px;border:1px solid #dbe2ea;background:#f8fafc;border-radius:9px;padding:0 13px;cursor:pointer;color:#334155}.cat-bar{display:flex;gap:7px;padding:10px 13px;overflow:auto;border-bottom:1px solid var(--line);white-space:nowrap}.cat-chip{border:0;background:#f1f5f9;color:#64748b;padding:8px 12px;border-radius:8px;cursor:pointer;font-size:11px;font-weight:700}.cat-chip.active{background:#2563eb;color:#fff}.products-scroll{overflow:auto;padding:13px;flex:1}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:11px}.product-card{border:1px solid #e7ebf0;border-radius:10px;background:#fff;padding:0;overflow:hidden;cursor:pointer;text-align:left;position:relative;transition:.15s;min-width:0}.product-card:hover{border-color:#93c5fd;box-shadow:0 8px 20px rgba(37,99,235,.10);transform:translateY(-1px)}.product-card .p-img{height:112px;background:#f8fafc;display:flex;align-items:center;justify-content:center;overflow:hidden}.product-card img{width:100%;height:100%;object-fit:cover}.product-info{padding:9px}.product-name{font-size:12px;font-weight:700;line-height:1.35;height:32px;overflow:hidden;color:#1f2937}.product-price{font-size:13px;font-weight:800;color:#2563eb;margin-top:7px}.product-meta{font-size:9px;color:#94a3b8;margin-top:4px;display:flex;justify-content:space-between}.stock-badge{position:absolute;right:7px;top:7px;background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:4px 6px;font-size:8px;color:#475569;box-shadow:0 2px 7px rgba(0,0,0,.05)}.stock-badge.low{color:#b45309;border-color:#fde68a;background:#fffbeb}.stock-badge.out{color:#b91c1c;border-color:#fecaca;background:#fff1f2}.pos-right{display:flex;flex-direction:column;overflow:hidden}.cart-head{padding:13px 15px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.cart-head h2{margin:0;font-size:14px}.cart-head small{color:#94a3b8;font-size:10px}.cart-actions{display:flex;gap:5px}.mini-btn{border:1px solid var(--line);background:#fff;border-radius:7px;padding:6px 8px;font-size:10px;cursor:pointer}.cart-items{flex:1;overflow:auto;padding:8px 12px}.empty-cart{height:100%;display:flex;align-items:center;justify-content:center;text-align:center;color:#94a3b8;font-size:12px}.cart-row{display:grid;grid-template-columns:42px 1fr auto;gap:9px;padding:10px 2px;border-bottom:1px solid #f0f2f5}.cart-thumb{width:42px;height:42px;border-radius:7px;object-fit:cover;background:#f8fafc}.cart-name{font-size:11px;font-weight:700;line-height:1.35}.cart-sub{font-size:10px;color:#94a3b8;margin-top:4px}.qty-control{display:flex;align-items:center;gap:4px;margin-top:6px}.qty-control button{width:21px;height:21px;border:1px solid #e2e8f0;background:#fff;border-radius:5px;cursor:pointer}.qty-control input{width:35px;height:21px;text-align:center;border:1px solid #e2e8f0;border-radius:5px;font-size:10px}.cart-price{font-size:11px;font-weight:800;text-align:right}.remove-line{border:0;background:none;color:#94a3b8;cursor:pointer;font-size:16px}.checkout-box{border-top:1px solid var(--line);padding:12px 14px;background:#fbfcfe}.customer-select{height:38px;border:1px solid #dbe2ea;border-radius:8px;padding:0 10px;background:#fff;width:100%;font-size:11px;cursor:pointer}.sum-line{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#64748b;margin:7px 0}.sum-line strong{color:#1f2937}.edit-row{display:flex;gap:7px}.edit-row input,.edit-row textarea{height:34px;border:1px solid #dbe2ea;border-radius:7px;padding:0 9px;font-size:11px;width:100%;box-shadow:none}.edit-row textarea{height:46px;padding-top:8px;resize:none}.total-line{display:flex;justify-content:space-between;align-items:end;margin-top:9px}.total-line span{font-size:11px;color:#64748b}.total-line b{font-size:22px;color:#2563eb}.payment-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:9px}.pay-tab{border:1px solid #dbe2ea;background:#fff;border-radius:7px;padding:8px 3px;font-size:9px;cursor:pointer}.pay-tab.active{border-color:#2563eb;background:#eff6ff;color:#2563eb;font-weight:800}.pay-btn{height:43px;width:100%;border:0;border-radius:8px;background:#2563eb;color:#fff;font-size:12px;font-weight:800;cursor:pointer;margin-top:9px}.pay-btn:hover{background:#1d4ed8}.hold-btn{height:36px;width:100%;border:1px dashed #cbd5e1;border-radius:8px;background:#fff;color:#475569;font-size:10px;cursor:pointer;margin-top:7px}.page-card{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:15px}.page-toolbar{display:flex;gap:9px;align-items:center;margin-bottom:13px}.page-toolbar input{height:39px;border:1px solid #dbe2ea;border-radius:8px;padding:0 10px;min-width:250px}.primary{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important}.lpos-table{width:100%;border-collapse:collapse;font-size:11px}.lpos-table th{background:#f8fafc;text-transform:uppercase;font-size:9px;color:#64748b;text-align:left;padding:10px;border-bottom:1px solid var(--line)}.lpos-table td{padding:10px;border-bottom:1px solid #eef1f5;vertical-align:middle}.lpos-table tr:hover td{background:#fafcff}.status-pill{padding:4px 7px;border-radius:20px;background:#ecfdf5;color:#15803d;font-size:9px;font-weight:700}.stock-img{width:34px;height:34px;border-radius:6px;object-fit:cover;vertical-align:middle;margin-right:7px}.stock-number{font-weight:800}.low-stock{color:#b45309}.out-stock{color:#b91c1c}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin-bottom:13px}.kpi{background:#fff;border:1px solid var(--line);border-radius:11px;padding:14px;box-shadow:var(--shadow)}.kpi small{color:#64748b;font-size:10px}.kpi b{display:block;font-size:23px;margin-top:7px}.modal-bg{position:fixed;inset:0;background:rgba(15,23,42,.48);z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px}.modal{width:min(520px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:12px;box-shadow:0 25px 70px rgba(0,0,0,.2);padding:18px}.modal h3{margin:0 0 12px;font-size:16px}.modal-close{float:right;border:0;background:none;font-size:22px;color:#94a3b8;cursor:pointer}.customer-list{max-height:330px;overflow:auto}.customer-item{padding:10px;border-bottom:1px solid #eef1f5;cursor:pointer}.customer-item:hover{background:#f8fafc}.customer-item b{display:block;font-size:11px}.customer-item small{font-size:9px;color:#94a3b8}.form-field{margin:10px 0}.form-field label{display:block;font-size:10px;color:#64748b;margin-bottom:5px}.form-field input,.form-field select{height:38px;width:100%;border:1px solid #dbe2ea;border-radius:8px;padding:0 10px}.split-grid{display:grid;grid-template-columns:1fr 120px;gap:7px;margin:7px 0}.notice-lite{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;padding:9px;border-radius:8px;font-size:10px}.settings-grid{max-width:600px}.customer-body,.lpos-customer-body{margin:0;background:#eef3fa;font-family:Inter,system-ui,sans-serif}.lpos-customer-body #wpadminbar{display:none}.lpos-customer-body #lpos-customer-display{min-height:100vh}.lpos-customer-body *{box-sizing:border-box}#lpos-customer-display{color:#172033}#lpos-customer-display header{height:78px;background:#fff;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;padding:0 5vw}.cd-brand{display:flex;gap:10px;align-items:center}.cd-brand b,.cd-brand small{display:block}.cd-brand b{font-size:20px}.cd-brand small{font-size:11px;color:#94a3b8;margin-top:3px}.cd-live{font-size:11px;color:#64748b;display:flex;align-items:center;gap:7px}#lpos-customer-display main{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;max-width:1250px;margin:28px auto;padding:0 24px;min-height:calc(100vh - 150px)}.cd-items{background:#fff;border-radius:16px;border:1px solid #e2e8f0;box-shadow:0 10px 35px rgba(15,23,42,.06);padding:10px}.cd-item{display:grid;grid-template-columns:60px 1fr auto;gap:13px;padding:14px;border-bottom:1px solid #edf1f5;align-items:center}.cd-item img{width:60px;height:60px;border-radius:10px;object-fit:cover}.cd-item b{font-size:18px}.cd-item-name{font-size:14px;font-weight:700}.cd-item-meta{font-size:11px;color:#94a3b8;margin-top:4px}.cd-empty{height:100%;min-height:400px;display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:18px}.lpos-customer-body aside{background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 10px 35px rgba(15,23,42,.06);padding:22px;height:max-content}.cd-summary-row{display:flex;justify-content:space-between;padding:10px 0;font-size:13px;color:#64748b}.cd-total{border-top:1px solid #e2e8f0;margin-top:8px;padding-top:16px;display:flex;justify-content:space-between;align-items:end}.cd-total span{font-size:13px;color:#64748b}.cd-total b{font-size:28px;color:#2563eb}.lpos-customer-body footer{max-width:1250px;margin:0 auto;padding:0 24px 20px;display:flex;justify-content:space-between;color:#94a3b8;font-size:10px}@media(max-width:1100px){.lpos-sidebar{width:68px}.lpos-brand span:not(.brand-mark),.lpos-brand small,.lpos-store-mini span:last-child,.lpos-sidebar nav a span,.lpos-sidebar-foot div{display:none}.lpos-sidebar nav a{justify-content:center}.pos-layout{grid-template-columns:minmax(0,1fr) 350px}.product-grid{grid-template-columns:repeat(auto-fill,minmax(135px,1fr))}.kpi-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:800px){.lpos-admin-app{margin:0;min-height:100vh}.lpos-sidebar{display:none}.lpos-topbar{height:60px;padding:0 12px}.lpos-content{padding:9px}.pos-layout{display:flex;height:auto;flex-direction:column}.pos-left{height:55vh}.pos-right{min-height:500px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-card .p-img{height:90px}.lpos-customer-body main{grid-template-columns:1fr}.lpos-customer-body aside{order:-1}}@media(max-width:500px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-toolbar{flex-wrap:wrap}.pos-search{min-width:0}.kpi-grid{grid-template-columns:1fr 1fr}.lpos-topbar h1{font-size:17px}}


/* Inventory page: keep the toolbar visible and make the product list independently scrollable. */
.lpos-frontend-body #lpos-stock{height:100%;min-height:0;overflow:hidden;display:flex;flex-direction:column}
.lpos-frontend-body #lpos-stock .stock-page-card{height:100%;min-height:0;display:flex;flex-direction:column;padding:15px}
.lpos-frontend-body #lpos-stock .stock-toolbar{flex:0 0 auto;position:sticky;top:0;z-index:3;background:#fff;padding-bottom:10px;margin-bottom:0}
.lpos-frontend-body #lpos-stock .stock-toolbar input{flex:1;min-width:0}
.lpos-frontend-body #lpos-stock .stock-table-wrap{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;border:1px solid #eef1f5;border-radius:9px}
.lpos-frontend-body #lpos-stock .stock-table-wrap .lpos-table{min-width:760px}
.lpos-frontend-body #lpos-stock .lpos-table th{position:sticky;top:0;z-index:2;background:#f8fafc}
@media(max-width:800px){
  .lpos-frontend-body #lpos-stock{height:auto;overflow:visible}
  .lpos-frontend-body #lpos-stock .stock-page-card{height:calc(100vh - 90px);min-height:520px}
  .lpos-frontend-body #lpos-stock .stock-table-wrap{overflow:auto}
}

/* Frontend employee authentication */
.lpos-login-body{margin:0;min-height:100vh;background:linear-gradient(135deg,#eef4ff 0%,#f8fafc 55%,#eaf1ff 100%);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172033}
.lpos-login-body *{box-sizing:border-box}
.lpos-login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.lpos-login-card{width:min(420px,100%);background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:30px;box-shadow:0 24px 70px rgba(15,23,42,.12)}
.lpos-login-brand{display:flex;align-items:center;gap:11px;margin-bottom:28px}
.lpos-login-brand img{width:42px;height:42px;object-fit:contain;border-radius:10px}
.lpos-login-mark{width:42px;height:42px;border-radius:11px;background:#2563eb;color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:900}
.lpos-login-brand b{display:block;font-size:22px;line-height:1}
.lpos-login-brand small{display:block;color:#94a3b8;font-size:10px;margin-top:5px}
.lpos-login-card h1{font-size:21px;margin:0 0 6px}
.lpos-login-sub{margin:0 0 20px;color:#64748b;font-size:12px}
.lpos-login-error{background:#fff1f2;border:1px solid #fecdd3;color:#be123c;padding:10px 12px;border-radius:8px;font-size:11px;margin-bottom:14px}
.lpos-login-card .form-field{margin:12px 0}
.lpos-login-card .form-field label{font-size:11px;font-weight:600;color:#475569}
.lpos-login-card .form-field input{height:43px;font-size:13px}
.lpos-remember{display:flex;align-items:center;gap:7px;font-size:11px;color:#64748b;margin:12px 0 16px;cursor:pointer}
.lpos-remember input{margin:0}
.lpos-login-card .pay-btn{height:45px;font-size:13px;margin-top:0}
.lpos-login-foot{text-align:center;color:#94a3b8;font-size:10px;margin-top:17px;padding-top:15px;border-top:1px solid #eef1f5}
.lpos-logout{margin-left:auto;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:1px solid #e2e8f0;border-radius:7px;color:#64748b;text-decoration:none;font-size:16px;background:#fff}
.lpos-logout:hover{color:#dc2626;border-color:#fecaca;background:#fff1f2}
@media(max-width:1100px){.lpos-sidebar-foot{justify-content:center}.lpos-logout{display:none}}

/* POS performance + order visibility improvements v2.2 */
.lpos-frontend-body{overflow:hidden}
.lpos-frontend-body .lpos-main{height:100vh;min-height:0;overflow:hidden}
.lpos-frontend-body .lpos-content{height:calc(100vh - 72px);padding:14px;overflow:hidden;min-height:0}
.lpos-frontend-body .pos-layout{height:100%;min-height:0}
.lpos-frontend-body .pos-left,.lpos-frontend-body .pos-right{height:100%;min-height:0}
.lpos-frontend-body .pos-right{display:flex;flex-direction:column}
.lpos-frontend-body .cart-head{flex:0 0 auto;position:relative;z-index:2;background:#fff}
.lpos-frontend-body .cart-items{flex:1 1 auto;min-height:80px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:6px 10px}
.lpos-frontend-body .cart-row{min-height:70px}
.lpos-frontend-body .checkout-box{flex:0 0 auto;max-height:310px;overflow-y:auto;overscroll-behavior:contain;padding:9px 12px}
.lpos-frontend-body .checkout-compact{box-shadow:0 -5px 16px rgba(15,23,42,.04)}
.checkout-top-row{display:flex;gap:6px;align-items:center;margin-bottom:7px}
.checkout-top-row .customer-select{flex:1;min-width:0}
.note-toggle{height:38px;white-space:nowrap;border:1px solid #dbe2ea;background:#fff;border-radius:8px;padding:0 10px;font-size:10px;color:#475569;cursor:pointer}
.note-toggle.active{background:#eff6ff;border-color:#93c5fd;color:#2563eb;font-weight:700}
.note-row{display:none!important;margin-bottom:7px}
.note-row.open{display:flex!important}
.totals-compact{padding-top:1px}
.checkout-compact .sum-line{margin:4px 0}
.checkout-compact .total-line{margin-top:6px}
.checkout-compact .total-line b{font-size:20px}
.checkout-compact .payment-tabs{display:none}
.checkout-compact .pay-btn{height:40px;margin-top:7px}
.checkout-compact .hold-btn{height:31px;margin-top:5px}
.product-card{will-change:transform}
.product-card img{content-visibility:auto}
@media(max-width:800px){
  .lpos-frontend-body{overflow:auto}
  .lpos-frontend-body .lpos-main{height:auto;min-height:100vh;overflow:visible}
  .lpos-frontend-body .lpos-content{height:auto;overflow:visible}
  .lpos-frontend-body .pos-layout{height:auto}
  .lpos-frontend-body .pos-left{height:55vh}
  .lpos-frontend-body .pos-right{height:calc(100vh - 80px);min-height:520px}
  .lpos-frontend-body .checkout-box{max-height:300px}
}

/* Held orders */
.hold-list-btn{position:relative}.hold-list-btn span{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:4px;border-radius:999px;background:#e2e8f0;color:#334155;font-size:10px;font-weight:800}.held-orders-modal{max-width:760px;width:calc(100% - 28px)}.held-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.held-head h3{margin:0}.held-head small,.held-info small{display:block;color:#64748b;font-size:11px;margin-top:3px}.held-list{max-height:62vh;overflow:auto;padding-right:3px}.held-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;border:1px solid #e5e7eb;border-radius:10px;padding:12px;margin-bottom:8px;background:#fff}.held-info{min-width:0}.held-info>b{font-size:12px}.held-info>div{margin-top:5px;color:#334155;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.held-total{font-weight:800;white-space:nowrap}.held-actions{display:flex;gap:6px}.held-actions .mini-btn{white-space:nowrap}@media(max-width:700px){.held-row{grid-template-columns:1fr auto}.held-total{grid-column:2;grid-row:1}.held-actions{grid-column:1 / -1}.held-list{max-height:70vh}}

/* Inventory visibility on POS v2.2.5 */
.product-card{position:relative}
.stock-badge{z-index:3;display:inline-flex;align-items:center;gap:3px;font-weight:800;line-height:1;max-width:92px;white-space:nowrap}
.product-stock-line{display:flex;align-items:center;gap:5px;margin-top:5px;font-size:10px;color:#64748b;min-height:16px}
.product-stock-line strong{font-size:11px;color:#1f2937}
.product-stock-line.low strong,.product-stock-line.low em{color:#b45309}
.product-stock-line.out strong,.product-stock-line.out em{color:#b91c1c}
.product-stock-line em{font-style:normal;font-size:9px;font-weight:700;margin-left:auto}

.customer-picker{display:flex;gap:6px;min-width:0;flex:1}.customer-picker .customer-select{flex:1;min-width:0}.customer-add-btn{width:36px;min-width:36px;border:1px solid #dbe2ea;background:#fff;border-radius:8px;font-size:20px;line-height:1;cursor:pointer}.customer-add-btn:hover{background:#f5f7fa}.modal-sub{font-size:11px;color:#64748b;margin:-8px 0 14px}.modal .form-field label span{color:#dc2626}
/* Checkout 3-step wizard */
.checkout-wizard{width:min(560px,100%)}.wizard-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 18px}.wizard-steps span{padding:8px 6px;text-align:center;border-radius:8px;background:#f1f5f9;color:#94a3b8;font-size:10px;font-weight:700}.wizard-steps span.active{background:#eff6ff;color:#2563eb}.checkout-summary-list{max-height:300px;overflow:auto;border:1px solid #eef1f5;border-radius:9px;padding:8px 12px}.wizard-total{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding:14px;border-radius:10px;background:#f8fafc}.wizard-total span{font-size:11px;color:#64748b}.wizard-total b{font-size:24px;color:#2563eb}.wizard-total.compact{margin-bottom:14px}.payment-method-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.wizard-pay-method{height:48px;border:1px solid #dbe2ea;background:#fff;border-radius:8px;font-size:11px;font-weight:700;cursor:pointer}.wizard-pay-method.active{border-color:#2563eb;background:#eff6ff;color:#2563eb}.cash-fields{border:1px solid #e2e8f0;border-radius:10px;padding:12px}.cash-fields label{display:block;font-size:10px;color:#64748b;margin-bottom:5px}.cash-fields input{width:100%;height:44px;border:1px solid #cbd5e1;border-radius:8px;padding:0 10px;font-size:16px;font-weight:700}.change-line{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding-top:10px;border-top:1px dashed #cbd5e1;font-size:11px;color:#64748b}.change-line b{font-size:20px;color:#16a34a}.wizard-actions{display:grid;grid-template-columns:1fr 2fr;gap:8px;margin-top:15px}.wizard-actions.single{grid-template-columns:1fr 2fr}.wizard-actions .pay-btn{margin-top:0}.wizard-actions .mini-btn{height:43px}.pay-btn:disabled{opacity:.45;cursor:not-allowed}.receipt-customer-preview{display:flex;flex-direction:column;gap:4px;margin-top:10px;padding:10px;border:1px solid #e2e8f0;border-radius:8px;font-size:10px;color:#64748b}.receipt-customer-preview b{color:#1f2937;font-size:11px}@media(max-width:500px){.wizard-steps span{font-size:9px}.payment-method-grid{grid-template-columns:1fr}.wizard-actions{grid-template-columns:1fr 1.5fr}}

/* Mobile navigation v2.5.2: logo + quick tabs below logo */
.lpos-mobile-brand,.lpos-mobile-nav{display:none}
@media(max-width:800px){
  .lpos-mobile-brand{height:58px;background:#101828;color:#fff;display:flex;align-items:center;gap:9px;padding:8px 12px;border-bottom:1px solid rgba(255,255,255,.08)}
  .lpos-mobile-brand img,.mobile-brand-mark{width:38px;height:38px;border-radius:9px;object-fit:contain;background:#fff;display:flex;align-items:center;justify-content:center;flex:0 0 38px}
  .mobile-brand-mark{background:linear-gradient(135deg,#60a5fa,#2563eb);color:#fff;font-weight:900;font-size:21px}
  .lpos-mobile-brand b{display:block;font-size:14px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:68vw}
  .lpos-mobile-brand small{display:block;color:#94a3b8;font-size:9px;margin-top:2px}
  .lpos-mobile-nav{display:flex;gap:5px;background:#fff;border-bottom:1px solid var(--line);padding:7px 8px;overflow-x:auto;white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .lpos-mobile-nav::-webkit-scrollbar{display:none}
  .lpos-mobile-nav a{flex:0 0 auto;min-width:72px;height:42px;padding:5px 8px;border-radius:8px;text-decoration:none;color:#64748b;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:9px;font-weight:700}
  .lpos-mobile-nav a i{font-style:normal;font-size:15px;line-height:1}
  .lpos-mobile-nav a.active{background:#eff6ff;color:#2563eb}
  .lpos-topbar{height:52px;padding:0 10px}
  .lpos-topbar h1{font-size:15px}
  .lpos-topbar p{display:none}
}

/* v2.5.3 mobile sidebar */
@media (max-width: 768px){
  .lpos-mobile-menu-btn{display:flex!important;align-items:center;justify-content:center;width:42px;height:42px;border:0;border-radius:10px;background:#fff;color:#222;font-size:22px;box-shadow:0 1px 5px rgba(0,0,0,.12);cursor:pointer}
  .lpos-mobile-drawer{position:fixed;top:0;left:0;bottom:0;width:280px;max-width:82vw;background:#fff;z-index:99999;transform:translateX(-105%);transition:transform .22s ease;box-shadow:4px 0 18px rgba(0,0,0,.18);overflow-y:auto;padding:16px}
  .lpos-mobile-drawer.open{transform:translateX(0)}
  .lpos-mobile-overlay{position:fixed;inset:0;background:rgba(0,0,0,.38);z-index:99998;display:none}
  .lpos-mobile-overlay.open{display:block}
  .lpos-mobile-drawer .lpos-nav-item{display:flex!important;width:100%;margin:4px 0;padding:12px 14px;border-radius:10px}
}
@media (min-width:769px){.lpos-mobile-menu-btn,.lpos-mobile-drawer,.lpos-mobile-overlay{display:none!important}}

@media (max-width:768px){
.lpos-mobile-brand{display:flex;align-items:center;gap:10px}.lpos-mobile-brand .lpos-mobile-menu-btn{display:flex!important;flex:0 0 42px}.lpos-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:4px 2px 14px;border-bottom:1px solid #eee;margin-bottom:10px}.lpos-drawer-close{border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;padding:4px 8px}.lpos-mobile-drawer nav{display:block}.lpos-mobile-drawer .lpos-nav-item{color:#333;text-decoration:none;align-items:center;gap:12px;font-weight:600}.lpos-mobile-drawer .lpos-nav-item.active{background:#f0f7ff;color:#1677ff}.lpos-mobile-nav{display:none!important}
}

/* v2.5.4 drawer interaction fix */
@media (max-width:768px){body.lpos-drawer-open{overflow:hidden}.lpos-mobile-drawer{pointer-events:none}.lpos-mobile-drawer.open{pointer-events:auto}.lpos-mobile-overlay{pointer-events:none}.lpos-mobile-overlay.open{pointer-events:auto}.lpos-mobile-brand{position:relative;z-index:100000}}
/* v2.5.5 reports + mobile usability */
.report-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:13px}.report-toolbar>b,.report-toolbar small{display:block}.report-toolbar>div:first-child b{font-size:15px}.report-toolbar>div:first-child small{font-size:10px;color:#94a3b8;margin-top:3px}.report-dates{display:flex;align-items:center;gap:7px}.report-dates input{min-width:145px!important}.report-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:13px}.report-panel{min-width:0}.report-panel-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}.report-panel-head h3{margin:0;font-size:13px}.report-panel-head small{display:block;color:#94a3b8;font-size:10px;margin-top:4px}.report-bars{display:flex;flex-direction:column;gap:13px}.report-bar-label{display:flex;justify-content:space-between;gap:10px;font-size:10px;margin-bottom:6px}.report-bar-label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-track,.rank-track{height:8px;background:#eef2f7;border-radius:99px;overflow:hidden}.report-track i,.rank-track i{display:block;height:100%;background:#2563eb;border-radius:99px}.report-ranking{display:flex;flex-direction:column;gap:11px}.rank-row{display:flex;gap:9px;align-items:flex-start}.rank-no{width:23px;height:23px;border-radius:7px;background:#eff6ff;color:#2563eb;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;flex:0 0 23px}.rank-main{min-width:0;flex:1}.rank-main>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:10px;margin-bottom:5px}.rank-main b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-main strong{white-space:nowrap}.report-loading,.report-error,.report-empty{padding:24px;text-align:center;color:#64748b;font-size:11px;background:#fff;border:1px dashed #dbe2ea;border-radius:10px}.report-error{color:#b91c1c;background:#fff7f7;border-color:#fecaca}.kpi span{display:block;color:#94a3b8;font-size:9px;margin-top:5px}.kpi-sales{border-color:#bfdbfe;background:#f8fbff}.stock-table-wrap{overflow:auto;max-width:100%}
@media(max-width:800px){.lpos-content{padding:8px}.lpos-topbar{height:54px}.lpos-topbar h1{font-size:16px}.lpos-content>.page-card,.lpos-content>.report-page{min-width:0}.page-card{padding:11px}.page-toolbar{flex-wrap:wrap}.page-toolbar input{min-width:0!important;flex:1}.lpos-table{min-width:650px}.stock-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}.report-toolbar{align-items:stretch;flex-direction:column}.report-dates{display:grid;grid-template-columns:1fr auto 1fr;gap:6px}.report-dates input{width:100%;min-width:0!important}.report-dates .mini-btn{grid-column:1/-1;width:100%;height:40px}.report-grid{grid-template-columns:1fr}.report-kpis{grid-template-columns:1fr 1fr}.kpi{padding:11px}.kpi b{font-size:18px}.report-panel{padding:12px}.lpos-main{min-width:0}.customer-picker{min-width:0}.pos-left{height:52vh}.pos-right{min-height:460px}.modal{width:calc(100% - 20px);max-height:88vh}.lpos-mobile-drawer{width:290px}.lpos-mobile-brand{height:56px}.lpos-mobile-brand b{max-width:58vw}}
@media(max-width:430px){.report-kpis{grid-template-columns:1fr 1fr}.report-dates{grid-template-columns:1fr 1fr}.report-dates span{display:none}.report-dates .mini-btn{grid-column:1/-1}.page-toolbar .mini-btn{width:auto}.lpos-topbar .online{display:none}}

/* v2.6.6 customer mobile UI */
.customer-toolbar{display:flex;align-items:center;gap:9px;margin-bottom:9px}.customer-search-wrap{position:relative;display:flex;align-items:center;flex:1;min-width:0}.customer-search-wrap>span{position:absolute;left:11px;color:#94a3b8;font-size:18px;pointer-events:none}.customer-search-wrap input{height:42px!important;width:100%!important;min-width:0!important;padding:0 34px!important;border:1px solid #dbe2ea;border-radius:9px;font-size:12px}.customer-search-wrap button{position:absolute;right:6px;width:28px;height:28px;border:0;background:transparent;color:#94a3b8;font-size:20px;cursor:pointer;border-radius:6px}.customer-search-wrap button:hover{background:#f1f5f9;color:#334155}.customer-count{font-size:10px;color:#94a3b8;margin:2px 0 10px}.customer-cards-mobile{display:none}.customer-empty{padding:34px 15px;text-align:center;border:1px dashed #dbe2ea;border-radius:10px;color:#64748b;display:flex;flex-direction:column;gap:6px;font-size:11px}.customer-empty b{color:#334155;font-size:13px}.customer-card{background:#fff;border:1px solid #e5eaf0;border-radius:11px;padding:12px;margin-bottom:8px}.customer-card-head{display:flex;align-items:center;gap:10px}.customer-avatar{width:38px;height:38px;border-radius:50%;background:#eff6ff;color:#2563eb;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;flex:0 0 38px}.customer-card-name{min-width:0}.customer-card-name b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-card-name small{display:block;color:#94a3b8;font-size:9px;margin-top:3px}.customer-card-info{border-top:1px solid #eef1f5;margin-top:10px;padding-top:8px;display:flex;flex-direction:column;gap:7px}.customer-card-info div,.customer-card-info a{display:flex;align-items:flex-start;gap:8px;color:#475569;font-size:10px;line-height:1.4;text-decoration:none}.customer-card-info span{width:18px;text-align:center;color:#94a3b8;flex:0 0 18px}.customer-card-info a{color:#2563eb;font-weight:600}
@media(max-width:600px){.customer-toolbar{align-items:stretch;flex-direction:column}.customer-add-page{width:100%;height:42px}.customer-search-wrap input{font-size:16px!important}.customer-table-desktop{display:none}.customer-cards-mobile{display:block}.customers-page-card{padding:10px}.customer-count{margin-bottom:8px}}
@media(min-width:601px){.customer-table-desktop{display:block}}
