/* =====================================================================
   A4B THEMES — lapisan tema (hanya mengubah tampilan, tidak ada logika)
   Cara ganti tema : tombol 🎨 di topbar (HANYA Super Admin; tersimpan di server, berlaku untuk semua)
   Cara tambah tema: salin satu blok html[data-theme="..."] di bawah, ubah
                     nilai --t-*, lalu daftarkan namanya di theme.js (THEMES).
   Cara matikan    : hapus <link> themes.css di admin_helpers.php -> kembali
                     ke tampilan asli.
   Tema "classic" = tampilan asli (tidak ada override).
   ===================================================================== */

/* ---------- 1. PALET TEMA (hanya variabel; di sinilah warna diubah) ---------- */
html[data-theme="glass-dark"]{
  color-scheme:dark;
  --t-bg:#07070b; --t-glow1:rgba(255,106,0,.42); --t-glow2:rgba(120,80,255,.24); --t-glow3:rgba(255,170,90,.18);
  --t-glass:linear-gradient(135deg,rgba(255,255,255,.15),rgba(255,255,255,.04)); --t-edge:inset 0 1px 0 rgba(255,255,255,.30),inset 0 -1px 0 rgba(255,255,255,.05);
  --t-surface:rgba(255,255,255,.07); --t-surface-2:rgba(255,255,255,.14); --t-border:rgba(255,255,255,.18);
  --t-text:#f5f5f7; --t-muted:rgba(255,255,255,.66);
  --t-accent:#ff6a00; --t-accent2:#ff9a3d; --t-accent-text:#ff9a3d; --t-on-accent:#fff;
  --t-input:rgba(255,255,255,.07); --t-th:rgba(255,255,255,.08); --t-hover:rgba(255,255,255,.07);
  --t-shadow:0 24px 60px rgba(0,0,0,.50); --t-blur:30px;
  --t-ok:#4ade80; --t-warn:#fbbf24; --t-bad:#f87171; --t-info:#7cb7ff;
  --t-hero-bg:linear-gradient(135deg,rgba(255,255,255,.13),rgba(255,255,255,.03)); --t-navy-glass:rgba(255,255,255,.04); --t-footer-bg:rgba(0,0,0,.38); --t-header-bg:rgba(12,12,16,.34);
  --t-photo:none; /* foto latar opsional: url("../bg-glass.jpg") — kaca akan terlihat menembus foto */
}
html[data-theme="glass-ocean"]{
  color-scheme:dark;
  --t-bg:#040b1c; --t-glow1:rgba(0,140,255,.44); --t-glow2:rgba(0,230,200,.20); --t-glow3:rgba(110,80,255,.24);
  --t-glass:linear-gradient(135deg,rgba(190,220,255,.15),rgba(190,220,255,.04)); --t-edge:inset 0 1px 0 rgba(200,225,255,.32),inset 0 -1px 0 rgba(200,225,255,.05);
  --t-surface:rgba(255,255,255,.07); --t-surface-2:rgba(255,255,255,.14); --t-border:rgba(170,210,255,.20);
  --t-text:#eef4ff; --t-muted:rgba(222,234,255,.68);
  --t-accent:#1f8bff; --t-accent2:#35d0ff; --t-accent-text:#5cc8ff; --t-on-accent:#fff;
  --t-input:rgba(255,255,255,.07); --t-th:rgba(140,180,255,.10); --t-hover:rgba(140,180,255,.08);
  --t-shadow:0 24px 60px rgba(0,8,30,.55); --t-blur:30px;
  --t-ok:#4ade80; --t-warn:#fbbf24; --t-bad:#f87171; --t-info:#7cb7ff;
  --t-hero-bg:linear-gradient(135deg,rgba(190,220,255,.14),rgba(190,220,255,.03)); --t-navy-glass:rgba(190,220,255,.05); --t-footer-bg:rgba(2,8,26,.45); --t-header-bg:rgba(6,16,40,.36);
  --t-photo:none; /* foto latar opsional: url("../bg-glass.jpg") — kaca akan terlihat menembus foto */
}
html[data-theme="glass-light"]{
  color-scheme:light;
  --t-bg:#dfe7f5; --t-glow1:rgba(255,122,31,.46); --t-glow2:rgba(40,110,255,.34); --t-glow3:rgba(255,80,160,.22);
  --t-glass:linear-gradient(135deg,rgba(255,255,255,.66),rgba(255,255,255,.28)); --t-edge:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(255,255,255,.35);
  --t-surface:rgba(255,255,255,.45); --t-surface-2:rgba(255,255,255,.80); --t-border:rgba(255,255,255,.88);
  --t-text:#14213d; --t-muted:#52607c;
  --t-accent:#f57a1f; --t-accent2:#ffa24d; --t-accent-text:#c2540a; --t-on-accent:#fff;
  --t-input:rgba(255,255,255,.78); --t-th:rgba(20,33,61,.06); --t-hover:rgba(255,255,255,.55);
  --t-shadow:0 20px 50px rgba(30,55,110,.16); --t-blur:26px;
  --t-ok:#087443; --t-warn:#945308; --t-bad:#b42318; --t-info:#235b9a;
  --t-hero-bg:linear-gradient(135deg,rgba(5,14,43,.80),rgba(10,44,130,.70)); --t-navy-glass:rgba(5,14,43,.72); --t-footer-bg:rgba(5,14,43,.88); --t-header-bg:rgba(255,255,255,.55);
  --t-photo:none; /* foto latar opsional: url("../bg-glass.jpg") — kaca akan terlihat menembus foto */
}

/* ---------- 2. STRUKTUR KACA (dipakai semua tema glass-*) ---------- */
html[data-theme^="glass"] body{
  color:var(--t-text); background-color:var(--t-bg);
  background-image:var(--t-photo),
    radial-gradient(900px 600px at 88% -8%,var(--t-glow1),transparent 60%),
    radial-gradient(800px 520px at -6% 108%,var(--t-glow2),transparent 60%),
    radial-gradient(700px 480px at 52% 118%,var(--t-glow3),transparent 62%);
  background-size:cover,auto,auto,auto; background-attachment:fixed;
}
html[data-theme^="glass"] .main{background:transparent}
html[data-theme^="glass"] .content{color:var(--t-text)}

/* kartu / panel */
html[data-theme^="glass"] :is(.panel,.panel-box,.stat,.stat-card,.v80-card,.v80-stat,.shortcut-card,.training-admin-card,.cms-card,.profile-card,.cash-card.small,.uniform-compact-tabs,.report-section,.subpanel,.health-list,.timeline){
  background:var(--t-glass); border:1px solid var(--t-border); color:var(--t-text);
  -webkit-backdrop-filter:blur(var(--t-blur)) saturate(180%); backdrop-filter:blur(var(--t-blur)) saturate(180%);
  box-shadow:var(--t-shadow),var(--t-edge); border-radius:22px;
}
html[data-theme^="glass"] .subpanel{box-shadow:none;background:var(--t-th)}
html[data-theme^="glass"] :is(.stat,.stat-card,.v80-stat):hover,
html[data-theme^="glass"] .shortcut-card:hover{border-color:var(--t-accent);transform:translateY(-3px)}
html[data-theme^="glass"] :is(.stat strong,.stat-card strong,.v80-stat strong,.v80-card h2,.panel h2,.page-title h1,.v80-hero h1){color:var(--t-text)}
html[data-theme^="glass"] .v80-stat>span{color:var(--t-text)}
html[data-theme^="glass"] :is(.stat small,.stat-card span,.stat-card small,.v80-stat small,.v80-muted,.v80-empty,.page-title p,.userbox span,.topbar-title span,.profile-chip-text small,.empty-cell,small){color:var(--t-muted)}
html[data-theme^="glass"] :is(.page-title>span,.v80-kicker,.website-link){color:var(--t-accent-text)}
html[data-theme^="glass"] .content :is(h1,h2,h3,h4,label,b,td){color:var(--t-text)}
html[data-theme^="glass"] .v80-hero{background:var(--t-glass);border:1px solid var(--t-border);border-left:5px solid var(--t-accent);-webkit-backdrop-filter:blur(var(--t-blur));backdrop-filter:blur(var(--t-blur));box-shadow:var(--t-shadow);border-radius:24px}
html[data-theme^="glass"] .v80-hero p,html[data-theme^="glass"] .v80-role small{color:var(--t-muted)}
html[data-theme^="glass"] .v80-track{background:var(--t-th)}
html[data-theme^="glass"] .v80-track span{background:linear-gradient(90deg,var(--t-accent),var(--t-accent2))}
html[data-theme^="glass"] .v80-stat{border-top:1px solid var(--t-border)}
html[data-theme^="glass"] :is(.stat,.stat-card,.v80-stat) strong{color:var(--t-accent-text)}
html[data-theme^="glass"] .cash-card{background:linear-gradient(135deg,var(--t-accent),var(--t-accent2));color:var(--t-on-accent);border-radius:22px;box-shadow:var(--t-shadow)}
html[data-theme^="glass"] .cash-card.small{background:var(--t-surface)}

/* tabel */
html[data-theme^="glass"] .table-wrap{background:transparent;border:1px solid var(--t-border);border-radius:18px}
html[data-theme^="glass"] th{background:var(--t-th);color:var(--t-muted)}
html[data-theme^="glass"] td{border-top:1px solid var(--t-border)}
html[data-theme^="glass"] tr:hover td{background:var(--t-hover)}

/* form */
html[data-theme^="glass"] :is(input,select,textarea){background:var(--t-input);border:1.5px solid var(--t-border);color:var(--t-text);border-radius:12px}
html[data-theme^="glass"] :is(input,textarea)::placeholder{color:var(--t-muted)}
html[data-theme^="glass"] :is(input,select,textarea):focus{border-color:var(--t-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--t-accent) 22%,transparent)}
html[data-theme^="glass"] input[readonly]{background:var(--t-th);color:var(--t-muted)}
html[data-theme^="glass"] select option{background:var(--t-bg);color:var(--t-text)}

/* tombol */
html[data-theme^="glass"] :is(.btn-primary,.btn-orange){background:linear-gradient(135deg,var(--t-accent),var(--t-accent2));color:var(--t-on-accent);box-shadow:0 10px 24px color-mix(in srgb,var(--t-accent) 35%,transparent)}
html[data-theme^="glass"] :is(.btn-light,.dialog-x,.notification-modal-head>button,.menu-btn){background:var(--t-surface-2);color:var(--t-text);border:1px solid var(--t-border)}
html[data-theme^="glass"] .btn-outline{background:transparent;color:var(--t-accent-text);border:1px solid var(--t-accent)}
html[data-theme^="glass"] :is(.btn-good,.btn-success){background:color-mix(in srgb,var(--t-ok) 18%,transparent);color:var(--t-ok)}
html[data-theme^="glass"] :is(.btn-bad,.btn-danger){background:color-mix(in srgb,var(--t-bad) 16%,transparent);color:var(--t-bad);border:1px solid color-mix(in srgb,var(--t-bad) 35%,transparent)}

/* status & alert */
html[data-theme^="glass"] :is(.status,.status-pill){background:var(--t-th);color:var(--t-muted)}
html[data-theme^="glass"] :is(.status.ok,.status-pill.open,.status-text.ok){background:color-mix(in srgb,var(--t-ok) 16%,transparent);color:var(--t-ok)}
html[data-theme^="glass"] :is(.status.warn,.status-pill.draft,.status-pill:not(.open):not(.closed):not(.completed):not(.cancelled):not(.archived):not(.draft),.status-text.warn){background:color-mix(in srgb,var(--t-warn) 16%,transparent);color:var(--t-warn)}
html[data-theme^="glass"] :is(.status.bad,.status.danger,.status-pill.cancelled){background:color-mix(in srgb,var(--t-bad) 16%,transparent);color:var(--t-bad)}
html[data-theme^="glass"] .alert{border:1px solid var(--t-border)}
html[data-theme^="glass"] .alert.success{background:color-mix(in srgb,var(--t-ok) 14%,transparent);color:var(--t-ok)}
html[data-theme^="glass"] .alert.warn{background:color-mix(in srgb,var(--t-warn) 14%,transparent);color:var(--t-warn)}
html[data-theme^="glass"] .alert.danger{background:color-mix(in srgb,var(--t-bad) 14%,transparent);color:var(--t-bad)}
html[data-theme^="glass"] .alert.info{background:color-mix(in srgb,var(--t-info) 14%,transparent);color:var(--t-info)}
html[data-theme^="glass"] .stat.good,html[data-theme^="glass"] .stat-card.good{background:color-mix(in srgb,var(--t-ok) 10%,var(--t-surface))}
html[data-theme^="glass"] .stat.warn,html[data-theme^="glass"] .stat-card.warn{background:color-mix(in srgb,var(--t-warn) 10%,var(--t-surface))}

/* tab & periode */
html[data-theme^="glass"] .workspace-tabs a,html[data-theme^="glass"] .uniform-compact-tabs a{background:var(--t-surface);border:1px solid var(--t-border);color:var(--t-muted)}
html[data-theme^="glass"] :is(.workspace-tabs a.active,.uniform-compact-tabs a.active,.v80-period a.active){background:linear-gradient(135deg,var(--t-accent),var(--t-accent2));color:var(--t-on-accent);border-color:transparent}
html[data-theme^="glass"] .uniform-compact-tabs{border-radius:16px}
html[data-theme^="glass"] .uniform-compact-tabs .uniform-compact-title{color:var(--t-accent-text)}
html[data-theme^="glass"] .v80-period{background:var(--t-surface)}
html[data-theme^="glass"] .v80-period a{color:var(--t-muted)}

/* modal & notifikasi */
html[data-theme^="glass"] :is(.modal,.notification-modal,.notification-modal-head,.notification-modal-foot){background:var(--t-bg);color:var(--t-text);border-color:var(--t-border)}
html[data-theme^="glass"] .modal,html[data-theme^="glass"] .notification-modal{background:color-mix(in srgb,var(--t-bg) 82%,transparent);-webkit-backdrop-filter:blur(var(--t-blur));backdrop-filter:blur(var(--t-blur));border:1px solid var(--t-border);border-radius:24px}
html[data-theme^="glass"] .notification-row{border-bottom-color:var(--t-border)}
html[data-theme^="glass"] .notification-row.unread{background:var(--t-hover)}

/* topbar */
html[data-theme^="glass"] .topbar{box-shadow:var(--t-shadow),var(--t-edge);background:var(--t-glass);border:1px solid var(--t-border);color:var(--t-text);-webkit-backdrop-filter:blur(var(--t-blur)) saturate(180%);backdrop-filter:blur(var(--t-blur)) saturate(180%)}
html[data-theme^="glass"] .topbar-title b{color:var(--t-text)}
html[data-theme^="glass"] :is(.notification-button,.profile-chip){background:var(--t-surface-2);border:1px solid var(--t-border);color:var(--t-text)}
html[data-theme^="glass"] .profile-chip>.profile-chip-text b{color:var(--t-text)}
html[data-theme^="glass"] .profile-chip .avatar{background:linear-gradient(135deg,var(--t-accent),var(--t-accent2))}

/* sidebar */
html[data-theme^="glass"] .sidebar{background:var(--t-glass);border:1px solid var(--t-border);color:var(--t-text);-webkit-backdrop-filter:blur(var(--t-blur)) saturate(180%);backdrop-filter:blur(var(--t-blur)) saturate(180%);box-shadow:var(--t-shadow),var(--t-edge)}
html[data-theme^="glass"] .brand{border-bottom-color:var(--t-border)}
html[data-theme^="glass"] .brand b{color:var(--t-text)}
html[data-theme^="glass"] .brand small,html[data-theme^="glass"] .nav-label{color:var(--t-accent-text)}
html[data-theme^="glass"] .sidebar nav a{color:var(--t-muted)}
html[data-theme^="glass"] .sidebar nav a:hover{background:var(--t-hover);color:var(--t-text)}
html[data-theme^="glass"] .sidebar nav a.active{background:linear-gradient(135deg,var(--t-accent),var(--t-accent2));color:var(--t-on-accent);box-shadow:0 10px 24px color-mix(in srgb,var(--t-accent) 40%,transparent)}
html[data-theme^="glass"] .nav-icon{background:var(--t-th);color:var(--t-accent-text)}
html[data-theme^="glass"] .sidebar nav a.active .nav-icon{background:rgba(255,255,255,.22);color:var(--t-on-accent)}
html[data-theme^="glass"] .sidebar-foot{border-top-color:var(--t-border)}
html[data-theme^="glass"] .sidebar-foot>a:first-child{color:var(--t-muted)}
html[data-theme^="glass"] .logout{background:var(--t-surface-2);color:var(--t-text);border:1px solid var(--t-border)}

/* sidebar melayang di desktop (di layar kecil tetap laci bawaan) */
@media (min-width:1051px){
  html[data-theme^="glass"] .admin-shell{grid-template-columns:284px minmax(0,1fr);gap:0}
  html[data-theme^="glass"] .sidebar{position:sticky;top:14px;height:calc(100vh - 28px);margin:14px 0 14px 14px;border-radius:28px}
  html[data-theme^="glass"] .topbar{top:14px;margin:14px 14px 0;border-radius:22px;height:68px}
}
@media (max-width:1050px){
  html[data-theme^="glass"] .sidebar{background:var(--t-bg)}
}

/* ---------- 3. TOMBOL PEMILIH TEMA (tampil di semua tema) ---------- */
.a4b-theme{position:relative}
.a4b-theme-btn{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line,#e1e7f0);background:#fff;border-radius:13px;cursor:pointer;font-size:17px}
html[data-theme^="glass"] .a4b-theme-btn{background:var(--t-surface-2);border-color:var(--t-border)}
.a4b-theme-pop{position:absolute;right:0;top:calc(100% + 10px);width:236px;padding:10px;border-radius:18px;z-index:600;display:none;background:#fff;border:1px solid #e1e7f0;box-shadow:0 22px 60px rgba(8,20,50,.22);color:#14213d}
.a4b-theme.open .a4b-theme-pop{display:block}
html[data-theme^="glass"] .a4b-theme-pop{background:color-mix(in srgb,var(--t-bg) 88%,transparent);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);border-color:var(--t-border);color:var(--t-text)}
.a4b-theme-pop h4{margin:4px 6px 8px;font-size:10px;letter-spacing:.14em;text-transform:uppercase;opacity:.65}
.a4b-theme-opt{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;margin:2px 0;border:1px solid transparent;border-radius:12px;background:transparent;color:inherit;font:inherit;font-weight:700;cursor:pointer;text-align:left}
.a4b-theme-opt:hover{background:rgba(127,127,127,.12)}
.a4b-theme-opt[aria-pressed="true"]{border-color:#f57a1f;background:rgba(245,122,31,.12)}
html[data-theme^="glass"] .a4b-theme-opt[aria-pressed="true"]{border-color:var(--t-accent);background:color-mix(in srgb,var(--t-accent) 14%,transparent)}
.a4b-theme-sw{width:30px;height:30px;border-radius:9px;flex:none;border:1px solid rgba(127,127,127,.35)}
@media (max-width:700px){.a4b-theme-pop{position:fixed;right:12px;left:12px;top:78px;width:auto}}
.a4b-theme-note{margin:8px 8px 2px;font-size:11px;line-height:1.4;opacity:.7}

/* =====================================================================
   V3 KONTRAS — sinkronisasi warna teks dengan surface Admin
   Mencegah teks terang berada di komponen lama yang masih berlatar putih.
   ===================================================================== */
html[data-theme^="glass"]{
  --t-card-bg:color-mix(in srgb,var(--t-bg) 66%,rgba(255,255,255,.10));
  --t-card-bg-strong:color-mix(in srgb,var(--t-bg) 78%,rgba(255,255,255,.08));
  --t-card-bg-soft:color-mix(in srgb,var(--t-bg) 58%,rgba(255,255,255,.13));
}
html[data-theme="glass-light"]{
  --t-card-bg:rgba(255,255,255,.62);
  --t-card-bg-strong:rgba(255,255,255,.78);
  --t-card-bg-soft:rgba(255,255,255,.48);
}

/* Surface lama Admin yang hard-coded putih/abu sekarang ikut tema. */
html[data-theme^="glass"] :is(
  .workspace-head,.training-edit-panel,.master-list-row,.report-sheet,
  .fund-card,.fund-item-wrap,.fund-builder-row,.fund-realization>div,
  .account-kpis>div,.account-edit-card,.account-reset-card,.role-permission-card,
  .check-grid span,.referrer-box,.remaining-box,.schedule-strip,
  .order-card,.order-meta>div,.need-details,.need-details summary,.need-box,.need-box h4,
  .uniform-shortcuts a,.uniform-need-kpis>div,.uniform-need-row,.uniform-need-detail
){
  background:var(--t-card-bg)!important;
  border-color:var(--t-border)!important;
  color:var(--t-text)!important;
}
html[data-theme^="glass"] :is(.uniform-need-row,.order-card,.fund-card,.role-permission-card,.account-edit-card,.account-reset-card){
  box-shadow:var(--t-edge);
}
html[data-theme^="glass"] :is(.uniform-need-row[open],.need-details[open]){
  border-color:color-mix(in srgb,var(--t-accent) 48%,var(--t-border))!important;
  box-shadow:0 12px 30px color-mix(in srgb,var(--t-bg) 55%,transparent),var(--t-edge);
}
html[data-theme^="glass"] :is(.uniform-need-row>summary:hover,.need-details summary:hover,.master-list-row:hover){
  background:var(--t-hover)!important;
}

/* Rekap Perlengkapan V8 — bagian yang terlihat pada screenshot. */
html[data-theme^="glass"] .uniform-need-kpis>div{background:var(--t-card-bg-strong)!important}
html[data-theme^="glass"] .uniform-need-kpis small{color:var(--t-muted)!important}
html[data-theme^="glass"] .uniform-need-kpis b{color:var(--t-text)!important}
html[data-theme^="glass"] .uniform-need-kpis .bad{
  background:color-mix(in srgb,var(--t-bad) 12%,var(--t-card-bg-strong))!important;
  border-color:color-mix(in srgb,var(--t-bad) 40%,var(--t-border))!important;
}
html[data-theme^="glass"] .uniform-need-kpis .bad b{color:var(--t-bad)!important}
html[data-theme^="glass"] .uniform-need-row>summary{color:var(--t-text)!important}
html[data-theme^="glass"] .uniform-need-name b,
html[data-theme^="glass"] .uniform-need-row>summary>div>strong{color:var(--t-text)!important}
html[data-theme^="glass"] .uniform-need-name small,
html[data-theme^="glass"] .uniform-need-row>summary>div>small{color:var(--t-muted)!important}
html[data-theme^="glass"] .uniform-chevron{color:var(--t-accent-text)!important}
html[data-theme^="glass"] .uniform-need-detail{
  background:var(--t-card-bg-soft)!important;
  border-top-color:var(--t-border)!important;
}
html[data-theme^="glass"] .uniform-plan-badge{
  background:color-mix(in srgb,var(--t-info) 13%,transparent)!important;
  color:var(--t-info)!important;
  border-color:color-mix(in srgb,var(--t-info) 32%,var(--t-border))!important;
}
html[data-theme^="glass"] .uniform-size-preview span{
  background:color-mix(in srgb,var(--t-info) 12%,transparent)!important;
  color:var(--t-info)!important;
  border-color:color-mix(in srgb,var(--t-info) 30%,var(--t-border))!important;
}

/* Pesanan / kebutuhan per peserta. */
html[data-theme^="glass"] .order-person :is(b,strong),
html[data-theme^="glass"] .order-meta b,
html[data-theme^="glass"] .need-box h4{color:var(--t-text)!important}
html[data-theme^="glass"] :is(.order-meta small,.need-row .size,.order-payment-detail,.order-return-auto,.order-empty){color:var(--t-muted)!important}
html[data-theme^="glass"] .need-row{border-top-color:var(--t-border)!important;color:var(--t-text)!important}
html[data-theme^="glass"] .stock-check.ok{background:color-mix(in srgb,var(--t-ok) 13%,transparent)!important;color:var(--t-ok)!important}
html[data-theme^="glass"] .stock-check.bad{background:color-mix(in srgb,var(--t-bad) 13%,transparent)!important;color:var(--t-bad)!important}
html[data-theme^="glass"] .stock-check.info{background:color-mix(in srgb,var(--t-info) 13%,transparent)!important;color:var(--t-info)!important}

/* Warna teks umum yang pada CSS lama memakai warna navy/abu statis. */
html[data-theme^="glass"] .content :is(.note,.muted,.help,.hint,.description,.subtitle){color:var(--t-muted)!important}
html[data-theme^="glass"] :is(.account-kpis span,.health-list span,.backup-notes span,.role-permission-head span){color:var(--t-muted)!important}
html[data-theme^="glass"] :is(.account-kpis b,.role-permission-head b,.health-list b){color:var(--t-text)!important}
html[data-theme^="glass"] .permission-chips>span{
  background:color-mix(in srgb,var(--t-info) 12%,transparent)!important;
  border-color:color-mix(in srgb,var(--t-info) 28%,var(--t-border))!important;
  color:var(--t-info)!important;
}

/* Jaga elemen yang memang harus putih (logo/QR/gambar dokumen) tanpa mengubah teks halaman. */
html[data-theme^="glass"] :is(.brand img,.qris-thumb,.qris-preview){background:#fff!important}

/* Print tetap hitam di atas putih. */
@media print{
  html[data-theme^="glass"] body{background:#fff!important;color:#111827!important}
  html[data-theme^="glass"] :is(.panel,.panel-box,.stat,.stat-card,.v80-card,.v80-stat,.uniform-need-kpis>div,.uniform-need-row,.uniform-need-detail,.table-wrap){background:#fff!important;color:#111827!important;box-shadow:none!important}
  html[data-theme^="glass"] :is(h1,h2,h3,h4,p,span,b,strong,small,td,th,label){color:#111827!important}
}


/* =====================================================================
   V4 KONTRAS LENGKAP — audit surface Admin lama
   Memperbaiki modal/tab/panel yang masih membawa putih + teks tema terang.
   ===================================================================== */

/* Workspace tabs */
html[data-theme^="glass"] .workspace-tabs a{
  background:var(--t-card-bg)!important;
  color:var(--t-text)!important;
  border-color:var(--t-border)!important;
}
html[data-theme^="glass"] .workspace-tabs a:hover{
  background:var(--t-hover)!important;
  border-color:var(--t-accent)!important;
}
html[data-theme^="glass"] .workspace-tabs a.active{
  background:linear-gradient(135deg,var(--t-accent),var(--t-accent2))!important;
  color:var(--t-on-accent)!important;
  border-color:var(--t-accent)!important;
}

/* Modal umum, dialog, notifikasi. */
html[data-theme^="glass"] :is(.modal,.gbj-dialog,.notification-modal,.notification-modal-head,.notification-modal-foot){
  background:var(--t-card-bg-strong)!important;
  border-color:var(--t-border)!important;
  color:var(--t-text)!important;
}
html[data-theme^="glass"] :is(.modal-head h3,.notification-modal-head h2,.gbj-dialog h2,.gbj-dialog h3){color:var(--t-text)!important}
html[data-theme^="glass"] :is(.notification-row,.notification-row b,.notification-row strong){color:var(--t-text)!important}
html[data-theme^="glass"] .notification-row small{color:var(--t-muted)!important}
html[data-theme^="glass"] :is(.icon-btn,.dialog-x,.notification-modal-head>button){
  background:var(--t-surface-2)!important;
  color:var(--t-text)!important;
  border-color:var(--t-border)!important;
}

/* Info grid / report summary / search. */
html[data-theme^="glass"] :is(.training-info-grid span,.report-summary-grid>div){
  background:var(--t-card-bg-soft)!important;
  border-color:var(--t-border)!important;
  color:var(--t-muted)!important;
}
html[data-theme^="glass"] :is(.training-info-grid b,.report-summary-grid b){color:var(--t-text)!important}
html[data-theme^="glass"] .search-large{
  background:var(--t-input)!important;
  color:var(--t-text)!important;
  border-color:var(--t-border)!important;
}

/* Fund request: header tabel/form lama memiliki teks gelap statis. */
html[data-theme^="glass"] :is(
  .fund-subhead,.fund-items-table th,
  .fund-approval-form,.fund-receipt-form,.fund-builder-total
){
  background:var(--t-card-bg-soft)!important;
  border-color:var(--t-border)!important;
  color:var(--t-text)!important;
}
html[data-theme^="glass"] :is(.fund-approval-form label,.fund-receipt-form label,.fund-action-title){
  color:var(--t-text)!important;
}
html[data-theme^="glass"] .fund-subhead span{color:var(--t-muted)!important}
html[data-theme^="glass"] .fund-builder-total b{color:var(--t-accent-text)!important}
html[data-theme^="glass"] .fund-item-receipt-field input[type=file]{
  background:var(--t-input)!important;
  color:var(--t-text)!important;
  border-color:var(--t-border)!important;
}

/* CMS dan panel akun. */
html[data-theme^="glass"] .cms-card>strong{color:var(--t-accent-text)!important}
html[data-theme^="glass"] :is(.account-edit-card,.account-reset-card) :is(h3,h4,b,strong,label){color:var(--t-text)!important}

/* Status netral/selesai tidak memakai abu terang lama. */
html[data-theme^="glass"] :is(.status-pill.closed,.status-pill.completed,.status-pill.archived){
  background:var(--t-surface-2)!important;
  color:var(--t-muted)!important;
}

/* Detail/report section yang tidak memiliki background sendiri tetap terbaca. */
html[data-theme^="glass"] :is(.report-grid section,.fund-builder,.receipt-row){
  border-color:var(--t-border)!important;
  color:var(--t-text)!important;
}


/* =====================================================================
   V5 / A4B V8.0.13 — CONTRAST AUDIT V2
   Komponen dengan background sendiri wajib mendefinisikan color sendiri.
   ===================================================================== */
html[data-theme="glass-dark"]{
  --t-code-bg:rgba(1,3,8,.88);
  --t-code-text:#f8fafc;
  --t-code-border:rgba(255,255,255,.26);
}
html[data-theme="glass-ocean"]{
  --t-code-bg:rgba(1,8,24,.88);
  --t-code-text:#f4f8ff;
  --t-code-border:rgba(190,220,255,.30);
}
html[data-theme="glass-light"]{
  --t-code-bg:rgba(255,255,255,.90);
  --t-code-text:#102b56;
  --t-code-border:rgba(20,33,61,.22);
}

/* Temuan #1, #2, #7 — code tidak boleh mewarisi warna alert/status. */
html[data-theme^="glass"] :is(td,th,.alert,.note,.panel,.modal,.card) :is(code,kbd,samp,mark,pre){
  background:var(--t-code-bg)!important;
  color:var(--t-code-text)!important;
  border:1px solid var(--t-code-border)!important;
  box-shadow:none!important;
  text-shadow:none!important;
}
html[data-theme^="glass"] :is(td,th,.alert,.note,.panel,.modal,.card) :is(code,kbd,samp,mark){
  display:inline-block;
  padding:.18em .48em;
  border-radius:.42em;
  line-height:1.35;
  font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
  font-weight:750;
}
html[data-theme^="glass"] :is(td,th,.alert,.note,.panel,.modal,.card) pre{
  display:block;
  padding:12px 14px;
  border-radius:12px;
  overflow:auto;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

/* Temuan #6 — empty state Admin Peserta. */
html[data-theme^="glass"] .filter-empty{
  background:var(--t-card-bg-soft)!important;
  color:var(--t-muted)!important;
  border-color:var(--t-border)!important;
  box-shadow:none!important;
}
html[data-theme^="glass"] .filter-empty :is(b,strong,h2,h3,h4){
  color:var(--t-text)!important;
}
html[data-theme^="glass"] .filter-empty :is(p,small,span){
  color:var(--t-muted)!important;
}

/* Pola serupa yang ditemukan di luar 7 screenshot. */
html[data-theme^="glass"] :is(.report-mode-hint,.prereg-rule){
  background:var(--t-card-bg-soft)!important;
  color:var(--t-text)!important;
  border-color:var(--t-border)!important;
}
html[data-theme^="glass"] :is(.report-mode-hint,.prereg-rule) :is(b,strong){
  color:var(--t-accent-text)!important;
}


/* =====================================================================
   A4B V8.0.14 — PREREG FLASH + FINANCE TOTAL CONTRAST
   ===================================================================== */
html[data-theme="glass-dark"]{
  --t-success-bg:rgba(9,74,43,.72);
  --t-success-text:#e8fff1;
  --t-success-border:rgba(74,222,128,.52);
  --t-total-bg:rgba(255,255,255,.10);
  --t-total-text:#f5f5f7;
  --t-total-strong:#ffb56a;
}
html[data-theme="glass-ocean"]{
  --t-success-bg:rgba(7,76,66,.72);
  --t-success-text:#ecfff8;
  --t-success-border:rgba(74,222,128,.48);
  --t-total-bg:rgba(190,220,255,.11);
  --t-total-text:#eef4ff;
  --t-total-strong:#8edcff;
}
html[data-theme="glass-light"]{
  --t-success-bg:#e8f8ef;
  --t-success-text:#087443;
  --t-success-border:#afe1c5;
  --t-total-bg:#edf3ff;
  --t-total-text:#14213d;
  --t-total-strong:#0638b8;
}

html[data-theme^="glass"] .alert.success{
  background:var(--t-success-bg)!important;
  color:var(--t-success-text)!important;
  border-color:var(--t-success-border)!important;
  box-shadow:none!important;
}
html[data-theme^="glass"] .alert.success :is(b,strong,p,span,a,small){
  color:var(--t-success-text)!important;
}

html[data-theme^="glass"] .money-total{
  background:var(--t-total-bg)!important;
  color:var(--t-total-text)!important;
  border:1px solid var(--t-border)!important;
  box-shadow:none!important;
}
html[data-theme^="glass"] .money-total :is(span,label){
  color:var(--t-total-text)!important;
}
html[data-theme^="glass"] .money-total :is(b,strong){
  color:var(--t-total-strong)!important;
}

/* A4B 2026-10-12 — kontras laporan keuangan pada tema gelap.
   Dibatasi ke tab keuangan workspace; mode cetak tetap putih. */
@media screen {
  html[data-theme="glass-dark"] .a4b-finance-theme .money-total,
  html[data-theme="glass-ocean"] .a4b-finance-theme .money-total {
    background:rgba(18,43,83,.95)!important;
    border:1px solid rgba(153,191,248,.37)!important;
    color:#f0f7ff!important;
    box-shadow:none!important;
  }
  html[data-theme="glass-dark"] .a4b-finance-theme .money-total :is(span,b,strong),
  html[data-theme="glass-ocean"] .a4b-finance-theme .money-total :is(span,b,strong) {
    color:#f0f7ff!important;
  }
  html[data-theme="glass-dark"] .a4b-finance-theme :is(input,select,textarea),
  html[data-theme="glass-ocean"] .a4b-finance-theme :is(input,select,textarea) {
    background:#14294b!important;
    color:#f0f7ff!important;
    border-color:rgba(153,191,248,.4)!important;
  }
  html[data-theme="glass-dark"] .a4b-finance-theme :is(input,textarea)::placeholder,
  html[data-theme="glass-ocean"] .a4b-finance-theme :is(input,textarea)::placeholder {
    color:#b9c9e5!important;
  }
}

/* =====================================================================
   A4B SKY THEMES — integrasi tema-langit.css ke Admin.
   Prefix glass-* membuat seluruh komponen, audit kontras, tabel, modal,
   sidebar, topbar dan form memakai sistem tema yang sama dengan tema lama.
   ===================================================================== */
html[data-theme="glass-awan"]{
  color-scheme:light;
  --t-bg:#7ec0f2; --t-glow1:rgba(255,138,43,.28); --t-glow2:rgba(255,255,255,.36); --t-glow3:rgba(207,233,251,.40);
  --t-glass:linear-gradient(135deg,rgba(255,255,255,.72),rgba(255,255,255,.46)); --t-edge:inset 0 1px 0 rgba(255,255,255,.96),inset 0 -1px 0 rgba(255,255,255,.42);
  --t-surface:rgba(255,255,255,.62); --t-surface-2:rgba(255,255,255,.86); --t-border:rgba(255,255,255,.85);
  --t-text:#0f2a4a; --t-muted:#46627f;
  --t-accent:#ff8a2b; --t-accent2:#ffb766; --t-accent-text:#b84f00; --t-on-accent:#fff;
  --t-input:rgba(255,255,255,.88); --t-th:rgba(15,42,74,.07); --t-hover:rgba(255,255,255,.48);
  --t-shadow:0 10px 34px rgba(30,90,160,.18); --t-blur:18px;
  --t-ok:#087443; --t-warn:#8a5200; --t-bad:#b42318; --t-info:#235b9a;
  --t-card-bg:rgba(255,255,255,.68); --t-card-bg-strong:rgba(255,255,255,.86); --t-card-bg-soft:rgba(255,255,255,.55);
  --t-code-bg:rgba(255,255,255,.92); --t-code-text:#0f2a4a; --t-code-border:rgba(15,42,74,.20);
  --t-success-bg:#e7f8ee; --t-success-text:#087443; --t-success-border:#afe1c5;
  --t-total-bg:rgba(255,255,255,.76); --t-total-text:#0f2a4a; --t-total-strong:#a84500;
  --t-photo:none;
}
html[data-theme="glass-bumi"]{
  color-scheme:dark;
  --t-bg:#050c26; --t-glow1:rgba(47,134,224,.42); --t-glow2:rgba(79,209,197,.20); --t-glow3:rgba(143,216,255,.18);
  --t-glass:linear-gradient(135deg,rgba(8,24,58,.68),rgba(8,24,58,.42)); --t-edge:inset 0 1px 0 rgba(143,216,255,.22),inset 0 -1px 0 rgba(143,216,255,.06);
  --t-surface:rgba(8,24,58,.58); --t-surface-2:rgba(8,24,58,.82); --t-border:rgba(143,216,255,.22);
  --t-text:#e8f3ff; --t-muted:#9db8d8;
  --t-accent:#4fd1c5; --t-accent2:#79e5dd; --t-accent-text:#72e0d6; --t-on-accent:#04202a;
  --t-input:rgba(8,24,58,.82); --t-th:rgba(143,216,255,.09); --t-hover:rgba(143,216,255,.08);
  --t-shadow:0 12px 36px rgba(0,10,40,.55); --t-blur:20px;
  --t-ok:#4ade80; --t-warn:#fbbf24; --t-bad:#f87171; --t-info:#8fd8ff;
  --t-code-bg:rgba(2,8,24,.90); --t-code-text:#e8f3ff; --t-code-border:rgba(143,216,255,.26);
  --t-success-bg:rgba(7,76,66,.72); --t-success-text:#ecfff8; --t-success-border:rgba(74,222,128,.48);
  --t-total-bg:rgba(143,216,255,.10); --t-total-text:#e8f3ff; --t-total-strong:#72e0d6;
  --t-photo:none;
}
html[data-theme="glass-angkasa"]{
  color-scheme:dark;
  --t-bg:#04050d; --t-glow1:rgba(110,60,200,.34); --t-glow2:rgba(0,170,200,.20); --t-glow3:rgba(200,50,140,.22);
  --t-glass:linear-gradient(135deg,rgba(16,12,38,.68),rgba(16,12,38,.40)); --t-edge:inset 0 1px 0 rgba(190,170,255,.22),inset 0 -1px 0 rgba(190,170,255,.05);
  --t-surface:rgba(16,12,38,.56); --t-surface-2:rgba(16,12,38,.84); --t-border:rgba(190,170,255,.22);
  --t-text:#f1edff; --t-muted:#b2a9d6;
  --t-accent:#ffc857; --t-accent2:#ffe08a; --t-accent-text:#ffd775; --t-on-accent:#231a02;
  --t-input:rgba(16,12,38,.84); --t-th:rgba(190,170,255,.09); --t-hover:rgba(190,170,255,.08);
  --t-shadow:0 12px 36px rgba(0,0,0,.60); --t-blur:20px;
  --t-ok:#72e6a1; --t-warn:#ffc857; --t-bad:#ff8d9b; --t-info:#b9a7ff;
  --t-code-bg:rgba(4,5,13,.92); --t-code-text:#f1edff; --t-code-border:rgba(190,170,255,.25);
  --t-success-bg:rgba(14,77,54,.72); --t-success-text:#effff5; --t-success-border:rgba(114,230,161,.45);
  --t-total-bg:rgba(190,170,255,.10); --t-total-text:#f1edff; --t-total-strong:#ffd775;
  --t-photo:none;
}

html[data-theme="glass-awan"]{
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='500' viewBox='0 0 1600 500'%3E%3Cdefs%3E%3Cfilter id='b' x='-20%25' y='-50%25' width='140%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='16'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='white' filter='url(%23b)'%3E%3Cellipse cx='260' cy='120' rx='170' ry='38' opacity='.9'/%3E%3Cellipse cx='350' cy='95' rx='110' ry='42' opacity='.9'/%3E%3Cellipse cx='880' cy='300' rx='220' ry='46' opacity='.8'/%3E%3Cellipse cx='980' cy='268' rx='120' ry='46' opacity='.85'/%3E%3Cellipse cx='1360' cy='140' rx='180' ry='36' opacity='.75'/%3E%3Cellipse cx='1420' cy='118' rx='100' ry='38' opacity='.8'/%3E%3Cellipse cx='520' cy='430' rx='200' ry='34' opacity='.7'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='375' viewBox='0 0 1600 500'%3E%3Cg fill='white' opacity='.55'%3E%3Cellipse cx='250' cy='130' rx='160' ry='30'/%3E%3Cellipse cx='780' cy='280' rx='210' ry='38'/%3E%3Cellipse cx='1320' cy='110' rx='170' ry='30'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg,#3f8fe0 0%,#7ec0f2 38%,#cfe9fb 72%,#fff1de 100%);
  background-repeat:repeat-x,repeat-x,no-repeat;
  background-size:1600px 500px,1200px 375px,100% 100%;
  background-position:0 6%,0 64%,center;
  background-attachment:fixed,fixed,fixed;
  animation:a4b-awan-geser 220s linear infinite;
}
html[data-theme="glass-bumi"]{
  background-image:
    radial-gradient(ellipse 380px 70px at 62% calc(100% - 70px),rgba(120,170,90,.70),transparent 72%),
    radial-gradient(ellipse 300px 60px at 32% calc(100% - 95px),rgba(72,160,96,.80),transparent 72%),
    radial-gradient(ellipse 260px 26px at 48% calc(100% - 150px),rgba(255,255,255,.55),transparent 75%),
    radial-gradient(ellipse 200px 20px at 70% calc(100% - 120px),rgba(255,255,255,.45),transparent 75%),
    radial-gradient(circle at 50% calc(100% + 1180px),#2f86e0 0,#1456a8 700px,#0a2f6b 1380px,#0a2f6b 1496px,#8fd8ff 1500px,rgba(80,160,255,.35) 1520px,transparent 1580px),
    radial-gradient(1px 1px at 12% 18%,#fff,transparent),radial-gradient(1px 1px at 46% 62%,#fff,transparent),
    radial-gradient(1.5px 1.5px at 78% 30%,#fff,transparent),radial-gradient(1px 1px at 90% 80%,#cfe6ff,transparent),
    radial-gradient(1px 1px at 28% 88%,#fff,transparent),linear-gradient(180deg,#02030a 0%,#050c26 55%,#0a1d4a 100%);
  background-size:100% 100%,100% 100%,100% 100%,100% 100%,100% 100%,380px 380px,380px 380px,380px 380px,380px 380px,380px 380px,100% 100%;
  background-attachment:fixed;
  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat,no-repeat,repeat,repeat,repeat,repeat,repeat,no-repeat;
}
html[data-theme="glass-angkasa"]{
  background-image:
    radial-gradient(60% 50% at 15% 10%,rgba(110,60,200,.45),transparent 70%),
    radial-gradient(50% 45% at 85% 25%,rgba(0,170,200,.28),transparent 70%),
    radial-gradient(70% 50% at 55% 100%,rgba(200,50,140,.28),transparent 70%),
    radial-gradient(1.5px 1.5px at 20% 30%,#fff,transparent),radial-gradient(1px 1px at 60% 12%,#fff,transparent),
    radial-gradient(1px 1px at 82% 70%,#ffe9b8,transparent),radial-gradient(1px 1px at 38% 84%,#fff,transparent),
    radial-gradient(1px 1px at 10% 64%,#d9ccff,transparent),radial-gradient(2px 2px at 70% 44%,#fff,transparent),#04050d;
  background-size:100% 100%,100% 100%,100% 100%,320px 320px,320px 320px,320px 320px,320px 320px,320px 320px,540px 540px,100% 100%;
  background-repeat:no-repeat,no-repeat,no-repeat,repeat,repeat,repeat,repeat,repeat,repeat,no-repeat;
  background-attachment:fixed;
}
html[data-theme="glass-awan"] body,
html[data-theme="glass-bumi"] body,
html[data-theme="glass-angkasa"] body{background:transparent!important}

@keyframes a4b-awan-geser{to{background-position:1600px 6%,-1200px 64%,center}}
@media (prefers-reduced-motion:reduce){html[data-theme="glass-awan"]{animation:none!important}}
@media (max-width:640px){html[data-theme="glass-bumi"]{background-attachment:scroll}}

/* Login Admin ikut tema global yang sama. */
html[data-theme^="glass"] body.login-page{color:var(--t-text);background:transparent!important}
html[data-theme^="glass"] body.login-page .visual{
  background:var(--t-glass);color:var(--t-text);border-right:1px solid var(--t-border);
  -webkit-backdrop-filter:blur(var(--t-blur)) saturate(160%);backdrop-filter:blur(var(--t-blur)) saturate(160%);
}
html[data-theme^="glass"] body.login-page .visual:before{opacity:.38}
html[data-theme^="glass"] body.login-page .brand b,
html[data-theme^="glass"] body.login-page .hero h1{color:var(--t-text)}
html[data-theme^="glass"] body.login-page .brand span,
html[data-theme^="glass"] body.login-page .eyebrow{color:var(--t-accent-text)}
html[data-theme^="glass"] body.login-page .hero p,
html[data-theme^="glass"] body.login-page .visual>small,
html[data-theme^="glass"] body.login-page .card p,
html[data-theme^="glass"] body.login-page .foot{color:var(--t-muted)}
html[data-theme^="glass"] body.login-page .pill{background:var(--t-surface);border-color:var(--t-border);color:var(--t-text)}
html[data-theme^="glass"] body.login-page .login-side{background:transparent}
html[data-theme^="glass"] body.login-page .card{
  background:var(--t-card-bg-strong);border-color:var(--t-border);color:var(--t-text);box-shadow:var(--t-shadow),var(--t-edge);
  -webkit-backdrop-filter:blur(var(--t-blur)) saturate(160%);backdrop-filter:blur(var(--t-blur)) saturate(160%);
}
html[data-theme^="glass"] body.login-page .card h2,
html[data-theme^="glass"] body.login-page label{color:var(--t-text)}
html[data-theme^="glass"] body.login-page input{background:var(--t-input);border-color:var(--t-border);color:var(--t-text)}
html[data-theme^="glass"] body.login-page input:focus{border-color:var(--t-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--t-accent) 22%,transparent)}
html[data-theme^="glass"] body.login-page form>button{background:linear-gradient(135deg,var(--t-accent),var(--t-accent2));color:var(--t-on-accent)}
html[data-theme^="glass"] body.login-page .secret-wrap .eye{color:var(--t-accent-text)}
html[data-theme^="glass"] body.login-page .foot{border-top-color:var(--t-border)}
html[data-theme^="glass"] body.login-page .foot a{color:var(--t-accent-text)}

/* =====================================================================
   A4B BLUE — tema "blue-light" & "blue-dark" (hanya tampilan, tanpa logika)
   Aktif bila <html data-theme="blue-light"> atau "blue-dark".
   Ubah warna cukup di dua blok palet di bawah (--b-*).
   Hapus blok ini sampai akhir file untuk kembali ke keadaan sebelumnya.
   ===================================================================== */
html[data-theme="blue-light"]{color-scheme:light;
 --b-bg:#f2f6fd;--b-surface:#fff;--b-surface2:#f6f9ff;--b-text:#0e1f45;--b-muted:#51628a;--b-line:#dde7f6;
 --b-primary:#1b5fe0;--b-primary2:#3b82f6;--b-soft:#e6efff;--b-soft-text:#123c9c;--b-input:#fff;--b-th:#eef4ff;--b-hover:#f0f6ff;
 --b-side1:#0a1a44;--b-side2:#0d2766;--b-top:rgba(255,255,255,.88);--b-shadow:0 10px 30px rgba(15,45,110,.08);--b-modal-bg:rgba(8,20,52,.55);
 --b-ok:#0f8b55;--b-warn:#b56a09;--b-bad:#c0261c;--b-info:#1b5fe0}
html[data-theme="blue-dark"]{color-scheme:dark;
 --b-bg:#071230;--b-surface:#0f1f45;--b-surface2:#132753;--b-text:#e9f0ff;--b-muted:#a3b5da;--b-line:#233a70;
 --b-primary:#3b82f6;--b-primary2:#60a5fa;--b-soft:#172e5e;--b-soft-text:#bcd3ff;--b-input:#0b1938;--b-th:#162c5a;--b-hover:#152a57;
 --b-side1:#050e26;--b-side2:#0a1b45;--b-top:rgba(9,21,52,.88);--b-shadow:0 12px 32px rgba(0,0,0,.4);--b-modal-bg:rgba(2,8,24,.72);
 --b-ok:#4ade80;--b-warn:#fbbf24;--b-bad:#f87171;--b-info:#7cb7ff}

/* dasar */
html[data-theme^="blue"] body{background:var(--b-bg)!important;color:var(--b-text)}
html[data-theme^="blue"] :is(h1,h2,h3,h4,b,strong,label){color:inherit}
html[data-theme^="blue"] :is(.muted,.note,small,.v80-muted,.page-title p){color:var(--b-muted)}
html[data-theme^="blue"] a{color:var(--b-primary)}
html[data-theme^="blue"] :is(.text-link-admin,.page-title>span,.workspace-kicker,.report-kicker){color:var(--b-primary2)}
html[data-theme^="blue"] :focus-visible{outline:3px solid color-mix(in srgb,var(--b-primary2) 55%,transparent);outline-offset:2px}

/* sidebar */
html[data-theme^="blue"] .sidebar{background:linear-gradient(180deg,var(--b-side2),var(--b-side1))!important;border-right:1px solid rgba(255,255,255,.08);box-shadow:8px 0 30px rgba(5,14,38,.25)}
html[data-theme^="blue"] .brand{border-bottom-color:rgba(255,255,255,.12)}
html[data-theme^="blue"] .brand b{color:#fff}html[data-theme^="blue"] .brand small{color:#ffad73}
html[data-theme^="blue"] .nav-label{color:#8fb1fa}
html[data-theme^="blue"] .sidebar nav a{color:#d3e1ff;border-radius:12px;transition:background .15s,color .15s,transform .15s}
html[data-theme^="blue"] .sidebar nav a:hover{background:rgba(255,255,255,.09);color:#fff}
html[data-theme^="blue"] .sidebar nav a.active{background:linear-gradient(135deg,#1b5fe0,#3b82f6)!important;color:#fff!important;box-shadow:0 10px 22px rgba(27,95,224,.4)}
html[data-theme^="blue"] .nav-icon{background:rgba(255,255,255,.1);color:#ffb987}
html[data-theme^="blue"] .sidebar nav a.active .nav-icon{background:rgba(255,255,255,.2);color:#fff}
html[data-theme^="blue"] .sidebar-foot>a:first-child{color:#bfd1fb}
html[data-theme^="blue"] .sidebar-foot .logout,html[data-theme^="blue"] .sidebar-foot a.logout{background:rgba(255,255,255,.1);color:#fff;border-radius:12px}

/* topbar */
html[data-theme^="blue"] .topbar{background:var(--b-top)!important;border-bottom:1px solid var(--b-line);backdrop-filter:blur(14px);color:var(--b-text)}
html[data-theme^="blue"] .topbar-title span{color:var(--b-primary);letter-spacing:.1em}
html[data-theme^="blue"] .menu-btn,html[data-theme^="blue"] .notification-button,html[data-theme^="blue"] .icon-btn{background:var(--b-surface);border:1px solid var(--b-line);color:var(--b-text);border-radius:12px}
html[data-theme^="blue"] .a4b-header-clock{background:var(--b-soft);color:var(--b-soft-text);border-radius:12px}

/* kartu, panel, statistik */
html[data-theme^="blue"] :is(.panel,.panel-box,.stat,.stat-card,.training-admin-card,.workspace-card,.cms-card,.profile-card,.fund-card,.master-box,.report-sheet,.participant-card,.v80-card,.v80-stat,.v74-card,.uniform-need-kpis>div,.v80-uniform-summary>div){background:var(--b-surface)!important;color:var(--b-text);border:1px solid var(--b-line)!important;border-radius:18px;box-shadow:var(--b-shadow)}
html[data-theme^="blue"] .stat strong,html[data-theme^="blue"] .stat-card strong{color:var(--b-primary)}
html[data-theme^="blue"] .stat:hover,html[data-theme^="blue"] .v80-stat:hover{border-color:var(--b-primary2)!important;transform:translateY(-1px)}
html[data-theme^="blue"] :is(.stat.good,.stat-card.good){background:color-mix(in srgb,var(--b-ok) 10%,var(--b-surface))!important}
html[data-theme^="blue"] :is(.stat.warn,.stat-card.warn){background:color-mix(in srgb,var(--b-warn) 12%,var(--b-surface))!important}
html[data-theme^="blue"] :is(.dashboard-hero,.v80-hero,.v74-heading,.cms-hero){background:linear-gradient(120deg,var(--b-side1),#1347b5)!important;color:#fff;border:0!important;border-radius:22px}
html[data-theme^="blue"] :is(.dashboard-hero,.v80-hero,.v74-heading) :is(h1,h2,p,b,small){color:#fff}
html[data-theme^="blue"] body.a4b-dashboard-v80{background:var(--b-bg)!important}
html[data-theme^="blue"] .a4b-dashboard-v80 :is(.v80-card h2,.v80-stat strong,.v80-stat>span,.v80-bar strong,.v80-need-name b,.v80-need-row>summary strong,.v80-uniform-summary b){color:var(--b-text)}
html[data-theme^="blue"] .a4b-dashboard-v80 :is(.v80-period,.v80-card th,.v80-need-detail,.v80-uniform-summary>div){background:var(--b-surface2)}
html[data-theme^="blue"] .a4b-dashboard-v80 .v80-period a{color:var(--b-text)}
html[data-theme^="blue"] .a4b-dashboard-v80 .v80-period a.active{background:var(--b-primary);color:#fff}
html[data-theme^="blue"] .a4b-dashboard-v80 :is(.v80-track,.v74-track){background:var(--b-line)}
html[data-theme^="blue"] .a4b-dashboard-v80 :is(.v80-need-row,.v80-need-row[open]){background:var(--b-surface);border-color:var(--b-line)}
html[data-theme^="blue"] .a4b-dashboard-v80 .v80-need-row>summary:hover{background:var(--b-hover)}
html[data-theme^="blue"] .a4b-dashboard-v80 :is(.v80-need-name small,.v80-need-row>summary>div>small,.v80-stat small,.v80-toolbar small,.v80-empty){color:var(--b-muted)}
html[data-theme^="blue"] .a4b-dashboard-v80 :is(.shortcut-card,.uniform-shortcuts a){background:var(--b-surface2);border-color:var(--b-line);color:var(--b-text)}
html[data-theme^="blue"] .a4b-dashboard-v80 :is(.shortcut-card b,.uniform-shortcuts b){color:var(--b-primary2)}
html[data-theme^="blue"] .v80-shortage-row td,html[data-theme^="blue"] .uniform-need-kpis .bad{background:color-mix(in srgb,var(--b-bad) 12%,var(--b-surface))!important}
html[data-theme^="blue"] .uniform-need-row,html[data-theme^="blue"] .uniform-need-detail{background:var(--b-surface)!important;border-color:var(--b-line)!important;color:var(--b-text)}
html[data-theme^="blue"] .uniform-need-row>summary:hover{background:var(--b-hover)}
html[data-theme^="blue"] :is(.uniform-chevron,.v80-need-name>span){color:#f57a1f}
html[data-theme^="blue"] :is(.uniform-plan-badge,.uniform-size-preview span){background:var(--b-soft);color:var(--b-soft-text);border-color:var(--b-line)}

/* tabel */
html[data-theme^="blue"] .table-wrap{background:var(--b-surface);border:1px solid var(--b-line);border-radius:14px;overflow:auto}
html[data-theme^="blue"] th{background:var(--b-th)!important;color:var(--b-soft-text)!important;font-size:12px;letter-spacing:.03em}
html[data-theme^="blue"] td{border-top-color:var(--b-line)!important;color:var(--b-text)}
html[data-theme^="blue"] tbody tr:hover td{background:var(--b-hover)}

/* form */
html[data-theme^="blue"] :is(input,select,textarea){background:var(--b-input)!important;color:var(--b-text)!important;border:1px solid var(--b-line)!important;border-radius:11px}
html[data-theme^="blue"] ::placeholder{color:var(--b-muted)}
html[data-theme^="blue"] :is(input,select,textarea):focus{border-color:var(--b-primary2)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--b-primary2) 28%,transparent)!important}
html[data-theme^="blue"] input[readonly]{background:var(--b-surface2)!important;color:var(--b-muted)!important}

/* tombol */
html[data-theme^="blue"] .btn{border-radius:11px;transition:transform .12s,box-shadow .15s,filter .15s}
html[data-theme^="blue"] .btn:hover{transform:translateY(-1px);filter:brightness(1.06)}
html[data-theme^="blue"] .btn-primary{background:linear-gradient(135deg,#1747c4,#2f6fe8)!important;color:#fff!important;box-shadow:0 10px 22px rgba(23,71,196,.3)}
html[data-theme^="blue"] .btn-orange{color:#1b1000!important;background:linear-gradient(135deg,#f57a1f,#ffa24d)!important;box-shadow:0 10px 22px rgba(245,122,31,.28)}
html[data-theme^="blue"] .btn-outline{background:transparent!important;color:var(--b-primary2)!important;border:1px solid var(--b-primary2)!important}
html[data-theme^="blue"] .btn-light{background:var(--b-soft)!important;color:var(--b-soft-text)!important}
html[data-theme^="blue"] :is(.btn-bad,.btn-danger){background:color-mix(in srgb,var(--b-bad) 14%,var(--b-surface))!important;color:var(--b-bad)!important}

/* status, alert, tab */
html[data-theme^="blue"] .status-pill{background:color-mix(in srgb,var(--b-warn) 16%,var(--b-surface));color:var(--b-warn)}
html[data-theme^="blue"] :is(.status-pill.completed,.status-pill.closed,.status-pill.archived){background:var(--b-soft);color:var(--b-soft-text)}
html[data-theme^="blue"] .alert{border-radius:12px;background:var(--b-soft);color:var(--b-soft-text)}
html[data-theme^="blue"] .alert.success{background:color-mix(in srgb,var(--b-ok) 14%,var(--b-surface));color:var(--b-ok)}
html[data-theme^="blue"] .alert.danger{background:color-mix(in srgb,var(--b-bad) 14%,var(--b-surface));color:var(--b-bad)}
html[data-theme^="blue"] .workspace-tabs a{background:var(--b-surface);border-color:var(--b-line);color:var(--b-muted)}
html[data-theme^="blue"] .workspace-tabs a.active{background:var(--b-primary);border-color:var(--b-primary);color:#fff}

/* modal & notifikasi */
html[data-theme^="blue"] :is(.modal-backdrop,.notification-overlay){background:var(--b-modal-bg);backdrop-filter:blur(5px)}
html[data-theme^="blue"] :is(.modal,.notification-modal,.gbj-dialog){background:var(--b-surface)!important;color:var(--b-text);border:1px solid var(--b-line);border-radius:22px;box-shadow:0 30px 80px rgba(2,8,28,.45)}
html[data-theme^="blue"] .notification-row:hover{background:var(--b-hover)}

/* login */
html[data-theme^="blue"] body.login-page{background:radial-gradient(900px 500px at 85% -10%,rgba(59,130,246,.35),transparent 60%),linear-gradient(160deg,var(--b-side1),var(--b-side2))!important;color:#fff}
html[data-theme^="blue"] body.login-page :is(.card,.login-card,main>div,form){color:var(--b-text)}
html[data-theme^="blue"] body.login-page form>button{background:linear-gradient(135deg,#f57a1f,#ff9a4d);color:#fff;border:0;border-radius:12px;font-weight:850}
html[data-theme^="blue"] body.login-page .foot a{color:#8fb1fa}

/* responsif: tabel/kartu tidak overflow, drawer tetap bawaan */
html[data-theme^="blue"] .content{min-width:0}
@media(max-width:900px){html[data-theme^="blue"] .topbar{padding-inline:14px}html[data-theme^="blue"] .table-wrap{max-width:100%}html[data-theme^="blue"] .sidebar{box-shadow:12px 0 40px rgba(5,14,38,.45)}}
@media(prefers-reduced-motion:reduce){html[data-theme^="blue"] *{transition:none!important}}

/* ---- perbaikan kontras khusus tema biru ---- */
html[data-theme^="blue"] :is(.account-edit-card,.account-reset-card,.account-kpis>div,.cms-card,.dialog-head,.cash-card,.fund-subhead,.compact-list>a,.a4b-dashboard-stats){background:var(--b-surface)!important;color:var(--b-text)}
html[data-theme^="blue"] :is(.admin-title>span,.dialog-head>span,.dashboard-stat-link span,.cms-card>span){color:var(--b-primary2)!important}
html[data-theme^="blue"] :is(.danger-text,.dot.danger,.health-dot.bad){color:var(--b-bad)!important}
html[data-theme^="blue"] .btn-good{background:color-mix(in srgb,var(--b-ok) 16%,var(--b-surface))!important;color:var(--b-ok)!important}
html[data-theme^="blue"] .btn-success{background:#0f7a47!important;color:#fff!important}
html[data-theme^="blue"] .dialog-x{background:var(--b-soft);color:var(--b-soft-text)}
html[data-theme^="blue"] .cms-hero span{color:#ffc08f}
/* ===== akhir A4B BLUE ===== */

/* =====================================================================
   A4B — PERBAIKAN KONTRAS UMUM (semua tema) + MENU AKTIF
   ===================================================================== */
.btn-orange{color:#1b1000!important}
.btn-success{background:#0f7a47!important;color:#fff!important}
:is(html:not([data-theme^="glass"]):not([data-theme^="blue"])) :is(.muted,.note,.admin-title p,.approval-note,.empty,.filter-empty,.fund-meta small,.cms-card p,.dialog-head p){color:#54648a}
:is(html:not([data-theme^="glass"]):not([data-theme^="blue"])) :is(.cms-card>span,.admin-title>span){color:#b8480a}

/* A4B: connected tab unifikasi sembilan tema — aturan baru berada di bagian paling bawah. */
/* ===== A4B CONTRAST GUARD (dihasilkan otomatis dari audit kontras; teks vs latar >= 4.5:1) ===== */
html:is(:not([data-theme]),[data-theme="classic"]) :is(.account-kpis span,.activity-list small,.backup-notes span,.cash-card.small,.compact-list> a > div span,.empty-cell,.fund-realization small,.fund-subhead span,.health-list span,.hero-role small,.hero-role span,.kpi-row span,.master-list-row small,.note-inline,.notification-button,.notification-button span,.notification-modal-head span,.notification-row p,.notification-row small,.page-title p,.page-title>span,.period-badge small,.period-badge span,.permission-chips .permission-empty,.placeholder-module p,.profile-card dt,.profile-card p,.profile-chip small,.report-export-actions small,.report-export-actions span,.report-export-actions>div small,.report-summary-grid span,.role-permission-head span,.shortcut-card span,.sports-shirt-recap small,.stat small,.stat-card small,.stat-card span,.timeline p,.timeline small,.training-admin-card>p,.training-card-top small,.training-info-grid span,.uniform-need-kpis small,.uniform-need-name small,.uniform-need-row>summary>div>small,.uniform-shortcuts span,.v74-kicker,.workspace-card p,.workspace-head p,.workspace-shortcuts .shortcut-card span,.v80-need-detail .table-wrap){color:#0e1f45!important}
html:is(:not([data-theme]),[data-theme="classic"]) :is(.cms-hero span,.userbox span,.a4b-dashboard-v80 .v80-period a.active,.v80-period a.active){color:#f4f8ff!important}
html[data-theme="glass-dark"] :is(.account-kpis span,.activity-list small,.admin-title p,.admin-title>span,.alert.danger,.alert.info,.alert.warn,.approval-note,.backup-notes span,.brand small,.btn-bad,.btn-danger,.btn-good,.btn-light,.btn-outline,.cms-hero span,.compact-list> a > div span,.danger-text,.dashboard-hero p,.dashboard-hero>div>span,.dashboard-stat-link span,.dialog-head p,.dialog-head>span,.empty,.empty-cell,.filter-empty,.fund-builder-total b,.fund-items-table th,.fund-meta small,.fund-realization small,.fund-subhead span,.health-list,.health-list b,.health-list span,.health-list>div,.hero-role small,.hero-role span,.icon-btn,.inactive-text,.kpi-row span,.master-company-grid .empty,.master-company-grid .panel,.master-list-row small,.master-list-row>span,.modal .timeline,.muted,.nav-icon,.nav-label,.note,.note-inline,.notification-button,.notification-modal-head span,.notification-modal-head>button,.notification-row p,.notification-row small,.page-title p,.page-title>span,.panel,.panel .note,.panel form.actions,.panel input,.panel select,.panel-box,.permission-chips>span,.placeholder-module p,.profile-card,.profile-card dd,.profile-card dl,.profile-card dt,.profile-card p,.profile-chip,.profile-chip b,.profile-chip small,.profile-chip>.profile-chip-text,.profile-chip>.profile-chip-text b,.profile-chip>.profile-chip-text small,.referrer-box>small,.remaining-box span,.remaining-box strong,.remaining-box.paid span,.remaining-box.paid strong,.report-export-actions small,.report-export-actions span,.report-export-actions>div small,.report-kicker,.report-mode-hint b,.report-section,.report-section .compact-workspace-stats,.report-summary-grid span,.report-summary-grid>div,.role-permission-head span,.sidebar,.sidebar nav,.sidebar nav a,.sidebar.open,.sports-shirt-recap small,.sports-shirt-recap strong,.stat,.stat small,.stat strong,.stat-card,.stat-card small,.stat-card span,.stat-card strong,.stat-card.accent-blue,.stat-card.accent-orange,.status,.status-pill,.status-pill.archived,.status-pill.cancelled,.status-pill.closed,.status-pill.completed,.status-pill.draft,.status-pill.open,.status-text.ok,.status-text.warn,.status.bad,.status.danger,.status.muted,.status.ok,.status.warn,.subpanel,.subpanel h3,.task-list,.text-btn,.text-link-admin,.timeline,.timeline p,.timeline small,.timeline>div,.topbar,.topbar-title span,.training-admin-card,.training-admin-card .lock-pill,.training-admin-card .status-pill,.training-admin-card>p,.training-card-top small,.training-info-grid span,.uniform-bank-details>summary,.uniform-compact-tabs,.uniform-compact-tabs .uniform-compact-title,.uniform-compact-tabs a,.uniform-compact-tabs>div,.uniform-need-detail>.note,.uniform-need-kpis .bad b,.uniform-need-kpis small,.uniform-need-name small,.uniform-need-row>summary>div>small,.uniform-plan-badge,.uniform-shortcuts a,.uniform-shortcuts span,.uniform-size-preview span,.userbox span,.v74-dashboard,.v74-kicker,.v74-task small,.website-link,.workspace-head p,.workspace-kicker,.a4b-dashboard-v80 .v80-stat small,.v80-hero p,.v80-stat .v80-unavailable,.v80-stat small){color:#f4f8ff!important}
html[data-theme="glass-dark"] :is(.btn-primary,.cash-card,.cash-card span,.cash-card strong,.notification-button span,.sidebar nav a.active,.uniform-compact-tabs a.active,.workspace-tabs a.active,.a4b-dashboard-v80 .v80-period a.active,.v80-period a.active){color:#0e1f45!important}
html[data-theme="glass-dark"] :is(.cms-card h3,.cms-card p,.cms-card>span,.cms-card>strong,.fund-meta>div,.payment-method-chip,.payment-method-chip.is-off,.period-badge,.period-badge b,.period-badge small,.period-badge span,.permission-chips .permission-empty,.shortcut-card b,.shortcut-card span,.sports-shirt-recap>div,.total-bar,.v74-card,.v74-card h2,.workspace-card,.workspace-card h3,.workspace-card p,.workspace-shortcuts .shortcut-card b,.workspace-shortcuts .shortcut-card span){background:#1c1c25!important;color:#f1f5ff!important}
html[data-theme="glass-ocean"] :is(.account-kpis span,.activity-list small,.admin-title p,.admin-title>span,.alert.danger,.alert.info,.alert.warn,.approval-note,.backup-notes span,.brand small,.btn-bad,.btn-danger,.btn-good,.btn-outline,.cms-hero span,.compact-list> a > div span,.danger-text,.dashboard-hero p,.dashboard-hero>div>span,.dashboard-stat-link span,.dialog-head p,.dialog-head>span,.empty,.empty-cell,.filter-empty,.fund-builder-total b,.fund-items-table th,.fund-meta small,.fund-realization small,.fund-subhead span,.health-list span,.hero-role small,.hero-role span,.inactive-text,.kpi-row span,.master-company-grid .empty,.master-list-row small,.master-list-row>span,.muted,.nav-icon,.nav-label,.note,.note-inline,.notification-modal-head span,.notification-row p,.notification-row small,.page-title p,.page-title>span,.panel .note,.panel input,.panel select,.permission-chips>span,.placeholder-module p,.profile-card dt,.profile-card p,.profile-chip small,.profile-chip>.profile-chip-text small,.referrer-box>small,.remaining-box span,.remaining-box strong,.remaining-box.paid span,.remaining-box.paid strong,.report-export-actions small,.report-export-actions span,.report-export-actions>div small,.report-kicker,.report-mode-hint b,.report-summary-grid span,.report-summary-grid>div,.role-permission-head span,.sidebar nav a,.sports-shirt-recap small,.sports-shirt-recap strong,.stat small,.stat strong,.stat-card small,.stat-card span,.stat-card strong,.status,.status-pill,.status-pill.archived,.status-pill.cancelled,.status-pill.closed,.status-pill.completed,.status-pill.draft,.status-pill.open,.status-text.ok,.status-text.warn,.status.bad,.status.danger,.status.muted,.status.ok,.status.warn,.task-list,.text-btn,.text-link-admin,.timeline p,.timeline small,.topbar-title span,.training-admin-card .status-pill,.training-admin-card>p,.training-card-top small,.training-info-grid span,.uniform-bank-details>summary,.uniform-compact-tabs .uniform-compact-title,.uniform-compact-tabs a,.uniform-need-detail>.note,.uniform-need-kpis .bad b,.uniform-need-kpis small,.uniform-need-name small,.uniform-need-row>summary>div>small,.uniform-plan-badge,.uniform-shortcuts a,.uniform-shortcuts span,.uniform-size-preview span,.userbox span,.v74-dashboard,.v74-kicker,.v74-task small,.website-link,.workspace-head p,.workspace-kicker,.a4b-dashboard-v80 .v80-card th,.a4b-dashboard-v80 .v80-period a,.a4b-dashboard-v80 .v80-stat small,.v80-card th,.v80-hero p,.v80-period a,.v80-stat .v80-unavailable,.v80-stat small,.v80-uniform-needs th){color:#f4f8ff!important}
html[data-theme="glass-ocean"] :is(.btn-primary,.cash-card,.cash-card span,.cash-card strong,.notification-button span,.sidebar nav a.active,.uniform-compact-tabs a.active,.workspace-tabs a.active){color:#0e1f45!important}
html[data-theme="glass-ocean"] :is(.cms-card h3,.cms-card p,.cms-card>span,.cms-card>strong,.fund-meta>div,.payment-method-chip,.payment-method-chip.is-off,.period-badge,.period-badge b,.period-badge small,.period-badge span,.permission-chips .permission-empty,.shortcut-card b,.shortcut-card span,.sports-shirt-recap>div,.total-bar,.v74-card,.v74-card h2,.workspace-card,.workspace-card h3,.workspace-card p,.workspace-shortcuts .shortcut-card b,.workspace-shortcuts .shortcut-card span){background:#102650!important;color:#f1f5ff!important}
html[data-theme="glass-light"] :is(.a4b-header-clock,.a4b-header-clock time,.account-kpis span,.activity-list small,.admin-title p,.alert.danger,.alert.info,.alert.warn,.approval-note,.backup-notes span,.brand small,.btn-bad,.btn-danger,.btn-good,.btn-outline,.btn-primary,.cash-card,.cash-card span,.cash-card strong,.cms-card p,.cms-card>span,.compact-list> a > div span,.danger-text,.dashboard-hero,.dashboard-hero p,.dashboard-hero>div,.dashboard-hero>div>span,.dialog-head p,.empty,.empty-cell,.fund-builder-total b,.fund-items-table th,.fund-meta small,.fund-realization small,.hero-role small,.hero-role span,.inactive-text,.kpi-row span,.master-company-grid .empty,.muted,.nav-icon,.nav-label,.note,.note-inline,.notification-button span,.notification-modal-head span,.notification-row p,.notification-row small,.page-title p,.page-title>span,.period-badge span,.permission-chips .permission-empty,.permission-chips>span,.placeholder-module p,.profile-card dt,.profile-card p,.report-export-actions small,.report-export-actions span,.report-export-actions>div small,.report-mode-hint b,.report-summary-grid span,.role-permission-head span,.shortcut-card span,.sidebar nav a.active,.sports-shirt-recap small,.stat.good strong,.stat.warn strong,.status,.status-pill,.status-pill.cancelled,.status-pill.draft,.status-pill.open,.status-text.ok,.status-text.warn,.status.bad,.status.danger,.status.muted,.status.ok,.status.warn,.timeline p,.topbar-title span,.training-admin-card .status-pill,.training-admin-card>p,.training-card-top small,.uniform-chevron,.uniform-compact-tabs .uniform-compact-title,.uniform-compact-tabs a.active,.uniform-need-kpis small,.uniform-need-name small,.uniform-plan-badge,.uniform-shortcuts span,.uniform-size-preview span,.userbox span,.v74-kicker,.v74-task small,.website-link,.workspace-card p,.workspace-head p,.workspace-shortcuts .shortcut-card span,.workspace-tabs a.active,.a4b-dashboard-v80 .shortcut-card,.a4b-dashboard-v80 .shortcut-card b,.a4b-dashboard-v80 .text-link-admin,.a4b-dashboard-v80 .v80-bar strong,.a4b-dashboard-v80 .v80-empty,.a4b-dashboard-v80 .v80-muted,.a4b-dashboard-v80 .v80-period a.active,.a4b-dashboard-v80 .v80-stat small,.a4b-dashboard-v80 .v80-stat strong,.a4b-dashboard-v80 .v80-toolbar small,.a4b-dashboard-v80 .v80-unavailable,.v80-bar strong,.v80-big-number,.v80-concentric small,.v80-data-details,.v80-data-details summary,.v80-empty,.v80-finance-month small,.v80-funnel small,.v80-gauge>div small,.v80-hero,.v80-hero p,.v80-kicker,.v80-legend,.v80-muted,.v80-need-name small,.v80-need-name>span,.v80-origin-list strong,.v80-period a.active,.v80-role small,.v80-search,.v80-section-head .v80-muted,.v80-stat .v80-unavailable,.v80-stat small,.v80-stat strong,.v80-toolbar small,.v80-training-list small,.v80-training-list strong small,.v80-unavailable,.v80-uniform-needs small,.v80-uniform-summary small,.v80-widget-kicker){color:#0e1f45!important}
html[data-theme="glass-light"] :is(.cms-hero h2,.cms-hero span,.v74-heading h2,.a4b-dashboard-v80,.a4b-dashboard-v80 .v80-card .table-wrap,.v80-card .table-wrap,.v80-funnel li,.v80-funnel li span,.v80-need-detail,.v80-need-detail .table-wrap,.v80-need-detail table,.v80-need-row,.v80-need-row.has-shortage,.v80-need-row>summary,.v80-need-row>summary>div>small,.v80-uniform-summary .bad,.v80-uniform-summary .bad b,.v80-uniform-summary>div){color:#f4f8ff!important}
html[data-theme="glass-bumi"] :is(.account-kpis span,.activity-list small,.admin-title p,.admin-title>span,.alert.danger,.alert.info,.alert.warn,.approval-note,.backup-notes span,.brand small,.btn-bad,.btn-danger,.btn-good,.btn-outline,.cms-card,.cms-card p,.cms-card>span,.compact-list> a > div span,.danger-text,.dashboard-hero p,.dashboard-hero>div>span,.dashboard-stat-link span,.dialog-head p,.dialog-head>span,.empty,.empty-cell,.filter-empty,.fund-builder-total b,.fund-items-table th,.fund-meta small,.fund-realization small,.fund-subhead span,.hero-role small,.hero-role span,.inactive-text,.kpi-row span,.master-company-grid .empty,.master-list-row small,.master-list-row>span,.muted,.nav-icon,.nav-label,.note,.note-inline,.notification-modal-head span,.notification-row p,.notification-row small,.page-title p,.page-title>span,.permission-chips>span,.placeholder-module p,.profile-card p,.referrer-box>small,.remaining-box span,.remaining-box strong,.remaining-box.paid span,.remaining-box.paid strong,.report-export-actions small,.report-export-actions span,.report-export-actions>div small,.report-kicker,.report-mode-hint b,.report-summary-grid span,.report-summary-grid>div,.role-permission-head span,.shortcut-card,.shortcut-card span,.sports-shirt-recap small,.sports-shirt-recap strong,.status,.status-pill,.status-pill.cancelled,.status-pill.draft,.status-pill.open,.status-text.ok,.status-text.warn,.status.bad,.status.danger,.status.muted,.status.ok,.status.warn,.task-list,.text-btn,.text-link-admin,.timeline p,.topbar-title span,.training-admin-card>p,.training-card-top small,.training-info-grid span,.uniform-bank-details>summary,.uniform-need-detail>.note,.uniform-need-kpis .bad b,.uniform-need-kpis small,.uniform-need-name small,.uniform-need-row>summary>div>small,.uniform-plan-badge,.uniform-shortcuts a,.uniform-shortcuts span,.uniform-size-preview span,.userbox span,.v74-dashboard,.v74-kicker,.v74-task small,.website-link,.workspace-head p,.workspace-kicker,.workspace-shortcuts .shortcut-card,.workspace-shortcuts .shortcut-card span,.a4b-dashboard-v80 .v80-period,.a4b-dashboard-v80 .v80-period a,.a4b-dashboard-v80 .v80-stat small,.v80-hero p,.v80-period,.v80-period a,.v80-stat .v80-unavailable,.v80-stat small){color:#f4f8ff!important}
html[data-theme="glass-bumi"] :is(.fund-meta>div,.payment-method-chip,.payment-method-chip.is-off,.period-badge,.period-badge b,.period-badge small,.period-badge span,.permission-chips .permission-empty,.sports-shirt-recap>div,.total-bar,.v74-card,.v74-card h2,.workspace-card,.workspace-card h3,.workspace-card p){background:#0f2550!important;color:#f1f5ff!important}
html[data-theme="glass-bumi"] :is(.notification-button span){color:#0e1f45!important}
html[data-theme="glass-awan"] :is(.a4b-header-clock,.a4b-header-clock time,.account-kpis span,.activity-list small,.admin-title p,.alert.danger,.alert.info,.alert.warn,.approval-note,.backup-notes span,.brand small,.btn-bad,.btn-danger,.btn-good,.btn-outline,.btn-primary,.cash-card,.cash-card span,.cash-card strong,.cms-card p,.cms-card>span,.compact-list> a > div span,.danger-text,.dashboard-hero,.dashboard-hero h1,.dashboard-hero p,.dashboard-hero>div,.dashboard-hero>div>span,.dialog-head p,.empty,.empty-cell,.fund-builder-total b,.fund-meta small,.fund-realization small,.hero-role small,.hero-role span,.inactive-text,.kpi-row span,.master-company-grid .empty,.muted,.nav-label,.note,.note-inline,.notification-button span,.notification-modal-head span,.notification-overlay.open,.notification-row p,.notification-row small,.page-title p,.page-title>span,.period-badge span,.permission-chips .permission-empty,.permission-chips>span,.placeholder-module p,.profile-card dt,.profile-card p,.report-export-actions small,.report-export-actions span,.report-export-actions>div small,.report-mode-hint b,.report-summary-grid span,.role-permission-head span,.shortcut-card span,.sidebar nav a.active,.sports-shirt-recap small,.stat.good strong,.stat.warn strong,.status-pill,.status-pill.cancelled,.status-pill.draft,.status-pill.open,.status-text.ok,.status-text.warn,.status.bad,.status.danger,.status.ok,.status.warn,.task-list,.timeline p,.topbar-title span,.training-admin-card>p,.training-card-top small,.uniform-chevron,.uniform-compact-tabs .uniform-compact-title,.uniform-compact-tabs a.active,.uniform-need-kpis small,.uniform-need-name small,.uniform-plan-badge,.uniform-shortcuts span,.uniform-size-preview span,.userbox span,.v74-kicker,.v74-task small,.website-link,.workspace-card p,.workspace-head p,.workspace-shortcuts .shortcut-card span,.workspace-tabs a.active,.a4b-dashboard-v80 .v80-period a,.a4b-dashboard-v80 .v80-stat small,.a4b-dashboard-v80 .v80-stat strong,.v80-hero,.v80-hero p,.v80-period a,.v80-stat .v80-unavailable,.v80-stat small,.v80-stat strong){color:#0e1f45!important}
html[data-theme="glass-awan"] :is(.cms-hero h2,.cms-hero span,.v74-heading h2,.a4b-dashboard-v80,.a4b-dashboard-v80 .v80-card .table-wrap,.v80-card .table-wrap,.v80-funnel li,.v80-funnel li span,.v80-need-detail,.v80-need-detail .table-wrap,.v80-need-detail table,.v80-need-row,.v80-need-row.has-shortage,.v80-need-row>summary,.v80-need-row>summary>div>small,.v80-uniform-summary .bad,.v80-uniform-summary .bad b,.v80-uniform-summary>div){color:#f4f8ff!important}
html[data-theme="blue-light"] :is(.account-kpis span,.admin-title p,.admin-title>span,.alert.success,.approval-note,.backup-notes span,.btn-good,.btn-outline,.cms-card p,.cms-card>span,.compact-list> a > div span,.dashboard-stat-link span,.dialog-head p,.dialog-head>span,.empty,.empty-cell,.filter-empty,.filter-empty b,.fund-subhead span,.health-list span,.hero-role span,.kpi-row span,.master-company-grid .empty,.note-inline,.notification-button span,.notification-modal-head span,.notification-overlay.open,.notification-row p,.page-title>span,.period-badge span,.permission-chips .permission-empty,.placeholder-module p,.profile-card dt,.profile-card p,.report-export-actions span,.report-kicker,.report-summary-grid span,.role-permission-head span,.shortcut-card span,.stat-card span,.status-pill,.status-pill.cancelled,.status-pill.draft,.status-pill.open,.text-link-admin,.timeline p,.training-admin-card .status-pill,.training-admin-card>p,.training-info-grid span,.uniform-chevron,.uniform-shortcuts span,.userbox span,.v74-kicker,.workspace-card p,.workspace-head p,.workspace-kicker,.workspace-shortcuts .shortcut-card span,.a4b-dashboard-v80 .content,.a4b-dashboard-v80 .text-link-admin,.a4b-dashboard-v80 .uniform-shortcuts b,.a4b-dashboard-v80 .v80-period,.a4b-dashboard-v80 .v80-stats,.a4b-dashboard-v80 .v80-unavailable,.v80-area,.v80-bar span,.v80-bars,.v80-big-number,.v80-chart-grid,.v80-concentric,.v80-concentric p,.v80-concentric svg,.v80-data-details,.v80-data-details summary,.v80-data-list,.v80-data-list b,.v80-data-list.three,.v80-filter-actions,.v80-filter-form,.v80-filter-form .btn,.v80-finance-bars,.v80-finance-month,.v80-funnel,.v80-funnel strong,.v80-gauge,.v80-gauge svg,.v80-gauge>b,.v80-gauge>div,.v80-gauges,.v80-grid,.v80-kicker,.v80-legend,.v80-line,.v80-line text,.v80-need-detail,.v80-need-detail .table-wrap,.v80-need-detail table,.v80-need-list,.v80-need-name,.v80-need-name>span,.v80-need-row,.v80-need-row.has-shortage,.v80-need-row>summary,.v80-origin-list,.v80-origin-list strong,.v80-origin-list>div,.v80-participant-detail table,.v80-period,.v80-point,.v80-polyline,.v80-program-rings,.v80-program-rings .v80-gauge>div,.v80-reference,.v80-ring-base,.v80-ring-value,.v80-ring-value.tone-1,.v80-ring-value.tone-2,.v80-role,.v80-role b,.v80-search,.v80-section-head,.v80-section-head h2,.v80-stat .v80-unavailable,.v80-stats,.v80-toolbar,.v80-toolbar b,.v80-training-list,.v80-training-list b,.v80-training-list strong,.v80-unavailable,.v80-uniform-filter,.v80-uniform-filter .v80-filter-head h2,.v80-uniform-summary,.v80-widget-funnel,.v80-widget-income_daily,.v80-widget-income_expenses,.v80-widget-kicker,.v80-widget-latest_trainings){color:#0e1f45!important}
html[data-theme="blue-light"] :is(.dashboard-hero>div>span,.a4b-dashboard-v80 .shortcut-card b,.a4b-dashboard-v80 .v80-card .table-wrap,.v80-card .table-wrap){color:#f4f8ff!important}
html[data-theme="blue-dark"] :is(.account-kpis span,.admin-title p,.approval-note,.backup-notes span,.compact-list> a > div span,.dashboard-hero>div>span,.dialog-head p,.empty,.fund-action-title,.fund-subhead span,.health-list span,.inactive-text,.kpi-row span,.master-company-grid .empty,.note-inline,.notification-row p,.placeholder-module p,.profile-card p,.report-export-actions span,.report-summary-grid span,.role-permission-head span,.stat-card span,.status-text.ok,.status-text.warn,.task-list,.text-btn,.timeline p,.training-admin-card>p,.uniform-bank-details>summary,.uniform-need-kpis .bad b,.uniform-need-row>summary>div>strong,.uniform-shortcuts span,.userbox span,.v74-dashboard,.website-link,.workspace-card p){color:#f4f8ff!important}
html[data-theme="blue-dark"] :is(.cms-card p,.cms-card>span,.filter-empty,.filter-empty b,.fund-approval-form,.fund-approval-form .span-2,.fund-approval-form label,.fund-builder-row,.fund-builder-row .fund-row-subtotal,.fund-builder-total,.fund-builder-total b,.fund-item-wrap,.fund-meta>div,.fund-realization>div,.fund-receipt-form,.fund-receipt-form .span-2,.fund-receipt-form label,.master-list-row small,.money-total,.money-total b,.notification-modal-foot,.notification-modal-foot .btn,.notification-modal-head,.notification-modal-head h2,.notification-modal-head span,.notification-modal-head>button,.notification-row.unread,.panel code,.payment-method-chip,.payment-method-chip.is-off,.period-badge,.period-badge b,.period-badge small,.period-badge span,.permission-chips .permission-empty,.profile-chip,.profile-chip b,.profile-chip small,.profile-chip>.profile-chip-text,.profile-chip>.profile-chip-text small,.referrer-box,.referrer-box>b,.referrer-box>small,.remaining-box,.remaining-box strong,.remaining-box.paid,.report-summary-grid>div,.role-permission-card,.search-large,.shortcut-card span,.sports-shirt-recap>div,.status.muted,.subpanel,.subpanel h3,.total-bar,.total-bar strong,.training-edit-panel,.training-info-grid span,.uniform-compact-tabs,.uniform-compact-tabs a,.uniform-compact-tabs>div,.v74-task strong,.workspace-head,.workspace-head h1,.workspace-head p,.workspace-shortcuts .shortcut-card span){background:#132753!important;color:#e9f0ff!important}
html[data-theme="blue-dark"] :is(.notification-button span,.workspace-tabs a.active,.a4b-dashboard-v80 .v80-period a.active,.v80-period a.active){color:#0e1f45!important}
/* ===== akhir contrast guard ===== */

/* ===== A4B — Dashboard V8 & kartu pintas: teks mengikuti token tema (semua tema glass) ===== */
html[data-theme^="glass"] body.a4b-dashboard-v80 .content :is(.v80-card,.v80-stat,.v80-need-row,.v80-need-detail,.v80-uniform-summary>div,.v80-funnel li,.v80-hero,.v80-period) :is(h1,h2,h3,b,strong,span,p,td,th,a,li,summary,label,div){color:var(--t-text)!important}
html[data-theme^="glass"] body.a4b-dashboard-v80 .content :is(.v80-muted,.v80-empty,.v80-unavailable,.v80-toolbar small,.v80-stat small,.v80-need-name small,.v80-need-row>summary>div>small,.v80-funnel small,.v80-uniform-summary small,.v80-data-details,.v80-legend,.v80-finance-month small,.v80-gauge>b,.v80-gauge>div small){color:var(--t-muted)!important}
html[data-theme^="glass"] body.a4b-dashboard-v80 .content :is(.v80-period a.active,.v80-widget-kicker){color:var(--t-accent-text)!important}
html[data-theme^="glass"] body.a4b-dashboard-v80 .content .v80-period a.active{background:var(--t-accent)!important;color:var(--t-on-accent)!important}
html[data-theme^="glass"] :is(.cash-card.small,.uniform-shortcuts a,.shortcut-card,.total-bar) :is(b,strong,span,small,p,h3){color:var(--t-text)!important}
html[data-theme^="blue"] .remaining-box span{color:var(--b-warn)!important}
html[data-theme^="blue"] .remaining-box.paid span{color:var(--b-ok)!important}

/* =====================================================================
   A4B UX — ukuran teks, tombol, kondisi kosong, notifikasi, mobile, aksesibilitas
   Bagian bertanda [JS] aktif bila a4b-ui.js dipasang; sisanya murni CSS.
   ===================================================================== */
html{--ux-surface:#fff;--ux-line:#dce5f1;--ux-text:#14213d;--ux-muted:#51628a;--ux-accent:#0638b8;--ux-soft:#e8f0ff;--ux-ok:#0f7a47;--ux-bad:#c0261c;--ux-warn:#9a5a00}
html[data-theme^="blue"]{--ux-surface:var(--b-surface);--ux-line:var(--b-line);--ux-text:var(--b-text);--ux-muted:var(--b-muted);--ux-accent:var(--b-primary2);--ux-soft:var(--b-soft);--ux-ok:var(--b-ok);--ux-bad:var(--b-bad);--ux-warn:var(--b-warn)}
html[data-theme^="glass"]{--ux-surface:var(--t-surface-2);--ux-line:var(--t-border);--ux-text:var(--t-text);--ux-muted:var(--t-muted);--ux-accent:var(--t-accent-text);--ux-soft:var(--t-hover);--ux-ok:var(--t-ok);--ux-bad:var(--t-bad);--ux-warn:var(--t-warn)}

/* 2. ukuran teks: label minimal 12px, isi 14px */
.nav-label,.brand small{font-size:11.5px!important}
.uniform-need-row>summary small,.uniform-need-name small,.uniform-need-kpis small,.stat-card span,.stat span{font-size:12px!important}
.uniform-need-row>summary strong,.uniform-need-name b{font-size:14px!important}
.status-pill,.uniform-plan-badge{font-size:11.5px!important;padding:4px 10px}
th{font-size:12.5px!important}td,.sidebar nav a{font-size:14px}
.topbar-title span{font-size:12px!important}

/* 6. tombol: satu aksi utama (biru solid), sekunder outline, bahaya merah */
html:not([data-theme^="glass"]) .btn-orange{background:linear-gradient(135deg,#1747c4,#2f6fe8)!important;color:#fff!important;box-shadow:0 8px 18px rgba(23,71,196,.28)}
html[data-theme^="blue"] .btn-orange{background:linear-gradient(135deg,#1747c4,#2f6fe8)!important;color:#fff!important}
.btn{min-height:40px}
.btn-danger{background:#c0261c!important;color:#fff!important}
.btn[aria-busy="true"]{position:relative;pointer-events:none;opacity:.8}
.btn[aria-busy="true"]::after{content:"";width:14px;height:14px;margin-left:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:a4bspin .7s linear infinite}
@keyframes a4bspin{to{transform:rotate(360deg)}}

/* 7. kondisi kosong & alert berikon */
.empty,.empty-cell,.filter-empty,.a4b-empty{padding:28px 18px;text-align:center;color:var(--ux-muted);border:1px dashed var(--ux-line);border-radius:14px;background:color-mix(in srgb,var(--ux-soft) 55%,transparent)}
.alert::before{display:inline-block;margin-right:8px;font-weight:900}
.alert.success::before{content:"✓"}.alert.danger::before{content:"!"}.alert.warn::before{content:"⚠"}
.a4b-toasts{position:fixed;right:16px;top:calc(var(--a4b-top,76px) + 8px);z-index:9999;display:grid;gap:8px;max-width:min(380px,calc(100vw - 32px))}
.a4b-toast{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:var(--ux-surface);color:var(--ux-text);border:1px solid var(--ux-line);border-left:4px solid var(--ux-ok);box-shadow:0 14px 34px rgba(8,20,52,.25);animation:a4bin .25s ease-out}
.a4b-toast.bad{border-left-color:var(--ux-bad)}
.a4b-toast button{margin-left:auto;border:0;background:transparent;color:var(--ux-muted);font-size:18px;cursor:pointer;line-height:1}
@keyframes a4bin{from{opacity:0;transform:translateY(-6px)}}
.a4b-loadbar{position:fixed;left:0;top:0;height:3px;width:0;background:linear-gradient(90deg,#2f6fe8,#f57a1f);z-index:10000;transition:width 1.2s ease-out}
.a4b-loadbar.on{width:85%}

/* 9. status tidak hanya warna (ikon + teks) */
.status-pill[data-s]::before{margin-right:5px;font-weight:900}
.status-pill[data-s="ok"]::before{content:"✓"}.status-pill[data-s="bad"]::before{content:"▲"}.status-pill[data-s="warn"]::before{content:"●"}
.status-pill[data-s="ok"]{background:color-mix(in srgb,var(--ux-ok) 14%,var(--ux-surface))!important;color:var(--ux-ok)!important}
.status-pill[data-s="bad"]{background:color-mix(in srgb,var(--ux-bad) 14%,var(--ux-surface))!important;color:var(--ux-bad)!important}
:focus-visible{outline:3px solid color-mix(in srgb,var(--ux-accent) 60%,transparent);outline-offset:2px}

/* [JS] ikon menu, sidebar mini, grup bisa dilipat */
.nav-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.nav-icon.has-svg{font-size:0}
.sidebar .nav-label[data-toggle]{display:flex;align-items:center;justify-content:space-between;width:100%;cursor:pointer;border:0;background:transparent;font-family:inherit;text-align:left}
.sidebar .nav-label[data-toggle]::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s;margin-right:4px}
.nav-group.is-collapsed .nav-label[data-toggle]::after{transform:rotate(-45deg)}
.nav-group.is-collapsed>a{display:none!important}
.a4b-sbtoggle{display:inline-grid;place-items:center;width:40px;height:40px;border:1px solid var(--ux-line);border-radius:12px;background:var(--ux-surface);color:var(--ux-text);cursor:pointer;margin-right:6px}
@media(min-width:901px){
 body.a4b-sb-mini .admin-shell{grid-template-columns:78px minmax(0,1fr)!important}
 body.a4b-sb-mini .sidebar{padding-inline:10px}
 body.a4b-sb-mini .sidebar :is(.nav-label,.brand>div:last-child,.a4b-nt,.sidebar-foot>a:first-child){display:none!important}
 body.a4b-sb-mini .sidebar nav a{justify-content:center;padding-inline:0}
 body.a4b-sb-mini .sidebar nav a.active{padding-right:0;margin-right:-10px}
 body.a4b-sb-mini .sidebar nav{margin-right:-10px;padding-right:10px}
 body.a4b-sb-mini .nav-group.is-collapsed>a{display:flex!important}
}
@media(max-width:900px){.a4b-sbtoggle{display:none}}

/* [JS] rekap: judul kolom, bar progres, alat filter */
.a4b-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:14px 0}
.a4b-tools input[type=search]{flex:1 1 220px;min-height:42px;padding:0 14px}
.a4b-tools select{min-height:42px;padding:0 10px}
.a4b-chips{display:flex;gap:6px;flex-wrap:wrap}
.a4b-chip{min-height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--ux-line);background:var(--ux-surface);color:var(--ux-text);font-weight:800;cursor:pointer}
.a4b-chip[aria-pressed="true"]{background:var(--ux-accent);border-color:var(--ux-accent);color:#fff}
html[data-theme^="blue"] .a4b-chip[aria-pressed="true"]{color:#06112e}
.a4b-colhead{display:grid;gap:12px;padding:0 14px 6px;color:var(--ux-muted);font-size:12px;font-weight:800;letter-spacing:.03em}
.a4b-bar{display:block;height:6px;border-radius:6px;background:color-mix(in srgb,var(--ux-muted) 22%,transparent);margin-top:5px;overflow:hidden}
.a4b-bar b{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#2f6fe8,#6ea8ff)}
.a4b-bar.full b{background:var(--ux-ok)}
.a4b-count{color:var(--ux-muted);font-size:13px;margin-left:auto}

/* [JS] palet perintah (Ctrl+K) */
.a4b-cmd{position:fixed;inset:0;z-index:9998;display:none;align-items:flex-start;justify-content:center;padding-top:12vh;background:rgba(6,17,46,.55);backdrop-filter:blur(4px)}
.a4b-cmd.on{display:flex}
.a4b-cmd>div{width:min(560px,92vw);background:var(--ux-surface);color:var(--ux-text);border:1px solid var(--ux-line);border-radius:18px;box-shadow:0 30px 80px rgba(2,8,28,.5);overflow:hidden}
.a4b-cmd input{width:100%;min-height:54px;border:0;border-bottom:1px solid var(--ux-line);padding:0 18px;font-size:16px;background:transparent;color:inherit;outline:0}
.a4b-cmd ul{list-style:none;margin:0;padding:8px;max-height:50vh;overflow:auto}
.a4b-cmd a{display:block;padding:11px 12px;border-radius:10px;color:inherit;text-decoration:none;font-weight:700}
.a4b-cmd a small{display:block;color:var(--ux-muted);font-weight:500}
.a4b-cmd a:hover,.a4b-cmd a.sel{background:var(--ux-soft)}
.a4b-cmdbtn{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 12px;border:1px solid var(--ux-line);border-radius:12px;background:var(--ux-surface);color:var(--ux-muted);cursor:pointer}
.a4b-cmdbtn kbd{font:700 11px inherit;border:1px solid var(--ux-line);border-radius:6px;padding:1px 6px}

/* [JS] breadcrumb di topbar */
body.a4b-has-h1 .topbar-title b{display:none}
body.a4b-has-h1 .topbar-title span{font-size:13.5px!important;letter-spacing:0!important;text-transform:none!important;font-weight:700;color:var(--ux-text)!important}
.a4b-crumb i{font-style:normal;margin:0 6px;opacity:.5}

/* 8. mobile: kartu bertumpuk, target sentuh 44px */
@media(max-width:700px){
 .btn,.icon-btn,.menu-btn,.notification-button,.a4b-chip,.a4b-cmdbtn,input,select,.sidebar nav a{min-height:44px}
 .uniform-need-row>summary{grid-template-columns:1fr 1fr!important}
 .uniform-need-row>summary>.uniform-need-name{grid-column:1/-1}
 .uniform-need-row>summary>.uniform-need-state{grid-column:1/-1;justify-self:start}
 .a4b-colhead{display:none!important}
 .a4b-cmdbtn kbd,.a4b-cmdbtn span{display:none}
 table.a4b-stack{min-width:0!important}
 table.a4b-stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 table.a4b-stack :is(tbody,tr,td){display:block;width:100%}
 table.a4b-stack tr{border:1px solid var(--ux-line);border-radius:14px;padding:6px 12px;margin:0 0 10px;background:var(--ux-surface)}
 table.a4b-stack td{display:flex!important;justify-content:space-between;gap:14px;border:0!important;padding:8px 0!important;text-align:right}
 table.a4b-stack td::before{content:attr(data-label);font-weight:800;color:var(--ux-muted);text-align:left;font-size:12px}
 table.a4b-stack td:not([data-label])::before{content:none}
 .a4b-toasts{left:12px;right:12px}
}
@media(prefers-reduced-motion:reduce){.a4b-loadbar,.btn[aria-busy]::after,.a4b-toast{animation:none!important;transition:none!important}}
/* ===== akhir A4B UX ===== */
.a4b-chip[aria-pressed="true"]{background:#1747c4;border-color:#1747c4;color:#fff}
html[data-theme="blue-dark"] .a4b-chip[aria-pressed="true"]{background:#60a5fa;border-color:#60a5fa;color:#06112e}
html[data-theme^="glass"] .a4b-chip[aria-pressed="true"]{background:var(--t-accent);border-color:var(--t-accent);color:var(--t-on-accent)}


/* ====================================================================
   A4B SEAMLESS CONNECTED TAB — 9 tema, 24 Oktober 2026
   Semua elemen menu aktif dan permukaan .main memakai warna solid yg SAMA.
   Tidak mempengaruhi website publik, transaksi, AJAX atau formulir.
   ==================================================================== */
html{
  --a4b-join-surface:#f4f7fb;
  --a4b-join-ink:#0638b8;
  --a4b-join-icon-bg:#e3ebfc;
  --a4b-join-cut:18px;
  --a4b-join-edge:15px;
}
html[data-theme="blue-light"]{
  --a4b-join-surface:var(--b-bg,#f2f6fd);
  --a4b-join-ink:#123c9c;
  --a4b-join-icon-bg:#dce8ff;
}
html[data-theme="blue-dark"]{
  --a4b-join-surface:var(--b-bg,#071230);
  --a4b-join-ink:#e9f0ff;
  --a4b-join-icon-bg:#183665;
}
html[data-theme="glass-dark"],
html[data-theme="glass-ocean"],
html[data-theme="glass-angkasa"]{
  --a4b-join-surface:var(--t-bg,#070b1c);
  --a4b-join-ink:var(--t-text,#f5f5f7);
  --a4b-join-icon-bg:var(--t-surface-2,#1a274c);
}
html[data-theme="glass-light"],
html[data-theme="glass-awan"],
html[data-theme="glass-bumi"]{
  --a4b-join-surface:var(--t-bg,#eff3fc);
  --a4b-join-ink:var(--t-text,#14213d);
  --a4b-join-icon-bg:var(--t-surface-2,#e0e8fa);
}
@media(min-width:1051px){
  /* Tidak ada garis atau bayangan antara sidebar dengan halaman. */
  html body .admin-shell > .sidebar,
  html body .sidebar{border-right:0!important;box-shadow:none!important}
  html body .admin-shell > .main,
  html body .main{
    background-color:var(--a4b-join-surface)!important;
    background-image:none!important;
    border-left:0!important;
    box-shadow:none!important;
    min-width:0;
  }
  /* Warna yang serupa juga untuk glass: jangan menaruh gradien di belakang
     tab, sebab elemen beda posisi tak mungkin 100% sama gradiennya. */
  html body .sidebar nav{
    margin-right:calc(-1 * var(--a4b-join-edge))!important;
    padding-right:var(--a4b-join-edge)!important;
    scrollbar-width:none;
  }
  html body .sidebar nav::-webkit-scrollbar{display:none}
  html[data-theme] body .admin-shell .sidebar nav a.active,
  html[data-theme] body .admin-shell .sidebar nav a[aria-current="page"]{
    position:relative;
    z-index:1;
    isolation:isolate;
    margin-right:calc(-1 * var(--a4b-join-edge))!important;
    padding-right:calc(11px + var(--a4b-join-edge))!important;
    border:0!important;
    border-radius:999px 0 0 999px!important;
    background:var(--a4b-join-surface)!important;
    background-image:none!important;
    color:var(--a4b-join-ink)!important;
    box-shadow:none!important;
    text-shadow:none!important;
    transition:none!important;
    transform:none!important;
  }
  html[data-theme] body .admin-shell .sidebar nav a.active .nav-icon,
  html[data-theme] body .admin-shell .sidebar nav a[aria-current="page"] .nav-icon{
    color:var(--a4b-join-ink)!important;
    background:var(--a4b-join-icon-bg)!important;
    box-shadow:none!important;
  }
  html[data-theme] body .admin-shell .sidebar nav a.active::before,
  html[data-theme] body .admin-shell .sidebar nav a.active::after,
  html[data-theme] body .admin-shell .sidebar nav a[aria-current="page"]::before,
  html[data-theme] body .admin-shell .sidebar nav a[aria-current="page"]::after{
    content:"";
    position:absolute;
    right:0;
    width:var(--a4b-join-cut);
    height:var(--a4b-join-cut);
    background:transparent;
    pointer-events:none;
  }
  html[data-theme] body .admin-shell .sidebar nav a.active::before,
  html[data-theme] body .admin-shell .sidebar nav a[aria-current="page"]::before{
    top:calc(-1 * var(--a4b-join-cut));
    border-bottom-right-radius:var(--a4b-join-cut);
    box-shadow:7px 7px 0 7px var(--a4b-join-surface);
  }
  html[data-theme] body .admin-shell .sidebar nav a.active::after,
  html[data-theme] body .admin-shell .sidebar nav a[aria-current="page"]::after{
    bottom:calc(-1 * var(--a4b-join-cut));
    border-top-right-radius:var(--a4b-join-cut);
    box-shadow:7px -7px 0 7px var(--a4b-join-surface);
  }
  html body.a4b-sb-mini{--a4b-join-edge:10px;--a4b-join-cut:12px}
  html[data-theme] body.a4b-sb-mini .admin-shell .sidebar nav a.active,
  html[data-theme] body.a4b-sb-mini .admin-shell .sidebar nav a[aria-current="page"]{
    padding-left:0!important;
    padding-right:var(--a4b-join-edge)!important;
    justify-content:center;
  }
  html[data-theme] body.a4b-sb-mini .admin-shell .sidebar nav a.active .nav-icon,
  html[data-theme] body.a4b-sb-mini .admin-shell .sidebar nav a[aria-current="page"] .nav-icon{margin-inline:auto}
}
/* Sidebar pada mobile berfungsi sebagai drawer — tidak disambungkan ke
   konten yang tersembunyi di belakang drawer. */
@media(max-width:1050px){
  html[data-theme] body .admin-shell .sidebar nav a.active,
  html[data-theme] body .admin-shell .sidebar nav a[aria-current="page"]{
    margin-right:0!important;
    padding-right:12px!important;
    border-radius:12px!important;
    background:var(--a4b-join-surface)!important;
    background-image:none!important;
    color:var(--a4b-join-ink)!important;
    box-shadow:none!important;
  }
  html[data-theme] body .admin-shell .sidebar nav a.active::before,
  html[data-theme] body .admin-shell .sidebar nav a.active::after,
  html[data-theme] body .admin-shell .sidebar nav a[aria-current="page"]::before,
  html[data-theme] body .admin-shell .sidebar nav a[aria-current="page"]::after{display:none!important}
  body.a4b-sb-mini .a4b-sbtoggle{display:none!important}
  html body.a4b-sb-mini .admin-shell{grid-template-columns:1fr!important}
}
/* ====================================================================
   A4B MODE HEMAT VISUAL — ON/OFF lokal per browser.
   Kurangi komposisi GPU/animasi kosmetik, BUKAN mengubah muatan data API,
   aksi Ajax, spinner pemrosesan, atau mekanisme konfirmasi.
   ==================================================================== */
.a4b-eco-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex:0 0 auto;
  min-height:40px;
  padding:6px 11px;
  border:1px solid color-mix(in srgb,currentColor 25%,transparent);
  border-radius:11px;
  background:transparent;
  color:inherit;
  font:inherit;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
}
.a4b-eco-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.a4b-eco-toggle[aria-pressed="true"]{background:var(--a4b-join-icon-bg);color:var(--a4b-join-ink);border-color:var(--a4b-join-ink)}
.a4b-eco-toggle:focus-visible{outline:3px solid var(--a4b-join-ink);outline-offset:2px}
@media(max-width:700px){.a4b-eco-toggle{padding:7px;min-width:42px;min-height:42px}.a4b-eco-toggle .a4b-eco-caption{display:none}}
html[data-a4b-eco="on"] body,
html[data-a4b-eco="on"] body::before,
html[data-a4b-eco="on"] body::after{background-attachment:scroll!important}
html[data-a4b-eco="on"] :is(.sidebar,.topbar,.panel,.panel-box,.stat,.stat-card,.training-admin-card,.v80-card,.v80-hero,.dialog,.modal,.notification-modal,.shortcut-card,.a4b-cmd){
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  filter:none!important;
  box-shadow:none!important;
  transition:none!important;
  animation:none!important;
}
html[data-a4b-eco="on"] :is(.sidebar nav a,.sidebar nav a.active,.btn,.shortcut-card,.a4b-chip,.a4b-sbtoggle,.table-wrap tbody tr){
  animation:none!important;
  transition:none!important;
  transform:none!important;
}
html[data-a4b-eco="on"] .a4b-cmd{backdrop-filter:none!important}
@media(prefers-reduced-motion:reduce){
  .sidebar nav a,.sidebar nav a.active,.a4b-eco-toggle{transition:none!important;animation:none!important}
}
@media print{
  .a4b-eco-toggle{display:none!important}
}

/* ===========================================================================
   A4B ADMIN UI REPAIR — 24 OCT 2026
   CSS ONLY. Adapted to REAL DOM emitted by a4b-ui-enhancements.js.
   No JS/API/form IDs/routes/menu labels/back-end touched.
   =========================================================================== */
html[data-theme] body.a4b-admin-fullscreen {
  --a4b-fix-topbar-height:70px;
  --a4b-fix-radius:12px;
  --a4b-fix-sidebar-muted:#aebfde;
  --a4b-fix-nav-hover:rgba(255,255,255,.085);
  --a4b-fix-side-indicator:#75ddd5;
}
html[data-theme^="glass"] body.a4b-admin-fullscreen {
  --a4b-fix-sidebar-muted:var(--t-muted,#bdc9e3);
  --a4b-fix-side-indicator:var(--t-accent-text,#80c9ff);
}
html[data-theme="blue-light"] body.a4b-admin-fullscreen,
html[data-theme="blue-dark"] body.a4b-admin-fullscreen {
  --a4b-fix-sidebar-muted:#b8c9e8;
  --a4b-fix-side-indicator:#67dbd4;
}
/* A. Topbar: one stable row, readable breadcrumb, no wrap or clipping. */
html[data-theme] body.a4b-admin-fullscreen .main{min-width:0}
html[data-theme] body.a4b-admin-fullscreen .topbar,
html[data-theme^="glass"] body.a4b-admin-fullscreen .topbar {
  box-sizing:border-box;
  position:sticky;
  top:0!important;
  height:var(--a4b-fix-topbar-height)!important;
  min-height:var(--a4b-fix-topbar-height)!important;
  max-height:var(--a4b-fix-topbar-height)!important;
  margin:0!important;
  padding:0 clamp(14px,1.5vw,24px)!important;
  border-radius:0!important;
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:clamp(8px,1vw,14px);
  overflow:visible;
  z-index:80;
}
html[data-theme] body.a4b-admin-fullscreen .topbar-title {
  min-width:0!important;
  flex:1 1 auto!important;
  width:0;
  display:flex!important;
  flex-direction:column;
  justify-content:center;
  gap:3px;
  margin-right:0!important;
  white-space:normal;
  overflow:hidden;
  font-family:inherit!important;
  font-variant:normal;
}
html[data-theme] body.a4b-admin-fullscreen .topbar-title > span{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap!important;
  line-height:1.2;
  font-size:10px!important;
  font-weight:650!important;
  letter-spacing:.055em!important;
  text-transform:none!important;
}
html[data-theme] body.a4b-admin-fullscreen .topbar-title > b:not(.sr-only){
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  max-width:100%;font-size:14px;line-height:1.35;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-breadcrumb {
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  width:100%;max-width:100%;min-width:0;
  margin:0;padding:0;gap:7px;
  white-space:nowrap!important;
  overflow:hidden;
  font:500 13px/1.4 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  letter-spacing:0!important;
  text-transform:none!important;
  color:var(--ux-muted,#aebbd2);
}
html[data-theme] body.a4b-admin-fullscreen .a4b-breadcrumb > span {
  display:block;flex:0 1 auto;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important;
  max-width:28%;font:inherit!important;letter-spacing:inherit!important;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-breadcrumb > .crumb-sep {
  flex:0 0 auto!important;width:auto;max-width:none;overflow:visible;
  opacity:.62;font-size:13px;font-weight:500;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-breadcrumb > [aria-current="page"] {
  flex:0 1 auto;max-width:65%;font-weight:800!important;color:var(--ux-text,#f2f5ff)!important;
}
html[data-theme] body.a4b-admin-fullscreen .topbar-actions {
  display:flex!important;flex:0 0 auto;min-width:0;
  align-items:center;justify-content:flex-end;
  gap:8px!important;flex-wrap:nowrap!important;
}
html[data-theme] body.a4b-admin-fullscreen .topbar-actions > *,
html[data-theme] body.a4b-admin-fullscreen .topbar-actions > .a4b-quick-search > button {
  box-sizing:border-box;
}
html[data-theme] body.a4b-admin-fullscreen .topbar-actions :is(.notification-button,.a4b-theme-btn,.a4b-eco-toggle),
html[data-theme] body.a4b-admin-fullscreen .a4b-quick-search > button {
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 auto;
  width:auto;min-width:40px;height:40px;min-height:40px;max-height:40px;
  padding:0 10px;
  margin:0;
  appearance:none;-webkit-appearance:none;
  font:700 13px/1.2 Inter,ui-sans-serif,system-ui,sans-serif;
  border-radius:11px;
  border:1px solid var(--ux-line,#58719c);
  background:var(--ux-surface,#152d55);
  color:var(--ux-text,#eff4ff);
  cursor:pointer;
  box-shadow:none;
}
html[data-theme] body.a4b-admin-fullscreen .topbar-actions :is(.notification-button,.a4b-theme-btn,.a4b-eco-toggle):focus-visible,
html[data-theme] body.a4b-admin-fullscreen .a4b-quick-search > button:focus-visible {
  outline:2px solid var(--ux-accent,#5c9cff);outline-offset:3px;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-header-clock {
  display:flex;align-items:center;justify-content:center;
  height:40px;min-height:40px;max-height:40px;
  box-sizing:border-box;max-width:min(27vw,300px);
  margin:0!important;padding:0 10px;
  border-radius:11px;
  overflow:hidden;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-header-clock time{
  display:block;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;
  max-width:100%!important;line-height:1.25;
}
html[data-theme] body.a4b-admin-fullscreen .profile-chip{
  height:40px;min-height:40px;max-height:40px;box-sizing:border-box;
  border-radius:11px;white-space:nowrap;
}
/* The actual search UI is a4b-quick-search/a4b-search-popup, NOT a4b-cmd. */
html[data-theme] body.a4b-admin-fullscreen .a4b-quick-search {position:relative;display:flex;flex:0 0 auto;align-items:center;min-width:0;isolation:isolate}
html[data-theme] body.a4b-admin-fullscreen .a4b-quick-search > button {
  width:40px!important;min-width:40px!important;padding:0!important;
  font-size:23px!important;line-height:1!important;text-align:center;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-search-popup[hidden]{display:none!important}
html[data-theme] body.a4b-admin-fullscreen .a4b-search-popup:not([hidden]){
  display:block!important;
  position:absolute!important;z-index:500;
  inset:auto 0 auto auto;
  top:calc(100% + 13px)!important;
  width:min(440px,calc(100vw - 32px));
  max-width:calc(100vw - 32px);
  max-height:min(65dvh,570px);
  overflow:auto;overscroll-behavior:contain;
  padding:14px;
  background:var(--ux-surface,#fff)!important;
  color:var(--ux-text,#14213d)!important;
  border:1px solid var(--ux-line,#dce5f1)!important;
  border-radius:16px;
  box-shadow:0 20px 55px rgba(4,15,42,.38);
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-search-popup label{
  display:flex!important;flex-direction:column!important;align-items:stretch;
  gap:9px;margin:0 0 10px;padding:0;
  font:800 12px/1.35 Inter,ui-sans-serif,system-ui,sans-serif!important;
  letter-spacing:0!important;text-align:left;
  color:var(--ux-text,#14213d)!important;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-search-popup input[type="search"]{
  display:block!important;width:100%;min-height:44px;height:44px;
  font-size:14px!important;letter-spacing:0!important;
  background:var(--ux-surface,#fff);color:var(--ux-text,#14213d);
  border:1px solid var(--ux-line,#dce5f1);border-radius:10px;
  padding:0 12px;box-sizing:border-box;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-search-results{
  display:flex!important;flex-direction:column;gap:3px;
  min-width:0;max-height:45dvh;overflow-y:auto;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-search-results > a{
  display:block;width:100%;min-width:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  padding:10px 12px;border-radius:9px;
  font:650 13px/1.4 Inter,ui-sans-serif,system-ui,sans-serif!important;
  color:var(--ux-text,#14213d)!important;
  text-align:left;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-search-results > a:hover,
html[data-theme] body.a4b-admin-fullscreen .a4b-search-results > a:focus-visible{
  background:var(--ux-soft,#edf3ff)!important;
  outline-offset:-2px;
}
/* B. Sidebar: reset browser button appearance on REAL generated controls. */
html[data-theme] body.a4b-admin-fullscreen .sidebar {
  min-height:0;max-height:100dvh;
  overflow:hidden;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar #adminSidebarNav {
  display:flex!important;flex-direction:column;align-items:stretch;
  min-height:0;min-width:0;flex:1 1 auto;
  overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain;
  gap:9px!important;
  padding-block:14px!important;
  scrollbar-width:thin;
  scrollbar-color:rgba(172,194,236,.38) transparent;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group {
  display:flex!important;flex-direction:column;flex:0 0 auto;
  width:100%;min-width:0;gap:2px;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-toggle {
  all:unset;
  box-sizing:border-box;
  display:flex!important;align-items:center;justify-content:space-between;
  width:100%;min-height:32px;
  padding:7px 10px!important;
  border:0!important;border-radius:8px;
  background:transparent!important;
  color:var(--a4b-fix-sidebar-muted)!important;
  font:800 11.5px/1.35 Inter,ui-sans-serif,system-ui,sans-serif!important;
  letter-spacing:.075em!important;text-transform:uppercase!important;text-align:left!important;
  white-space:nowrap;
  cursor:pointer;
  box-shadow:none!important;text-shadow:none!important;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-toggle > span:first-child {
  display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap!important;font:inherit!important;letter-spacing:inherit!important;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-toggle .chevron {
  display:inline-flex!important;align-items:center;justify-content:center;
  margin-left:8px;flex:0 0 15px;
  font:800 17px/1 system-ui,sans-serif!important;
  transition:transform .16s ease;
  transform:rotate(-90deg);
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-toggle[aria-expanded="true"] .chevron{transform:rotate(0deg)}
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-toggle:hover,
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-toggle:focus-visible{
  background:var(--a4b-fix-nav-hover)!important;
  color:#fff!important;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group:has(.nav-group-items a.active) > .nav-group-toggle{
  color:#f6fbff!important;
  border-left:2px solid var(--a4b-fix-side-indicator)!important;
  padding-left:8px!important;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-items {
  display:flex;flex-direction:column;gap:3px;
  width:100%;min-width:0;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-items[hidden]{display:none!important}
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-items > a {
  box-sizing:border-box;display:flex;align-items:center;
  min-height:43px;padding-block:6px;
  font-size:13px!important;line-height:1.3;
  min-width:0;gap:10px;
  white-space:normal;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-items > a > span:last-child {
  min-width:0;overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-items > a:focus-visible {
  outline:2px solid var(--a4b-fix-side-indicator)!important;outline-offset:-3px;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-items > a.active,
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-items > a[aria-current="page"]{
  border-left:3px solid var(--a4b-fix-side-indicator)!important;
  padding-left:8px!important;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-icon{
  display:grid!important;flex:0 0 31px;
  width:31px;height:31px;
  place-items:center;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-icon svg{width:18px;height:18px;flex:0 0 18px}
html[data-theme] body.a4b-admin-fullscreen .sidebar .sidebar-collapse-control {
  appearance:none;-webkit-appearance:none;
  display:flex!important;align-items:center;justify-content:center;
  flex:0 0 auto;width:100%;min-height:36px;
  padding:7px 10px;margin:6px 0 10px;
  background:transparent!important;
  border:1px solid rgba(203,221,255,.27)!important;
  border-radius:9px;
  color:var(--a4b-fix-sidebar-muted)!important;
  font:650 12px/1.25 Inter,ui-sans-serif,system-ui,sans-serif!important;
  text-align:center!important;letter-spacing:0!important;
  cursor:pointer;box-shadow:none!important;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .sidebar-collapse-control:hover,
html[data-theme] body.a4b-admin-fullscreen .sidebar .sidebar-collapse-control:focus-visible{
  background:var(--a4b-fix-nav-hover)!important;
  color:#fff!important;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .sidebar-foot {flex:0 0 auto;gap:5px;min-width:0}
html[data-theme] body.a4b-admin-fullscreen .sidebar .sidebar-foot a:first-child {
  min-height:35px;display:flex;align-items:center;
  padding-inline:10px;font-size:12px;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .sidebar-foot .logout{
  min-height:38px;display:flex;align-items:center;justify-content:center;
  background:transparent!important;
  border:1px solid rgba(203,221,255,.38)!important;
  color:#f2f6ff!important;border-radius:10px;
  font-size:12px;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .sidebar-foot .logout:hover{background:var(--a4b-fix-nav-hover)!important}
/* Sidebar compact mode generated class differs from older a4b-sb-mini. */
@media(min-width:1051px){
  html[data-theme] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .admin-shell{grid-template-columns:78px minmax(0,1fr)!important}
  html[data-theme] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .sidebar{padding-inline:8px!important}
  html[data-theme] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .sidebar .brand{padding:6px 0 14px;justify-content:center}
  html[data-theme] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .sidebar .brand > span{display:none!important}
  html[data-theme] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .sidebar .brand img{width:44px;height:44px}
  html[data-theme] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .sidebar .nav-group-toggle{display:none!important}
  html[data-theme] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .sidebar .nav-group{gap:5px}
  html[data-theme] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .sidebar .nav-group-items > a {
    margin-inline:0!important;margin-right:0!important;
    padding:5px 0!important;justify-content:center!important;
    min-height:44px;border-radius:11px!important;
  }
  html[data-theme] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .sidebar .nav-group-items > a > span:last-child{display:none!important}
  html[data-theme] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .sidebar .nav-icon{margin:0!important}
  html[data-theme] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .sidebar .nav-group-items > a::before,
  html[data-theme] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .sidebar .nav-group-items > a::after{display:none!important}
  html[data-theme] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .sidebar .sidebar-collapse-control{
    font-size:0!important;min-width:42px;padding:0;border-radius:10px;
  }
  html[data-theme] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .sidebar .sidebar-collapse-control::after{
    content:'»';font-size:19px;line-height:1;
  }
  html[data-theme] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .sidebar .sidebar-foot > a:first-child{display:none!important}
  html[data-theme] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .sidebar .sidebar-foot .logout{
    font-size:0!important;min-width:42px;min-height:42px;
  }
  html[data-theme] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .sidebar .sidebar-foot .logout::after{content:'↪';font-size:22px}
}
/* C. Page header and training cards: only layout and type; content untouched. */
html[data-theme] body.a4b-admin-fullscreen .content {
  box-sizing:border-box;max-width:1680px;
  width:100%;min-width:0;
  padding:clamp(20px,2vw,32px)!important;
}
html[data-theme] body.a4b-admin-fullscreen .content :is(.page-title,.row-between-title){min-width:0}
html[data-theme] body.a4b-admin-fullscreen .content .page-title {
  margin-block:0 24px;
}
html[data-theme] body.a4b-admin-fullscreen .content .page-title.row-between-title {
  display:flex;flex-wrap:wrap;
  align-items:center;justify-content:space-between;
  gap:20px;
}
html[data-theme] body.a4b-admin-fullscreen .content .page-title.row-between-title > div:first-child {
  min-width:0;flex:1 1 340px;
}
html[data-theme] body.a4b-admin-fullscreen .content .page-title h1 {
  font-size:clamp(24px,2vw,34px);
  line-height:1.2;letter-spacing:-.025em;
  margin:6px 0 10px;
}
html[data-theme] body.a4b-admin-fullscreen .content .page-title > div > span,
html[data-theme] body.a4b-admin-fullscreen .content .page-title > span,
html[data-theme] body.a4b-admin-fullscreen .content .section-heading .eyebrow{
  display:block;font-size:12px!important;letter-spacing:.065em!important;
  line-height:1.35;text-transform:uppercase;
}
html[data-theme] body.a4b-admin-fullscreen .content .page-title p {
  max-width:80ch;font-size:14px!important;line-height:1.7;
}
html[data-theme] body.a4b-admin-fullscreen .content .section-heading{
  margin:24px 0 15px;min-width:0;
}
html[data-theme] body.a4b-admin-fullscreen .content .section-heading h2{
  font-size:clamp(18px,1.6vw,24px);line-height:1.3;margin:6px 0;
}
html[data-theme] body.a4b-admin-fullscreen .content .section-heading p{font-size:14px!important;line-height:1.65;max-width:82ch}
/* First tab group in Daftar Pelatihan keeps DOM order for accessibility. */
html[data-theme] body.a4b-admin-fullscreen .content:has(> .training-list-cards) > .actions:first-child{
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  margin:6px 0 24px!important;
  padding-bottom:14px;
  border-bottom:1px solid var(--ux-line,#dce5f1);
}
html[data-theme] body.a4b-admin-fullscreen .content:has(> .training-list-cards) > .actions:first-child > .btn{
  min-height:42px;padding:9px 16px;
  border-radius:10px;
  box-shadow:none;
}
html[data-theme] body.a4b-admin-fullscreen .content .page-title .training-card-actions {
  display:flex;align-items:center;justify-content:flex-end;
  min-width:0;margin:0;
}
html[data-theme] body.a4b-admin-fullscreen .content .page-title .training-card-actions > .btn {
  margin:0;min-height:44px;white-space:nowrap;
}
html[data-theme] body.a4b-admin-fullscreen .content .training-list-cards{min-width:0;gap:16px}
html[data-theme] body.a4b-admin-fullscreen .content .training-admin-card{
  min-width:0;padding:clamp(18px,2vw,26px);
  overflow-wrap:break-word;
}
html[data-theme] body.a4b-admin-fullscreen .content .training-info-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;
}
html[data-theme] body.a4b-admin-fullscreen .content .training-info-grid span {
  min-width:0;font-size:12px!important;
}
html[data-theme] body.a4b-admin-fullscreen .content .training-info-grid b{
  font-size:14px!important;overflow-wrap:anywhere;
}
html[data-theme] body.a4b-admin-fullscreen .content .training-card-top,
html[data-theme] body.a4b-admin-fullscreen .content .schedule-strip{
  min-width:0;flex-wrap:wrap;
}
html[data-theme] body.a4b-admin-fullscreen .content .training-card-actions{
  flex-wrap:wrap;align-items:center;
}
/* Maintain all form/button values, IDs, confirmation and JS behavior. */
html[data-theme] body.a4b-admin-fullscreen .content .btn{font-size:13px;line-height:1.35}
html[data-theme] body.a4b-admin-fullscreen .content .status-pill{font-size:12px!important}
html[data-theme] body.a4b-admin-fullscreen .content :is(.note,.page-title p,.section-heading p){overflow-wrap:break-word}
@media(max-width:1450px){
  html[data-theme] body.a4b-admin-fullscreen .topbar-actions{gap:6px!important}
  html[data-theme] body.a4b-admin-fullscreen .a4b-header-clock{max-width:230px}
}
@media(max-width:1100px){
  html[data-theme] body.a4b-admin-fullscreen .a4b-header-clock{display:none!important}
  html[data-theme] body.a4b-admin-fullscreen .a4b-eco-toggle .a4b-eco-caption{display:none!important}
  html[data-theme] body.a4b-admin-fullscreen .a4b-eco-toggle{min-width:40px!important;padding:0!important}
  html[data-theme] body.a4b-admin-fullscreen .topbar-title > span{font-size:9.5px!important}
  html[data-theme] body.a4b-admin-fullscreen .a4b-breadcrumb > span:not([aria-current="page"]):not(.crumb-sep){display:none!important}
  html[data-theme] body.a4b-admin-fullscreen .a4b-breadcrumb > .crumb-sep{display:none!important}
  html[data-theme] body.a4b-admin-fullscreen .a4b-breadcrumb > [aria-current="page"]{max-width:100%;flex:1 1 auto}
  html[data-theme] body.a4b-admin-fullscreen .content .training-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1050px){
  html[data-theme] body.a4b-admin-fullscreen .sidebar {height:100dvh;max-height:100dvh}
  html[data-theme] body.a4b-admin-fullscreen .menu-btn{display:inline-grid;place-items:center;min-width:40px;min-height:40px;flex:0 0 40px}
  html[data-theme] body.a4b-admin-fullscreen .topbar-title{display:flex!important}
  html[data-theme] body.a4b-admin-fullscreen .sidebar .sidebar-collapse-control{display:none!important}
  html[data-theme] body.a4b-admin-fullscreen .content .page-title.row-between-title{align-items:stretch}
}
@media(max-width:700px){
  html[data-theme] body.a4b-admin-fullscreen{--a4b-fix-topbar-height:64px}
  html[data-theme] body.a4b-admin-fullscreen .topbar{gap:7px;padding-inline:10px!important}
  html[data-theme] body.a4b-admin-fullscreen .topbar-title > span{display:none!important}
  html[data-theme] body.a4b-admin-fullscreen .topbar-title > b:not(.sr-only){font-size:13px}
  html[data-theme] body.a4b-admin-fullscreen .a4b-breadcrumb{font-size:12px!important}
  html[data-theme] body.a4b-admin-fullscreen .profile-chip{padding:4px!important;min-width:40px;width:40px;justify-content:center}
  html[data-theme] body.a4b-admin-fullscreen .profile-chip .profile-chip-text{display:none!important}
  html[data-theme] body.a4b-admin-fullscreen .topbar-actions{gap:4px!important}
  html[data-theme] body.a4b-admin-fullscreen .a4b-search-popup:not([hidden]){
    position:fixed!important;top:calc(var(--a4b-fix-topbar-height) + 8px)!important;
    left:12px!important;right:12px!important;width:auto;max-width:none;
  }
  html[data-theme] body.a4b-admin-fullscreen .content{padding:18px 14px!important}
  html[data-theme] body.a4b-admin-fullscreen .content .page-title.row-between-title{flex-direction:column;align-items:stretch;gap:14px}
  html[data-theme] body.a4b-admin-fullscreen .content .page-title.row-between-title > div:first-child{flex-basis:auto}
  html[data-theme] body.a4b-admin-fullscreen .content .page-title .training-card-actions,
  html[data-theme] body.a4b-admin-fullscreen .content .page-title .training-card-actions > .btn{width:100%;justify-content:center}
  html[data-theme] body.a4b-admin-fullscreen .content .training-info-grid{grid-template-columns:1fr 1fr}
  html[data-theme] body.a4b-admin-fullscreen .content .training-admin-card{padding:16px}
  html[data-theme] body.a4b-admin-fullscreen .content .training-card-top{align-items:flex-start}
  html[data-theme] body.a4b-admin-fullscreen .content .training-card-top small{max-width:100%;overflow-wrap:anywhere}
}
@media(max-width:450px){
  html[data-theme] body.a4b-admin-fullscreen .topbar-title > span{display:none!important}
  html[data-theme] body.a4b-admin-fullscreen .topbar-actions .profile-chip{display:none!important}
  html[data-theme] body.a4b-admin-fullscreen .topbar-actions .notification-button{width:40px!important;padding:0!important}
  html[data-theme] body.a4b-admin-fullscreen .content .training-info-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-toggle .chevron{transition:none!important}
}
/* Fixed top progress indicator; visible only during real shell navigation. */
html[data-theme] body.a4b-admin-fullscreen .admin-progress:not(.active){opacity:0!important;height:0!important}
html[data-theme] body.a4b-admin-fullscreen .admin-progress.active{height:3px!important}
html[data-theme] body.a4b-admin-fullscreen .a4b-loadbar:not(.on){display:none!important}
/* Keep the supplied training sort controls together on narrow screens. */
@media(max-width:700px){
  html[data-theme] body.a4b-admin-fullscreen .content nav.actions[aria-label="Urutkan daftar angkatan"] > .note{
    flex-basis:100%;margin:0!important;
  }
  html[data-theme] body.a4b-admin-fullscreen .content nav.actions[aria-label="Urutkan daftar angkatan"] > a.btn{
    flex:1 1 120px;min-width:0;padding:9px 8px;
    font-size:11.5px!important;text-align:center;white-space:nowrap;
  }
}
/* ===========================================================================
   END A4B ADMIN UI REPAIR
   =========================================================================== */


/* ===== A4B 2026-10-24 PRODUCTION HARDENING: tema + menu admin =====
   Sama untuk 9 tema. Selector mengacu pada DOM theme.js dan a4b-ui-enhancements.js.
   Tidak menyentuh label/URL/aksi maupun elemen bisnis. */
html[data-theme] body.a4b-admin-fullscreen .topbar-actions > .a4b-theme{
  position:relative!important;display:flex!important;align-items:center;
  flex:0 0 auto;min-width:40px;isolation:isolate;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-theme > .a4b-theme-pop{
  display:none!important;position:absolute!important;z-index:1000!important;
  top:calc(100% + 12px)!important;right:0!important;left:auto!important;
  width:275px!important;max-width:min(300px,calc(100vw - 24px))!important;
  max-height:min(74dvh,630px)!important;overflow-y:auto!important;overflow-x:hidden!important;
  padding:12px!important;margin:0!important;
  border:1px solid var(--ux-line,#d7e2f3)!important;border-radius:16px!important;
  box-shadow:0 22px 55px rgba(1,15,46,.32)!important;
  background:var(--ux-surface,#fff)!important;color:var(--ux-text,#14213d)!important;
  text-align:left!important;box-sizing:border-box!important;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-theme.open > .a4b-theme-pop{
  display:flex!important;flex-direction:column!important;gap:2px!important;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-theme-pop > h4{
  flex:none;margin:2px 4px 9px!important;font:800 12px/1.4 system-ui,sans-serif!important;
  letter-spacing:.04em!important;color:inherit!important;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-theme-pop > .a4b-theme-opt{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;
  width:100%!important;flex:none!important;gap:10px!important;
  min-height:41px!important;margin:0!important;padding:7px 10px!important;
  background:transparent!important;border:1px solid transparent!important;
  border-radius:9px!important;box-shadow:none!important;
  color:inherit!important;font:650 13px/1.3 system-ui,sans-serif!important;
  text-align:left!important;white-space:nowrap!important;cursor:pointer;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-theme-pop > .a4b-theme-opt:hover,
html[data-theme] body.a4b-admin-fullscreen .a4b-theme-pop > .a4b-theme-opt:focus-visible{
  background:var(--ux-soft,rgba(128,160,210,.14))!important;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-theme-pop > .a4b-theme-opt[aria-pressed="true"]{
  border-color:var(--ux-accent,#4b91ff)!important;
  background:var(--ux-soft,rgba(128,160,210,.14))!important;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-theme-sw{
  flex:0 0 27px!important;width:27px!important;height:27px!important;display:block!important;
  border-radius:7px!important;box-shadow:none!important;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-theme-pop > .a4b-theme-note{
  flex:none;margin:7px 4px 2px!important;padding:0!important;
  color:var(--ux-muted,#7184a5)!important;font:500 12px/1.5 system-ui,sans-serif!important;
  white-space:normal!important;overflow-wrap:break-word!important;
}
/* Paksa ukuran SVG hemat/icon konsisten meskipun aturan tema lama lebih spesifik. */
html[data-theme] body.a4b-admin-fullscreen .topbar-actions > .a4b-eco-toggle{
  box-sizing:border-box!important;flex:0 0 auto!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;gap:7px!important;
  min-width:40px!important;height:40px!important;max-height:40px!important;
  padding:0 10px!important;margin:0!important;white-space:nowrap!important;
  background:var(--ux-surface,#0c285d)!important;border:1px solid var(--ux-line,#42608e)!important;
  border-radius:11px!important;color:var(--ux-text,#f1f6ff)!important;
  font:650 12px/1.2 system-ui,sans-serif!important;box-shadow:none!important;
}
html[data-theme] body.a4b-admin-fullscreen .topbar-actions > .a4b-eco-toggle > svg,
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-icon > svg{
  box-sizing:content-box!important;width:18px!important;height:18px!important;
  min-width:18px!important;max-width:18px!important;min-height:18px!important;max-height:18px!important;
  flex:0 0 18px!important;fill:none!important;stroke:currentColor!important;
  stroke-width:1.9;stroke-linejoin:round;stroke-linecap:round;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-toggle{
  appearance:none!important;-webkit-appearance:none!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  box-shadow:none!important;text-shadow:none!important;
  background:transparent!important;border:0!important;
  width:100%!important;max-width:100%!important;
  text-align:left!important;
}
/* Kebijakan browser [hidden] harus menang, termasuk ketika JS membuka/menutup panel. */
html[data-theme] body.a4b-admin-fullscreen .a4b-search-popup[hidden],
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-items[hidden]{display:none!important}
@media(min-width:1051px){
 html[data-theme^="glass"] body.a4b-admin-fullscreen.a4b-sidebar-collapsed .sidebar{
  box-sizing:border-box!important;width:78px!important;max-width:78px!important;
  margin:0!important;top:0!important;height:100dvh!important;border-radius:0!important;
 }
}
@media(max-width:700px){
 html[data-theme] body.a4b-admin-fullscreen .a4b-theme > .a4b-theme-pop{
   position:fixed!important;top:72px!important;right:12px!important;
   width:min(300px,calc(100vw - 24px))!important;
 }
}


/* A4B CONTRAST FIX 2026-10-24 — paired surfaces and foregrounds; visual only
   Tujuan: warna foreground SELALU dipasangkan dengan surface riil yang sama.
   CSS ini ditempatkan terakhir agar mengalahkan aturan !important tema lama,
   tanpa mengubah geometri/layout dan tidak menyentuh JS/PHP/markup. */
html {
  --a4b-cr-card:#ffffff;--a4b-cr-soft:#f4f7fd;--a4b-cr-text:#14213d;
  --a4b-cr-muted:#4e5d79;--a4b-cr-line:#ccd8ea;
  --a4b-cr-ok-bg:#dcfce7;--a4b-cr-ok-text:#14532d;
  --a4b-cr-bad-bg:#fee2e2;--a4b-cr-bad-text:#991b1b;
  --a4b-cr-warn-bg:#ffedd5;--a4b-cr-warn-text:#92400e;
  --a4b-cr-sidebar-text:#eaf2ff;--a4b-cr-sidebar-muted:#c0cee8;
}
/* Tema terang termasuk Awan; Bumi justru tema GELAP menurut token aslinya. */
html:is([data-theme="classic"],[data-theme="blue-light"],
        [data-theme="glass-light"],[data-theme="glass-awan"]){
  --a4b-cr-card:#ffffff;--a4b-cr-soft:#f4f7fd;
  --a4b-cr-text:#14213d;--a4b-cr-muted:#4e5d79;--a4b-cr-line:#ccd8ea;
}
html:is([data-theme="glass-dark"],[data-theme="glass-ocean"],
        [data-theme="glass-bumi"],[data-theme="glass-angkasa"],
        [data-theme="blue-dark"]){
  --a4b-cr-card:#14264b;--a4b-cr-soft:#1b325c;
  --a4b-cr-text:#f3f7ff;--a4b-cr-muted:#c2d2ed;--a4b-cr-line:#465b81;
  --a4b-cr-ok-bg:#163e35;--a4b-cr-ok-text:#a8f5cc;
  --a4b-cr-bad-bg:#542735;--a4b-cr-bad-text:#ffd4d9;
  --a4b-cr-warn-bg:#513719;--a4b-cr-warn-text:#ffe2a3;
}
/* Sidebar tema terang Glass memang terang, berbeda dengan Classic/Blue Light. */
html:is([data-theme="glass-light"],[data-theme="glass-awan"]){
  --a4b-cr-sidebar-text:#14213d;--a4b-cr-sidebar-muted:#425475;
}
html:is([data-theme="glass-dark"],[data-theme="glass-ocean"],
        [data-theme="glass-bumi"],[data-theme="glass-angkasa"],
        [data-theme="blue-dark"],[data-theme="blue-light"],[data-theme="classic"]){
  --a4b-cr-sidebar-text:#eef4ff;--a4b-cr-sidebar-muted:#c0cee8;
}
/* Rekap Seragam: angka, label, baris expandable dan nested detail dipasangkan. */
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-kpis > div,
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-row,
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-detail,
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-detail .table-wrap {
  background:var(--a4b-cr-card)!important;
  color:var(--a4b-cr-text)!important;
  border-color:var(--a4b-cr-line)!important;
}
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-kpis > div.bad {
  background:var(--a4b-cr-bad-bg)!important;
  border-color:var(--a4b-cr-bad-text)!important;
}
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-kpis > div :is(b,strong),
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-name :is(b,strong),
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-row > summary,
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-row > summary > div > strong,
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-detail :is(b,strong,td),
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-row > summary .a4b-colhead {
  color:var(--a4b-cr-text)!important;
}
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-kpis :is(small,span),
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-name small,
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-row > summary > div > small,
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-detail .note {
  color:var(--a4b-cr-muted)!important;opacity:1!important;
}
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-kpis > div.bad b {
  color:var(--a4b-cr-bad-text)!important;
}
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-row > summary:hover,
html[data-theme] body.a4b-admin-fullscreen .content .uniform-need-row[open] > summary {
  background:var(--a4b-cr-soft)!important;
}
/* Status tidak boleh mewarisi teks gelap dari aturan global !important. */
html[data-theme] body.a4b-admin-fullscreen .content :is(.uniform-need-row,.uniform-need-detail) .status.ok,
html[data-theme] body.a4b-admin-fullscreen .content .status-pill.open,
html[data-theme] body.a4b-admin-fullscreen .content .status.ok {
  background:var(--a4b-cr-ok-bg)!important;color:var(--a4b-cr-ok-text)!important;
  opacity:1!important;
}
html[data-theme] body.a4b-admin-fullscreen .content :is(.uniform-need-row,.uniform-need-detail) .status.danger,
html[data-theme] body.a4b-admin-fullscreen .content :is(.uniform-need-row,.uniform-need-detail) .status.bad,
html[data-theme] body.a4b-admin-fullscreen .content :is(.status.bad,.status.danger,.status-pill.cancelled) {
  background:var(--a4b-cr-bad-bg)!important;color:var(--a4b-cr-bad-text)!important;
  opacity:1!important;
}
html[data-theme] body.a4b-admin-fullscreen .content :is(.status.warn,.status-pill.draft) {
  background:var(--a4b-cr-warn-bg)!important;color:var(--a4b-cr-warn-text)!important;
  opacity:1!important;
}
/* Dashboard V8 lama punya ratusan override yang mewarnai teks navy di atas
   kartu navy. Warna panel dan anak mengikuti 1 surface per tema, bukan
   mencampurkan --b-text/--t-text dengan warna permukaan hard-coded. */
html[data-theme] body.a4b-admin-fullscreen .content :is(
  .v80-need-row,.v80-need-detail,.v80-uniform-summary > div,
  .v80-stat,.v80-card,.v80-data-details,.v80-data-list,
  .stat,.stat-card,.report-summary-grid > div
){
  background-color:var(--a4b-cr-card)!important;
  background-image:none!important;
  color:var(--a4b-cr-text)!important;
  border-color:var(--a4b-cr-line)!important;
}
html[data-theme] body.a4b-admin-fullscreen .content :is(
  .v80-need-row,.v80-need-detail,.v80-uniform-summary > div,
  .v80-stat,.v80-card,.v80-data-details,.v80-data-list,
  .stat,.stat-card,.report-summary-grid > div
) :is(h2,h3,h4,b,strong,summary,td,li,span:not(.status):not(.status-pill):not(.badge)){
  color:var(--a4b-cr-text)!important;
}
html[data-theme] body.a4b-admin-fullscreen .content :is(
 .v80-need-row,.v80-need-detail,.v80-uniform-summary > div,
 .v80-stat,.v80-card,.v80-data-details,.v80-data-list,
 .stat,.stat-card,.report-summary-grid > div
) :is(small,.v80-muted,.v80-need-name small,.v80-unavailable){
  color:var(--a4b-cr-muted)!important;opacity:1!important;
}
html[data-theme] body.a4b-admin-fullscreen .content .v80-need-row.has-shortage {
  border-color:var(--a4b-cr-bad-text)!important;
}
/* Form, tabel dan notifikasi yang muncul pada surface lama putih/dark. */
html[data-theme] body.a4b-admin-fullscreen .content :is(.table-wrap,table,.training-info-grid span,.schedule-strip),
html[data-theme] body.a4b-admin-fullscreen :is(.notification-modal,.gbj-dialog,.training-edit-panel){
  background-color:var(--a4b-cr-card)!important;color:var(--a4b-cr-text)!important;
}
html[data-theme] body.a4b-admin-fullscreen .content :is(th,.training-info-grid span,.schedule-strip),
html[data-theme] body.a4b-admin-fullscreen .content tr:hover td{
  background-color:var(--a4b-cr-soft)!important;color:var(--a4b-cr-muted)!important;
}
html[data-theme] body.a4b-admin-fullscreen .content :is(td,.training-info-grid b,.schedule-strip b),
html[data-theme] body.a4b-admin-fullscreen :is(.notification-modal,.gbj-dialog) :is(h2,h3,strong){
  color:var(--a4b-cr-text)!important;
}
html[data-theme] body.a4b-admin-fullscreen .content :is(input,select,textarea) {
  color:var(--a4b-cr-text)!important;
  background-color:var(--a4b-cr-card)!important;
}
html[data-theme] body.a4b-admin-fullscreen .content :is(input,textarea)::placeholder {
  color:var(--a4b-cr-muted)!important;opacity:1!important;
}
/* Fix sidebar light theme where old rule hard-codes #f6fbff (white). */
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group:has(.nav-group-items a.active) > .nav-group-toggle,
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group:has(.nav-group-items a[aria-current="page"]) > .nav-group-toggle,
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-toggle:hover,
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-toggle:focus-visible {
  color:var(--a4b-cr-sidebar-text)!important;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .nav-group-toggle,
html[data-theme] body.a4b-admin-fullscreen .sidebar .sidebar-collapse-control,
html[data-theme] body.a4b-admin-fullscreen .sidebar .sidebar-foot > a:first-child {
  color:var(--a4b-cr-sidebar-muted)!important;
}
html[data-theme] body.a4b-admin-fullscreen .sidebar .sidebar-foot .logout {
  color:var(--a4b-cr-sidebar-text)!important;
  background:transparent!important;
  opacity:1!important;
}
html:is([data-theme="glass-light"],[data-theme="glass-awan"]) body.a4b-admin-fullscreen .sidebar .nav-group-toggle:hover,
html:is([data-theme="glass-light"],[data-theme="glass-awan"]) body.a4b-admin-fullscreen .sidebar .sidebar-foot .logout:hover {
  background:rgba(15,42,74,.075)!important;
}
/* Kontrol topbar pada surface terang/gelap harus tetap terbaca. */
html[data-theme] body.a4b-admin-fullscreen .topbar :is(.a4b-breadcrumb,.a4b-header-clock,.a4b-eco-toggle) {
  color:var(--ux-text,var(--a4b-cr-text))!important;
}
html[data-theme] body.a4b-admin-fullscreen .a4b-theme-pop :is(h4,.a4b-theme-opt,.a4b-theme-note) {
  color:var(--ux-text,var(--a4b-cr-text))!important;opacity:1!important;
}
/* Print tetap tinta gelap di atas putih. */
@media print{
 html[data-theme] body.a4b-admin-fullscreen .content :is(.uniform-need-row,.uniform-need-kpis>div,.v80-need-row,.v80-stat,.v80-card){
  background:#fff!important;color:#111827!important;
 }
 html[data-theme] body.a4b-admin-fullscreen .content :is(.uniform-need-row,.uniform-need-kpis>div,.v80-need-row,.v80-stat,.v80-card) :is(b,strong,small,span){color:#111827!important}
}


/* =====================================================================
   A4B V9.2.2 — MENU AKTIF MENYATU DENGAN SIDEBAR
   Lapisan kompatibilitas atas "SEAMLESS CONNECTED TAB" (2026-10-24).
   Item terpilih tidak lagi mengambil warna --a4b-join-surface milik .main.
   Dibatasi pada nav di sidebar Admin, seluruh sembilan data-theme.
   Tidak menyentuh latar halaman, kartu dashboard, wallpaper maupun AJAX.
   ===================================================================== */
html[data-theme] body.a4b-admin-fullscreen .admin-shell .sidebar nav#adminSidebarNav .nav-group-items > a:is(.active,[aria-current="page"]),
html[data-theme] body.a4b-admin-fullscreen .admin-shell .sidebar nav#adminSidebarNav .nav-group > a:is(.active,[aria-current="page"]){
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  filter:none!important;
  margin-right:0!important;
  padding-right:11px!important;
  border:0!important;
  border-left:3px solid var(--a4b-menu-active-accent,#9fcdb6)!important;
  border-radius:10px!important;
  color:var(--a4b-cr-sidebar-text,#f4f8ff)!important;
  text-shadow:none!important;
  font-weight:850!important;
  isolation:auto!important;
}
/* Hilangkan sudut tab lama yang melukis warna halaman utama di sidebar. */
html[data-theme] body.a4b-admin-fullscreen .admin-shell .sidebar nav#adminSidebarNav .nav-group-items > a:is(.active,[aria-current="page"])::before,
html[data-theme] body.a4b-admin-fullscreen .admin-shell .sidebar nav#adminSidebarNav .nav-group-items > a:is(.active,[aria-current="page"])::after,
html[data-theme] body.a4b-admin-fullscreen .admin-shell .sidebar nav#adminSidebarNav .nav-group > a:is(.active,[aria-current="page"])::before,
html[data-theme] body.a4b-admin-fullscreen .admin-shell .sidebar nav#adminSidebarNav .nav-group > a:is(.active,[aria-current="page"])::after{
  content:none!important;
  display:none!important;
  box-shadow:none!important;
}
html[data-theme] body.a4b-admin-fullscreen .admin-shell .sidebar nav#adminSidebarNav .nav-group-items > a:is(.active,[aria-current="page"]) .nav-icon,
html[data-theme] body.a4b-admin-fullscreen .admin-shell .sidebar nav#adminSidebarNav .nav-group > a:is(.active,[aria-current="page"]) .nav-icon{
  color:inherit!important;
  box-shadow:none!important;
}
html[data-theme="classic"]{--a4b-menu-active-accent:#f1c38e}
html[data-theme="glass-dark"]{--a4b-menu-active-accent:#ffae76}
html[data-theme="glass-ocean"]{--a4b-menu-active-accent:#b4edba}
html[data-theme="glass-light"]{--a4b-menu-active-accent:#bf764e}
html[data-theme="glass-awan"]{--a4b-menu-active-accent:#21759b}
html[data-theme="glass-bumi"]{--a4b-menu-active-accent:#edc887}
html[data-theme="glass-angkasa"]{--a4b-menu-active-accent:#cfabff}
html[data-theme="blue-light"]{--a4b-menu-active-accent:#96d5ff}
html[data-theme="blue-dark"]{--a4b-menu-active-accent:#78bdfa}
/* Saat fokus via keyboard, pertahankan penanda jelas. */
html[data-theme] body.a4b-admin-fullscreen .admin-shell .sidebar nav#adminSidebarNav a:is(.active,[aria-current="page"]):focus-visible{
  outline:2px solid var(--a4b-menu-active-accent,#bfe8d5)!important;
  outline-offset:-2px!important;
}
