
:root{
  --brand:#1A56DB;--brand-dark:#1043b5;--brand-light:#EBF2FF;
  --accent:#F59E0B;--accent2:#10B981;--danger:#EF4444;--purple:#8B5CF6;
  --text:#0F172A;--text2:#475569;--text3:#94A3B8;
  --border:#E2E8F0;--surface:#F8FAFC;--white:#FFFFFF;
  --control-bg:#FFFFFF;--control-text:#0F172A;--control-placeholder:#94A3B8;
  --control-border:#CBD5E1;--control-disabled:#F1F5F9;
  --sidebar-w:240px;--header-h:60px;
  --radius:12px;--radius-sm:8px;
  --shadow:0 1px 3px rgba(0,0,0,.08),0 4px 12px rgba(0,0,0,.05);
  --shadow-md:0 4px 20px rgba(0,0,0,.1);
  --tr:all .2s ease;
}
/* ── DARK MODE ── */
body.dark{
  --text:#F1F5F9;--text2:#94A3B8;--text3:#64748B;
  --border:#1E293B;--surface:#0F172A;--white:#1E293B;
  --control-bg:#1E293B;--control-text:#F1F5F9;--control-placeholder:#64748B;
  --control-border:#334155;--control-disabled:#1E293B;
  --brand-light:rgba(26,86,219,.18);
  --shadow:0 1px 3px rgba(0,0,0,.3),0 4px 12px rgba(0,0,0,.25);
  --shadow-md:0 4px 20px rgba(0,0,0,.4);
}
body.dark .topbar{background:#1E293B;border-color:#1E293B;}
body.dark .sidebar{background:#080f1f;}
body.dark .modal{background:#1E293B;}
body.dark .pos-search{background:#1E293B;border-color:#334155;}
body.dark .pos-search input{color:var(--control-text);}
body.dark .pos-search input::placeholder{color:var(--control-placeholder);}
body.dark .receipt{background:#0F172A;border-color:#334155;}
body.dark .toast{background:#334155;}
body.dark table{color:#F1F5F9;}
body.dark th{background:#0F172A;border-color:#334155;}
body.dark td{border-color:#1E293B;}
body.dark tr:hover td{background:#0F172A;}
body.dark .btn-outline{border-color:#334155;color:#94A3B8;}
body.dark .btn-outline:hover{border-color:var(--brand);color:var(--brand);}
body.dark .table-card{background:#1E293B;border-color:#1E293B;}
body.dark .table-header{border-color:#334155;}
body.dark .chart-card{background:#1E293B;border-color:#1E293B;}
body.dark .stat-card{background:#1E293B;border-color:#1E293B;}
body.dark .promo-card{background:#1E293B;border-color:#1E293B;}
body.dark .pos-item{background:#1E293B;border-color:#334155;}
body.dark .pos-item:hover,body.dark .pos-item.in-cart{background:rgba(26,86,219,.25);}
body.dark .cart-drawer{background:#1E293B;}
body.dark .tab-bar{border-color:#334155;}
body.dark .cust-field-wrap{background:var(--control-bg);border-color:var(--control-border);}
body.dark .cust-field-wrap input{color:var(--control-text);}
body.dark .cust-field-wrap input::placeholder{color:var(--control-placeholder);}
body.dark .notif-btn{background:#0F172A;border-color:#334155;}
body.dark .notif-btn svg{stroke:#94A3B8;}
/* dark mode toggle button */
.dark-toggle-btn{
  width:34px;height:34px;border-radius:var(--radius-sm);
  background:var(--surface);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  transition:var(--tr);flex-shrink:0;
}
.dark-toggle-btn:hover{background:var(--brand-light);border-color:var(--brand);}
.dark-toggle-btn svg{width:17px;height:17px;stroke:var(--text2);transition:var(--tr);}
.dark-toggle-btn:hover svg{stroke:var(--brand);}
*{margin:0;padding:0;box-sizing:border-box;}
html{color-scheme:light;}
html,body{height:100%;font-family:'Plus Jakarta Sans',sans-serif;background:var(--surface);color:var(--text);font-size:14px;}
body.dark{color-scheme:dark;}

/* ── LUCIDE ICON HELPERS ── */
.ic{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;}
.ic svg{stroke-width:1.75;}
.ic-sm svg{width:14px;height:14px;}
.ic-md svg{width:17px;height:17px;}
.ic-lg svg{width:20px;height:20px;}
.ic-xl svg{width:24px;height:24px;}
.ic-2xl svg{width:32px;height:32px;}
.ic-white svg{stroke:#fff;}
.ic-muted svg{stroke:var(--text3);}
.ic-brand svg{stroke:var(--brand);}
.ic-success svg{stroke:var(--accent2);}
.ic-danger svg{stroke:var(--danger);}
.ic-warn svg{stroke:var(--accent);}

/* ── LOGIN ── */
#splash{
  position:fixed;inset:0;z-index:9999;
  background:linear-gradient(140deg,#080f1f 0%,#0c2161 55%,#1A56DB 100%);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  transition:opacity .5s ease,transform .5s ease;padding:20px;
}
#splash.out{opacity:0;pointer-events:none;transform:scale(1.04);}
.splash-logo{display:flex;align-items:center;justify-content:center;margin-bottom:36px;}
.splash-logo img{height:56px;object-fit:contain;filter:drop-shadow(0 2px 16px rgba(255,255,255,.3));}
.login-card{
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.11);
  backdrop-filter:blur(24px);border-radius:20px;padding:36px 32px;
  width:100%;max-width:380px;box-shadow:0 24px 80px rgba(0,0,0,.45);
}
.login-card h2{color:#fff;font-size:22px;font-weight:800;margin-bottom:4px;}
.login-card>p{color:rgba(255,255,255,.5);font-size:13px;margin-bottom:28px;}
.fg{margin-bottom:16px;}
.fg label{display:block;color:rgba(255,255,255,.65);font-size:11px;font-weight:700;margin-bottom:6px;text-transform:uppercase;letter-spacing:.6px;}
.fg-inner{position:relative;display:flex;align-items:center;}
.fg-inner .ic{position:absolute;left:12px;pointer-events:none;}
.fg-inner .ic svg{stroke:rgba(255,255,255,.35);width:15px;height:15px;}
.fg input{
  width:100%;padding:11px 14px 11px 38px;
  background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius-sm);color:#fff;font-family:inherit;font-size:14px;outline:none;transition:var(--tr);
}
.fg input::placeholder{color:rgba(255,255,255,.3);}
.fg input:focus{border-color:rgba(255,255,255,.38);background:rgba(255,255,255,.14);}
.btn-login{
  width:100%;padding:13px;border:none;border-radius:var(--radius-sm);
  background:linear-gradient(135deg,#1A56DB,#3B82F6);
  color:#fff;font-family:inherit;font-size:15px;font-weight:700;
  cursor:pointer;transition:var(--tr);box-shadow:0 4px 16px rgba(26,86,219,.4);
  margin-top:4px;display:flex;align-items:center;justify-content:center;gap:8px;
}
.btn-login:hover{transform:translateY(-1px);box-shadow:0 8px 28px rgba(26,86,219,.5);}
.login-error{
  display:none;align-items:center;gap:8px;
  background:rgba(239,68,68,.15);border:1px solid rgba(239,68,68,.3);
  border-radius:var(--radius-sm);padding:10px 12px;margin-bottom:14px;
  color:#FCA5A5;font-size:13px;font-weight:500;
}
.login-error.show{display:flex;}
.login-error svg{stroke:#FCA5A5;width:15px;height:15px;flex-shrink:0;}
.login-support{
  margin-top:18px;text-align:center;
}
.login-support a{
  display:inline-flex;align-items:center;gap:6px;
  color:rgba(255,255,255,.45);font-size:12px;font-weight:500;
  text-decoration:none;transition:var(--tr);
  padding:6px 14px;border-radius:20px;border:1px solid rgba(255,255,255,.12);
}
.login-support a:hover{color:#fff;border-color:rgba(255,255,255,.3);background:rgba(255,255,255,.07);}
.login-support a svg{width:13px;height:13px;stroke:currentColor;}

/* ── APP SHELL ── */
#app{display:none;height:100vh;overflow:hidden;position:relative;}
#app.visible{display:flex;}

/* ── SIDEBAR ── */
.sidebar{
  width:var(--sidebar-w);height:100vh;background:#0B1426;
  display:flex;flex-direction:column;flex-shrink:0;
  overflow-y:auto;overflow-x:hidden;
  transition:transform .3s ease;z-index:200;position:relative;
}
.sidebar-brand{
  padding:0 18px;display:flex;align-items:center;gap:10px;
  border-bottom:1px solid rgba(255,255,255,.06);flex-shrink:0;min-height:var(--header-h);
}
.sidebar-brand img{height:34px;object-fit:contain;filter:drop-shadow(0 1px 6px rgba(255,255,255,.15));}
.sidebar-role{
  margin:12px 14px 4px;padding:7px 11px;border-radius:var(--radius-sm);
  font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;
  white-space:nowrap;overflow:hidden;display:flex;align-items:center;gap:6px;
}
.role-sa{background:rgba(245,158,11,.12);color:#F59E0B;border:1px solid rgba(245,158,11,.22);}
.role-admin{background:rgba(16,185,129,.12);color:#10B981;border:1px solid rgba(16,185,129,.22);}
.role-kasir{background:rgba(96,165,250,.12);color:#60A5FA;border:1px solid rgba(96,165,250,.22);}
.sidebar-role svg{width:11px;height:11px;flex-shrink:0;}
.sidebar-section{padding:10px 0 2px;}
.sidebar-section-title{padding:4px 18px;font-size:10px;font-weight:700;color:rgba(255,255,255,.22);text-transform:uppercase;letter-spacing:.9px;}
.nav-item{
  display:flex;align-items:center;gap:10px;
  padding:9px 18px;cursor:pointer;color:rgba(255,255,255,.45);
  font-size:13px;font-weight:500;transition:var(--tr);
  position:relative;margin:1px 8px;border-radius:var(--radius-sm);
}
.nav-item:hover{color:#fff;background:rgba(255,255,255,.07);}
.nav-item.active{color:#fff;background:rgba(26,86,219,.38);}
.nav-item.active::before{content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:58%;background:var(--brand);border-radius:0 3px 3px 0;}
.nav-item .ic svg{width:16px;height:16px;stroke:currentColor;transition:var(--tr);}
.sidebar-footer{margin-top:auto;padding:14px;border-top:1px solid rgba(255,255,255,.06);}
.user-info{display:flex;align-items:center;gap:9px;}
.avatar{
  width:32px;height:32px;border-radius:50%;
  background:linear-gradient(135deg,var(--brand),#3B82F6);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:12px;font-weight:700;flex-shrink:0;
}
.user-name{font-size:12px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.user-biz{font-size:11px;color:rgba(255,255,255,.38);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.btn-logout{
  margin-left:auto;padding:6px;background:rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.22);color:#EF4444;
  border-radius:var(--radius-sm);cursor:pointer;transition:var(--tr);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.btn-logout:hover{background:rgba(239,68,68,.25);}
.btn-logout svg{width:15px;height:15px;stroke:#EF4444;}

/* ── MOBILE ── */
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:199;}
.sidebar-overlay.show{display:block;}

/* ── MAIN ── */
.main{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0;}
.topbar{
  height:var(--header-h);padding:0 20px;
  display:flex;align-items:center;gap:12px;
  background:var(--white);border-bottom:1px solid var(--border);flex-shrink:0;
}
.topbar-hamburger{
  display:none;width:36px;height:36px;border-radius:var(--radius-sm);
  background:var(--surface);border:1px solid var(--border);
  align-items:center;justify-content:center;cursor:pointer;
}
.topbar-hamburger svg{width:18px;height:18px;stroke:var(--text2);}
.topbar h1{font-size:16px;font-weight:700;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.topbar-right{margin-left:auto;display:flex;align-items:center;gap:10px;}
.notif-btn{
  width:34px;height:34px;border-radius:var(--radius-sm);
  background:var(--surface);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;
  transition:var(--tr);
}
.notif-btn:hover{background:var(--brand-light);border-color:var(--brand);}
.notif-btn svg{width:17px;height:17px;stroke:var(--text2);}
.notif-btn:hover svg{stroke:var(--brand);}
.notif-dot{position:absolute;top:6px;right:6px;width:6px;height:6px;background:var(--danger);border-radius:50%;border:2px solid var(--white);}
.content{flex:1;overflow-y:auto;padding:20px;}
.content.no-pad{padding:0;}

/* ── STAT CARDS ── */
.stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:14px;margin-bottom:20px;}
.stat-card{
  background:var(--white);border:1px solid var(--border);border-radius:var(--radius);
  padding:18px;position:relative;overflow:hidden;transition:var(--tr);
}
.stat-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);}
.stat-card::after{content:'';position:absolute;top:0;right:0;width:72px;height:72px;border-radius:50%;background:var(--card-color,var(--brand));opacity:.07;transform:translate(20px,-20px);}
.stat-label{font-size:11px;font-weight:700;color:var(--text2);text-transform:uppercase;letter-spacing:.5px;margin-bottom:7px;}
.stat-value{font-size:24px;font-weight:800;color:var(--text);font-family:'Space Grotesk',sans-serif;line-height:1;}
.stat-sub{font-size:11px;color:var(--text3);margin-top:5px;}
.stat-icon-wrap{
  position:absolute;top:14px;right:14px;
  width:34px;height:34px;border-radius:10px;
  background:var(--card-color,var(--brand));
  display:flex;align-items:center;justify-content:center;
  opacity:.18;
}
.stat-icon-wrap svg{width:18px;height:18px;stroke:#fff;stroke-width:2;}
.stat-up{color:var(--accent2);font-weight:700;}

/* ── CHARTS ── */
.chart-row{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin-bottom:20px;}
.chart-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:18px;}
.chart-card h3{font-size:13px;font-weight:700;margin-bottom:3px;}
.chart-card p{font-size:12px;color:var(--text3);margin-bottom:16px;}
.bar-chart{display:flex;align-items:flex-end;gap:8px;height:110px;}
.bar-wrap{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;}
.bar{width:100%;border-radius:4px 4px 0 0;background:var(--brand);transition:height .6s ease;min-height:4px;}
.bar-label{font-size:9px;color:var(--text3);font-weight:600;text-align:center;}
.bar-val{font-size:10px;color:var(--text2);font-weight:700;}
.donut-wrap{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;height:110px;}
svg.donut{width:90px;height:90px;}
.donut-legend{display:flex;flex-direction:column;gap:5px;}
.legend-item{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--text2);}
.legend-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;}

/* ── TABLES ── */
.table-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;margin-bottom:20px;}
.table-header{padding:14px 18px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--border);flex-wrap:wrap;}
.table-header h3{font-size:14px;font-weight:700;}
.table-header-right{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap;}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
table{width:100%;border-collapse:collapse;min-width:420px;}
th{padding:9px 16px;text-align:left;font-size:10px;font-weight:700;color:var(--text2);text-transform:uppercase;letter-spacing:.5px;background:var(--surface);border-bottom:1px solid var(--border);white-space:nowrap;}
td{padding:11px 16px;border-bottom:1px solid var(--border);font-size:13px;color:var(--text);vertical-align:middle;}
tr:last-child td{border-bottom:none;}
tr:hover td{background:var(--surface);}

/* ── BADGES ── */
.badge{padding:3px 9px;border-radius:20px;font-size:11px;font-weight:700;display:inline-flex;align-items:center;gap:4px;white-space:nowrap;}
.badge svg{width:10px;height:10px;}
.badge-green{background:#D1FAE5;color:#065F46;}
.badge-blue{background:#DBEAFE;color:#1E40AF;}
.badge-red{background:#FEE2E2;color:#991B1B;}
.badge-yellow{background:#FEF3C7;color:#92400E;}
.badge-gray{background:#F1F5F9;color:#475569;}

/* ── BUTTONS ── */
.btn{
  padding:8px 14px;border-radius:var(--radius-sm);font-family:inherit;font-size:13px;
  font-weight:600;cursor:pointer;transition:var(--tr);border:none;
  display:inline-flex;align-items:center;gap:6px;white-space:nowrap;
}
.btn svg{width:14px;height:14px;stroke:currentColor;flex-shrink:0;}
.btn-primary{background:var(--brand);color:#fff;}
.btn-primary:hover{background:var(--brand-dark);}
.btn-primary svg{stroke:#fff;}
.btn-outline{background:transparent;border:1px solid var(--border);color:var(--text2);}
.btn-outline:hover{border-color:var(--brand);color:var(--brand);}
.btn-danger{background:var(--danger);color:#fff;}
.btn-danger:hover{background:#DC2626;}
.btn-danger svg{stroke:#fff;}
.btn-success{background:var(--accent2);color:#fff;}
.btn-success:hover{background:#059669;}
.btn-success svg{stroke:#fff;}
.btn-sm{padding:5px 10px;font-size:12px;}
.btn-sm svg{width:12px;height:12px;}
.btn-icon{padding:7px;border-radius:var(--radius-sm);}

/* ── PRODUCT GRID ── */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px;margin-top:16px;}
.product-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:var(--tr);}
.product-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);}
.product-color-bar{height:4px;}
.product-info{padding:12px;}
.product-name{font-size:13px;font-weight:700;margin-bottom:4px;}
.product-price{font-size:14px;font-weight:800;color:var(--brand);font-family:'Space Grotesk',sans-serif;}
.product-stock{font-size:11px;color:var(--text3);margin-top:3px;display:flex;align-items:center;gap:4px;}
.product-stock svg{width:11px;height:11px;stroke:var(--text3);}
.product-cat{font-size:10px;color:var(--text3);font-weight:600;text-transform:uppercase;margin-bottom:2px;}
.product-actions{display:flex;gap:5px;margin-top:10px;}

/* ── POS ── */
.pos-layout{display:grid;grid-template-columns:1fr 320px;height:calc(100vh - var(--header-h));overflow:hidden;}
.pos-products{padding:16px;overflow-y:auto;background:var(--surface);}
.pos-search{
  display:flex;align-items:center;gap:8px;
  background:var(--white);border:1px solid var(--border);
  border-radius:var(--radius-sm);padding:9px 13px;margin-bottom:12px;
}
.pos-search svg{width:15px;height:15px;stroke:var(--text3);flex-shrink:0;}
.pos-search input{border:none;background:transparent;font-family:inherit;font-size:14px;outline:none;flex:1;}
.pos-cats{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px;}
.cat-pill{padding:5px 12px;border-radius:20px;font-size:12px;font-weight:600;cursor:pointer;border:1px solid var(--border);background:var(--white);color:var(--text2);transition:var(--tr);}
.cat-pill.active,.cat-pill:hover{background:var(--brand);color:#fff;border-color:var(--brand);}
.promo-banner{
  background:linear-gradient(135deg,#FEF3C7,#FDE68A);border:1px solid #F59E0B;
  border-radius:var(--radius-sm);padding:8px 12px;margin-bottom:10px;
  font-size:12px;color:#92400E;display:flex;align-items:center;gap:8px;flex-wrap:wrap;
}
.promo-banner svg{width:14px;height:14px;stroke:#92400E;flex-shrink:0;}
.pos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;}
.pos-item{
  background:var(--white);border:2px solid var(--border);border-radius:var(--radius);
  padding:14px 10px;text-align:center;cursor:pointer;transition:var(--tr);position:relative;
}
.pos-item:hover{border-color:var(--brand);background:var(--brand-light);}
.pos-item.in-cart{border-color:var(--brand);background:var(--brand-light);}
.pos-item-name{font-size:12px;font-weight:700;color:var(--text);margin-bottom:4px;line-height:1.3;}
.pos-item-price{font-size:13px;font-weight:800;color:var(--brand);font-family:'Space Grotesk',sans-serif;}
.pos-item-cat{font-size:10px;color:var(--text3);margin-top:3px;text-transform:uppercase;}
.pos-badge{
  position:absolute;top:-7px;right:-7px;
  background:var(--brand);color:#fff;width:21px;height:21px;border-radius:50%;
  font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;
  border:2px solid var(--white);font-family:'Space Grotesk',sans-serif;
}
/* CART */
.pos-cart{display:flex;flex-direction:column;background:var(--white);border-left:1px solid var(--border);}
.cart-header{padding:14px 16px;border-bottom:1px solid var(--border);}
.cart-title-row{display:flex;align-items:center;gap:8px;justify-content:space-between;}
.cart-title-row h2{font-size:15px;font-weight:800;display:flex;align-items:center;gap:7px;}
.cart-title-row h2 svg{width:17px;height:17px;stroke:var(--text);}
.cart-count{background:var(--brand);color:#fff;font-size:11px;font-weight:700;padding:2px 8px;border-radius:20px;font-family:'Space Grotesk',sans-serif;}
.cart-items{flex:1;overflow-y:auto;padding:10px;}
.cart-item{
  display:flex;align-items:center;gap:9px;padding:9px 10px;
  border-radius:var(--radius-sm);border:1px solid var(--border);margin-bottom:7px;background:var(--surface);
}
.cart-item-info{flex:1;min-width:0;}
.cart-item-name{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cart-item-price{font-size:11px;color:var(--text3);font-family:'Space Grotesk',sans-serif;}
.qty-control{display:flex;align-items:center;gap:4px;flex-shrink:0;}
.qty-btn{
  width:24px;height:24px;border-radius:6px;border:1px solid var(--border);
  background:var(--white);cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:var(--tr);color:var(--text);font-size:14px;font-weight:700;
}
.qty-btn svg{width:13px;height:13px;stroke:var(--text2);}
.qty-btn:hover{background:var(--brand);border-color:var(--brand);}
.qty-btn:hover svg{stroke:#fff;}
.qty-num{font-size:13px;font-weight:700;min-width:18px;text-align:center;font-family:'Space Grotesk',sans-serif;}
.cart-footer{padding:14px 16px;border-top:1px solid var(--border);}
.cart-row{display:flex;justify-content:space-between;font-size:12px;margin-bottom:5px;color:var(--text2);}
.cart-row.total{font-size:15px;font-weight:800;font-family:'Space Grotesk',sans-serif;margin-top:8px;padding-top:8px;border-top:1px solid var(--border);color:var(--text);}
.cart-row.disc-row{color:var(--accent2);font-weight:600;}
.cust-fields{display:flex;flex-direction:column;gap:7px;margin-top:10px;}
.cust-field-wrap{position:relative;display:flex;align-items:center;}
.cust-field-wrap svg{position:absolute;left:10px;width:13px;height:13px;stroke:var(--text3);pointer-events:none;}
.cust-fields input{
  width:100%;padding:8px 12px 8px 32px;border:1px solid var(--border);
  border-radius:var(--radius-sm);font-family:inherit;font-size:13px;outline:none;transition:var(--tr);
}
.cust-fields input:focus{border-color:var(--brand);}
.btn-pay{
  width:100%;padding:13px;border:none;border-radius:var(--radius-sm);
  background:linear-gradient(135deg,var(--brand),#3B82F6);
  color:#fff;font-family:inherit;font-size:15px;font-weight:800;
  cursor:pointer;margin-top:12px;transition:var(--tr);
  box-shadow:0 4px 14px rgba(26,86,219,.3);
  display:flex;align-items:center;justify-content:center;gap:8px;
}
.btn-pay svg{width:18px;height:18px;stroke:#fff;}
.btn-pay:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 24px rgba(26,86,219,.4);}
.btn-pay:disabled{background:#94A3B8;box-shadow:none;cursor:not-allowed;}

/* ── MOBILE CART ── */
.cart-fab{
  display:none;position:fixed;bottom:20px;right:20px;z-index:100;
  background:var(--brand);color:#fff;border:none;border-radius:50px;
  padding:12px 18px;font-family:inherit;font-size:13px;font-weight:700;
  cursor:pointer;box-shadow:0 6px 20px rgba(26,86,219,.4);
  align-items:center;gap:8px;transition:var(--tr);
}
.cart-fab:hover{transform:translateY(-2px);}
.cart-fab svg{width:16px;height:16px;stroke:#fff;}
.cart-drawer{
  display:none;position:fixed;bottom:0;left:0;right:0;z-index:300;
  background:var(--white);border-radius:20px 20px 0 0;
  box-shadow:0 -8px 40px rgba(0,0,0,.15);
  max-height:85vh;flex-direction:column;
  transform:translateY(100%);transition:transform .3s ease;
}
.cart-drawer.open{transform:translateY(0);}
.drawer-handle{width:40px;height:4px;background:var(--border);border-radius:4px;margin:12px auto 0;}

/* ── MODAL ── */
.modal-overlay{
  position:fixed;inset:0;background:rgba(0,0,0,.45);
  display:flex;align-items:center;justify-content:center;
  z-index:1000;opacity:0;pointer-events:none;transition:opacity .2s;padding:16px;
}
.modal-overlay.open{opacity:1;pointer-events:all;}
.modal{
  background:var(--white);border-radius:16px;padding:24px;
  width:100%;max-width:480px;max-height:90vh;overflow-y:auto;
  transform:translateY(16px);transition:transform .2s;
  box-shadow:var(--shadow-md);
}
.modal-overlay.open .modal{transform:translateY(0);}
.modal-title{font-size:17px;font-weight:800;margin-bottom:18px;}
.field{margin-bottom:14px;}
.field label{display:block;font-size:11px;font-weight:700;color:var(--text2);text-transform:uppercase;letter-spacing:.5px;margin-bottom:5px;}
.field input,.field select,.field textarea{
  width:100%;padding:9px 12px;border:1px solid var(--control-border);border-radius:var(--radius-sm);
  background:var(--control-bg);color:var(--control-text);caret-color:var(--control-text);
  font-family:inherit;font-size:14px;outline:none;transition:var(--tr);
}
/* Form controls follow the application theme, not the device/browser theme. */
#app input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
#app select,
#app textarea,
#modalOverlay input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
#modalOverlay select,
#modalOverlay textarea{
  background-color:var(--control-bg);
  color:var(--control-text);
  border-color:var(--control-border);
  caret-color:var(--control-text);
}
#app input::placeholder,#app textarea::placeholder,
#modalOverlay input::placeholder,#modalOverlay textarea::placeholder{
  color:var(--control-placeholder);
  opacity:1;
}
#app select option,#modalOverlay select option{
  background:var(--control-bg);
  color:var(--control-text);
}
#app input:disabled,#app select:disabled,#app textarea:disabled,
#modalOverlay input:disabled,#modalOverlay select:disabled,#modalOverlay textarea:disabled{
  background:var(--control-disabled);
  color:var(--text3);
  cursor:not-allowed;
  opacity:1;
}
#app input:-webkit-autofill,#app input:-webkit-autofill:hover,#app input:-webkit-autofill:focus,
#modalOverlay input:-webkit-autofill,#modalOverlay input:-webkit-autofill:hover,#modalOverlay input:-webkit-autofill:focus{
  -webkit-text-fill-color:var(--control-text);
  -webkit-box-shadow:0 0 0 1000px var(--control-bg) inset;
  box-shadow:0 0 0 1000px var(--control-bg) inset;
  transition:background-color 9999s ease-out 0s;
}
#app input[type="color"],#modalOverlay input[type="color"]{
  padding:4px;
  background:var(--control-bg);
}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-light);}
.field textarea{resize:vertical;min-height:76px;}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px;flex-wrap:wrap;}

/* ── TOAST ── */
.toast-wrap{position:fixed;bottom:24px;right:24px;z-index:9998;display:flex;flex-direction:column;gap:7px;}
.toast{
  padding:10px 14px;border-radius:var(--radius-sm);background:var(--text);color:#fff;
  font-size:13px;font-weight:600;box-shadow:var(--shadow-md);
  transform:translateX(120%);transition:transform .3s ease;
  min-width:200px;display:flex;align-items:center;gap:8px;
}
.toast svg{width:15px;height:15px;stroke:#fff;flex-shrink:0;}
.toast.show{transform:translateX(0);}
.toast.success{background:var(--accent2);}
.toast.error{background:var(--danger);}
.toast.warning{background:var(--accent);color:var(--text);}
.toast.warning svg{stroke:var(--text);}

/* ── MISC ── */
.page-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px;gap:12px;flex-wrap:wrap;}
.page-header h2{font-size:19px;font-weight:800;}
.page-header p{font-size:12px;color:var(--text3);margin-top:2px;}
.empty-state{text-align:center;padding:48px 16px;color:var(--text3);}
.empty-icon-wrap{display:inline-flex;padding:16px;background:var(--surface);border-radius:50%;margin-bottom:12px;}
.empty-icon-wrap svg{width:32px;height:32px;stroke:var(--text3);}
.empty-state p{font-size:13px;}
.tag{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:6px;font-size:11px;font-weight:600;}
.tag-blue{background:var(--brand-light);color:var(--brand);}

/* ── RECEIPT ── */
.receipt{font-family:'Space Grotesk',monospace;border:1px dashed var(--border);border-radius:var(--radius-sm);padding:18px;background:var(--surface);margin:14px 0;}
.receipt-header{text-align:center;margin-bottom:14px;}
.receipt-header img{height:30px;margin-bottom:6px;object-fit:contain;}
.receipt-header h3{font-size:15px;font-weight:800;}
.receipt-header p{font-size:11px;color:var(--text3);}
.receipt-divider{border:none;border-top:1px dashed var(--border);margin:10px 0;}
.receipt-row{display:flex;justify-content:space-between;font-size:12px;margin-bottom:4px;}
.receipt-total{font-size:14px;font-weight:800;}
.receipt-footer{text-align:center;font-size:11px;color:var(--text3);margin-top:8px;}

/* ── TABS ── */
.tab-bar{display:flex;border-bottom:1px solid var(--border);margin-bottom:18px;overflow-x:auto;}
.tab{padding:10px 18px;font-size:13px;font-weight:600;color:var(--text3);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;transition:var(--tr);white-space:nowrap;}
.tab:hover{color:var(--text);}
.tab.active{color:var(--brand);border-bottom-color:var(--brand);}

/* ── PROMO ── */
.promo-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:16px;display:flex;align-items:flex-start;gap:14px;margin-bottom:10px;transition:var(--tr);}
.promo-card:hover{box-shadow:var(--shadow);}
.promo-badge-icon{width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,#F59E0B,#F97316);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.promo-badge-icon svg{width:20px;height:20px;stroke:#fff;}
.promo-info{flex:1;min-width:0;}
.promo-name{font-size:14px;font-weight:700;}
.promo-desc{font-size:12px;color:var(--text3);margin-top:2px;}
.promo-val{font-size:12px;color:var(--accent);font-weight:700;margin-top:4px;}
.promo-actions{display:flex;gap:6px;align-items:center;flex-shrink:0;flex-wrap:wrap;}

/* ── TOGGLE ── */
.toggle-switch{position:relative;width:40px;height:22px;display:inline-block;flex-shrink:0;}
.toggle-switch input{opacity:0;width:0;height:0;}
.toggle-slider{position:absolute;inset:0;background:#CBD5E1;border-radius:22px;cursor:pointer;transition:.3s;}
.toggle-slider::before{content:'';position:absolute;width:16px;height:16px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.3s;box-shadow:0 1px 3px rgba(0,0,0,.2);}
input:checked+.toggle-slider{background:var(--accent2);}
input:checked+.toggle-slider::before{transform:translateX(18px);}

.btn-wa{background:#25D366;color:#fff;border:none;}
.btn-wa:hover{background:#1fba59;}
.btn-wa svg{stroke:#fff;}

/* ── PAYMENT METHOD ── */
.pay-method-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0;}
.pay-method-card{
  border:2px solid var(--border);border-radius:var(--radius);padding:14px 12px;
  cursor:pointer;transition:var(--tr);text-align:center;background:var(--white);
  display:flex;flex-direction:column;align-items:center;gap:8px;
}
.pay-method-card:hover{border-color:var(--brand);background:var(--brand-light);}
.pay-method-card.selected{border-color:var(--brand);background:var(--brand-light);}
.pay-method-card.selected .pay-icon-wrap{background:var(--brand);}
.pay-method-card.selected .pay-icon-wrap svg{stroke:#fff;}
.pay-method-card.selected .pay-label{color:var(--brand);}
.pay-icon-wrap{
  width:44px;height:44px;border-radius:12px;background:var(--surface);
  display:flex;align-items:center;justify-content:center;transition:var(--tr);
}
.pay-icon-wrap svg{width:22px;height:22px;stroke:var(--text2);transition:var(--tr);}
.pay-label{font-size:13px;font-weight:700;color:var(--text);transition:var(--tr);}
.pay-label-sub{font-size:10px;color:var(--text3);margin-top:1px;}
.pay-cash-detail{margin-top:10px;padding:12px;background:var(--surface);border-radius:var(--radius-sm);border:1px solid var(--border);}
.pay-cash-detail label{font-size:11px;font-weight:700;color:var(--text2);text-transform:uppercase;letter-spacing:.5px;display:block;margin-bottom:5px;}
.pay-cash-input{width:100%;padding:10px 12px;border:1px solid var(--control-border);border-radius:var(--radius-sm);background:var(--control-bg);font-family:'Space Grotesk',sans-serif;font-size:16px;font-weight:700;outline:none;transition:var(--tr);color:var(--control-text);}
.pay-cash-input:focus{border-color:var(--brand);}
.pay-change-row{display:flex;justify-content:space-between;align-items:center;margin-top:8px;padding:8px 10px;background:var(--white);border-radius:var(--radius-sm);border:1px solid var(--border);}
.pay-change-label{font-size:12px;color:var(--text2);}
.pay-change-val{font-family:'Space Grotesk',sans-serif;font-size:15px;font-weight:800;color:var(--accent2);}
.pay-change-val.negative{color:var(--danger);}
.pay-transfer-detail{margin-top:10px;padding:14px;background:linear-gradient(135deg,#EFF6FF,#DBEAFE);border-radius:var(--radius-sm);border:1px solid #93C5FD;}
.pay-transfer-detail .bank-row{display:flex;align-items:center;gap:10px;margin-bottom:8px;}
.pay-transfer-detail .bank-logo{width:36px;height:36px;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:var(--brand);flex-shrink:0;box-shadow:0 1px 4px rgba(0,0,0,.1);}
.pay-transfer-detail .bank-info{flex:1;}
.pay-transfer-detail .bank-name{font-size:13px;font-weight:700;color:#1E40AF;}
.pay-transfer-detail .bank-num{font-family:'Space Grotesk',sans-serif;font-size:16px;font-weight:800;color:#1E40AF;letter-spacing:1px;}
.pay-transfer-detail .bank-holder{font-size:11px;color:#3B82F6;}
.copy-btn{padding:6px 12px;background:#1A56DB;color:#fff;border:none;border-radius:6px;font-size:11px;font-weight:700;cursor:pointer;transition:var(--tr);}
.copy-btn:hover{background:#1043b5;}
.pay-total-bar{background:linear-gradient(135deg,var(--brand),#3B82F6);border-radius:var(--radius-sm);padding:12px 16px;display:flex;justify-content:space-between;align-items:center;margin:12px 0;}
.pay-total-bar .lbl{color:rgba(255,255,255,.8);font-size:12px;font-weight:600;}
.pay-total-bar .val{color:#fff;font-family:'Space Grotesk',sans-serif;font-size:20px;font-weight:800;}
/* confirmation order summary */
.confirm-items{background:var(--surface);border-radius:var(--radius-sm);padding:10px;border:1px solid var(--border);margin-bottom:14px;max-height:160px;overflow-y:auto;}
.confirm-item-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;padding:5px 4px;border-bottom:1px solid var(--border);}
.confirm-item-row:last-child{border-bottom:none;}
.confirm-item-name{color:var(--text);font-weight:500;}
.confirm-item-price{color:var(--brand);font-weight:700;font-family:'Space Grotesk',sans-serif;white-space:nowrap;}
/* WA image receipt */
.wa-share-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px;}
.wa-share-opt{
  padding:12px 10px;border:1px solid var(--border);border-radius:var(--radius-sm);
  text-align:center;cursor:pointer;transition:var(--tr);background:var(--white);
}
.wa-share-opt:hover{border-color:#25D366;background:#f0fdf4;}
.wa-share-opt-icon{width:36px;height:36px;border-radius:50%;background:#25D366;margin:0 auto 6px;display:flex;align-items:center;justify-content:center;}
.wa-share-opt-icon svg{width:18px;height:18px;stroke:#fff;}
.wa-share-opt-label{font-size:12px;font-weight:700;color:var(--text);}
.wa-share-opt-sub{font-size:10px;color:var(--text3);margin-top:2px;}
/* canvas hidden for image generation */
#receiptCanvas{display:none;}

.cust-selector-wrap{position:relative;margin-bottom:8px;}
.cust-selector-wrap .cust-field-wrap{cursor:text;}
.cust-dropdown{
  position:absolute;bottom:100%;left:0;right:0;margin-bottom:4px;
  background:var(--white);border:1px solid var(--border);border-radius:var(--radius-sm);
  box-shadow:var(--shadow-md);z-index:50;max-height:180px;overflow-y:auto;display:none;
}
.cust-dropdown.open{display:block;}
.cust-opt{
  padding:9px 12px;cursor:pointer;display:flex;align-items:center;gap:10px;
  font-size:13px;border-bottom:1px solid var(--border);transition:var(--tr);
}
.cust-opt:last-child{border-bottom:none;}
.cust-opt:hover{background:var(--brand-light);}
.cust-opt-avatar{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,var(--brand),#3B82F6);color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.cust-opt-info{flex:1;min-width:0;}
.cust-opt-name{font-weight:600;color:var(--text);}
.cust-opt-phone{font-size:11px;color:var(--text3);}
.cust-opt-new{color:var(--brand);font-weight:600;font-size:12px;display:flex;align-items:center;gap:6px;}
.cust-opt-new svg{width:13px;height:13px;stroke:var(--brand);}
body.dark .cust-dropdown{background:#1E293B;border-color:#334155;}
body.dark .cust-opt{border-color:#334155;}
body.dark .cust-opt:hover{background:rgba(26,86,219,.2);}
body.dark .cust-opt-name{color:#F1F5F9;}

::-webkit-scrollbar{width:5px;height:5px;}
::-webkit-scrollbar-track{background:transparent;}
::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px;}
::-webkit-scrollbar-thumb:hover{background:var(--text3);}

/* ── FEATURE FLAG STOK ── */
.feat-flag-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:16px 20px;display:flex;align-items:center;gap:14px;margin-bottom:10px;transition:var(--tr);}
.feat-flag-card:hover{box-shadow:var(--shadow);}
.feat-flag-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.feat-flag-icon svg{width:20px;height:20px;}
.feat-flag-info{flex:1;min-width:0;}
.feat-flag-name{font-size:14px;font-weight:700;}
.feat-flag-desc{font-size:12px;color:var(--text3);margin-top:2px;line-height:1.4;}
.feat-flag-status.on{color:var(--accent2);font-size:11px;font-weight:700;margin-top:4px;}
.feat-flag-status.off{color:var(--text3);font-size:11px;font-weight:700;margin-top:4px;}
/* stok mode selector */
.stock-mode-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:8px;}
.stock-mode-opt{border:2px solid var(--border);border-radius:var(--radius-sm);padding:10px 8px;text-align:center;cursor:pointer;transition:var(--tr);background:var(--white);}
.stock-mode-opt:hover{border-color:var(--brand);}
.stock-mode-opt.selected{border-color:var(--brand);background:var(--brand-light);}
.stock-mode-opt .sm-icon{font-size:18px;margin-bottom:4px;}
.stock-mode-opt .sm-lbl{font-size:11px;font-weight:700;color:var(--text);}
.stock-mode-opt .sm-sub{font-size:10px;color:var(--text3);margin-top:1px;}
/* stok badge */
.stok-badge{display:inline-flex;align-items:center;gap:3px;font-size:10px;font-weight:700;padding:2px 7px;border-radius:20px;margin-top:4px;}
.stok-ok{background:#D1FAE5;color:#065F46;}
.stok-low{background:#FEF3C7;color:#92400E;}
.stok-out{background:#FEE2E2;color:#991B1B;}
.stok-unlimited{background:#EDE9FE;color:#5B21B6;}
/* stok alert banner */
.stok-alert-banner{background:linear-gradient(135deg,#FEF3C7,#FDE68A);border:1px solid #F59E0B;border-radius:var(--radius-sm);padding:10px 14px;margin-bottom:14px;display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;}
.stok-alert-banner svg{width:15px;height:15px;stroke:#92400E;flex-shrink:0;margin-top:1px;}
.stok-alert-title{font-size:12px;font-weight:700;color:#92400E;}
.stok-alert-items{font-size:11px;color:#78350F;margin-top:2px;}
/* pos stok */
.pos-stok-bar{height:3px;border-radius:2px;margin-top:5px;background:var(--border);}
.pos-stok-fill{height:100%;border-radius:2px;}
.pos-item-out{opacity:.4;cursor:not-allowed!important;}
.pos-item-out:hover{border-color:var(--border)!important;background:var(--white)!important;}
/* SA fitur panel */
.sa-fitur-header{background:linear-gradient(135deg,#1A56DB,#3B82F6);border-radius:var(--radius);padding:20px;color:#fff;margin-bottom:16px;display:flex;align-items:center;gap:14px;}
.sa-fitur-header svg{width:28px;height:28px;stroke:#fff;flex-shrink:0;}
.sa-fitur-header h3{font-size:16px;font-weight:800;}
.sa-fitur-header p{font-size:12px;opacity:.75;margin-top:2px;}
.biz-fitur-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;margin-bottom:14px;}
.biz-fitur-header{padding:14px 18px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--border);background:var(--surface);}
.biz-fitur-header .biz-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;}
.biz-fitur-header strong{font-size:14px;}
.biz-fitur-header .biz-type{font-size:11px;color:var(--text3);margin-left:auto;}
.biz-fitur-body{padding:14px 18px;}

/* ── ANIMATIONS ── */
@keyframes fadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ── RESPONSIVE ── */
@media(max-width:1024px){
  :root{--sidebar-w:200px;}
  .chart-row{grid-template-columns:1fr;}
  .stats-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:768px){
  :root{--sidebar-w:260px;}
  .sidebar{position:fixed;left:0;top:0;bottom:0;transform:translateX(-100%);}
  .sidebar.open{transform:translateX(0);}
  .topbar-hamburger{display:flex;}
  .pos-layout{grid-template-columns:1fr;}
  .pos-cart{display:none!important;}
  .cart-fab{display:flex;}
  .cart-drawer{display:flex;}
  .chart-row{grid-template-columns:1fr;}
  .stats-grid{grid-template-columns:repeat(2,1fr);}
  .field-row{grid-template-columns:1fr;}
  .product-grid{grid-template-columns:repeat(2,1fr);}
  .modal{padding:18px;}
  .content{padding:14px;}
  .pos-grid{grid-template-columns:repeat(3,1fr);}
}
@media(max-width:480px){
  .stats-grid{grid-template-columns:1fr 1fr;}
  .stat-value{font-size:20px;}
  .product-grid{grid-template-columns:1fr 1fr;}
  .pos-grid{grid-template-columns:repeat(2,1fr);}
  .tab{padding:8px 12px;font-size:12px;}
  .topbar h1{font-size:14px;}
  .toast-wrap{left:16px;right:16px;}
  .toast{min-width:unset;}
}

/* ── SYSTEM STATES ── */
.loading-overlay{
  position:fixed;inset:0;z-index:99999;display:none;
  align-items:center;justify-content:center;
  background:rgba(15,23,42,.48);backdrop-filter:blur(3px);
}
.loading-card{
  min-width:220px;padding:26px 32px;border-radius:14px;
  background:var(--white);border:1px solid var(--border);
  box-shadow:var(--shadow-md);text-align:center;
}
.loading-spinner{
  width:40px;height:40px;margin:0 auto 14px;border-radius:50%;
  border:3px solid var(--border);border-top-color:var(--brand);
  animation:jb-spin .7s linear infinite;
}
.loading-message{font-size:14px;font-weight:700;color:var(--text);}
@keyframes jb-spin{to{transform:rotate(360deg)}}
button:disabled{opacity:.58;cursor:not-allowed;transform:none!important;}

/* Landing page navigation link on login */
.back-home-link{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:17px;color:rgba(255,255,255,.52);font-size:11px;font-weight:600;text-decoration:none;transition:color .2s}.back-home-link:hover{color:#fff}.back-home-link svg{width:13px;height:13px;stroke:currentColor}

/* ── SECURITY / DEMO MODE ── */
.demo-mode-banner{
  flex-shrink:0;padding:10px 18px;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;
  background:#fff7ed;border-bottom:1px solid #fdba74;color:#9a3412;font-size:12px;font-weight:700;line-height:1.45;text-align:center;
}
.demo-mode-banner strong{white-space:nowrap;}
.demo-mode-banner span{max-width:760px;}
.demo-mode-banner .btn{min-height:32px;padding:0 11px;background:rgba(255,255,255,.72);color:#9a3412;border-color:#fdba74;}
.demo-mode-banner[hidden]{display:none!important;}
body.dark .demo-mode-banner{background:#431407;border-color:#9a3412;color:#fed7aa;}
body.dark .demo-mode-banner .btn{background:rgba(15,23,42,.48);color:#fed7aa;border-color:#9a3412;}
@media(max-width:620px){
  .demo-mode-banner{padding:9px 12px;gap:6px;font-size:10px;}
  .demo-mode-banner strong,.demo-mode-banner span{width:100%;}
}
body.demo-session .btn-danger,body.demo-session [data-destructive="true"]{filter:saturate(.7);}

/* ═══════════════════════════════════════════════════════════════
   APP QUALITY PASS — accessibility, responsive layouts, states
   ═══════════════════════════════════════════════════════════════ */
button{font-family:inherit;}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{
  outline:3px solid rgba(26,86,219,.28);outline-offset:2px;
}
body.modal-open{overflow:hidden;}
#app{min-height:100vh;}
@supports(height:100dvh){#app,.sidebar{height:100dvh;}.modal{max-height:calc(100dvh - 32px);}}

.login-password-toggle{
  position:absolute;right:8px;width:32px;height:32px;padding:0;border:0;border-radius:8px;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  color:rgba(255,255,255,.42);background:transparent;transition:var(--tr);
}
.login-password-toggle:hover,.login-password-toggle.active{color:#fff;background:rgba(255,255,255,.08);}
.login-password-toggle svg{pointer-events:none;}

.nav-item{
  width:calc(100% - 16px);border:0;text-align:left;background:transparent;font-family:inherit;
}
.sidebar-section+.sidebar-section{padding-top:2px;}

.notif-panel{
  position:fixed;top:68px;right:16px;width:min(320px,calc(100vw - 32px));
  background:var(--white);border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:var(--shadow-md);z-index:500;overflow:hidden;
}
.notif-panel[hidden]{display:none!important;}
.notif-close{width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:var(--text3);font-size:20px;line-height:1;cursor:pointer;}
.notif-close:hover{background:var(--surface);color:var(--text);}
.notif-item{padding:11px 16px;border-bottom:1px solid var(--border);display:flex;gap:10px;align-items:flex-start;}
.notif-item:last-child{border-bottom:0;}
.notif-item-icon{font-size:18px;flex-shrink:0;}
.notif-item-title{font-size:13px;font-weight:700;color:var(--text);}
.notif-item-message{font-size:12px;color:var(--text2);margin-top:2px;line-height:1.45;}

.modal-overlay{overscroll-behavior:contain;}
.modal{scrollbar-gutter:stable;}
.modal:focus{outline:none;}
.modal-title{scroll-margin-top:12px;}

.route-error{max-width:520px;margin:clamp(40px,10vh,100px) auto;padding:30px;text-align:center;border:1px solid var(--border);border-radius:var(--radius);background:var(--white);box-shadow:var(--shadow);}
.route-error-icon{width:48px;height:48px;margin:0 auto 14px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#FEE2E2;color:#B91C1C;font-size:24px;font-weight:800;}
.route-error h2{font-size:20px;}.route-error p{margin:7px 0 18px;color:var(--text2);line-height:1.6;}

.chart-empty,.bar-chart.is-empty{min-height:150px;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--text3);font-size:12px;}
.empty-state.compact{padding:24px 16px;}
.empty-state h3{margin-bottom:5px;color:var(--text);font-size:15px;}
.empty-state .btn{margin-top:14px;}
.product-empty{grid-column:1/-1;border:1px dashed var(--border);border-radius:var(--radius);background:var(--white);}
.pos-empty{grid-column:1/-1;min-height:260px;padding:32px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--text3);border:1px dashed var(--border);border-radius:var(--radius);background:var(--white);}
.pos-empty h3{margin:10px 0 5px;color:var(--text);font-size:15px;}.pos-empty p{max-width:310px;font-size:12px;line-height:1.6;}

.dashboard-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:20px;}
.dashboard-shortcut{min-height:86px;padding:14px;border:1px solid var(--border);border-radius:var(--radius);background:var(--white);color:var(--text);cursor:pointer;transition:var(--tr);text-align:center;}
.dashboard-shortcut:hover{border-color:var(--brand);box-shadow:var(--shadow-md);transform:translateY(-1px);}
.dashboard-shortcut span{display:block;margin-bottom:5px;font-size:22px;}.dashboard-shortcut strong{font-size:12px;}
.monitor-stats{grid-template-columns:repeat(3,minmax(0,1fr));}

.table-wrap{position:relative;max-width:100%;overscroll-behavior-x:contain;scrollbar-gutter:stable;}
.table-wrap:focus{outline:2px solid var(--brand-light);outline-offset:2px;border-radius:var(--radius-sm);}
.table-card .table-wrap::after{
  content:'';position:sticky;right:0;float:right;width:18px;height:1px;pointer-events:none;
  box-shadow:-12px 0 18px rgba(15,23,42,.08);
}

body.dark .stok-alert-banner{background:#422006;border-color:#92400E;}
body.dark .stok-alert-title,body.dark .stok-alert-items{color:#FDE68A;}
body.dark .pay-transfer-detail{background:#172554;border-color:#1D4ED8;}
body.dark .pay-transfer-detail .bank-name,body.dark .pay-transfer-detail .bank-num{color:#BFDBFE;}
body.dark .pay-transfer-detail .bank-holder{color:#93C5FD;}
body.dark .route-error,body.dark .dashboard-shortcut,body.dark .pos-empty{background:var(--white);}

@media(max-width:768px){
  .sidebar{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);}
  .topbar{height:calc(var(--header-h) + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);padding-inline:14px;gap:8px;}
  .topbar-right{gap:6px;}.topbar .avatar{width:30px;height:30px;}
  .dark-toggle-btn,.notif-btn,.topbar-hamburger{width:36px;height:36px;min-width:36px;}
  .content{padding:16px 14px max(20px,env(safe-area-inset-bottom));}
  .content.no-pad{padding:0;}
  .modal-overlay{align-items:flex-end;padding:10px;}
  .modal{max-width:620px;width:100%;padding:20px;border-radius:18px 18px 14px 14px;}
  .modal-actions{position:sticky;bottom:-20px;margin:18px -20px -20px;padding:12px 20px max(12px,env(safe-area-inset-bottom));background:var(--white);border-top:1px solid var(--border);z-index:2;}
  .cart-drawer{padding-bottom:env(safe-area-inset-bottom);}
  .cart-fab{bottom:max(16px,env(safe-area-inset-bottom));max-width:calc(100vw - 24px);}
  .notif-panel{top:calc(var(--header-h) + env(safe-area-inset-top) + 8px);right:12px;width:calc(100vw - 24px);}
}

@media(max-width:620px){
  :root{--header-h:58px;}
  #splash{justify-content:flex-start;overflow-y:auto;padding:clamp(24px,8vh,70px) 16px max(24px,env(safe-area-inset-bottom));}
  .splash-logo{margin-bottom:22px;}.splash-logo img{height:48px;width:48px;}
  .login-card{max-width:430px;padding:26px 20px;border-radius:18px;}
  .login-card h2{font-size:20px;}.login-card>p{margin-bottom:22px;line-height:1.5;}
  .page-header{display:grid;grid-template-columns:1fr;margin-bottom:16px;}
  .page-header>.btn,.page-header>button{width:100%;}
  .page-header>.badge{justify-self:start;}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .stat-card{padding:15px 13px;min-height:112px;}.stat-label{padding-right:28px;font-size:9px;line-height:1.35;}.stat-value{font-size:21px;}
  .stat-icon-wrap{top:11px;right:10px;width:30px;height:30px;}
  .dashboard-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
  .dashboard-shortcut{min-height:78px;padding:10px 6px;}.dashboard-shortcut span{font-size:20px;}.dashboard-shortcut strong{font-size:10px;line-height:1.35;display:block;}
  .monitor-stats{grid-template-columns:1fr;}
  .table-card{border-radius:10px;}.table-header{padding:13px 14px;align-items:flex-start;}.table-header-right{width:100%;}
  .table-header-right .btn{width:100%;}
  th,td{padding:10px 12px;}
  .product-grid{gap:10px;}.product-card{min-width:0;}.product-actions{display:grid;grid-template-columns:1fr;}
  .product-actions .btn{width:100%;}
  .pos-products{padding:12px;}.pos-grid{gap:9px;}.pos-item{min-height:112px;padding:12px 10px;}
  .pos-item-name{font-size:12px;}.pos-item-price{font-size:13px;}
  .pay-method-grid{grid-template-columns:1fr 1fr;}.wa-share-options{grid-template-columns:1fr!important;}
  .modal-actions{display:grid;grid-template-columns:1fr;}.modal-actions .btn{width:100%;}
  .toast-wrap{bottom:max(16px,env(safe-area-inset-bottom));}.toast{width:100%;max-width:none;line-height:1.45;}
  .demo-mode-banner{position:relative;}.demo-mode-banner .btn{width:100%;}
}

@media(max-width:390px){
  .topbar{padding-inline:10px;}.topbar-right{gap:4px;}.topbar h1{font-size:13px;}
  .dark-toggle-btn,.notif-btn,.topbar-hamburger{width:34px;height:34px;min-width:34px;}
  #refreshDataBtn{display:none;}
  .stats-grid{grid-template-columns:1fr 1fr;}
  .stat-card{min-height:108px;}.stat-value{font-size:19px;}
  .dashboard-shortcuts{grid-template-columns:1fr;}.dashboard-shortcut{min-height:62px;display:flex;align-items:center;justify-content:flex-start;gap:12px;text-align:left;padding-inline:16px;}.dashboard-shortcut span{margin:0;}
  .product-grid,.pos-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .pay-method-grid{grid-template-columns:1fr;}
}
.field-password-toggle{
  position:absolute;right:6px;width:34px;height:34px;padding:0;border:0;border-radius:8px;
  display:flex;align-items:center;justify-content:center;color:var(--text3);background:transparent;cursor:pointer;transition:var(--tr);
}
.field-password-toggle:hover,.field-password-toggle.active{color:var(--brand);background:var(--brand-light);}
.field-password-toggle svg{width:16px;height:16px;stroke:currentColor;pointer-events:none;}

/* ═══════════════════════════════════════════════════════════════
   MODERN APP UI — professional, icon-first, mobile responsive
   ═══════════════════════════════════════════════════════════════ */
:root{
  --brand:#2563EB;
  --brand-dark:#1D4ED8;
  --brand-light:#EFF6FF;
  --accent:#F59E0B;
  --accent2:#10B981;
  --danger:#EF4444;
  --purple:#7C3AED;
  --text:#0F172A;
  --text2:#475569;
  --text3:#94A3B8;
  --border:#E5EAF2;
  --surface:#F4F7FB;
  --white:#FFFFFF;
  --control-border:#D8E0EC;
  --sidebar-w:248px;
  --header-h:68px;
  --radius:16px;
  --radius-sm:11px;
  --shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.055);
  --shadow-md:0 18px 45px rgba(15,23,42,.11);
  --tr:all .2s cubic-bezier(.2,.8,.2,1);
}
body.dark{
  --text:#F8FAFC;
  --text2:#A8B4C7;
  --text3:#66758C;
  --border:#26344B;
  --surface:#0B1220;
  --white:#111C2F;
  --control-bg:#132036;
  --control-text:#F8FAFC;
  --control-placeholder:#718096;
  --control-border:#30415C;
  --brand-light:rgba(37,99,235,.18);
}
html,body{font-size:14px;letter-spacing:-.005em;}
body{background:var(--surface);}
#app{background:var(--surface);}

/* shell */
.sidebar{
  padding:12px 10px;
  background:linear-gradient(180deg,#071225 0%,#08152C 52%,#07101F 100%);
  border-right:1px solid rgba(148,163,184,.09);
  box-shadow:10px 0 35px rgba(2,8,23,.09);
}
.sidebar-brand{height:52px;padding:6px 9px 12px;border-bottom:1px solid rgba(255,255,255,.055);}
.sidebar-brand img{width:36px;height:36px;border-radius:10px;}
.sidebar-role{margin:12px 6px 8px;min-height:34px;border-radius:10px;justify-content:flex-start;padding:0 11px;}
.sidebar-section-title{padding:10px 12px 5px;color:rgba(226,232,240,.32);font-size:9px;letter-spacing:1.15px;}
.nav-item{
  width:100%;min-height:42px;margin:2px 0;padding:0 12px;gap:11px;border-radius:11px;
  color:rgba(226,232,240,.62);font-size:12.5px;font-weight:650;
}
.nav-item:hover{background:rgba(255,255,255,.055);color:#fff;transform:translateX(1px);}
.nav-item.active{background:linear-gradient(135deg,rgba(37,99,235,.92),rgba(59,130,246,.72));color:#fff;box-shadow:0 10px 24px rgba(37,99,235,.2);}
.nav-item.active::before{display:none;}
.sidebar-footer{padding:12px 6px 3px;border-top:1px solid rgba(255,255,255,.06);}
.user-info{padding:8px;border-radius:12px;background:rgba(255,255,255,.035);}
.btn-logout{border:1px solid rgba(239,68,68,.16);}

.topbar{
  height:var(--header-h);padding:0 22px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--border);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
}
body.dark .topbar{background:rgba(17,28,47,.91);border-color:var(--border);}
.topbar h1{font-size:17px;font-weight:750;letter-spacing:-.35px;}
.topbar-right{gap:8px;}
.dark-toggle-btn,.notif-btn,.topbar-hamburger{
  width:38px;height:38px;border-radius:11px;background:var(--white);border:1px solid var(--border);box-shadow:0 1px 2px rgba(15,23,42,.03);
}
.dark-toggle-btn:hover,.notif-btn:hover,.topbar-hamburger:hover{background:var(--brand-light);border-color:#BFDBFE;transform:translateY(-1px);}
.topbar .avatar{width:36px;height:36px;border:3px solid var(--white);box-shadow:0 0 0 1px var(--border);}
.content{padding:clamp(18px,2.1vw,28px);}
.content:not(.no-pad){max-width:1440px;width:100%;margin:0 auto;}

/* demo strip */
.demo-mode-banner{
  min-height:54px;padding:8px clamp(14px,2vw,24px);justify-content:flex-start;gap:11px;text-align:left;
  color:#8A3A0B;background:linear-gradient(90deg,#FFF7ED,#FFFBEB);border-bottom:1px solid #FED7AA;font-weight:500;
}
.demo-banner-icon{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#FFEDD5;color:#C2410C;flex:0 0 auto;}
.demo-banner-icon svg{width:17px;height:17px;}
.demo-banner-copy{display:flex;flex-direction:column;gap:2px;min-width:0;max-width:none!important;}
.demo-banner-copy strong{font-size:12px;color:#9A3412;}
.demo-banner-copy>span{font-size:11px;color:#B45309;line-height:1.45;max-width:none!important;}
.demo-reset-btn{margin-left:auto!important;min-width:84px!important;background:rgba(255,255,255,.8)!important;}
body.dark .demo-mode-banner{background:linear-gradient(90deg,#2A160B,#24170D);color:#FED7AA;border-color:#6B3414;}
body.dark .demo-banner-icon{background:#4A230F;color:#FDBA74;}
body.dark .demo-banner-copy strong{color:#FED7AA;} body.dark .demo-banner-copy>span{color:#FDBA74;}

/* page hierarchy */
.page-header{align-items:center;margin-bottom:22px;}
.page-header h2{font-size:22px;line-height:1.15;letter-spacing:-.65px;}
.page-header p{font-size:12.5px;line-height:1.5;margin-top:5px;}
.section-eyebrow{display:block;margin-bottom:5px;color:var(--brand);font-size:9px;font-weight:800;letter-spacing:1.1px;text-transform:uppercase;}

/* cards */
.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px;}
.stat-card{
  min-height:132px;padding:19px 18px;border:1px solid var(--border);border-radius:18px;background:var(--white);box-shadow:var(--shadow);overflow:hidden;
}
.stat-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--card-color) 28%,var(--border));box-shadow:var(--shadow-md);}
.stat-card::before{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:var(--card-color,var(--brand));opacity:.85;}
.stat-card::after{width:96px;height:96px;opacity:.055;transform:translate(32px,-32px);}
.stat-icon-wrap{position:static;width:38px;height:38px;margin-bottom:15px;border-radius:12px;background:color-mix(in srgb,var(--card-color) 13%,transparent);color:var(--card-color);}
.stat-icon-wrap svg{width:19px;height:19px;stroke:currentColor;}
.stat-label{margin:0 0 7px;padding:0;color:var(--text2);font-size:9.5px;letter-spacing:.72px;}
.stat-value{font-size:27px;letter-spacing:-.85px;}
.stat-sub{font-size:10.5px;line-height:1.45;}
.chart-card,.table-card,.promo-card,.feat-flag-card,.biz-fitur-card,.activity-card{
  border:1px solid var(--border);border-radius:18px;background:var(--white);box-shadow:var(--shadow);
}
.chart-card{padding:20px;}
.chart-card h3,.table-header h3,.activity-card-header h3{font-size:14px;letter-spacing:-.2px;}
.table-card{overflow:hidden;}
.table-header{min-height:58px;padding:14px 18px;}
table{border-collapse:separate;border-spacing:0;width:100%;}
th{padding:11px 16px;background:color-mix(in srgb,var(--surface) 78%,var(--white));font-size:9px;letter-spacing:.65px;color:var(--text3);}
td{padding:13px 16px;font-size:12px;}
tr:last-child td{border-bottom:0;}
tr:hover td{background:color-mix(in srgb,var(--brand-light) 42%,transparent);}

/* buttons */
.btn{min-height:38px;padding:0 14px;border-radius:11px;font-weight:750;letter-spacing:-.1px;}
.btn-primary{background:linear-gradient(135deg,#2563EB,#3B82F6);box-shadow:0 8px 18px rgba(37,99,235,.18);}
.btn-primary:hover{background:linear-gradient(135deg,#1D4ED8,#2563EB);box-shadow:0 10px 24px rgba(37,99,235,.25);transform:translateY(-1px);}
.btn-outline{background:var(--white);}
.btn-outline:hover{background:var(--brand-light);}
.btn-danger{background:#EF4444;}
.btn-sm{min-height:32px;padding:0 11px;}
.icon-action{width:34px;height:34px;border:1px solid var(--border);border-radius:10px;background:var(--white);color:var(--text2);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:var(--tr);}
.icon-action:hover{color:var(--brand);border-color:#BFDBFE;background:var(--brand-light);}
.icon-action svg{width:14px;height:14px;}

.badge,.tag,.stok-badge,.customer-tier,.status-chip{border-radius:999px;}
.badge{padding:4px 9px;font-size:10px;}
.badge-green{background:#ECFDF5;color:#047857;}.badge-blue{background:#EFF6FF;color:#1D4ED8;}.badge-red{background:#FEF2F2;color:#B91C1C;}.badge-yellow{background:#FFFBEB;color:#B45309;}.badge-gray{background:#F1F5F9;color:#475569;}
body.dark .badge-green{background:rgba(16,185,129,.14);color:#6EE7B7;} body.dark .badge-blue{background:rgba(37,99,235,.15);color:#93C5FD;} body.dark .badge-red{background:rgba(239,68,68,.14);color:#FCA5A5;} body.dark .badge-yellow{background:rgba(245,158,11,.14);color:#FCD34D;} body.dark .badge-gray{background:rgba(148,163,184,.12);color:#CBD5E1;}

/* dashboard */
.dashboard-alert{display:flex;align-items:center;gap:12px;padding:13px 14px;margin-bottom:18px;border-radius:14px;border:1px solid;}
.dashboard-alert-warning{background:#FFFBEB;border-color:#FDE68A;color:#92400E;}
.dashboard-alert-icon{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#FEF3C7;flex:0 0 auto;}
.dashboard-alert-icon svg{width:17px;height:17px;}
.dashboard-alert-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;}.dashboard-alert-copy strong{font-size:12px;}.dashboard-alert-copy span{font-size:11px;line-height:1.45;color:#A16207;}
.dashboard-shortcuts{gap:12px;margin-bottom:22px;}
.dashboard-shortcut{
  min-height:86px;padding:14px 15px;display:grid;grid-template-columns:40px minmax(0,1fr) 18px;align-items:center;gap:11px;text-align:left;border-radius:16px;
}
.dashboard-shortcut>span{display:block;margin:0;font-size:inherit;}
.dashboard-shortcut>span:nth-child(2){min-width:0;}.dashboard-shortcut strong{display:block;font-size:12px;}.dashboard-shortcut small{display:block;margin-top:3px;color:var(--text3);font-size:9.5px;line-height:1.35;}
.dashboard-shortcut>svg{width:15px;height:15px;color:var(--text3);}
.shortcut-icon{width:40px;height:40px!important;display:flex!important;align-items:center;justify-content:center;border-radius:12px;background:var(--brand-light);color:var(--brand);}
.shortcut-icon svg{width:18px;height:18px;}
.activity-card{margin-bottom:22px;overflow:hidden;}
.activity-card-header{min-height:64px;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);}
.activity-card-header p{margin-top:3px;color:var(--text3);font-size:10.5px;}
.transaction-feed{padding:4px 14px 8px;}
.transaction-feed-item{min-height:68px;padding:10px 4px;display:grid;grid-template-columns:38px minmax(0,1fr) auto 34px;align-items:center;gap:11px;border-bottom:1px solid var(--border);}
.transaction-feed-item:last-child{border-bottom:0;}
.transaction-feed-icon{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:var(--brand-light);color:var(--brand);}.transaction-feed-icon svg{width:16px;height:16px;}
.transaction-feed-main{min-width:0;display:flex;flex-direction:column;gap:4px;}.transaction-feed-main strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.transaction-feed-main span{color:var(--text3);font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.transaction-feed-total{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:5px;}.transaction-feed-total>strong{font-family:'Space Grotesk',sans-serif;font-size:12.5px;}
.status-chip{min-height:24px;padding:0 8px;border:0;display:inline-flex;align-items:center;gap:4px;font-size:9px;font-weight:750;cursor:pointer;}.status-chip svg{width:11px;height:11px;}.status-chip.is-paid{background:#ECFDF5;color:#047857;}.status-chip.is-pending{background:#FFF7ED;color:#C2410C;}

/* POS catalog */
.pos-layout{grid-template-columns:minmax(0,1fr) 356px;height:calc(100dvh - var(--header-h));background:var(--surface);}
.pos-products{padding:20px clamp(16px,2vw,24px);}
.pos-catalog-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px;}
.pos-catalog-header h2{font-size:21px;letter-spacing:-.6px;}.pos-catalog-header p{margin-top:4px;color:var(--text3);font-size:11px;}
.pos-search{width:min(390px,45%);min-height:44px;margin:0;padding:0 14px;border-radius:13px;background:var(--white);box-shadow:var(--shadow);}
.pos-search input{font-size:12px;color:var(--text);}
.pos-cats{gap:7px;margin-bottom:15px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px;scrollbar-width:none;}.pos-cats::-webkit-scrollbar{display:none;}
.cat-pill{min-height:34px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;white-space:nowrap;background:var(--white);font-size:10.5px;}
.cat-pill.active,.cat-pill:hover{box-shadow:0 6px 14px rgba(37,99,235,.15);}
.promo-banner{min-height:52px;padding:10px 12px;display:flex;align-items:center;gap:10px;border-radius:14px;background:linear-gradient(90deg,#FFF7ED,#FFFBEB);}
.promo-banner-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#FFEDD5;color:#C2410C;flex:0 0 auto;}.promo-banner-icon svg{width:15px;height:15px;}.promo-banner>div{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;}.promo-banner strong{font-size:11px;color:#9A3412;}.promo-banner div span{font-size:9.5px;color:#B45309;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pos-grid{grid-template-columns:repeat(auto-fill,minmax(154px,1fr));gap:12px;}
.pos-item{
  min-height:178px;padding:13px;display:flex;flex-direction:column;align-items:stretch;text-align:left;border-radius:16px;background:var(--white);box-shadow:var(--shadow);overflow:hidden;
}
.pos-item:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);}.pos-item.in-cart{border-color:#93C5FD;box-shadow:0 0 0 2px rgba(37,99,235,.1),var(--shadow);}
.pos-item-visual{position:relative;height:62px;margin-bottom:12px;display:flex;align-items:center;justify-content:center;border-radius:13px;background:color-mix(in srgb,var(--product-accent) 12%,var(--surface));color:var(--product-accent);overflow:hidden;}
.pos-item-visual>span{font-family:'Space Grotesk',sans-serif;font-size:18px;font-weight:800;letter-spacing:-.5px;}.pos-item-visual>svg{position:absolute;right:8px;bottom:7px;width:20px;height:20px;opacity:.22;}
.pos-item-content{display:flex;flex-direction:column;min-width:0;}.pos-item-cat{order:0;margin:0 0 4px;font-size:8.5px;letter-spacing:.65px;}.pos-item-name{order:1;margin:0;min-height:32px;font-size:12px;line-height:1.35;}.pos-item-price{order:2;margin-top:6px;font-size:14px;}.pos-stock-label{order:3;margin-top:8px;display:inline-flex;align-items:center;gap:4px;font-size:8.5px;font-weight:700;}.pos-stock-label svg{width:11px;height:11px;}.pos-stock-label.is-ready{color:#059669;}.pos-stock-label.is-low{color:#D97706;}.pos-stock-label.is-out{color:#DC2626;}.pos-stock-label.is-unlimited{color:#7C3AED;}
.pos-add-icon{position:absolute;right:10px;top:10px;width:25px;height:25px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:rgba(255,255,255,.82);color:var(--brand);box-shadow:0 3px 10px rgba(15,23,42,.09);}.pos-add-icon svg{width:13px;height:13px;}
.pos-badge{top:8px;left:8px;right:auto;width:24px;height:24px;padding:0;display:flex;align-items:center;justify-content:center;border:2px solid var(--white);box-shadow:0 4px 10px rgba(37,99,235,.2);}
.pos-cart{border-left:1px solid var(--border);box-shadow:-8px 0 28px rgba(15,23,42,.045);}
.cart-header{padding:17px 18px;}.cart-title-row{align-items:flex-end;}.cart-title-row h2{font-size:16px;}.cart-count{min-width:28px;height:28px;padding:0 8px;display:flex;align-items:center;justify-content:center;}
.cart-items{padding:10px 14px;}.cart-item{padding:11px;border-radius:12px;background:var(--surface);border:1px solid transparent;}.cart-item:hover{border-color:var(--border);}
.cart-footer{padding:15px 17px 17px;box-shadow:0 -12px 30px rgba(15,23,42,.04);}.cart-row{font-size:11px;}.cart-row.total{font-size:15px;margin-top:10px;padding-top:11px;}
.cust-fields input{min-height:42px;border-radius:11px;background:var(--control-bg);}
.btn-pay{min-height:48px;margin-top:11px;padding:0 15px;justify-content:flex-start;gap:9px;border-radius:13px;font-size:12px;}.btn-pay>span{flex:1;text-align:left;}.btn-pay>svg:last-child{width:15px;height:15px;}

/* notification */
.notif-panel{top:76px;border-radius:16px;box-shadow:var(--shadow-md);}
.notif-close{display:flex;align-items:center;justify-content:center;}.notif-close svg{width:15px;height:15px;}
.notif-item{padding:12px 14px;}.notif-item-icon{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:10px;}.notif-item-icon svg{width:16px;height:16px;}.notif-warn{background:#FFF7ED;color:#C2410C;}.notif-danger{background:#FEF2F2;color:#DC2626;}.notif-info{background:#EFF6FF;color:#2563EB;}.notif-ok{background:#ECFDF5;color:#059669;}

/* forms, modal, receipt actions */
.modal{max-width:610px;padding:24px;border-radius:20px;box-shadow:0 30px 80px rgba(2,8,23,.22);}
.modal-title{font-size:18px;letter-spacing:-.4px;}.modal-title-icon{display:flex;align-items:center;gap:12px;}.modal-title-icon>span{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:var(--brand-light);color:var(--brand);}.modal-title-icon>span svg{width:18px;height:18px;}.modal-title-icon>div{display:flex;flex-direction:column;gap:3px;}.modal-title-icon strong{font-size:16px;}.modal-title-icon small{color:var(--text3);font-size:10px;font-weight:500;}
.field label{font-size:9.5px;letter-spacing:.7px;}.field input,.field select,.field textarea{min-height:43px;padding:10px 12px;border-radius:11px;font-size:12.5px;}
.modal-actions{padding-top:4px;}
.receipt-action-list{display:grid;gap:9px;margin-top:18px;}.receipt-action{width:100%;min-height:66px;padding:10px 12px;display:grid;grid-template-columns:40px minmax(0,1fr) 18px;align-items:center;gap:11px;border:1px solid var(--border);border-radius:13px;background:var(--white);color:var(--text);text-align:left;cursor:pointer;transition:var(--tr);}.receipt-action:hover{border-color:#BFDBFE;background:var(--brand-light);transform:translateY(-1px);}.receipt-action-icon{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:var(--brand-light);color:var(--brand);}.receipt-action-icon.is-whatsapp{background:#ECFDF5;color:#059669;}.receipt-action-icon svg{width:17px;height:17px;}.receipt-action>span:nth-child(2){display:flex;flex-direction:column;gap:3px;}.receipt-action strong{font-size:12px;}.receipt-action small{font-size:9.5px;color:var(--text3);}.receipt-action>svg{width:14px;height:14px;color:var(--text3);}
.helper-note{display:flex;align-items:flex-start;gap:8px;margin-bottom:14px;padding:10px 12px;border-radius:10px;background:var(--surface);color:var(--text2);font-size:10.5px;line-height:1.5;}.helper-note svg,.inline-warning svg{width:14px;height:14px;flex:0 0 auto;}.inline-warning{display:inline-flex;align-items:center;gap:4px;color:var(--danger);}
.password-feedback{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;}.password-feedback svg{width:13px;height:13px;}.password-feedback.is-valid{color:var(--accent2);}.password-feedback.is-invalid{color:var(--danger);}
.customer-tier{min-height:25px;padding:0 8px;display:inline-flex;align-items:center;gap:4px;font-size:9px;font-weight:750;}.customer-tier svg{width:11px;height:11px;}.tier-vip{background:#FFF7ED;color:#C2410C;}.tier-regular{background:#EFF6FF;color:#2563EB;}.tier-new{background:#F1F5F9;color:#64748B;}
.receipt-note,.receipt-thanks{display:flex;align-items:center;justify-content:center;gap:5px;}.receipt-note svg,.receipt-thanks svg{width:13px;height:13px;}.receipt-thanks{color:var(--accent2);font-weight:650;}
.stock-mode-opt .sm-icon{height:28px;display:flex;align-items:center;justify-content:center;color:var(--brand);}.stock-mode-opt .sm-icon svg{width:19px;height:19px;}

/* mobile polish */
@media(max-width:1100px){
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .pos-layout{grid-template-columns:minmax(0,1fr) 330px;}
}
@media(max-width:768px){
  :root{--header-h:62px;--sidebar-w:278px;}
  .topbar{padding-inline:13px;}
  .content{padding:16px 13px max(24px,env(safe-area-inset-bottom));}
  .demo-mode-banner{min-height:58px;padding:8px 12px;gap:8px;flex-wrap:nowrap;}
  .demo-banner-icon{width:30px;height:30px;border-radius:9px;}.demo-banner-copy strong{font-size:10.5px;}.demo-banner-copy>span{font-size:9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}.demo-reset-btn{width:auto!important;min-width:66px!important;padding-inline:8px!important;font-size:9px!important;}
  .page-header h2{font-size:20px;}
  .pos-products{padding:15px 12px 90px;}.pos-catalog-header{display:grid;gap:12px;}.pos-search{width:100%;}.pos-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .pos-item{min-height:165px;}.pos-item-visual{height:56px;}
  .cart-fab{left:12px;right:12px;width:auto;max-width:none;min-height:50px;border-radius:14px;justify-content:center;box-shadow:0 16px 34px rgba(37,99,235,.32);}
  .cart-drawer{border-radius:22px 22px 0 0;box-shadow:0 -24px 70px rgba(2,8,23,.3);}
  .modal{border-radius:22px 22px 14px 14px;padding:22px 18px;}
  .modal-actions{margin-inline:-18px;padding-inline:18px;}
}
@media(max-width:620px){
  .stats-grid{gap:10px;}.stat-card{min-height:118px;padding:14px 13px;border-radius:15px;}.stat-icon-wrap{width:34px;height:34px;margin-bottom:11px;}.stat-value{font-size:22px;}.stat-label{font-size:8.5px;}.stat-sub{font-size:9px;}
  .dashboard-alert{align-items:flex-start;}.dashboard-alert .btn{width:auto;flex:0 0 auto;}.dashboard-alert-copy span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  .dashboard-shortcuts{grid-template-columns:1fr;}.dashboard-shortcut{min-height:70px;}.dashboard-shortcut small{font-size:9px;}
  .activity-card-header{padding:13px 14px;}.activity-card-header .btn{width:auto;}.transaction-feed{padding-inline:10px;}.transaction-feed-item{grid-template-columns:34px minmax(0,1fr) auto;gap:9px;}.transaction-feed-icon{width:32px;height:32px;}.transaction-feed-total{grid-column:2/3;align-items:flex-start;text-align:left;flex-direction:row;gap:8px;}.transaction-feed-item>.icon-action{grid-column:3;grid-row:1/3;}.transaction-feed-main span{max-width:190px;}
  .pos-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.pos-item{min-height:158px;padding:10px;border-radius:14px;}.pos-item-visual{height:52px;margin-bottom:9px;}.pos-item-name{font-size:11px;min-height:30px;}.pos-item-price{font-size:13px;}.pos-stock-label{font-size:8px;}.pos-catalog-header h2{font-size:19px;}
  .promo-banner{align-items:flex-start;flex-wrap:wrap;}.promo-banner .btn{margin-left:42px;}
  .receipt-action{min-height:61px;}
  .table-card{border-radius:14px;}
}
@media(max-width:390px){
  .topbar h1{max-width:96px;}.topbar .avatar{width:32px;height:32px;}.dark-toggle-btn,.notif-btn,.topbar-hamburger{width:34px;height:34px;}
  .demo-banner-icon{display:none;}.demo-mode-banner{gap:6px;}.demo-banner-copy>span{-webkit-line-clamp:1;}.demo-reset-btn{min-width:58px!important;}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.stat-card{min-height:112px;padding:13px 11px;}.stat-value{font-size:20px;}
  .pos-products{padding-inline:10px;}.pos-grid{gap:8px;}.pos-item{min-height:151px;}.pos-item-visual{height:47px;}.pos-item-name{font-size:10.5px;}.pos-item-cat,.pos-stock-label{font-size:7.5px;}.pos-item-price{font-size:12px;}
}

/* =========================================================
   JagaBisnis v1.3 — inventory, shifts, profit, growth & backup
   ========================================================= */
:root{
  --success-soft:#ECFDF5;
  --warning-soft:#FFF7ED;
  --danger-soft:#FEF2F2;
  --purple-soft:#F5F3FF;
  --cyan-soft:#ECFEFF;
}
body.dark{
  --success-soft:rgba(16,185,129,.12);
  --warning-soft:rgba(245,158,11,.12);
  --danger-soft:rgba(239,68,68,.12);
  --purple-soft:rgba(139,92,246,.12);
  --cyan-soft:rgba(6,182,212,.12);
}
.section-eyebrow{display:block;margin-bottom:5px;color:var(--brand);font-size:9px;font-weight:800;letter-spacing:1.1px;text-transform:uppercase;}
.page-actions,.owner-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;}
.page-header>div:first-child{min-width:0;}.page-header p{max-width:720px;line-height:1.55;}
.text-success{color:#059669!important;}.text-danger{color:#DC2626!important;}
body.dark .text-success{color:#6EE7B7!important;}body.dark .text-danger{color:#FCA5A5!important;}
.field-label{margin-bottom:9px;color:var(--text2);font-size:10px;font-weight:800;letter-spacing:.65px;text-transform:uppercase;}
.field-hint{display:block;margin-top:6px;color:var(--text3);font-size:9.5px;line-height:1.45;}
.input-action-group{display:flex;align-items:center;gap:7px;}.input-action-group>input{flex:1;min-width:0;}.input-action-group>.btn{flex:0 0 auto;}
.money-field{min-height:44px;display:flex;align-items:center;border:1px solid var(--control-border);border-radius:11px;background:var(--control-bg);overflow:hidden;transition:var(--tr);}.money-field:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgba(37,99,235,.1);}.money-field>span{height:42px;padding:0 12px;display:flex;align-items:center;border-right:1px solid var(--control-border);background:var(--surface);color:var(--text2);font-size:11px;font-weight:800;}.money-field input{min-height:42px!important;border:0!important;border-radius:0!important;box-shadow:none!important;}
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:15px 0;}.detail-grid>div{padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);}.detail-grid small,.detail-grid strong{display:block;}.detail-grid small{margin-bottom:5px;color:var(--text3);font-size:9px;text-transform:uppercase;letter-spacing:.5px;}.detail-grid strong{font-size:12px;}.detail-note{padding:12px;border-radius:12px;background:var(--surface);}.detail-note strong{font-size:11px;}.detail-note p{margin-top:5px;color:var(--text2);font-size:11px;line-height:1.6;}

/* owner dashboard */
.owner-dashboard-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px;}.owner-dashboard-header h2{font-size:24px;letter-spacing:-.8px;}.owner-dashboard-header p{margin-top:5px;color:var(--text3);font-size:11px;}
.owner-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:14px;}.owner-kpi{position:relative;min-height:132px;padding:17px;display:flex;align-items:flex-start;gap:13px;overflow:hidden;border:1px solid var(--border);border-radius:18px;background:var(--white);box-shadow:var(--shadow);}.owner-kpi::after{content:"";position:absolute;right:-25px;bottom:-25px;width:95px;height:95px;border-radius:50%;background:currentColor;opacity:.04;}.owner-kpi>span{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:13px;flex:0 0 auto;}.owner-kpi>span svg{width:19px;height:19px;}.owner-kpi>div{min-width:0;display:flex;flex-direction:column;gap:5px;}.owner-kpi small{color:var(--text3);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.55px;}.owner-kpi strong{font-family:'Space Grotesk',sans-serif;font-size:21px;letter-spacing:-.5px;}.owner-kpi em{color:var(--text2);font-size:9.5px;font-style:normal;}.owner-kpi.primary{color:#2563EB}.owner-kpi.primary>span{background:#EFF6FF}.owner-kpi.success{color:#059669}.owner-kpi.success>span{background:#ECFDF5}.owner-kpi.warning{color:#D97706}.owner-kpi.warning>span{background:#FFF7ED}.owner-kpi.purple{color:#7C3AED}.owner-kpi.purple>span{background:#F5F3FF}body.dark .owner-kpi>span{background:rgba(255,255,255,.06)}
.owner-insight-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px;}.owner-insight-strip button{min-height:72px;padding:12px;display:grid;grid-template-columns:36px minmax(0,1fr) 16px;align-items:center;gap:10px;border:1px solid var(--border);border-radius:15px;background:var(--white);color:var(--text);text-align:left;cursor:pointer;transition:var(--tr);}.owner-insight-strip button:hover{border-color:#BFDBFE;transform:translateY(-1px);box-shadow:var(--shadow);}.owner-insight-strip button>span{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:var(--brand-light);color:var(--brand);}.owner-insight-strip button>span svg{width:16px;height:16px;}.owner-insight-strip button>div{min-width:0;}.owner-insight-strip strong,.owner-insight-strip small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.owner-insight-strip strong{font-size:11px;}.owner-insight-strip small{margin-top:4px;color:var(--text3);font-size:9px;}.owner-insight-strip button>svg{width:14px;height:14px;color:var(--text3);}
.owner-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:14px;margin-bottom:16px;}.analytics-card{border:1px solid var(--border);border-radius:18px;background:var(--white);box-shadow:var(--shadow);overflow:hidden;}.analytics-card-head{min-height:64px;padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);}.analytics-card-head h3{font-size:13px;}.analytics-card-head p{margin-top:3px;color:var(--text3);font-size:9.5px;}
.modern-bar-chart{height:230px;padding:24px 18px 10px;display:flex;align-items:flex-end;justify-content:space-between;gap:10px;}.modern-bar-column{height:100%;flex:1;min-width:0;display:grid;grid-template-rows:20px 1fr 18px;gap:7px;text-align:center;}.modern-bar-values{font-size:8px;color:var(--text3);white-space:nowrap;}.modern-bar-track{position:relative;height:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px;border-bottom:1px solid var(--border);}.modern-bar-track i,.modern-bar-track b{width:min(15px,35%);min-height:3px;border-radius:5px 5px 2px 2px;}.modern-bar-track i{background:linear-gradient(180deg,#60A5FA,#2563EB)}.modern-bar-track b{background:linear-gradient(180deg,#6EE7B7,#10B981)}.modern-bar-column small{font-size:8.5px;color:var(--text3);}.chart-legend{padding:0 18px 16px;display:flex;align-items:center;gap:16px;color:var(--text3);font-size:9px;}.chart-legend span{display:flex;align-items:center;gap:6px;}.chart-legend i{width:8px;height:8px;border-radius:3px;}.legend-revenue{background:#2563EB}.legend-profit{background:#10B981}
.top-product-list{padding:6px 14px 12px;}.top-product-list article{min-height:55px;display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:9px;border-bottom:1px solid var(--border);}.top-product-list article:last-child{border-bottom:0;}.rank-number{width:25px;height:25px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--surface);color:var(--text2);font-family:'Space Grotesk',sans-serif;font-size:10px;font-weight:800;}.top-product-list article>div{min-width:0;}.top-product-list strong,.top-product-list small{display:block;}.top-product-list article>div strong{font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.top-product-list small{margin-top:3px;color:var(--text3);font-size:8.5px;}.top-product-list article>strong{font-size:10.5px;}
.owner-activity-card{border:1px solid var(--border);border-radius:18px;background:var(--white);box-shadow:var(--shadow);}.transaction-feed-total small{color:var(--text3);font-size:8.5px;}.owner-summary-footer{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}.owner-summary-footer>div{padding:14px 16px;border:1px solid var(--border);border-radius:14px;background:var(--surface);}.owner-summary-footer small,.owner-summary-footer strong{display:block;}.owner-summary-footer small{color:var(--text3);font-size:9px;}.owner-summary-footer strong{margin-top:5px;font-family:'Space Grotesk',sans-serif;font-size:16px;}

/* products */
.product-toolbar{min-height:54px;margin-bottom:14px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--border);border-radius:14px;background:var(--white);}.table-filter{min-height:38px;min-width:250px;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid var(--control-border);border-radius:10px;background:var(--control-bg);}.table-filter svg{width:14px;height:14px;color:var(--text3);}.table-filter input{width:100%;border:0;outline:0;background:transparent;color:var(--control-text);font:inherit;font-size:11px;}.product-toolbar-summary{color:var(--text2);font-size:10px;}.product-toolbar-summary span{display:flex;align-items:center;gap:6px;}.product-toolbar-summary svg{width:14px;height:14px;color:var(--brand);}
.modern-product-grid{grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:13px;}.modern-product-card{padding:0;display:grid;grid-template-rows:150px 1fr;overflow:hidden;border:1px solid var(--border);border-radius:18px;background:var(--white);box-shadow:var(--shadow);}.product-thumb{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(135deg,var(--surface),var(--brand-light));}.product-thumb img{width:100%;height:100%;object-fit:cover;}.product-thumb>span{width:60px;height:60px;display:flex;align-items:center;justify-content:center;border-radius:18px;background:color-mix(in srgb,var(--product-accent) 16%,var(--white));color:var(--product-accent);font-family:'Space Grotesk',sans-serif;font-size:19px;font-weight:800;}.product-thumb.small{width:42px;height:42px;flex:0 0 auto;border-radius:12px;}.product-thumb.small>span{width:100%;height:100%;border-radius:12px;font-size:11px;}.modern-product-content{padding:14px;}.product-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;}.modern-product-content h3{margin-top:9px;font-size:14px;line-height:1.4;}.product-code{margin-top:3px;color:var(--text3);font-size:9px;}.product-finance-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:13px 0;}.product-finance-grid>div{padding:9px;border-radius:10px;background:var(--surface);}.product-finance-grid small,.product-finance-grid strong{display:block;}.product-finance-grid small{color:var(--text3);font-size:8px;}.product-finance-grid strong{margin-top:4px;font-size:10.5px;}.modern-product-card .product-actions{padding-top:11px;border-top:1px solid var(--border);}.icon-action.danger:hover{border-color:#FECACA;background:#FEF2F2;color:#DC2626;}
.product-editor-layout{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;}.product-photo-editor{display:flex;flex-direction:column;align-items:center;gap:9px;}.product-photo-preview{width:140px;aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;overflow:hidden;border:1px dashed var(--control-border);border-radius:16px;background:var(--surface);color:var(--text3);}.product-photo-preview img{width:100%;height:100%;object-fit:cover;}.product-photo-preview svg{width:26px;height:26px;}.product-photo-preview p{font-size:9px;}.product-photo-editor small{color:var(--text3);font-size:8.5px;text-align:center;line-height:1.4;}.product-photo-button{position:relative;cursor:pointer;}.product-editor-fields{min-width:0;}.profit-preview{min-height:50px;margin:0 0 13px;padding:10px 12px;display:flex;align-items:center;gap:10px;border-radius:12px;background:var(--success-soft);color:#047857;}.profit-preview>span{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:rgba(16,185,129,.13);}.profit-preview svg{width:15px;height:15px;}.profit-preview small,.profit-preview strong{display:block;}.profit-preview small{font-size:8.5px;}.profit-preview strong{margin-top:3px;font-size:11px;}.profit-preview em{font-size:9px;font-style:normal;font-weight:600;}

/* inventory */
.inventory-stats{margin-bottom:16px;}.inventory-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(330px,.95fr);gap:14px;}.inventory-product-panel,.stock-history-panel{overflow:hidden;}.table-header p{margin-top:3px;color:var(--text3);font-size:9.5px;}.inventory-product-list,.stock-timeline{padding:5px 14px 12px;}.inventory-product-row{min-height:65px;display:grid;grid-template-columns:42px minmax(0,1fr) 62px 95px auto;align-items:center;gap:10px;border-bottom:1px solid var(--border);}.inventory-product-row:last-child{border-bottom:0;}.inventory-product-copy{min-width:0;}.inventory-product-copy strong,.inventory-product-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.inventory-product-copy strong{font-size:11px;}.inventory-product-copy span{margin-top:4px;color:var(--text3);font-size:8.5px;}.inventory-stock-value{display:grid;grid-template-columns:8px auto;column-gap:5px;align-items:center;}.inventory-stock-value strong{font-family:'Space Grotesk',sans-serif;font-size:14px;}.inventory-stock-value small{grid-column:2;color:var(--text3);font-size:8px;}.stock-dot{width:7px;height:7px;border-radius:50%;}.stock-dot.is-success{background:#10B981}.stock-dot.is-warning{background:#F59E0B}.stock-dot.is-danger{background:#EF4444}.inventory-cost small,.inventory-cost strong{display:block;}.inventory-cost small{color:var(--text3);font-size:8px;}.inventory-cost strong{margin-top:4px;font-size:10px;}.stock-timeline-item{min-height:68px;display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;border-bottom:1px solid var(--border);}.stock-timeline-item:last-child{border-bottom:0;}.stock-timeline-icon{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:10px;}.stock-timeline-icon svg{width:15px;height:15px;}.tone-success{background:var(--success-soft);color:#059669}.tone-danger{background:var(--danger-soft);color:#DC2626}.tone-warning{background:var(--warning-soft);color:#D97706}.tone-info{background:#EFF6FF;color:#2563EB}.tone-neutral{background:var(--surface);color:var(--text2)}.stock-timeline-copy{min-width:0;}.stock-timeline-copy strong,.stock-timeline-copy span,.stock-timeline-copy small{display:block;}.stock-timeline-copy strong{font-size:10.5px;}.stock-timeline-copy span{margin-top:3px;color:var(--text2);font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.stock-timeline-copy small{margin-top:3px;color:var(--text3);font-size:7.5px;}.stock-timeline-qty{text-align:right;}.stock-timeline-qty strong,.stock-timeline-qty small{display:block;}.stock-timeline-qty strong{font-family:'Space Grotesk',sans-serif;font-size:13px;}.stock-timeline-qty small{margin-top:3px;color:var(--text3);font-size:8px;}.stock-timeline-qty.positive strong{color:#059669}.stock-timeline-qty.negative strong{color:#DC2626}.stock-current-info{padding:10px 12px;border-radius:10px;background:var(--surface);color:var(--text2);font-size:10.5px;}.stock-current-info strong{color:var(--text);}
.import-dropzone{min-height:140px;padding:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:1px dashed #93C5FD;border-radius:15px;background:#F8FBFF;color:var(--brand);cursor:pointer;transition:var(--tr);}.import-dropzone:hover{border-color:var(--brand);background:var(--brand-light);}.import-dropzone>span svg{width:30px;height:30px;}.import-dropzone strong{font-size:12px;}.import-dropzone small{color:var(--text3);font-size:9px;}.import-summary{margin:12px 0 8px;display:flex;gap:8px;}.import-summary span{min-height:34px;padding:0 10px;display:inline-flex;align-items:center;gap:5px;border-radius:10px;font-size:9px;}.import-summary svg{width:13px;height:13px;}.import-summary .is-valid{background:var(--success-soft);color:#047857}.import-summary .is-invalid{background:var(--danger-soft);color:#B91C1C}.import-preview-list{max-height:250px;overflow-y:auto;border:1px solid var(--border);border-radius:12px;}.import-preview-row{min-height:44px;padding:7px 9px;display:grid;grid-template-columns:24px minmax(0,1fr) 80px minmax(80px,auto);align-items:center;gap:8px;border-bottom:1px solid var(--border);font-size:9px;}.import-preview-row:last-child{border-bottom:0;}.import-preview-row>span:first-child{color:var(--text3);}.import-preview-row>strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.import-preview-row small{color:#059669;}.import-preview-row.has-error{background:var(--danger-soft)}.import-preview-row.has-error small{color:#DC2626}.import-more{padding:10px;text-align:center;color:var(--text3);font-size:9px;}

/* shift */
.shift-hero{min-height:104px;margin-bottom:14px;padding:17px;display:grid;grid-template-columns:50px minmax(0,1fr) auto auto;align-items:center;gap:15px;border:1px solid #A7F3D0;border-radius:18px;background:linear-gradient(135deg,#ECFDF5,#F0FDFA);}.shift-hero-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:15px;background:#D1FAE5;color:#047857;}.shift-hero-icon svg{width:21px;height:21px;}.shift-hero-copy h3{margin-top:7px;font-size:14px;}.shift-hero-copy p{margin-top:3px;color:#047857;font-size:9px;}.shift-hero-metric{min-width:110px;padding-left:15px;border-left:1px solid #A7F3D0;}.shift-hero-metric small,.shift-hero-metric strong{display:block;}.shift-hero-metric small{color:#047857;font-size:8px;}.shift-hero-metric strong{margin-top:5px;font-family:'Space Grotesk',sans-serif;font-size:15px;color:#064E3B;}.shift-empty-card{min-height:220px;margin-bottom:14px;padding:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed var(--border);border-radius:18px;background:var(--white);}.shift-empty-card>span{width:52px;height:52px;display:flex;align-items:center;justify-content:center;border-radius:16px;background:var(--brand-light);color:var(--brand);}.shift-empty-card>span svg{width:23px;height:23px;}.shift-empty-card h3{margin-top:14px;font-size:15px;}.shift-empty-card p{max-width:460px;margin:7px 0 16px;color:var(--text2);font-size:10.5px;line-height:1.6;}.shift-list{padding:5px 14px 12px;}.shift-row{min-height:68px;display:grid;grid-template-columns:36px minmax(0,1fr) repeat(3,minmax(75px,auto)) auto 34px;align-items:center;gap:10px;border-bottom:1px solid var(--border);}.shift-row:last-child{border-bottom:0;}.shift-row-icon{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:var(--surface);color:var(--text2);}.shift-row-icon.is-open{background:var(--success-soft);color:#059669}.shift-row-icon svg{width:15px;height:15px;}.shift-row-main{min-width:0;}.shift-row-main strong,.shift-row-main span{display:block;}.shift-row-main strong{font-size:10.5px;}.shift-row-main span{margin-top:4px;color:var(--text3);font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.shift-row-metric small,.shift-row-metric strong{display:block;}.shift-row-metric small{color:var(--text3);font-size:8px;}.shift-row-metric strong{margin-top:4px;font-size:10px;}.shift-open-preview{padding:12px;display:grid;grid-template-columns:34px 1fr 1fr;align-items:center;gap:10px;border-radius:12px;background:var(--surface);}.shift-open-preview>span{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:var(--brand-light);color:var(--brand);}.shift-open-preview small,.shift-open-preview strong{display:block;}.shift-open-preview small{color:var(--text3);font-size:8px;}.shift-open-preview strong{margin-top:3px;font-size:10px;}.shift-close-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px;}.shift-close-summary>div{padding:11px;border-radius:11px;background:var(--surface);}.shift-close-summary>div.is-total{background:var(--brand-light);color:var(--brand)}.shift-close-summary small,.shift-close-summary strong{display:block;}.shift-close-summary small{font-size:8px;}.shift-close-summary strong{margin-top:5px;font-size:11px;}.shift-difference{margin-top:9px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;border-radius:10px;background:var(--surface);font-size:10px;}.shift-difference.is-balanced{background:var(--success-soft);color:#047857}.shift-difference.has-difference{background:var(--warning-soft);color:#B45309}

/* POS upgrade */
.pos-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;}.pos-header-actions .pos-search{width:min(390px,42vw);}.barcode-scan-button{min-height:44px;}.pos-shift-status{min-height:54px;margin-bottom:13px;padding:10px 12px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;border-radius:14px;}.pos-shift-status>span{width:33px;height:33px;display:flex;align-items:center;justify-content:center;border-radius:10px;}.pos-shift-status svg{width:15px;height:15px;}.pos-shift-status strong,.pos-shift-status small{display:block;}.pos-shift-status strong{font-size:10.5px;}.pos-shift-status small{margin-top:3px;font-size:8.5px;}.pos-shift-status.is-open{background:var(--success-soft);color:#047857}.pos-shift-status.is-open>span{background:rgba(16,185,129,.13)}.pos-shift-status.is-closed{background:var(--warning-soft);color:#B45309}.pos-shift-status.is-closed>span{background:rgba(245,158,11,.13)}.pos-item-visual.has-image{background:var(--surface);}.pos-item-visual.has-image img{width:100%;height:100%;object-fit:cover;}.three-methods{grid-template-columns:repeat(3,minmax(0,1fr));}.pay-method-card{border:1px solid var(--border);background:var(--white);}.pay-method-card.is-disabled{opacity:.45;cursor:not-allowed;}.pay-detail-panel{margin-top:12px;padding:13px;border:1px solid var(--border);border-radius:13px;background:var(--surface);}.pay-detail-panel[hidden]{display:none!important;}.qris-payment-panel{text-align:center;}.qris-payment-panel img{width:min(230px,70%);max-height:260px;margin:0 auto 10px;object-fit:contain;border-radius:12px;background:#fff;}.qris-payment-panel p{color:var(--text2);font-size:10px;line-height:1.5;}.barcode-scanner-shell{display:grid;gap:12px;}.barcode-camera{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;overflow:hidden;border:1px dashed var(--border);border-radius:15px;background:#071A42;color:#fff;text-align:center;}.barcode-camera>span svg{width:38px;height:38px;}.barcode-camera p{max-width:320px;color:rgba(255,255,255,.68);font-size:10px;line-height:1.5;}.barcode-camera video{width:100%;max-height:260px;object-fit:cover;}

/* transaction & reports */
.filter-chip-row{display:flex;align-items:center;gap:7px;margin-bottom:13px;overflow-x:auto;scrollbar-width:none;}.filter-chip-row::-webkit-scrollbar{display:none}.filter-chip{min-height:34px;padding:0 13px;border:1px solid var(--border);border-radius:999px;background:var(--white);color:var(--text2);font:inherit;font-size:10px;font-weight:700;white-space:nowrap;cursor:pointer;}.filter-chip.active{border-color:var(--brand);background:var(--brand-light);color:var(--brand)}.transaction-management-list{border:1px solid var(--border);border-radius:17px;background:var(--white);box-shadow:var(--shadow);overflow:hidden;}.transaction-management-row{min-height:72px;padding:10px 13px;display:grid;grid-template-columns:38px minmax(0,1.35fr) repeat(4,minmax(75px,.7fr)) auto 34px;align-items:center;gap:10px;border-bottom:1px solid var(--border);}.transaction-management-row:last-child{border-bottom:0;}.transaction-method-icon{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:var(--brand-light);color:var(--brand);}.transaction-method-icon svg{width:16px;height:16px;}.transaction-management-row>div small,.transaction-management-row>div strong{display:block;}.transaction-management-row>div small{color:var(--text3);font-size:8px;}.transaction-management-row>div strong{margin-top:4px;font-size:10px;}.transaction-main{min-width:0;}.transaction-main>strong{font-size:11px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.transaction-main>span{display:block;margin-top:4px;color:var(--text3);font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.finance-stat{min-height:120px;padding:15px;border:1px solid var(--border);border-radius:16px;background:var(--white);box-shadow:var(--shadow);}.finance-stat>span{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:var(--brand-light);color:var(--brand);}.finance-stat>span svg{width:17px;height:17px;}.finance-stat small,.finance-stat strong{display:block;}.finance-stat small{margin-top:12px;color:var(--text3);font-size:8.5px;text-transform:uppercase;letter-spacing:.5px;}.finance-stat strong{margin-top:5px;font-family:'Space Grotesk',sans-serif;font-size:19px;}.finance-stat.is-profit>span{background:var(--success-soft);color:#059669}.product-performance-grid{display:grid;gap:9px;}.product-performance-grid>article{min-height:74px;padding:11px 13px;display:grid;grid-template-columns:28px 42px minmax(0,1.2fr) minmax(90px,.7fr) minmax(90px,.7fr) minmax(100px,.8fr);align-items:center;gap:10px;border:1px solid var(--border);border-radius:14px;background:var(--white);box-shadow:var(--shadow);}.product-performance-copy{min-width:0;}.product-performance-copy strong,.product-performance-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.product-performance-copy strong{font-size:11px;}.product-performance-copy span{margin-top:4px;color:var(--text3);font-size:8.5px;}.product-performance-grid article>div small,.product-performance-grid article>div strong{display:block;}.product-performance-grid article>div small{color:var(--text3);font-size:8px;}.product-performance-grid article>div strong{margin-top:4px;font-size:10px;}.product-performance-bar{position:relative;height:7px;border-radius:999px;background:var(--surface);overflow:visible;}.product-performance-bar i{display:block;height:100%;border-radius:999px;background:#10B981}.product-performance-bar span{position:absolute;right:0;top:-18px;color:var(--text3);font-size:8px;}

/* customer growth */
.growth-tabs{margin-bottom:14px;}.growth-content{min-height:240px;}.customer-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:12px;}.customer-growth-card{padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--white);box-shadow:var(--shadow);}.customer-growth-head{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;}.customer-avatar-modern{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:linear-gradient(135deg,#2563EB,#06B6D4);color:#fff;font-family:'Space Grotesk',sans-serif;font-size:11px;font-weight:800;}.customer-growth-head>div{min-width:0;}.customer-growth-head strong,.customer-growth-head span{display:block;}.customer-growth-head>div strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.customer-growth-head>div span{margin-top:4px;color:var(--text3);font-size:8.5px;}.loyalty-badge{min-height:24px;padding:0 8px;display:inline-flex!important;align-items:center;gap:4px;border-radius:999px;font-size:8.5px;font-weight:800;}.loyalty-badge svg{width:11px;height:11px;}.tier-vip{background:#FFF7ED;color:#C2410C}.tier-loyal{background:#F5F3FF;color:#7C3AED}.tier-aktif{background:#ECFDF5;color:#047857}.tier-baru{background:#EFF6FF;color:#2563EB}.customer-growth-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:13px 0;}.customer-growth-metrics>div{padding:8px;border-radius:9px;background:var(--surface);}.customer-growth-metrics small,.customer-growth-metrics strong{display:block;}.customer-growth-metrics small{color:var(--text3);font-size:7.5px;}.customer-growth-metrics strong{margin-top:4px;font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.customer-reminder-note{padding:8px 9px;display:flex;align-items:center;gap:6px;border-radius:9px;background:var(--warning-soft);color:#B45309;font-size:8.5px;}.customer-reminder-note svg{width:13px;height:13px;}.customer-growth-actions{margin-top:11px;display:flex;gap:7px;}.customer-growth-actions .btn{flex:1;}.reminder-toolbar{min-height:56px;margin-bottom:12px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:13px;background:var(--warning-soft);color:#B45309;}.reminder-toolbar>div{display:flex;align-items:center;gap:8px;font-size:9.5px;}.reminder-toolbar svg{width:16px;height:16px;}.promo-campaign-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px;}.promo-campaign-card{padding:16px;display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;border:1px solid var(--border);border-radius:16px;background:var(--white);box-shadow:var(--shadow);}.promo-campaign-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:var(--purple-soft);color:#7C3AED}.promo-campaign-icon svg{width:18px;height:18px;}.promo-campaign-card>div small{color:var(--text3);font-size:8px;}.promo-campaign-card h3{margin-top:5px;font-size:13px;}.promo-campaign-card p{margin:6px 0;color:var(--text2);font-size:9.5px;line-height:1.5;}.promo-campaign-card>div strong{font-size:9.5px;color:#7C3AED}.promo-campaign-card>.btn{grid-column:1/-1}.broadcast-audience-preview,.broadcast-queue-summary{min-height:48px;padding:10px 12px;display:flex;align-items:center;gap:9px;border-radius:11px;background:var(--brand-light);color:var(--brand);}.broadcast-audience-preview svg,.broadcast-queue-summary>span svg{width:17px;height:17px;}.broadcast-audience-preview span,.broadcast-queue-summary div{font-size:9.5px;}.broadcast-queue-summary strong,.broadcast-queue-summary small{display:block;}.broadcast-queue-summary small{margin-top:3px;color:var(--text2);font-size:8.5px;}.broadcast-queue{max-height:360px;margin-top:10px;overflow-y:auto;border:1px solid var(--border);border-radius:12px;}.broadcast-queue article{min-height:56px;padding:8px 10px;display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:9px;border-bottom:1px solid var(--border);}.broadcast-queue article:last-child{border-bottom:0;}.broadcast-queue article.is-sent{background:var(--success-soft)}.broadcast-queue strong,.broadcast-queue small{display:block;}.broadcast-queue strong{font-size:10px;}.broadcast-queue small{margin-top:3px;color:var(--text3);font-size:8px;}

/* settings & backup */
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}.settings-card{padding:17px;border:1px solid var(--border);border-radius:17px;background:var(--white);box-shadow:var(--shadow);}.settings-card-head{display:flex;align-items:flex-start;gap:11px;margin-bottom:15px;}.settings-card-head>span{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:var(--brand-light);color:var(--brand);}.settings-card-head>span svg{width:19px;height:19px;}.settings-card-head h3{font-size:13px;}.settings-card-head p{margin-top:4px;color:var(--text3);font-size:9px;line-height:1.45;}.qris-preview{min-height:220px;margin-bottom:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;overflow:hidden;border:1px dashed var(--border);border-radius:14px;background:var(--surface);color:var(--text3);}.qris-preview>span svg{width:34px;height:34px;}.qris-preview p{font-size:9px;}.qris-preview.has-image{background:#fff}.qris-preview img{width:100%;height:100%;max-height:320px;object-fit:contain;}.backup-hero{min-height:110px;margin-bottom:14px;padding:18px;display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:14px;border-radius:18px;background:linear-gradient(135deg,#071A42,#1746A2);color:#fff;}.backup-hero>span{width:52px;height:52px;display:flex;align-items:center;justify-content:center;border-radius:15px;background:rgba(255,255,255,.12);}.backup-hero>span svg{width:24px;height:24px;}.backup-hero h3{font-size:15px;}.backup-hero p{margin-top:5px;color:rgba(255,255,255,.65);font-size:9.5px;line-height:1.5;}.backup-data-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:14px;}.backup-data-grid>div{min-height:94px;padding:12px;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:14px;background:var(--white);box-shadow:var(--shadow);}.backup-data-grid span{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:var(--brand-light);color:var(--brand);}.backup-data-grid span svg{width:14px;height:14px;}.backup-data-grid small{margin-top:10px;color:var(--text3);font-size:8px;}.backup-data-grid strong{margin-top:4px;font-family:'Space Grotesk',sans-serif;font-size:17px;}.backup-options-card{margin-bottom:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;}.backup-options-card .settings-card-head{margin:0;}

@media(max-width:1200px){
  .owner-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.owner-dashboard-grid{grid-template-columns:1fr;}.inventory-layout{grid-template-columns:1fr;}.backup-data-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.transaction-management-row{grid-template-columns:38px minmax(0,1.2fr) repeat(3,minmax(70px,.7fr)) auto 34px;}.transaction-management-row>div:nth-of-type(4){display:none;}.shift-row{grid-template-columns:36px minmax(0,1fr) repeat(2,minmax(75px,auto)) auto 34px;}.shift-row>.shift-row-metric:nth-of-type(3){display:none;}
}
@media(max-width:900px){
  .owner-insight-strip{grid-template-columns:1fr;}.settings-grid{grid-template-columns:1fr;}.modern-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.product-performance-grid>article{grid-template-columns:28px 42px minmax(0,1fr) minmax(85px,.7fr) minmax(100px,.8fr);}.product-performance-grid>article>div:nth-of-type(3){display:none;}.transaction-management-row{grid-template-columns:38px minmax(0,1fr) minmax(90px,.6fr) auto 34px;}.transaction-management-row>div:nth-of-type(2),.transaction-management-row>div:nth-of-type(3),.transaction-management-row>div:nth-of-type(4){display:none;}.shift-hero{grid-template-columns:44px minmax(0,1fr) auto;}.shift-hero-metric:last-child{display:none;}.shift-row{grid-template-columns:36px minmax(0,1fr) minmax(80px,auto) auto 34px;}.shift-row>.shift-row-metric:nth-of-type(2){display:none;}
}
@media(max-width:768px){
  .owner-dashboard-header,.product-page-header,.inventory-page-header,.growth-page-header,.shift-page-header{align-items:flex-start;flex-direction:column;}.owner-header-actions,.page-actions{width:100%;justify-content:flex-start;}.owner-header-actions .btn,.page-actions .btn{flex:1;}.owner-kpi-grid{gap:9px;}.owner-kpi{min-height:115px;padding:13px;}.owner-kpi>span{width:35px;height:35px;border-radius:11px;}.owner-kpi strong{font-size:18px;}.owner-summary-footer{grid-template-columns:1fr;}.modern-bar-chart{height:190px;padding-inline:10px;gap:5px;}.top-product-card{min-width:0;}.product-toolbar{align-items:stretch;flex-direction:column;}.table-filter{width:100%;min-width:0;}.modern-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.modern-product-card{grid-template-rows:118px 1fr;}.product-editor-layout{grid-template-columns:1fr;}.product-photo-editor{display:grid;grid-template-columns:105px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;justify-items:start;}.product-photo-preview{grid-row:1/3;width:105px;}.product-photo-editor small{text-align:left;}.inventory-product-row{grid-template-columns:40px minmax(0,1fr) 50px auto;}.inventory-cost{display:none;}.shift-hero{padding:13px;}.shift-hero-metric{display:none;}.shift-current-stats{grid-template-columns:repeat(2,minmax(0,1fr));}.shift-row{grid-template-columns:34px minmax(0,1fr) auto 32px;}.shift-row-metric{display:none!important;}.backup-hero{grid-template-columns:44px minmax(0,1fr);}.backup-hero>.btn{grid-column:1/-1;width:100%;}.backup-data-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.backup-options-card{align-items:flex-start;flex-direction:column;}.backup-options-card>.btn{width:100%;}.pos-header-actions{width:100%;display:grid;grid-template-columns:auto 1fr;}.pos-header-actions .pos-search{width:100%;}.barcode-scan-button{padding-inline:12px;font-size:0;}.barcode-scan-button svg{margin:0;width:18px;height:18px;}.three-methods{grid-template-columns:repeat(3,minmax(0,1fr));}.pay-method-card{padding-inline:6px;}.pay-method-card small{font-size:7.5px;}.customer-card-grid,.promo-campaign-grid{grid-template-columns:1fr;}.transaction-management-row{grid-template-columns:36px minmax(0,1fr) auto 32px;}.transaction-management-row>div:not(.transaction-main){display:none!important;}.transaction-management-row>.status-chip{display:none;}.product-performance-grid>article{grid-template-columns:26px 40px minmax(0,1fr) minmax(80px,.7fr);}.product-performance-grid>article>div:nth-of-type(4){display:none;}.product-performance-bar{display:none;}
}
@media(max-width:560px){
  .owner-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.owner-kpi{display:block;}.owner-kpi>span{margin-bottom:10px;}.owner-kpi small{font-size:7.5px;}.owner-kpi strong{font-size:16px;}.owner-insight-strip button{grid-template-columns:34px minmax(0,1fr) 14px;}.modern-product-grid{grid-template-columns:1fr;}.modern-product-card{grid-template-columns:112px minmax(0,1fr);grid-template-rows:auto;}.modern-product-content{padding:12px;}.product-finance-grid{grid-template-columns:1fr 1fr;}.product-finance-grid>div{padding:7px;}.product-actions{flex-wrap:wrap;}.product-actions .btn{flex:1;}.product-thumb{min-height:100%;}.inventory-product-row{grid-template-columns:38px minmax(0,1fr) auto;}.inventory-stock-value{display:none;}.inventory-product-row>.btn{padding-inline:9px;font-size:0;}.inventory-product-row>.btn svg{margin:0;}.import-preview-row{grid-template-columns:22px minmax(0,1fr) 68px;}.import-preview-row small{grid-column:2/-1;}.shift-close-summary{grid-template-columns:1fr;}.detail-grid{grid-template-columns:1fr;}.backup-data-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.three-methods{gap:6px;}.pay-method-card{min-height:88px;}.pay-method-card .pay-icon-wrap{width:32px;height:32px;}.pay-method-card strong{font-size:9px;}.customer-growth-metrics{gap:4px;}.customer-growth-actions{flex-direction:column;}.reminder-toolbar{align-items:flex-start;flex-direction:column;}.reminder-toolbar .btn{width:100%;}.settings-card{padding:14px;}.qris-preview{min-height:190px;}
}
@media(max-width:390px){
  .owner-kpi{min-height:108px;padding:11px;}.owner-kpi em{font-size:8px;}.modern-bar-values{display:none;}.modern-bar-column{grid-template-rows:1fr 18px;}.owner-insight-strip strong{font-size:10px;}.modern-product-card{grid-template-columns:95px minmax(0,1fr);}.product-finance-grid>div:nth-child(2),.product-finance-grid>div:nth-child(4){display:none;}.product-photo-editor{grid-template-columns:90px minmax(0,1fr);}.product-photo-preview{width:90px;}.pos-header-actions{grid-template-columns:42px minmax(0,1fr);}.backup-data-grid{gap:7px;}.backup-data-grid>div{min-height:86px;padding:10px;}.broadcast-queue article{grid-template-columns:32px minmax(0,1fr) auto;}.broadcast-queue .customer-avatar-modern{width:32px;height:32px;}
}

/* Critical mobile POS layout: keep catalogue full-width below 768px. */
@media(max-width:768px){
  .upgraded-pos-layout,
  .pos-layout{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .upgraded-pos-layout>.pos-products{
    width:100%;
    min-width:0;
  }
  .pos-catalog-header,
  .pos-header-actions,
  .pos-shift-status,
  .pos-cats,
  .promo-banner,
  .pos-grid{
    min-width:0;
    max-width:100%;
  }
}

/* =========================================================
   FEATURE CONTROL — SUPER ADMIN / PER BUSINESS
   ========================================================= */
.feature-page-header{align-items:flex-end}
.feature-control-notice{
  display:flex;align-items:flex-start;gap:12px;margin-bottom:18px;padding:14px 16px;
  border:1px solid color-mix(in srgb,var(--brand) 35%,var(--border));border-radius:14px;
  background:color-mix(in srgb,var(--brand-light) 68%,var(--white));color:var(--text)
}
.feature-control-notice>span{width:36px;height:36px;display:grid;place-items:center;flex:0 0 36px;border-radius:10px;background:var(--brand);color:#fff}
.feature-control-notice>span svg{width:18px;height:18px}
.feature-control-notice strong{display:block;font-size:13px;margin-bottom:3px}
.feature-control-notice p{margin:0;color:var(--text2);font-size:12px;line-height:1.55}
.feature-control-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.feature-control-toolbar>span{color:var(--text3);font-size:12px;font-weight:600}
.feature-business-list{display:grid;gap:18px}
.feature-business-card{overflow:hidden;border:1px solid var(--border);border-radius:18px;background:var(--white);box-shadow:var(--shadow)}
.feature-business-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 75%,var(--white)),var(--white))}
.feature-business-identity{display:flex;align-items:center;gap:12px;min-width:0}
.business-status-dot{width:10px;height:10px;border-radius:50%;background:var(--text3);box-shadow:0 0 0 4px color-mix(in srgb,var(--text3) 15%,transparent)}
.business-status-dot.is-active{background:var(--accent2);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent2) 16%,transparent)}
.feature-business-identity h3{margin:0;font-size:16px;line-height:1.25;color:var(--text)}
.feature-business-identity p{margin:4px 0 0;color:var(--text3);font-size:11px}
.feature-preset-control{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.feature-preset-control label{font-size:10px;font-weight:800;letter-spacing:.45px;text-transform:uppercase;color:var(--text3)}
.feature-preset-control select{min-width:150px;height:36px;padding:0 34px 0 10px;border:1px solid var(--control-border);border-radius:9px;background:var(--control-bg);color:var(--control-text);font-size:12px}
.feature-business-body{padding:18px 20px 22px}
.feature-group+.feature-group{margin-top:20px;padding-top:18px;border-top:1px solid var(--border)}
.feature-group-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.feature-group-heading h4{margin:0;color:var(--text2);font-size:11px;font-weight:800;letter-spacing:.55px;text-transform:uppercase}
.feature-group-heading span{color:var(--text3);font-size:10px;font-weight:700}
.feature-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.feature-module-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:start;gap:11px;min-height:112px;padding:14px;border:1px solid var(--border);border-radius:13px;background:var(--surface);transition:border-color .2s ease,background .2s ease,transform .2s ease,box-shadow .2s ease}
.feature-module-card:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--brand) 35%,var(--border));box-shadow:0 8px 22px rgba(15,23,42,.06)}
.feature-module-card.is-enabled{border-color:color-mix(in srgb,var(--brand) 35%,var(--border));background:color-mix(in srgb,var(--brand-light) 35%,var(--white))}
.feature-module-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;color:var(--text3);background:var(--white);border:1px solid var(--border)}
.feature-module-icon svg{width:19px;height:19px}
.feature-module-icon.is-active{color:var(--brand);background:var(--brand-light);border-color:color-mix(in srgb,var(--brand) 28%,var(--border))}
.feature-module-copy{min-width:0}
.feature-module-copy>strong{display:block;color:var(--text);font-size:12px;line-height:1.35}
.feature-module-copy>p{margin:5px 0 8px;color:var(--text3);font-size:10.5px;line-height:1.5}
.feature-status{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:800}
.feature-status svg{width:12px;height:12px}
.feature-status.is-on{color:var(--accent2)}
.feature-status.is-off{color:var(--text3)}
.feature-module-card .toggle-switch{margin-top:4px}
.feature-unavailable{min-height:min(520px,calc(100vh - 150px));display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px;border:1px dashed var(--border);border-radius:18px;background:var(--white)}
.feature-unavailable>span{width:58px;height:58px;display:grid;place-items:center;margin-bottom:16px;border-radius:16px;color:var(--brand);background:var(--brand-light)}
.feature-unavailable>span svg{width:25px;height:25px}
.feature-unavailable h2{margin:0 0 7px;font-size:20px}
.feature-unavailable p{max-width:480px;margin:0 0 18px;color:var(--text2);font-size:13px;line-height:1.65}
.product-finance-grid.is-simple{grid-template-columns:1fr}
#cartDrawer .cust-fields[hidden]{display:none!important}

body.dark .feature-business-header{background:linear-gradient(180deg,#172033,var(--white))}
body.dark .feature-module-card.is-enabled{background:color-mix(in srgb,var(--brand) 12%,var(--white))}
body.dark .feature-control-notice{background:color-mix(in srgb,var(--brand) 12%,var(--white))}

@media(max-width:900px){
  .feature-module-grid{grid-template-columns:1fr}
  .feature-business-header{align-items:flex-start;flex-direction:column}
  .feature-preset-control{width:100%;justify-content:flex-start}
}
@media(max-width:600px){
  .feature-control-toolbar{align-items:flex-start;flex-direction:column}
  .feature-control-toolbar .filter-chip-row{width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px}
  .feature-business-header,.feature-business-body{padding:15px}
  .feature-preset-control{display:grid;grid-template-columns:1fr auto}
  .feature-preset-control label{grid-column:1/-1}
  .feature-preset-control select{width:100%;min-width:0}
  .feature-module-card{grid-template-columns:38px minmax(0,1fr) auto;padding:12px;min-height:104px}
  .feature-module-icon{width:38px;height:38px}
  .feature-control-notice{padding:12px}
}

/* ── APP / CONSOLE SCOPE HELPERS ── */
.login-scope-badge{
  width:max-content;max-width:100%;min-height:30px;margin:0 auto 14px;padding:0 11px;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  border:1px solid rgba(255,255,255,.14);border-radius:999px;
  color:rgba(255,255,255,.8);background:rgba(255,255,255,.075);
  font-size:10px;font-weight:800;letter-spacing:.35px;text-transform:uppercase;
}
.login-scope-badge svg{width:14px;height:14px;stroke:currentColor}
.sidebar-brand-copy{min-width:0;display:flex;flex-direction:column;gap:1px;color:#fff;line-height:1.05}
.sidebar-brand-copy strong{font-size:13px;font-weight:800;letter-spacing:-.3px;white-space:nowrap}
.sidebar-brand-copy small{color:rgba(255,255,255,.46);font-size:8px;font-weight:700;letter-spacing:.55px;text-transform:uppercase;white-space:nowrap}
.startup-banner{font-size:11px;padding:10px 12px;border-radius:10px;margin-bottom:14px;border:1px solid #F59E0B55;background:#F59E0B18;color:#B45309;line-height:1.55}
.startup-banner[hidden]{display:none!important}
.user-info-copy{min-width:0;flex:1}
.noscript-notice{padding:14px;background:#FEE2E2;color:#7F1D1D;text-align:center;font-family:sans-serif;font-size:13px}
@media(max-width:480px){
  .login-scope-badge{font-size:9px}
  .sidebar-brand-copy strong{font-size:12px}
}
.password-strength-line{display:inline-flex;align-items:center;gap:6px;color:var(--text3);font-size:10px}
.password-strength-dot{width:7px;height:7px;border-radius:50%;flex:0 0 auto}
