/* =========================================================
   IKAN Admin — Design System v3 "Pastel Kekinian"
   Latar terang + gradasi pastel lembut, aksen warna-warni cerah,
   sudut lebih membulat. Tetap tanpa font/CDN eksternal (lihat
   includes/icons.php) supaya konsisten walau server offline.
   ========================================================= */

:root{
  --bg:#f8f7ff;
  --surface:#ffffff;
  --surface-2:#fbfaff;
  --surface-3:#f3f0ff;
  --border:#ece9fb;
  --border-strong:#ddd7f7;
  --text:#26243f;
  --text-soft:#615e80;
  --muted:#9491b3;

  --radius-lg:20px;
  --radius:16px;
  --radius-sm:12px;
  --shadow-xs:0 1px 2px rgba(96,80,190,.06);
  --shadow-sm:0 2px 10px rgba(96,80,190,.08);
  --shadow-md:0 12px 28px rgba(96,80,190,.13);
  --shadow-lg:0 24px 55px rgba(70,50,160,.20);

  --indigo:#7c6ff0;    --indigo-soft:#efecff; --indigo-dark:#5f4fd6; --indigo-line:#d8d2fb;
  --violet:#b968e0;    --violet-soft:#f8ecfe;
  --teal:#17c3a6;      --teal-soft:#dffbf4;
  --pink:#fb6aa6;      --pink-soft:#ffeaf3;
  --amber:#ffab2e;     --amber-soft:#fff3e0;
  --blue:#4d9dfb;      --blue-soft:#e9f4ff;
  --red:#fb6c7c;       --red-soft:#ffeaec;
  --green:#2dd4a7;     --green-soft:#e2faf3;
  --gray-soft:#f2f1fa;

  --sidebar-bg:#fdfcff;
  --sidebar-bg-2:#f3edff;
  --sidebar-border:#ece5fc;
  --sidebar-text:#726fa0;
  --sidebar-text-strong:#2d2a4d;
  --ink:#372f66;

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  background:
    radial-gradient(720px 420px at 100% -8%, rgba(124,111,240,.10), transparent 60%),
    radial-gradient(600px 380px at -5% 8%, rgba(251,106,166,.09), transparent 55%),
    var(--bg);
  background-attachment:fixed;
  color:var(--text);
  font-size:14px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{ color:inherit; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; }
h1,h2,h3{ letter-spacing:-.01em; }
code, kbd{ font-family:var(--mono); }
kbd{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:20px; height:20px; padding:0 5px; font-size:11px; font-weight:700;
  background:var(--surface-3); border:1px solid var(--border-strong); border-bottom-width:2px;
  border-radius:6px; color:var(--text-soft);
}

::selection{ background:var(--indigo-soft); color:var(--indigo-dark); }

/* Ukuran default SEMUA ikon SVG (lihat includes/icons.php — ikon dikirim tanpa
   atribut width/height, jadi kalau tidak ada aturan CSS yang menangkap,
   browser akan render di ukuran default yang sangat besar). Aturan yang
   lebih spesifik di bawah (mis. .btn .ic, .nav-item .ic) tetap menang lewat
   specificity, ini cuma jaring pengaman untuk konteks yang belum di-styling. */
.ic{ width:16px; height:16px; flex-shrink:0; display:inline-block; vertical-align:middle; }

/* ---------- Scrollbar (subtle) ---------- */
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-thumb{ background:#d9dcee; border-radius:20px; border:2.5px solid var(--bg); }
::-webkit-scrollbar-track{ background:transparent; }

/* =========================================================
   Shell / layout
   ========================================================= */
.app-shell{ display:flex; min-height:100vh; }

.sidebar{
  width:256px;
  flex-shrink:0;
  background:linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-2) 100%);
  color:var(--text);
  display:flex;
  flex-direction:column;
  padding:20px 14px;
  position:sticky;
  top:0;
  height:100vh;
  z-index:40;
  border-right:1px solid var(--sidebar-border);
  transition:width .18s ease, padding .18s ease;
}
.sidebar-brand{ display:flex; align-items:center; gap:11px; padding:8px 10px 24px; transition:padding .18s ease, justify-content .18s ease; }

/* Tombol bulat kecil menempel di tepi kanan sidebar untuk sembunyikan/
   tampilkan menu (desktop saja -- di mobile sidebar sudah drawer overlay
   yang dibuka/tutup lewat hamburger, lihat .hamburger). */
.sidebar-collapse-btn{
  position:absolute; top:28px; right:-13px;
  width:26px; height:26px; border-radius:50%;
  background:var(--surface); border:1px solid var(--border);
  box-shadow:var(--shadow-xs);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; z-index:41; padding:0;
  color:var(--sidebar-text-strong);
}
.sidebar-collapse-btn:hover{ background:var(--surface-3); color:var(--indigo-dark); }
.sidebar-collapse-btn .ic{ width:14px; height:14px; transition:transform .18s ease; }
html.sidebar-collapsed .sidebar-collapse-btn .ic{ transform:rotate(180deg); }
.brand-badge{
  width:38px; height:38px; border-radius:12px;
  background:linear-gradient(135deg, var(--indigo), var(--pink));
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  box-shadow:0 6px 16px rgba(124,111,240,.38);
}
.brand-badge .ic{ width:20px; height:20px; color:#fff; }
.brand-title{ font-weight:800; font-size:14.5px; line-height:1.2; color:var(--sidebar-text-strong); letter-spacing:-.01em; }
.brand-sub{ font-size:11px; color:var(--muted); margin-top:2px; }

/* Badge sidebar dengan logo asli FRCI (bukan ikon generik) - latar putih
   supaya logo (yang punya warna sendiri) tetap kontras & jelas. */
.brand-badge-logo{ background:#fff; box-shadow:0 4px 12px rgba(96,80,190,.18); padding:6px; }
.brand-badge-logo img{ width:100%; height:100%; object-fit:contain; }

/* Kredit mitra kolaborasi (Rekam Nusantara) di footer sidebar. */
.sidebar-partner{
  display:flex; align-items:center; gap:8px; padding:2px 8px 12px;
}
.sidebar-partner span{ font-size:10px; font-weight:700; color:var(--muted); white-space:nowrap; }
.sidebar-partner img{ height:12px; width:auto; filter:invert(1); opacity:.4; }
html.sidebar-collapsed .sidebar-partner{ display:none; }

.sidebar-nav{ display:flex; flex-direction:column; gap:3px; margin-top:6px; flex:1; overflow-y:auto; }
.nav-sep{
  margin:14px 10px 6px; padding-top:12px; border-top:1px solid var(--sidebar-border);
  font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.07em;
  color:var(--muted);
}
.nav-item{
  display:flex; align-items:center; gap:11px;
  padding:9px 12px; border-radius:11px;
  text-decoration:none; color:var(--sidebar-text);
  font-size:13.5px; font-weight:600;
  transition:background .12s ease, color .12s ease;
}
.nav-item .ic{ width:17px; height:17px; flex-shrink:0; opacity:.8; }
.ic-lg{ width:24px !important; height:24px !important; }
.nav-item:hover{ background:var(--surface-3); color:var(--indigo-dark); }
.nav-item.active{ background:linear-gradient(120deg, var(--indigo), var(--violet)); color:#fff; font-weight:700; box-shadow:0 6px 16px rgba(124,111,240,.32); }
.nav-item.active .ic{ opacity:1; }

.sidebar-footer{ margin-top:auto; padding-top:14px; border-top:1px solid var(--sidebar-border); }
.admin-chip{ display:flex; align-items:center; gap:10px; padding:8px; margin-bottom:4px; }
.admin-avatar{
  width:32px; height:32px; border-radius:11px;
  background:linear-gradient(135deg, var(--teal), var(--blue));
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:13px; flex-shrink:0; color:#fff;
}
.admin-name{ font-size:12.5px; font-weight:700; color:var(--sidebar-text-strong); }
.admin-role{ font-size:11px; color:var(--muted); }
.nav-item-muted{ opacity:.85; }

.main-col{ flex:1; min-width:0; display:flex; flex-direction:column; }

.topbar{
  display:flex; align-items:center; gap:12px;
  padding:15px 28px;
  background:rgba(248,247,255,.86);
  backdrop-filter:blur(8px);
  border-bottom:1px solid transparent;
  position:sticky; top:0; z-index:20;
}
.topbar.is-scrolled{ border-bottom-color:var(--border); }
.hamburger{ display:none; width:38px; height:38px; border-radius:11px; align-items:center; justify-content:center; background:var(--surface); box-shadow:var(--shadow-xs); cursor:pointer; flex-shrink:0; border:1px solid var(--border); }
.hamburger .ic{ width:20px; height:20px; }
.breadcrumb{ font-size:11.5px; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.05em; margin-bottom:2px; }
.topbar-title h1{ margin:0; font-size:19px; font-weight:800; letter-spacing:-.01em; }

.main-content{ padding:6px 28px 32px; flex:1; }

.page-footer{
  padding:16px 28px 26px; font-size:12px; color:var(--muted);
  display:flex; gap:8px; align-items:center;
}
.page-footer .dot{ opacity:.6; }
.page-footer a{ text-decoration:underline; text-underline-offset:2px; }
.page-footer a:hover{ color:var(--indigo-dark); }

.sidebar-toggle-input{ display:none; }
.sidebar-overlay{ display:none; }

/* =========================================================
   Flash / alerts
   ========================================================= */
.flash-stack{ display:flex; flex-direction:column; gap:10px; margin:14px 0 18px; }
.alert{
  display:flex; align-items:center; gap:10px;
  padding:12px 16px; border-radius:var(--radius-sm);
  font-size:13.5px; font-weight:600;
  border:1px solid transparent;
}
.alert .ic{ width:18px; height:18px; flex-shrink:0; }
.alert-success{ background:var(--green-soft); color:#146c43; border-color:#c9f0da; }
.alert-error{ background:var(--red-soft); color:#a3283a; border-color:#ffd3da; }
.alert-info{ background:var(--blue-soft); color:#1d5fb0; border-color:#d3e6ff; }

/* =========================================================
   Stat cards
   ========================================================= */
.stat-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
  gap:14px;
  margin-bottom:22px;
}
.stat-card-link{ text-decoration:none; cursor:pointer; transition:box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
.stat-card-link:hover{ box-shadow:var(--shadow-md, 0 6px 16px rgba(0,0,0,.08)); border-color:var(--red); transform:translateY(-1px); }
.stat-card{
  background:var(--surface);
  border-radius:var(--radius-lg);
  padding:18px 20px;
  box-shadow:var(--shadow-sm);
  display:flex; align-items:center; gap:14px;
  border:1px solid var(--border);
}
.stat-icon{
  width:46px; height:46px; border-radius:13px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.stat-icon .ic{ width:22px; height:22px; }
.stat-icon.indigo{ background:var(--indigo-soft); color:var(--indigo); }
.stat-icon.teal{ background:var(--teal-soft); color:var(--teal); }
.stat-icon.pink{ background:var(--pink-soft); color:var(--pink); }
.stat-icon.amber{ background:var(--amber-soft); color:var(--amber); }
.stat-icon.blue{ background:var(--blue-soft); color:var(--blue); }
.stat-icon.violet{ background:var(--violet-soft); color:var(--violet); }
.stat-icon.green{ background:var(--green-soft); color:var(--green); }
.stat-icon.red{ background:var(--red-soft); color:var(--red); }
.stat-icon.gray{ background:var(--gray-soft); color:#5b5f70; }
.stat-num{ font-size:24px; font-weight:800; line-height:1.1; letter-spacing:-.02em; }
.stat-lbl{ font-size:12.5px; color:var(--muted); font-weight:600; margin-top:2px; }

/* =========================================================
   Panel / card container
   ========================================================= */
.panel{
  background:var(--surface);
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  margin-bottom:20px;
}
.panel-header{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:18px 22px; border-bottom:1px solid var(--border);
  flex-wrap:wrap;
}
.panel-header h2{ margin:0; font-size:15.5px; font-weight:700; }
.panel-header h2 small{ color:var(--muted); font-weight:400; font-size:12px; margin-left:6px; }
.panel-body{ padding:20px 22px; }
.panel-body.no-pad{ padding:0; }

/* =========================================================
   Toolbar: search + filter + actions
   ========================================================= */
.toolbar{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:16px 22px;
  border-bottom:1px solid var(--border);
}
.toolbar-grow{ flex:1 1 260px; }
.search-box{
  display:flex; align-items:center; gap:8px;
  background:var(--surface-2);
  border:1px solid var(--border-strong);
  border-radius:11px;
  padding:0 12px;
  height:42px;
}
.search-box .ic{ width:17px; height:17px; color:var(--muted); flex-shrink:0; }
.search-box input{
  border:0; background:transparent; outline:0; font-size:13.5px; width:100%;
  color:var(--text); height:100%;
}
select.select-input, .text-input{
  height:42px; border-radius:11px; border:1px solid var(--border-strong);
  background:var(--surface-2); padding:0 12px; font-size:13.5px; color:var(--text);
  outline:0;
}
select.select-input{ min-width:150px; cursor:pointer; }
.text-input:focus, select.select-input:focus, .search-box:focus-within{ border-color:var(--indigo); box-shadow:0 0 0 3px var(--indigo-soft); }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  height:42px; padding:0 17px;
  border-radius:13px; border:1px solid transparent;
  font-size:13.5px; font-weight:700; cursor:pointer;
  text-decoration:none; white-space:nowrap;
  transition:filter .12s ease, transform .05s ease, box-shadow .12s ease;
}
.btn .ic{ width:16px; height:16px; }
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:linear-gradient(120deg, var(--indigo), var(--violet)); color:#fff; box-shadow:0 6px 16px rgba(124,111,240,.34); }
.btn-primary:hover{ box-shadow:0 8px 20px rgba(124,111,240,.44); filter:brightness(1.02); }
.btn-secondary{ background:var(--surface); color:var(--text); border-color:var(--border-strong); }
.btn-secondary:hover{ background:var(--surface-2); }
.btn-soft-teal{ background:var(--teal-soft); color:#0a7a6d; }
.btn-soft-blue{ background:var(--blue-soft); color:#1d5fb0; }
.btn-soft-amber{ background:var(--amber-soft); color:#8a5f14; }
.btn-danger{ background:var(--red-soft); color:#a5283a; }
.btn-danger-solid{ background:var(--red); color:#fff; }
.btn-ghost{ background:transparent; color:var(--text-soft); border-color:var(--border-strong); }
.btn-ghost:hover{ background:var(--surface-2); border-color:var(--border-strong); }
.btn-sm{ height:34px; padding:0 12px; font-size:12.5px; border-radius:9px; }
.btn-icon{ width:38px; height:38px; padding:0; border-radius:10px; }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

.btn-group{ display:flex; gap:8px; flex-wrap:wrap; }

/* =========================================================
   Tabs
   ========================================================= */
.tabs{ display:flex; gap:6px; flex-wrap:wrap; }
.tab{
  padding:9px 15px; border-radius:999px; font-size:13px; font-weight:700;
  background:var(--surface-2); color:var(--text-soft); text-decoration:none;
  border:1px solid var(--border-strong);
}
.tab .count{ opacity:.65; font-weight:600; margin-left:4px; }
.tab.active{ background:var(--indigo); color:#fff; border-color:var(--indigo); }

/* =========================================================
   Table
   ========================================================= */
.table-scroll{ overflow-x:auto; }
table.data-table{ width:100%; border-collapse:collapse; min-width:720px; }
.data-table thead th{
  text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:.03em;
  color:var(--muted); font-weight:700;
  background:var(--surface-2);
  padding:12px 16px; border-bottom:1px solid var(--border);
  white-space:nowrap;
}
.data-table tbody td{
  padding:13px 16px; font-size:13.5px; border-bottom:1px solid var(--border);
  vertical-align:middle; color:var(--text);
}
.data-table tbody tr{ transition:background .1s ease; }
.data-table tbody tr:hover{ background:var(--surface-2); }
.data-table tbody tr:last-child td{ border-bottom:0; }
.cell-muted{ color:var(--muted); }
.cell-strong{ font-weight:700; }
.cell-sub{ font-size:12px; color:var(--muted); margin-top:2px; }
.nowrap{ white-space:nowrap; }
.row-actions{ display:flex; gap:6px; justify-content:flex-end; }

/* =========================================================
   Badges & chips
   ========================================================= */
.badge{
  display:inline-flex; align-items:center; gap:4px;
  padding:4px 10px; border-radius:999px;
  font-size:11px; font-weight:700; white-space:nowrap;
}
.badge-indigo{ background:var(--indigo-soft); color:var(--indigo-dark); }
.badge-teal{ background:var(--teal-soft); color:#0a8975; }
.badge-pink{ background:var(--pink-soft); color:#b23071; }
.badge-amber{ background:var(--amber-soft); color:#96650c; }
.badge-blue{ background:var(--blue-soft); color:#1d5fb0; }
.badge-violet{ background:var(--violet-soft); color:#6d2fc7; }
.badge-green{ background:var(--green-soft); color:#0f8a4c; }
.badge-red{ background:var(--red-soft); color:#c22; }
.badge-gray{ background:var(--gray-soft); color:#5b5f70; }
.badge-success{ background:var(--green-soft); color:#0f8a4c; }

.chip{
  display:inline-block; background:var(--indigo-soft); color:var(--indigo-dark);
  border-radius:999px; padding:3px 10px; font-size:11px; font-weight:600; margin:2px 3px 0 0;
}
a.chip{ text-decoration:none; }
a.chip.chip-active{ background:var(--indigo); color:#fff; }

.avatar-circle{
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:14px; color:#fff;
  background:linear-gradient(135deg, var(--indigo), var(--violet));
}
.identity-cell{ display:flex; align-items:center; gap:10px; }

/* =========================================================
   Empty state
   ========================================================= */
.empty-state{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:60px 20px; text-align:center; color:var(--muted);
}
.empty-state .ic{ width:44px; height:44px; margin-bottom:14px; opacity:.5; }
.empty-state strong{ color:var(--text-soft); font-size:14.5px; margin-bottom:4px; }
.empty-state span{ font-size:13px; }

/* =========================================================
   Pagination
   ========================================================= */
.pagination-bar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:16px 22px; flex-wrap:wrap; border-top:1px solid var(--border);
}
.pagination-info{ font-size:12.5px; color:var(--muted); }
.pagination{ display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.page-link{
  min-width:36px; height:36px; padding:0 8px;
  display:flex; align-items:center; justify-content:center;
  border-radius:9px; text-decoration:none; font-size:13px; font-weight:700;
  color:var(--text-soft); background:var(--surface-2); border:1px solid var(--border-strong);
}
.page-link:hover{ background:var(--indigo-soft); color:var(--indigo-dark); }
.page-link.active{ background:var(--indigo); color:#fff; border-color:var(--indigo); }
.page-link.disabled{ opacity:.4; pointer-events:none; }
.page-link .ic{ width:16px; height:16px; }

/* =========================================================
   Forms (edit pages)
   ========================================================= */
.form-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:14px 16px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-size:12.5px; font-weight:700; color:var(--text-soft); }
.field .hint{ font-size:11px; color:var(--muted); font-weight:400; }
.field input[type=text], .field input[type=number], .field input[type=date],
.field input[type=email], .field input[type=tel], .field select, .field textarea{
  height:42px; border-radius:10px; border:1px solid var(--border-strong);
  background:var(--surface-2); padding:0 12px; font-size:13.5px; color:var(--text);
  outline:0; font-family:inherit; width:100%;
}
.field textarea{ height:auto; padding:10px 12px; resize:vertical; min-height:80px; }
.field input:focus, .field select:focus, .field textarea:focus{
  border-color:var(--indigo); box-shadow:0 0 0 3px var(--indigo-soft); background:var(--surface);
}
.section-divider{ display:flex; align-items:center; gap:10px; margin:26px 0 16px; }
.section-divider:first-child{ margin-top:0; }
.section-divider .num{
  width:26px; height:26px; border-radius:8px; background:var(--indigo-soft); color:var(--indigo-dark);
  display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; flex-shrink:0;
}
.section-divider h3{ margin:0; font-size:14.5px; font-weight:700; }
.section-divider .line{ flex:1; height:1px; background:var(--border); }

/* Repeatable rows (catches/lengths) */
.repeat-table{ width:100%; border-collapse:collapse; }
.repeat-table th{ text-align:left; font-size:11px; text-transform:uppercase; color:var(--muted); padding:6px 8px; }
.repeat-table td{ padding:6px 8px; vertical-align:top; }
.repeat-table input{ height:38px; border-radius:8px; border:1px solid var(--border-strong); background:var(--surface-2); padding:0 10px; font-size:13px; width:100%; }
.repeat-table input:focus{ border-color:var(--indigo); box-shadow:0 0 0 3px var(--indigo-soft); outline:0; }
.repeat-row-remove{ background:var(--red-soft); color:#c22; border:0; width:34px; height:34px; border-radius:8px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.repeat-row-remove .ic{ width:15px; height:15px; }
.repeat-empty{ font-size:12.5px; color:var(--muted); padding:10px 4px; }
.photo-thumb{ width:44px; height:44px; border-radius:8px; object-fit:cover; border:1px solid var(--border); }

.sticky-actions{
  position:sticky; bottom:0; background:linear-gradient(180deg, rgba(255,255,255,0), var(--surface) 30%);
  padding:18px 0 4px; margin-top:10px; display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap;
}

/* =========================================================
   Detail view (kv table / gallery)
   ========================================================= */
.kv-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(230px,1fr)); gap:2px 20px; }
.kv-item{ padding:9px 0; border-bottom:1px dashed var(--border); }
.kv-item .k{ font-size:11.5px; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.02em; }
.kv-item .v{ font-size:14px; margin-top:2px; font-weight:600; }

.gallery-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:14px; }
.gallery-card{ border:1px solid var(--border); border-radius:var(--radius-sm); overflow:hidden; background:var(--surface-2); }
.gallery-card img{ width:100%; height:120px; object-fit:cover; }
.gallery-card .info{ padding:9px 11px; font-size:12px; }
.gallery-card .info strong{ display:block; font-size:12.5px; margin-bottom:2px; }
.gallery-empty{ width:100%; height:120px; display:flex; align-items:center; justify-content:center; color:var(--muted); background:var(--gray-soft); }

/* =========================================================
   Login page
   ========================================================= */
.login-wrap{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:
    radial-gradient(700px 500px at 12% 10%, rgba(255,171,46,.20), transparent 55%),
    radial-gradient(700px 500px at 88% 20%, rgba(251,106,166,.20), transparent 55%),
    radial-gradient(900px 700px at 50% 100%, rgba(124,111,240,.25), transparent 60%),
    linear-gradient(160deg, #efeaff, #fdeef6 55%, #eaf6ff);
  padding:20px;
}
.login-card{
  width:100%; max-width:380px; background:var(--surface);
  border-radius:24px; padding:34px 30px; box-shadow:0 24px 60px rgba(96,80,190,.22);
  border:1px solid rgba(255,255,255,.6);
}
.login-logo{
  width:56px; height:56px; border-radius:16px; margin:0 auto 16px;
  background:linear-gradient(135deg, var(--indigo), var(--violet));
  display:flex; align-items:center; justify-content:center; color:#fff;
}
.login-logo .ic{ width:28px; height:28px; }
.login-card h1{ text-align:center; font-size:19px; margin:0 0 4px; }
.login-card p.sub{ text-align:center; color:var(--muted); font-size:13px; margin:0 0 24px; }
.login-card .field{ margin-bottom:14px; }

/* =========================================================
   Location cards (Beranda: Provinsi / Kabupaten drill-down)
   ========================================================= */
.hero-banner{
  background:linear-gradient(115deg, var(--indigo), var(--violet) 55%, var(--pink));
  border-radius:var(--radius-lg);
  padding:26px 28px;
  color:#fff;
  margin-bottom:20px;
  display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap;
  box-shadow:0 16px 34px rgba(124,111,240,.30);
}
.hero-banner h1{ margin:0 0 6px; font-size:20px; font-weight:800; }
.hero-banner p{ margin:0; font-size:13px; opacity:.92; max-width:520px; }
.hero-banner .btn-primary{ background:#fff; color:var(--indigo-dark); box-shadow:0 4px 14px rgba(0,0,0,.14); }
.hero-banner .btn-primary:hover{ filter:none; background:#f8f7ff; }

.crumb-trail{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-bottom:14px; font-size:13px; }
.crumb-trail a{ color:var(--indigo-dark); text-decoration:none; font-weight:700; }
.crumb-trail a:hover{ text-decoration:underline; }
.crumb-trail .sep{ color:var(--muted); }
.crumb-trail .current{ color:var(--muted); font-weight:600; }

.location-toolbar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:16px; }

.location-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
  gap:16px;
}
.location-card{
  position:relative;
  display:block;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:20px 20px 18px;
  text-decoration:none;
  color:var(--text);
  box-shadow:var(--shadow-sm);
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.location-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md); border-color:var(--indigo); }
.location-card .loc-icon{
  width:44px; height:44px; border-radius:13px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:14px;
}
.location-card .loc-icon .ic{ width:21px; height:21px; }
.location-card .loc-name{ font-size:15.5px; font-weight:800; line-height:1.25; margin-bottom:2px; padding-right:26px; }
.location-card .loc-sub{ font-size:11.5px; color:var(--muted); font-weight:600; margin-bottom:14px; }
.location-card .loc-stats{ display:flex; gap:16px; flex-wrap:wrap; }
.location-card .loc-stat .num{ font-size:15px; font-weight:800; line-height:1.1; }
.location-card .loc-stat .lbl{ font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; font-weight:700; margin-top:1px; }
.location-card .loc-arrow{
  position:absolute; top:18px; right:18px; width:26px; height:26px; border-radius:8px;
  background:var(--indigo-soft); color:var(--indigo);
  display:flex; align-items:center; justify-content:center;
}
.location-card .loc-arrow .ic{ width:14px; height:14px; }
.location-card.muted{ border-style:dashed; background:var(--surface-2); }
.location-card.muted .loc-name{ color:var(--text-soft); }

.loc-filter-chip{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--indigo-soft); color:var(--indigo-dark);
  padding:8px 8px 8px 14px; border-radius:11px; font-size:13px; font-weight:700;
  margin-bottom:16px;
}
.loc-filter-chip a{ color:var(--indigo-dark); display:flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:7px; background:rgba(255,255,255,.6); text-decoration:none; }
.loc-filter-chip > .ic{ width:15px; height:15px; flex-shrink:0; }
.loc-filter-chip a .ic{ width:13px; height:13px; }

/* =========================================================
   Statistik: bar list & trend chart (CSS-only, no JS/CDN)
   ========================================================= */
.viz-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(360px, 1fr)); gap:20px; margin-bottom:20px; align-items:start; }

.viz-bars{ display:flex; flex-direction:column; }
.viz-bar-row{ padding:11px 0; border-bottom:1px dashed var(--border); }
.viz-bar-row:last-child{ border-bottom:0; }
.viz-bar-head{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:7px; }
.viz-bar-head .name{ font-size:13.5px; font-weight:700; color:var(--text); }
.viz-bar-head .val{ font-size:12.5px; font-weight:700; color:var(--text-soft); white-space:nowrap; }
.viz-bar-head .val small{ color:var(--muted); font-weight:600; margin-left:3px; }
.viz-bar-track{ height:9px; border-radius:999px; background:var(--gray-soft); overflow:hidden; }
.viz-bar-fill{ height:100%; border-radius:999px; background:linear-gradient(90deg, var(--indigo), var(--violet)); }
.viz-bar-fill.teal{ background:linear-gradient(90deg, var(--teal), #17d6b8); }
.viz-bar-fill.amber{ background:linear-gradient(90deg, var(--amber), #ffcf6b); }
.viz-bar-fill.pink{ background:linear-gradient(90deg, var(--pink), #ff8fc4); }

.trend-chart{ display:flex; align-items:flex-end; gap:10px; height:200px; padding:8px 6px 0; }
.trend-col{ flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; }
.trend-col .bar-wrap{ width:100%; display:flex; align-items:flex-end; justify-content:center; flex:1; }
.trend-col .bar{
  width:100%; max-width:36px; border-radius:8px 8px 3px 3px;
  background:linear-gradient(180deg, var(--indigo), var(--violet));
  min-height:3px; transition:filter .12s ease;
}
.trend-col .bar:hover{ filter:brightness(1.12); }
.trend-col .val{ font-size:10.5px; font-weight:800; color:var(--text-soft); margin-top:6px; white-space:nowrap; }
.trend-col .lbl{ font-size:10.5px; color:var(--muted); font-weight:600; margin-top:2px; white-space:nowrap; }

.gt-cat-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(130px, 1fr)); gap:12px; }
.gt-cat-card{ background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-sm); padding:14px 16px; }
.gt-cat-card .num{ font-size:19px; font-weight:800; }
.gt-cat-card .lbl{ font-size:11.5px; color:var(--muted); font-weight:700; margin-top:2px; }

.mini-table{ width:100%; border-collapse:collapse; }
.mini-table th{ text-align:left; font-size:11px; text-transform:uppercase; color:var(--muted); font-weight:700; padding:6px 8px; border-bottom:1px solid var(--border); }
.mini-table td{ padding:9px 8px; font-size:13px; border-bottom:1px solid var(--border); }
.mini-table tr:last-child td{ border-bottom:0; }

/* =========================================================
   Misc utility
   ========================================================= */
.mt-0{margin-top:0;} .mb-0{margin-bottom:0;}
.text-muted{ color:var(--muted); }
.text-center{ text-align:center; }
.flex-between{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.small{ font-size:12px; }
.form-note{ background:var(--amber-soft); color:#8a5a06; border-radius:10px; padding:12px 14px; font-size:12.5px; display:flex; gap:9px; align-items:flex-start; }
.form-note .ic{ width:16px; height:16px; flex-shrink:0; margin-top:1px; }

/* =========================================================
   Sidebar collapsed (desktop) — diaktifkan lewat class .sidebar-collapsed
   di <html>, di-toggle oleh tombol .sidebar-collapse-btn (lihat app.js).
   Hanya berlaku >= 981px; di layar sempit sidebar sudah jadi drawer
   overlay (lihat blok Responsive di bawah) jadi tidak perlu mode ini.
   ========================================================= */
@media (min-width: 981px){
  html.sidebar-collapsed .sidebar{ width:76px; padding-left:10px; padding-right:10px; }
  html.sidebar-collapsed .sidebar-brand{ justify-content:center; padding-left:0; padding-right:0; }
  html.sidebar-collapsed .sidebar-brand > div,
  html.sidebar-collapsed .nav-item span,
  html.sidebar-collapsed .nav-sep span,
  html.sidebar-collapsed .admin-chip > div,
  html.sidebar-collapsed .nav-item-muted span{ display:none; }
  html.sidebar-collapsed .nav-item{ justify-content:center; padding:10px; }
  html.sidebar-collapsed .nav-item .ic{ margin:0; }
  html.sidebar-collapsed .nav-sep{ margin-left:4px; margin-right:4px; }
  html.sidebar-collapsed .admin-chip{ justify-content:center; padding:8px 0; }
  html.sidebar-collapsed .sidebar-footer .nav-item-muted{ justify-content:center; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .sidebar-collapse-btn{ display:none; }
  .sidebar{
    position:fixed; left:0; top:0; height:100vh;
    transform:translateX(-100%);
    transition:transform .22s ease;
    box-shadow:0 0 40px rgba(0,0,0,.25);
  }
  .sidebar-toggle-input:checked ~ .sidebar{ transform:translateX(0); }
  .sidebar-overlay{
    display:none; position:fixed; inset:0; background:rgba(20,20,40,.4); z-index:30;
  }
  .sidebar-toggle-input:checked ~ .sidebar-overlay{ display:block; }
  .hamburger{ display:flex; }
  .main-content{ padding:8px 16px 28px; }
  .topbar{ padding:14px 16px; }
}

@media (max-width: 640px){
  .topbar-title h1{ font-size:18px; }
  .panel-header, .panel-body, .toolbar{ padding-left:16px; padding-right:16px; }
  .stat-grid{ grid-template-columns:repeat(2, 1fr); }
  .pagination-bar{ flex-direction:column; align-items:stretch; }
  .row-actions{ justify-content:flex-start; }
  .login-card{ padding:26px 20px; }
  .hero-banner{ padding:20px; }
  .hero-banner .btn-primary{ width:100%; justify-content:center; }
}

/* =========================================================
   Sortable table headers (th-sort)
   ========================================================= */
th.th-sort{ padding:0 !important; }
th.th-sort a{
  display:flex; align-items:center; gap:5px;
  padding:12px 16px; text-decoration:none; color:inherit;
  user-select:none;
}
th.th-sort a:hover{ color:var(--indigo-dark); }
th.th-sort.th-sort-active a{ color:var(--indigo-dark); }
.ic-sort{ width:12px; height:12px; flex-shrink:0; }
.data-table thead th{ position:sticky; top:0; z-index:5; }

/* Row checkbox column */
.data-table td.col-check, .data-table th.col-check{ width:40px; padding-right:0 !important; padding-left:16px !important; }
.rowchk, .allchk{
  width:17px; height:17px; border-radius:5px; border:1.6px solid var(--border-strong);
  appearance:none; -webkit-appearance:none; cursor:pointer; position:relative; background:var(--surface); vertical-align:middle;
  transition:background .1s ease, border-color .1s ease;
}
.rowchk:checked, .allchk:checked{ background:var(--indigo); border-color:var(--indigo); }
.rowchk:checked::after, .allchk:checked::after{
  content:""; position:absolute; left:4px; top:1px; width:5px; height:9px;
  border:solid #fff; border-width:0 2px 2px 0; transform:rotate(40deg);
}
.allchk.indeterminate{ background:var(--indigo); border-color:var(--indigo); }
tr.row-selected{ background:var(--indigo-soft) !important; }

/* =========================================================
   Bulk action bar — muncul saat >=1 baris dicentang
   ========================================================= */
.bulk-bar{
  position:sticky; bottom:16px; z-index:25;
  display:none; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
  background:var(--ink); color:#fff;
  border-radius:var(--radius); padding:12px 16px 12px 20px;
  box-shadow:var(--shadow-lg); margin:14px 22px 0;
}
.bulk-bar.is-visible{ display:flex; }
.bulk-bar .bulk-count{ font-size:13.5px; font-weight:700; display:flex; align-items:center; gap:8px; }
.bulk-bar .bulk-count .ic{ width:16px; height:16px; flex-shrink:0; }
.bulk-bar .bulk-count .n{
  background:var(--indigo); border-radius:999px; min-width:22px; height:22px; padding:0 6px;
  display:inline-flex; align-items:center; justify-content:center; font-size:12px;
}
.bulk-bar .bulk-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.bulk-bar .btn-ghost{ color:rgba(255,255,255,.85); border-color:rgba(255,255,255,.18); }
.bulk-bar .btn-ghost:hover{ background:rgba(255,255,255,.1); }
.bulk-bar .btn-clear{ background:transparent; border:0; color:rgba(255,255,255,.55); font-size:12.5px; cursor:pointer; text-decoration:underline; }

/* =========================================================
   Advanced filter panel (Data Trip: "Filter Lanjutan")
   ========================================================= */
.filter-toggle-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.adv-filter{
  display:none; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:12px 14px;
  padding:16px 22px; border-bottom:1px solid var(--border); background:var(--surface-2);
}
.adv-filter.is-open{ display:grid; }
.adv-filter .field-mini{ display:flex; flex-direction:column; gap:5px; }
.adv-filter .field-mini label{ font-size:11px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; }
.adv-filter .field-mini .range-row{ display:flex; align-items:center; gap:6px; }
.adv-filter .field-mini .range-row span{ color:var(--muted); font-size:12px; }
.adv-filter-actions{ display:flex; align-items:end; gap:8px; grid-column:span 1; }
.active-filters{ display:flex; flex-wrap:wrap; gap:6px; padding:12px 22px 0; }
.active-filters:empty{ display:none; }
.filter-chip{
  display:inline-flex; align-items:center; gap:6px;
  background:var(--indigo-soft); color:var(--indigo-dark); font-size:12px; font-weight:700;
  padding:5px 6px 5px 11px; border-radius:999px;
}
.filter-chip a{ display:flex; width:16px; height:16px; align-items:center; justify-content:center; border-radius:50%; background:rgba(255,255,255,.7); text-decoration:none; }
.filter-chip a .ic{ width:10px; height:10px; }
.badge-count{
  display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 5px;
  border-radius:999px; background:var(--indigo); color:#fff; font-size:10.5px; font-weight:800; margin-left:6px;
}

/* =========================================================
   Export / Import menu (dropdown button)
   ========================================================= */
.split-btn{ position:relative; display:inline-flex; }
.export-menu{
  display:none; position:absolute; top:calc(100% + 6px); right:0; z-index:50;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm);
  box-shadow:var(--shadow-md); min-width:190px; padding:6px; flex-direction:column; gap:2px;
}
.export-menu.is-open{ display:flex; }
.export-menu a{
  display:flex; align-items:center; gap:9px; padding:9px 10px; border-radius:8px;
  font-size:13px; font-weight:600; color:var(--text-soft); text-decoration:none;
}
.export-menu a:hover{ background:var(--surface-2); color:var(--text); }
.export-menu a .ic{ width:16px; height:16px; color:var(--muted); flex-shrink:0; }
.export-menu .menu-label{ font-size:10.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); font-weight:700; padding:6px 10px 2px; }

/* =========================================================
   Import Data page
   ========================================================= */
.import-type-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); gap:14px; margin-bottom:4px; }
.import-type-card{
  display:block; text-decoration:none; color:inherit;
  background:var(--surface); border:1.5px solid var(--border); border-radius:var(--radius);
  padding:16px 18px; transition:border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.import-type-card:hover{ transform:translateY(-2px); box-shadow:var(--shadow-sm); }
.import-type-card.active{ border-color:var(--indigo); box-shadow:0 0 0 3px var(--indigo-soft); }
.import-type-card .it-icon{
  width:38px; height:38px; border-radius:10px; background:var(--indigo-soft); color:var(--indigo);
  display:flex; align-items:center; justify-content:center; margin-bottom:10px;
}
.import-type-card .it-icon .ic{ width:19px; height:19px; }
.import-type-card .it-name{ font-size:14px; font-weight:700; margin-bottom:2px; }
.import-type-card .it-desc{ font-size:12px; color:var(--muted); line-height:1.4; }

.dropzone{
  border:2px dashed var(--border-strong); border-radius:var(--radius);
  background:var(--surface-2); padding:34px 20px; text-align:center; cursor:pointer;
  transition:border-color .12s ease, background .12s ease;
}
.dropzone:hover, .dropzone.is-dragover{ border-color:var(--indigo); background:var(--indigo-soft); }
.dropzone .dz-icon{
  width:52px; height:52px; border-radius:14px; background:var(--surface); box-shadow:var(--shadow-sm);
  display:flex; align-items:center; justify-content:center; margin:0 auto 14px; color:var(--indigo);
}
.dropzone .dz-icon .ic{ width:24px; height:24px; }
.dropzone strong{ display:block; font-size:14px; margin-bottom:4px; }
.dropzone span{ font-size:12.5px; color:var(--muted); }
.dropzone input[type=file]{ display:none; }
.dz-filename{
  display:none; align-items:center; gap:10px; margin-top:14px; padding:10px 14px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); font-size:13px; text-align:left;
}
.dz-filename.is-visible{ display:flex; }
.dz-filename .ic{ width:18px; height:18px; color:var(--indigo); flex-shrink:0; }
.dz-filename .name{ font-weight:700; flex:1; word-break:break-all; }

.import-steps{ display:flex; align-items:center; gap:8px; margin-bottom:18px; flex-wrap:wrap; }
.import-step{ display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700; color:var(--muted); }
.import-step .n{
  width:22px; height:22px; border-radius:50%; background:var(--surface-3); color:var(--muted);
  display:flex; align-items:center; justify-content:center; font-size:11.5px;
}
.import-step.done .n{ background:var(--green-soft); color:var(--green); }
.import-step.active{ color:var(--text); }
.import-step.active .n{ background:var(--indigo); color:#fff; }
.import-step-sep{ width:20px; height:1px; background:var(--border-strong); }

.result-summary{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.result-stat{
  flex:1; min-width:130px; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:14px 16px;
}
.result-stat .num{ font-size:22px; font-weight:800; line-height:1; }
.result-stat .lbl{ font-size:11.5px; color:var(--muted); font-weight:700; margin-top:5px; }
.result-stat.ok .num{ color:var(--green); }
.result-stat.upd .num{ color:var(--blue); }
.result-stat.err .num{ color:var(--red); }
.result-stat.skip .num{ color:var(--amber); }

.preview-table-wrap{ max-height:420px; overflow:auto; border:1px solid var(--border); border-radius:var(--radius-sm); }
table.preview-table{ width:100%; border-collapse:collapse; font-size:12.5px; }
.preview-table th{
  position:sticky; top:0; background:var(--surface-2); text-align:left; padding:9px 12px;
  border-bottom:1px solid var(--border); font-weight:700; color:var(--muted); white-space:nowrap; z-index:2;
}
.preview-table td{ padding:8px 12px; border-bottom:1px solid var(--border); white-space:nowrap; }
.preview-table tr.row-error{ background:var(--red-soft); }
.preview-table tr.row-updated{ background:var(--blue-soft); }
.preview-table tr.row-new{ background:var(--green-soft); }
.preview-table .row-note{ font-size:11px; color:var(--red); font-weight:600; }

/* =========================================================
   Confirm modal (menggantikan window.confirm bawaan browser)
   ========================================================= */
.modal-overlay{
  position:fixed; inset:0; background:rgba(15,17,35,.5); backdrop-filter:blur(2px);
  display:none; align-items:center; justify-content:center; z-index:100; padding:20px;
}
.modal-overlay.is-open{ display:flex; }
.modal-card{
  width:100%; max-width:420px; background:var(--surface); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg); padding:24px; animation:modal-in .14s ease;
}
@keyframes modal-in{ from{ opacity:0; transform:translateY(6px) scale(.98);} to{ opacity:1; transform:none; } }
.modal-icon{
  width:44px; height:44px; border-radius:12px; background:var(--red-soft); color:var(--red);
  display:flex; align-items:center; justify-content:center; margin-bottom:14px;
}
.modal-icon .ic{ width:22px; height:22px; }
.modal-card h3{ margin:0 0 8px; font-size:16px; font-weight:700; }
.modal-card p{ margin:0 0 20px; font-size:13.5px; color:var(--text-soft); line-height:1.55; }
.modal-actions{ display:flex; justify-content:flex-end; gap:10px; }

/* =========================================================
   Toast notifications (dipicu lewat JS, mis. hasil aksi bulk)
   ========================================================= */
.toast-stack{
  position:fixed; bottom:20px; right:20px; z-index:200;
  display:flex; flex-direction:column; gap:10px; align-items:flex-end;
}
.toast{
  display:flex; align-items:center; gap:10px; background:var(--ink); color:#fff;
  padding:12px 16px; border-radius:var(--radius-sm); box-shadow:var(--shadow-lg);
  font-size:13px; font-weight:600; max-width:340px; animation:toast-in .18s ease;
}
@keyframes toast-in{ from{ opacity:0; transform:translateY(8px);} to{ opacity:1; transform:none; } }
.toast .ic{ width:17px; height:17px; flex-shrink:0; }
.toast.toast-success .ic{ color:#4ade80; }
.toast.toast-error .ic{ color:#f87171; }

/* =========================================================
   Misc: badge outline, density
   ========================================================= */
.cell-sub .ic{ width:13px; height:13px; flex-shrink:0; vertical-align:-2px; }
.badge-outline{ background:transparent; border:1.4px solid currentColor; }

/* Pill "Data Terkait" (jumlah tangkapan/panjang per trip) di grid Data Trip */
.related-pills{ display:flex; flex-direction:column; gap:4px; }
.related-pills-row{ flex-direction:row; gap:6px; }
.related-pill{
  display:inline-flex; align-items:center; gap:5px; width:fit-content;
  background:var(--teal-soft); color:#0a7a6d; font-size:11.5px; font-weight:700;
  padding:3px 9px 3px 7px; border-radius:999px;
}
.related-pills-row .related-pill{ padding:3px 8px 3px 6px; }
.related-pill:last-child{ background:var(--pink-soft); color:#b23071; }
.related-pill .ic{ width:12px; height:12px; }
.related-pill.is-empty{ background:var(--gray-soft); color:var(--muted); }
.text-xs{ font-size:11.5px; }
.kbd-hint{ display:inline-flex; align-items:center; gap:5px; color:var(--muted); font-size:11.5px; }

@media (max-width: 640px){
  .bulk-bar{ margin:14px 16px 0; flex-direction:column; align-items:stretch; }
  .adv-filter{ padding:14px 16px; }
  .active-filters{ padding:10px 16px 0; }
}

/* =========================================================
   Kinerja Enumerator: skor & mini progress bar
   ========================================================= */
.score-pill{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:52px; padding:5px 12px; border-radius:999px;
  font-weight:800; font-size:14px;
}
.score-pill.green{ background:var(--green-soft); color:#0f8a4c; }
.score-pill.teal{ background:var(--teal-soft); color:#0a8975; }
.score-pill.amber{ background:var(--amber-soft); color:#96650c; }
.score-pill.red{ background:var(--red-soft); color:#c22; }

.metric-stack{ display:flex; flex-direction:column; gap:3px; font-size:12px; }
.metric-stack .lbl{ color:var(--muted); font-size:11px; font-weight:600; }

.mini-bar-track{
  width:100%; min-width:70px; height:6px; border-radius:999px;
  background:var(--surface-2); overflow:hidden;
}
.mini-bar-fill{ height:100%; border-radius:999px; }
.mini-bar-fill.green{ background:var(--green); }
.mini-bar-fill.teal{ background:var(--teal); }
.mini-bar-fill.amber{ background:var(--amber); }
.mini-bar-fill.red{ background:var(--red); }
