/* ===========================================================
   DESAIN GLOBAL — satu standar untuk setiap jenis komponen.

   Semua angka gaya ada di :root di bawah. Mau mengubah tampilan
   tombol, card, tab, input, atau badge di SELURUH aplikasi? Ubah
   tokennya di sini saja, jangan menambah gaya di halaman.

   Kelompok (hasil `node scripts/style-audit.js --names`, yang mendata
   gaya yang benar-benar dirender di semua halaman):
     1. Permukaan / card      — semua blok berlatar di area konten
     2. Card statistik / KPI  — kartu angka di bagian atas halaman
     3. Tombol aksi           — class yang mengandung "btn"
     4. Pil filter            — tombol bulat pemilih (kuartal, status)
     5. Tab                   — tombol tab dan bilahnya
     6. Input & badge

   Dimuat setelah spacing.css; !important dipakai karena gaya lama
   ditulis di <style> tiap halaman dan sebagian inline.
   =========================================================== */

:root {
  --radius-card: 10px;     /* card, panel, modal, hero */
  --radius-ctrl: 8px;      /* tombol, input, tab */
  --radius-pill: 999px;    /* pil & badge */

  --line: #e5e7eb;         /* garis tepi semua permukaan */
  --surface: #ffffff;      /* latar card */

  --ctrl-h: 36px;          /* tinggi tombol & input */
  --pill-h: 32px;          /* tinggi pil filter */
  --tab-h: 38px;           /* tinggi tab */
  --badge-h: 20px;         /* tinggi badge */

  --font-ctrl: 13px;       /* teks tombol & input */
  --font-tab: 12.5px;
  --font-badge: 10.5px;

  --pad-card: 16px 18px;   /* isi card statistik */
}

/* ---- 1. Permukaan / card ----
   Blok "@kelas:..." diisi otomatis oleh `node scripts/css-kelas.js` dari class
   yang benar-benar dipakai halaman. JANGAN menulis selector pola seperti
   [class*="card"] — di halaman berelemen puluhan ribu itu membuat halaman membeku. */
.page-hero, .ipop-card,
.app-content .pi-mini, .app-content .table-wrap, .app-content .tbl-wrap, .app-content .lb-list, .app-content .lb-pod,
.app-content .lb-hero, .app-content .lb-filters, .app-content .lb-formula, .app-content .lb-view-toggle,
.app-content .profile-section, .app-content .gp-quarter-bar, .app-content .gp-toolbar, .app-content .gp-needs-sp,
.app-content .qr-bar, .app-content .inline-detail, .app-content .browse-page,
/* @kelas:permukaan awalan=".app-content " */
.app-content .aa-detail-kpi,
.app-content .aa-detail-kpis,
.app-content .aa-hero,
.app-content .aa-hero-tag,
.app-content .ach-card,
.app-content .adm-skel-card,
.app-content .ann-card,
.app-content .asesmen-kpi,
.app-content .asesmen-kpi-card,
.app-content .aspect-card,
.app-content .au-modal,
.app-content .bs-card,
.app-content .card,
.app-content .card--form-panel,
.app-content .card--guide,
.app-content .card--kpi,
.app-content .card-grid,
.app-content .card-grid--4,
.app-content .card-slide,
.app-content .centered-card,
.app-content .cfm-modal,
.app-content .data-card,
.app-content .detail-hero,
.app-content .detail-hero-cta,
.app-content .detail-hero-tag,
.app-content .detail-kpi,
.app-content .detail-kpis,
.app-content .ep-modal,
.app-content .filter-panel,
.app-content .form-card,
.app-content .form-card--add,
.app-content .galeri-hero,
.app-content .galeri-hero-content,
.app-content .galeri-hero-stats,
.app-content .gap-sum-card,
.app-content .gp-admin-tabs,
.app-content .gp-allsp-card,
.app-content .gp-celebrate-stat,
.app-content .gp-hero,
.app-content .gp-hero--admin,
.app-content .gp-hero--lecture,
.app-content .gp-hero-divider,
.app-content .gp-hero-grid,
.app-content .gp-hero-shape,
.app-content .gp-hero-stat,
.app-content .gp-hero-stats,
.app-content .gp-insight-activity-card,
.app-content .gp-insight-hero,
.app-content .gp-insight-hero-stat,
.app-content .gp-insight-hero-stats,
.app-content .gp-insight-iter-card,
.app-content .gp-insight-quarter-card,
.app-content .gp-kpi,
.app-content .gp-kpi-caption,
.app-content .gp-kpi-content,
.app-content .gp-modal,
.app-content .gp-modal-body,
.app-content .gp-modal-foot,
.app-content .gp-modal-overlay,
.app-content .gp-multi-panel,
.app-content .gp-pdf-panel,
.app-content .gp-proof-card,
.app-content .gp-risk-card,
.app-content .gp-rt-card,
.app-content .gp-skel-card,
.app-content .gp-smtp-panel,
.app-content .gp-sp-card,
.app-content .gp-table-card,
.app-content .hero,
.app-content .hero--compact,
.app-content .hf-card,
.app-content .hf-panel,
.app-content .hkpi-card,
.app-content .id-stat-card,
.app-content .insight-card,
.app-content .kpi--,
.app-content .kpi-blue,
.app-content .kpi-body,
.app-content .kpi-card,
.app-content .kpi-empty,
.app-content .kpi-green,
.app-content .kpi-inline-content,
.app-content .kpi-inline-panel,
.app-content .kpi-list,
.app-content .kpi-list-item,
.app-content .kpi-modal,
.app-content .kpi-orange,
.app-content .kpi-purple,
.app-content .kpi-strip-grid,
.app-content .kpi-teal,
.app-content .kpi-yellow,
.app-content .lb-hero,
.app-content .lb-hero-inner,
.app-content .lb-hero-stat,
.app-content .lb-hero-stats,
.app-content .lb-modal,
.app-content .lb-modal-rank,
.app-content .lb-modal-score,
.app-content .lb-modal-score-box,
.app-content .lb-modal-total,
.app-content .lb-stat,
.app-content .lb-tab-panel,
.app-content .lb-tabs,
.app-content .lc-hero,
.app-content .lc-hero-content,
.app-content .lc-hero-stats,
.app-content .lc-modal,
.app-content .lc-tab-panel,
.app-content .lc-tabs,
.app-content .lp-card,
.app-content .lp-card-h,
.app-content .lp-card-s,
.app-content .lp-card-t,
.app-content .lp-ins,
.app-content .lp-ins-d,
.app-content .lp-ins-more,
.app-content .lp-ins-t,
.app-content .lp-ins-tag,
.app-content .lp-panel,
.app-content .lp-scope--panel,
.app-content .lp-stat,
.app-content .lp-stat-ic,
.app-content .lp-tabs,
.app-content .mobile-kpi-item,
.app-content .mobile-kpi-strip,
.app-content .modal,
.app-content .modal-actions,
.app-content .modal-back,
.app-content .modal-content,
.app-content .modal-overlay,
.app-content .mon-card,
.app-content .org-dist-card,
.app-content .org-kpi-2col,
.app-content .org-kpi-hero,
.app-content .org-kpi-hero-card,
.app-content .org-kpi-section,
.app-content .periode-card,
.app-content .periode-cards,
.app-content .periode-panel,
.app-content .periode-panel-actions,
.app-content .pi-card,
.app-content .pi-card-h,
.app-content .pi-card-tag,
.app-content .pr-kpi-card,
.app-content .pr-kpi-cards,
.app-content .pr-kpi-list,
.app-content .pr-kpi-list-item,
.app-content .pr-kpi-section,
.app-content .pr-kpi-split,
.app-content .pr-kpi-split-box,
.app-content .pr-kpi-split-pct,
.app-content .pr-modal,
.app-content .pr-stat,
.app-content .pr-tab-panel,
.app-content .pr-tabs,
.app-content .profile-hero,
.app-content .profile-hero-info,
.app-content .ps-stat,
.app-content .qt-card,
.app-content .qtr-card,
.app-content .qtr-card-range,
.app-content .qtr-cards,
.app-content .ra-card,
.app-content .rapor-card,
.app-content .rp-skel-card,
.app-content .rp-stat,
.app-content .rp-stat-note,
.app-content .rp-tab-panel,
.app-content .rp-tabs,
.app-content .src-card,
.app-content .st-card,
.app-content .st-modal,
.app-content .st-modal-actions,
.app-content .st-profile-card,
.app-content .stat-card,
.app-content .tf-card,
.app-content .tf-card-foot,
.app-content .tf-card-foot-stats,
.app-content .tf-card-info,
.app-content .tf-cards,
.app-content .tf-hero,
.app-content .tl-card,
.app-content .tp-card,
.app-content .tp-card-count,
.app-content .tp-card-reason,
.app-content .tp-card-tier
/* @akhir */ {
  border-radius: var(--radius-card) !important;
}

/* ---- 2. Card statistik / KPI ----
   Dulu ada yang putih, ada yang bergradasi warna, ada yang bertepi kuning —
   itulah yang terlihat "belang". Sekarang latarnya seragam; warna aksen
   tinggal di ikonnya. */
.app-content :is(
  .pr-stat, .lb-stat, .lp-stat, .rp-stat, .stat-card, .gp-kpi, .kpi-card, .card--kpi, .pi-mini, .lp-ins
) {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
  padding: var(--pad-card) !important;
}

/* ---- 3. Tombol aksi ---- */
/* @kelas:tombol awalan=".app-content " */
.app-content .au-btn-cancel,
.app-content .au-btn-submit,
.app-content .btn,
.app-content .btn-action,
.app-content .btn-add,
.app-content .btn-apply,
.app-content .btn-cancel,
.app-content .btn-confirm,
.app-content .btn-danger,
.app-content .btn-delete,
.app-content .btn-dl,
.app-content .btn-edit,
.app-content .btn-first,
.app-content .btn-full,
.app-content .btn-gold,
.app-content .btn-last,
.app-content .btn-logout,
.app-content .btn-next,
.app-content .btn-open-filter,
.app-content .btn-pg,
.app-content .btn-prev,
.app-content .btn-primary,
.app-content .btn-reset,
.app-content .btn-reset-filter,
.app-content .btn-save,
.app-content .btn-save-pw,
.app-content .btn-success,
.app-content .btn-sync,
.app-content .cfm-btn,
.app-content .ep-btn-cancel,
.app-content .ep-btn-submit,
.app-content .ep-send-link-btn,
.app-content .filter-toggle-btn,
.app-content .gp-allsp-tbl-action-btn,
.app-content .gp-btn-cancel,
.app-content .gp-btn-confirm,
.app-content .gp-btn-dl,
.app-content .gp-btn-export-pdf,
.app-content .gp-btn-export-xlsx,
.app-content .gp-btn-primary,
.app-content .gp-btn-reset,
.app-content .gp-btn-reset-count,
.app-content .gp-btn-save,
.app-content .gp-btn-secondary,
.app-content .gp-inline-back-btn,
.app-content .gp-multi-btn,
.app-content .gp-pdf-option-btn,
.app-content .gp-spdoc-btn,
.app-content .header-avatar-btn,
.app-content .hf-btn,
.app-content .hf-btn-apply,
.app-content .hf-btn-reset,
.app-content .lb-me-btn,
.app-content .lp-btn,
.app-content .lp-btn--main,
.app-content .lp-kbtn,
.app-content .op-btn,
.app-content .pag-btn,
.app-content .pag-btns,
.app-content .pager-btn,
.app-content .periode-btn,
.app-content .periode-btn-caret,
.app-content .periode-btn-label,
.app-content .periode-mini-btn,
.app-content .pf-btn,
.app-content .pin-btn,
.app-content .st-btn,
.app-content .st-btn-danger,
.app-content .st-btn-gray,
.app-content .st-btn-primary,
.app-content .tw-btn
/* @akhir */ {
  min-height: var(--ctrl-h) !important;
  border-radius: var(--radius-ctrl) !important;
  font-size: var(--font-ctrl) !important;
  font-weight: 700 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  line-height: 1.2 !important;
}

/* ---- 4. Pil filter ---- */
.app-content :is(.qr-pill, .gp-q-pill, .belum-tab) {
  min-height: var(--pill-h) !important;
  border-radius: var(--radius-pill) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
}

/* ---- 5. Tab ---- */
.app-content :is(.pr-tab, .lp-tab, .rp-tab, .lb-tab, .gp-admin-tab, .lvt-btn, [role="tab"]) {
  min-height: var(--tab-h) !important;
  border-radius: var(--radius-ctrl) !important;
  font-size: var(--font-tab) !important;
  font-weight: 600 !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 6px;
}
.app-content :is(.pr-tab, .lp-tab, .rp-tab, .lb-tab, .gp-admin-tab, .lvt-btn, [role="tab"]):is(.active, [aria-selected="true"]) {
  font-weight: 700 !important;
}
/* Bilah tab: satu bentuk untuk semua halaman. */
.app-content :is(.pr-tabs, .lb-tabs, .rp-tabs, .gp-admin-tabs, .lp-tabs, .lb-view-toggle) {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
  padding: 4px !important;
  gap: 4px !important;
}

/* ---- 6a. Input, select, dropdown multi-pilih ----
   Hanya tinggi, sudut, huruf, dan garis yang diseragamkan. Padding
   kiri/kanan sengaja dibiarkan: kotak cari menyisakan ruang untuk ikonnya.
   Input kecil di dalam tabel (bobot skor) tidak ikut. */
.app-content :is(input:not([type=checkbox], [type=radio], [type=range], [type=hidden], [type=file], [type=color]), select, .bsis-ms-trigger, .gp-multi-btn):not(td *, th *) {
  min-height: var(--ctrl-h) !important;
  border-radius: var(--radius-ctrl) !important;
  font-size: var(--font-ctrl) !important;
  border: 1px solid var(--line) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box;
}
.app-content textarea {
  border-radius: var(--radius-ctrl) !important;
  font-size: var(--font-ctrl) !important;
  border: 1px solid var(--line) !important;
}

/* ---- 6b. Badge ---- */
.app-content .badge, .app-content .act-pill, .app-content .rank-chip, .app-content .status-badge, .app-content .pill,
/* @kelas:badge awalan=".app-content " */
.app-content .ann-badge,
.app-content .badge-,
.app-content .badge-a,
.app-content .badge-aktif,
.app-content .badge-h,
.app-content .badge-pending,
.app-content .badge-pin,
.app-content .badge-self,
.app-content .gh-badge,
.app-content .gh-badge-pulse,
.app-content .gp-hero-badge,
.app-content .gp-sp-iter-badge,
.app-content .gp-sp-pct-badge,
.app-content .gp-sp-q-badge,
.app-content .header-role-badge,
.app-content .hero-badge,
.app-content .hf-count-badge,
.app-content .iter-badge,
.app-content .jr-badge,
.app-content .kpi-list-badge,
.app-content .lb-badge-me,
.app-content .lb-tab-badge,
.app-content .lc-tab-badge,
.app-content .org-rank-badge,
.app-content .ph-badge,
.app-content .ph-badge--outline,
.app-content .pr-tab-badge,
.app-content .pr-total-badge,
.app-content .prestasi-total-badge,
.app-content .qtr-avg-badge,
.app-content .rp-tab-badge,
.app-content .sp-doc-badge,
.app-content .status-badge,
.app-content .tg-badge,
.app-content .tp-tier-badge
/* @akhir */ {
  min-height: var(--badge-h) !important;
  border-radius: var(--radius-pill) !important;
  font-size: var(--font-badge) !important;
  font-weight: 700 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  line-height: 1 !important;
}

/* ---- 7. Tanpa garis aksen di tepi card ----
   Banyak card/toolbar membawa garis tebal berwarna di tepi atas
   (border-top 2–4px). Diseragamkan jadi garis tepi biasa. Hanya lebar &
   warnanya yang diubah — elemen yang memang tidak bergaris (border-style
   none) tetap tidak bergaris. */
.app-content .browse-detail, .app-content .inline-detail, .app-content .gp-needs-sp,
/* @kelas:aksen awalan=".app-content " */
.app-content .aa-breakdown-bar-wrap,
.app-content .aa-detail-kpi,
.app-content .aa-detail-kpis,
.app-content .aa-section,
.app-content .ach-card,
.app-content .adm-skel-card,
.app-content .ann-card,
.app-content .asesmen-kpi,
.app-content .asesmen-kpi-card,
.app-content .aspect-card,
.app-content .breakdown-bar-wrap,
.app-content .bs-card,
.app-content .bs-table-wrap,
.app-content .bs-toolbar,
.app-content .bs-toolbar-reset,
.app-content .bsi-memuat-wrap,
.app-content .card,
.app-content .card--form-panel,
.app-content .card--guide,
.app-content .card--kpi,
.app-content .card-grid,
.app-content .card-grid--4,
.app-content .card-slide,
.app-content .centered-card,
.app-content .data-card,
.app-content .detail-kpi,
.app-content .detail-kpis,
.app-content .detail-section,
.app-content .donut-wrap,
.app-content .ep-pw-wrap,
.app-content .filter-panel,
.app-content .form-card,
.app-content .form-card--add,
.app-content .gap-sum-card,
.app-content .gp-allsp-card,
.app-content .gp-allsp-tbl-wrap,
.app-content .gp-celebrate-stat,
.app-content .gp-hero-stat,
.app-content .gp-insight-activity-card,
.app-content .gp-insight-hero-stat,
.app-content .gp-insight-iter-card,
.app-content .gp-insight-quarter-card,
.app-content .gp-insight-section,
.app-content .gp-kpi,
.app-content .gp-kpi-caption,
.app-content .gp-kpi-content,
.app-content .gp-multi-panel,
.app-content .gp-needs-sp-table-wrap,
.app-content .gp-needs-sp-tbl-action-wrap,
.app-content .gp-pdf-panel,
.app-content .gp-pdf-picker-search-wrap,
.app-content .gp-proof-card,
.app-content .gp-proof-table-wrap,
.app-content .gp-risk-card,
.app-content .gp-rt-card,
.app-content .gp-rt-progress-wrap,
.app-content .gp-skel-card,
.app-content .gp-smtp-panel,
.app-content .gp-sp-card,
.app-content .gp-spdoc-preview-wrap,
.app-content .gp-spdoc-toolbar,
.app-content .gp-table-card,
.app-content .gp-table-wrap,
.app-content .gp-toolbar,
.app-content .header-section,
.app-content .hf-card,
.app-content .hf-ms-search-wrap,
.app-content .hf-panel,
.app-content .hf-section,
.app-content .hist-bar-wrap,
.app-content .hkpi-card,
.app-content .id-stat-card,
.app-content .insight-card,
.app-content .kpi--,
.app-content .kpi-blue,
.app-content .kpi-body,
.app-content .kpi-card,
.app-content .kpi-empty,
.app-content .kpi-green,
.app-content .kpi-inline-content,
.app-content .kpi-inline-panel,
.app-content .kpi-list,
.app-content .kpi-list-item,
.app-content .kpi-modal,
.app-content .kpi-orange,
.app-content .kpi-purple,
.app-content .kpi-strip-grid,
.app-content .kpi-teal,
.app-content .kpi-yellow,
.app-content .lb-hero-stat,
.app-content .lb-stat,
.app-content .lb-tab-panel,
.app-content .lb-wrap,
.app-content .lbl-wrap,
.app-content .lc-tab-panel,
.app-content .lp-card,
.app-content .lp-card-h,
.app-content .lp-card-s,
.app-content .lp-card-t,
.app-content .lp-panel,
.app-content .lp-scope--panel,
.app-content .lp-stat,
.app-content .lp-stat-ic,
.app-content .mobile-kpi-item,
.app-content .mobile-kpi-strip,
.app-content .mon-card,
.app-content .org-dist-card,
.app-content .org-kpi-2col,
.app-content .org-kpi-hero,
.app-content .org-kpi-hero-card,
.app-content .org-kpi-section,
.app-content .periode-card,
.app-content .periode-cards,
.app-content .periode-panel,
.app-content .periode-panel-actions,
.app-content .pi-card,
.app-content .pi-card-h,
.app-content .pi-card-tag,
.app-content .pi-donut-wrap,
.app-content .pr-kpi-card,
.app-content .pr-kpi-cards,
.app-content .pr-kpi-list,
.app-content .pr-kpi-list-item,
.app-content .pr-kpi-section,
.app-content .pr-kpi-split,
.app-content .pr-kpi-split-box,
.app-content .pr-kpi-split-pct,
.app-content .pr-stat,
.app-content .pr-tab-panel,
.app-content .profile-section,
.app-content .progress-wrap,
.app-content .ps-stat,
.app-content .qt-card,
.app-content .qtr-card,
.app-content .qtr-card-range,
.app-content .qtr-cards,
.app-content .ra-bar-wrap,
.app-content .ra-card,
.app-content .rapor-card,
.app-content .rp-skel-card,
.app-content .rp-stat,
.app-content .rp-stat-note,
.app-content .rp-tab-panel,
.app-content .sidebar-section,
.app-content .src-card,
.app-content .st-card,
.app-content .st-profile-card,
.app-content .st-section,
.app-content .stat-card,
.app-content .table-wrap,
.app-content .tbl-toolbar,
.app-content .tbl-wrap,
.app-content .td-wrap,
.app-content .tf-card,
.app-content .tf-card-foot,
.app-content .tf-card-foot-stats,
.app-content .tf-card-info,
.app-content .tf-cards,
.app-content .tl-card,
.app-content .toggle-wrap,
.app-content .toolbar,
.app-content .tp-card,
.app-content .tp-card-count,
.app-content .tp-card-reason,
.app-content .tp-card-tier
/* @akhir */,
/* @kelas:aksen awalan=".ipop-body " */
.ipop-body .aa-breakdown-bar-wrap,
.ipop-body .aa-detail-kpi,
.ipop-body .aa-detail-kpis,
.ipop-body .aa-section,
.ipop-body .ach-card,
.ipop-body .adm-skel-card,
.ipop-body .ann-card,
.ipop-body .asesmen-kpi,
.ipop-body .asesmen-kpi-card,
.ipop-body .aspect-card,
.ipop-body .breakdown-bar-wrap,
.ipop-body .bs-card,
.ipop-body .bs-table-wrap,
.ipop-body .bs-toolbar,
.ipop-body .bs-toolbar-reset,
.ipop-body .bsi-memuat-wrap,
.ipop-body .card,
.ipop-body .card--form-panel,
.ipop-body .card--guide,
.ipop-body .card--kpi,
.ipop-body .card-grid,
.ipop-body .card-grid--4,
.ipop-body .card-slide,
.ipop-body .centered-card,
.ipop-body .data-card,
.ipop-body .detail-kpi,
.ipop-body .detail-kpis,
.ipop-body .detail-section,
.ipop-body .donut-wrap,
.ipop-body .ep-pw-wrap,
.ipop-body .filter-panel,
.ipop-body .form-card,
.ipop-body .form-card--add,
.ipop-body .gap-sum-card,
.ipop-body .gp-allsp-card,
.ipop-body .gp-allsp-tbl-wrap,
.ipop-body .gp-celebrate-stat,
.ipop-body .gp-hero-stat,
.ipop-body .gp-insight-activity-card,
.ipop-body .gp-insight-hero-stat,
.ipop-body .gp-insight-iter-card,
.ipop-body .gp-insight-quarter-card,
.ipop-body .gp-insight-section,
.ipop-body .gp-kpi,
.ipop-body .gp-kpi-caption,
.ipop-body .gp-kpi-content,
.ipop-body .gp-multi-panel,
.ipop-body .gp-needs-sp-table-wrap,
.ipop-body .gp-needs-sp-tbl-action-wrap,
.ipop-body .gp-pdf-panel,
.ipop-body .gp-pdf-picker-search-wrap,
.ipop-body .gp-proof-card,
.ipop-body .gp-proof-table-wrap,
.ipop-body .gp-risk-card,
.ipop-body .gp-rt-card,
.ipop-body .gp-rt-progress-wrap,
.ipop-body .gp-skel-card,
.ipop-body .gp-smtp-panel,
.ipop-body .gp-sp-card,
.ipop-body .gp-spdoc-preview-wrap,
.ipop-body .gp-spdoc-toolbar,
.ipop-body .gp-table-card,
.ipop-body .gp-table-wrap,
.ipop-body .gp-toolbar,
.ipop-body .header-section,
.ipop-body .hf-card,
.ipop-body .hf-ms-search-wrap,
.ipop-body .hf-panel,
.ipop-body .hf-section,
.ipop-body .hist-bar-wrap,
.ipop-body .hkpi-card,
.ipop-body .id-stat-card,
.ipop-body .insight-card,
.ipop-body .kpi--,
.ipop-body .kpi-blue,
.ipop-body .kpi-body,
.ipop-body .kpi-card,
.ipop-body .kpi-empty,
.ipop-body .kpi-green,
.ipop-body .kpi-inline-content,
.ipop-body .kpi-inline-panel,
.ipop-body .kpi-list,
.ipop-body .kpi-list-item,
.ipop-body .kpi-modal,
.ipop-body .kpi-orange,
.ipop-body .kpi-purple,
.ipop-body .kpi-strip-grid,
.ipop-body .kpi-teal,
.ipop-body .kpi-yellow,
.ipop-body .lb-hero-stat,
.ipop-body .lb-stat,
.ipop-body .lb-tab-panel,
.ipop-body .lb-wrap,
.ipop-body .lbl-wrap,
.ipop-body .lc-tab-panel,
.ipop-body .lp-card,
.ipop-body .lp-card-h,
.ipop-body .lp-card-s,
.ipop-body .lp-card-t,
.ipop-body .lp-panel,
.ipop-body .lp-scope--panel,
.ipop-body .lp-stat,
.ipop-body .lp-stat-ic,
.ipop-body .mobile-kpi-item,
.ipop-body .mobile-kpi-strip,
.ipop-body .mon-card,
.ipop-body .org-dist-card,
.ipop-body .org-kpi-2col,
.ipop-body .org-kpi-hero,
.ipop-body .org-kpi-hero-card,
.ipop-body .org-kpi-section,
.ipop-body .periode-card,
.ipop-body .periode-cards,
.ipop-body .periode-panel,
.ipop-body .periode-panel-actions,
.ipop-body .pi-card,
.ipop-body .pi-card-h,
.ipop-body .pi-card-tag,
.ipop-body .pi-donut-wrap,
.ipop-body .pr-kpi-card,
.ipop-body .pr-kpi-cards,
.ipop-body .pr-kpi-list,
.ipop-body .pr-kpi-list-item,
.ipop-body .pr-kpi-section,
.ipop-body .pr-kpi-split,
.ipop-body .pr-kpi-split-box,
.ipop-body .pr-kpi-split-pct,
.ipop-body .pr-stat,
.ipop-body .pr-tab-panel,
.ipop-body .profile-section,
.ipop-body .progress-wrap,
.ipop-body .ps-stat,
.ipop-body .qt-card,
.ipop-body .qtr-card,
.ipop-body .qtr-card-range,
.ipop-body .qtr-cards,
.ipop-body .ra-bar-wrap,
.ipop-body .ra-card,
.ipop-body .rapor-card,
.ipop-body .rp-skel-card,
.ipop-body .rp-stat,
.ipop-body .rp-stat-note,
.ipop-body .rp-tab-panel,
.ipop-body .sidebar-section,
.ipop-body .src-card,
.ipop-body .st-card,
.ipop-body .st-profile-card,
.ipop-body .st-section,
.ipop-body .stat-card,
.ipop-body .table-wrap,
.ipop-body .tbl-toolbar,
.ipop-body .tbl-wrap,
.ipop-body .td-wrap,
.ipop-body .tf-card,
.ipop-body .tf-card-foot,
.ipop-body .tf-card-foot-stats,
.ipop-body .tf-card-info,
.ipop-body .tf-cards,
.ipop-body .tl-card,
.ipop-body .toggle-wrap,
.ipop-body .toolbar,
.ipop-body .tp-card,
.ipop-body .tp-card-count,
.ipop-body .tp-card-reason,
.ipop-body .tp-card-tier
/* @akhir */ {
  border-top-width: 1px !important;
  border-top-color: var(--line) !important;
  border-left-width: 1px !important;       /* juga garis aksen di tepi kiri */
  border-left-color: var(--line) !important;
}

/* Garis aksen yang dibuat dengan pseudo-element (bilah warna di tepi atas
   atau kiri card). Daftar ini hasil pemindaian semua halaman: ::before/::after
   absolut setinggi/selebar 1–6px yang menempel di tepi. */
.pi-card::before, .tp-card::before, .ra-card::before, .gap-row-v2.crit::after {
  display: none !important;
}

/* ---- 8. Kotak cari berikon ----
   Pola "pembungkus + ikon + input": pembungkusnya yang tampil sebagai
   kontrol. Tanpa ini input di dalamnya ikut diberi garis (bagian 6a)
   sehingga garisnya dobel. */
/* :has() dibatasi ke class 'search' — :has() pada semua div membuat browser
   memeriksa ulang puluhan ribu elemen di setiap perubahan DOM (halaman membeku). */
/* @kelas:cari awalan=".app-content " akhiran=":has(> svg ~ input)" */
.app-content .bs-search:has(> svg ~ input),
.app-content .gp-multi-search:has(> svg ~ input),
.app-content .gp-pdf-picker-search-clear:has(> svg ~ input),
.app-content .gp-pdf-picker-search-wrap:has(> svg ~ input),
.app-content .head-search:has(> svg ~ input),
.app-content .hf-field--search:has(> svg ~ input),
.app-content .hf-ms-search:has(> svg ~ input),
.app-content .hf-ms-search-wrap:has(> svg ~ input),
.app-content .search-dropdown:has(> svg ~ input),
.app-content .search-item:has(> svg ~ input),
.app-content .tbl-search:has(> svg ~ input),
.app-content .tf-searchbox:has(> svg ~ input)
/* @akhir */ {
  min-height: var(--ctrl-h) !important;
  border-radius: var(--radius-ctrl) !important;
}
/* @kelas:cari awalan=".app-content " akhiran=":has(> svg ~ input) > input" */
.app-content .bs-search:has(> svg ~ input) > input,
.app-content .gp-multi-search:has(> svg ~ input) > input,
.app-content .gp-pdf-picker-search-clear:has(> svg ~ input) > input,
.app-content .gp-pdf-picker-search-wrap:has(> svg ~ input) > input,
.app-content .head-search:has(> svg ~ input) > input,
.app-content .hf-field--search:has(> svg ~ input) > input,
.app-content .hf-ms-search:has(> svg ~ input) > input,
.app-content .hf-ms-search-wrap:has(> svg ~ input) > input,
.app-content .search-dropdown:has(> svg ~ input) > input,
.app-content .search-item:has(> svg ~ input) > input,
.app-content .tbl-search:has(> svg ~ input) > input,
.app-content .tf-searchbox:has(> svg ~ input) > input
/* @akhir */ {
  border: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ---- 9. Pop-up & modal detail: lebar seragam ----
   Modal yang menampilkan rincian (tabel skor, daftar awardee) diberi lebar
   besar supaya tabelnya muat. Modal formulir (tambah/ubah data) sengaja
   tidak ikut — formulir yang terlalu lebar justru sulit dibaca. */
:root { --modal-w: 1200px; }
.lb-modal, .lc-modal, .kpi-modal, .gp-modal-overlay > .gp-modal, .ipop-card {
  max-width: min(var(--modal-w), calc(100vw - 2 * var(--space-app, 10px))) !important;
  width: 100% !important;
  border-radius: var(--radius-card) !important;
}
.ipop-card { width: min(var(--modal-w), 100%) !important; }

/* ---- 10. Tombol kembali: satu gaya, hover yang tenang ----
   Hover lama memunculkan kotak abu yang bergeser — terlihat seperti tombol
   rusak. Sekarang hanya warna yang berubah. */
:is(.modal-back, .browse-back-btn, .aa-back, .detail-back, .gp-inline-back-btn) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  border-radius: 0 !important;
  color: #475569 !important;
  font-weight: 700 !important;
}
:is(.modal-back, .browse-back-btn, .aa-back, .detail-back, .gp-inline-back-btn):hover {
  background: transparent !important;
  color: #0055a5 !important;
  transform: none !important;
}
/* Tombol kembali di modal menempel (sticky) di atas isi — butuh latar agar
   isi yang tergulir tidak tembus. */
.modal-back, .modal-back:hover { background: var(--surface) !important; }
:is(.browse-back-btn, .aa-back, .detail-back, .gp-inline-back-btn) { padding: 6px 0 !important; }

/* ---- 11. Baris batang (rata-rata per komponen) ----
   Tiga kolom tetap: label (tidak terpotong), batang, nilai. Kolom nilai
   selebar sama untuk semua baris, jadi semua batang mulai & berakhir di
   garis yang sama — termasuk baris "data belum ada". */
.app-content .asp-bar-row {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 12px !important;
  font-size: 13px;
}
.app-content .asp-bar-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.app-content .asp-bar-track { width: 100%; min-height: 22px; }
.app-content .asp-bar-val {
  text-align: right !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.app-content .asp-bar-fill { font-size: 12px !important; font-weight: 800 !important; }
@media (max-width: 640px) {
  .app-content .asp-bar-row { grid-template-columns: 1fr 90px; }
  .app-content .asp-bar-track { grid-column: 1 / -1; grid-row: 2; }
}

/* ---- 12. Tabel rincian skor (Asesmen.rincianHTML) ----
   Teks rata kiri, angka rata kanan, kolom tetap — semua baris lurus. */
.bd-asesmen { width: 100%; table-layout: fixed; border-collapse: collapse; }
.bd-asesmen th, .bd-asesmen td { vertical-align: top; }
.bd-asesmen th:nth-child(-n+2), .bd-asesmen td:nth-child(-n+2) { text-align: left !important; }
.bd-asesmen th:nth-child(n+3), .bd-asesmen td:nth-child(n+3) { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bd-asesmen td:nth-child(n+3) { font-size: 13.5px; font-weight: 700; color: #0f172a; }
.bd-asesmen .bd-ref { font-size: 10.5px; color: #64748b; font-weight: 500; margin-top: 2px; line-height: 1.4; }
.bd-asesmen .bd-item { font-size: 11px; color: #475569; line-height: 1.6; margin-top: 4px; }
.bd-asesmen .bd-belum { color: #b45309; font-weight: 600; }
.bd-catatan { margin-top: 10px; padding: 10px 12px; background: #f0f7ff; border: 1px solid #bfdbfe; border-radius: var(--radius-card); font-size: 11.5px; color: #1e3a8a; line-height: 1.55; }

/* ---- 13. Kartu rapor asesmen (Leaderboard, Lecture, Home) ----
   Satu kartu per rapor: skor rapor besar, lalu daftar komponen dengan
   bobot, rata-rata hasil, dan batang. Dibangun oleh Asesmen.raporHTML(). */
.rapor-grid { display: grid; grid-template-columns: minmax(220px, .7fr) 1fr 1fr; gap: var(--space-app); }
@media (max-width: 1100px) { .rapor-grid { grid-template-columns: 1fr; } }
.rapor-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.rapor-card.is-click { cursor: pointer; }
.rapor-card.is-click:hover { border-color: #94a3b8; }
.rapor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rapor-title { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #475569; }
.rapor-sub { font-size: 11.5px; color: #64748b; margin-top: 3px; line-height: 1.45; }
.rapor-score { font-size: 32px; font-weight: 800; color: #0f172a; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rapor-score small { font-size: 13px; font-weight: 700; color: #94a3b8; }
.rapor-bobot { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: var(--radius-pill); background: #f1f5f9; color: #334155; font-size: 11px; font-weight: 800; white-space: nowrap; }
.rapor-list { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid #f1f5f9; padding-top: 12px; }
.rapor-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px 100px; align-items: center; column-gap: 10px; row-gap: 5px; }
.rapor-row-lbl { font-size: 12.5px; font-weight: 700; color: #1e293b; line-height: 1.3; }
.rapor-row-w { font-size: 11px; font-weight: 800; color: #64748b; text-align: right; font-variant-numeric: tabular-nums; }
.rapor-row-v { font-size: 14px; font-weight: 800; color: #0f172a; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rapor-row-v.belum { font-size: 11px; color: #b45309; }
.rapor-bar { grid-column: 1 / -1; height: 6px; border-radius: var(--radius-pill); background: #f1f5f9; overflow: hidden; }
.rapor-bar > span { display: block; height: 100%; border-radius: inherit; background: #0d9488; }
.rapor-card.capaian .rapor-bar > span { background: #d97706; }
.rapor-ref { font-size: 10.5px; color: #94a3b8; line-height: 1.4; }

/* ---- 14. Tombol Kembali hanya di pop-up ----
   Tampilan di dalam tab (mis. "Semua Prestasi") bukan pop-up, jadi tombol
   Kembali-nya disembunyikan. Pop-up memakai bilah Kembali seragam
   (assets/inline-popup.css · .modal-back di modal Leaderboard). */
.app-content .browse-back-btn { display: none !important; }

/* ---- 15. Modal & pop-up: hanya tombol "Kembali" di kiri atas ----
   Tidak ada tombol × / "Tutup" di pojok kanan. Tombol × bawaan modal lama
   ditampilkan ulang sebagai "Kembali" (teks × disembunyikan, diganti label),
   jadi fungsinya tetap — hanya bentuk & letaknya yang diseragamkan. */
:is(.modal-close-x, .lb-modal-close, .gp-modal-close, .cfm-result-close, .lp-drx) {
  position: static !important; float: none !important; inset: auto !important;
  display: inline-flex !important; align-items: center; gap: 6px;
  width: auto !important; height: auto !important; min-height: 0 !important;
  margin: 0 0 12px !important; padding: 4px 0 !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  border-radius: 0 !important; transform: none !important;
  font-size: 0 !important; color: #475569 !important; cursor: pointer;
}
:is(.modal-close-x, .lb-modal-close, .gp-modal-close, .cfm-result-close, .lp-drx) > * { display: none !important; }
:is(.modal-close-x, .lb-modal-close, .gp-modal-close, .cfm-result-close, .lp-drx)::before {
  content: ""; width: 16px; height: 16px; flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(.modal-close-x, .lb-modal-close, .gp-modal-close, .cfm-result-close, .lp-drx)::after { content: "Kembali"; font-size: 13px; font-weight: 700; }
:is(.modal-close-x, .lb-modal-close, .gp-modal-close, .cfm-result-close, .lp-drx):hover { color: #0055a5 !important; background: transparent !important; }
/* Modal yang sudah punya .modal-back tidak butuh tombol kedua. */
.lb-modal:has(> .modal-back) :is(.modal-close-x, .lb-modal-close) { display: none !important; }
/* Tombol tutup panel inline (×) — panelnya kini pop-up dengan bilah Kembali. */
:is(.close-inline, .kpi-inline-close, .browse-close) { display: none !important; }

/* ---- 16. KPI komponen asesmen (Home) — satu baris, responsif ---- */
/* Breakpoint memakai lebar area konten (container query), bukan lebar layar —
   di dalam frame, lebar layar menyesatkan. */
#homeKpiGrid { container-type: inline-size; }
.asesmen-kpi { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--space-app); }
@container (max-width: 860px) { .asesmen-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 440px) { .asesmen-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.asesmen-kpi-card .ak-val { font-size: clamp(18px, 2cqi, 24px); }
.asesmen-kpi-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 84px; cursor: pointer; }
.asesmen-kpi-card:hover { border-color: #94a3b8; }
.asesmen-kpi-card.is-skel { cursor: default; }
.ak-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ak-lbl { font-size: 12.5px; font-weight: 700; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-w { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: var(--radius-pill); background: #f1f5f9; color: #334155; font-size: 10.5px; font-weight: 800; }
.ak-val { font-size: 24px; font-weight: 800; color: #0f172a; line-height: 1; font-variant-numeric: tabular-nums; margin-top: auto; }
.ak-val small { font-size: 11px; font-weight: 700; color: #94a3b8; }
.ak-belum { font-size: 22px; font-weight: 800; color: #94a3b8; }
.ak-sub { font-size: 10.5px; color: #94a3b8; }
.ak-bar { height: 5px; border-radius: var(--radius-pill); background: #f1f5f9; overflow: hidden; }
.ak-bar > span { display: block; height: 100%; background: #0d9488; }
.asesmen-kpi-card.capaian .ak-bar > span { background: #d97706; }
/* Dua warna rapor: tosca = Performa Pembinaan, oranye = Capaian di Luar Pembinaan. */
.asesmen-kpi-card.pembinaan { background: #f7fdfc !important; border-color: #cdeee8 !important; }
.asesmen-kpi-card.capaian   { background: #fffdf6 !important; border-color: #f3e3b8 !important; }
.asesmen-kpi-card.pembinaan .ak-w   { background: #e6faf6; color: #5eaaa0; }
.asesmen-kpi-card.capaian   .ak-w   { background: #fdf4dc; color: #c99a5b; }
.asesmen-kpi-card.pembinaan .ak-val { color: #0f766e; }
.asesmen-kpi-card.capaian   .ak-val { color: #b45309; }
.asesmen-kpi-card .ak-val small { font-size: 14px; font-weight: 800; color: inherit; opacity: .7; margin-left: 1px; }

/* ---- 17. Pop-up Performa Lecture (.lp-dr) mengikuti standar pop-up ----
   Header putih (bukan gradien), tombol Kembali di kiri atas, tanpa ×. */
.lp-dr .lp-drh { background: var(--surface) !important; color: #0f172a !important; border-bottom: 1px solid #f1f5f9; }
.lp-dr .lp-drh p, .lp-dr .lp-drstat small { color: #64748b !important; opacity: 1 !important; }
.lp-dr .lp-drh-top { flex-direction: column-reverse; align-items: flex-start !important; gap: 8px; }

/* ---- 18. Baris KPI: selalu satu baris ----
   Semua deret kartu KPI/statistik ditata satu baris dengan lebar sama,
   menyusut mengikuti area konten; baru turun 2 kolom di layar sempit. */
.app-content :is(.lp-stats, .lb-stats, .pr-stats, .rp-stats, .gp-kpi-row, .kpi-row, .stat-row) {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(0, 1fr) !important;
  grid-template-columns: none !important;
}
.app-content :is(.lp-stats, .lb-stats, .pr-stats, .rp-stats, .gp-kpi-row, .kpi-row, .stat-row) > * { min-width: 0; }
@media (max-width: 640px) {
  .app-content :is(.lp-stats, .lb-stats, .pr-stats, .rp-stats, .gp-kpi-row, .kpi-row, .stat-row) {
    grid-auto-flow: row !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* KPI komponen Home: bobot di pojok kanan bawah. */
.asesmen-kpi-card { position: relative; }
.asesmen-kpi-card .ak-top { display: block; }
.asesmen-kpi-card .ak-w { position: absolute; right: 12px; bottom: 12px; }
.asesmen-kpi-card .ak-val { padding-right: 46px; }

/* ---- 19. Menu aktif sidebar: hijau logo BSI, solid ----
   Tanpa latar lembut/gradasi dan tanpa garis kiri — satu warna penuh.
   (style.css menyimpan beberapa versi lama aturan ini; yang ini yang berlaku.) */
:root { --menu-aktif: #00A59F; }   /* hijau tosca logo BSI */
.sidebar .sidebar-link.active,
.sidebar .sidebar-link.active:hover {
  background: var(--menu-aktif) !important;
  background-image: none !important;
  color: #fff !important;
  border-left: 0 !important;
  box-shadow: none !important;
  padding-left: 12px !important;
  font-weight: 700 !important;
}
.sidebar .sidebar-link.active svg { color: #fff !important; opacity: 1 !important; }
.sidebar .sidebar-link.active::before, .sidebar .sidebar-link.active::after { display: none !important; }
/* Tombol reset filter: bentuk tombol sekunder standar. */
.app-content .btn-reset-filter { flex-shrink: 0; min-height: 30px !important; padding: 0 12px !important; font-size: 12px !important; border-radius: var(--radius-ctrl); border: 1px solid var(--line); background: var(--surface); color: #334155; font-weight: 700; cursor: pointer; }
.app-content .btn-reset-filter:hover { border-color: #94a3b8; }
