/* ==========================================================================
   LKT One — Tema 3D, fase 2: shell dashboard (sidebar, header, footer, widget)
   Dimuat hanya bila LKT_TEMA_3D=true. Seluruh aturan di bawah body.tema3d.
   Mandiri: tidak bergantung pada aturan layout app.css (build lokal bisa beda).
   ========================================================================== */

body.tema3d {
  --t3-kertas: #fbf6ec; --t3-krem: #fbf2e0; --t3-emas: #a87a33; --t3-coklat: #8b5e1a;
  --t3-tinta: #3a2a10; --t3-marun: #9e1320; --t3-marun2: #7e0f1b;
  --t3-garis: rgba(168, 122, 51, .28); --t3-garis2: rgba(168, 122, 51, .5);
  --t3-gelap: #2b1a0c; --t3-gelap2: #3d2610; --t3-emasmuda: #e9c987;
  --t3-bayang: 0 1px 0 rgba(255,255,255,.7) inset, 0 10px 24px -12px rgba(90,55,12,.35), 0 2px 4px rgba(90,55,12,.12);
  --transit-text: var(--t3-tinta); --transit-text-soft: var(--t3-coklat); --transit-text-muted: #7b6540;
  --transit-primary: var(--t3-marun); --transit-primary-dark: var(--t3-marun2);
  --transit-border: var(--t3-garis); --transit-border-strong: var(--t3-garis2);
  --transit-panel: rgba(255, 250, 238, .9); --transit-panel-strong: #fffaf0; --transit-panel-soft: rgba(168,122,51,.08);
  --transit-shadow: 0 18px 50px -20px rgba(90,55,12,.4);
}

/* ---------- latar kertas ---------- */
body.tema3d:has(.dashboard-shell) {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--t3-tinta);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(233,201,135,.45), transparent 60%),
    radial-gradient(900px 480px at 100% 108%, rgba(158,19,32,.10), transparent 60%),
    linear-gradient(180deg, #fbf6ec, #f6ecd8);
  background-attachment: fixed;
}
body.tema3d .dashboard-shell { position: relative; background: transparent; }
body.tema3d .dashboard-shell::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .33  0 0 0 0 .15  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- layout (mandiri) ---------- */
body.tema3d .dashboard-shell :where(h1, h2, h3, h4, p, div, span, a, button, td, th, label, input, select, textarea, li) { font-family: inherit; }
body.tema3d .dashboard-shell { display: grid; grid-template-columns: 18rem minmax(0, 1fr); min-height: 100vh; }
body.tema3d .dashboard-content-wrap { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
body.tema3d .dashboard-content-wrap, body.tema3d .dashboard-main { background: transparent; }
body.tema3d .dashboard-main { flex: 1; min-width: 0; padding: 28px; }
body.tema3d .dashboard-overlay { display: none; }
body.tema3d .sidebar-link[hidden],
body.tema3d .user-menu-panel[hidden],
body.tema3d .dashboard-overlay[hidden] { display: none !important; }

/* ---------- sidebar: panel manifest gelap ---------- */
body.tema3d .dashboard-sidebar {
  position: sticky; top: 0; z-index: 2; height: 100vh; height: 100dvh; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; gap: 6px; padding: 22px 14px 18px;
  color: #f1e3c4;
  background:
    radial-gradient(420px 260px at 0% 0%, rgba(233,201,135,.16), transparent 70%),
    radial-gradient(360px 300px at 100% 100%, rgba(158,19,32,.28), transparent 70%),
    linear-gradient(180deg, var(--t3-gelap2), var(--t3-gelap));
  border-right: 1px solid rgba(233,201,135,.25);
  box-shadow: 8px 0 30px -14px rgba(43,26,12,.55), inset -1px 0 0 rgba(255,255,255,.04);
  scrollbar-width: thin; scrollbar-color: rgba(233,201,135,.35) transparent;
}
body.tema3d .dashboard-sidebar::after {
  content: ""; position: absolute; top: 0; right: 6px; bottom: 0; width: 0; pointer-events: none;
  border-right: 2px dotted rgba(233,201,135,.22);
}
body.tema3d .sidebar-brand {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 4px 6px 18px; margin-bottom: 6px;
  border-bottom: 1px dashed rgba(233,201,135,.35);
}
body.tema3d .sidebar-brand h1 {
  margin: 0; font-size: .74rem; line-height: 1.35; font-weight: 700; letter-spacing: .06em; color: var(--t3-emasmuda);
}
body.tema3d .sidebar-brand-mark {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--t3-gelap); background: radial-gradient(circle at 32% 28%, #fff3cf, var(--t3-emasmuda) 55%, #b98a3c);
  box-shadow: 0 0 0 2px rgba(233,201,135,.35), 0 0 0 5px rgba(233,201,135,.1), 0 6px 14px rgba(0,0,0,.4);
}
body.tema3d .sidebar-brand-mark::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed rgba(233,201,135,.55);
  animation: t3-putar 26s linear infinite;
}
body.tema3d .sidebar-brand-mark .icon { width: 22px; height: 22px; }
body.tema3d .sidebar-close {
  display: none; margin-left: auto; width: 36px; height: 36px; border-radius: 10px; place-items: center; cursor: pointer;
  color: var(--t3-emasmuda); background: rgba(233,201,135,.1); border: 1px solid rgba(233,201,135,.3);
}
body.tema3d .sidebar-close .icon { width: 18px; height: 18px; }
body.tema3d .sidebar-nav { display: grid; gap: 4px; align-content: start; }
body.tema3d .sidebar-link {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: rgba(241,227,196,.82); text-decoration: none; font-size: .86rem; font-weight: 500;
  border: 1px solid transparent; transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s, color .2s, border-color .25s, box-shadow .25s;
}
body.tema3d .sidebar-link-icon {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  color: var(--t3-emasmuda); background: rgba(233,201,135,.09); border: 1px solid rgba(233,201,135,.2);
  transition: background .25s, color .25s, transform .3s;
}
body.tema3d .sidebar-link-icon .icon { width: 18px; height: 18px; }
body.tema3d .sidebar-link-label { flex: 1; min-width: 0; }
body.tema3d .sidebar-link-arrow { display: none; }
body.tema3d .sidebar-link:hover {
  color: #fff; background: rgba(233,201,135,.1); border-color: rgba(233,201,135,.28); transform: translateX(4px);
}
body.tema3d .sidebar-link:hover .sidebar-link-icon { transform: rotate(-6deg) scale(1.06); }
body.tema3d .sidebar-link:focus-visible { outline: 2px solid var(--t3-emasmuda); outline-offset: 2px; }
/* aktif = karcis krem dengan takik */
body.tema3d .sidebar-link.is-active {
  color: var(--t3-tinta); font-weight: 600; transform: translateX(6px);
  background: linear-gradient(180deg, #fffaf0, #f6e9cd); border-color: rgba(233,201,135,.9);
  box-shadow: 0 10px 22px -10px rgba(0,0,0,.6), inset 0 1px 0 #fff;
}
body.tema3d .sidebar-link.is-active .sidebar-link-icon { color: #fff; background: linear-gradient(145deg, var(--t3-marun), var(--t3-marun2)); border-color: transparent; }
body.tema3d .sidebar-link.is-active::before {
  content: ""; position: absolute; left: -8px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: var(--t3-gelap); box-shadow: inset -2px 0 0 rgba(233,201,135,.6);
}
body.tema3d .sidebar-link.is-active::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--t3-marun); box-shadow: 0 0 0 3px rgba(158,19,32,.18);
}

/* ---------- header ---------- */
body.tema3d .dashboard-header {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px; background: rgba(251,246,236,.82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--t3-garis);
  box-shadow: 0 8px 24px -18px rgba(90,55,12,.5);
}
body.tema3d .dashboard-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--t3-garis2) 0 6px, transparent 6px 12px); opacity: .55;
}
body.tema3d .dashboard-header { flex-direction: row; flex-wrap: nowrap; align-items: center; }
body.tema3d .dashboard-header-main { display: flex; flex: 1; align-items: center; gap: 14px; min-width: 0; }
body.tema3d .dashboard-heading { min-width: 0; }
body.tema3d .dashboard-heading-kicker {
  display: inline-block; margin-bottom: 2px; padding: 2px 9px; border-radius: 99px; font-size: .68rem; font-weight: 600; letter-spacing: .08em;
  color: var(--t3-coklat); background: rgba(168,122,51,.12); border: 1px solid var(--t3-garis);
}
body.tema3d .dashboard-heading h2 { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--t3-tinta); letter-spacing: -.01em; }
body.tema3d .dashboard-heading p { margin: 2px 0 0; font-size: .78rem; color: #7b6540; }
body.tema3d .mobile-heading { display: none; align-items: center; gap: 8px; font-weight: 700; font-size: .78rem; color: var(--t3-tinta); }
body.tema3d .mobile-heading-mark { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--t3-marun); background: rgba(158,19,32,.1); }
body.tema3d .mobile-heading-mark .icon { width: 17px; height: 17px; }
body.tema3d .menu-toggle {
  display: none; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; cursor: pointer;
  color: var(--t3-coklat); background: #fffaf0; border: 1px solid var(--t3-garis2); box-shadow: var(--t3-bayang);
}
body.tema3d .menu-toggle .icon { width: 20px; height: 20px; }
body.tema3d .dashboard-actions { display: flex; align-items: center; gap: 10px; width: auto; flex: none; }
body.tema3d .notification-button {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  color: var(--t3-coklat); background: #fffaf0; border: 1px solid var(--t3-garis2); box-shadow: var(--t3-bayang);
  transition: transform .2s, box-shadow .2s;
}
body.tema3d .notification-button .icon { width: 20px; height: 20px; }
body.tema3d .notification-button:hover, body.tema3d .menu-toggle:hover { transform: translateY(-2px); }
body.tema3d .notification-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--t3-marun); box-shadow: 0 0 0 2px #fffaf0; }
body.tema3d .dashboard-user-dropdown { position: relative; width: auto; flex: none; }
body.tema3d .user-button {
  display: flex; width: auto; justify-content: flex-start; align-items: center; gap: 9px; height: 42px; padding: 0 12px 0 6px; border-radius: 99px; cursor: pointer;
  color: var(--t3-tinta); font: 600 .84rem/1 "Poppins", system-ui, sans-serif; background: #fffaf0; border: 1px solid var(--t3-garis2); box-shadow: var(--t3-bayang);
  transition: transform .2s, box-shadow .2s;
}
body.tema3d .user-button:hover { transform: translateY(-2px); }
body.tema3d .user-button:focus-visible, body.tema3d .menu-toggle:focus-visible, body.tema3d .notification-button:focus-visible { outline: 2px solid var(--t3-marun); outline-offset: 2px; }
body.tema3d .user-button-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--t3-marun), var(--t3-marun2)); }
body.tema3d .user-button-avatar .icon { width: 16px; height: 16px; }
body.tema3d .user-button-chevron .icon { width: 15px; height: 15px; color: var(--t3-coklat); transition: transform .25s; }
body.tema3d .dashboard-user-dropdown.is-open .user-button-chevron .icon { transform: rotate(180deg); }
body.tema3d .user-menu-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: 236px; padding: 12px; border-radius: 16px; z-index: 40;
  background: #fffaf0; border: 1px solid var(--t3-garis2); box-shadow: 0 24px 44px -16px rgba(90,55,12,.45);
  transform-origin: top right; animation: t3-menu .22s cubic-bezier(.2,.8,.2,1);
}
body.tema3d .user-menu-name { margin: 0; font-weight: 700; font-size: .88rem; color: var(--t3-tinta); }
body.tema3d .user-menu-email { margin: 2px 0 0; font-size: .74rem; color: #7b6540; word-break: break-all; }
body.tema3d .user-menu-divider { height: 0; margin: 10px 0; border-top: 1px dashed var(--t3-garis2); }
body.tema3d .user-menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border-radius: 10px; cursor: pointer; border: 0; background: transparent; font: 600 .84rem/1 "Poppins", system-ui, sans-serif; color: var(--t3-tinta); }
body.tema3d .user-menu-item .icon { width: 17px; height: 17px; }
body.tema3d .user-menu-item:hover { background: rgba(168,122,51,.12); }
body.tema3d .user-menu-item-danger { color: var(--t3-marun); }
body.tema3d .user-menu-item-danger:hover { background: rgba(158,19,32,.1); }

/* tombol gerak (disisipkan JS) */
body.tema3d .t3-gerak-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 12px; cursor: pointer;
  font: 600 .74rem/1 "Poppins", system-ui, sans-serif; color: var(--t3-coklat); background: #fffaf0; border: 1px solid var(--t3-garis2); box-shadow: var(--t3-bayang);
}
body.tema3d .t3-gerak-btn i { width: 8px; height: 8px; border-radius: 50%; background: var(--t3-marun); box-shadow: 0 0 0 3px rgba(158,19,32,.15); }
body.tema3d .t3-gerak-btn[aria-pressed="false"] i { background: #b7a789; box-shadow: none; }

/* ---------- footer ---------- */
body.tema3d .dashboard-footer { padding: 18px 28px 22px; border-top: 1px dashed var(--t3-garis2); color: #7b6540; font-size: .76rem; }
body.tema3d .dashboard-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.tema3d .dashboard-footer p { margin: 0; }
body.tema3d .footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--t3-coklat); }
body.tema3d .footer-brand-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--t3-marun); background: rgba(158,19,32,.1); }
body.tema3d .footer-brand-mark .icon { width: 15px; height: 15px; }

/* ---------- konten dashboard ---------- */
body.tema3d .dashboard-page { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; min-width: 0; }
body.tema3d .dashboard-page > * { min-width: 0; }
body.tema3d .dashboard-page-header { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--t3-garis2); }
body.tema3d .dashboard-page-copy { flex: 1; text-align: left; padding: 0; margin: 0; min-width: 0; }
body.tema3d .dashboard-page-copy h1 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -.02em; color: var(--t3-tinta); }
body.tema3d .dashboard-page-copy p { margin: 4px 0 0; font-size: .86rem; color: #7b6540; }

/* kartu karcis: sistem health, keuangan, bot, trend, panel */
body.tema3d .dashboard-stat-card,
body.tema3d .dashboard-keuangan-jet-stat-card,
body.tema3d .dashboard-keuangan-jet-panel,
body.tema3d .dashboard-panel-card,
body.tema3d .dashboard-system-health-section,
body.tema3d .dashboard-trend-section,
body.tema3d .dashboard-bot-control-section,
body.tema3d .dashboard-keuangan-jet-section {
  position: relative; color: var(--t3-tinta); border-radius: 18px; border: 1px solid var(--t3-garis);
  background: linear-gradient(180deg, #fffaf0, #fbf1dc); box-shadow: var(--t3-bayang);
}
body.tema3d .dashboard-stat-card, body.tema3d .dashboard-keuangan-jet-stat-card, body.tema3d .dashboard-keuangan-jet-panel, body.tema3d .dashboard-panel-card { padding: 18px 20px; }
body.tema3d .dashboard-system-health-section, body.tema3d .dashboard-trend-section, body.tema3d .dashboard-bot-control-section, body.tema3d .dashboard-keuangan-jet-section { padding: 22px; margin-top: 0; }
body.tema3d .dashboard-keuangan-jet-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
body.tema3d .dashboard-keuangan-jet-section > * { min-width: 0; }
/* kartu tilt 3D (variabel diisi JS) */
body.tema3d .dashboard-stat-card, body.tema3d .dashboard-keuangan-jet-stat-card {
  transform: perspective(900px) rotateX(var(--t3-rx, 0deg)) rotateY(var(--t3-ry, 0deg)); transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; will-change: transform;
}
body.tema3d .dashboard-stat-card:hover, body.tema3d .dashboard-keuangan-jet-stat-card:hover { box-shadow: 0 1px 0 #fff inset, 0 22px 34px -16px rgba(90,55,12,.5); }
/* takik karcis di kedua sisi kartu stat */
body.tema3d .dashboard-keuangan-jet-stat-card::before, body.tema3d .dashboard-keuangan-jet-stat-card::after {
  content: ""; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: #f6ecd8; border: 1px solid var(--t3-garis);
}
body.tema3d .dashboard-keuangan-jet-stat-card::before { left: -8px; clip-path: inset(0 0 0 50%); }
body.tema3d .dashboard-keuangan-jet-stat-card::after { right: -8px; clip-path: inset(0 50% 0 0); }
body.tema3d .dashboard-keuangan-jet-stat-card { display: grid; gap: 4px; }

body.tema3d .dashboard-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.tema3d .dashboard-keuangan-jet-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
body.tema3d .dashboard-system-health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 16px; }
body.tema3d .dashboard-mobil-grid, body.tema3d .dashboard-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

body.tema3d .dashboard-stat-label, body.tema3d .dashboard-keuangan-jet-stat-label { font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: #7b6540; }
body.tema3d .dashboard-stat-value, body.tema3d .dashboard-keuangan-jet-stat-value { font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; color: var(--t3-tinta); font-variant-numeric: tabular-nums; }
body.tema3d .dashboard-stat-detail, body.tema3d .dashboard-keuangan-jet-stat-detail { font-size: .76rem; color: #7b6540; }
body.tema3d .dashboard-keuangan-jet-stat-card-driver .dashboard-keuangan-jet-stat-value { color: var(--t3-marun); }
body.tema3d .dashboard-stat-card-body { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
body.tema3d .dashboard-stat-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, var(--t3-emas), var(--t3-coklat)); box-shadow: 0 6px 12px -6px rgba(90,55,12,.6); }
body.tema3d .dashboard-stat-icon svg { width: 20px; height: 20px; }
body.tema3d .dashboard-stat-orb { display: none; }
body.tema3d .dashboard-stat-card--healthy { border-left: 4px solid #3f7d3a; }
body.tema3d .dashboard-stat-card--warning { border-left: 4px solid #c98a12; }
body.tema3d .dashboard-stat-card--degraded { border-left: 4px solid #d2641a; }
body.tema3d .dashboard-stat-card--down { border-left: 4px solid var(--t3-marun); }
body.tema3d .dashboard-stat-trend.is-positive { color: #3f7d3a; }
body.tema3d .dashboard-stat-trend.is-negative { color: var(--t3-marun); }

body.tema3d .dashboard-section-header h2, body.tema3d .dashboard-keuangan-jet-section-header h2, body.tema3d .dashboard-keuangan-jet-panel-header h3, body.tema3d .dashboard-panel-head h3 { margin: 0; font-weight: 700; color: var(--t3-tinta); letter-spacing: -.01em; }
body.tema3d .dashboard-section-header h2, body.tema3d .dashboard-keuangan-jet-section-header h2 { font-size: 1.1rem; }
body.tema3d .dashboard-keuangan-jet-panel-header h3, body.tema3d .dashboard-panel-head h3 { font-size: .98rem; }
body.tema3d .dashboard-section-header p, body.tema3d .dashboard-keuangan-jet-section-header p, body.tema3d .dashboard-keuangan-jet-panel-header p, body.tema3d .dashboard-panel-head p { margin: 3px 0 0; font-size: .78rem; color: #7b6540; }
body.tema3d .dashboard-keuangan-jet-section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--t3-garis2); }
body.tema3d .user-button-name { color: var(--t3-tinta); font-weight: 600; max-width: 140px; }
body.tema3d .dashboard-keuangan-jet-link { flex: none; padding: 0; background: none; border-radius: 0; box-shadow: none; font-size: .8rem; font-weight: 600; color: var(--t3-marun); text-decoration: none; border-bottom: 1px solid transparent; }
body.tema3d .dashboard-keuangan-jet-link:hover { border-bottom-color: var(--t3-marun); }

/* tabel & leaderboard di widget */
body.tema3d .dashboard-keuangan-jet-table-wrapper { overflow-x: auto; margin-top: 12px; border-radius: 12px; border: 1px solid var(--t3-garis); background: rgba(255,255,255,.55); }
body.tema3d .dashboard-keuangan-jet-table { width: 100%; border-collapse: collapse; font-size: .82rem; color: var(--t3-tinta); }
body.tema3d .dashboard-keuangan-jet-table th { padding: 10px 12px; text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .05em; color: var(--t3-coklat); background: rgba(168,122,51,.12); border-bottom: 1px solid var(--t3-garis2); white-space: nowrap; }
body.tema3d .dashboard-keuangan-jet-table td { padding: 10px 12px; border-bottom: 1px dashed var(--t3-garis); }
body.tema3d .dashboard-keuangan-jet-table tbody tr:hover td { background: rgba(233,201,135,.2); }
body.tema3d .dashboard-keuangan-jet-leaderboard-item { color: var(--t3-tinta); }
body.tema3d .dashboard-keuangan-jet-leaderboard-rank { color: var(--t3-marun); font-weight: 700; }
body.tema3d .dashboard-keuangan-jet-empty { color: #7b6540; }
body.tema3d .dashboard-mobil-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.6); border: 1px solid var(--t3-garis); color: var(--t3-tinta); }
body.tema3d .dashboard-keuangan-jet-pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .72rem; font-weight: 600; color: var(--t3-coklat); background: rgba(168,122,51,.14); border: 1px solid var(--t3-garis); }
body.tema3d .dashboard-trend-chart-container { margin-top: 16px; max-height: 350px; }

/* tombol */
body.tema3d .dashboard-primary-button, body.tema3d .primary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; cursor: pointer; border: 0;
  font: 600 .84rem/1.2 "Poppins", system-ui, sans-serif; color: #fff7e8; text-decoration: none;
  background: linear-gradient(180deg, var(--t3-marun), var(--t3-marun2)); box-shadow: 0 10px 18px -10px rgba(126,15,27,.8), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
body.tema3d .dashboard-primary-button:hover, body.tema3d .primary-button:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 22px -12px rgba(126,15,27,.85), inset 0 1px 0 rgba(255,255,255,.22); }
body.tema3d .dashboard-primary-button:active, body.tema3d .primary-button:active { transform: translateY(0) scale(.98); }
body.tema3d .dashboard-primary-button--danger { background: linear-gradient(180deg, #5a3c14, #3d2610); box-shadow: 0 10px 18px -10px rgba(43,26,12,.8), inset 0 1px 0 rgba(255,255,255,.18); }
body.tema3d .dashboard-primary-button:disabled, body.tema3d .primary-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
body.tema3d .dashboard-ghost-button, body.tema3d .ghost-button, body.tema3d .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; cursor: pointer;
  font: 600 .84rem/1.2 "Poppins", system-ui, sans-serif; color: var(--t3-coklat); background: #fffaf0; border: 1px solid var(--t3-garis2);
  transition: transform .2s, background .2s;
}
body.tema3d .dashboard-ghost-button:hover, body.tema3d .ghost-button:hover, body.tema3d .secondary-button:hover { transform: translateY(-1px); background: #fff3d8; }
body.tema3d .dashboard-ghost-button:disabled { opacity: .55; cursor: not-allowed; }

/* toast agar terbaca di latar krem */
body.tema3d .transit-toast { color: var(--t3-tinta); background: #fffaf0f2; border: 1px solid var(--t3-garis2); box-shadow: 0 18px 40px -16px rgba(90,55,12,.5); }


/* ---------- kartu pengguna di dasar sidebar ---------- */
body.tema3d .sidebar-user {
  display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px; border-radius: 14px;
  background: rgba(233,201,135,.08); border: 1px dashed rgba(233,201,135,.35);
}
body.tema3d .sidebar-user-avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--t3-marun), var(--t3-marun2)); }
body.tema3d .sidebar-user-avatar .icon { width: 18px; height: 18px; }
body.tema3d .sidebar-user-copy { min-width: 0; }
body.tema3d .sidebar-user-name { margin: 0; font-size: .82rem; font-weight: 600; color: #fff3d6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tema3d .sidebar-user-email { margin: 1px 0 0; font-size: .7rem; color: rgba(241,227,196,.65); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@keyframes t3-putar { to { transform: rotate(360deg); } }
@keyframes t3-menu { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- responsif ---------- */
@media (max-width: 1280px) {
  body.tema3d .dashboard-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  body.tema3d .dashboard-shell { grid-template-columns: 1fr; }
  body.tema3d .dashboard-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; width: min(86vw, 18rem); height: 100dvh;
    transform: translateX(-105%); transition: transform .38s cubic-bezier(.2,.8,.2,1); visibility: hidden;
  }
  body.tema3d .dashboard-sidebar.is-open { transform: translateX(0); visibility: visible; }
  body.tema3d .dashboard-overlay {
    display: block; position: fixed; inset: 0; z-index: 40; background: rgba(43,26,12,.55);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  }
  body.tema3d .menu-toggle, body.tema3d .sidebar-close { display: grid; }
  body.tema3d .mobile-heading { display: flex; }
  body.tema3d .desktop-heading { display: none; }
  body.tema3d .dashboard-header { padding: 12px 16px; }
  body.tema3d .dashboard-main { padding: 18px; }
}
@media (max-width: 820px) {
  body.tema3d .dashboard-stats-grid, body.tema3d .dashboard-mobil-grid, body.tema3d .dashboard-chart-grid { grid-template-columns: 1fr; }
  body.tema3d .dashboard-footer { padding: 16px 18px 20px; }
  body.tema3d .t3-gerak-btn span { display: none; }
  body.tema3d .t3-gerak-btn { padding: 0 13px; }
}
@media (max-width: 560px) {
  body.tema3d .dashboard-main { padding: 14px; }
  body.tema3d .user-button-name { display: none; }
  body.tema3d .user-button { padding: 0 8px 0 6px; }
  body.tema3d .dashboard-system-health-section, body.tema3d .dashboard-trend-section, body.tema3d .dashboard-bot-control-section, body.tema3d .dashboard-keuangan-jet-section { padding: 16px; }
  body.tema3d .dashboard-keuangan-jet-section-header { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  body.tema3d .sidebar-brand-mark::after { animation: none; }
  body.tema3d .dashboard-sidebar, body.tema3d .sidebar-link, body.tema3d .dashboard-stat-card, body.tema3d .dashboard-keuangan-jet-stat-card { transition: none; }
}
body.tema3d.t3-diam .sidebar-brand-mark::after { animation: none; }
body.tema3d.t3-diam .dashboard-stat-card, body.tema3d.t3-diam .dashboard-keuangan-jet-stat-card { transform: none; }
