/* ==========================================================================
   TDA-OS Design System — Modern Professional
   ========================================================================== */
:root {
  --primary: #2E3192;
  --primary-d: #1a1d5c;
  --primary-l: #4a4db8;
  --primary-50: rgba(46, 49, 146, .06);
  --primary-100: rgba(46, 49, 146, .12);
  --primary-ring: rgba(46, 49, 146, .22);
  --secondary: #C9A227;
  --secondary-d: #9a7b0a;
  --sidebar-bg: #0047ab;
  --sidebar-bg-dark: #003580;
  --sidebar-accent: #b2e646;
  --tda-brand-gradient-base: #0047ab;
  --tda-brand-gradient:
    radial-gradient(ellipse 52% 48% at 10% 14%, rgba(178, 230, 70, 0.42) 0%, rgba(162, 214, 69, 0.14) 38%, transparent 68%),
    radial-gradient(ellipse 48% 42% at 50% 92%, rgba(162, 214, 69, 0.32) 0%, rgba(162, 214, 69, 0.08) 40%, transparent 65%),
    radial-gradient(ellipse 38% 32% at 52% 6%, rgba(90, 195, 235, 0.2) 0%, transparent 55%),
    linear-gradient(155deg, #003580 0%, #0047ab 38%, #0056b3 68%, #003878 100%);
  --success: #15803d;
  --success-bg: #dcfce7;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --info: #0369a1;
  --info-bg: #e0f2fe;
  --bg: #eef1f6;
  --bg-alt: #e4e9f0;
  --surface: #ffffff;
  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --border: #cbd5e1;
  --border-light: #e2e8f0;
  --radius-sm: 6px;
  --radius-input: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, .09);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);
  --shadow-xl: 0 20px 48px rgba(15, 23, 42, .16);
  --sidebar-w: 260px;
  --transition: .18s cubic-bezier(.4, 0, .2, 1);
  --scrollbar-size: 5px;
  --scrollbar-track: transparent;
  --scrollbar-thumb: rgba(46, 49, 146, .25);
  --scrollbar-thumb-hover: rgba(46, 49, 146, .42);
  --scrollbar-thumb-sidebar: rgba(178, 230, 70, .52);
  --scrollbar-thumb-sidebar-hover: rgba(178, 230, 70, .82);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -.01em;
}
h1,h2,h3,h4,h5 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.025em;
  line-height: 1.3;
}
a { color: var(--primary); text-decoration: none; font-weight: 500; }
a:hover { color: var(--primary-d); text-decoration: none; }
code, .mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ----------------------------- Layout ----------------------------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: #fff;
  position: fixed; top: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column;
  z-index: 40;
  transition: transform var(--transition);
  border-right: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 4px 0 28px rgba(0, 40, 100, .22);
  overflow: hidden;
}
.sidebar.open { z-index: 55; }
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  min-height: 64px;
  padding: 0 20px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
}
.sidebar__logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.sidebar__logo {
  height: 36px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .95;
}
.sidebar__brand-info {
  min-width: 0;
  flex: 1;
  line-height: 1.35;
}
.sidebar__brand-jenis {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #e8fbb0;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 40, 100, 0.35);
}
.sidebar__brand-nama {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.01em;
  text-shadow: 0 1px 3px rgba(0, 40, 100, 0.4);
}
.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-sidebar) var(--scrollbar-track);
}
.sidebar__nav::-webkit-scrollbar { width: var(--scrollbar-size); }
.sidebar__nav::-webkit-scrollbar-track { background: var(--scrollbar-track); }
.sidebar__nav::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-sidebar);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.sidebar__nav::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-sidebar-hover); }
.sidebar__nav a {
  display: flex; align-items: center; gap: 12px;
  margin: 2px 12px; padding: 9px 12px;
  color: rgba(255, 255, 255, .94);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border-left: none;
  text-shadow: 0 1px 2px rgba(0, 40, 100, 0.28);
  transition: background var(--transition), color var(--transition);
}
.sidebar__nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.sidebar__nav a.active {
  background: rgba(178, 230, 70, .26);
  color: #f4ffe8;
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--sidebar-accent);
}
.sidebar__nav .nav-section {
  padding: 18px 20px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--sidebar-accent);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 40, 100, 0.35);
}
.sidebar__footer {
  flex-shrink: 0;
  padding: 8px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.sidebar__logout-form {
  margin: 2px 12px;
}
.sidebar__logout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  text-shadow: 0 1px 2px rgba(0, 40, 100, 0.28);
  transition: background var(--transition), color var(--transition);
}
.sidebar__logout:hover {
  background: rgba(185, 28, 28, .18);
  color: #fca5a5;
  text-decoration: none;
}

/* CSS-only sidebar icons */
.nav-ico { width: 18px; height: 18px; flex-shrink: 0; position: relative; display: inline-block; opacity: 1; }
.nav-ico::before, .nav-ico::after { content: ''; position: absolute; box-sizing: border-box; }
.nav-ico--dashboard::before { inset: 0; border: 2px solid currentColor; border-radius: 3px; opacity: .35; }
.nav-ico--dashboard::after { width: 6px; height: 6px; top: 3px; left: 3px; background: currentColor; border-radius: 1px; box-shadow: 7px 0 0 currentColor, 0 7px 0 currentColor, 7px 7px 0 currentColor; }
.nav-ico--pelayan::before { width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; top: 0; left: 5px; }
.nav-ico--pelayan::after { width: 14px; height: 7px; border: 2px solid currentColor; border-bottom: none; border-radius: 8px 8px 0 0; bottom: 0; left: 2px; }
.nav-ico--struktur::before { width: 2px; height: 14px; background: currentColor; left: 8px; top: 2px; }
.nav-ico--struktur::after { width: 12px; height: 2px; background: currentColor; top: 5px; left: 3px; box-shadow: -4px 8px 0 currentColor, 8px 8px 0 currentColor; }
.nav-ico--divisi::before { width: 14px; height: 10px; border: 2px solid currentColor; border-radius: 2px 2px 0 0; top: 4px; left: 2px; }
.nav-ico--divisi::after { width: 8px; height: 2px; background: currentColor; top: 2px; left: 5px; border-radius: 1px 1px 0 0; }
.nav-ico--jabatan::before { width: 12px; height: 8px; border: 2px solid currentColor; border-radius: 50% 50% 2px 2px; top: 1px; left: 3px; }
.nav-ico--jabatan::after { width: 6px; height: 4px; border: 2px solid currentColor; border-top: none; bottom: 1px; left: 6px; }
.nav-ico--program::before { width: 14px; height: 2px; background: currentColor; top: 3px; left: 2px; box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor; border-radius: 1px; }
.nav-ico--program::after { width: 4px; height: 4px; border: 2px solid currentColor; border-radius: 50%; top: 1px; left: 1px; box-shadow: 0 5px 0 -1px currentColor, 0 10px 0 -1px currentColor; }
.nav-ico--kegiatan::before { width: 14px; height: 12px; border: 2px solid currentColor; border-radius: 2px; top: 3px; left: 2px; }
.nav-ico--kegiatan::after { width: 2px; height: 4px; background: currentColor; top: 0; left: 8px; box-shadow: -3px 0 0 currentColor, 3px 0 0 currentColor; }
.nav-ico--plus::before { width: 2px; height: 14px; background: currentColor; top: 2px; left: 8px; border-radius: 1px; }
.nav-ico--plus::after { width: 14px; height: 2px; background: currentColor; top: 8px; left: 2px; border-radius: 1px; }
.nav-ico--kalender::before { width: 14px; height: 12px; border: 2px solid currentColor; border-radius: 2px; top: 4px; left: 2px; }
.nav-ico--kalender::after { width: 14px; height: 2px; background: currentColor; top: 4px; left: 2px; }
.nav-ico--absensi::before { width: 8px; height: 14px; border: 2px solid currentColor; border-radius: 1px; top: 1px; left: 5px; transform: rotate(45deg); border-top: none; border-left: none; }
.nav-ico--kpi::before { width: 2px; height: 14px; background: currentColor; bottom: 0; left: 3px; box-shadow: 5px -4px 0 currentColor, 10px -8px 0 currentColor; }
.nav-ico--statistik::before { width: 3px; height: 3px; background: currentColor; bottom: 3px; left: 2px; border-radius: 1px; box-shadow: 4px 5px 0 currentColor, 8px 2px 0 currentColor, 12px -1px 0 currentColor; }
.nav-ico--statistik::after { width: 14px; height: 2px; background: currentColor; opacity: .28; bottom: 1px; left: 2px; border-radius: 1px; }
.nav-ico--wilayah-daerah::before { width: 7px; height: 5px; border: 2px solid currentColor; border-radius: 1px; top: 1px; left: 5px; }
.nav-ico--wilayah-daerah::after { width: 5px; height: 4px; border: 2px solid currentColor; border-radius: 1px; bottom: 1px; left: 2px; box-shadow: 7px 0 0 -2px currentColor; }
.nav-ico--kas::before { width: 14px; height: 10px; border: 2px solid currentColor; border-radius: 2px; top: 4px; left: 2px; }
.nav-ico--kas::after { width: 8px; height: 2px; background: currentColor; top: 2px; left: 5px; border-radius: 2px; }
.nav-ico--keuangan::before { width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 50%; top: 3px; left: 3px; }
.nav-ico--keuangan::after { width: 6px; height: 2px; background: currentColor; top: 8px; left: 6px; }
.nav-ico--surat::before { width: 14px; height: 10px; border: 2px solid currentColor; border-radius: 1px; top: 4px; left: 2px; }
.nav-ico--surat::after { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 4px solid currentColor; top: 4px; left: 4px; }
.nav-ico--proposal::before { width: 11px; height: 14px; border: 2px solid currentColor; border-radius: 1px; top: 1px; left: 4px; }
.nav-ico--proposal::after { width: 6px; height: 2px; background: currentColor; top: 6px; left: 6px; box-shadow: 0 4px 0 currentColor; }
.nav-ico--laporan::before { width: 12px; height: 14px; border: 2px solid currentColor; border-radius: 1px; top: 1px; left: 3px; }
.nav-ico--laporan::after { width: 6px; height: 2px; background: currentColor; top: 5px; left: 6px; box-shadow: 0 3px 0 currentColor, 0 6px 0 currentColor; }
.nav-ico--member::before { width: 7px; height: 7px; border: 2px solid currentColor; border-radius: 50%; top: 0; left: 1px; box-shadow: 8px 0 0 -1px currentColor; }
.nav-ico--member::after { width: 16px; height: 6px; border: 2px solid currentColor; border-bottom: none; border-radius: 6px 6px 0 0; bottom: 0; left: 1px; }
.nav-ico--mitra::before { width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; top: 5px; left: 0; }
.nav-ico--mitra::after { width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; top: 5px; right: 0; }
.nav-ico--aset::before { width: 14px; height: 10px; border: 2px solid currentColor; border-radius: 2px; top: 5px; left: 2px; }
.nav-ico--aset::after { width: 6px; height: 2px; background: currentColor; top: 2px; left: 5px; border-radius: 1px; }
.nav-ico--notifikasi::before {
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 3px 3px;
  top: 1px;
  left: 4px;
}
.nav-ico--notifikasi::after {
  width: 6px;
  height: 2px;
  background: currentColor;
  bottom: 2px;
  left: 6px;
  border-radius: 1px;
  box-shadow: 0 -3px 0 currentColor;
}
.nav-ico--audit::before { width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; top: 1px; left: 1px; }
.nav-ico--audit::after { width: 2px; height: 5px; background: currentColor; bottom: 2px; right: 3px; transform: rotate(-45deg); transform-origin: bottom; }
.nav-ico--periode::before { width: 14px; height: 10px; border: 2px solid currentColor; border-radius: 2px; top: 5px; left: 2px; }
.nav-ico--periode::after { width: 14px; height: 2px; background: currentColor; top: 5px; left: 2px; }
.nav-ico--pengaturan::before { width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 50%; top: 3px; left: 3px; }
.nav-ico--pengaturan::after { width: 4px; height: 4px; background: currentColor; border-radius: 50%; top: 7px; left: 7px; box-shadow: 0 -9px 0 -1px currentColor, 0 9px 0 -1px currentColor, -9px 0 0 -1px currentColor, 9px 0 0 -1px currentColor; }
.nav-ico--menu::before { width: 14px; height: 2px; background: currentColor; top: 4px; left: 2px; border-radius: 1px; box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor; }
.nav-ico--keluar::before { width: 9px; height: 12px; border: 2px solid currentColor; border-right: none; top: 3px; left: 2px; border-radius: 1px 0 0 1px; }
.nav-ico--keluar::after { width: 7px; height: 2px; background: currentColor; top: 8px; left: 9px; border-radius: 1px; box-shadow: 4px -3px 0 currentColor, 4px 3px 0 currentColor; }
.nav-ico--produk::before { width: 14px; height: 11px; border: 2px solid currentColor; border-radius: 2px; top: 3px; left: 2px; }
.nav-ico--produk::after { width: 14px; height: 2px; background: currentColor; top: 7px; left: 2px; box-shadow: 0 4px 0 currentColor; }
.nav-ico--level::before { width: 12px; height: 8px; border: 2px solid currentColor; border-bottom: none; border-radius: 2px 2px 0 0; top: 6px; left: 3px; }
.nav-ico--level::after { width: 6px; height: 6px; border: 2px solid currentColor; border-radius: 50%; top: 1px; left: 6px; }

.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; transition: margin-left var(--transition); }
.topbar {
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  position: sticky; top: 0; z-index: 30;
}
.topbar__left { display:flex; align-items:center; gap: 16px; }
.topbar__title { font-family:"Poppins",sans-serif; font-weight:700; font-size:17px; letter-spacing:-.02em; color:var(--text); }
.topbar__user { display:flex; align-items:center; gap:12px; position: relative; }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.topbar-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-input);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  box-shadow: none;
  transition: color var(--transition), background var(--transition), opacity var(--transition);
}
.topbar-icon-btn:hover,
.topbar-icon-btn:focus-visible {
  background: var(--primary-50);
  outline: none;
  opacity: 1;
}
.topbar-icon-btn .nav-ico { width: 18px; height: 18px; opacity: 1; }

.notif-menu { position: relative; }
.notif-menu__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.notif-menu__badge.is-hidden { display: none; }
.notif-menu__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 65;
  overflow: hidden;
}
.notif-menu.is-open .notif-menu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.notif-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
}
.notif-menu__head strong { font-size: 14px; font-family: "Poppins", sans-serif; color: var(--text); }
.notif-menu__mark-all {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
.notif-menu__mark-all:hover { text-decoration: underline; }
.notif-menu__list { max-height: 360px; overflow-y: auto; }
.notif-menu__empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.notif-menu__item {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}
.notif-menu__item:last-child { border-bottom: 0; }
.notif-menu__item:hover { background: var(--bg); }
.notif-menu__item.is-unread { background: var(--primary-50); }
.notif-menu__item.is-unread:hover { background: #eef0ff; }
.notif-menu__title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 3px;
}
.notif-menu__desc {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 4px;
}
.notif-menu__time { font-size: 11px; color: var(--muted); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-d) 100%);
  color: #fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:14px;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}
.user-menu { position: relative; }
.user-menu__toggle {
  transition: opacity .15s, transform .15s;
}
.user-menu__toggle:hover,
.user-menu__toggle:focus-visible {
  opacity: .88;
  outline: none;
  box-shadow: none;
}
.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 60;
}
.user-menu.is-open .user-menu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.user-menu__head {
  padding: 10px 12px 8px;
  line-height: 1.35;
}
.user-menu__head strong {
  display: block;
  font-size: 13px;
  color: var(--text);
}
.user-menu__head span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  text-transform: capitalize;
}
.user-menu__item {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.user-menu__item:hover,
.user-menu__item:focus-visible {
  background: var(--primary-50);
  color: var(--primary);
  text-decoration: none;
  outline: none;
}
.user-menu__item--danger { color: var(--danger); }
.user-menu__item--danger:hover,
.user-menu__item--danger:focus-visible {
  background: rgba(192, 57, 43, .08);
  color: var(--danger);
}
.user-menu__item--btn {
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.user-menu__divider {
  height: 1px;
  background: var(--border);
  margin: 4px 6px;
}
.content { padding: 28px; flex: 1; }

.impersonate-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 11px 28px;
  background: linear-gradient(90deg, var(--warning-bg) 0%, rgba(46, 49, 146, .06) 100%);
  border-bottom: 1px solid rgba(180, 83, 9, .25);
  font-size: 13px;
  font-weight: 500;
}
.impersonate-banner__text strong { color: var(--primary); }
.impersonate-banner__meta {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
}
.impersonate-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.impersonate-tab.is-active {
  background: var(--primary-50);
  color: var(--primary);
  border-color: var(--primary-ring);
  font-weight: 700;
}

.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--primary); }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border-light);
  cursor: pointer;
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  padding: 6px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--primary-50);
  border-color: var(--primary-ring);
  color: var(--primary);
  outline: none;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

body.sidebar-collapsed .sidebar { transform: translateX(-100%); }
body.sidebar-collapsed .main { margin-left: 0; }

.sidebar-backdrop { display:none; position:fixed; inset:0; background:rgba(15, 23, 42, .6); backdrop-filter: blur(2px); z-index: 50; }
body.sidebar-open { overflow:hidden; }
body.sidebar-open .sidebar-backdrop { display:block; }
body.sidebar-open .sidebar { transform:none; }
body.sidebar-open .mobile-nav { display: none; }

/* ----------------------------- Mobile bottom nav ----------------------------- */
.mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, .1);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: stretch;
  gap: 4px;
}
.mobile-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 8px 4px;
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.mobile-nav__item .nav-ico { width: 20px; height: 20px; opacity: .7; }
.mobile-nav__item:hover,
.mobile-nav__item:focus-visible {
  color: var(--primary);
  background: var(--primary-50);
  text-decoration: none;
  outline: none;
}
.mobile-nav__item.active {
  color: var(--primary);
  background: var(--primary-50);
  font-weight: 700;
}
.mobile-nav__item.active .nav-ico { opacity: 1; }
.mobile-nav__item--menu.is-open {
  color: var(--primary);
  background: var(--primary-100);
}
.mobile-nav__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.1;
  letter-spacing: .01em;
}

/* ----------------------------- Cards/Grid ----------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card__head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  background: linear-gradient(180deg, #fafbfc 0%, var(--surface) 100%);
}
.card__title { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.card__body { padding: 22px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px){ .grid-4 { grid-template-columns: repeat(2,1fr);} .grid-3{grid-template-columns:repeat(2,1fr);} }
@media (max-width: 720px){
  .grid-2,.grid-3 { grid-template-columns: 1fr; }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat {
    padding: 14px 12px 12px;
    min-width: 0;
  }
  .stat__label { font-size: 10px; letter-spacing: .03em; }
  .stat__value { font-size: 20px; margin-top: 4px; }
  .stat__hint { font-size: 10px; margin-top: 4px; line-height: 1.35; }
  .stat__icon { width: 34px; height: 34px; }
  .stat__icon--css .nav-ico { width: 17px; height: 17px; }
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.stat__label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat__value { font-size: 28px; font-weight: 800; font-family:"Poppins",sans-serif; margin-top: 6px; letter-spacing: -.03em; color: var(--text); }
.stat__icon { float:right; width:46px;height:46px;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;font-size:20px; }
.stat__icon--css { font-size: 0; }
.stat__icon--css .nav-ico { width: 22px; height: 22px; opacity: 1; }

/* ----------------------------- Dashboard ----------------------------- */
.dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background-color: #0047ab;
  background-image:
    radial-gradient(ellipse 55% 48% at 8% 22%, rgba(178, 230, 70, 0.36) 0%, rgba(162, 214, 69, 0.1) 42%, transparent 68%),
    radial-gradient(ellipse 48% 42% at 92% 78%, rgba(162, 214, 69, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse 38% 32% at 50% 0%, rgba(90, 195, 235, 0.18) 0%, transparent 55%),
    linear-gradient(155deg, #003580 0%, #0047ab 42%, #0056b3 100%);
  color: #fff;
  box-shadow: 0 14px 36px rgba(0, 40, 100, 0.22);
  position: relative;
  overflow: hidden;
}
.dash-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -8%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 68%);
  pointer-events: none;
}
.dash-hero__main { position: relative; z-index: 1; }
.dash-hero__greet { margin: 0 0 4px; font-size: 13px; color: #e8fbb0; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 40, 100, 0.3); }
.dash-hero__title { margin: 0; font-size: 24px; font-weight: 800; font-family: "Poppins", sans-serif; color: #fff; letter-spacing: -.03em; text-shadow: 0 1px 3px rgba(0, 40, 100, 0.35); }
.dash-hero__meta { margin: 8px 0 0; font-size: 12.5px; color: rgba(255,255,255,.9); font-weight: 500; text-shadow: 0 1px 2px rgba(0, 40, 100, 0.25); }
.dash-hero__aside {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.dash-hero__logo-together {
  height: 72px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.stat--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.stat--link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-ring);
  text-decoration: none;
  color: inherit;
}
.stat__of { font-size: 16px; font-weight: 500; color: var(--muted); }
.stat__value--sm { font-size: 20px; }
.stat__hint { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.dash-quick {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.dash-quick__label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; flex-shrink: 0; }
.dash-quick__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-quick__btn {
  display: inline-flex;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}
.dash-quick__btn:hover { background: var(--primary-50); border-color: var(--primary); color: var(--primary); text-decoration: none; }
.dash-grid-main { grid-template-columns: 2fr 1fr; }
.dash-grid-sub { grid-template-columns: 1fr 1fr; }
.dash-finance__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13.5px; }
.dash-finance__row--total { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); margin-bottom: 0; font-weight: 600; }
.dash-finance__in { color: var(--success); }
.dash-finance__out { color: var(--danger); }
.dash-finance__bar {
  display: flex;
  gap: 4px;
  height: 8px;
  margin: 4px 0 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef1f4;
}
.dash-finance__bar-in { background: var(--success); border-radius: 999px; min-width: 2px; transition: width .3s; }
.dash-finance__bar-out { background: var(--danger); border-radius: 999px; min-width: 2px; transition: width .3s; }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.dash-list__item:last-child { border-bottom: none; padding-bottom: 0; }
.dash-list__item:first-child { padding-top: 0; }
.dash-list__date {
  flex-shrink: 0;
  width: 44px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 4px;
  line-height: 1.2;
}
.dash-list__day { display: block; font-size: 16px; font-weight: 700; font-family: "Poppins", sans-serif; color: var(--primary); }
.dash-list__mon { display: block; font-size: 10px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.dash-list__body { min-width: 0; flex: 1; }
.dash-list__title { display: block; font-weight: 600; font-size: 13.5px; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-list__title:hover { color: var(--primary); text-decoration: none; }
.dash-list__meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.dash-list__badge { flex-shrink: 0; }
.dash-divisi__name { display: inline-flex; align-items: center; gap: 8px; }
.dash-divisi__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dash-divisi__meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.alert__link { margin-left: 8px; font-weight: 600; color: inherit; text-decoration: underline; }
@media (max-width: 980px) {
  .dash-grid-main, .dash-grid-sub { grid-template-columns: 1fr; }
  .dash-hero {
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    padding: 20px 18px;
  }
  .dash-hero__main {
    flex: 1;
    min-width: 0;
  }
  .dash-hero__title { font-size: 18px; }
  .dash-hero__meta { font-size: 11px; line-height: 1.45; }
  .dash-hero__aside {
    width: auto;
    flex-shrink: 0;
    margin-left: auto;
  }
  .dash-hero__logo-together { height: 48px; }
}

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(46, 49, 146, .2);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  letter-spacing: -.01em;
}
.btn:hover {
  background: var(--primary-d);
  box-shadow: 0 2px 8px rgba(46, 49, 146, .28);
  text-decoration:none;
  color: #fff;
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn--secondary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(154, 123, 10, .25);
}
.btn--secondary:hover { background: var(--secondary-d); color: #fff; }
.btn--ghost {
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }
.btn--danger { background: var(--danger); box-shadow: 0 1px 2px rgba(185, 28, 28, .2); }
.btn--danger:hover { background: #991b1b; }
.btn--success { background: var(--success); box-shadow: 0 1px 2px rgba(21, 128, 61, .2); }
.btn--success:hover { background: #166534; }
.btn--sm { padding: 6px 12px; font-size: 12px; }
.btn--block { width: 100%; justify-content: center; }
.btn--icon { padding: 7px 10px; }

/* ----------------------------- Icon action buttons ----------------------------- */
.actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.icon-act {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
}
.icon-act__svg { width: 16px; height: 16px; display: block; pointer-events: none; }
.icon-act:hover { transform: translateY(-2px); text-decoration: none; color: inherit; box-shadow: var(--shadow-xs); }
.icon-act:active { transform: translateY(0); }

.icon-act--edit { background: var(--info-bg); color: var(--info); border-color: rgba(3, 105, 161, .15); }
.icon-act--hapus { background: var(--danger-bg); color: var(--danger); border-color: rgba(185, 28, 28, .15); }
.icon-act--lihat, .icon-act--detail, .icon-act--kelola, .icon-act--preview { background: var(--primary-50); color: var(--primary); border-color: var(--primary-100); }
.icon-act--kartu { background: var(--success-bg); color: var(--success); border-color: rgba(21, 128, 61, .15); }
.icon-act--file { background: var(--info-bg); color: var(--info); border-color: rgba(3, 105, 161, .15); }
.icon-act--upload { background: var(--warning-bg); color: var(--warning); border-color: rgba(180, 83, 9, .15); }
.icon-act--toggle { background: var(--bg-alt); color: var(--muted); border-color: var(--border-light); }
.icon-act--realisasi, .icon-act--aktifkan { background: var(--success-bg); color: var(--success); border-color: rgba(21, 128, 61, .15); }
.icon-act--riwayat { background: var(--warning-bg); color: var(--warning); border-color: rgba(180, 83, 9, .15); }
.icon-act--proposal { background: var(--primary-50); color: var(--primary); border-color: var(--primary-100); }
.icon-act--impersonate { background: var(--warning-bg); color: var(--warning); border-color: rgba(180, 83, 9, .15); }

th.col-photo, td.col-photo { width: 52px; min-width: 52px; text-align: center; padding-left: 8px; padding-right: 8px; }
table.data td.col-no { width: 48px; min-width: 48px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
table.data th.col-no { min-width: 48px; }
.org-popover__actions { display: flex; gap: 8px; margin-top: 8px; }

/* Kegiatan gallery & cover */
.keg-row { display: flex; align-items: center; gap: 10px; }
.keg-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); flex-shrink: 0; }
.keg-hero { overflow: hidden; }
.keg-hero__cover { width: 100%; max-height: 280px; overflow: hidden; background: #eef1f6; border-bottom: 1px solid var(--border); }
.keg-hero__cover img { width: 100%; height: 100%; max-height: 280px; object-fit: cover; display: block; }
.keg-galeri { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.keg-galeri__item { position: relative; border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); transition: var(--transition); }
.keg-galeri__item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.keg-galeri__item--cover { border-color: var(--secondary); box-shadow: 0 0 0 2px rgba(201,162,39,.3), var(--shadow); }
.keg-galeri__link { display: block; aspect-ratio: 4/3; background: #eef1f6; }
.keg-galeri__link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.keg-galeri__badge { position: absolute; top: 8px; left: 8px; background: var(--secondary); color: var(--primary-d); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.keg-galeri__caption { padding: 8px 10px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); }
.keg-galeri__actions { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--border); background: #fbfcfd; }
.keg-galeri-empty { padding: 28px 16px; }

/* ----------------------------- Forms ----------------------------- */
.form-group { margin-bottom: 12px; }
.form-row { display:grid; gap:12px; grid-template-columns: repeat(2,1fr); }
.form-row-3 { display:grid; gap:12px; grid-template-columns: repeat(3,1fr); }
.form-row-4 { display:grid; gap:12px; grid-template-columns: repeat(4,1fr); }
.form-row .form-group,
.form-row-3 .form-group,
.form-row-4 .form-group { margin-bottom: 0; }
@media (max-width:720px){ .form-row,.form-row-3,.form-row-4{ grid-template-columns:1fr; } }
label { display:block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); letter-spacing: -.01em; }
.req { color: var(--danger); font-weight: 700; }
.input, select, textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: var(--shadow-xs);
}
.input:hover, select:hover, textarea:hover { border-color: #94a3b8; }
.input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
  background: #fff;
}
textarea { resize: vertical; min-height: 72px; }
.input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(185, 28, 28, .15); }
.input:disabled,
.input[disabled],
.input--readonly,
textarea.input:disabled,
textarea.input--readonly,
select.input:disabled {
  background: #eef2f6;
  color: var(--text);
  border-color: #d5dde6;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}
.input:disabled:hover,
.input[disabled]:hover,
.input--readonly:hover,
textarea.input:disabled:hover,
textarea.input--readonly:hover,
.input:disabled:focus,
.input--readonly:focus,
textarea.input:disabled:focus,
textarea.input--readonly:focus {
  border-color: #d5dde6;
  background: #eef2f6;
  box-shadow: none;
}
.form-group--readonly label {
  color: var(--text-secondary);
}
.form-group__action-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-group__action-row .input {
  flex: 1;
  min-width: 0;
}
.form-group__action-row .btn {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .form-group__action-row {
    flex-direction: column;
    align-items: stretch;
  }
}
.help { font-size: 12px; color: var(--muted); margin-top: 5px; font-weight: 500; }

/* ----------------------------- Select2 (TDA theme) ----------------------------- */
.select2-container { width: 100% !important; font-family: inherit; }
.select2-container--default .select2-selection--single {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  position: relative;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 34px;
  padding-left: 12px;
  padding-right: 34px;
  font-size: 14px;
  color: var(--text);
}
.select2-container--default .select2-selection--single .select2-selection__rendered:has(.select2-selection__clear) {
  padding-right: calc(8px + 20px + 16px);
}
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--muted); }
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 32px;
  right: 8px;
  width: 20px;
}
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.select2-container--default .select2-selection--multiple {
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  min-height: 40px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.select2-container--default .select2-selection--single .select2-selection__clear {
  float: none;
  position: absolute;
  right: calc(8px + 20px - 2px);
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: auto;
  line-height: 1;
  margin-right: 0;
  padding: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.select2-dropdown {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  overflow: hidden;
  z-index: 1105;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 7px 10px;
  font-size: 14px;
  font-family: inherit;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.select2-container--default .select2-results__option {
  padding: 8px 12px;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--primary);
  color: #fff;
}
.select2-container--default .select2-results__option--selected {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
}
.select2-hidden-accessible { position: absolute !important; width: 1px !important; }

/* ----------------------------- Tables / DataTable ----------------------------- */
.table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  position: relative;
  max-width: 100%;
}
.table-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(248, 249, 250, 0.95));
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.table-wrap.is-scrollable::after { opacity: 1; }
.table-wrap.is-scrollable.is-scrolled-end::after { opacity: 0; }
.table-wrap.is-scrollable:not(.is-scrolled-start)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 16px;
  pointer-events: none;
  background: linear-gradient(to left, transparent, rgba(248, 249, 250, 0.85));
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.table-wrap.is-scrollable.is-scrolled-start::before { opacity: 1; }
@media (max-width: 720px) {
  /* Gradient bayangan menutupi kolom saat swipe — cukup pakai hint teks */
  .table-wrap::after,
  .table-wrap::before {
    display: none !important;
  }
  .table-wrap__hint {
    display: flex;
  }
}
.table-wrap__hint {
  display: none;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}
.table-wrap__hint svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; min-width: 520px; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
table.data th {
  background: var(--bg);
  font-weight: 700;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  position: sticky; top: 0; z-index: 1;
  border-bottom: 2px solid var(--border);
}
table.data tbody tr { transition: background var(--transition); }
table.data tbody tr:nth-child(even) { background: rgba(238, 241, 246, .45); }
table.data tbody tr:hover { background: var(--primary-50); }
table.data td.actions { white-space: nowrap; }
/* Kolom aksi: .actions (inline-flex) tidak boleh merusak layout th/td tabel */
table.data th.actions,
table.data td.actions {
  display: table-cell !important;
  width: 1%;
  white-space: nowrap;
  text-align: right;
  vertical-align: middle;
}
table.data td.actions > .actions,
table.data td.actions > .pl-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.dt-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:14px; }
.dt-toolbar .input { max-width:280px; min-width:180px; flex:1; }
.dt-pager { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding-top:14px; border-top:1px solid var(--border-light); margin-top:14px; font-size:13px; }
.dt-pager .btn[disabled] { opacity:.4; cursor:not-allowed; }
.dt-pager__info { white-space: nowrap; }
.dt-pager__spacer { flex: 1; min-width: 8px; }
.dt-pager__controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dt-pager__len { width: auto; min-width: 88px; height: 34px; padding: 0 10px; font-size: 12.5px; }
.dt-pager__pages { display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.dt-pager__btn, .dt-pager__num { min-width: 34px; height: 34px; padding: 0 8px !important; }
.dt-pager__num.is-active { background: var(--primary) !important; color: #fff !important; border-color: transparent !important; }
.dt-pager__ellipsis { display: inline-flex; width: 22px; justify-content: center; color: var(--muted); }
.dt-pager__goto { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; margin: 0; }
.dt-pager__goto-input { width: 64px; height: 34px; padding: 0 8px; text-align: center; }
.empty { text-align:center; padding: 48px 24px; color: var(--muted); font-weight: 500; }
.empty-ico { width:40px; height:40px; margin:0 auto 10px; border:2px dashed var(--border); border-radius:8px; position:relative; opacity:.5; }
.empty-ico::before { content:''; position:absolute; width:16px; height:2px; background:var(--muted); top:50%; left:50%; transform:translate(-50%,-50%); }

/* ----------------------------- Tabs ----------------------------- */
.tabs-bar { display:flex; gap:4px; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; padding: 4px; background: var(--bg); border-radius: var(--radius); }
.tabs-bar::-webkit-scrollbar { display:none; }
.tabbtn {
  border:none;
  border-bottom: none;
  border-radius: var(--radius-sm);
  padding:10px 16px;
  background:transparent;
  cursor:pointer;
  font-weight:600;
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
  font-family:inherit;
  transition: var(--transition);
}
.tabbtn:hover { color:var(--primary); background: var(--surface); }
.tabbtn.active { background: var(--surface); color:var(--primary); box-shadow: var(--shadow-xs); font-weight: 700; }
.tab { display:none; }
.tab.active { display:block; }
.card__head.tabs-head { padding:12px 16px; background: var(--bg); border-bottom: 1px solid var(--border-light); }

/* ----------------------------- Badges ----------------------------- */
.badge {
  display:inline-flex; align-items:center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid transparent;
}
.badge--success { background: var(--success-bg); color: var(--success); border-color: rgba(21, 128, 61, .2); }
.badge--danger { background: var(--danger-bg); color: var(--danger); border-color: rgba(185, 28, 28, .2); }
.badge--warning { background: var(--warning-bg); color: var(--warning); border-color: rgba(180, 83, 9, .2); }
.badge--info { background: var(--info-bg); color: var(--info); border-color: rgba(3, 105, 161, .2); }
.badge--muted { background: var(--bg-alt); color: var(--muted); border-color: var(--border-light); }
.badge--primary { background: var(--primary-50); color: var(--primary); border-color: var(--primary-100); }

/* ----------------------------- Mitra tahap checklist ----------------------------- */
.table-wrap--mitra .tahap-group-head { text-align: center; font-size: 12px; letter-spacing: .02em; }
.table-wrap--mitra .tahap-head { text-align: center; font-size: 11px; white-space: nowrap; padding: 6px 4px; color: var(--muted); font-weight: 600; }
.table-wrap--mitra .tahap-cell { text-align: center; padding: 6px 4px; width: 58px; vertical-align: middle; }
.mitra-tahap-cell-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mitra-tahap-cell { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin: 0; }
.mitra-tahap-cell__input { width: 17px; height: 17px; margin: 0; cursor: pointer; accent-color: var(--success); }
.mitra-tahap-doc { display: inline-flex; align-items: center; gap: 2px; padding: 1px 4px; border: none; background: transparent; cursor: pointer; border-radius: 4px; font-size: 11px; color: var(--muted); line-height: 1; }
.mitra-tahap-doc:hover { background: var(--bg-alt, #f4f4f5); color: var(--text); }
.mitra-tahap-doc__ico { font-size: 12px; line-height: 1; }
.mitra-tahap-doc__count { display: inline-flex; align-items: center; justify-content: center; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: var(--primary); color: #fff; font-size: 9px; font-weight: 600; }
.mitra-tahap-list { display: grid; gap: 4px; }
.mitra-tahap-list--form { gap: 8px; }
.mitra-tahap-list__item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.35; color: var(--muted); margin: 0; user-select: none; }
.mitra-tahap-list__check { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; cursor: pointer; margin: 0; }
.mitra-tahap-list__check input { width: 15px; height: 15px; margin: 0; flex-shrink: 0; accent-color: var(--success); cursor: pointer; }
.mitra-tahap-list__label { flex: 1; min-width: 0; }
.mitra-tahap-list__item--done { color: var(--text, #1a1a1a); font-weight: 500; }
.mitra-tahap-list__item--done .mitra-tahap-list__label { font-weight: 500; }
.mitra-tahap-form-doc { flex-shrink: 0; font-size: 11px !important; padding: 2px 8px !important; }
.mitra-tahap-form-doc[hidden] { display: none !important; }
.mitra-dok-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.mitra-dok-card .card__body { padding: 10px; }
.mitra-dok-thumb { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; display: block; }
.mitra-dok-file { display: flex; align-items: center; justify-content: center; height: 100px; border-radius: 6px; background: var(--bg-alt, #f4f4f5); text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.mitra-dok-caption { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----------------------------- Alerts / Toast ----------------------------- */
.alert {
  padding: 13px 18px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 13.5px;
  font-weight: 500;
  border:1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert--success { background:var(--success-bg); color:#14532d; border-color:rgba(21,128,61,.25); }
.alert--danger { background:var(--danger-bg); color:#7f1d1d; border-color:rgba(185,28,28,.25); }
.alert--info { background:var(--info-bg); color:#0c4a6e; border-color:rgba(3,105,161,.25); }
.alert--warning { background:var(--warning-bg); color:#78350f; border-color:rgba(180,83,9,.25); }
#toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 9999; display:flex; flex-direction:column; gap:10px; }
.toast {
  background: var(--text);
  color:#fff;
  padding: 13px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  font-size:13.5px;
  font-weight: 600;
  min-width:260px;
  animation: slidein .3s cubic-bezier(.4,0,.2,1);
  border-left: 4px solid rgba(255,255,255,.3);
}
.toast--success { background: var(--success); border-left-color: #4ade80; }
.toast--danger { background: var(--danger); border-left-color: #fca5a5; }
.toast--info { background: var(--info); border-left-color: #7dd3fc; }
@keyframes slidein { from { transform: translateX(48px); opacity:0; } to { transform:none; opacity:1; } }

/* ----------------------------- Modal (TDA Custom Isolated) ----------------------------- */
.tda-main-modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); display:none; align-items:center; justify-content:center; z-index: 1000; padding: 24px; }
.tda-main-modal-backdrop.open { display: flex; }
.tda-main-modal {
  background:var(--surface);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 640px; max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
.modal::-webkit-scrollbar { width: var(--scrollbar-size); height: var(--scrollbar-size); }
.modal::-webkit-scrollbar-track { background: var(--scrollbar-track); }
.modal::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.modal::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
.modal__head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  display:flex; justify-content:space-between; align-items:center;
  background: linear-gradient(180deg, #fafbfc 0%, var(--surface) 100%);
}
.modal__head h3 { font-size: 16px; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.modal__body { padding: 22px; }
.modal__foot {
  padding: 16px 22px;
  border-top: 1px solid var(--border-light);
  display:flex; justify-content:flex-end; gap:10px;
  background: var(--bg);
}
.modal--sm { max-width: 420px; }
.tda-confirm-backdrop { z-index: 1200; }
.tda-confirm-modal__message {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text, #334155);
  white-space: pre-wrap;
  word-break: break-word;
}
.modal--lg { max-width: 820px; }
.modal--success .modal__head { background: var(--success); border-bottom-color: rgba(255,255,255,.15); color: #fff; }
.modal--success .modal__head h3 { color: #fff; }
.modal--success .modal__head .close-x { color: rgba(255,255,255,.85); }
.modal--success .modal__foot { border-top-color: #bfe3cd; background: #f6fbf8; }
.modal--danger .modal__head { background: var(--danger); border-bottom-color: rgba(255,255,255,.15); color: #fff; }
.modal--danger .modal__head h3 { color: #fff; }
.modal--danger .modal__head .close-x { color: rgba(255,255,255,.85); }
.modal--danger .modal__foot { border-top-color: #f3c4be; background: #fdf8f7; }
.close-x {
  background: var(--bg);
  border: 1px solid var(--border-light);
  font-size:18px;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  cursor:pointer;
  color:var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.close-x:hover { background: var(--danger-bg); color: var(--danger); border-color: rgba(185,28,28,.2); }

/* ----------------------------- Form sections ----------------------------- */
.form-section { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.form-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.form-section__title {
  font-family: "Poppins", sans-serif; font-size: 12px; font-weight: 700;
  color: var(--primary); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.form-section__subtitle {
  font-size: 13px; font-weight: 700; color: var(--text); margin: 16px 0 10px;
}
.form-section__subtitle:first-of-type { margin-top: 0; }
.mem-org-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.event-rich-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  word-break: break-word;
}
.event-rich-text p { margin: 0 0 10px; }
.event-rich-text p:last-child { margin-bottom: 0; }
.event-rich-text ul,
.event-rich-text ol { margin: 0 0 10px; padding-left: 1.25rem; }
.event-rich-text li { margin-bottom: 4px; }
.event-rich-text a { color: var(--primary); text-decoration: underline; }
.event-rich-text strong,
.event-rich-text b { color: var(--text); font-weight: 600; }
html[data-theme="dark"] .event-rich-text { color: #cbd5e1; }
html[data-theme="dark"] .event-rich-text strong,
html[data-theme="dark"] .event-rich-text b { color: #f1f5f9; }

/* ----------------------------- Input prefix (currency) ----------------------------- */
.input-prefix { display: flex; align-items: stretch; }
.input-prefix__label {
  display: flex; align-items: center; padding: 0 14px; background: var(--bg);
  border: 1px solid var(--border); border-right: none; border-radius: var(--radius-input) 0 0 var(--radius-input);
  font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.input-prefix .input { border-radius: 0 var(--radius-input) var(--radius-input) 0; box-shadow: none; }

/* ----------------------------- Month picker ----------------------------- */
.month-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.month-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (max-width: 720px) { .month-grid { grid-template-columns: repeat(4, 1fr); } }
.month-chip { cursor: pointer; margin: 0; }
.month-chip input { position: absolute; opacity: 0; pointer-events: none; }
.month-chip span {
  display: block; text-align: center; padding: 9px 4px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-light); background: var(--surface); font-size: 12px; font-weight: 600;
  transition: var(--transition); user-select: none; box-shadow: var(--shadow-xs);
}
.month-chip input:checked + span {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(46,49,146,.25);
}
.month-chip:hover span { border-color: var(--primary); color: var(--primary); }

/* ----------------------------- Program rencana ----------------------------- */
.prog-rencana { min-width: 148px; max-width: 200px; }
.prog-rencana__head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 5px; }
.prog-rencana__freq { font-size: 11.5px; font-weight: 600; color: var(--text, #1a1a1a); }
.prog-rencana__count { font-size: 10px; font-weight: 600; color: var(--muted); background: var(--bg-alt, #f4f4f5); padding: 1px 6px; border-radius: 10px; }
.prog-rencana__bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: #eef1f4; }
.prog-rencana__bar--lg { height: 12px; border-radius: 6px; }
.prog-rencana__seg { flex: 1; background: #e2e6ea; transition: background .15s; }
.prog-rencana__seg.is-active { background: var(--primary); }
.prog-rencana__seg:nth-child(3),
.prog-rencana__seg:nth-child(6),
.prog-rencana__seg:nth-child(9) { margin-right: 3px; }
.prog-rencana__seg:first-child { border-radius: 4px 0 0 4px; }
.prog-rencana__seg:last-child { border-radius: 0 4px 4px 0; }
.prog-rencana__summary { display: block; margin-top: 4px; font-size: 10.5px; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-rencana--lg { max-width: none; }
.prog-rencana--lg .prog-rencana__freq { font-size: 13px; }
.prog-rencana--lg .prog-rencana__summary { font-size: 12px; white-space: normal; }
.data .rencana-cell { min-width: 160px; }

/* Legacy timeline (detail fallback) */
.prog-timeline { display: flex; gap: 2px; flex-wrap: nowrap; margin-top: 4px; }
.prog-timeline__dot {
  width: 18px; height: 18px; border-radius: 4px; font-size: 8px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: #eef1f4; color: var(--muted); line-height: 1;
}
.prog-timeline__dot.is-active { background: var(--primary); color: #fff; }
.prog-timeline--lg .prog-timeline__dot { width: auto; min-width: 42px; height: 28px; font-size: 11px; padding: 0 4px; border-radius: 6px; }

/* ----------------------------- Detail view ----------------------------- */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin-bottom: 18px; }
@media (max-width: 720px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-grid__label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; font-weight: 700; }
.detail-grid__value { font-size: 14px; font-weight: 600; color: var(--text); }
.detail-block { margin-top: 18px; }
.detail-block__label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.detail-block p { margin: 0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; color: var(--text-secondary); }

/* ----------------------------- Auth pages (TDA ONE) ----------------------------- */
.auth-body {
  --auth-lime: #78ee72;
  --auth-lime-soft: rgba(120, 238, 114, 0.88);
  --auth-ink: #0a1f4a;
  background-color: var(--tda-brand-gradient-base);
  background-image: var(--tda-brand-gradient);
  overflow-x: hidden;
  min-height: 100vh;
}
.auth-body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 48% at 28% 42%, rgba(120, 238, 114, 0.14) 0%, transparent 62%),
    radial-gradient(ellipse 50% 45% at 92% 88%, rgba(255, 255, 255, 0.05) 0%, transparent 55%);
}
.auth-nodes-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
  opacity: .86;
  animation: authCanvasFade 1.2s ease both;
}
.auth-wrap {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 440px);
  align-items: stretch;
}
.auth-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 8vh, 80px) clamp(28px, 5vw, 72px);
}
.auth-hero__inner {
  max-width: 560px;
  width: 100%;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.auth-anim {
  opacity: 0;
  animation: authRise .85s cubic-bezier(.22, 1, .36, 1) var(--d, 0s) both;
}
.auth-anim-panel {
  opacity: 0;
  animation: authPanelItem .7s cubic-bezier(.22, 1, .36, 1) var(--d, .3s) both;
}
.auth-hero__brand-wrap {
  position: relative;
  display: inline-block;
  z-index: 2;
}
/* Perisai lembut supaya node/line tidak menimpa logo */
.auth-hero__brand-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 128%;
  height: 145%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 48, 120, 0.82) 0%,
    rgba(0, 55, 140, 0.55) 42%,
    rgba(0, 55, 140, 0.18) 68%,
    transparent 78%
  );
  z-index: -1;
  pointer-events: none;
}
.auth-hero__orbit {
  position: absolute;
  left: 52%;
  top: 58%;
  width: clamp(180px, 28vw, 320px);
  height: clamp(180px, 28vw, 320px);
  transform: translate(-36%, -50%);
  pointer-events: none;
  z-index: 0;
}
.auth-hero__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(120, 238, 114, .22);
  animation: authOrbitSpin 18s linear infinite;
}
.auth-hero__ring--a {
  inset: 8%;
  border-color: rgba(120, 238, 114, .28);
  border-style: dashed;
  animation-duration: 14s;
}
.auth-hero__ring--b {
  inset: -6%;
  border-color: rgba(255, 255, 255, .12);
  animation-direction: reverse;
  animation-duration: 22s;
}
.auth-hero__spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--auth-lime);
  box-shadow: 0 0 16px rgba(120, 238, 114, .85), 0 0 32px rgba(120, 238, 114, .4);
  animation: authSparkOrbit 14s linear infinite;
}
.auth-hero__brand {
  margin: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  line-height: .92;
  font-family: Poppins, sans-serif;
}
.auth-hero__tda-logo {
  height: clamp(3.2rem, 9.2vw, 6.4rem);
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .22));
}
.auth-hero__one {
  display: inline-flex;
  align-items: center;
  font-size: clamp(3.4rem, 10vw, 7.2rem);
  font-weight: 800;
  letter-spacing: -.08em;
  color: var(--auth-lime);
  line-height: .9;
  gap: 0.02em;
}
/* Huruf O = bulatan Pusat — warna lime jelas, selaras NE */
.auth-hero__one-hub {
  display: inline-block;
  width: 0.88em;
  height: 0.88em;
  margin-right: 0.02em;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
  position: relative;
  z-index: 3;
  background:
    radial-gradient(circle at 38% 32%, #c9ffc4 0%, #96f490 28%, #78ee72 62%, #4fd44a 100%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.75),
    0 0 22px rgba(120, 238, 114, 0.85),
    0 0 48px rgba(120, 238, 114, 0.45);
}
.auth-hero__one-hub.auth-anim {
  animation:
    authRise .85s cubic-bezier(.22, 1, .36, 1) var(--d, .38s) both,
    authHubPulse 3.2s ease-in-out 1.2s infinite;
}
.auth-hero__one-hub::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  height: 34%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 55, 130, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.auth-hero__one-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em) scale(.86);
  filter: blur(8px);
  text-shadow: 0 0 48px rgba(120, 238, 114, .35);
  animation:
    authLetterIn .7s cubic-bezier(.22, 1, .36, 1) calc(.38s + var(--i) * .1s) both,
    authOneGlow 3.8s ease-in-out calc(1.2s + var(--i) * .12s) infinite;
}
.auth-hero__tagline {
  margin: clamp(16px, 2.4vh, 24px) auto 0;
  max-width: none;
  font-size: clamp(14px, 1.45vw, 18px);
  line-height: 1.35;
  font-weight: 500;
  color: rgba(255, 255, 255, .78);
  letter-spacing: -.01em;
  white-space: nowrap;
  text-align: center;
}
.auth-hero__line {
  margin: 18px auto 0;
  height: 2px;
  width: min(220px, 55%);
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--auth-lime), transparent);
  transform-origin: center;
}
.auth-panel {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: rgba(255, 255, 255, .97);
  box-shadow: -24px 0 64px rgba(0, 32, 90, .22);
  animation: authPanelSlide .75s cubic-bezier(.22, 1, .36, 1) .12s both;
  backdrop-filter: blur(8px);
}
.auth-panel__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vh, 48px) clamp(24px, 3.5vw, 40px);
}
.auth-panel__content { width: 100%; }
.auth-panel__head { margin-bottom: 22px; }
.auth-panel__title {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--auth-ink);
}
.auth-panel__sub {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
}
.auth-panel .alert { margin-bottom: 16px; }
.auth-panel__foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.auth-panel__badge90 {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: .9;
}
.auth-footer {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .01em;
}
.auth-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-family: Poppins, sans-serif;
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.auth-google:hover {
  background: var(--surface); border-color: var(--border-light);
  box-shadow: var(--shadow); transform: translateY(-1px);
  color: var(--text);
}
.auth-google:active { transform: translateY(0); box-shadow: none; }
.auth-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 14px 0 12px; color: var(--muted); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}
.auth-divider span { flex-shrink: 0; padding: 0 2px; }
.auth-form { margin-top: 0; }
.auth-form .form-group { margin-bottom: 16px; }
.auth-form .form-group:last-of-type { margin-bottom: 0; }
.auth-form label { font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-secondary); letter-spacing: -.01em; }
.auth-captcha { margin-bottom: 16px; }
.auth-captcha__label {
  display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px;
  color: var(--text-secondary); letter-spacing: -.01em;
}
.auth-captcha__field {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-captcha__field:focus-within {
  border-color: #0047ab;
  box-shadow: 0 0 0 3px rgba(0, 71, 171, .18);
  background: #fff;
}
.auth-captcha__eq {
  flex: 0 0 auto;
  font-size: 15px; font-weight: 600; color: var(--text-secondary);
  font-variant-numeric: tabular-nums; letter-spacing: .03em;
  user-select: none; white-space: nowrap;
}
.auth-captcha__eq strong {
  color: #0047ab; font-weight: 800; font-size: 18px;
  font-family: Poppins, sans-serif;
}
.auth-captcha__input {
  flex: 1; width: auto; min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 16px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center; letter-spacing: .04em;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  -moz-appearance: textfield;
}
.auth-captcha__input::-webkit-outer-spin-button,
.auth-captcha__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.auth-captcha__input:focus {
  outline: none; border-color: #0047ab;
  box-shadow: 0 0 0 3px rgba(0, 71, 171, .18);
}
.auth-captcha__input::placeholder { color: #94a3b8; font-weight: 600; }
.auth-captcha__refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #0047ab;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease;
}
.auth-captcha__refresh svg {
  width: 16px;
  height: 16px;
}
.auth-captcha__refresh:hover:not(:disabled) {
  background: #eef0ff;
  border-color: rgba(0, 71, 171, .25);
}
.auth-captcha__refresh:disabled {
  opacity: .6;
  cursor: wait;
}
.auth-captcha__refresh.is-loading svg {
  animation: auth-captcha-spin .7s linear infinite;
}
@keyframes auth-captcha-spin {
  to { transform: rotate(360deg); }
}
.input--auth {
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px;
  border: 1px solid var(--border); background: var(--bg);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input--auth:hover { border-color: #b8c4d4; }
.input--auth:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 71, 171, .18);
  border-color: #0047ab;
  outline: none;
}
.input--auth::placeholder { color: #94a3b8; }
.btn--login {
  padding: 14px 18px; font-size: 14px; border-radius: var(--radius-sm);
  margin-top: 0; font-weight: 700; letter-spacing: -.01em;
  background: #0047ab;
  border-color: #0047ab;
  box-shadow: 0 2px 10px rgba(0, 71, 171, .28);
  position: relative;
  overflow: hidden;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.btn--login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(120, 238, 114, .22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .55s ease;
}
.btn--login:hover {
  background: #003580;
  border-color: #003580;
  box-shadow: 0 6px 20px rgba(0, 71, 171, .38);
  transform: translateY(-1px);
}
.btn--login:hover::before { transform: translateX(120%); }
.btn--login:active { transform: translateY(0); }
.btn--login.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.88;
  cursor: wait;
}
.btn--login.is-loading::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-login-spin 0.65s linear infinite;
}
.auth-form.is-submitting { pointer-events: none; }
.auth-form.is-submitting .input--auth:read-only {
  opacity: 0.72;
  cursor: not-allowed;
  background: var(--surface);
}
.auth-google.is-disabled {
  pointer-events: none;
  opacity: 0.55;
  cursor: not-allowed;
}
@keyframes auth-login-spin {
  to { transform: rotate(360deg); }
}
@keyframes authCanvasFade {
  from { opacity: 0; }
  to { opacity: .86; }
}
@keyframes authRise {
  from { opacity: 0; transform: translateY(22px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes authPanelSlide {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: none; }
}
@keyframes authPanelItem {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes authLetterIn {
  0% { opacity: 0; transform: translateY(.4em) scale(.82); filter: blur(10px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes authOneGlow {
  0%, 100% {
    text-shadow: 0 0 28px rgba(120, 238, 114, .28), 0 0 2px rgba(120, 238, 114, .4);
    transform: translateY(0);
  }
  50% {
    text-shadow: 0 0 52px rgba(120, 238, 114, .55), 0 0 8px rgba(120, 238, 114, .35);
    transform: translateY(-2px);
  }
}
@keyframes authHubPulse {
  0%, 100% {
    filter: brightness(1);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.75),
      0 0 22px rgba(120, 238, 114, 0.8),
      0 0 48px rgba(120, 238, 114, 0.4);
  }
  50% {
    filter: brightness(1.08);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.9),
      0 0 28px rgba(168, 255, 160, 0.95),
      0 0 56px rgba(120, 238, 114, 0.55);
  }
}
@keyframes authOrbitSpin {
  to { transform: rotate(360deg); }
}
@keyframes authSparkOrbit {
  0% { transform: rotate(0deg) translateX(clamp(70px, 12vw, 140px)); opacity: .9; }
  50% { opacity: 1; }
  100% { transform: rotate(360deg) translateX(clamp(70px, 12vw, 140px)); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-anim,
  .auth-anim-panel,
  .auth-panel,
  .auth-nodes-canvas,
  .auth-hero__one-letter,
  .auth-hero__one-hub,
  .auth-hero__ring,
  .auth-hero__spark,
  .btn--login::before { animation: none !important; }
  .auth-anim,
  .auth-anim-panel,
  .auth-hero__one-letter { opacity: 1 !important; transform: none !important; filter: none !important; }
  .auth-panel { opacity: 1 !important; transform: none !important; }
}
@media (max-width: 900px) {
  .auth-body {
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  /* Blob hijau besar di pojok atas sering terlihat kepotong di mobile */
  .auth-body::after {
    background:
      radial-gradient(ellipse 70% 36% at 50% 8%, rgba(120, 238, 114, 0.1) 0%, transparent 70%),
      radial-gradient(ellipse 50% 40% at 90% 95%, rgba(255, 255, 255, 0.04) 0%, transparent 55%);
  }
  .auth-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-content: safe center;
    gap: 10px;
    min-height: 100dvh;
    min-height: 100svh;
    padding:
      max(12px, env(safe-area-inset-top))
      14px
      max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
  }
  .auth-hero {
    min-height: 0;
    height: auto;
    width: 100%;
    flex: none;
    padding: 8px 8px 6px;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }
  .auth-hero__inner {
    max-width: none;
    width: 100%;
    padding: 0 4px;
    overflow: visible;
  }
  .auth-hero__brand {
    justify-content: center;
    gap: 8px;
  }
  .auth-hero__tda-logo { height: clamp(2.4rem, 12vw, 3rem); }
  .auth-hero__one { font-size: clamp(2.5rem, 14vw, 3.2rem); }
  .auth-hero__one-hub {
    width: 0.82em;
    height: 0.82em;
    /* Glow lebih ringkas biar tidak kepotong di tepi layar */
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.7),
      0 0 14px rgba(120, 238, 114, 0.7),
      0 0 28px rgba(120, 238, 114, 0.35);
  }
  /* Orbit lingkaran tidak dipakai di mobile — sering kepotong */
  .auth-hero__orbit { display: none; }
  /* Overlay gelap di belakang logo dihilangkan di mobile */
  .auth-hero__brand-wrap::before { display: none; }
  .auth-hero__tagline {
    font-size: clamp(11px, 3.1vw, 13.5px);
    margin-top: 10px;
    white-space: nowrap;
    letter-spacing: -.02em;
  }
  .auth-hero__line {
    margin-top: 10px;
    width: min(160px, 48%);
  }
  .auth-panel {
    box-shadow: 0 8px 36px rgba(0, 30, 80, .16);
    border-radius: 20px;
    margin: 0;
    flex: none;
    align-self: center;
    width: 100%;
    max-width: 440px;
    height: auto;
    min-height: 0;
    animation-name: authPanelSlideMobile;
    overflow: visible;
  }
  .auth-panel__inner {
    padding: 20px 18px 18px;
    justify-content: flex-start;
    min-height: 0;
    height: auto;
  }
  .auth-panel__head { margin-bottom: 16px; }
  .auth-panel__title { font-size: 1.35rem; }
  .auth-panel__sub { font-size: 12.5px; }
  .auth-panel__foot {
    margin-top: 14px;
    padding-top: 12px;
    gap: 6px;
  }
  .auth-panel__badge90 { height: 28px; }
  .auth-footer { display: none; }
  .auth-form .form-group { margin-bottom: 12px; }
  .auth-captcha { margin-bottom: 12px; }
  .btn--login { padding: 13px 16px; }
  .auth-node-pop,
  .auth-node-pop--anchored {
    top: auto !important;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, 8px) scale(.98) !important;
    width: min(300px, calc(100vw - 32px));
    max-height: none;
    overflow: visible;
    background: rgba(255, 255, 255, 0.78);
  }
  .auth-node-pop.is-open,
  .auth-node-pop:not([hidden]),
  .auth-node-pop--anchored.is-open,
  .auth-node-pop--anchored:not([hidden]) {
    transform: translate(-50%, 0) scale(1) !important;
  }
  .auth-node-pop__tip { display: none; }
}
@keyframes authPanelSlideMobile {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 480px) {
  .auth-wrap {
    padding:
      max(10px, env(safe-area-inset-top))
      12px
      max(10px, env(safe-area-inset-bottom));
    gap: 8px;
  }
  .auth-hero { padding: 2px 4px 4px; }
  .auth-hero__tda-logo { height: clamp(2.1rem, 11vw, 2.6rem); }
  .auth-hero__one { font-size: clamp(2.2rem, 13vw, 2.8rem); }
  .auth-hero__tagline {
    font-size: clamp(10.5px, 2.9vw, 12.5px);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .auth-panel__inner { padding: 18px 16px max(16px, env(safe-area-inset-bottom)); }
  .auth-panel__title { font-size: 1.25rem; }
  .auth-captcha__field { padding: 10px 12px; gap: 10px; }
  .auth-captcha__eq strong { font-size: 16px; }
  .auth-captcha__input { padding: 9px 12px; font-size: 15px; }
}

/* Popup info node wilayah / daerah */
.auth-node-pop {
  position: fixed;
  z-index: 40;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(.96);
  box-sizing: border-box;
  width: min(300px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  max-height: none;
  overflow: visible;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  color: #0a1f4a;
  box-shadow:
    0 18px 48px rgba(0, 30, 80, .28),
    0 0 0 1px rgba(255, 255, 255, .35) inset;
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  opacity: 0;
  pointer-events: none;
  will-change: transform, left, top, opacity;
  transition: opacity .22s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
  scrollbar-width: none;
}
.auth-node-pop.is-open,
.auth-node-pop:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.auth-node-pop--anchored {
  cursor: grab;
  touch-action: none;
  transform: translate(var(--enter-x, 0px), var(--enter-y, 0px)) scale(var(--enter-scale, 0.42));
  opacity: 0;
  transition:
    opacity .3s ease,
    transform .38s cubic-bezier(.22, 1, .36, 1);
}
.auth-node-pop--anchored.is-open {
  transform: translate(0, 0) scale(1);
  opacity: 1;
}
.auth-node-pop--anchored.is-dragging {
  transition: none;
  cursor: grabbing;
  user-select: none;
}
.auth-node-pop[hidden] { display: none !important; }
.auth-node-pop__drag {
  margin: -4px -4px 0;
  padding: 4px 28px 0 4px;
}
.auth-node-pop.is-dragging,
.auth-node-pop.is-dragging .auth-node-pop__drag { cursor: grabbing; }
.auth-node-pop__chip,
.auth-node-pop__close { cursor: pointer; touch-action: manipulation; }
.auth-node-pop__tip {
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, .45);
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 0;
}
.auth-node-pop[data-side="right"] .auth-node-pop__tip {
  left: -7px;
  top: var(--pop-tip-y, 28%);
  border-right: 0;
  border-top: 0;
}
.auth-node-pop[data-side="left"] .auth-node-pop__tip {
  right: -7px;
  top: var(--pop-tip-y, 28%);
  border-left: 0;
  border-bottom: 0;
}
.auth-node-pop[data-side="bottom"] .auth-node-pop__tip {
  top: -7px;
  left: var(--pop-tip-x, 50%);
  margin-left: -7px;
  border-right: 0;
  border-bottom: 0;
}
.auth-node-pop[data-side="top"] .auth-node-pop__tip {
  bottom: -7px;
  left: var(--pop-tip-x, 50%);
  margin-left: -7px;
  border-left: 0;
  border-top: 0;
}
.auth-node-pop__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.auth-node-pop__close:hover { background: #f1f5f9; color: #0f172a; }
.auth-node-pop__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0047ab;
  margin-bottom: 4px;
}
.auth-node-pop__title {
  margin: 0 28px 8px 0;
  font-family: Poppins, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #0a1f4a;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.auth-node-pop__list { margin: 0; }
.auth-node-pop__row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4px 10px;
  padding: 6px 0;
  border-top: 1px solid #e2e8f0;
}
.auth-node-pop__row dt {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.auth-node-pop__row dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  overflow-wrap: anywhere;
}
.auth-node-pop__related {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}
.auth-node-pop__related[hidden] { display: none !important; }
.auth-node-pop__related-block + .auth-node-pop__related-block { margin-top: 8px; }
.auth-node-pop__related-label {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}
.auth-node-pop__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: none;
  overflow: visible;
}
.auth-node-pop__chip {
  appearance: none;
  border: 1px solid rgba(0, 71, 171, .16);
  background: #f1f5f9;
  color: #0a1f4a;
  border-radius: 999px;
  padding: 4px 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: background .15s, border-color .15s, color .15s;
}
.auth-node-pop__chip:hover {
  background: #e8f1ff;
  border-color: rgba(0, 71, 171, .35);
  color: #0047ab;
}
.auth-node-pop__chip--wilayah {
  background: rgba(120, 238, 114, .16);
  border-color: rgba(80, 180, 90, .35);
  color: #1a5c2a;
}
.auth-node-pop__chip--wilayah:hover {
  background: rgba(120, 238, 114, .28);
  border-color: rgba(80, 180, 90, .5);
  color: #145222;
}
.auth-node-pop__chip.is-current {
  background: #0047ab;
  border-color: #0047ab;
  color: #fff;
  cursor: default;
}

/* ----------------------------- Legal pages ----------------------------- */
.legal-body { background: var(--bg); min-height: 100vh; }
.legal-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.legal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 32px; background: var(--surface); border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}
.legal-header__brand {
  display: flex; align-items: center; gap: 12px; color: var(--text); font-family: Poppins, sans-serif;
  font-weight: 700; font-size: 16px; text-decoration: none;
}
.legal-header__logo { height: 32px; width: auto; }
.legal-header__nav { display: flex; gap: 20px; flex-wrap: wrap; }
.legal-header__nav a {
  font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none;
}
.legal-header__nav a:hover,
.legal-header__nav a.is-active { color: var(--primary); }
.legal-main { flex: 1; padding: 40px 20px 48px; }
.legal-card {
  max-width: 760px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-xl);
  padding: 40px 44px; box-shadow: var(--shadow-md); border: 1px solid var(--border-light);
}
.legal-app-name {
  margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--primary);
}
.legal-card h1 { font-size: 28px; margin: 0 0 8px; }
.legal-updated { font-size: 13px; color: var(--muted); margin: 0 0 28px; font-weight: 500; }
.legal-footer a { color: var(--primary); font-weight: 650; }
.legal-card h2 { font-size: 17px; margin: 28px 0 10px; color: var(--text); }
.legal-card p { margin: 0 0 14px; color: var(--text-secondary); line-height: 1.65; }
.legal-card ul { margin: 0 0 14px; padding-left: 20px; color: var(--text-secondary); line-height: 1.65; }
.legal-card li { margin-bottom: 6px; }
.legal-footer {
  text-align: center; padding: 24px 20px 32px; font-size: 13px; color: var(--muted); font-weight: 500;
}
.legal-footer p { margin: 0 0 6px; }
@media (max-width: 640px) {
  .legal-header { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
  .legal-card { padding: 28px 22px; border-radius: var(--radius-lg); }
  .legal-card h1 { font-size: 24px; }
}

/* ----------------------------- About / OAuth landing ----------------------------- */
.home-body {
  background: linear-gradient(160deg, #0a0c28 0%, #12143a 25%, var(--primary-d) 50%, var(--primary) 75%, #1e2170 100%);
  min-height: 100vh;
}
.home-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.home-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 32px; flex-wrap: wrap;
}
.home-brand {
  display: flex; align-items: center; gap: 12px; color: #fff; font-family: Poppins, sans-serif;
  font-weight: 700; font-size: 18px; text-decoration: none;
}
.home-brand__logo { height: 36px; width: auto; filter: brightness(0) invert(1); }
.home-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.home-nav a { color: rgba(255,255,255,.78); font-size: 13px; font-weight: 600; text-decoration: none; }
.home-nav a:hover { color: #fff; }
.home-nav__cta {
  padding: 8px 16px; border-radius: var(--radius-sm); background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22); color: #fff !important;
}
.home-nav__cta:hover { background: rgba(255,255,255,.2); }
.home-main { flex: 1; width: 100%; max-width: 920px; margin: 0 auto; padding: 24px 20px 56px; }
.home-hero {
  background: rgba(255,255,255,.96); border-radius: var(--radius-xl); padding: 44px 40px;
  box-shadow: var(--shadow-xl); border: 1px solid rgba(255,255,255,.12); margin-bottom: 24px;
}
.home-hero__badge {
  display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px;
  background: var(--primary-50); color: var(--primary); font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.home-hero__app-label {
  margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary);
}
.home-hero h1 { font-size: 48px; margin: 0 0 12px; letter-spacing: -.04em; color: var(--text); }
.home-hero__subtitle { font-size: 14px; color: var(--muted); margin: 0 0 16px; font-weight: 600; }
.home-hero__purpose {
  font-size: 15px; line-height: 1.7; color: var(--text); margin: 0 0 14px;
  padding: 14px 16px; border-radius: var(--radius-sm); background: var(--primary-50);
  border-left: 4px solid var(--primary);
}
.home-hero__purpose p { margin: 0 0 8px; }
.home-hero__purpose p:last-child { margin-bottom: 0; }
.home-hero__purpose--data {
  background: #eefaf1;
  border-left-color: #3ec85a;
}
.home-hero__lead { font-size: 16px; line-height: 1.65; color: var(--text-secondary); margin: 0 0 14px; max-width: 720px; }
.home-hero__legal-line {
  margin: 0 0 22px; font-size: 14px; font-weight: 600; color: var(--text-secondary); line-height: 1.6;
}
.home-hero__legal-line a { color: var(--primary); text-decoration: underline; }
.home-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.about-facts { margin: 8px 0 0; display: grid; gap: 0; }
.about-facts__row {
  display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 12px 20px;
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
}
.about-facts__row:last-child { border-bottom: none; }
.about-facts dt { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.about-facts dd { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.about-list { margin: 12px 0 0; padding-left: 20px; color: var(--text-secondary); line-height: 1.7; }
.about-list li { margin-bottom: 8px; }
.about-list--plain { list-style: none; padding-left: 0; }
.about-legal-links { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.about-legal-links li {
  padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg);
  border: 1px solid var(--border-light); font-size: 14px; line-height: 1.5;
}
.about-legal-links a { font-weight: 700; }
.about-legal-links span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; }
.home-section--legal { border: 1px solid var(--primary-100); }
.btn--home-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: var(--radius-sm); background: var(--primary); color: #fff;
  font-weight: 700; font-size: 14px; text-decoration: none; border: none;
}
.btn--home-primary:hover { background: var(--primary-d); color: #fff; }
.btn--home-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: var(--radius-sm); background: #fff; color: var(--text);
  font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid var(--border);
}
.btn--home-secondary:hover { background: var(--bg); color: var(--primary); }
.home-section {
  background: rgba(255,255,255,.94); border-radius: var(--radius-lg); padding: 28px 32px;
  margin-bottom: 16px; box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,.1);
}
.home-section h2 { font-size: 20px; margin: 0 0 12px; }
.home-section p { margin: 0; color: var(--text-secondary); line-height: 1.65; }
.home-section--contact .home-links { margin-top: 14px; font-size: 13px; }
.home-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.home-feature {
  padding: 16px 18px; border-radius: var(--radius); background: var(--bg);
  border: 1px solid var(--border-light);
}
.home-feature h3 { font-size: 15px; margin: 0 0 6px; }
.home-feature p { font-size: 13px; margin: 0; }
.home-footer {
  text-align: center; padding: 20px; font-size: 12px; color: rgba(255,255,255,.55); font-weight: 500;
}
@media (max-width: 720px) {
  .home-header { padding: 16px 20px; }
  .home-hero { padding: 32px 24px; }
  .home-hero h1 { font-size: 34px; }
  .home-hero__legal-line { font-size: 13px; }
  .home-section { padding: 22px 20px; }
  .home-features { grid-template-columns: 1fr; }
}

.text-muted { color: var(--muted); font-weight: 500; }
.text-right { text-align: right; } .text-center { text-align: center; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.flex { display:flex; } .items-center{align-items:center} .justify-between{justify-content:space-between} .gap-2{gap:8px} .gap-3{gap:16px}
.flex-wrap{flex-wrap:wrap}
.w-full{width:100%}
.empty { text-align:center; padding: 40px 20px; color: var(--muted); }
.empty .ico { font-size: 40px; opacity:.4; }

/* progress bar */
.progress { height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(15,23,42,.06); }
.progress > span { display:block; height:100%; background: linear-gradient(90deg, var(--success) 0%, #22c55e 100%); border-radius: 999px; transition: width .4s cubic-bezier(.4,0,.2,1); }

/* chips/filters */
.filters { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.filters .input, .filters select { width:auto; min-width:0; flex: 0 1 auto; }
.filters > input[type="search"].input { min-width: 180px; flex: 1 1 200px; max-width: 300px; }
.filters select { min-width: 140px; max-width: 240px; }
.filters .search-act { flex: 0 0 auto; }
/* Select2 di toolbar filter — lebar compact, tidak full-row */
.filters .select2-container {
  width: auto !important;
  min-width: 140px;
  max-width: 240px;
  flex: 0 1 200px;
}
.filters .form-group .select2-container {
  width: 100% !important;
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
}
.filters .select2-container--default .select2-selection--single {
  height: 36px;
}
.filters .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 34px;
  font-size: 13.5px;
}
.filters .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 32px;
}

/* Search + tombol aksi — selalu satu baris */
.search-act {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.search-act .input,
.search-act input[type="search"],
.search-act select {
  width: auto;
  min-width: 140px;
  max-width: 280px;
  flex: 0 1 220px;
}
.search-act .btn,
.search-act a.btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Toolbar: judul kiri, pencarian+aksi kanan */
.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.toolbar-row > :first-child:not(.search-act) { min-width: 0; }
.toolbar-row .search-act { margin-left: auto; }
.card__head .search-act { margin-left: 0; }
.card__head .filters .search-act { margin-left: auto; }
.org-filter.is-active { background: var(--primary-50); border-color: var(--primary); color: var(--primary); font-weight: 700; }

@media (max-width: 980px){
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .content {
    padding: 20px;
    padding-bottom: calc(20px + 72px + env(safe-area-inset-bottom, 0px));
  }
  .topbar { padding: 0 20px; height: 60px; }
  .sidebar__brand { height: 60px; min-height: 60px; }
  .dt-toolbar .input { max-width:100%; }
  .grid[style*="420px"] { grid-template-columns: 1fr !important; }
  .grid[style*="280px"] { grid-template-columns: 1fr !important; }
  .mobile-nav { display: flex; }
}

/* ----------------------------- Org Chart Canvas ----------------------------- */
.org-viewport {
  position: relative;
  height: min(68vh, 620px);
  min-height: 320px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  box-shadow: inset 0 2px 8px rgba(15,23,42,.04);
}
.org-viewport--dragging { cursor: grabbing; }
.org-canvas {
  position: absolute;
  top: 0; left: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.org-lines {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  overflow: visible;
}
.org-lines line {
  stroke: #b8c4d0;
  stroke-width: 2;
  stroke-linecap: round;
}
.org-nodes { position: relative; }
.org-node {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.org-node:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary-ring);
  z-index: 2;
}
.org-node--member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  height: 72px;
  border: 1px solid var(--border);
}
.org-node__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.org-node__avatar--letter {
  display: flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
.org-node__body { min-width: 0; flex: 1; }
.org-node__name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-node__role { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-node--divisi {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 44px;
  border: 2px solid var(--primary);
  font-weight: 600;
  font-size: 12.5px;
}
.org-node__divisi-bar { width: 4px; height: 24px; border-radius: 2px; flex-shrink: 0; }
.org-node__divisi-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-node--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  background: rgba(255,255,255,.6);
  color: var(--muted);
  font-size: 12px;
  height: 52px;
}
.org-node--empty:hover { border-color: var(--primary); color: var(--primary); }
.org-empty { text-align: center; padding: 60px 20px; color: var(--muted); width: 100%; }
.org-empty .ico { font-size: 40px; opacity: .4; margin-bottom: 8px; }
.org-toolbar { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.org-hint { font-size: 12px; margin: 10px 0 0; text-align: center; }

/* DnD & interactivity */
.org-viewport--dnd { cursor: grabbing; }
.org-viewport--dnd .org-node--member { pointer-events: none; }
.org-node--member { cursor: grab; }
.org-node--member:active { cursor: grabbing; }
.org-node--dragging { opacity: .35; transform: scale(.96); }
.org-node__grip {
  color: var(--muted); font-size: 14px; line-height: 1; flex-shrink: 0;
  opacity: .45; cursor: grab; user-select: none; padding: 0 2px;
}
.org-node:hover .org-node__grip { opacity: .85; color: var(--primary); }
.org-node__grip--col { margin-right: 2px; }
.org-node--selected {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(46,49,146,.15), var(--shadow-lg);
}
.org-ghost {
  position: fixed; z-index: 9998; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-2deg);
  opacity: .92; box-shadow: var(--shadow-lg);
}
.org-dropzone { transition: background .15s, outline .15s; border-radius: 10px; }
.org-dropzone--active {
  background: rgba(46,49,146,.07);
  outline: 2px dashed var(--primary);
  outline-offset: 4px;
}
.org-inti-zone {
  text-align: center; padding: 16px 20px 20px; margin-bottom: 8px;
  border: 2px solid var(--border); border-radius: 12px;
  background: rgba(255,255,255,.7);
}
.org-inti-zone__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 13px; margin-bottom: 16px; color: var(--text);
}
.org-inti__ketua { display: flex; justify-content: center; margin-bottom: 12px; }
.org-inti__row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.org-cols-row { position: relative; display: flex; justify-content: center; gap: 28px; flex-wrap: nowrap; padding-top: 12px; }
.org-col {
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px 8px 14px; border-radius: 10px;
  border-top: 3px solid var(--border);
  background: rgba(255,255,255,.5);
  transition: transform .12s, box-shadow .12s;
}
.org-col--dragging { box-shadow: var(--shadow-lg); background: var(--surface); }
.org-col--over { outline: 2px dashed var(--secondary); outline-offset: 3px; }
.org-col__body { display: flex; flex-direction: column; gap: 10px; min-height: 52px; }
.org-node--divisi { cursor: grab; position: relative; width: 100%; }
.org-node--divisi:active { cursor: grabbing; }
.org-node--empty-inti { margin: 0 auto; max-width: 240px; }

/* Popover */
.org-popover {
  position: fixed; z-index: 9999; width: 220px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 12px 14px;
  animation: orgPop .15s ease;
}
@keyframes orgPop { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.org-popover__name { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.org-popover__role { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.org-popover__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.org-popover__actions .btn { flex: 1; min-width: 0; font-size: 12px; padding: 6px 10px; }

/* ----------------------------- Laporan page ----------------------------- */
.laporan-tabs { flex-wrap: wrap; }
.laporan-panel { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .laporan-panel { grid-template-columns: 1fr; } }
.laporan-panel__intro { min-width: 0; }
.laporan-panel__icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 14px;
}
.laporan-panel__title { margin: 0; font-size: 18px; font-weight: 600; }
.laporan-panel__desc { margin: 8px 0 12px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.laporan-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.laporan-tag {
  font-size: 11.5px; padding: 4px 10px; border-radius: 20px; background: var(--bg-alt, #f4f4f5);
  color: var(--text); border: 1px solid var(--border);
}
.laporan-source { font-size: 12px; color: var(--muted); margin: 0; }
.laporan-panel__form {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}
.laporan-dl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.laporan-dl__btn { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; justify-content: center; }
.laporan-dl__fmt {
  font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35);
}
.btn--secondary .laporan-dl__fmt { background: rgba(0,0,0,.06); border-color: var(--border); }
.laporan-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
.laporan-preview { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }
.laporan-keu-mini { font-size: 14px; }
.laporan-footnote { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.tabs-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.stat-scope-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--text);
  line-height: 1.3;
}
.tabs-head .tabs-bar { margin-left: auto; flex-shrink: 0; }
@media (max-width: 720px) {
  .stat-scope-title { flex-basis: 100%; }
  .tabs-head .tabs-bar { margin-left: 0; width: 100%; }
}

/* Legacy report styles */
.report-card .card__head { align-items: flex-start; }
.report-block { margin-bottom: 14px; }
.report-block:last-of-type { margin-bottom: 0; }
.report-block__label {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 6px;
}
.report-list, .report-steps {
  margin: 0; padding-left: 18px; font-size: 13px; color: var(--text); line-height: 1.55;
}
.report-list li + li, .report-steps li + li { margin-top: 4px; }
.report-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.form-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.45; }

.api-doc-link-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; background: var(--primary-50, #eff6ff); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.check-label { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 6px; }
.check-label input { margin-top: 3px; }

/* Member detail */
.mem-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mem-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  align-items: stretch;
}
/* Foto square kompak di samping headline; metrics full-width di baris bawah */
.mem-hero__media {
  grid-row: 1;
  grid-column: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  align-self: center;
  width: 112px;
  min-width: 112px;
  padding: 14px 0 14px 14px;
  background: transparent;
  color: var(--text);
  isolation: isolate;
}
.mem-hero__edit-btn {
  position: absolute;
  top: -2px;
  right: -2px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15,23,42,.18);
  transition: background .15s, border-color .15s, transform .15s;
}
.mem-hero__edit-btn svg {
  width: 10px;
  height: 10px;
  display: block;
}
.mem-hero__edit-btn:hover {
  background: var(--primary-d);
  border-color: #fff;
  transform: scale(1.05);
}
.mem-hero__media::before,
.mem-hero__media::after {
  display: none;
}
.mem-hero__avatar-wrap {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 12px;
  overflow: visible;
  background: var(--bg);
  border: 1px solid var(--border-light);
  box-shadow: none;
}
.mem-hero__avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: cover;
  object-position: center;
  border: 0;
  background: var(--bg);
}
.mem-hero__avatar--ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; font-family: "Poppins", sans-serif;
  color: var(--primary); background: var(--primary-50);
}
.mem-hero__passport {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.mem-hero__passport-no {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text);
}
.mem-hero__content {
  display: contents;
}
.mem-hero__headline {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  min-width: 0;
  padding: 16px 18px;
  align-self: center;
}
.mem-hero__meta { min-width: 0; flex: 1 1 200px; }
.mem-hero__name {
  margin: 0 0 4px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  font-family: "Poppins", sans-serif;
}
.mem-hero__meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.mem-hero__sep { opacity: .6; }
.mem-hero__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mem-hero .badge { border-radius: var(--radius-input); }
.mem-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}
.mem-hero__action {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  border-radius: 0;
  line-height: 0;
  transition: color .15s, opacity .15s, transform .15s;
}
.mem-hero__action svg {
  width: 20px;
  height: 20px;
  display: block;
}
.mem-hero__action--wa { color: #25d366; }
.mem-hero__action--instagram { color: #e1306c; }
.mem-hero__action--facebook { color: #1877f2; }
.mem-hero__action--tiktok { color: #111; }
.mem-hero__action--youtube { color: #ff0000; }
.mem-hero__action--website { color: var(--primary); }
.mem-hero__action:hover {
  color: var(--text);
  transform: scale(1.08);
}
.mem-hero__action--wa:hover { color: #128c7e; }
.mem-hero__action--instagram:hover { color: #c13584; }
.mem-hero__action--facebook:hover { color: #0d65d9; }
.mem-hero__action--tiktok:hover { color: #000; }
.mem-hero__action--youtube:hover { color: #cc0000; }
.mem-hero__action--website:hover { color: var(--primary-d, var(--primary)); }

/* Icon kembali — desktop di hero sebelah email; mobile melayang kanan atas */
.mem-hero__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  text-decoration: none;
  line-height: 0;
  transition: color .15s, transform .15s, background .15s, box-shadow .15s;
}
.mem-hero__back svg {
  width: 20px;
  height: 20px;
  display: block;
}
.mem-hero__back-label { display: none; }
.mem-hero__back:hover {
  color: var(--text);
  transform: scale(1.08);
}
@media (min-width: 721px) {
  .mem-hero__action { display: inline-flex; }
}
@media (max-width: 720px) {
  .mem-hero__actions {
    position: static;
    gap: 0;
  }
  .mem-hero__passport {
    position: fixed;
    top: 72px;
    right: 62px;
    z-index: 45;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .16);
  }
  .mem-hero__passport svg {
    width: 18px;
    height: 18px;
  }
  .mem-hero__passport:hover {
    transform: scale(1.05);
    background: var(--surface);
  }
  .mem-hero__back {
    position: fixed;
    top: 72px;
    right: 14px;
    z-index: 45;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .16);
  }
  .mem-hero__back svg {
    width: 18px;
    height: 18px;
  }
  .mem-hero__back:hover {
    transform: scale(1.05);
    background: var(--surface);
  }
}

.mem-hero__metrics {
  grid-row: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border-light);
}
.mem-metric {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  color: inherit;
  text-align: left;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
button.mem-metric { cursor: pointer; }
button.mem-metric:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}
.mem-metric__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 7px;
}
.mem-metric__icon svg {
  width: 13px;
  height: 13px;
  display: block;
}
.mem-metric__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  line-height: 1.15;
}
.mem-metric__value {
  font-size: .95rem;
  font-weight: 800;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  line-height: 1.15;
  word-break: break-word;
}
.mem-metric__label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  line-height: 1.2;
}
.mem-metric--bisnis {
  background: #eef2ff;
  border-color: #e0e7ff;
}
.mem-metric--bisnis .mem-metric__icon { background: #dbe4ff; color: #3730a3; }
.mem-metric--bisnis .mem-metric__value { color: #312e81; }
.mem-metric--produk {
  background: #fff7ed;
  border-color: #ffedd5;
}
.mem-metric--produk .mem-metric__icon { background: #ffedd5; color: #c2410c; }
.mem-metric--produk .mem-metric__value { color: #9a3412; }
.mem-metric--level {
  background: #f5f3ff;
  border-color: #ede9fe;
}
.mem-metric--level .mem-metric__icon { background: #ede9fe; color: #6d28d9; }
.mem-metric--level .mem-metric__value { color: #5b21b6; }
.mem-metric--profil {
  background: #ecfdf5;
  border-color: #d1fae5;
}
.mem-metric--profil .mem-metric__icon { background: #d1fae5; color: #047857; }
.mem-metric--profil .mem-metric__value { color: #065f46; }
.mem-metric--event {
  background: #ecfeff;
  border-color: #cffafe;
}
.mem-metric--event .mem-metric__icon { background: #cffafe; color: #0e7490; }
.mem-metric--event .mem-metric__value { color: #155e75; }
.mem-metric--poin {
  background: #fffbeb;
  border-color: #fef3c7;
}
.mem-metric--poin .mem-metric__icon { background: #fef3c7; color: #b45309; }
.mem-metric--poin .mem-metric__value { color: #92400e; }

.mem-tabs-card { margin: 0; }
.mem-tabs-card > .card__body.mem-tabs-body:first-child {
  border-radius: inherit;
}
.mem-tabs-body { padding: 20px !important; }

.mem-biz-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}
.mem-biz-head__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-family: "Poppins", sans-serif;
  line-height: 1.3;
}
.mem-biz-head__hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.mem-biz-head .mem-inline-tabs {
  margin-left: auto;
  flex-shrink: 0;
}

.mem-side-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  margin-bottom: 16px;
}

/* Member info tab — sidebar + form */
.mem-info-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.mem-info-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 16px;
}
.mem-panel {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.mem-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.mem-panel__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}
.mem-panel__pct {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  font-family: "Poppins", sans-serif;
}
.mem-panel__progress { margin-bottom: 12px; }
.mem-checklist--stack {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
}
.mem-checklist--stack .mem-checklist__item {
  width: 100%;
  border-radius: 8px;
  padding: 7px 10px;
  justify-content: flex-start;
  text-align: left;
}
.mem-kontak--compact .mem-kontak__item { padding: 7px 0; }
.mem-info-aside .mem-info-row {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
}
.mem-info-aside .mem-info-row__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  color: var(--muted);
}
.mem-info-aside .mem-info-block {
  margin-top: 8px;
  font-size: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.mem-info-main { min-width: 0; }
.mem-info-form {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.mem-info-form__intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}
.mem-info-form__intro-text { min-width: 180px; flex: 1; }
.mem-info-form__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-family: "Poppins", sans-serif;
}
.mem-info-form__hint { margin: 0; font-size: 13px; color: var(--muted); }
.mem-profile-photo-modal__preview {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.mem-profile-photo-modal__preview img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border-light);
  background: var(--bg);
}
.mem-biodata-flags--inline {
  margin-top: 0;
  justify-content: flex-start;
  min-height: auto;
  gap: 18px;
}
.mem-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mem-status-card {
  display: block;
  margin: 0;
  cursor: pointer;
}
.mem-status-card__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mem-status-card__body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.mem-status-card:hover .mem-status-card__body {
  border-color: var(--primary-100);
}
.mem-status-card:has(.mem-status-card__input:checked) .mem-status-card__body {
  border-color: var(--primary);
  background: var(--primary-50);
  box-shadow: 0 0 0 3px var(--primary-ring, rgba(46, 49, 146, .12));
}
.mem-status-card__mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border);
  background: #fff;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: border-color .15s, background .15s;
}
.mem-status-card:has(.mem-status-card__input:checked) .mem-status-card__mark {
  border-color: var(--primary);
  background: var(--primary);
}
.mem-status-card:has(.mem-status-card__input:checked) .mem-status-card__mark::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 9px;
  left: 6px;
  top: 2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.mem-status-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mem-status-card__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.mem-status-card__hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 720px) {
  .mem-status-grid { grid-template-columns: 1fr; }
}
.mem-info-form__actions {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
}
.mem-info-form .form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.mem-profile-card__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; font-size: 14px;
}
.mem-profile-card__head b { font-size: 15px; }

.mem-checklist { display: flex; flex-wrap: wrap; gap: 8px; }
.mem-checklist__item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg);
}
.mem-checklist__item.is-done { color: var(--success); border-color: rgba(21,128,61,.18); background: var(--success-bg); }
.mem-checklist__item.is-pending { color: var(--muted); }

.mem-mark {
  width: 16px; height: 16px; flex-shrink: 0; position: relative; display: inline-block;
}
.mem-mark--done::before {
  content: ''; position: absolute; inset: 0;
  border: 2px solid currentColor; border-radius: 50%; opacity: .35;
}
.mem-mark--done::after {
  content: ''; position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 7px;
  margin-left: -1px; /* visual balance for check stem */
  border: solid currentColor; border-width: 0 2px 2px 0;
  transform: translate(-50%, -58%) rotate(45deg);
  box-sizing: border-box;
}
.mem-mark--pending::before {
  content: ''; position: absolute; inset: 1px;
  border: 2px solid currentColor; border-radius: 50%; opacity: .45;
}

.mem-kontak { margin: 0; padding: 0; }
.mem-kontak dt,
.mem-kontak dd { margin: 0; padding: 0; }
.mem-kontak__item { padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.mem-kontak__item:last-child { border-bottom: none; padding-bottom: 0; }
.mem-kontak__item:first-child { padding-top: 0; }
.mem-kontak__label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; text-align: left; }
.mem-kontak__value { display: block; font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.45; word-break: break-word; text-align: left; }
.mem-kontak__value a { color: var(--primary); text-decoration: none; }
.mem-kontak__value a:hover { text-decoration: underline; }

.mem-info-row {
  display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; align-items: start;
}
.mem-info-row:last-child { border-bottom: none; }
.mem-info-row__label { color: var(--muted); font-size: 13px; }
.mem-info-row__value { font-weight: 500; word-break: break-word; line-height: 1.5; }
.mem-info-row__value a { color: var(--primary); }
.mem-info-block { font-size: 14px; margin: 0; line-height: 1.6; color: var(--text-secondary); }

.mem-biz-card {
  border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s;
}
.mem-biz-card:hover { box-shadow: var(--shadow-sm, 0 2px 8px rgba(15,23,42,.08)); }
.mem-biz-card__head {
  display: flex; gap: 14px; padding: 16px; align-items: flex-start;
  background: var(--bg); border-bottom: 1px solid var(--border-light);
}
.mem-biz-card__logo {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--border); background: #fff; flex-shrink: 0;
}
.mem-biz-card__logo--ph {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); background: var(--bg);
}
.mem-biz-card__logo--ph .nav-ico { width: 24px; height: 24px; opacity: .7; }
.mem-biz-card__body { padding: 16px; }

.mem-biodata-photo__img {
  width: 120px; height: 120px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--bg);
}
.mem-biodata-footer { align-items: flex-end; }
.mem-biodata-flags {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
  justify-content: flex-end; min-height: 48px;
}
.mem-check-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; margin: 0; cursor: pointer;
}
.mem-check-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }

.mem-biz-panel { border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; }
.mem-biz-panel__head { cursor: pointer; list-style: none; }
.mem-biz-panel__head::-webkit-details-marker { display: none; }
.mem-biz-panel[open] > .mem-biz-panel__head { border-bottom: 1px solid var(--border-light); background: var(--bg); }
.mem-biz-form__cert-row { display: flex; flex-wrap: wrap; gap: 16px 20px; }
.mem-biz-form__flags-inline { display: flex; align-items: flex-end; }
.mem-biz-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.mem-biz-logo .mem-biodata-photo { margin: 0; }
.mem-biz-logo__fields { min-width: 200px; flex: 1; max-width: 360px; }

.mem-biz-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.mem-biz-nav {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--surface);
}
.mem-biz-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.mem-biz-nav__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mem-biz-nav__count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mem-biz-nav__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(52vh, 420px);
  overflow: auto;
}
.mem-biz-nav__item,
.mem-biz-nav__add {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--bg);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.mem-biz-nav__item:hover,
.mem-biz-nav__add:hover {
  border-color: var(--border);
  background: #fff;
}
.mem-biz-nav__item.is-active,
.mem-biz-nav__add.is-active {
  border-color: var(--primary-100);
  background: var(--primary-50);
  box-shadow: inset 3px 0 0 var(--primary);
}
.mem-biz-nav__swatch {
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--biz-tone, var(--primary));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--biz-tone, var(--primary)) 18%, #fff);
}
.mem-biz-layout--multi .mem-biz-nav__swatch { display: inline-block; }
.mem-biz-nav__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  background: #fff;
  flex-shrink: 0;
}
.mem-biz-nav__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mem-biz-nav__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mem-biz-nav__sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mem-biz-nav__add {
  margin-top: 2px;
  border-style: dashed;
  border-color: var(--border);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}
.mem-biz-nav__add-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.mem-biz-editor { min-width: 0; }
.mem-biz-pane { margin: 0; }
.mem-biz-pane[hidden] { display: none !important; }
.mem-biz-pane__head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.mem-biz-pane__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
}
.mem-biz-pane__hint { margin: 0; font-size: 13px; color: var(--muted); }

/* Tone warna per usaha (jika lebih dari 1) */
.mem-biz-layout--multi .mem-biz-tone--0 { --biz-tone: #0047ab; --biz-tone-soft: #e8f0fb; --biz-tone-border: #b7cceb; }
.mem-biz-layout--multi .mem-biz-tone--1 { --biz-tone: #0f766e; --biz-tone-soft: #e6f6f4; --biz-tone-border: #a7d4ce; }
.mem-biz-layout--multi .mem-biz-tone--2 { --biz-tone: #b45309; --biz-tone-soft: #fff4e8; --biz-tone-border: #f0c9a0; }
.mem-biz-layout--multi .mem-biz-tone--3 { --biz-tone: #be123c; --biz-tone-soft: #fdecef; --biz-tone-border: #f0b4c0; }
.mem-biz-layout--multi .mem-biz-tone--4 { --biz-tone: #1d4ed8; --biz-tone-soft: #eaf0ff; --biz-tone-border: #b8c8f5; }
.mem-biz-layout--multi .mem-biz-tone--5 { --biz-tone: #3f6212; --biz-tone-soft: #f1f8e8; --biz-tone-border: #c5d9a6; }

.mem-biz-layout--multi .mem-biz-nav__item.mem-biz-tone--0,
.mem-biz-layout--multi .mem-biz-nav__item.mem-biz-tone--1,
.mem-biz-layout--multi .mem-biz-nav__item.mem-biz-tone--2,
.mem-biz-layout--multi .mem-biz-nav__item.mem-biz-tone--3,
.mem-biz-layout--multi .mem-biz-nav__item.mem-biz-tone--4,
.mem-biz-layout--multi .mem-biz-nav__item.mem-biz-tone--5 {
  background: color-mix(in srgb, var(--biz-tone-soft) 70%, #fff);
  border-color: transparent;
}
.mem-biz-layout--multi .mem-biz-nav__item[class*="mem-biz-tone--"]:hover {
  border-color: var(--biz-tone-border);
  background: var(--biz-tone-soft);
}
.mem-biz-layout--multi .mem-biz-nav__item[class*="mem-biz-tone--"].is-active {
  border-color: var(--biz-tone-border);
  background: var(--biz-tone-soft);
  box-shadow: inset 3px 0 0 var(--biz-tone);
}
.mem-biz-layout--multi .mem-biz-nav__item[class*="mem-biz-tone--"].is-active .mem-biz-nav__name {
  color: var(--biz-tone);
}
.mem-biz-layout--multi .mem-biz-pane[class*="mem-biz-tone--"] {
  border-color: var(--biz-tone-border);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--biz-tone) 8%, transparent);
}
.mem-biz-layout--multi .mem-biz-pane[class*="mem-biz-tone--"] .mem-biz-pane__head {
  margin: -22px -22px 16px;
  padding: 16px 22px 14px;
  border-bottom: 1px solid var(--biz-tone-border);
  background: linear-gradient(180deg, var(--biz-tone-soft) 0%, #fff 100%);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
@media (max-width: 720px) {
  .mem-biz-layout--multi .mem-biz-pane[class*="mem-biz-tone--"] .mem-biz-pane__head {
    margin: -16px -16px 16px;
    padding: 14px 16px 12px;
  }
}
.mem-biz-layout--multi .mem-biz-pane[class*="mem-biz-tone--"] .mem-biz-pane__title {
  color: var(--biz-tone);
}
.mem-biz-layout--multi .mem-biz-pane[class*="mem-biz-tone--"] .mem-biz-pane__hint {
  color: color-mix(in srgb, var(--biz-tone) 72%, #64748b);
}
.mem-biz-form .form-section { margin-bottom: 16px; padding-bottom: 14px; }
.mem-biz-form .form-section__title { margin-bottom: 10px; }
@media (max-width: 960px) {
  .mem-biz-layout { grid-template-columns: 1fr; }
  .mem-biz-nav { position: static; }
  .mem-biz-nav__list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-height: none;
    padding-bottom: 2px;
  }
  .mem-biz-nav__item {
    min-width: 210px;
    flex: 0 0 auto;
  }
}

.mem-biz-form__row-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.mem-biz-form__row-4 .form-group {
  margin-bottom: 0;
  min-width: 0;
}
@media (max-width: 900px) {
  .mem-biz-form__row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .mem-biz-form__row-4 { grid-template-columns: 1fr; }
}
.mem-biz-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) { .mem-biz-field-grid { grid-template-columns: 1fr; } }
.mem-biz-field-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  min-height: 0;
}
.mem-biz-field-card__label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.mem-biz-field-card .input { margin: 0; width: 100%; min-height: 40px; }
.mem-biz-field-card select.mem-biz-jenis-select {
  min-height: 40px;
  height: auto;
}
.mem-biz-field-card .select2-container {
  width: 100% !important;
  flex: 0 0 auto;
}
.mem-biz-field-card .select2-container .select2-selection--multiple {
  min-height: 40px;
  height: auto;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 4px 8px;
}
.mem-biz-field-card .select2-container .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
}
.mem-biz-field-card .select2-container .select2-selection--multiple .select2-selection__rendered > li {
  float: none;
  flex-shrink: 0;
}
.mem-biz-field-card .select2-container .select2-selection--multiple .select2-selection__choice {
  margin: 0;
  float: none;
}
.mem-biz-field-card .select2-container .select2-selection--multiple .select2-search--inline {
  float: none;
  flex: 1 1 80px;
  min-width: 80px;
  margin: 0;
}
.mem-biz-field-card .select2-container .select2-selection--multiple .select2-search--inline .select2-search__field {
  margin: 0;
  height: 28px;
  min-height: 28px;
  line-height: 28px;
}

.mem-org-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .mem-org-picker { grid-template-columns: 1fr; } }
.mem-org-picker__item {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  padding: 12px; border: 2px solid var(--border-light); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
.mem-org-picker__item:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.mem-org-picker__head {
  display: flex; align-items: center; gap: 8px; width: 100%;
}
.mem-org-picker__item input {
  width: 16px; height: 16px; flex-shrink: 0;
  accent-color: var(--primary); margin: 0;
}
.mem-org-picker__label {
  font-size: 13px; font-weight: 700; text-align: left; color: var(--text);
  line-height: 1.3;
}
.mem-org-picker__img {
  width: 100%; height: auto; max-height: 220px; object-fit: contain;
  border-radius: 6px; background: #fff;
}
@media (max-width: 720px) {
  .mem-org-picker__img { max-height: 180px; }
}
.mem-prod-thumb {
  width: 40px; height: 40px; border-radius: 8px; object-fit: cover;
  border: 1px solid var(--border); background: var(--bg-alt); vertical-align: middle; margin-right: 8px;
}
.mem-list-avatar {
  width: 36px; height: 36px; border-radius: 8px; object-fit: cover;
  border: 1px solid var(--border); background: var(--bg-alt); display: block;
}
.mem-list-avatar--ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; font-family: "Poppins", sans-serif;
  color: var(--primary); background: var(--primary-50);
}
@media (max-width: 1100px) {
  .mem-hero__metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .mem-side-grid { grid-template-columns: 1fr; }
  .mem-info-layout { grid-template-columns: 1fr; }
  .mem-info-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
  }
  .mem-hero__headline { padding: 14px 14px; }
}
@media (max-width: 720px) {
  .mem-info-row { grid-template-columns: 1fr; gap: 4px; }
  .mem-info-aside { grid-template-columns: 1fr; }
  .mem-info-aside .mem-info-row { grid-template-columns: 1fr; }
  .mem-info-form { padding: 16px; }
  .mem-info-form__intro { flex-direction: column; }
  .mem-info-form__actions { justify-content: stretch; }
  .mem-info-form__actions .btn { width: 100%; }
  .mem-hero__edit-btn {
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
  }
  .mem-hero__edit-btn svg {
    width: 9px;
    height: 9px;
  }
  .mem-hero__media {
    width: 96px;
    min-width: 96px;
    padding: 12px 0 12px 12px;
  }
  .mem-hero__avatar-wrap {
    width: 96px;
    height: 96px;
    border-radius: 10px;
  }
  .mem-hero__headline {
    padding: 12px 12px;
    gap: 10px;
  }
  .mem-hero__name {
    font-size: 1.15rem;
    margin-bottom: 2px;
  }
  .mem-hero__passport,
  .mem-hero__passport-no { font-size: 12px; }
  .mem-hero__meta-line { font-size: 12px; }
  .mem-hero__badges { margin-top: 6px; gap: 5px; }
  .mem-hero__badges .badge { font-size: 11px; padding: 3px 8px; }
  .mem-hero__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 10px 12px;
  }
  .mem-metric { padding: 6px 8px; gap: 7px; }
  .mem-metric__icon { width: 24px; height: 24px; border-radius: 6px; }
  .mem-metric__icon svg { width: 12px; height: 12px; }
  .mem-metric__value { font-size: .9rem; }
  .mem-metric__label { font-size: 8.5px; }
}
@media (max-width: 420px) {
  .mem-hero__media {
    width: 84px;
    min-width: 84px;
    padding: 10px 0 10px 10px;
  }
  .mem-hero__avatar-wrap {
    width: 84px;
    height: 84px;
    border-radius: 9px;
  }
  .mem-hero__headline { padding: 10px; }
  .mem-hero__name { font-size: 1.05rem; }
}

.stat-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-chart-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--bg);
}
.stat-chart-card__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.stat-chart-card__canvas {
  position: relative;
  height: 220px;
}
.stat-chart-card__canvas--tall {
  height: 280px;
}
@media (max-width: 1100px) { .stat-chart-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .stat-chart-grid { grid-template-columns: 1fr; } }

.stat-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.stat-filters__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
}
.stat-filters__toggle {
  margin-left: auto;
  padding-bottom: 2px;
}
.card__head .list-head-search {
  margin-left: auto;
  flex: 1 1 320px;
  max-width: 520px;
  min-width: 280px;
}
.card__head .list-head-search .input {
  width: 100%;
}
@media (max-width: 720px) {
  .stat-filters__toggle { margin-left: 0; width: 100%; }
  .card__head .list-head-search {
    margin-left: 0;
    flex-basis: 100%;
    max-width: none;
  }
  .stat-filters .form-group { min-width: 0 !important; flex: 1 1 100%; }
  .stat-filters__toggle .form-group { width: 100%; }
  .stat-filters__actions { padding-bottom: 0; }
  .list-filter-card .card__head,
  .card__head {
    align-items: flex-start;
  }
  .card__body { padding: 16px; }
  .content { padding: 16px 12px calc(16px + 72px + env(safe-area-inset-bottom, 0px)); }
  .card__head .btn,
  .card__head .actions { flex-shrink: 0; }
  .dt-pager {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .dt-pager__spacer { display: none; }
  .dt-pager__info { width: 100%; }
  .dt-pager__controls {
    width: 100%;
    justify-content: flex-start;
  }
  .dt-pager .btn { min-height: 40px; }
  .topbar__title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 120px);
  }
}

@media print {
  .sidebar,
  .topbar,
  .menu-toggle,
  .user-menu,
  .list-filter-card,
  .stat-filters,
  .stat-filter-actions,
  .tabs-bar,
  .toast-wrap { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  .card { box-shadow: none !important; border: none !important; }
  .stat-chart-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-chart-card { break-inside: avoid; page-break-inside: avoid; }
}


