/* Dashboard Toko Bayiku — design tokens, layout, components. No external assets. */

:root {
  /* Palette from the BAYIKU logo: teal-blue cap, deep-blue lettering,
     warm coral cheeks. */
  --bg: #edf5f9;
  --surface: #ffffff;
  --surface-2: #f3f9fc;
  --line: #d9e7ee;
  --text: #0f2a3a;
  --muted: #587485;
  --brand: #0a87ab;
  --brand-deep: #155f94;
  --brand-2: #ee8468;
  --brand-soft: #e0f1f7;
  --logo-bg: linear-gradient(160deg, #ffffff, #e6f6fb); /* the logo needs a light tile in both themes */
  --ok: #059669;
  --ok-soft: #e7f8f1;
  --bad: #dc2626;
  --bad-soft: #fdecec;
  --warn: #b45309;
  --warn-soft: #fef3e2;
  --shadow: 0 1px 2px rgba(8, 52, 78, .05), 0 8px 24px rgba(8, 52, 78, .07);
  --shadow-lg: 0 24px 60px rgba(8, 52, 78, .2);
  --radius: 14px;
  --radius-sm: 9px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sidebar: 248px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06141d;
    --surface: #0c202d;
    --surface-2: #11293a;
    --line: #1a394d;
    --text: #e3f1f7;
    --muted: #8aaabb;
    --brand: #38bde2;
    --brand-deep: #1f7fb8;
    --brand-2: #f59a7f;
    --brand-soft: #0d3346;
    --ok: #34d399;
    --ok-soft: #0f2e27;
    --bad: #f87171;
    --bad-soft: #3a1717;
    --warn: #fbbf24;
    --warn-soft: #3a2a0c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--brand); }
[hidden] { display: none !important; }

/* ---------- motion ---------- */
@keyframes naik { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pudar { from { opacity: 0; } to { opacity: 1; } }
@keyframes ayun { 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes melayang {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}
@keyframes putar { to { transform: rotate(360deg); } }
.naik { animation: naik .45s cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- login ---------- */
.login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 100%, rgba(238, 132, 104, .45), transparent 60%),
    linear-gradient(155deg, #04202f 0%, #08405d 40%, #0a6f95 75%, #0e93b8 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px;
}
.login-hero .gelembung {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
  animation: melayang 14s ease-in-out infinite;
}
.login-hero .g1 { width: 380px; height: 380px; background: #26c2ea; top: -90px; left: -70px; }
.login-hero .g2 { width: 300px; height: 300px; background: #f29274; bottom: 60px; right: -80px; animation-delay: -5s; }
.login-hero .g3 { width: 240px; height: 240px; background: #6fe3d6; top: 38%; left: 42%; animation-delay: -9s; opacity: .35; }
.login-hero > * { position: relative; }
.login-hero img {
  width: 168px; height: 168px; margin-bottom: 26px; padding: 16px; border-radius: 40px;
  background: var(--logo-bg);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .14), 0 22px 50px rgba(2, 24, 38, .45);
  animation: ayun 4s ease-in-out infinite;
}
.login-hero h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.02em; }
.login-hero p { margin: 0; font-size: 18px; opacity: .85; max-width: 30ch; }

.login-form {
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.kartu-login {
  width: min(380px, 100%);
}
.kartu-login h2 { font-size: 26px; margin: 0 0 24px; letter-spacing: -.01em; }

@media (max-width: 820px) {
  .login { grid-template-columns: 1fr; }
  .login-hero { padding: 32px 20px; min-height: 220px; }
}

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, select.input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: transform .08s, background .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-utama { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-utama:hover { box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 45%, transparent); }
.btn-lembut { background: var(--surface-2); border-color: var(--line); }
.btn-lembut:hover { background: var(--brand-soft); }
.btn-bahaya { background: var(--bad-soft); color: var(--bad); }
.btn-kecil { padding: 6px 11px; font-size: 13px; }
.btn-penuh { width: 100%; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: putar .7s linear infinite; }
.btn .spinner { width: 16px; height: 16px; }

.pesan { padding: 10px 13px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; animation: pudar .2s both; }
.pesan-bad { background: var(--bad-soft); color: var(--bad); }
.pesan-info { background: var(--brand-soft); color: var(--brand); }

.cek-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; max-height: 260px; overflow: auto; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.cek { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.cek input { accent-color: var(--brand); width: 16px; height: 16px; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 20px 14px;
}
.merek { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; font-weight: 700; letter-spacing: -.01em; }
.merek img { width: 46px; height: 46px; padding: 4px; border-radius: 13px; background: var(--logo-bg); box-shadow: var(--shadow); }
.nav { display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }
.nav-bawah { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }

.utama { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
.menu-btn { display: none; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.user-chip small { color: var(--muted); display: block; line-height: 1.1; font-size: 12px; }
.user-chip b { display: block; line-height: 1.2; font-size: 14px; }
.isi { padding: 28px; max-width: 1400px; width: 100%; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 20; left: 0; width: var(--sidebar); transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  .shell.nav-buka .sidebar { transform: none; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .isi { padding: 16px; }
  .user-chip small, .user-chip b { display: none; }
  .user-chip { padding: 4px; }
}

/* ---------- cards & tables ---------- */
.kartu { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.kartu-isi { padding: 22px; }
.baris-aksi { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.spasi { flex: 1; }
.baris-aksi .sub { margin: 0; color: var(--muted); }

.tabel-wrap { overflow-x: auto; }
table.tabel { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabel th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; }
.tabel td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabel tbody tr { transition: background .12s; }
.tabel tbody tr:hover { background: var(--surface-2); }
.tabel tbody tr:last-child td { border-bottom: 0; }
.tabel .angka { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabel td.aksi { white-space: nowrap; text-align: right; }
.tabel td.aksi .btn + .btn { margin-left: 6px; }

.lencana { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.lencana::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.l-ok { background: var(--ok-soft); color: var(--ok); }
.l-mati { background: var(--surface-2); color: var(--muted); }
.l-peran { background: var(--brand-soft); color: var(--brand); }
.l-peran::before { display: none; }
.redup { color: var(--muted); }

/* ---------- drawer & modal ---------- */
.tirai { position: fixed; inset: 0; z-index: 40; background: rgba(8, 10, 24, .62); animation: pudar .15s both; }
.laci {
  position: fixed; z-index: 41; top: 0; right: 0; bottom: 0;
  width: min(460px, 100%);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: laci-masuk .28s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes laci-masuk { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.laci header { padding: 22px 24px 8px; font-size: 20px; font-weight: 700; }
.laci .laci-isi { padding: 12px 24px; overflow: auto; flex: 1; }
.laci footer { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

.modal {
  position: fixed; z-index: 41; left: 50%; top: 50%;
  width: min(440px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  animation: naik .22s both;
}
.modal p { margin: 0 0 20px; }
.modal .tombol { display: flex; gap: 10px; justify-content: flex-end; }
.sandi-box { display: inline-block; font-family: var(--mono); font-size: 18px; letter-spacing: .06em; padding: 2px 10px; margin: 2px 2px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px dashed var(--line); user-select: all; }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 60; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); font-weight: 600; animation: naik .25s both; }

/* ---------- empty page ---------- */
.kosong { display: grid; place-items: center; min-height: 40vh; color: var(--muted); }
.kosong svg { width: 72px; height: 72px; opacity: .35; }
.sempit { max-width: 480px; }

/* ---------- reports ---------- */
.tunda-1 { animation-delay: .08s; }
.tunda-2 { animation-delay: .16s; }
.mono { font-family: var(--mono); font-size: 13px; }
.minus { color: var(--bad); font-weight: 700; }
.catatan { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.l-warn { background: var(--warn-soft); color: var(--warn); }
.btn svg { width: 16px; height: 16px; }

.diperbarui { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.filter { padding: 18px 20px 16px; margin-bottom: 18px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 14px; align-items: end; }
.filter-grid .lebar { grid-column: span 2; }
.filter-grid .field { margin-bottom: 12px; }
.cek-filter { margin-bottom: 12px; min-height: 42px; }
.filter-aksi { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 600px) { .filter-grid .lebar { grid-column: auto; } }

.hasil { transition: opacity .2s; }
.hasil.sedang-memuat { opacity: .45; pointer-events: none; }
.memuat { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 30vh; color: var(--muted); }

/* outlet status strip */
.strip-outlet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; box-shadow: var(--shadow); }
.strip-atas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.titik-baris { display: flex; flex-wrap: wrap; gap: 5px; }
.titik { width: 12px; height: 12px; border-radius: 4px; transition: transform .15s; }
.titik:hover { transform: scale(1.5); }
.titik.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.titik.off { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); animation: kedip 2s ease-in-out infinite; }
@keyframes kedip { 50% { opacity: .45; } }
.offline-daftar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.offline-item { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 10px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface-2); font-size: 14px; }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 18px; }
.kpi {
  --k1: var(--brand); --k2: var(--brand-2);
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
  padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kpi::after {
  content: ""; position: absolute; width: 160px; height: 160px; right: -60px; top: -70px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--k1) 22%, transparent), transparent 70%);
}
.kpi-ikon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--k1), var(--k2)); box-shadow: 0 8px 20px color-mix(in srgb, var(--k1) 35%, transparent); }
.kpi-ikon svg { width: 24px; height: 24px; }
.kpi-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi-angka { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.kpi-utama { --k1: var(--brand); --k2: var(--brand-deep); }
.kpi-utama .kpi-angka { background: linear-gradient(135deg, var(--k1), var(--k2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi-hijau { --k1: #12b886; --k2: #0fa3a3; }
.kpi-abu { --k1: #4f7184; --k2: #8cabbb; }
.kpi-biru { --k1: #38bde2; --k2: #1f6fb0; }
.kpi-oranye { --k1: #f6a35b; --k2: #ec6f6a; }
.kpi-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1250px) { .kpi-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.kpi-5 .kpi { flex-direction: column; align-items: flex-start; gap: 12px; }
.kpi-5 .kpi-ikon { width: 40px; height: 40px; border-radius: 12px; }
.kpi-5 .kpi-ikon svg { width: 20px; height: 20px; }
.kpi-banding { margin-top: 6px; font-size: 12px; font-weight: 700; line-height: 1.35; }
.naik-hijau { color: var(--ok); }
.turun-merah { color: var(--bad); }
.kpi-merah { --k1: #ef4444; --k2: #f97316; }

/* card header */
.kartu-kepala { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.kartu-kepala h2 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.kartu-sendiri { margin-bottom: 18px; }
.segmen-grup { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.segmen { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.segmen[aria-pressed="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.komposisi-isi { padding: 20px; min-height: 260px; }

/* donut */
.donat { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 28px; align-items: center; animation: pudar .3s both; }
.donat-cincin { position: relative; }
.donat-svg { width: 100%; display: block; transform: rotate(-90deg); }
.donat-alas { fill: none; stroke: var(--surface-2); stroke-width: 16; }
.donat-irisan { fill: none; stroke-width: 16; cursor: pointer; transition: opacity .2s, stroke-width .2s; }
.donat-irisan:hover { stroke-width: 19; }
.donat-irisan.samar, .legenda li.samar { opacity: .3; }
.donat-tengah { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 0 22%; pointer-events: none; }
.donat-tengah b { font-size: clamp(18px, 2vw, 24px); letter-spacing: -.02em; }
.donat-tengah span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.legenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legenda li { display: grid; grid-template-columns: 12px 1fr auto 58px; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; font-size: 14px; cursor: default; transition: background .15s, opacity .2s; }
.legenda li:hover { background: var(--surface-2); }
.legenda .warna { width: 12px; height: 12px; border-radius: 4px; background: var(--w); }
.legenda .nama { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.legenda .nilai, .legenda .pct { text-align: right; font-variant-numeric: tabular-nums; }
.legenda .pct { color: var(--muted); font-size: 13px; }
@media (max-width: 700px) { .donat { grid-template-columns: 1fr; } .donat-cincin { max-width: 240px; margin: 0 auto; } }

/* horizontal bars */
.batang { display: grid; gap: 8px; }
.batang-baris { display: grid; grid-template-columns: minmax(90px, 160px) 1fr minmax(80px, auto); gap: 12px; align-items: center; font-size: 14px; }
.batang-baris .nama { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batang-baris .nilai { text-align: right; font-variant-numeric: tabular-nums; }
.batang-jalur { height: 14px; border-radius: 7px; background: var(--surface-2); overflow: hidden; }
.batang-isi {
  height: 100%; border-radius: 7px; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, color-mix(in srgb, var(--w) 70%, transparent), var(--w));
  transition: transform .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s);
}

/* data table */
.tabel-data th.bisa-urut { cursor: pointer; user-select: none; white-space: nowrap; }
.tabel-data th.bisa-urut:hover { color: var(--text); }
.tabel-data th[aria-sort]::after { content: " ▾"; color: var(--brand); }
.tabel-data th[aria-sort="ascending"]::after { content: " ▴"; }
.tabel-data td { padding: 10px 16px; }
.tabel-data td.ada-bar { position: relative; z-index: 0; }
.tabel-data td.ada-bar::before {
  content: ""; position: absolute; z-index: -1; right: 8px; top: 7px; bottom: 7px; width: calc((100% - 16px) * var(--p, 0));
  border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 6%, transparent), color-mix(in srgb, var(--brand) 24%, transparent));
}
.tabel-data tfoot td { font-weight: 800; border-top: 2px solid var(--line); background: var(--surface-2); position: sticky; bottom: 0; }
.tabel-data .baris-offline td { color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 8px, var(--surface-2) 8px 16px); }
.tabel-data .penanda td { padding: 0; border: 0; height: 1px; }
.kosong-kecil { min-height: 0; gap: 8px; padding: 48px 20px; }
.kosong-kecil svg { width: 56px; height: 56px; }
.kosong-kecil p { margin: 0; }

/* sales: period filter */
.filter-grid .lebar-penuh { grid-column: 1 / -1; }
.periode-isi { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.periode-isi .tgl { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.periode-isi .tgl .input { width: auto; }

/* sales: chart cards */
.grid-grafik { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-bottom: 18px; }
.grid-grafik .donat { grid-template-columns: 1fr; gap: 18px; }
.grid-grafik .donat-cincin { width: min(220px, 100%); margin: 0 auto; }

/* line chart */
.garis { position: relative; }
.garis-svg { width: 100%; height: auto; display: block; overflow: visible; }
.garis-grid { stroke: var(--line); stroke-width: 1; }
.garis-sumbu { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.garis-stop-atas { stop-color: var(--brand); stop-opacity: .35; }
.garis-stop-bawah { stop-color: var(--brand); stop-opacity: 0; }
.garis-jalur { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; }
.garis-pandu { stroke: var(--muted); stroke-dasharray: 3 3; opacity: 0; }
.garis-titik { fill: var(--surface); stroke: var(--brand); stroke-width: 3; opacity: 0; }
.garis.aktif .garis-pandu, .garis.aktif .garis-titik { opacity: 1; }
.garis-lapis { fill: transparent; cursor: crosshair; }
.garis-info {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, calc(-100% - 14px));
  pointer-events: none; white-space: nowrap; padding: 6px 10px; border-radius: 9px;
  background: var(--text); color: var(--bg); font-size: 12px; box-shadow: var(--shadow-lg); display: grid; text-align: center;
}
.garis-info b { font-size: 14px; }
