/* =========================================================
   Sembakoin — Dashboard POS
   ========================================================= */

:root{
  --ink:#0B1030;
  --ink-2:#252B45;
  --muted:#6A6F85;
  --muted-2:#9499AB;
  --line:#E6E4DA;
  --line-2:#F0EEE6;
  --bg:#F8F7F2;
  --card:#FFFFFF;

  --brand-900:#0A0F45;
  --brand-800:#131B73;
  --brand-700:#182391;
  --brand-600:#1F2CA1;
  --brand-500:#3542C6;
  --brand-050:#EDEFFB;

  --gold:#C99F0F;
  --gold-600:#A57D0C;
  --gold-300:#E8C978;
  --gold-050:#FBF3D9;
  --blue:#1F2CA1;
  --blue-050:#EDEFFB;
  --red:#C0392B;
  --red-050:#FDECEA;
  --purple:#6D4AA8;
  --teal:#0E8A8A;

  --r:14px;
  --r-lg:18px;
  --r-xl:22px;

  --sh-sm:0 1px 2px rgba(11,16,48,.04);
  --sh:0 1px 2px rgba(11,16,48,.04), 0 8px 24px -18px rgba(11,16,48,.35);
  --sh-lg:0 24px 60px -30px rgba(11,16,48,.4);

  --ff:"Plus Jakarta Sans","Segoe UI",system-ui,-apple-system,sans-serif;
  --sb-w:268px;
}

*,*::before,*::after{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0; font-family:var(--ff); background:var(--bg); color:var(--ink);
  font-size:14px; line-height:1.55; -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4,p{ margin:0; }
h1,h2,h3,h4{ letter-spacing:-.02em; line-height:1.2; font-weight:700; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
svg{ display:block; }
ul{ margin:0; padding:0; list-style:none; }
.mono{ font-variant-numeric:tabular-nums; letter-spacing:-.01em; }
.muted{ color:var(--muted); }
.text-green{ color:var(--brand-600); }
.text-red{ color:var(--red); }
.strong{ font-weight:700; }

/* ---------------- Shell ---------------- */
.app{ display:flex; min-height:100vh; }

/* ---------------- Sidebar ---------------- */
.sidebar{
  position:fixed; inset:0 auto 0 0; width:var(--sb-w); z-index:80;
  display:flex; flex-direction:column; padding:18px 14px 14px;
  background:linear-gradient(180deg,#0A0F45 0%,#0F1560 52%,#0A0F45 100%);
  color:#D8DBEA;
  transition:transform .3s cubic-bezier(.4,0,.2,1);
}
.sidebar::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(420px 220px at 10% -6%, rgba(22,160,95,.22), transparent 70%);
}
.sb-head{ display:flex; align-items:center; gap:10px; padding:2px 6px 16px; position:relative; z-index:1; }
.sb-brand{ display:flex; align-items:center; gap:10px; min-width:0; }
.sb-mark{
  width:38px; height:38px; border-radius:50%; display:grid; place-items:center; flex:none; overflow:hidden;
  background:#fff; border:1px solid rgba(255,255,255,.18);
}
.sb-mark img{ width:100%; height:100%; object-fit:contain; display:block; }
.sb-mark svg{ width:20px; height:20px; }
.sb-brand-text{ display:flex; flex-direction:column; font-weight:800; font-size:14.5px; color:#fff; letter-spacing:-.025em; line-height:1.15; }
.sb-brand-text small{ font-size:9px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#E8C978; margin-top:4px; }
.sb-close{ display:none; margin-left:auto; width:32px; height:32px; border-radius:9px; border:0; background:rgba(255,255,255,.07); color:#D6DAEE; }
.sb-close svg{ width:16px; height:16px; margin:auto; }

.sb-store{
  position:relative; z-index:1;
  display:flex; align-items:center; gap:10px; padding:10px; margin:0 4px 14px;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); border-radius:12px;
}
.store-avatar{
  width:32px; height:32px; border-radius:9px; flex:none; display:grid; place-items:center;
  background:linear-gradient(150deg,#3542C6,#182391); color:#fff; font-size:11.5px; font-weight:800;
}
.store-meta{ min-width:0; }
.store-meta b{ display:block; font-size:12.5px; color:#fff; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.store-meta small{ font-size:10.5px; color:#878CA6; }
.store-chev{ width:14px; height:14px; margin-left:auto; color:#787D98; transform:rotate(90deg); flex:none; }

.sb-nav{ position:relative; z-index:1; display:flex; flex-direction:column; gap:2px; overflow-y:auto; flex:1; scrollbar-width:none; }
.sb-nav::-webkit-scrollbar{ display:none; }
.sb-label{
  font-size:9.5px; font-weight:800; letter-spacing:.13em; text-transform:uppercase;
  color:#5A5F7A; padding:14px 12px 6px;
}
.sb-item{
  display:flex; align-items:center; gap:11px; padding:9px 12px; border-radius:10px;
  font-size:13.5px; font-weight:600; color:#C4C8DE; transition:.16s; position:relative;
}
.sb-item svg{ width:18px; height:18px; flex:none; color:#9A9EB6; }
.sb-item:hover{ background:rgba(255,255,255,.06); color:#fff; }
.sb-item:hover svg{ color:#D6DAEE; }
.sb-item.active{ background:linear-gradient(90deg,rgba(22,160,95,.26),rgba(22,160,95,.1)); color:#fff; box-shadow:inset 0 0 0 1px rgba(120,220,170,.18); }
.sb-item.active svg{ color:#F0DFA0; }
.sb-item.active::before{
  content:""; position:absolute; left:-14px; top:50%; transform:translateY(-50%);
  width:3px; height:18px; border-radius:0 3px 3px 0; background:#E8C978;
}
.sb-badge{
  margin-left:auto; font-style:normal; font-size:10px; font-weight:800;
  background:#3542C6; color:#fff; border-radius:999px; padding:1px 6px; min-width:18px; text-align:center;
}
.sb-badge.warn{ background:#C99F0F; }

.sb-foot{ position:relative; z-index:1; padding-top:10px; margin-top:6px; border-top:1px solid rgba(255,255,255,.07); }
.sb-user{ display:flex; align-items:center; gap:10px; padding:10px 8px 4px; }
.u-avatar{
  width:32px; height:32px; border-radius:50%; flex:none; display:grid; place-items:center;
  background:linear-gradient(150deg,#3542C6,#131B73); color:#E6E8F7; font-size:11px; font-weight:800;
  border:1px solid rgba(255,255,255,.14);
}
.u-avatar.sm{ width:30px; height:30px; font-size:10.5px; }
.sb-user b{ display:block; font-size:12px; color:#fff; }
.sb-user small{ font-size:10px; color:#878CA6; }
.u-more{ margin-left:auto; border:0; background:transparent; color:#878CA6; font-size:16px; line-height:1; }

/* ---------------- Main ---------------- */
.main{ flex:1; min-width:0; margin-left:var(--sb-w); display:flex; flex-direction:column; }

.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; gap:14px; padding:0 26px; height:68px;
  background:rgba(244,247,244,.86); backdrop-filter:blur(14px) saturate(180%);
  border-bottom:1px solid var(--line);
}
.tb-title h1{ font-size:17px; font-weight:800; }
.tb-title p{ font-size:11.5px; color:var(--muted); margin-top:1px; }
.tb-actions{ display:flex; align-items:center; gap:10px; margin-left:auto; }
.tb-search{
  display:flex; align-items:center; gap:8px; height:38px; width:290px; padding:0 12px;
  background:var(--card); border:1px solid var(--line); border-radius:10px; transition:.16s;
}
.tb-search:focus-within{ border-color:#C4C8DE; box-shadow:0 0 0 3px rgba(31,44,161,.08); }
.tb-search svg{ width:16px; height:16px; color:var(--muted-2); flex:none; }
.tb-search input{ border:0; outline:0; background:transparent; font-family:inherit; font-size:12.5px; width:100%; color:var(--ink); }
.tb-search input::placeholder{ color:#A3A7BD; }
.tb-search kbd{
  font-family:inherit; font-size:10px; font-weight:700; color:var(--muted-2);
  background:var(--bg); border:1px solid var(--line); border-radius:5px; padding:1px 5px; flex:none;
}
.icon-btn{
  position:relative; width:38px; height:38px; border-radius:10px; display:grid; place-items:center;
  background:var(--card); border:1px solid var(--line); color:var(--ink-2); transition:.16s; flex:none;
}
.icon-btn svg{ width:18px; height:18px; }
.icon-btn:hover{ border-color:#CFD3E4; }
.tb-bell .dot{ position:absolute; top:9px; right:10px; width:6px; height:6px; border-radius:50%; background:#E0533D; border:1.5px solid #fff; }
.tb-profile{
  display:flex; align-items:center; gap:8px; height:38px; padding:0 10px 0 5px;
  background:var(--card); border:1px solid var(--line); border-radius:10px; color:var(--ink);
}
.tb-profile-text{ display:flex; flex-direction:column; align-items:flex-start; line-height:1.15; }
.tb-profile-text b{ font-size:11.5px; font-weight:700; }
.tb-profile-text small{ font-size:10px; color:var(--muted); }
.tb-profile .chev{ width:13px; height:13px; color:var(--muted-2); transform:rotate(90deg); }
.only-mobile{ display:none; }

.content{ padding:24px 26px 40px; flex:1; }
.view{ display:none; animation:fadeUp .28s ease; }
.view.active{ display:block; }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }

/* ---------------- View head ---------------- */
.view-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:20px; }
.vh-left{ min-width:0; }
.vh-pill{
  display:inline-flex; align-items:center; gap:7px; font-size:11.5px; font-weight:700;
  background:var(--card); border:1px solid var(--line); color:var(--ink-2);
  padding:5px 11px; border-radius:999px;
}
.vh-pill .live{ width:6px; height:6px; border-radius:50%; background:#3542C6; box-shadow:0 0 0 3px rgba(22,160,95,.16); }
.vh-note{ font-size:12px; color:var(--muted); margin-top:8px; }
.vh-note b{ color:var(--ink-2); }
.vh-right{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  height:38px; padding:0 15px; border-radius:10px; border:1px solid transparent;
  font-size:12.5px; font-weight:700; letter-spacing:-.01em; white-space:nowrap;
  transition:.16s;
}
.btn svg{ width:16px; height:16px; flex:none; }
.btn-primary{
  background:linear-gradient(180deg,var(--brand-600),var(--brand-700)); color:#fff;
  box-shadow:0 6px 16px -10px rgba(10,83,52,.85), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn-primary:hover{ background:linear-gradient(180deg,#3542C6,#182391); filter:brightness(1.03); }
.btn-ghost{ background:var(--card); border-color:var(--line); color:var(--ink-2); }
.btn-ghost:hover{ border-color:#CFD3E4; background:#fff; }
.btn-light{ background:#fff; color:var(--brand-800); }
.btn-sm{ height:32px; padding:0 12px; font-size:11.5px; border-radius:8px; }
.btn-block{ width:100%; }
.btn-lg{ height:44px; font-size:13.5px; border-radius:11px; }
.btn-text{ border:0; background:transparent; color:var(--brand-600); font-size:12px; font-weight:700; padding:4px 6px; border-radius:6px; }
.btn-text:hover{ background:var(--brand-050); }

.select-wrap{ position:relative; display:inline-flex; align-items:center; }
.select-wrap select{
  appearance:none; height:38px; padding:0 32px 0 12px; border-radius:10px;
  border:1px solid var(--line); background:var(--card); color:var(--ink-2);
  font-family:inherit; font-size:12.5px; font-weight:600; cursor:pointer; outline:0;
}
.select-wrap select:focus{ border-color:#C4C8DE; }
.select-wrap .chev{ position:absolute; right:10px; width:14px; height:14px; color:var(--muted-2); transform:rotate(90deg); pointer-events:none; }
.select-wrap.sm select{ height:34px; font-size:12px; }

.segmented{ display:inline-grid; grid-auto-flow:column; gap:3px; padding:3px; background:var(--bg); border:1px solid var(--line); border-radius:9px; }
.seg{ border:0; background:transparent; padding:6px 12px; border-radius:7px; font-size:11.5px; font-weight:700; color:var(--muted); transition:.16s; }
.seg.active{ background:var(--card); color:var(--brand-800); box-shadow:0 1px 3px rgba(11,16,48,.1); }
.segmented.sm .seg{ padding:5px 10px; font-size:11px; }

/* ---------------- KPI ---------------- */
.kpi-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:16px; }
.kpi{
  background:var(--card); border:1px solid var(--line); border-radius:var(--r);
  padding:15px 16px 14px; box-shadow:var(--sh-sm); position:relative; overflow:hidden;
}
.kpi-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.kpi-top > span:first-child{ font-size:11.5px; font-weight:600; color:var(--muted); }
.kpi-ico{ width:28px; height:28px; border-radius:8px; display:grid; place-items:center; flex:none; }
.kpi-ico svg{ width:15px; height:15px; }
.kpi-ico.green{ background:var(--brand-050); color:var(--brand-600); }
.kpi-ico.blue{ background:var(--blue-050); color:var(--blue); }
.kpi-ico.gold{ background:var(--gold-050); color:var(--gold-600); }
.kpi-ico.red{ background:var(--red-050); color:var(--red); }
.kpi-value{ display:block; font-size:22px; font-weight:800; letter-spacing:-.035em; margin:9px 0 6px; font-variant-numeric:tabular-nums; }
.kpi-value small{ font-size:12px; font-weight:600; color:var(--muted); letter-spacing:0; }
.kpi-foot{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:11px; }
.kpi-foot .muted{ font-size:11px; }
.delta{ font-size:10.5px; font-weight:800; padding:2px 6px; border-radius:5px; }
.delta.up{ color:#1F2CA1; background:var(--brand-050); }
.delta.down{ color:#A93226; background:var(--red-050); }

/* ---------------- Cards / grids ---------------- */
.card{ background:var(--card); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--sh-sm); padding:16px 18px; }
.card-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.card-head h3{ font-size:14px; font-weight:800; }
.card-head p{ font-size:11.5px; color:var(--muted); margin-top:2px; }
.stack{ display:flex; flex-direction:column; gap:14px; }
.grid-2-1{ display:grid; grid-template-columns:1.62fr 1fr; gap:14px; margin-bottom:14px; }
.grid-1-1{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.grid-2-1 > .card, .grid-1-1 > .card{ margin:0; }
.grid-2-1 > *, .grid-1-1 > *, .settings-grid > *, .kpi-grid > *{ min-width:0; }
.link{ display:inline-flex; align-items:center; gap:2px; font-size:11.5px; font-weight:700; color:var(--brand-600); }
.link svg{ width:13px; height:13px; }

/* ---------------- Charts ---------------- */
.chart-legend{ display:flex; align-items:center; gap:14px; font-size:11px; color:var(--muted); margin-bottom:6px; flex-wrap:wrap; }
.chart-legend.inline{ margin:0; }
.chart-legend span{ display:inline-flex; align-items:center; gap:5px; }
.lg{ width:8px; height:8px; border-radius:2px; display:inline-block; }
.lg.green{ background:#3542C6; }
.lg.gold{ background:#D9A93C; }
.lg.dark{ background:#182391; }
.chart-box{ width:100%; height:230px; }
.chart-box.tall{ height:268px; }
.chart-box svg{ width:100%; height:100%; overflow:visible; }

.donut-wrap{ display:flex; flex-direction:column; align-items:center; gap:12px; }
.donut{ width:150px; height:150px; position:relative; }
.donut svg{ width:100%; height:100%; transform:rotate(-90deg); }
.donut-center{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.donut-center b{ font-size:17px; font-weight:800; letter-spacing:-.03em; }
.donut-center small{ font-size:9.5px; color:var(--muted); }
.donut-legend{ width:100%; display:flex; flex-direction:column; gap:7px; }
.donut-legend li{ display:flex; align-items:center; gap:8px; font-size:11.5px; }
.donut-legend i{ width:8px; height:8px; border-radius:2px; flex:none; }
.donut-legend b{ margin-left:auto; font-variant-numeric:tabular-nums; font-size:11.5px; }
.donut-legend span{ color:var(--muted); }

/* ---------------- Tables ---------------- */
.table-wrap{ width:100%; overflow-x:auto; margin:0 -18px; padding:0 18px; }
.table{ width:100%; border-collapse:collapse; min-width:620px; }
.table th{
  text-align:left; font-size:10.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase;
  color:var(--muted-2); padding:0 10px 9px; border-bottom:1px solid var(--line); white-space:nowrap;
}
.table td{ padding:11px 10px; border-bottom:1px solid var(--line-2); font-size:12.5px; color:var(--ink-2); vertical-align:middle; }
.table tbody tr:last-child td{ border-bottom:0; }
.table tbody tr:hover td{ background:#FBFAF6; }
.table .num{ text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.table .right{ text-align:right; }
.table .mono{ font-size:11.5px; color:var(--ink-2); }
.table td.strong, .table .strong{ font-weight:800; color:var(--ink); }
.table td.nowrap{ white-space:nowrap; }

.cell-user{ display:flex; align-items:center; gap:8px; }
.cell-user b{ display:block; font-size:12.5px; font-weight:700; }
.cell-user small{ font-size:10.5px; color:var(--muted); }
.av{ width:28px; height:28px; border-radius:50%; display:grid; place-items:center; flex:none; font-size:10px; font-weight:800; background:var(--bg); color:var(--ink-2); border:1px solid var(--line); }
.av.g{ background:var(--brand-050); color:var(--brand-700); border-color:#D8DBEA; }
.av.b{ background:var(--blue-050); color:var(--blue); border-color:#D8E4F5; }

.cell-prod{ display:flex; align-items:center; gap:9px; min-width:180px; }
.cell-prod b{ display:block; font-size:12.5px; font-weight:700; }
.cell-prod small{ font-size:10.5px; color:var(--muted); }
.pthumb{ width:32px; height:32px; border-radius:9px; display:grid; place-items:center; font-size:16px; background:var(--bg); border:1px solid var(--line-2); flex:none; }

.tag{
  display:inline-flex; align-items:center; gap:4px; font-size:10.5px; font-weight:800;
  padding:3px 8px; border-radius:999px; background:var(--bg); color:var(--muted); white-space:nowrap;
}
.tag.ok{ background:var(--brand-050); color:#1F2CA1; }
.tag.warn{ background:var(--gold-050); color:#A57D0C; }
.tag.red{ background:var(--red-050); color:#A93226; }

.table-foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:12px; border-top:1px solid var(--line-2); margin-top:4px; font-size:11.5px; flex-wrap:wrap; }
.pager{ display:flex; align-items:center; gap:3px; }
.pager button{
  min-width:26px; height:26px; border-radius:6px; border:1px solid var(--line); background:var(--card);
  font-size:11.5px; font-weight:600; color:var(--ink-2); padding:0 6px;
}
.pager button:hover:not(:disabled){ border-color:#CFD3E4; }
.pager button.on{ background:var(--brand-800); border-color:var(--brand-800); color:#fff; }
.pager button:disabled{ opacity:.4; }
.pager span{ font-size:11px; color:var(--muted-2); padding:0 2px; }

.toolbar{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.input-search{
  display:flex; align-items:center; gap:8px; height:40px; padding:0 13px; flex:1; min-width:180px;
  background:var(--card); border:1px solid var(--line); border-radius:10px; transition:.16s;
}
.input-search:focus-within{ border-color:#C4C8DE; box-shadow:0 0 0 3px rgba(31,44,161,.08); }
.input-search svg{ width:16px; height:16px; color:var(--muted-2); flex:none; }
.input-search input{ border:0; outline:0; background:transparent; font-family:inherit; font-size:12.5px; width:100%; color:var(--ink); }
.input-search input::placeholder{ color:#A3A7BD; }
.input-search.sm{ height:34px; min-width:200px; flex:0 1 260px; }

/* bars */
.bar{ height:6px; border-radius:999px; background:var(--line-2); overflow:hidden; width:100%; }
.bar > span{ display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#3542C6,#1F2CA1); }
.bar > span.warn{ background:linear-gradient(90deg,#E0B44A,#A57D0C); }
.bar > span.gold{ background:linear-gradient(90deg,#D9A93C,#C99F0F); }
.bar > span.blue{ background:linear-gradient(90deg,#4A86C8,#1F2CA1); }
.bar > span.purple{ background:linear-gradient(90deg,#8B6BC4,#6D4AA8); }
.bar > span.teal{ background:linear-gradient(90deg,#2FA8A8,#0E8A8A); }
.bar.sm{ height:5px; width:64px; }
.bar.lg{ height:8px; }
.stock{ display:flex; align-items:center; gap:7px; }
.stock small{ font-size:10.5px; color:var(--muted); white-space:nowrap; }

/* ---------------- Mini lists ---------------- */
.mini-list{ display:flex; flex-direction:column; gap:2px; }
.mini-list li{ display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--line-2); }
.mini-list li:last-child{ border-bottom:0; }
.ml-emoji{ width:30px; height:30px; border-radius:8px; display:grid; place-items:center; font-size:15px; background:var(--bg); border:1px solid var(--line-2); flex:none; }
.mini-list b{ display:block; font-size:12px; font-weight:700; }
.mini-list small{ font-size:10.5px; color:var(--muted); }
.ml-qty{ margin-left:auto; font-size:12px; font-weight:800; font-variant-numeric:tabular-nums; }
.ml-qty.low{ color:var(--red); }
.mini-list .tag{ margin-left:auto; }

/* goal */
.goal-top{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:8px; }
.goal-top b{ font-size:18px; font-weight:800; letter-spacing:-.03em; }
.goal-top .muted{ font-size:11px; }
.goal-note{ font-size:11px; color:var(--muted); margin-top:8px; }
.goal-note b{ color:var(--ink-2); }

/* ---------------- POS ---------------- */
.pos-layout{ display:grid; grid-template-columns:1fr; gap:14px; min-width:0; }
.pos-layout > *{ min-width:0; }
.pos-catalog{ background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:14px 16px 16px; min-width:0; }
.pos-tools{ display:flex; gap:8px; margin-bottom:12px; }
.chips{ display:flex; gap:6px; overflow-x:auto; padding-bottom:4px; margin-bottom:12px; scrollbar-width:none; }
.chips::-webkit-scrollbar{ display:none; }
.chip{
  flex:none; border:1px solid var(--line); background:var(--card); color:var(--ink-2);
  border-radius:999px; padding:6px 13px; font-size:11.5px; font-weight:700; transition:.16s;
}
.chip:hover{ border-color:#CFD3E4; }
.chip.active{ background:var(--brand-800); border-color:var(--brand-800); color:#fff; }

.pos-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(148px,1fr)); gap:10px; min-width:0; }
.pos-item{
  border:1px solid var(--line); border-radius:11px; padding:10px; background:var(--card);
  display:flex; flex-direction:column; gap:6px; text-align:left; transition:.16s; position:relative;
  min-width:0; width:100%; overflow:hidden;
}
.pos-item:hover{ border-color:#C6CAE0; box-shadow:0 6px 16px -14px rgba(11,16,48,.5); transform:translateY(-1px); }
.pi-emoji{ width:100%; aspect-ratio:2.1/1; border-radius:8px; display:grid; place-items:center; font-size:26px; background:linear-gradient(160deg,#FAF9F4,#F1EFE5); border:1px solid var(--line-2); }
.pi-name{ font-size:11.5px; font-weight:700; line-height:1.3; min-height:30px; min-width:0; overflow-wrap:anywhere; }
.pi-meta{ font-size:10px; color:var(--muted); }
.pi-foot{ display:flex; align-items:center; justify-content:space-between; gap:6px; margin-top:auto; }
.pi-price{ font-size:12.5px; font-weight:800; color:var(--brand-800); font-variant-numeric:tabular-nums; }
.pi-add{ width:24px; height:24px; border-radius:7px; border:1px solid var(--line); background:var(--bg); color:var(--brand-700); display:grid; place-items:center; }
.pi-add svg{ width:13px; height:13px; }
.pi-add:hover{ background:var(--brand-800); color:#fff; border-color:var(--brand-800); }
.pi-low{ position:absolute; top:8px; right:8px; font-size:9px; font-weight:800; background:var(--gold-050); color:#A57D0C; padding:2px 6px; border-radius:5px; }

.pos-cart{
  background:var(--card); border:1px solid var(--line); border-radius:var(--r);
  display:flex; flex-direction:column; overflow:hidden;
}
.pc-head{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--line-2); }
.pc-head h3{ font-size:14px; }
.pc-head small{ font-size:11px; color:var(--muted); }
.pc-customer{ display:flex; align-items:center; gap:9px; padding:11px 16px; background:#FBFAF6; border-bottom:1px solid var(--line-2); }
.pc-customer b{ display:block; font-size:12px; }
.pc-customer small{ font-size:10.5px; color:var(--muted); }
.pc-customer .btn-text{ margin-left:auto; }
.pc-body{ flex:1; overflow-y:auto; padding:8px 16px; min-height:120px; max-height:340px; overscroll-behavior:contain; }
.pc-empty{ text-align:center; padding:26px 10px; color:var(--muted); font-size:11.5px; }
.pc-empty span{ font-size:28px; display:block; margin-bottom:8px; }
.pc-item{ display:flex; gap:9px; padding:10px 0; border-bottom:1px solid var(--line-2); }
.pc-item:last-child{ border-bottom:0; }
.pc-thumb{ width:34px; height:34px; border-radius:8px; display:grid; place-items:center; font-size:16px; background:var(--bg); border:1px solid var(--line-2); flex:none; }
.pc-info{ flex:1; min-width:0; }
.pc-info b{ display:block; font-size:11.5px; font-weight:700; line-height:1.3; }
.pc-info small{ font-size:10px; color:var(--muted); }
.pc-line{ display:flex; align-items:center; justify-content:space-between; gap:6px; margin-top:5px; }
.qty{ display:flex; align-items:center; gap:1px; border:1px solid var(--line); border-radius:999px; padding:1px; }
.qty button{ width:20px; height:20px; border:0; background:transparent; border-radius:50%; font-size:13px; color:var(--ink-2); display:grid; place-items:center; line-height:1; }
.qty button:hover{ background:var(--bg); }
.qty span{ min-width:18px; text-align:center; font-size:11px; font-weight:800; font-variant-numeric:tabular-nums; }
.pc-price{ font-size:11.5px; font-weight:800; color:var(--brand-800); font-variant-numeric:tabular-nums; }

.pc-foot{ border-top:1px solid var(--line); padding:12px 16px 16px; background:#FBFAF6; }
.pc-row{ display:flex; align-items:center; justify-content:space-between; font-size:11.5px; color:var(--muted); padding:3px 0; }
.pc-row b{ color:var(--ink-2); font-weight:700; font-variant-numeric:tabular-nums; }
.pc-row.total{ margin-top:6px; padding-top:9px; border-top:1px dashed var(--line); font-size:13px; color:var(--ink); font-weight:700; }
.pc-row.total b{ font-size:17px; letter-spacing:-.03em; color:var(--ink); }
.pay-methods{ display:grid; grid-template-columns:repeat(4,1fr); gap:5px; margin:10px 0; }
.pm{ border:1px solid var(--line); background:var(--card); border-radius:8px; padding:6px 2px; font-size:10.5px; font-weight:700; color:var(--muted); }
.pm.active{ border-color:var(--brand-600); background:var(--brand-050); color:var(--brand-700); }

.cart-fab{
  display:none; align-items:center; gap:8px; position:fixed; bottom:76px; left:16px; right:16px; z-index:70;
  background:linear-gradient(180deg,var(--brand-600),var(--brand-700)); color:#fff;
  border:0; border-radius:12px; height:48px; padding:0 16px; font-weight:800; font-size:13px;
  box-shadow:0 12px 30px -14px rgba(10,15,69,.9);
}
.cart-fab svg{ width:18px; height:18px; }
.cart-fab span{ background:rgba(255,255,255,.2); border-radius:999px; padding:1px 7px; font-size:11px; }
.cart-fab b{ margin-left:auto; font-size:13.5px; }

/* ---------------- Stat strip ---------------- */
.stat-strip{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line);
  border:1px solid var(--line); border-radius:var(--r); overflow:hidden; margin-bottom:14px;
}
.stat-strip > div{ background:var(--card); padding:12px 16px; }
.stat-strip span{ display:block; font-size:11px; color:var(--muted); }
.stat-strip b{ display:block; font-size:15px; font-weight:800; letter-spacing:-.02em; margin-top:3px; font-variant-numeric:tabular-nums; }

/* ---------------- Locations / flow / ratio ---------------- */
.loc-list{ display:flex; flex-direction:column; gap:16px; }
.loc-top{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:7px; }
.loc-top b{ font-size:12.5px; }
.loc-top span{ font-size:11px; color:var(--muted); }
.loc-list small{ display:block; margin-top:6px; font-size:10.5px; }

.flow-list{ display:flex; flex-direction:column; gap:2px; }
.flow-list li{ display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--line-2); }
.flow-list li:last-child{ border-bottom:0; }
.flow-list b{ display:block; font-size:11.5px; }
.flow-list small{ font-size:10.5px; color:var(--muted); }
.flow-list li > b{ margin-left:auto; font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.fl-ico{ width:26px; height:26px; border-radius:7px; display:grid; place-items:center; flex:none; }
.fl-ico svg{ width:13px; height:13px; }
.fl-ico.in{ background:var(--brand-050); color:var(--brand-600); }
.fl-ico.out{ background:var(--red-050); color:var(--red); }
.flow-list li.total{ padding-top:12px; margin-top:4px; border-top:1px dashed var(--line); }
.flow-list li.total b{ font-size:14px; color:var(--ink); }
.cash-balance{ display:flex; align-items:center; justify-content:space-between; margin-top:12px; padding:11px 13px; background:var(--brand-050); border-radius:10px; }
.cash-balance span{ font-size:11.5px; color:#2B3363; }
.cash-balance b{ font-size:15px; font-weight:800; color:var(--brand-800); letter-spacing:-.02em; }

.ratio-list{ display:flex; flex-direction:column; gap:11px; }
.ratio-list li{ display:flex; align-items:center; gap:9px; font-size:11.5px; }
.ratio-list span{ width:118px; color:var(--muted); flex:none; }
.ratio-list b{ margin-left:auto; font-size:11.5px; font-weight:800; font-variant-numeric:tabular-nums; }
.ratio-list .bar{ width:auto; flex:1; }

/* ---------------- Tabs ---------------- */
.tabs{ display:flex; gap:4px; margin-bottom:14px; border-bottom:1px solid var(--line); overflow-x:auto; }
.tab{
  border:0; background:transparent; padding:9px 14px; font-size:12.5px; font-weight:700; color:var(--muted);
  border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap;
}
.tab:hover{ color:var(--ink-2); }
.tab.active{ color:var(--brand-700); border-bottom-color:var(--brand-600); }

/* ---------------- P&L ---------------- */
.pl-table{ display:flex; flex-direction:column; }
.pl-group{ padding:6px 0; border-bottom:1px solid var(--line-2); }
.pl-group:last-child{ border-bottom:0; }
.pl-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:5px 0; font-size:12px; color:var(--ink-2); }
.pl-row > span:last-child{ font-variant-numeric:tabular-nums; white-space:nowrap; }
.pl-row .indent{ padding-left:14px; color:var(--muted); font-size:11.5px; }
.pl-row.head{ font-weight:800; color:var(--ink); font-size:12.5px; padding:8px 0; }
.pl-row.subtotal{ font-weight:700; color:var(--ink); border-top:1px dashed var(--line); margin-top:4px; padding-top:8px; }
.pl-row.grand{ margin-top:6px; padding:10px 12px; background:var(--brand-050); border-radius:9px; font-weight:800; color:var(--brand-900); font-size:13px; }
.pl-note{ display:flex; gap:14px; flex-wrap:wrap; margin-top:14px; padding-top:12px; border-top:1px solid var(--line-2); font-size:11px; color:var(--muted); }
.pl-note b{ color:var(--ink-2); }

/* ---------------- Tax ---------------- */
.tax-banner{
  display:flex; align-items:center; gap:14px; justify-content:space-between; flex-wrap:wrap;
  background:linear-gradient(110deg,#0A0F45,#182391 70%,#182391); color:#fff;
  border-radius:var(--r); padding:16px 18px; margin-bottom:14px;
  box-shadow:0 18px 40px -30px rgba(10,15,69,.9);
}
.tax-banner-left{ display:flex; align-items:center; gap:12px; }
.tb-ico{ width:36px; height:36px; border-radius:10px; background:rgba(255,255,255,.1); display:grid; place-items:center; font-size:17px; flex:none; }
.tax-banner b{ display:block; font-size:13px; }
.tax-banner small{ font-size:11px; color:#B9BFDA; }
.note-card{ background:var(--gold-050); border:1px solid #EFE1BE; border-radius:var(--r); padding:14px 16px; }
.note-card b{ font-size:12px; color:#7A5A12; display:block; margin-bottom:5px; }
.note-card p{ font-size:11.5px; color:#7A5A12; line-height:1.7; opacity:.9; }

.timeline{ display:flex; flex-direction:column; }
.timeline li{ display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--line-2); position:relative; }
.timeline li:last-child{ border-bottom:0; }
.tl-date{
  width:38px; height:38px; border-radius:9px; background:var(--bg); border:1px solid var(--line);
  display:flex; flex-direction:column; align-items:center; justify-content:center; flex:none;
  font-size:13px; font-weight:800; line-height:1; color:var(--ink-2);
}
.tl-date small{ font-size:8.5px; font-weight:700; color:var(--muted); text-transform:uppercase; margin-top:2px; }
.timeline li.now .tl-date{ background:var(--brand-050); border-color:#D4D8EA; color:var(--brand-700); }
.timeline b{ display:block; font-size:11.5px; }
.timeline small{ font-size:10.5px; color:var(--muted); }
.timeline .tag{ margin-left:auto; }
.timeline li.done{ opacity:.65; }

/* ---------------- Settings ---------------- */
.settings-grid{ display:grid; grid-template-columns:1.15fr 1fr; gap:14px; align-items:start; }
.form{ display:flex; flex-direction:column; gap:12px; }
.field{ display:flex; flex-direction:column; gap:5px; }
.field > span{ font-size:11px; font-weight:700; color:var(--muted); }
.field input, .field select{
  height:38px; border-radius:9px; border:1px solid var(--line); background:var(--card);
  padding:0 12px; font-family:inherit; font-size:12.5px; color:var(--ink); outline:0; width:100%;
}
.field input:focus, .field select:focus{ border-color:#C4C8DE; box-shadow:0 0 0 3px rgba(31,44,161,.08); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.switch-row{ display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line-2); }
.switch-row:last-child{ border-bottom:0; }
.switch-row b{ display:block; font-size:12px; }
.switch-row small{ font-size:10.5px; color:var(--muted); }
.switch{ width:36px; height:20px; border-radius:999px; background:#DCDEEA; position:relative; flex:none; margin-left:auto; transition:.2s; }
.switch i{ position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.2); transition:.2s; }
.switch.on{ background:var(--brand-600); }
.switch.on i{ left:18px; }

/* ---------------- Modal / receipt ---------------- */
.modal{
  position:fixed; inset:0; z-index:120; display:grid; place-items:center; padding:20px;
  background:rgba(8,12,52,.5); backdrop-filter:blur(3px);
  opacity:0; pointer-events:none; transition:.24s;
}
.modal.on{ opacity:1; pointer-events:auto; }
.modal-card{
  background:var(--card); border-radius:var(--r-lg); width:min(360px,100%);
  box-shadow:var(--sh-lg); transform:translateY(10px) scale(.98); transition:.24s; overflow:hidden;
}
.modal.on .modal-card{ transform:none; }
.receipt{ padding:22px 20px 10px; font-family:"Courier New",monospace; font-size:11.5px; color:#141A38; }
.rc-head{ text-align:center; padding-bottom:10px; border-bottom:1px dashed #CDD0E2; }
.rc-head b{ font-size:14px; letter-spacing:.02em; display:block; }
.rc-head small{ font-size:10px; color:#5A5F7A; display:block; line-height:1.5; margin-top:2px; }
.rc-meta{ display:flex; justify-content:space-between; font-size:10px; color:#5A5F7A; padding:8px 0; border-bottom:1px dashed #CDD0E2; }
.rc-items{ padding:8px 0; border-bottom:1px dashed #CDD0E2; }
.rc-item{ display:flex; justify-content:space-between; gap:8px; padding:3px 0; }
.rc-item span:first-child{ flex:1; }
.rc-sum{ padding:8px 0; }
.rc-sum div{ display:flex; justify-content:space-between; padding:2px 0; }
.rc-sum .tot{ font-weight:800; font-size:13px; border-top:1px dashed #CDD0E2; margin-top:5px; padding-top:6px; }
.rc-foot{ text-align:center; font-size:9.5px; color:#5A5F7A; padding:10px 0 0; border-top:1px dashed #CDD0E2; }
.modal-actions{ display:flex; gap:8px; padding:14px 20px 18px; }
.modal-actions .btn{ flex:1; }

/* ---------------- Toast ---------------- */
.toast{
  position:fixed; left:50%; bottom:26px; transform:translate(-50%,16px); z-index:130;
  background:var(--brand-900); color:#fff; font-size:12.5px; font-weight:600;
  padding:11px 18px; border-radius:999px; box-shadow:var(--sh-lg);
  opacity:0; pointer-events:none; transition:.26s; max-width:calc(100% - 32px); text-align:center;
}
.toast.on{ opacity:1; transform:translate(-50%,0); }

/* ---------------- Scrim / bottom nav ---------------- */
.scrim{ position:fixed; inset:0; z-index:75; background:rgba(8,12,52,.45); opacity:0; pointer-events:none; transition:.25s; }
.scrim.on{ opacity:1; pointer-events:auto; }

.bottomnav{
  display:none; position:fixed; left:0; right:0; bottom:0; z-index:78;
  background:rgba(255,255,255,.96); backdrop-filter:blur(14px);
  border-top:1px solid var(--line); padding:6px 4px 8px;
  grid-template-columns:repeat(5,1fr);
}
.bn-item{
  border:0; background:transparent; display:flex; flex-direction:column; align-items:center; gap:3px;
  font-size:9.5px; font-weight:700; color:var(--muted-2); padding:4px 0; border-radius:8px;
}
.bn-item svg{ width:19px; height:19px; }
.bn-item.active{ color:var(--brand-700); }
.bn-item.active svg{ color:var(--brand-600); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ---------- Tablet: icon rail ---------- */
@media (max-width:1199px){
  :root{ --sb-w:76px; }
  .sidebar{ padding:16px 10px; align-items:stretch; }
  .sb-brand-text, .store-meta, .store-chev, .sb-label, .sb-badge,
  .sb-item > span, .sb-user > div, .u-more{ display:none; }
  .sb-head{ justify-content:center; padding:2px 0 16px; }
  .sb-store{ justify-content:center; padding:8px; margin:0 0 12px; }
  .sb-item{ justify-content:center; padding:11px 0; }
  .sb-item.active::before{ left:-10px; }
  .sb-user{ justify-content:center; padding:10px 0 2px; }
  .sb-nav{ gap:4px; }
  .sb-foot .sb-item{ margin-bottom:6px; }

  .tb-search{ width:230px; }
  .kpi-grid{ grid-template-columns:repeat(2,1fr); }
  .pos-grid{ grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); }
}

/* ---------- Small laptop ---------- */
@media (max-width:1080px){
  .grid-2-1, .grid-1-1, .settings-grid{ grid-template-columns:1fr; }
  .tb-search{ display:none; }
  .content{ padding:20px 20px 36px; }
  .topbar{ padding:0 20px; }
  .stat-strip{ grid-template-columns:repeat(2,1fr); }
}

/* ---------- Tablet: horizontal donut cards ---------- */
@media (min-width:768px) and (max-width:1080px){
  .donut-wrap{ flex-direction:row; align-items:center; gap:28px; }
  .donut{ width:170px; height:170px; flex:none; }
  .donut-legend{ flex:1; min-width:0; }
  .donut-legend li{ padding:3px 0; border-bottom:1px solid var(--line-2); }
  .donut-legend li:last-child{ border-bottom:0; }
  .stat-strip{ grid-template-columns:repeat(4,1fr); }
}

/* ---------- Mobile ---------- */
@media (max-width:767px){
  :root{ --sb-w:0px; }
  .sidebar{ transform:translateX(-100%); width:min(280px,84vw); padding:16px 14px; align-items:stretch; }
  .sidebar.open{ transform:none; }
  .sb-brand-text, .store-meta, .store-chev, .sb-label, .sb-badge,
  .sb-item > span, .sb-user > div, .u-more{ display:flex; }
  .sb-label{ display:block; }
  .sb-close{ display:grid; }
  .sb-head{ justify-content:flex-start; }
  .sb-store{ justify-content:flex-start; padding:10px; margin:0 4px 14px; }
  .sb-item{ justify-content:flex-start; padding:9px 12px; }
  .sb-item.active::before{ left:-14px; }
  .sb-user{ justify-content:flex-start; padding:10px 8px 4px; }
  .u-more{ display:block; }

  .main{ margin-left:0; }
  .only-mobile{ display:grid; }
  .topbar{ height:60px; padding:0 14px; gap:10px; }
  .tb-title h1{ font-size:15px; }
  .tb-title p{ font-size:10.5px; }
  .tb-profile{ display:none; }
  .tb-bell{ width:34px; height:34px; }

  .content{ padding:16px 14px 96px; }
  .view-head{ gap:10px; margin-bottom:14px; }
  .vh-right{ width:100%; flex-wrap:wrap; }
  .vh-right .btn{ flex:1 1 0; min-width:0; }
  .vh-right .select-wrap{ flex:1 1 100%; }
  .vh-right .select-wrap select{ width:100%; }
  .vh-note{ font-size:11px; }

  .kpi-grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
  .kpi{ padding:12px 13px; }
  .kpi-value{ font-size:18px; margin:7px 0 5px; }
  .kpi-top > span:first-child{ font-size:10.5px; }
  .kpi-ico{ width:24px; height:24px; }
  .kpi-ico svg{ width:13px; height:13px; }
  .kpi-foot{ font-size:10px; gap:4px; }
  .kpi-foot .muted{ font-size:10px; }

  .card{ padding:14px; border-radius:12px; }
  .card-head{ margin-bottom:12px; }
  .card-head h3{ font-size:13px; }
  .table-wrap{ margin:0 -14px; padding:0 14px; }
  .table{ min-width:560px; }
  .table td, .table th{ padding:9px 8px; }
  .chart-box{ height:190px; }
  .chart-box.tall{ height:210px; }
  .donut{ width:132px; height:132px; }

  /* --- responsive tables become stacked cards --- */
  .table.responsive{ display:block; min-width:0; }
  .table.responsive thead{ display:none; }
  .table.responsive tbody{ display:block; }
  .table.responsive tr{
    display:block; border:1px solid var(--line); border-radius:12px;
    padding:12px 14px; margin-bottom:10px; background:var(--card);
  }
  .table.responsive tr:hover td{ background:transparent; }
  .table.responsive td{
    display:flex; align-items:center; justify-content:space-between; gap:14px;
    padding:4px 0; border:0; text-align:left; font-size:12.5px;
  }
  .table.responsive td::before{
    content:attr(data-label); font-size:9.5px; font-weight:800; letter-spacing:.07em;
    text-transform:uppercase; color:var(--muted-2); flex:none;
  }
  .table.responsive td:first-child{
    display:block; padding:0 0 10px; margin-bottom:8px; border-bottom:1px solid var(--line-2);
  }
  .table.responsive td:first-child::before{ display:none; }
  .table.responsive td.num, .table.responsive td.right{ text-align:right; }
  .table.responsive .cell-prod b{ font-size:13px; }
  .table.responsive .stock{ justify-content:flex-end; }
  .table.responsive td .bar.sm{ width:52px; }
  #produkTable td[data-label="Kategori"],
  #produkTable td[data-label="Harga grosir"],
  #produkTable td[data-label="Aksi"],
  #trxTable td[data-label="Kasir"],
  #trxTable td[data-label="DPP"],
  #trxTable td[data-label="PPN"],
  #plgTable td[data-label="Kontak"],
  #plgTable td[data-label="Aksi"]{ display:none; }

  .stat-strip{ grid-template-columns:1fr 1fr; }
  .stat-strip > div{ padding:10px 12px; }
  .stat-strip b{ font-size:13.5px; }

  .bottomnav{ display:grid; }
  .pos-cart{
    position:fixed; left:0; right:0; bottom:0; z-index:95; border-radius:16px 16px 0 0;
    transform:translateY(101%); transition:transform .3s cubic-bezier(.4,0,.2,1);
    max-height:84vh; box-shadow:0 -20px 50px -20px rgba(8,12,52,.4);
  }
  .pos-cart.open{ transform:none; }
  .pos-cart::before{
    content:""; display:block; width:36px; height:4px; border-radius:99px; background:#DCDEEA;
    margin:8px auto 0;
  }
  .pc-body{ max-height:none; min-height:0; }
  .pc-foot{ flex:none; }
  .toast{ top:72px; bottom:auto; transform:translate(-50%,-10px); }
  .toast.on{ transform:translate(-50%,0); }
  .pos-grid{ grid-template-columns:repeat(2,1fr); gap:8px; }
  .pi-emoji{ font-size:24px; aspect-ratio:2.3/1; }
  .pi-name{ font-size:11px; min-height:28px; }
  .pos-catalog{ padding:12px; }
  .cart-fab{ display:flex; }
  .cart-fab.hide{ display:none; }

  .tax-banner{ padding:14px; }
  .tax-banner b{ font-size:12px; }
  .tax-banner small{ font-size:10.5px; }
  .field-row{ grid-template-columns:1fr; }
  .modal-actions{ flex-direction:column-reverse; }
  .timeline .tag{ font-size:9.5px; }
  .pl-note{ gap:10px; }
}

@media (max-width:359px){
  .kpi-grid{ grid-template-columns:1fr; }
  .stat-strip{ grid-template-columns:1fr; }
}

/* ---------- Tablet & laptop: POS side panel ---------- */
@media (min-width:768px){
  .bottomnav{ display:none; }
  .cart-fab{ display:none; }
  .pos-layout{ grid-template-columns:minmax(0,1fr) 290px; align-items:start; }
  .pos-cart{ position:sticky; top:84px; max-height:calc(100vh - 108px); }
  .pos-grid{ grid-template-columns:repeat(auto-fill,minmax(142px,1fr)); }
}

/* ---------- Desktop: full sidebar ---------- */
@media (min-width:1200px){
  .pos-layout{ grid-template-columns:minmax(0,1fr) 352px; }
  .pos-grid{ grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }
}

@media (min-width:1440px){
  .content{ padding:26px 32px 48px; }
  .topbar{ padding:0 32px; }
  .kpi-value{ font-size:24px; }
}

@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; }
}
