/* ============ Tandai POS — design tokens ============ */
:root {
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  /* terang */
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface2: #f7f9fa;
  --ink: #0c1118;
  --muted: #66707f;
  --faint: #98a1ae;
  --line: #e6e9ee;
  --line-strong: #d6dbe2;
  --pri: #4F46E5;
  --pri-hov: #4338CA;
  --pri-ink: #ffffff;
  --pri-soft: #EEF2FF;
  --pri-soft-ink: #4338CA;
  --lime: #A3E635;
  --lime-deep: #4d7c0f;
  --lime-soft: #ecfccb;
  --ok: #168a4e;
  --ok-soft: #e1f6ea;
  --warn: #b97c0a;
  --warn-soft: #fdf3da;
  --bad: #d6304b;
  --bad-soft: #fde8ec;
  --info: #2173c2;
  --info-soft: #e5f1fb;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(12, 17, 24, 0.04);
  --shadow-pop: 0 16px 48px rgba(12, 17, 24, 0.16);
  --side-bg: var(--surface);
  --side-ink: var(--ink);
  --side-muted: var(--muted);
  --side-line: var(--line);
  --side-active-bg: var(--pri-soft);
  --side-active-ink: var(--pri-soft-ink);
  --pad: 24px;
}

[data-theme="dark"] {
  --bg: #0b0e13;
  --surface: #141921;
  --surface2: #1a212b;
  --ink: #eef1f5;
  --muted: #8b96a5;
  --faint: #5d6878;
  --line: #232b37;
  --line-strong: #313b49;
  --pri: #818CF8;
  --pri-hov: #A5B4FC;
  --pri-ink: #0b0e13;
  --pri-soft: #1b2742;
  --pri-soft-ink: #87a6ff;
  --lime: #A3E635;
  --lime-deep: #A3E635;
  --lime-soft: #28310f;
  --ok: #4ecf8c;
  --ok-soft: #14301f;
  --warn: #e8b54a;
  --warn-soft: #332810;
  --bad: #f37a90;
  --bad-soft: #3a1620;
  --info: #6ab3f0;
  --info-soft: #142a3d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-pop: 0 16px 48px rgba(0, 0, 0, 0.55);
  --side-bg: var(--surface);
  --side-ink: var(--ink);
  --side-muted: var(--muted);
  --side-line: var(--line);
  --side-active-bg: var(--pri-soft);
  --side-active-ink: var(--pri-soft-ink);
}

/* ——— Varian gaya: LIME (bold, sidebar hitam, CTA lime) ——— */
[data-style="volt"] {
  --pri: #0d1117;
  --pri-hov: #232a33;
  --pri-ink: #d9f96a;
  --pri-soft: #eef7d4;
  --pri-soft-ink: #46610a;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --side-bg: #0d1117;
  --side-ink: #f2f5ec;
  --side-muted: #79828e;
  --side-line: #1f262e;
  --side-active-bg: #A3E635;
  --side-active-ink: #131a06;
}
[data-style="volt"] .t-btn-primary { background: #A3E635; color: #131a06; }
[data-style="volt"] .t-btn-primary:hover { background: #d6f95e; }
[data-style="volt"][data-theme="dark"] {
  --pri: #A3E635;
  --pri-hov: #d6f95e;
  --pri-ink: #131a06;
  --pri-soft: #28310f;
  --pri-soft-ink: #A3E635;
  --side-bg: #0d1117;
}

/* ——— Varian gaya: NAVY (sidebar biru-malam, item aktif lime) ——— */
[data-style="navy"] {
  --pri: #1e44c4;
  --pri-hov: #1838a5;
  --pri-ink: #ffffff;
  --pri-soft: #e7edfc;
  --pri-soft-ink: #1e44c4;
  --side-bg: #0c1733;
  --side-ink: #e9eefb;
  --side-muted: #8b9cc7;
  --side-line: #1c2b55;
  --side-active-bg: #A3E635;
  --side-active-ink: #15210a;
}
[data-style="navy"][data-theme="dark"] {
  --pri: #6b93ff;
  --pri-hov: #87a8ff;
  --pri-ink: #0b0e13;
  --pri-soft: #1b2742;
  --pri-soft-ink: #9ab3ff;
  --side-bg: #0a1228;
  --side-line: #1a2547;
}
[data-style="navy"] .db-hero { background: radial-gradient(120% 140% at 100% 0%, var(--hero-a, #16306e) 0%, var(--hero-b, #0d1b3f) 55%, var(--hero-c, #0a1228) 100%); }
[data-style="glacier"] .db-hero { background: radial-gradient(120% 140% at 100% 0%, var(--hero-a, #4F46E5) 0%, var(--hero-b, #312E81) 55%, var(--hero-c, #1E1B4B) 100%); }
[data-style="navy"] .t-logo-mark { background: #A3E635; color: #15210a; }

/* ——— Varian gaya: ARCTIC (putih bersih, CTA lime, tinta hitam) ——— */
[data-style="arctic"] {
  --bg: #fafcfd;
  --surface2: #f3f7f4;
  --pri: #b9ea25;
  --pri-hov: #c9f23f;
  --pri-ink: #18220a;
  --pri-soft: #eef9cf;
  --pri-soft-ink: #4c6606;
  --line: #e4e9e4;
  --line-strong: #d2dad2;
  --side-active-bg: #0d1117;
  --side-active-ink: #d9f96a;
}
[data-style="arctic"][data-theme="dark"] {
  --bg: #0c0f0b;
  --surface: #151a13;
  --surface2: #1b211a;
  --line: #252d23;
  --line-strong: #34402f;
  --pri: #A3E635;
  --pri-hov: #d6f95e;
  --pri-ink: #131a06;
  --pri-soft: #28310f;
  --pri-soft-ink: #d9f96a;
  --side-active-bg: #A3E635;
  --side-active-ink: #131a06;
}
[data-style="arctic"] .db-hero { background: radial-gradient(120% 140% at 100% 0%, #1e2a14 0%, #11160b 55%, #0c0f08 100%); }
[data-style="arctic"] .t-logo-mark { background: #0d1117; color: #d9f96a; }

/* ——— Varian gaya: MONO (hitam-putih, aksen lime mikro) ——— */
[data-style="mono"] {
  --pri: #11151b;
  --pri-hov: #2a313b;
  --pri-ink: #ffffff;
  --pri-soft: #eceef1;
  --pri-soft-ink: #11151b;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --side-active-bg: #11151b;
  --side-active-ink: #ffffff;
}
[data-style="mono"][data-theme="dark"] {
  --pri: #eef1f5;
  --pri-hov: #ffffff;
  --pri-ink: #0b0e13;
  --pri-soft: #262d37;
  --pri-soft-ink: #eef1f5;
  --side-active-bg: #eef1f5;
  --side-active-ink: #0b0e13;
}

/* ============ base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum";
}
button { font-family: var(--font); border: none; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font-family: var(--font); font-size: 13px; color: var(--ink); }
::selection { background: var(--lime); color: #131a06; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ============ shell layout ============ */
.app-root { display: flex; min-height: 100vh; }
.t-side {
  width: 232px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  background: var(--side-bg); color: var(--side-ink);
  border-right: 1px solid var(--side-line);
  display: flex; flex-direction: column; padding: 18px 14px;
  z-index: 40;
}
.t-side .t-logo-word { color: var(--side-ink); }
.t-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.t-page { padding: var(--pad); max-width: 1280px; width: 100%; margin: 0 auto; flex: 1; }
.t-page.full { max-width: none; }

.t-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; flex: 1; }
.t-nav-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--side-muted); padding: 14px 12px 6px; }
.t-nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  color: var(--side-muted); transition: background 0.12s, color 0.12s;
  text-align: left; width: 100%;
}
.t-nav-item:hover { color: var(--side-ink); background: color-mix(in oklab, var(--side-ink) 6%, transparent); }
.t-nav-item.on { background: var(--side-active-bg); color: var(--side-active-ink); }
.t-nav-item .t-nav-badge { margin-left: auto; font-size: 10px; font-weight: 800; background: var(--lime); color: #131a06; border-radius: 99px; padding: 1px 7px; }

/* tenant switcher */
.t-tenant {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface2);
  width: 100%; text-align: left; margin-top: 16px;
}
.t-tenant:hover { border-color: color-mix(in oklab, var(--pri) 40%, var(--line)); }
.t-tenant:focus, .t-tenant:focus-visible, .t-tenant:active { outline: none; border-color: color-mix(in oklab, var(--pri) 55%, var(--line)); }
.t-tenant-mark { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.t-tenant-name { font-size: 12.5px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-tenant-sub { font-size: 10.5px; color: var(--pri-soft-ink); font-weight: 700; }
.t-tenant svg { color: var(--lime-deep) !important; }
[data-theme="dark"] .t-tenant svg { color: var(--lime) !important; }

/* pil filter (semua halaman): lebar sepadan + panah di ujung kanan */
.t-filter { min-width: 160px; }
.t-filter .t-filter-chev { margin-left: auto; }
/* mobile: pil-pil dalam satu baris berbagi lebar sama rata (download tetap sebaris) */
@media (max-width: 640px) {
  .t-menu-wrap:has(.t-filter) { flex: 1 1 0; min-width: 0; }
  .t-menu-wrap:has(.t-filter) > div:first-child { width: 100%; }
  .t-filter { min-width: 0; width: 100%; }
}

/* filter di dalam hero (mobile) — pil kaca translusen */
.db-hero-clipwrap { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.hero-bleed .db-hero.sentris { overflow: visible; }
.hero-filters { position: relative; z-index: 3; }
.hero-filters .t-menu-wrap { flex: 1 1 0; min-width: 0; }
.hero-filters .t-menu-wrap > div:first-child { width: 100%; }
.hero-filters .t-filter { min-width: 0; width: 100%; justify-content: center; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); backdrop-filter: blur(6px); }
.hero-filters .t-filter .t-filter-chev { margin-left: 0; }
.hero-filters .t-filter:hover, .hero-filters .t-filter.act { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.28); box-shadow: none; }
.hero-filters .t-filter.on { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.22); }
.hero-filters .t-filter-ic, .hero-filters .t-filter.on .t-filter-ic { background: rgba(255,255,255,0.16); color: var(--lime); }
.hero-filters .t-filter-label, .hero-filters .t-filter.on .t-filter-label { color: rgba(243,246,239,0.55); }
.hero-filters .t-filter-value, .hero-filters .t-filter.on .t-filter-value { color: var(--lime); }
.hero-filters .t-filter-chev, .hero-filters .t-filter.on .t-filter-chev { color: rgba(243,246,239,0.6); }

/* baris tanggal di atas card pertama (mobile) */
.db-datebar { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--muted); margin: 2px 2px -8px; }
.db-datebar svg { color: var(--pri); flex-shrink: 0; }

/* badge diskon di card produk kasir */
.pos-item-disc { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--lime); color: #15210a; font-size: 10px; font-weight: 800; border-radius: 99px; padding: 3px 8px; }
.pos-disc-tag { display: inline-flex; margin-left: 6px; background: var(--lime-soft); color: var(--lime-deep); font-size: 9.5px; font-weight: 800; border-radius: 99px; padding: 1px 7px; vertical-align: middle; }

/* ikon khusus menu Langganan */
.nav-sub-ic { border-radius: 7px; background: var(--pri); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* badge jumlah keranjang di menu kasir */
.cart-badge { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px; background: var(--lime); color: #15210a; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.t-nav-item .cart-badge { margin-left: auto; }
.t-nav-item.on .cart-badge { background: var(--lime); }
.bnav-kasir-ic { position: relative; }
.cart-badge.bnav { position: absolute; top: -4px; right: -7px; border: 2px solid var(--surface); }

/* topbar */
.t-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--pad) 12px; position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.t-topbar-head { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.t-topbar-badge { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--pri-soft), color-mix(in oklab, var(--pri-soft) 60%, var(--surface))); color: var(--pri-soft-ink);
  border: 1px solid color-mix(in oklab, var(--pri) 18%, transparent); }
.t-topbar-badge svg { color: var(--lime-deep); }
[data-theme="dark"] .t-topbar-badge svg { color: var(--lime); }
.t-topbar-badge svg path { stroke-width: 2.2; }
.t-topbar-title { font-size: 18px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.t-topbar-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.t-topbar-crumb { font-weight: 700; color: var(--muted); padding: 1px 0; transition: color 0.15s; }
.t-topbar-crumb:hover { color: var(--pri-soft-ink); }
.t-topbar-dot { color: var(--faint); }
.t-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.t-topbar-date { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: var(--muted);
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.t-topbar-date svg { color: var(--pri-soft-ink); }
.t-has-dot { position: relative; }
.t-has-dot::after { content: ""; position: absolute; top: 4px; right: 6px; width: 7px; height: 7px; border-radius: 99px; background: var(--lime); border: 1.5px solid var(--bg); }

/* panel notifikasi */
.t-notif { position: absolute; top: 62px; right: var(--pad); z-index: 55; width: min(360px, calc(100vw - 24px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-pop);
  animation: menuIn 0.16s cubic-bezier(.2,.9,.3,1); transform-origin: top right; overflow: hidden; }
.t-notif-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px 11px; border-bottom: 1px solid var(--line); }
.t-notif-readall { font-size: 11px; font-weight: 800; color: var(--pri-soft-ink); }
.t-notif-readall:hover { text-decoration: underline; }
.t-notif-body { max-height: 340px; overflow-y: auto; padding: 6px; }
.t-notif-item { display: flex; align-items: flex-start; gap: 11px; width: 100%; text-align: left; padding: 10px; border-radius: 11px; transition: background 0.12s; }
.t-notif-item:hover { background: var(--surface2); }
.t-notif-item.unread { background: color-mix(in oklab, var(--pri-soft) 40%, transparent); }
.t-notif-item.unread:hover { background: var(--pri-soft); }
.t-notif-ic { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; }
.t-notif-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--pri); flex-shrink: 0; margin-top: 5px; }
.t-topbar-user { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; }
.t-topbar-user:hover { border-color: var(--line-strong); box-shadow: 0 2px 10px rgba(12,17,24,0.07); }
/* avatar header ikut pola ikon notifikasi — warna token brand, senada di semua palet */
.t-topbar-user .t-avatar { background: var(--pri-soft) !important; color: var(--pri-soft-ink) !important; }
.t-topbar-user-meta { display: flex; flex-direction: column; line-height: 1.15; align-items: flex-start; }
.t-topbar-user-name { font-size: 12.5px; font-weight: 800; color: var(--ink); }
.t-topbar-user-role { font-size: 10px; font-weight: 700; color: var(--lime-deep); text-transform: uppercase; letter-spacing: 0.04em; }

/* bottom nav (mobile) */
.t-bottomnav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
}
.t-bottomnav-inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; max-width: 520px; margin: 0 auto; }
.t-bnav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 5px; border-radius: 12px; font-size: 9.5px; font-weight: 700; color: var(--faint); position: relative; }
.t-bnav-item.on { color: var(--pri-soft-ink); background: var(--pri-soft); }
[data-style="volt"] .t-bnav-item.on { color: var(--lime-deep); background: var(--lime-soft); }
.t-bnav-item .dot { position: absolute; top: 5px; right: 18%; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
/* ikon lime saat item nav aktif (teks & highlight tetap) */
.t-nav-item.on svg { color: var(--lime-deep); }
.t-nav-item.on svg path, .t-bnav-item.on:not(.bnav-kasir) svg path { stroke-width: 2.5; }
[data-theme="dark"] .t-nav-item.on svg { color: var(--lime); }
[data-style="navy"] .t-nav-item.on svg, [data-style="volt"] .t-nav-item.on svg { color: var(--side-active-ink); }
[data-style="arctic"] .t-nav-item.on svg { color: #d9f96a; }
[data-style="arctic"][data-theme="dark"] .t-nav-item.on svg { color: var(--side-active-ink); }
.t-bnav-item.on:not(.bnav-kasir) svg { color: var(--lime-deep); }
[data-theme="dark"] .t-bnav-item.on:not(.bnav-kasir) svg { color: var(--lime); }
/* tombol kasir menonjol di tengah */
.bnav-kasir { gap: 4px; }
.bnav-kasir-ic { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; margin-top: -20px;
  background: var(--pri); color: var(--pri-ink); box-shadow: 0 4px 14px color-mix(in oklab, var(--pri) 45%, transparent), 0 0 0 4px var(--bg); }
.bnav-kasir-ic svg { color: var(--lime); }
[data-style="volt"] .bnav-kasir-ic svg, [data-style="arctic"] .bnav-kasir-ic svg { color: #131a06; }
[data-style="volt"] .bnav-kasir-ic { background: var(--lime); color: #131a06; box-shadow: 0 4px 14px color-mix(in oklab, var(--lime) 50%, transparent), 0 0 0 4px var(--bg); }
.bnav-kasir.on { background: none; color: var(--pri-soft-ink); }
[data-style="volt"] .bnav-kasir.on { background: none; color: var(--lime-deep); }

/* ============ komponen ============ */
.t-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.t-card-pad { padding: 18px; }
.t-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.t-card-title { font-size: 13.5px; font-weight: 800; letter-spacing: -0.01em; }
.t-card-link { font-size: 12px; font-weight: 700; color: var(--pri-soft-ink); display: inline-flex; align-items: center; gap: 3px; }
.t-card-link:hover { text-decoration: underline; }

.t-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; border-radius: var(--radius-sm); transition: background 0.12s, border-color 0.12s, transform 0.05s; white-space: nowrap; }
.t-btn:active { transform: scale(0.98); }
.t-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.t-btn-md { padding: 10px 16px; font-size: 13px; }
.t-btn-sm { padding: 7px 12px; font-size: 12px; }
.t-btn-lg { padding: 13px 20px; font-size: 14px; border-radius: var(--radius-sm); }
.t-btn-full { width: 100%; }
.t-btn-primary { background: var(--pri); color: var(--pri-ink); }
.t-btn-primary:hover { background: var(--pri-hov); }
.t-btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.t-btn-secondary:hover { border-color: var(--faint); background: var(--surface2); }
.t-btn-soft { background: var(--pri-soft); color: var(--pri-soft-ink); }
.t-btn-soft:hover { background: color-mix(in oklab, var(--pri-soft) 80%, var(--pri) 12%); }
.t-btn-ghost { color: var(--muted); }
.t-btn-ghost:hover { background: var(--surface2); color: var(--ink); }
.t-btn-danger { background: var(--bad-soft); color: var(--bad); }
.t-btn-lime { background: var(--lime); color: #131a06; }
.t-btn-lime:hover { background: #d6f95e; }

.t-iconbtn { width: 34px; height: 34px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border: 1px solid var(--line); background: var(--surface); flex-shrink: 0; transition: all 0.12s; }
.t-iconbtn:hover { color: var(--ink); border-color: var(--line-strong); }

.t-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; padding: 2.5px 9px; border-radius: 99px; letter-spacing: 0.01em; white-space: nowrap; }
.t-badge-neutral { background: var(--surface2); color: var(--muted); border: 1px solid var(--line); }
.t-badge-ok { background: var(--ok-soft); color: var(--ok); }
.t-badge-warn { background: var(--warn-soft); color: var(--warn); }
.t-badge-bad { background: var(--bad-soft); color: var(--bad); }
.t-badge-info { background: var(--info-soft); color: var(--info); }
.t-badge-pri { background: var(--pri-soft); color: var(--pri-soft-ink); }
.t-badge-lime { background: var(--lime-soft); color: var(--lime-deep); }

.t-avatar { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }

.t-search { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; height: 40px; color: var(--faint); flex: 1; min-width: 0; transition: border-color 0.12s; }
.t-search:focus-within { border-color: var(--pri); }
.t-search input { flex: 1; border: none; outline: none; background: none; height: 100%; min-width: 0; }
.t-search input::placeholder { color: var(--faint); }
.t-search-clear { color: var(--faint); display: flex; }

.t-seg { display: inline-flex; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.t-seg-btn { padding: 6px 14px; font-size: 12px; font-weight: 700; color: var(--muted); border-radius: calc(var(--radius-sm) - 4px); transition: all 0.12s; white-space: nowrap; }
.t-seg-btn.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
[data-theme="dark"] .t-seg-btn.on { background: var(--line-strong); }
.t-seg-sm .t-seg-btn { padding: 4px 10px; font-size: 11px; }

/* chips kategori */
.t-chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.t-chips::-webkit-scrollbar { display: none; }
.t-chip { padding: 7px 14px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--line); white-space: nowrap; transition: all 0.12s; }
.t-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.t-chip.on { background: var(--pri); color: var(--pri-ink); border-color: var(--pri); }
[data-style="volt"] .t-chip.on { background: #0d1117; color: #d9f96a; border-color: #0d1117; }

/* stat */
.t-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.t-stat.clickable { cursor: pointer; transition: border-color 0.12s; }
.t-stat.clickable:hover { border-color: var(--line-strong); }
.t-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.t-stat-label { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.t-stat-ic { color: var(--lime-deep); display: flex; }
.t-stat-value { font-size: clamp(15px, 1.6vw, 18px); font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.t-stat-sub { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 5px; }
.t-trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; }
.t-trend.up { color: var(--ok); }
.t-trend.down { color: var(--bad); }

/* bars */
.t-bars { display: flex; align-items: stretch; gap: 6px; }
.t-bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; position: relative; min-width: 0; }
.t-bar { width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: var(--pri-soft); transition: background 0.12s, height 0.3s; }
.t-bar.hot { background: var(--lime); }
[data-theme="dark"] .t-bar.hot { background: var(--lime); }
.t-bar-label { font-size: 9.5px; font-weight: 700; color: var(--faint); white-space: nowrap; }
@media (max-width: 560px) { .t-bar-col:nth-child(even) .t-bar-label { visibility: hidden; } }
.t-bar-tip { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 7px; white-space: nowrap; z-index: 5; pointer-events: none; }

.t-donut { position: relative; flex-shrink: 0; }
.t-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.t-donut-top { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.t-donut-sub { font-size: 10px; color: var(--muted); font-weight: 600; }

/* sheet / modal */
.t-sheet-root { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.t-sheet-bg { position: absolute; inset: 0; background: rgba(8, 11, 16, 0.5); animation: fadeIn 0.18s; }
.t-sheet { position: relative; background: var(--surface); border-radius: var(--radius-lg); width: min(460px, calc(100vw - 32px)); max-height: min(82vh, 720px); display: flex; flex-direction: column; box-shadow: var(--shadow-pop); animation: popIn 0.22s cubic-bezier(0.2, 0.9, 0.3, 1); }
.t-sheet-wide { width: min(640px, calc(100vw - 32px)); }
.t-sheet-grab { display: none; }
.t-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 10px; }
.t-sheet-title { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; }
.t-sheet-body { padding: 6px 20px 20px; overflow-y: auto; flex: 1; }
.t-sheet-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; }

/* empty */
.t-empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.t-empty-ic { width: 56px; height: 56px; border-radius: 18px; background: var(--surface2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: var(--faint); }
.t-empty-title { font-size: 14px; font-weight: 800; color: var(--ink); }
.t-empty-sub { font-size: 12px; margin-top: 4px; margin-bottom: 14px; }

/* field */
.t-field { display: flex; flex-direction: column; gap: 6px; }
.t-field-label { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.t-input, .t-field input, .t-field select, .t-field textarea { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface); outline: none; width: 100%; transition: border-color 0.12s; }
.t-field input:focus, .t-field select:focus, .t-input:focus { border-color: var(--pri); }

/* filter dropdown */
.t-filter { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px 7px 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow); transition: border-color 0.14s, box-shadow 0.14s, background 0.14s; cursor: pointer; flex-shrink: 0; }
.t-filter:hover { border-color: var(--faint); box-shadow: 0 2px 8px rgba(12, 17, 24, 0.07); }
.t-filter.on { border-color: var(--pri); background: var(--pri); }
.t-filter-ic { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: var(--surface2); color: var(--muted); flex-shrink: 0; transition: background 0.14s, color 0.14s; }
.t-filter.on .t-filter-ic { background: var(--pri); color: var(--lime); }
.t-filter-text { display: flex; flex-direction: column; line-height: 1.1; }
.t-filter-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.t-filter.on .t-filter-label { color: rgba(255,255,255,0.72); }
.t-filter-value { font-size: 12.5px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.t-filter.on .t-filter-value { color: #fff; }
.t-filter-chev { color: var(--faint); flex-shrink: 0; }
.t-filter.on .t-filter-chev { color: rgba(255,255,255,0.85); }
.t-filter select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; appearance: none; border: none; font-size: 16px; }
.t-filter.act { border-color: var(--pri); box-shadow: 0 2px 10px rgba(12, 17, 24, 0.09); }
.t-filter.act .t-filter-chev { transform: rotate(180deg); }
.t-filter-chev { transition: transform 0.2s ease; }

/* menu popover bergaya */
.t-menu-wrap { position: relative; display: inline-flex; }
.t-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 200px; max-height: 320px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-pop);
  padding: 6px; transform-origin: top left; animation: menuIn 0.16s cubic-bezier(.2,.9,.3,1); }
.t-menu.r { left: auto; right: 0; transform-origin: top right; }
.t-menu.up { top: auto; bottom: calc(100% + 8px); transform-origin: bottom left; }
@keyframes menuIn { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
.t-menu-group + .t-menu-group { margin-top: 4px; padding-top: 5px; border-top: 1px solid var(--line); }
.t-menu-label { font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding: 6px 10px 3px; }
.t-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink); text-align: left; transition: background 0.12s; }
.t-menu-item:hover { background: var(--surface2); }
.t-menu-item.on { background: var(--pri-soft); color: var(--pri-soft-ink); font-weight: 800; }
.t-menu-item.accent { color: var(--pri-soft-ink); font-weight: 700; }
.t-menu-item-ic { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface2); color: var(--muted); flex-shrink: 0; }
.t-menu-item.on .t-menu-item-ic { background: var(--pri); color: var(--pri-ink); }
.t-menu-item.accent .t-menu-item-ic { background: var(--pri-soft); color: var(--pri-soft-ink); }
.t-menu-check { color: var(--pri-soft-ink); flex-shrink: 0; }
.t-menu-hint { display: block; font-size: 10.5px; font-weight: 600; color: var(--faint); margin-top: 1px; }

/* hero ringkasan beranda */
.db-hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 22px 24px; color: #f3f6ef;
  background: radial-gradient(120% 140% at 100% 0%, var(--hero-a, #1d2a4d) 0%, var(--hero-b, #0e1525) 55%, var(--hero-c, #0b0f1a) 100%); border: 1px solid rgba(255,255,255,0.06); }
[data-style="volt"] .db-hero { background: radial-gradient(120% 140% at 100% 0%, #1c2510 0%, #11160b 55%, #0c0f08 100%); }
@media (max-width: 640px) {
  .db-hero { min-height: 232px; padding: 34px 20px 38px; display: flex; flex-direction: column; justify-content: center; }
  .db-hero-value { margin-top: 12px; }
  .db-hero-sub { margin-top: 13px; }
}
.db-hero-glow { position: absolute; top: -40%; right: -10%; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--lime) 42%, transparent), transparent 70%); pointer-events: none; }
.db-hero-deco { position: absolute; right: -62px; bottom: -66px; width: 400px; height: 320px; pointer-events: none; color: var(--hero-b, #312E81); }
[data-style="navy"] .db-hero-deco { color: var(--hero-b, #0d1b3f); }
[data-style="volt"] .db-hero-deco, [data-style="arctic"] .db-hero-deco { color: #11160b; }
@media (max-width: 560px) { .db-hero-deco { width: 270px; height: 216px; right: -42px; bottom: -45px; } }
[data-style="glacier"] .db-hero-glow, [data-style="navy"] .db-hero-glow, [data-style="mono"] .db-hero-glow { display: none; }
.db-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; position: relative; z-index: 1; flex-wrap: wrap; }
.db-hero-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; color: rgba(243,246,239,0.62); display: flex; align-items: center; gap: 7px; }
.db-hero-value { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-top: 6px; }
.db-hero-sub { font-size: 12px; color: rgba(243,246,239,0.6); margin-top: 7px; }
.db-hero-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.db-hero-trend.up { background: color-mix(in oklab, var(--lime) 26%, transparent); color: var(--lime); }
.db-hero-trend.down { background: rgba(243,122,144,0.18); color: #ff9fae; }
.db-hero-mini { display: flex; gap: 22px; position: relative; z-index: 1; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; }
.db-hero-mini-item { min-width: 0; }
.db-hero-mini-label { font-size: 10.5px; font-weight: 700; color: rgba(243,246,239,0.55); letter-spacing: 0.03em; }
.db-hero-mini-value { font-size: 17px; font-weight: 800; margin-top: 3px; letter-spacing: -0.01em; white-space: nowrap; }
.db-hero-spark { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.db-hero-spark i { width: 7px; border-radius: 3px 3px 0 0; background: rgba(243,246,239,0.22); display: block; transition: height 0.4s; }
.db-hero-spark i.hot { background: var(--lime); }

/* hero sentris (gaya fintech terpusat) */
.db-hero.sentris { text-align: center; padding: 26px 22px 20px; }
.hero-c-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; color: rgba(243,246,239,0.6); }
.hero-c-value { font-size: clamp(34px, 5vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-top: 8px; }
.hero-c-sub { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; font-size: 11.5px; color: rgba(243,246,239,0.6); flex-wrap: wrap; }
.hero-acts { display: flex; justify-content: center; gap: clamp(14px, 4vw, 26px); margin-top: 20px; }
.hero-act { display: flex; flex-direction: column; align-items: center; gap: 7px; color: rgba(243,246,239,0.78); font-size: 10.5px; font-weight: 700; cursor: pointer; }
.hero-act-ic { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.13); display: flex; align-items: center; justify-content: center; color: #fff; transition: background 0.15s, transform 0.15s; }
.hero-act:hover .hero-act-ic { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.hero-act.hot .hero-act-ic { background: var(--lime); color: #131a06; box-shadow: 0 6px 20px color-mix(in oklab, var(--lime) 42%, transparent); }
.hero-act.hot { color: var(--lime); }
.hero-banner { margin-top: 20px; width: 100%; display: flex; gap: 11px; align-items: center; text-align: left; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.09); border-radius: 14px; padding: 11px 14px; cursor: pointer; font-size: 11.5px; line-height: 1.5; color: rgba(243,246,239,0.85); transition: background 0.15s; }
.hero-banner:hover { background: rgba(255,255,255,0.14); }
.hero-banner strong { color: #fff; }
.hero-banner-ic { width: 30px; height: 30px; border-radius: 10px; background: color-mix(in oklab, var(--lime) 25%, transparent); color: var(--lime); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* hero menyatu sampai header (bleed) */
.hero-bleed .t-topbar { position: relative; z-index: 5; background: transparent; border-bottom: none; backdrop-filter: none; max-width: 1280px; width: 100%; margin: 0 auto; }
.hero-bleed .t-topbar-title { color: #fff; }
.hero-bleed .t-topbar-sub, .hero-bleed .t-topbar-crumb, .hero-bleed .t-topbar-dot { color: rgba(243,246,239,0.65); }
.hero-bleed .t-topbar-crumb:hover { color: #fff; }
.hero-bleed .t-iconbtn { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.14); color: #fff; }
.hero-bleed .t-has-dot::after { border-color: transparent; }
.hero-bleed .t-topbar-user { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.14); }
.hero-bleed .t-topbar-user .t-avatar { background: rgba(255,255,255,0.16) !important; color: #fff !important; }
.hero-bleed .t-topbar-user-name { color: #fff; }
.hero-bleed .t-topbar-user-role { color: var(--lime); }
.hero-bleed .t-topbar-date { background: rgba(255,255,255,0.12); border-color: transparent; color: rgba(243,246,239,0.8); }
.hero-bleed .t-topbar-date svg, .hero-bleed .t-topbar-badge svg { color: var(--lime); }
.hero-bleed .t-topbar-badge { background: rgba(255,255,255,0.12); border-color: transparent; }
.hero-bleed .db-hero.sentris { margin: calc(-74px - var(--pad) - env(safe-area-inset-top, 0px)) calc(var(--pad) * -1) 0; border-radius: 0 0 26px 26px; border: none; padding-top: calc(80px + var(--pad) + env(safe-area-inset-top, 0px)); padding-bottom: 30px; }
/* varian "menyiku ke bawah" (gaya sheet Tandai): hero rata, konten naik dengan sudut atas membulat */
html[data-cap="down"] .hero-bleed .db-hero.sentris { border-radius: 0; min-height: 290px; padding-bottom: 64px; }
html[data-cap="down"] .hero-bleed .db-hero.sentris::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: var(--bg); border-radius: 26px 26px 0 0; z-index: 2; }

/* slot foto produk */
.photo-slot { position: relative; border-radius: 14px; border: 1.5px dashed var(--line-strong); background: var(--surface2); color: var(--faint); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; transition: border-color 0.15s, background 0.15s; }
.photo-slot:hover { border-color: var(--pri); color: var(--pri-soft-ink); background: var(--pri-soft); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot-cam { position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 7px; background: var(--pri); color: var(--pri-ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(12,17,24,0.25); }

/* toast */
.t-toast { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 700; padding: 10px 18px; border-radius: 99px; z-index: 200; display: flex; align-items: center; gap: 8px; animation: toastIn 0.25s cubic-bezier(0.2, 0.9, 0.3, 1); box-shadow: var(--shadow-pop); white-space: nowrap; }
@media (min-width: 1024px) { .t-toast { bottom: 28px; } }

/* logo */
.t-logo { display: flex; align-items: center; }
.t-logo-mark { background: var(--lime); color: #131a06; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.t-logo-word { font-weight: 800; letter-spacing: -0.04em; }

/* tabel data */
.t-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.t-table th { text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t-table tr:last-child td { border-bottom: none; }
.t-table tbody tr { transition: background 0.1s; }
.t-table tbody tr.clickable { cursor: pointer; }
.t-table tbody tr.clickable:hover { background: var(--surface2); }
.t-table .r { text-align: right; font-variant-numeric: tabular-nums; }

/* tabel rekapitulasi — header memakai warna brand gelap agar kontras di semua palet */
.rekap-table thead th { background: var(--hero-b, #4F46E5); color: var(--lime, #A3E635); border-bottom: none; }
.rekap-table tbody tr.hi td { background: var(--lime-soft); }
.rekap-table tbody tr.lo td { background: color-mix(in oklab, var(--warn) 13%, var(--surface)); }
[data-theme="dark"] .rekap-table tbody tr.lo td { background: color-mix(in oklab, var(--warn) 18%, var(--surface)); }

/* list item row (mobile-friendly) */
.t-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.1s; }
.t-row:last-child { border-bottom: none; }
.t-row:hover { background: var(--surface2); }
.t-row-main { flex: 1; min-width: 0; }
.t-row-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-row-sub { font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-row-end { text-align: right; flex-shrink: 0; }

/* produk thumbnail placeholder */
.t-thumb { border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; position: relative; overflow: hidden; }

/* ============ POS kasir ============ */
.pos-layout { display: grid; grid-template-columns: 1fr 380px; gap: 0; flex: 1; min-height: 0; }
.pos-products { padding: 18px var(--pad); overflow-y: auto; min-width: 0; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.pos-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; cursor: pointer; text-align: left; transition: border-color 0.12s, transform 0.08s; display: flex; flex-direction: column; gap: 8px; position: relative; }
.pos-item:hover { border-color: var(--pri); }
.pos-item:active { transform: scale(0.98); }
.pos-item-name { font-size: 12.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pos-item-price { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pos-item-stock { font-size: 10px; color: var(--faint); font-weight: 600; }
.pos-item-qty { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--pri); color: var(--pri-ink); font-size: 11px; font-weight: 800; min-width: 22px; height: 22px; border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 6px; box-shadow: 0 0 0 2px var(--surface); }
[data-style="volt"] .pos-item-qty { background: var(--lime); color: #131a06; }

/* toggle grid / list */
.pos-viewtoggle { display: flex; gap: 2px; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px; flex-shrink: 0; }
.pos-viewtoggle button { width: 30px; height: 28px; border: none; background: transparent; border-radius: calc(var(--radius-sm) - 2px); color: var(--faint); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.12s, color 0.12s; }
.pos-viewtoggle button.on { background: var(--surface); color: var(--pri); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }

/* tampilan daftar */
.pos-list { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.pos-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px 8px 8px; cursor: pointer; text-align: left; width: 100%; transition: border-color 0.12s, transform 0.08s; }
.pos-row:hover { border-color: var(--pri); }
.pos-row:active { transform: scale(0.995); }
.pos-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pos-row-name { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.pos-row-meta { font-size: 11px; color: var(--faint); font-weight: 600; }
.pos-row-price { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.pos-row-qty { flex-shrink: 0; background: var(--pri); color: var(--pri-ink); font-size: 11px; font-weight: 800; min-width: 22px; height: 22px; border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
[data-style="volt"] .pos-row-qty { background: var(--lime); color: #131a06; }

.pos-cart { background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.pos-cart-head { padding: 18px 20px 12px; display: flex; align-items: center; justify-content: space-between; }
.pos-cart-items { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: 0 20px; }
.pos-cart-line { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.pos-cart-line:last-child { border-bottom: none; }
.pos-qty { display: inline-flex; align-items: center; gap: 2px; background: var(--surface2); border: 1px solid var(--line); border-radius: 99px; padding: 2px; }
.pos-qty button { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.pos-qty button:hover { background: var(--surface); color: var(--ink); }
.pos-qty span { font-size: 12.5px; font-weight: 800; min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.pos-cart-foot { padding: 14px 20px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); flex-shrink: 0; }
.pos-total-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 3px 0; font-variant-numeric: tabular-nums; }
.pos-total-row.grand { font-size: 17px; font-weight: 800; color: var(--ink); padding-top: 8px; letter-spacing: -0.02em; }

/* mobile cart pill */
.pos-cartbar { display: none; position: fixed; left: 12px; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 60; }
.pos-cartbar button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--pri); color: var(--pri-ink); border-radius: 99px; padding: 14px 20px; font-size: 13.5px; font-weight: 800; box-shadow: var(--shadow-pop); }
[data-style="volt"] .pos-cartbar button { background: var(--lime); color: #131a06; }

/* meja F&B */
.fnb-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 12px; }
.fnb-table { border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); padding: 14px 12px; text-align: center; cursor: pointer; transition: all 0.12s; }
.fnb-table:hover { border-color: var(--pri); }
.fnb-table.terisi { background: var(--pri-soft); border-color: color-mix(in oklab, var(--pri) 35%, transparent); }
.fnb-table.dipesan { background: var(--warn-soft); border-color: color-mix(in oklab, var(--warn) 35%, transparent); }
.fnb-table-name { font-size: 15px; font-weight: 800; }
.fnb-table-sub { font-size: 10px; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* numpad pembayaran */
.pay-numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-numpad button { padding: 14px; border-radius: var(--radius-sm); background: var(--surface2); border: 1px solid var(--line); font-size: 16px; font-weight: 800; transition: background 0.1s; }
.pay-numpad button:hover { background: var(--line); }
.pay-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-method { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; font-size: 13px; transition: all 0.12s; background: var(--surface); }
.pay-method.on { border-color: var(--pri); background: var(--pri-soft); color: var(--pri-soft-ink); }

/* login */
.login-root { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-brand { background: radial-gradient(120% 140% at 100% 0%, #4F46E5 0%, #312E81 55%, #1E1B4B 100%); color: #f2f5ec; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-brand-deco { position: absolute; right: -70px; bottom: -76px; width: 440px; height: 350px; pointer-events: none; z-index: 0; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--bg); }
.login-card { width: min(400px, 100%); }
.tenant-pick { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 14px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: all 0.12s; }
.tenant-pick:hover { border-color: var(--pri); transform: translateY(-1px); }

/* animasi */
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.96) translateY(8px); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes slideUp { from { transform: translateY(100%); } }

/* util */
.db-2col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.db-2col > * { min-width: 0; }
@media (max-width: 1023px) { .db-2col { grid-template-columns: minmax(0, 1fr); } }
.flex { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.muted { color: var(--muted); }
.scroll-x { overflow-x: auto; }

/* sembunyikan garis scrollbar — tetap bisa di-scroll */
.t-menu, .t-notif-body, .t-sheet-body, .pos-cart-items, .pos-products, .t-chips, .scroll-x, .t-nav, .fnb-tables {
  scrollbar-width: none; -ms-overflow-style: none;
}
.t-menu::-webkit-scrollbar, .t-notif-body::-webkit-scrollbar, .t-sheet-body::-webkit-scrollbar, .pos-cart-items::-webkit-scrollbar,
.pos-products::-webkit-scrollbar, .t-chips::-webkit-scrollbar, .scroll-x::-webkit-scrollbar, .t-nav::-webkit-scrollbar, .fnb-tables::-webkit-scrollbar {
  display: none; width: 0; height: 0;
}

/* gaya B card beranda: ikon header, chip stok menipis, chip puncak */
.db-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.db-cards .db-span2 { grid-column: 1 / -1; }
.db-cards .db-rowspan2 { grid-row: span 2; }
.db-cards .db-colR { grid-column: 2; }
@media (max-width: 860px) { .db-cards { grid-template-columns: minmax(0, 1fr); } .db-cards .db-span2 { grid-column: auto; } .db-cards .db-rowspan2 { grid-row: auto; } .db-cards .db-colR { grid-column: auto; } }
.db-card-ic { width: 24px; height: 24px; border-radius: 8px; background: var(--pri); color: var(--lime); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.db-lowchip { font-size: 11px; font-weight: 800; border: 1px solid color-mix(in oklab, var(--warn) 35%, var(--line)); background: var(--warn-soft); color: var(--warn); border-radius: 99px; padding: 4px 11px; cursor: pointer; }
.db-lowchip:hover { border-color: var(--warn); }
.db-peak { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 11px; font-weight: 800; background: var(--lime-soft); color: var(--lime-deep); border-radius: 99px; padding: 4px 11px; }

/* struk cetak */
.receipt-print { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
@media print {
  body * { visibility: hidden !important; }
  .receipt-print, .receipt-print * { visibility: visible !important; }
  .receipt-print { position: absolute !important; left: 0 !important; top: 0 !important; width: 72mm !important; max-width: none !important; border: none !important; box-shadow: none !important; }
  .t-sheet-root { position: static !important; }
}

/* ============ responsif ============ */
@media (max-width: 1023px) {
  .db-filters { justify-content: center; }
  :root { --pad: 16px; }
  .t-side { display: none; }
  .t-bottomnav { display: block; }
  .t-page { padding-bottom: 96px; }
  .pos-layout { display: block; }
  .pos-cart { display: none; }
  .pos-cartbar { display: block; }
  .pos-products { padding-bottom: 150px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .login-root { grid-template-columns: 1fr; }
  .login-brand { padding: 40px 24px 28px; gap: 24px; min-height: 100dvh; }
  .login-form-side { padding: 40px 24px 24px; min-height: 100dvh; align-items: flex-start; }
  .login-root.m-landing .login-form-side { display: none; }
  .login-root.m-form .login-brand { display: none; }
  /* sheet jadi bottom sheet */
  .t-sheet-root { align-items: flex-end; }
  .t-sheet { width: 100%; max-width: 560px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 88vh; animation: slideUp 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
  .t-sheet-wide { width: 100%; }
  .t-sheet-grab { display: block; width: 40px; height: 4px; border-radius: 99px; background: var(--line-strong); margin: 10px auto 0; }
  .t-sheet-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); position: sticky; bottom: 0; background: var(--surface); }
  .hide-mobile { display: none !important; }
}
@media (max-width: 560px) {
  .grid2:not(.stats) { grid-template-columns: 1fr; }
  .grid2.stats { gap: 10px; }
  .pos-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
}
@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
}
@media (max-width: 1240px) {
  .pos-layout { grid-template-columns: 1fr 340px; }
}

/* ═══ Onboarding & Login gaya Wakiku (cream, indigo, pill) ═══ */
.wk-root { min-height: 100vh; min-height: 100dvh; background: #ffffff; display: flex; align-items: center; justify-content: center; padding: 28px 18px; }
.wk-card { position: relative; width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.wk-skip { position: absolute; top: -8px; right: 0; font-size: 13px; font-weight: 700; color: #7c7bb0; background: none; }
.wk-mark { width: 74px; height: 74px; display: block; }
.wk-word { margin-top: 14px; font-size: 30px; font-weight: 800; letter-spacing: 0.06em; color: #4F46E5; }
.wk-tag { margin-top: 6px; font-family: var(--font); font-style: italic; font-weight: 500; font-size: 15px; color: #6366F1; }
.wk-icons { display: flex; gap: 20px; margin: 28px 0 22px; color: #4F46E5; }
.wk-h { font-size: 22px; font-weight: 800; color: #312E81; letter-spacing: -0.01em; }
.wk-b { margin-top: 10px; font-size: 14px; line-height: 1.7; color: #6366F1; max-width: 320px; }
.wk-dots { display: flex; gap: 7px; margin: 24px 0; }
.wk-dot { width: 8px; height: 8px; border-radius: 99px; background: #CFCDE6; transition: all .2s; padding: 0; border: none; cursor: pointer; }
.wk-dot.on { background: #4F46E5; width: 22px; }
.wk-btn { background: #4F46E5; color: #fff; font-size: 15px; font-weight: 800; padding: 15px 44px; border-radius: 99px; box-shadow: 0 10px 22px rgba(79,70,229,0.26); transition: background .15s; }
.wk-btn:hover { background: #4338CA; }
.wk-btn:disabled { opacity: .6; }
.wk-full { width: 100%; }
.wk-illus { margin-top: 32px; color: #4F46E5; }
.wk-illus svg { width: 156px; height: auto; display: block; }
.wk-auth { max-width: 384px; }
.wk-title { margin-top: 16px; font-size: 23px; font-weight: 800; color: #312E81; letter-spacing: -0.01em; }
.wk-title b { color: #4F46E5; }
.wk-sub { margin-top: 5px; font-size: 13.5px; color: #7c7bb0; margin-bottom: 24px; }
.wk-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1.5px solid #E2E0F0; border-radius: 99px; padding: 14px; font-size: 14px; font-weight: 800; color: #312E81; transition: border-color .15s; }
.wk-google:hover { border-color: #4F46E5; }
.wk-google:disabled { opacity: .6; }
.wk-or { display: flex; align-items: center; gap: 12px; width: 100%; margin: 18px 0; }
.wk-or::before, .wk-or::after { content: ""; flex: 1; height: 1px; background: #E2E0F0; }
.wk-or span { font-size: 11.5px; font-weight: 700; color: #A6A5C6; }
.wk-inp { width: 100%; background: #fff; border: 1.5px solid #E2E0F0; border-radius: 99px; padding: 14px 20px; font-size: 14px; color: #1f1d3d; margin-bottom: 12px; transition: border-color .15s; }
.wk-inp:focus { outline: none; border-color: #4F46E5; }
.wk-inp::placeholder { color: #A6A5C6; }
.wk-forgot { width: 100%; text-align: right; margin: -2px 0 16px; }
.wk-forgot a { font-size: 12.5px; }
.wk-forgot a, .wk-alt a { color: #4F46E5; font-weight: 800; }
.wk-alt { margin-top: 18px; font-size: 13px; color: #7c7bb0; }

/* Onboarding varian INDIGO (bg indigo, logo & teks putih) */
.wk-onb { background: #4F46E5; }
.wk-onb .wk-skip { color: rgba(255,255,255,.72); }
.wk-onb .wk-word { color: #ffffff; }
.wk-onb .wk-tag { color: #A3E635; }
.wk-onb .wk-icons { color: #ffffff; }
.wk-onb .wk-h { color: #ffffff; }
.wk-onb .wk-b { color: rgba(255,255,255,.84); }
.wk-onb .wk-dot { background: rgba(255,255,255,.38); }
.wk-onb .wk-dot.on { background: #A3E635; }
.wk-onb .wk-btn { background: #A3E635; color: #1E1B4B; box-shadow: 0 12px 24px rgba(0,0,0,.22); }
.wk-onb .wk-btn:hover { background: #b9ea25; }
.wk-onb .wk-illus { color: #ffffff; }

/* Hero Glass Split (gaya sentris baru) */
.db-hero.sentris.glass { text-align: left; }
.hero-g-grid { display: flex; justify-content: space-between; align-items: stretch; gap: 14px; position: relative; z-index: 3; }
.hero-g-grid > div:first-child { flex: 1 1 auto; min-width: 0; }
.hero-g-value { font-size: clamp(22px, 6vw, 42px); white-space: nowrap; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-top: 8px; }
.hero-g-sub { font-size: 11.5px; color: rgba(243,246,239,0.62); margin-top: 10px; }
.hero-glass { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(8px); border-radius: 16px; padding: 11px 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; flex: 0 0 122px; }
.hero-glass-lab { font-size: 10px; font-weight: 700; color: rgba(243,246,239,0.7); }
.hero-glass-spark { display: flex; align-items: flex-end; gap: 3px; height: 48px; }
.hero-glass-spark i { flex: 1; min-width: 3px; border-radius: 3px; background: rgba(255,255,255,0.32); display: block; transition: height 0.4s; }
.hero-glass-spark i.hot { background: var(--lime); }
