/* =====================================================================
   BERLIAN MCS - Sistem Desain
   Glassmorphism profesional, palet biru dongker / biru / biru muda
   ===================================================================== */

:root {
  /* Palet inti */
  --navy-950: #030d1f;
  --navy-900: #061a3a;
  --navy-850: #082246;
  --navy-800: #0b2a55;
  --navy-700: #10386e;
  --navy-600: #16488c;

  --blue-700: #1552ab;
  --blue-600: #1a63cc;
  --blue-500: #2b7de9;
  --blue-400: #4a97f2;

  --sky-400: #4fb3f2;
  --sky-300: #7fd0f7;
  --sky-200: #b0e4fb;
  --sky-100: #ddf2fe;

  /* Teks */
  --text-strong: #f2f8ff;
  --text: #d7e7fa;
  --text-muted: #93b4d8;
  --text-dim: #6d90b8;

  /* Permukaan kaca */
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.085);
  --glass-hover: rgba(255, 255, 255, 0.11);
  --border: rgba(150, 199, 255, 0.16);
  --border-strong: rgba(150, 199, 255, 0.28);

  /* Status */
  --ok: #2fd08a;
  --ok-soft: rgba(47, 208, 138, 0.14);
  --warn: #f6c356;
  --warn-soft: rgba(246, 195, 86, 0.14);
  --danger: #ff6b7d;
  --danger-soft: rgba(255, 107, 125, 0.14);
  --info: #4fb3f2;
  --info-soft: rgba(79, 179, 242, 0.14);

  /* Bentuk */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-sm: 0 2px 10px rgba(2, 10, 25, 0.28);
  --shadow-md: 0 10px 30px rgba(2, 10, 25, 0.38);
  --shadow-lg: 0 24px 60px rgba(2, 10, 25, 0.5);
  --blur: saturate(150%) blur(18px);

  --sidebar-w: 264px;
  --topbar-h: 66px;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { margin: 0; font-weight: 650; color: var(--text-strong); letter-spacing: -0.01em; }
p { margin: 0 0 10px; }
a { color: var(--sky-300); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--sky-200); }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; flex: none; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .9em; }

/* Latar gradien + bola cahaya */
.bg-canvas {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(1200px 700px at 12% -8%, #123a75 0%, transparent 58%),
    radial-gradient(1000px 620px at 92% 8%, #0f3f80 0%, transparent 55%),
    radial-gradient(900px 700px at 60% 110%, #0a2a58 0%, transparent 60%),
    linear-gradient(168deg, var(--navy-950) 0%, var(--navy-900) 46%, #051530 100%);
}
.bg-canvas::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
}
.orb { position: fixed; border-radius: 50%; filter: blur(70px); opacity: .32; z-index: -1; pointer-events: none; }
.orb-1 { width: 420px; height: 420px; background: var(--blue-500); top: -140px; left: -110px; }
.orb-2 { width: 360px; height: 360px; background: var(--sky-400); bottom: -130px; right: -90px; opacity: .22; }
.orb-3 { width: 300px; height: 300px; background: var(--navy-600); top: 42%; left: 48%; opacity: .3; }

/* ------------------------------------------------------------- utilitas */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-md);
}
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-10 { gap: 10px; } .gap-14 { gap: 14px; } .gap-18 { gap: 18px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.strong { color: var(--text-strong); font-weight: 600; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0{margin-top:0}.mt-8{margin-top:8px}.mt-14{margin-top:14px}.mt-20{margin-top:20px}.mt-28{margin-top:28px}
.mb-0{margin-bottom:0}.mb-6{margin-bottom:6px}.mb-14{margin-bottom:14px}.mb-20{margin-bottom:20px}
.hidden { display: none !important; }
.mono { font-family: ui-monospace, Menlo, monospace; }

/* =====================================================================
   HALAMAN LOGIN
   ===================================================================== */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
}
.auth-shell {
  width: 100%; max-width: 980px;
  display: grid; grid-template-columns: 1.05fr 1fr;
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-lg);
}
.auth-brand {
  padding: 46px 42px;
  background:
    radial-gradient(600px 320px at 10% 0%, rgba(79,179,242,.22), transparent 62%),
    linear-gradient(160deg, rgba(21,82,171,.42), rgba(6,26,58,.62));
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-brand-top { display: flex; align-items: center; gap: 13px; }
.auth-title { font-size: 27px; line-height: 1.22; margin: 30px 0 12px; letter-spacing: -0.02em; }
.auth-sub { color: var(--sky-200); font-size: 14px; max-width: 34ch; }
.auth-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 11px; }
.auth-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.2px; color: var(--text); }
.auth-points svg { width: 17px; height: 17px; color: var(--sky-300); margin-top: 2px; }
.auth-foot { color: var(--text-dim); font-size: 11.5px; margin-top: 30px; }

.auth-form { padding: 46px 42px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h2 { font-size: 21px; margin-bottom: 5px; }

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 460px; }
  .auth-brand { padding: 30px 26px; border-right: none; border-bottom: 1px solid var(--border); }
  .auth-points, .auth-foot { display: none; }
  .auth-title { font-size: 22px; margin: 18px 0 8px; }
  .auth-form { padding: 30px 26px; }
}

/* =====================================================================
   LOGO
   ===================================================================== */
.logo-mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--blue-500), var(--navy-700));
  box-shadow: 0 6px 18px rgba(43, 125, 233, .34), inset 0 1px 0 rgba(255,255,255,.22);
}
.logo-mark svg { width: 24px; height: 24px; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 13px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 15.5px; color: var(--text-strong); letter-spacing: .01em; font-weight: 680; }
.logo-text span { font-size: 10.5px; color: var(--sky-300); letter-spacing: .1em; text-transform: uppercase; }

/* =====================================================================
   FORMULIR
   ===================================================================== */
.field { margin-bottom: 15px; }
.field label, .lbl {
  display: block; font-size: 12.4px; font-weight: 600;
  color: var(--text-muted); margin-bottom: 6px; letter-spacing: .012em;
}
.req { color: var(--danger); }
.control, input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="date"], input[type="tel"], input[type="search"],
select, textarea {
  width: 100%; padding: 10px 13px;
  font: inherit; font-size: 14px; color: var(--text-strong);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  appearance: none; -webkit-appearance: none;
}
textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393b4d8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 16px;
  padding-right: 34px; cursor: pointer;
}
select option { background: var(--navy-850); color: var(--text-strong); }
.control::placeholder, input::placeholder, textarea::placeholder { color: var(--text-dim); }
.control:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--blue-400);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 3.5px rgba(74, 151, 242, 0.16);
}
.control:disabled, input:disabled, select:disabled, textarea:disabled {
  opacity: .55; cursor: not-allowed;
}
.control.is-invalid, input.is-invalid, select.is-invalid, textarea.is-invalid {
  border-color: var(--danger); box-shadow: 0 0 0 3.5px rgba(255, 107, 125, .13);
}
.err { color: var(--danger); font-size: 12.2px; margin-top: 5px; display: block; }
.hint { color: var(--text-dim); font-size: 12px; margin-top: 5px; display: block; }

.input-group { position: relative; display: flex; align-items: center; }
.input-group .control { padding-left: 40px; }
.input-group > svg:first-child {
  position: absolute; left: 12px; width: 17px; height: 17px;
  color: var(--text-dim); pointer-events: none;
}
.input-group .toggle-pass {
  position: absolute; right: 8px; background: none; border: none;
  color: var(--text-dim); cursor: pointer; padding: 6px; display: grid; place-items: center;
  border-radius: 7px;
}
.input-group .toggle-pass:hover { color: var(--sky-300); background: rgba(255,255,255,.06); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 16px; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; user-select: none; }
.check input[type="checkbox"], .check input[type="radio"] {
  width: 17px; height: 17px; margin: 1px 0 0; flex: none; cursor: pointer;
  accent-color: var(--blue-500);
}
.check span { font-size: 13.4px; color: var(--text); }

.switch { position: relative; display: inline-block; width: 42px; height: 23px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute; inset: 0; cursor: pointer; border-radius: 999px;
  background: rgba(255,255,255,.13); border: 1px solid var(--border); transition: .2s;
}
.switch i::before {
  content: ""; position: absolute; width: 17px; height: 17px; left: 2px; top: 2px;
  border-radius: 50%; background: var(--text-muted); transition: .2s;
}
.switch input:checked + i { background: var(--blue-500); border-color: var(--blue-400); }
.switch input:checked + i::before { transform: translateX(19px); background: #fff; }

/* =====================================================================
   TOMBOL
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9.5px 16px; font: inherit; font-size: 13.6px; font-weight: 600;
  color: var(--text-strong); background: var(--glass-strong);
  border: 1px solid var(--border); border-radius: var(--r-md);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .08s ease, box-shadow .16s ease;
}
.btn:hover { background: var(--glass-hover); border-color: var(--border-strong); color: var(--text-strong); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16.5px; height: 16.5px; }
.btn:disabled, .btn.is-disabled { opacity: .5; pointer-events: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  border-color: rgba(120, 180, 255, .38);
  box-shadow: 0 6px 18px rgba(26, 99, 204, .3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  box-shadow: 0 8px 24px rgba(26, 99, 204, .42);
}
.btn-danger { background: rgba(255,107,125,.14); border-color: rgba(255,107,125,.34); color: #ffc7cf; }
.btn-danger:hover { background: rgba(255,107,125,.22); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--glass); color: var(--text-strong); }
.btn-sm { padding: 6.5px 11px; font-size: 12.6px; border-radius: var(--r-sm); }
.btn-sm svg { width: 14.5px; height: 14.5px; }
.btn-icon { padding: 7.5px; border-radius: var(--r-sm); }
.btn-icon svg { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 20px; font-size: 15px; }

/* =====================================================================
   TATA LETAK APLIKASI
   ===================================================================== */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex: none; position: fixed; inset: 0 auto 0 0; z-index: 60;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(8,28,60,.82), rgba(4,18,43,.9));
  border-right: 1px solid var(--border);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.sidebar-head {
  height: var(--topbar-h); flex: none; display: flex; align-items: center; gap: 12px;
  padding: 0 18px; border-bottom: 1px solid var(--border);
}
.sidebar-nav { flex: 1 1 auto; overflow-y: auto; padding: 14px 12px 20px; }
.sidebar-nav::-webkit-scrollbar { width: 7px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.11); border-radius: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }

.nav-group {
  font-size: 10.4px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-dim); padding: 16px 12px 7px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9.5px 12px; margin-bottom: 2px;
  border-radius: var(--r-md); color: var(--text-muted);
  font-size: 13.8px; font-weight: 500;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nav-item svg { width: 18px; height: 18px; opacity: .82; }
.nav-item:hover { background: var(--glass); color: var(--text-strong); }
.nav-item:hover svg { opacity: 1; }
.nav-item.active {
  background: linear-gradient(94deg, rgba(43,125,233,.24), rgba(43,125,233,.07));
  color: var(--text-strong); border-color: rgba(120,180,255,.26);
  font-weight: 600;
}
.nav-item.active svg { color: var(--sky-300); opacity: 1; }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; width: 3px; height: 20px;
  border-radius: 0 3px 3px 0; background: var(--sky-400);
}
.nav-item { position: relative; }
.nav-badge {
  margin-left: auto; font-size: 9.6px; font-weight: 700; letter-spacing: .06em;
  padding: 2.5px 7px; border-radius: 999px; text-transform: uppercase;
  background: rgba(79,179,242,.16); color: var(--sky-300);
  border: 1px solid rgba(79,179,242,.24);
}
.sidebar-foot { flex: none; padding: 12px; border-top: 1px solid var(--border); }
.side-user {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--border);
}

.main { flex: 1 1 auto; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h); flex: none; position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px; padding: 0 24px;
  background: rgba(6, 22, 48, .66);
  border-bottom: 1px solid var(--border);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.topbar h1 { font-size: 16.5px; font-weight: 640; }
.crumb { font-size: 11.8px; color: var(--text-dim); }

.content { flex: 1 1 auto; padding: 24px; max-width: 1560px; width: 100%; }
@media (max-width: 640px) { .content { padding: 16px; } }

.menu-toggle { display: none; }
@media (max-width: 1080px) {
  .sidebar { transform: translateX(-100%); transition: transform .24s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-flex; }
  .sidebar-backdrop {
    position: fixed; inset: 0; z-index: 55; background: rgba(2,10,25,.62);
    backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
}

/* =====================================================================
   KARTU & PANEL
   ===================================================================== */
.card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r-lg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.card-head {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.card-head h3 { font-size: 14.8px; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; flex-wrap: wrap; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h2 { font-size: 21px; letter-spacing: -0.02em; }
.page-head p { color: var(--text-muted); font-size: 13.4px; margin: 4px 0 0; }

/* Kartu statistik */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat {
  position: relative; padding: 18px 20px; border-radius: var(--r-lg);
  background: var(--glass); border: 1px solid var(--border);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.stat::after {
  content: ""; position: absolute; right: -34px; top: -34px; width: 108px; height: 108px;
  border-radius: 50%; background: radial-gradient(circle, rgba(79,179,242,.2), transparent 68%);
}
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-ico {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(79,179,242,.13); border: 1px solid rgba(79,179,242,.2); color: var(--sky-300);
}
.stat-ico svg { width: 18px; height: 18px; }
.stat-label { font-size: 12.2px; color: var(--text-muted); font-weight: 550; letter-spacing: .015em; }
.stat-value { font-size: 27px; font-weight: 700; color: var(--text-strong); line-height: 1.15; margin-top: 9px; letter-spacing: -0.025em; }
.stat-note { font-size: 11.8px; color: var(--text-dim); margin-top: 5px; }

/* =====================================================================
   TABEL
   ===================================================================== */
.table-wrap { overflow-x: auto; }
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,.13); border-radius: 4px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.6px; min-width: 620px; }
table.tbl th {
  text-align: left; font-size: 11.4px; font-weight: 700; letter-spacing: .075em; text-transform: uppercase;
  color: var(--text-dim); padding: 11px 16px; white-space: nowrap;
  background: rgba(255,255,255,.032); border-bottom: 1px solid var(--border);
}
table.tbl td { padding: 12px 16px; border-bottom: 1px solid rgba(150,199,255,.075); vertical-align: middle; }
table.tbl tbody tr { transition: background .12s ease; }
table.tbl tbody tr:hover { background: rgba(255,255,255,.032); }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl td.actions { text-align: right; white-space: nowrap; }
table.tbl .cell-main { color: var(--text-strong); font-weight: 570; }

.empty { padding: 52px 24px; text-align: center; }
.empty-ico {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 17px; display: grid; place-items: center;
  background: rgba(79,179,242,.09); border: 1px solid rgba(79,179,242,.16); color: var(--sky-300);
}
.empty-ico svg { width: 26px; height: 26px; }
.empty h4 { font-size: 15px; margin-bottom: 6px; }
.empty p { color: var(--text-muted); font-size: 13.2px; max-width: 46ch; margin: 0 auto 16px; }

/* =====================================================================
   LENCANA (BADGE)
   ===================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11.4px; font-weight: 620; letter-spacing: .01em;
  background: var(--glass-strong); border: 1px solid var(--border); color: var(--text);
  white-space: nowrap;
}
.badge-ok     { background: var(--ok-soft);     border-color: rgba(47,208,138,.3);  color: #8ef0c4; }
.badge-warn   { background: var(--warn-soft);   border-color: rgba(246,195,86,.3);  color: #ffdf9e; }
.badge-danger { background: var(--danger-soft); border-color: rgba(255,107,125,.3); color: #ffb4be; }
.badge-info   { background: var(--info-soft);   border-color: rgba(79,179,242,.3);  color: var(--sky-200); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.avatar {
  width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center;
  font-size: 12.4px; font-weight: 700; letter-spacing: .02em; color: var(--sky-100);
  background: linear-gradient(145deg, rgba(43,125,233,.42), rgba(16,56,110,.6));
  border: 1px solid var(--border);
}
.avatar-lg { width: 56px; height: 56px; border-radius: 17px; font-size: 18px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* =====================================================================
   PEMBERITAHUAN (ALERT)
   ===================================================================== */
.alert {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 15px; border-radius: var(--r-md); margin-bottom: 14px;
  border: 1px solid var(--border); background: var(--glass-strong);
  font-size: 13.4px; line-height: 1.5;
}
.alert svg { width: 18px; height: 18px; margin-top: 1px; flex: none; }
.alert-sukses     { background: var(--ok-soft);     border-color: rgba(47,208,138,.28);  color: #b6f5da; }
.alert-bahaya     { background: var(--danger-soft); border-color: rgba(255,107,125,.28); color: #ffcdd4; }
.alert-peringatan { background: var(--warn-soft);   border-color: rgba(246,195,86,.28);  color: #ffe9bd; }
.alert-info       { background: var(--info-soft);   border-color: rgba(79,179,242,.28);  color: var(--sky-200); }
.alert .close { margin-left: auto; background: none; border: none; color: inherit; opacity: .6; cursor: pointer; padding: 0 2px; }
.alert .close:hover { opacity: 1; }

/* =====================================================================
   PAGINASI, FILTER, TAB
   ===================================================================== */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--border); }
.pager-links { display: flex; gap: 5px; flex-wrap: wrap; }
.pager-links a, .pager-links span {
  min-width: 34px; height: 34px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); font-size: 13px; font-weight: 570;
  border: 1px solid var(--border); background: var(--glass); color: var(--text-muted);
}
.pager-links a:hover { background: var(--glass-hover); color: var(--text-strong); }
.pager-links .current { background: var(--blue-600); border-color: var(--blue-400); color: #fff; }
.pager-links .disabled { opacity: .4; pointer-events: none; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { margin-bottom: 0; min-width: 168px; }
.filters .field.search { min-width: 230px; flex: 1 1 230px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab {
  padding: 10px 15px; font-size: 13.6px; font-weight: 570; color: var(--text-muted);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--text-strong); }
.tab.active { color: var(--sky-300); border-bottom-color: var(--sky-400); }

/* =====================================================================
   MATRIKS HAK AKSES
   ===================================================================== */
.perm-group { border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; }
.perm-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 16px; background: rgba(255,255,255,.038); border-bottom: 1px solid var(--border);
}
.perm-group-head h4 { font-size: 13.2px; }
.perm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 2px; padding: 10px 14px 14px; }
.perm-item { display: flex; align-items: flex-start; gap: 9px; padding: 7px 8px; border-radius: var(--r-sm); }
.perm-item:hover { background: rgba(255,255,255,.04); }
.perm-item code { display: block; font-size: 10.8px; color: var(--text-dim); margin-top: 1px; }

.matrix-wrap { overflow-x: auto; }
table.matrix { width: 100%; border-collapse: collapse; font-size: 12.8px; min-width: 780px; }
table.matrix th, table.matrix td { padding: 8px 11px; border-bottom: 1px solid rgba(150,199,255,.08); text-align: center; }
table.matrix th:first-child, table.matrix td:first-child { text-align: left; white-space: nowrap; }
table.matrix thead th {
  position: sticky; top: 0; background: rgba(8,34,70,.96); z-index: 2;
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
table.matrix .yes { color: var(--ok); font-weight: 700; }
table.matrix .no  { color: var(--text-dim); opacity: .5; }
table.matrix tbody tr:hover { background: rgba(255,255,255,.03); }
.matrix-section td { background: rgba(255,255,255,.045); font-weight: 700; color: var(--sky-300); font-size: 11.4px; text-transform: uppercase; letter-spacing: .07em; }

/* Daftar pilihan bercentang (area / outlet) */
.pick-list {
  max-height: 300px; overflow-y: auto; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: rgba(255,255,255,.025);
}
.pick-list::-webkit-scrollbar { width: 7px; }
.pick-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
.pick-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: var(--r-sm); }
.pick-item:hover { background: rgba(255,255,255,.045); }

/* Halaman "segera hadir" */
.soon {
  padding: 60px 30px; text-align: center; max-width: 620px; margin: 20px auto;
}
.soon-ico {
  width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(43,125,233,.24), rgba(16,56,110,.34));
  border: 1px solid var(--border-strong); color: var(--sky-300);
}
.soon-ico svg { width: 34px; height: 34px; }
.soon h2 { font-size: 22px; margin-bottom: 10px; }
.soon p { color: var(--text-muted); font-size: 14px; max-width: 50ch; margin: 0 auto 8px; }
.soon-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* Timeline log */
.log-item { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px solid rgba(150,199,255,.075); }
.log-item:last-child { border-bottom: none; }
.log-ico {
  width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: rgba(79,179,242,.11); border: 1px solid rgba(79,179,242,.18); color: var(--sky-300);
}
.log-ico svg { width: 15px; height: 15px; }

/* Bilah progres */
.bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.09); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sky-400), var(--blue-500)); }

/* Definisi (halaman detail) */
.dl { display: grid; grid-template-columns: 168px 1fr; gap: 10px 18px; font-size: 13.6px; }
.dl dt { color: var(--text-muted); font-size: 12.6px; }
.dl dd { margin: 0; color: var(--text-strong); }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; gap: 2px 0; } .dl dd { margin-bottom: 10px; } }

/* Cetak */
@media print {
  .sidebar, .topbar, .btn, .pager, .bg-canvas, .orb { display: none !important; }
  .main { margin-left: 0; }
  body { background: #fff; color: #111; }
  .card, .glass { background: #fff; border: 1px solid #ccc; box-shadow: none; backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
