/* =========================================================
   SI-DUK Dosen · Biro Umum dan Keuangan · Universitas Nusa Cendana
   Tampilan v7 · Bootstrap 5.3
   ========================================================= */
:root {
  --navy: #0b2f5c;
  --navy-2: #0e3d75;
  --navy-3: #164f93;
  --gold: #f2a900;
  --gold-soft: #fff4d6;
  --bg: #f3f5f9;
  --ink: #1b2437;
  --muted: #667085;
  --line: #e4e8f0;
  --sidebar-w: 260px;
  --bs-primary: #0e3d75;
  --bs-primary-rgb: 14, 61, 117;
  --bs-link-color: #164f93;
  --bs-link-color-rgb: 22, 79, 147;
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-color: #1b2437;
  --bs-border-color: #e4e8f0;
}
body { background: var(--bg); font-size: .925rem; }
.btn-primary { --bs-btn-bg: var(--navy-2); --bs-btn-border-color: var(--navy-2); --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy); --bs-btn-active-bg: var(--navy); }
.btn-outline-primary { --bs-btn-color: var(--navy-3); --bs-btn-border-color: #bcd0ea; --bs-btn-hover-bg: var(--navy-3); --bs-btn-hover-border-color: var(--navy-3); }
.btn-warning { --bs-btn-bg: var(--gold); --bs-btn-border-color: var(--gold); --bs-btn-color: #2a1d00; --bs-btn-hover-bg: #ffbc1f; }
.form-control:focus, .form-select:focus { border-color: #8fb1dd; box-shadow: 0 0 0 .2rem rgba(22, 79, 147, .15); }
.form-label { font-weight: 600; font-size: .82rem; color: #3b4559; }
.min-w-0 { min-width: 0; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 1040;
  background: linear-gradient(180deg, var(--navy) 0%, #08244a 100%);
  color: #dbe6f5; display: flex; flex-direction: column; transition: transform .25s ease;
}
.sidebar-brand { display: flex; gap: .75rem; align-items: center; padding: 1.25rem 1.25rem 1rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 52px; height: 52px; border-radius: 14px; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 6px 18px rgba(242,169,0,.35); flex-shrink: 0; }
.brand-mark.sm { width: 40px; height: 40px; font-size: 1.05rem; border-radius: 11px; }
.sidebar-nav { padding: .75rem; overflow-y: auto; flex: 1; }
.sidebar-nav .nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #8ea7c9; padding: 1rem .75rem .4rem; font-weight: 700; }
.sidebar-nav a { display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border-radius: 10px; color: #cfdcef; text-decoration: none; font-weight: 500; margin-bottom: 2px; }
.sidebar-nav a i { width: 20px; text-align: center; opacity: .85; }
.sidebar-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-nav a.active { background: #fff; color: var(--navy); font-weight: 700; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.sidebar-nav a.active i { color: var(--gold); opacity: 1; }
.sidebar-foot { padding: .9rem 1.25rem; font-size: .72rem; color: #7f97ba; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-backdrop { display: none; }

/* ---------- Main / Topbar ---------- */
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: .75rem; padding: .7rem 1.5rem; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-title { flex: 1; min-width: 0; line-height: 1.25; }
.topbar-date { align-items: center; gap: .45rem; background: var(--gold-soft); color: #6b4b00; border: 1px solid #f6dc95; border-radius: 999px; padding: .38rem .9rem; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.topbar-date .sep { width: 1px; height: 14px; background: #e9c76a; margin: 0 .25rem; }
.topbar-date small { font-weight: 700; opacity: .7; }
.btn-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--navy); background: transparent; border: 1px solid transparent; }
.btn-icon:hover { background: #eef2f8; }
.notif-dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; background: #dc2626; border-radius: 50%; border: 2px solid #fff; }
.notif-menu { width: 340px; max-width: 92vw; padding: 0; border-radius: 12px; overflow: hidden; }
#notifList { max-height: 360px; overflow-y: auto; }
.notif-item { display: flex; gap: .6rem; padding: .65rem .9rem; border-bottom: 1px solid var(--line); }
.notif-tag { color: #fff; font-size: .65rem; font-weight: 700; border-radius: 6px; padding: .15rem .4rem; height: fit-content; text-transform: uppercase; }
.user-chip { display: flex; align-items: center; gap: .55rem; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem .25rem .25rem; background: #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy-2); color: #fff; display: inline-grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.content { padding: 1.5rem; flex: 1; }
.app-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1rem 1.5rem; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }

/* ---------- Cards & components ---------- */
.card { border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-header { background: #fff; border-bottom: 1px solid var(--line); font-weight: 700; padding: .85rem 1.1rem; border-radius: 14px 14px 0 0 !important; }
.card-footer { background: #fafbfd; border-top: 1px solid var(--line); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.1rem; }
.filter-card .form-control, .filter-card .form-select { font-size: .875rem; }

.welcome { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 1.75rem; border-radius: 18px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #1b5aa6 0%, var(--navy-2) 45%, var(--navy) 100%); position: relative; overflow: hidden; }
.welcome::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(242,169,0,.18); }
.welcome > * { position: relative; z-index: 1; }

.stat-card { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; height: 100%; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,24,40,.08); color: var(--ink); }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.stat-body { display: flex; flex-direction: column; min-width: 0; }
.stat-value { font-size: 1.45rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.stat-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.tone-navy .stat-icon { background: #e6eef9; color: var(--navy-2); }
.tone-blue .stat-icon { background: #e0edff; color: #2563eb; }
.tone-teal .stat-icon { background: #dcf5f1; color: #0e9f8e; }
.tone-gold .stat-icon { background: var(--gold-soft); color: #b77f00; }
.tone-purple .stat-icon { background: #ece6fd; color: #6f4bd8; }
.tone-coral .stat-icon { background: #fde8e2; color: #e4572e; }
.tone-red .stat-icon { background: #fde4e4; color: #dc2626; }
.tone-slate .stat-icon { background: #eceff4; color: #475569; }

.chart-box { position: relative; height: 260px; }
.chart-box.tall { height: 320px; }
.chart-box.sm { height: 230px; }

.data-table thead th, .rekap-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f7f9fc; font-weight: 700; border-bottom-width: 1px; white-space: nowrap; }
.data-table td { padding-top: .65rem; padding-bottom: .65rem; }
.rekap-table tfoot td { background: #f7f9fc; }

.badge-jab { display: inline-block; font-size: .72rem; font-weight: 700; padding: .28rem .6rem; border-radius: 999px; white-space: nowrap; }
.jab-aa { background: #e3effd; color: #2563a8; }
.jab-l { background: #dbe8ff; color: #1d4ed8; }
.jab-lk { background: #1d3f8f; color: #fff; }
.jab-gb { background: var(--gold); color: #3a2800; }
.jab-none { background: #eef0f4; color: #667085; }
.gol-pill { display: inline-block; min-width: 46px; text-align: center; font-weight: 700; font-size: .78rem; padding: .22rem .5rem; border-radius: 8px; background: #f1f4f9; border: 1px solid var(--line); color: var(--navy); }

.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .8rem; color: var(--ink); text-decoration: none; }
.chip b { color: var(--navy-3); }
.chip.active { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.chip.active b { color: var(--gold); }

.seg .nav-link { color: var(--ink); font-weight: 600; border-radius: 10px; }
.seg .nav-link.active { background: var(--navy-2); }

/* ---------- Profil dosen ---------- */
.profile-hero { background: linear-gradient(90deg, #fff 0%, #fff 60%, #fdf7e6 100%); }
.avatar-xl { width: 72px; height: 72px; border-radius: 18px; background: var(--navy-2); color: var(--gold); display: grid; place-items: center; font-size: 1.9rem; font-weight: 800; }
.hero-metrics { display: flex; gap: .5rem; }
.hero-metrics > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .9rem; text-align: center; min-width: 92px; }
.hero-metrics b { display: block; font-size: 1.25rem; color: var(--navy); }
.hero-metrics small { font-size: .7rem; color: var(--muted); }
.detail-table th { width: 36%; color: var(--muted); font-weight: 600; font-size: .82rem; padding-left: 1.1rem; background: #fafbfd; }
.detail-table td { font-size: .88rem; }
.pensiun-card { border-left: 4px solid #dc2626; }
.doc-item { display: flex; align-items: center; gap: .75rem; }
.doc-icon { width: 42px; height: 42px; border-radius: 10px; background: #fde8e8; color: #dc2626; display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.doc-icon.sm { width: 34px; height: 34px; font-size: .95rem; }
.pdf-frame { width: 100%; height: 80vh; border: 0; display: block; background: #525659; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(0deg, var(--bg) 70%, rgba(243,245,249,0)); padding: 1rem 0 .5rem; }

/* ---------- Pensiun ---------- */
.year-strip { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
.year-box { flex: 0 0 auto; min-width: 86px; text-align: center; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: .55rem .6rem; text-decoration: none; color: var(--ink); }
.year-box span { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
.year-box b { display: block; font-size: 1.3rem; line-height: 1.1; color: #dc2626; }
.year-box small { font-size: .68rem; color: var(--muted); }
.year-box.active { background: var(--navy-2); border-color: var(--navy-2); }
.year-box.active span, .year-box.active small { color: #c9d8ee; }
.year-box.active b { color: var(--gold); }

.role-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; height: 100%; }
.role-card b { display: block; }
.role-card span { font-size: .8rem; color: var(--muted); }

/* ---------- DUK ---------- */
.duk-table thead th { background: var(--navy); color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; vertical-align: middle; border-color: #24497a; }
.duk-table td { font-size: .84rem; }
.print-head { display: none; }

/* ---------- Login ---------- */
.login-body { background: #fff; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-brand { position: relative; overflow: hidden; color: #fff; padding: 2.5rem 3rem; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(90% 80% at 0% 100%, rgba(242,169,0,.22) 0%, transparent 60%), linear-gradient(150deg, #134a8a 0%, var(--navy) 55%, #061a36 100%); }
.login-brand::before { content: ''; position: absolute; inset: 0; opacity: .08;
  background-image: linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px); background-size: 44px 44px; }
.login-brand > * { position: relative; }
.brand-top { display: flex; gap: .9rem; align-items: center; }
.brand-univ { font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; }
.brand-unit { color: #b9cbe6; font-size: .85rem; }
.brand-chip { display: inline-block; background: rgba(242,169,0,.18); color: #ffd56b; border: 1px solid rgba(242,169,0,.35); border-radius: 999px; padding: .35rem .85rem; font-size: .78rem; font-weight: 600; margin-bottom: 1.1rem; }
.brand-middle h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 1rem; }
.brand-middle h1 span { color: var(--gold); }
.brand-middle p { color: #c3d3ea; max-width: 440px; }
.brand-stat { display: flex; gap: 2.2rem; margin-top: 1.8rem; }
.brand-stat b { display: block; font-size: 1.8rem; font-weight: 800; }
.brand-stat small { color: #a9bfdf; font-size: .78rem; }
.brand-bottom { font-size: .85rem; color: #c3d3ea; }
.login-form-side { display: grid; place-items: center; padding: 2rem 1.25rem; background: #fff; }
.login-card { width: 100%; max-width: 400px; }
.login-card .input-group-text { background: #f6f8fb; color: #7a879c; }
.captcha-img { height: 52px; width: 170px; border-radius: 10px; border: 1px solid var(--line); background: #f4f7fc; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(8,20,40,.45); z-index: 1035; }
  .main { margin-left: 0; }
  .content { padding: 1rem; }
  .topbar { padding: .6rem 1rem; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .hero-metrics { width: 100%; }
  .hero-metrics > div { flex: 1; min-width: 0; }
}

/* ---------- Cetak ---------- */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff; font-size: 9pt; }
  .sidebar, .topbar, .app-footer, .no-print, .sidebar-backdrop { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; }
  .card { border: 0; box-shadow: none; }
  .print-head { display: block; margin-bottom: 8px; }
  .duk-table thead th { background: #e8ecf2 !important; color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .duk-table td, .duk-table th { font-size: 8pt; padding: 2px 4px; }
  .table-responsive { overflow: visible !important; }
  a { color: #000 !important; text-decoration: none !important; }
}

/* Warna judul mengikuti konteks */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: inherit; }
.welcome h1, .login-brand h1 { color: #fff; }
.login-brand h1 span { color: var(--gold); }

/* Judul bagian dashboard */
.section-title { display: flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--navy-3); margin: .25rem 0 .8rem; }
.section-title i { width: 28px; height: 28px; border-radius: 8px; background: var(--gold-soft); color: #b77f00; display: grid; place-items: center; font-size: .8rem; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.duk-table td.text-center { white-space: nowrap; }

/* ---------- Dashboard publik ---------- */
.pub-body { background: var(--bg); }
.pub-top { background: var(--navy); color: #fff; padding: .75rem 0; position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.pub-top .topbar-date { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #e8eef8; }
.pub-top .topbar-date .sep { background: rgba(255,255,255,.25); }
.pub-hero { color: #fff; padding: 2.5rem 0 2rem; position: relative; overflow: hidden;
  background: radial-gradient(70% 120% at 100% 0%, rgba(242,169,0,.22) 0%, transparent 55%), linear-gradient(150deg, #134a8a 0%, var(--navy) 60%, #061a36 100%); }
.pub-hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .4rem; color: #fff; }
.pub-hero p { color: #c3d3ea; }
.pub-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin-top: 1.6rem; }
.pub-kpis > div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: .9rem 1rem; }
.pub-kpis b { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.pub-kpis > div:first-child { background: var(--gold); border-color: var(--gold); color: #2a1d00; }
.pub-kpis > div:first-child small { color: #5a4100; }
.pub-kpis small { color: #b9cbe6; font-size: .78rem; font-weight: 600; }
.pub-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 64px; z-index: 1020; }
.pub-nav .container-xl { display: flex; gap: .25rem; align-items: center; overflow-x: auto; white-space: nowrap; }
.pub-nav a { padding: .8rem 1rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .88rem; border-bottom: 3px solid transparent; }
.pub-nav a:hover { color: var(--navy-3); border-bottom-color: var(--gold); }
.pub-section { scroll-margin-top: 130px; margin-bottom: 2.5rem; }
.stat-sub { font-size: .7rem; color: var(--muted); }
.pub-body .stat-card:hover { transform: none; box-shadow: none; }
@media (max-width: 767.98px) {
  .pub-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-kpis > div:first-child { grid-column: span 2; }
  .pub-nav { top: 60px; }
}

/* =========================================================
   v7.1 · Skala huruf lebih kecil & interaksi
   ========================================================= */
html { font-size: 15px; }
body { font-size: .86rem; line-height: 1.5; }
.h1, h1 { font-size: 1.45rem; } .h2, h2 { font-size: 1.25rem; } .h3, h3 { font-size: 1.12rem; }
.h4, h4 { font-size: 1.05rem; } .h5, h5 { font-size: .98rem; } .h6, h6 { font-size: .88rem; }
.page-head h1 { font-size: 1.08rem !important; letter-spacing: -.01em; }
.page-head { margin-bottom: .9rem; }
.btn { font-size: .82rem; padding: .38rem .8rem; }
.btn-sm { font-size: .74rem; padding: .25rem .55rem; }
.form-control, .form-select, .input-group-text { font-size: .82rem; padding-top: .36rem; padding-bottom: .36rem; }
.form-control-sm, .form-select-sm { font-size: .76rem; }
.form-label { font-size: .74rem; margin-bottom: .25rem; }
.form-text { font-size: .7rem; }
.table { font-size: .8rem; }
.table > :not(caption) > * > * { padding: .5rem .6rem; }
.table-sm > :not(caption) > * > * { padding: .32rem .45rem; }
.data-table thead th, .rekap-table thead th { font-size: .66rem; }
.small, small { font-size: .78em; }
.badge { font-size: .68em; }
.badge-jab { font-size: .66rem; padding: .22rem .5rem; }
.gol-pill { font-size: .72rem; min-width: 40px; padding: .16rem .4rem; }
.card-header { font-size: .82rem; padding: .7rem 1rem; }
.card-body { padding: .9rem 1rem; }
.content { padding: 1.2rem 1.35rem; }
.topbar { padding: .5rem 1.35rem; }
.topbar-title .fw-bold { font-size: .9rem; }
.topbar-date { font-size: .74rem; padding: .3rem .75rem; }
.btn-icon { width: 36px; height: 36px; }
.avatar { width: 30px; height: 30px; font-size: .8rem; }
.sidebar { --sidebar-w: 240px; }
:root { --sidebar-w: 240px; }
.sidebar-brand { padding: 1rem 1.1rem .85rem; font-size: .88rem; }
.sidebar-nav a { padding: .5rem .75rem; font-size: .8rem; gap: .65rem; }
.sidebar-nav .nav-label { font-size: .6rem; padding: .85rem .75rem .3rem; }
.brand-mark { width: 44px; height: 44px; font-size: 1.15rem; }
.brand-mark.sm { width: 34px; height: 34px; font-size: .9rem; }
.stat-card { padding: .8rem .9rem; gap: .75rem; }
.stat-icon { width: 38px; height: 38px; font-size: .95rem; border-radius: 10px; }
.stat-value { font-size: 1.18rem; }
.stat-label { font-size: .7rem; }
.welcome { padding: 1.15rem 1.35rem; border-radius: 14px; }
.welcome h1 { font-size: 1.08rem !important; }
.welcome p { font-size: .8rem; }
.section-title { font-size: .7rem; }
.hero-metrics b { font-size: 1.02rem; }
.hero-metrics > div { min-width: 80px; padding: .5rem .7rem; }
.avatar-xl { width: 58px; height: 58px; font-size: 1.5rem; border-radius: 14px; }
.profile-hero h2 { font-size: 1rem !important; }
.detail-table th { font-size: .74rem; }
.detail-table td { font-size: .8rem; }
.chart-box { height: 230px; } .chart-box.tall { height: 290px; } .chart-box.sm { height: 200px; }
.year-box b { font-size: 1.1rem; }
.year-box { min-width: 76px; padding: .45rem .5rem; }
.app-footer { font-size: .72rem; padding: .8rem 1.35rem; }
.chip { font-size: .74rem; padding: .28rem .7rem; }
.dropdown-menu { font-size: .82rem; }
.notif-item { font-size: .78rem; }
.login-card h2 { font-size: 1.15rem !important; }
.brand-middle h1 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.brand-stat b { font-size: 1.4rem; }
.pub-hero h1 { font-size: clamp(1.25rem, 2.4vw, 1.8rem); }
.pub-hero { padding: 1.9rem 0 1.6rem; }
.pub-kpis b { font-size: 1.3rem; }
.pub-kpis small { font-size: .7rem; }
.pub-nav a { font-size: .8rem; padding: .65rem .9rem; }
.pub-section { margin-bottom: 2rem; }
.swal2-popup { font-size: .82rem !important; }
.swal2-title { font-size: 1.15rem !important; }

/* Interaksi */
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.content > *, .pub-section { animation: fadeUp .35s ease both; }
.card { transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 22px rgba(16,24,40,.07); }
.stat-card { transition: transform .18s, box-shadow .18s, border-color .18s; }
.stat-card:hover { border-color: #c9d7ec; }
a.stat-card:hover .stat-icon { transform: scale(1.08) rotate(-4deg); }
.stat-icon { transition: transform .2s; }
tr[data-href] { cursor: pointer; }
tr[data-href]:hover > td { background: #f3f7fd; }
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable::after { content: '\21C5'; opacity: .35; margin-left: .3rem; font-size: .8em; }
th.sortable.asc::after { content: '\2191'; opacity: .9; }
th.sortable.desc::after { content: '\2193'; opacity: .9; }
.search-info { font-size: .7rem; color: var(--muted); margin-left: .4rem; white-space: nowrap; align-self: center; }
.filter-card.is-loading { opacity: .6; pointer-events: none; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--navy-2); color: #fff;
  box-shadow: 0 6px 16px rgba(11,47,92,.3); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; z-index: 1050; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--navy); }
.setting-table td, .setting-table th { vertical-align: middle; }
.sidebar-nav a { transition: background .15s, color .15s, padding-left .15s; }
.sidebar-nav a:hover:not(.active) { padding-left: .95rem; }
.flatpickr-calendar { font-family: var(--bs-body-font-family); font-size: .8rem; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--navy-2); border-color: var(--navy-2); }
.flatpickr-input[readonly] { background-color: #fff; }

/* ---------- Data Referensi ---------- */
.ref-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .2rem; }
.ref-tab { flex: 0 0 auto; display: flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); text-decoration: none; font-size: .78rem; font-weight: 600; transition: .15s; }
.ref-tab i { color: var(--navy-3); }
.ref-tab b { background: #eef2f8; color: var(--navy-3); border-radius: 999px; padding: .05rem .5rem; font-size: .7rem; }
.ref-tab:hover { border-color: #b9cbe6; transform: translateY(-1px); }
.ref-tab.active { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.ref-tab.active i { color: var(--gold); }
.ref-tab.active b { background: var(--gold); color: var(--navy); }
.ref-table .progress { background: #eef2f8; }
.ref-table .progress-bar { background: linear-gradient(90deg, var(--navy-3), #3b82f6); }
.disabled-lock { cursor: not-allowed; opacity: .75; }
.btn-toggle i { transition: transform .2s; }
.btn-toggle.open i { transform: rotate(90deg); }
.hb-box { background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; }
.hb-box .table { background: transparent; }
.hb-box .table > :not(caption) > * > * { background: transparent; }
.unit-row:hover > td { background: #f8fafd; }

/* =========================================================
   v7.3 · Tabel elegan, nama bergelar, menu & panel minimize, drag & drop
   ========================================================= */
/* ---- Tabel ---- */
.data-table, .ref-table, .duk-table { --row-h: #f5f8fd; border-collapse: separate; border-spacing: 0; }
.data-table thead th, .ref-table thead th {
  position: sticky; top: 0; z-index: 2; background: #f6f8fc; color: #5b6478; font-size: .64rem; letter-spacing: .06em;
  border-bottom: 1px solid #dfe5ef !important; padding-top: .7rem; padding-bottom: .7rem; }
.data-table tbody td, .ref-table tbody td { border-bottom: 1px solid #eef1f6; border-top: 0; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr, .ref-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover > td, .ref-table tbody tr:hover > td { background: var(--row-h); }
.data-table tbody tr:nth-child(even) > td { background-color: #fcfdff; }
.data-table tbody tr:nth-child(even):hover > td { background: var(--row-h); }
.data-table td .btn-light, .ref-table td .btn-light { background: #fff; border-color: #e3e8f1 !important; }
.data-table td .btn-light:hover, .ref-table td .btn-light:hover { background: #eef3fb; border-color: #c9d7ec !important; }
.table-responsive { border-radius: 0 0 14px 14px; }
.card > .table-responsive:first-child { border-radius: 14px; }
.duk-table thead th { position: sticky; top: 0; z-index: 2; }
.duk-table tbody tr:nth-child(even) > td { background: #fbfcfe; }
.duk-table tbody tr:hover > td { background: #f2f6fc; }
tfoot td { background: #f6f8fc !important; border-top: 2px solid #dfe5ef !important; }
.detail-table tr:hover > * { background: #f8fafd; }
.detail-table th, .detail-table td { padding-top: .45rem !important; padding-bottom: .45rem !important; border-color: #eef1f6; }

/* ---- Nama dengan gelar ---- */
.person { display: flex; align-items: center; gap: .6rem; }
.nama-gelar { text-decoration: none; color: var(--ink); line-height: 1.3; }
a.nama-gelar:hover .nm { color: var(--navy-3); text-decoration: underline; text-underline-offset: 2px; }
.nama-gelar .nm { font-weight: 700; }
.nama-gelar .gelar { color: #6b7488; font-weight: 500; font-size: .92em; }
.profile-name .gelar { font-weight: 500; color: #6b7488; }
.avatar.sm { width: 32px; height: 32px; font-size: .7rem; font-weight: 800; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--navy-3), var(--navy)); flex-shrink: 0; }
.avatar.sm.alt { background: linear-gradient(135deg, #0e9f8e, #0b6b61); }

/* ---- Sidebar: grup dapat ditutup & mode mini ---- */
.sidebar-nav .nav-label { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; cursor: pointer; text-align: left; }
.sidebar-nav .nav-label i { font-size: .6rem; transition: transform .2s; opacity: .7; }
.sidebar-nav .nav-label:hover { color: #fff; }
.nav-group .nav-items { overflow: hidden; max-height: 600px; transition: max-height .25s ease, opacity .2s; }
.nav-group.closed .nav-items { max-height: 0; opacity: 0; }
.nav-group.closed .nav-label i { transform: rotate(-90deg); }
.sidebar-foot { display: flex; align-items: center; gap: .6rem; }
.btn-mini { width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #cfdcef; display: grid; place-items: center; flex-shrink: 0; }
.btn-mini:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-mini i { transition: transform .25s; }
@media (min-width: 992px) {
  body.sidebar-mini { --sidebar-w: 74px; }
  body.sidebar-mini .sidebar { width: 74px; }
  body.sidebar-mini .main { margin-left: 74px; }
  body.sidebar-mini .sidebar-brand { justify-content: center; padding: 1rem .5rem; }
  body.sidebar-mini .sidebar-brand .lh-sm, body.sidebar-mini .sidebar-nav a span, body.sidebar-mini .nav-label span, body.sidebar-mini .sidebar-foot span { display: none; }
  body.sidebar-mini .sidebar-nav { padding: .5rem; overflow: visible; }
  body.sidebar-mini .nav-label { justify-content: center; padding: .6rem 0 .3rem; }
  body.sidebar-mini .nav-label i { display: none; }
  body.sidebar-mini .nav-label::before { content: ''; width: 22px; height: 1px; background: rgba(255,255,255,.18); }
  body.sidebar-mini .nav-group.closed .nav-items { max-height: 600px; opacity: 1; }
  body.sidebar-mini .sidebar-nav a { justify-content: center; padding: .6rem 0; position: relative; }
  body.sidebar-mini .sidebar-nav a:hover:not(.active) { padding-left: 0; }
  body.sidebar-mini .sidebar-nav a i { width: auto; font-size: 1rem; }
  body.sidebar-mini .sidebar-nav a:hover::after { content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
    background: #0b2f5c; color: #fff; padding: .35rem .65rem; border-radius: 8px; font-size: .75rem; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 2000; }
  body.sidebar-mini .sidebar-foot { justify-content: center; }
  body.sidebar-mini .btn-mini i { transform: rotate(180deg); }
}
.sidebar, .main { transition: width .25s ease, margin-left .25s ease; }

/* ---- Panel dapat diminimalkan ---- */
.card-header.has-min { display: flex; align-items: center; gap: .5rem; }
.card-header.has-min:not(:has(> a, > button:not(.card-min), > form, > div, > .btn, > .badge, > .ms-auto)) > .card-min { margin-left: auto; }
.card-header.has-min > .ms-auto + .card-min, .card-header.has-min > .btn + .card-min { margin-left: .35rem; }
.section-title .widget-hint { font-size: .68rem; font-weight: 400; color: #8a94a6; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.card-min { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: #7a879c; display: grid; place-items: center; flex-shrink: 0; font-size: .7rem; transition: .15s; }
.card-min:hover { background: #eef3fb; color: var(--navy-3); }
.card-min i { transition: transform .2s; }
.card-collapsed > :not(.card-header) { display: none !important; }
.card-collapsed > .card-header { border-bottom: 0; border-radius: 14px !important; }
.card-collapsed .card-min i { transform: rotate(180deg); }
.card-collapsed.h-100 { height: auto !important; }

/* ---- Drag & drop ---- */
.drag-handle { display: inline-grid; place-items: center; width: 22px; height: 26px; color: #a3aec2; cursor: grab; border-radius: 6px; margin-right: .2rem; }
.drag-handle:hover { background: #eef3fb; color: var(--navy-3); }
.drag-handle:active { cursor: grabbing; }
.sort-ghost { opacity: .45; background: #e9f1fc !important; }
.sort-ghost > td { background: #e9f1fc !important; }
.sort-chosen { box-shadow: 0 8px 24px rgba(16,24,40,.15); }
[data-sortable-grid] > [data-widget] > .card > .card-header { cursor: grab; }
[data-sortable-grid] > [data-widget] > .card > .card-header:active { cursor: grabbing; }
.widget-hint { font-size: .72rem; color: var(--muted); }
.dropzone-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; padding: 1rem; border: 2px dashed #c9d7ec;
  border-radius: 12px; background: #fff; cursor: pointer; text-align: center; transition: .15s; margin: 0; }
.dropzone-box i { font-size: 1.6rem; color: var(--navy-3); }
.dropzone-box .dz-text { font-size: .76rem; color: var(--muted); }
.dropzone-box.drag { border-color: var(--gold); background: var(--gold-soft); transform: scale(1.01); }
.dropzone-box.has-file { border-style: solid; border-color: #16a34a; background: #f0fdf4; }
.dropzone-box.has-file i { color: #16a34a; }
.dropzone-box .dz-file { font-weight: 700; color: #166534; }

/* ---- Profil ---- */
.section-card .card-header .card-action { margin-right: .25rem; }
.flash-hl { animation: hl 2s ease; }
@keyframes hl { 0%, 40% { box-shadow: 0 0 0 3px rgba(242,169,0,.55); } 100% { box-shadow: none; } }
.timeline { padding: .4rem 0; }
.tl-item { position: relative; padding: .55rem 1rem .55rem 2.1rem; border-bottom: 1px solid #f0f2f7; }
.tl-item:last-child { border-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: 1.05rem; top: 0; bottom: 0; width: 2px; background: #e8edf5; }
.tl-dot { position: absolute; left: .8rem; top: .85rem; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px #e8edf5; }
.val-old { color: #b42318; text-decoration: line-through; text-decoration-color: rgba(180,35,24,.35); }
.val-new { color: #067647; font-weight: 600; }

/* ---- Histori SDM ---- */
.hist-list { display: flex; flex-direction: column; }
.hist-item { border-bottom: 1px solid #eef1f6; }
.hist-item:hover { background: #fbfcff; }
.hist-head { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1rem .5rem; }
.hist-table { margin: 0 1rem .8rem 3.4rem; width: calc(100% - 4.4rem); border: 1px solid #eef1f6; border-radius: 10px; overflow: hidden; background: #fff; }
.hist-table thead th { background: #f8fafd; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7488; }
.hist-table td { font-size: .78rem; vertical-align: middle; }
.hist-note { background: var(--gold-soft); border-radius: 8px; padding: .2rem .5rem; display: inline-block; margin-top: .25rem; color: #6b4b00; }
.hist-snap { white-space: pre-wrap; background: #f6f8fc; border-radius: 8px; padding: .6rem; font-size: .72rem; max-height: 220px; overflow: auto; }
@media (max-width: 767.98px) { .hist-table { margin-left: 1rem; width: calc(100% - 2rem); } }
.lengkap-row { display: block; padding: .15rem .1rem; border-radius: 8px; }
.lengkap-row:hover { background: #f6f9fd; }
.section-title .text-normal { text-transform: none; letter-spacing: 0; font-weight: 500; }
.timeline.row > .tl-item { border-right: 1px solid #f0f2f7; }
/* v7.3 penyempurnaan */
.card-header.has-min { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-start !important; }
.card-header.has-min > :first-child:not(i):not(.card-min) { margin-right: auto; }
.card-header.has-min:not(:has(> a, > button:not(.card-min), > form, > div, > .btn, > .badge, > .ms-auto)) > .card-min { margin-left: auto; }
.card-header.has-min > .ms-auto + .card-min, .card-header.has-min > .btn + .card-min { margin-left: .35rem; }
.section-title .widget-hint { font-size: .68rem; font-weight: 400; color: #8a94a6; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.card-header.has-min > .card-min { order: 99; }
.hist-table { table-layout: fixed; }
.hist-table th:nth-child(1) { width: 26%; } .hist-table th:nth-child(3) { width: 36px; }
.hist-table td { word-break: break-word; }
.card canvas { max-width: 100%; }

/* ===== v7.4 · Profil per item, foto, dokumen riwayat ===== */
.btn-xs { --bs-btn-padding-y: .12rem; --bs-btn-padding-x: .4rem; --bs-btn-font-size: .72rem; --bs-btn-border-radius: 6px; }
.avatar { overflow: hidden; }
.avatar.has-foto { background: #e9eef6; padding: 0; }
.avatar.has-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xl { width: 84px; height: 84px; border-radius: 20px; color: var(--gold); font-size: 2rem; font-weight: 800; }
.avatar.xxl { width: 150px; height: 150px; border-radius: 24px; color: var(--gold); font-size: 3.2rem; font-weight: 800; }
.foto-wrap { position: relative; flex-shrink: 0; }
.foto-btn { position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-size: .75rem; box-shadow: 0 3px 10px rgba(0,0,0,.18); transition: transform .15s; }
.foto-btn:hover { transform: scale(1.1); }
.foto-preview { width: 150px; height: 150px; object-fit: cover; border-radius: 24px; border: 1px solid var(--line); }
.profil-nav { flex-wrap: wrap; padding: .4rem .6rem 0; gap: .15rem; border-bottom: 1px solid var(--line); }
.profil-nav .nav-link { white-space: nowrap; font-size: .8rem; font-weight: 600; color: #5c6880; border: 0; border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0; padding: .55rem .75rem; }
.profil-nav .nav-link:hover { color: var(--navy-3); background: #f4f7fc; }
.profil-nav .nav-link.active { color: var(--navy); background: transparent; border-bottom-color: var(--gold); }
.profil-nav .badge { font-size: .62rem; vertical-align: 1px; }
.pane-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .9rem 1rem .7rem; border-bottom: 1px solid #eef1f6; }
.rw-table thead th { background: #f8fafd; font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7488; white-space: nowrap; }
.rw-table td { font-size: .8rem; }
.rw-table tr.rw-terkini td { background: #fbfdf7; }
.detail-table tr.terkini-head th { background: #f4f7fc; color: var(--navy-3); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.detail-table tr.terkini td { color: #33415c; }
.doc-current { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: #f8fafd; }
.dropzone-box.is-invalid { border-color: var(--bs-danger); background: #fff6f6; }
.tab-pane.flash-hl { animation: none; }
.brand-mark { overflow: hidden; }
.brand-mark img.brand-logo { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; }
.tabel-padat .table > :not(caption) > * > * { padding-top: .25rem; padding-bottom: .25rem; }
.tabel-padat .table td, .tabel-padat .table th { font-size: .76rem; }
.pengumuman { border-radius: 12px; font-size: .84rem; }
/* v7.4 pengingat pensiun */
.count-dot { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; font-size: .6rem; font-weight: 700; line-height: 17px; color: #fff; text-align: center; box-shadow: 0 0 0 2px #fff; }
.nav-badge { margin-left: auto; background: #e8590c; color: #fff; font-size: .62rem; font-weight: 700; border-radius: 9px; padding: .05rem .42rem; line-height: 1.4; }
.sidebar-mini .nav-badge { position: absolute; top: 4px; right: 6px; margin: 0; font-size: .55rem; padding: 0 .3rem; }
.sidebar-nav a { position: relative; }
.pg-level { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .15rem .55rem; white-space: nowrap; }
.pg-lewat { background: #fdecea; color: #b42318; }
.pg-segera { background: #fff4e5; color: #b54708; }
.pg-dekat { background: #eaf2fd; color: #175cd3; }
.pg-row-lewat td:first-child { box-shadow: inset 3px 0 0 #d92d20; }
.pg-row-segera td:first-child { box-shadow: inset 3px 0 0 #f79009; }
.jf-tile { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; height: 100%; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.jf-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,24,40,.08); color: var(--ink); }
.jf-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--jf, #8a94a6); }
.jf-tile .jf-name { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5c6880; display: flex; align-items: center; gap: .4rem; }
.jf-tile .jf-name i { color: var(--jf); }
.jf-tile .jf-val { font-size: 1.6rem; font-weight: 800; line-height: 1.1; margin: .25rem 0 .1rem; }
.jf-tile .jf-pct { font-size: .72rem; color: #6b7488; }
.jf-tile .progress { height: 5px; margin: .45rem 0 .5rem; background: #eef1f6; }
.jf-tile .progress-bar { background: var(--jf); }
.jf-tile .jf-meta { font-size: .68rem; color: #6b7488; display: flex; flex-wrap: wrap; gap: .15rem .6rem; }
.jf-tile .jf-warn { font-size: .68rem; font-weight: 700; color: #b42318; margin-top: .3rem; }
.tahap-opt { display: flex; align-items: center; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.tahap-opt:has(input:checked) { border-color: var(--navy-3); background: #f2f6fc; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
/* v7.5 Panel Keamanan */
.sec-score { --p: 0; width: 132px; height: 132px; border-radius: 50%; margin: .25rem auto 0; display: grid; place-items: center; position: relative;
  background: conic-gradient(currentColor calc(var(--p) * 1%), #eef1f6 0); }
.sec-score::before { content: ""; position: absolute; inset: 12px; background: #fff; border-radius: 50%; }
.sec-score span { position: relative; font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--ink); }
.sec-score small { position: absolute; bottom: 34px; font-size: .7rem; color: #8a94a6; }
.sec-checks { max-height: 430px; overflow-y: auto; }
.sec-check { display: flex; gap: .65rem; align-items: flex-start; padding: .55rem 1rem; border-bottom: 1px solid #f0f2f6; }
.sec-check:last-child { border-bottom: 0; }
.sec-check > i { margin-top: .2rem; }
.sec-layer { border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; background: #fbfcfe; }
.sec-layer li { margin-bottom: .25rem; line-height: 1.45; }
.sec-layer .badge { font-size: .6rem; vertical-align: 1px; }
/* v7.6 filter per kolom */
.col-filter-row th { background: #f4f7fc !important; padding: .3rem .35rem !important; position: static; }
.col-filter-row .form-control, .col-filter-row .form-select { font-size: .72rem; padding-top: .15rem; padding-bottom: .15rem; min-width: 70px; }
.col-filter-info { padding: .45rem 1rem; background: #fff8e6; border-bottom: 1px solid #f3e2b3; color: #8a5a00; }
@media print { .col-filter-row, .col-filter-info { display: none !important; } }
/* v7.6 lupa / reset password */
.auth-solo { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-solo .login-card { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 20px 50px rgba(11,47,92,.12); }

/* ===== Monitoring Usulan Kepegawaian (v8.0) ===== */
.mon-jenis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.mon-jenis-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .8rem .9rem; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.mon-jenis-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,24,40,.08); color: var(--ink); }
.mon-jenis-card.active { border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(22,79,147,.15); }
.mon-ikon { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-soft); color: var(--navy-2); flex-shrink: 0; }
.mon-jenis-card.active .mon-ikon { background: var(--navy-2); color: #fff; }
.mon-bar { display: flex; height: 6px; border-radius: 4px; overflow: hidden; background: var(--line); }
.mon-bar span { display: block; height: 100%; }
.mon-badge { white-space: normal; text-align: left; line-height: 1.25; }
.mon-table td.mon-ket { max-width: 260px; font-size: .78rem; }
.mon-table td { vertical-align: top; }
.mon-pub-tabs .nav-link { border-radius: 999px; font-weight: 600; font-size: .85rem; }
.mon-pub-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .85rem; color: var(--muted); }
.mon-pub-meta b { color: var(--ink); }
.mon-matrix th.rot { white-space: nowrap; font-size: .72rem; font-weight: 600; }
.mon-matrix td, .mon-matrix th { vertical-align: middle; }
.mon-matrix .form-select-sm { min-width: 92px; font-size: .75rem; padding-top: .15rem; padding-bottom: .15rem; }
@media print { .mon-jenis-grid, [data-card="mon-filter"], [data-card="mon-impor"] { display: none !important; } }
/* v8.2 monitoring dikelompokkan per orang */
.mon-table tr.mon-sub > td { background: #f8fafc; border-top-style: dashed; }
.mon-table tr[data-grup] [data-mon-buka] { cursor: pointer; }

/* v8.4 paging tabel di browser */
tr.pg-x { display: none; }
.tbl-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .6rem 1rem; border-top: 1px solid var(--bs-border-color, #e5e7eb); }
.tbl-pager select { width: auto; }
.tbl-pager .pagination { margin-left: auto; }
@media (max-width: 576px) { .tbl-pager { padding: .5rem .75rem; } .tbl-pager .pagination { margin-left: 0; } }
@media print { tr.pg-x:not([style*="display: none"]):not([hidden]) { display: table-row !important; } .tbl-pager { display: none !important; } }

/* v8.5 logbook & laporan cetak */
.lb-identitas th { color: var(--muted, #64748b); font-weight: 500; }
.lb-table tr.lb-hari-baru > td { border-top: 2px solid var(--line, #e5e7eb); }
.lb-ttd { font-size: 10pt; }
.lb-ttd-ruang { height: 70px; }
@media print {
  .lb-ttd { display: block !important; page-break-inside: avoid; }
  .lb-table td, .lb-rekap td, .lb-rekap th, .lb-table th { font-size: 8.5pt; padding: 2px 4px; }
  .stat-card { border: 1px solid #ccc !important; box-shadow: none !important; }
}

/* v8.5 estimasi kenaikan jabfung: tangga jenjang */
.jf-tangga { display: flex; align-items: stretch; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; }
.jf-anak { flex: 1 1 0; min-width: 120px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: .6rem .7rem; text-align: center; background: #fff; }
.jf-anak .jf-n { font-size: 1.35rem; font-weight: 700; line-height: 1.2; margin-top: .35rem; }
.jf-anak .jf-n small { font-size: .7rem; font-weight: 500; color: var(--muted, #64748b); }
.jf-anak .jf-lama { font-size: .7rem; color: var(--muted, #64748b); }
.jf-panah { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .72rem; color: var(--navy-2, #164f93); min-width: 74px; text-align: center; }
.jf-panah i { font-size: 1.2rem; }
.jf-panah span { color: var(--muted, #64748b); }
.jf-angka { border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: .5rem; height: 100%; }
.jf-angka b { display: block; font-size: 1.15rem; color: var(--navy-2, #164f93); }
.jf-angka span { font-size: .7rem; color: var(--muted, #64748b); }
@media (max-width: 768px) { .jf-tangga { flex-direction: column; } .jf-panah { flex-direction: row; gap: .4rem; min-width: 0; } .jf-panah i { transform: rotate(90deg); } }

/* =====================================================================
   v8.8 — TABEL SERAGAM
   Satu gaya untuk seluruh tabel (sebelumnya hanya tabel ber-kelas data-table
   yang rapi): judul kolom, garis, zebra, hover, tepi sejajar kartu, angka
   rata, kolom aksi, baris kosong, tabel berbingkai, dan tampilan ponsel.
   ===================================================================== */
.table { --tb-line: #e9edf4; --tb-head: #f6f8fb; --tb-head-line: #dde3ed; --tb-zebra: #fbfcfe; --tb-hover: #f1f5fc; font-variant-numeric: tabular-nums; }
/* judul kolom */
.table > thead > tr > th { background-color: var(--tb-head); color: #5b6578; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; line-height: 1.3; vertical-align: bottom; border-bottom: 1px solid var(--tb-head-line); padding-top: .62rem; padding-bottom: .56rem; }
.table > thead > tr > th { text-wrap: balance; min-width: 3.2rem; }   /* judul panjang terlipat seimbang, tidak menjepit kolom lain */
.table > thead > tr > th.text-nowrap, .table > thead > tr > th.sortable { white-space: nowrap; }
.table > thead > tr:not(:last-child) > th { border-bottom-color: var(--tb-line); }
.table > thead > tr > th[colspan] { text-align: center; }
.table > thead > tr > th.text-start[colspan] { text-align: left; }
.table > thead > tr.col-filter-row > th { text-transform: none; letter-spacing: 0; vertical-align: middle; }
/* isi */
.table > tbody > tr > td, .table > tbody > tr > th { border-color: var(--tb-line); line-height: 1.38; }
.table:not(.table-bordered):not(.detail-table):not(.table-borderless) > tbody > tr:nth-child(even) > * { background-color: var(--tb-zebra); }
.table:not(.detail-table):not(.table-borderless) > tbody > tr:hover > * { --bs-table-bg-state: var(--tb-hover); }
.table > tbody > tr:last-child > * { border-bottom-color: transparent; }
.table-bordered > tbody > tr:last-child > * { border-bottom-color: var(--tb-line); }
.table > tfoot > tr > * { background-color: var(--tb-head) !important; font-weight: 700; border-top: 2px solid var(--tb-head-line) !important; border-bottom: 0; }
/* tepi kiri & kanan sejajar dengan isi kartu */
.card > .table-responsive > .table > * > tr > :first-child, .card > .table > * > tr > :first-child,
.card > form > .table-responsive > .table > * > tr > :first-child { padding-left: 1rem; }
.card > .table-responsive > .table > * > tr > :last-child, .card > .table > * > tr > :last-child,
.card > form > .table-responsive > .table > * > tr > :last-child { padding-right: 1rem; }
/* angka, NIP & tanggal tidak terpotong; lencana rapi */
.table .font-monospace { white-space: nowrap; letter-spacing: -.01em; }
.table td.text-end, .table th.text-end { white-space: nowrap; }
.table .badge { font-weight: 600; line-height: 1.25; vertical-align: middle; }
.table td > .small, .table td > .text-muted.small { line-height: 1.3; }
/* kolom aksi: tombol seukuran & berjarak sama */
.table td .btn-sm { --bs-btn-padding-y: .22rem; --bs-btn-padding-x: .5rem; --bs-btn-font-size: .76rem; }
.table td .btn + .btn, .table td .btn + form, .table td form + .btn, .table td form + form { margin-left: .22rem; }
.table td.text-end > .btn, .table td.text-end > form, .table td.text-nowrap > form { vertical-align: middle; }
/* baris "tidak ada data" */
.table > tbody > tr > td[colspan].text-center.text-muted { padding-top: 2.2rem !important; padding-bottom: 2.2rem !important; background-color: #fff !important; font-size: .82rem; }
/* tabel berbingkai (DUK, rekap, proyeksi, matriks) */
.table-bordered > :not(caption) > * > * { border-color: var(--tb-line); }
.table-bordered > thead > tr > th { border-color: var(--tb-head-line); }
.duk-table > thead > tr > th { background-color: var(--navy); color: #fff; border-color: #24497a; }
.duk-table > tbody > tr:nth-child(even) > * { background-color: var(--tb-zebra); }
/* tabel kunci–nilai (Profil, Pengaturan) tidak ikut huruf kapital judul */
.detail-table > tbody > tr > th { white-space: normal; }
/* Monitoring: lencana status dapat terlipat dengan rapi */
.mon-table td .mon-badge { white-space: normal; text-align: left; max-width: 160px; font-size: .68rem; padding: .32em .55em; }
.mon-table td:nth-child(2) .badge { font-size: .62rem; padding: .28em .5em; }
.mon-table > tbody > tr > td { vertical-align: top; padding-top: .55rem; }
/* gulir horizontal yang halus */
.table-responsive { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; -webkit-overflow-scrolling: touch; }
.table-responsive::-webkit-scrollbar { height: 8px; }
.table-responsive::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
/* ponsel: lebih padat; kolom nama Monitoring tetap terlihat saat tabel digulir */
@media (max-width: 767.98px) {
  .table { font-size: .76rem; }
  .table > thead > tr > th { font-size: .6rem; }
  .table > :not(caption) > * > * { padding: .42rem .45rem; }
  .card > .table-responsive > .table > * > tr > :first-child, .card > .table > * > tr > :first-child { padding-left: .75rem; }
  .card > .table-responsive > .table > * > tr > :last-child, .card > .table > * > tr > :last-child { padding-right: .75rem; }
  .mon-table > * > tr > :nth-child(2) { position: sticky; left: 0; z-index: 1; border-right: 1px solid var(--tb-line); min-width: 170px; max-width: 200px; }
  .mon-table > tbody > tr > td:nth-child(2) { background-color: #fff; }
  .mon-table > tbody > tr:nth-child(even) > td:nth-child(2) { background-color: var(--tb-zebra); }
}
@media print {
  .table > tbody > tr:nth-child(even) > * { background-color: transparent !important; }
  .table > thead > tr > th { background-color: #eef1f6 !important; color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* v8.9 Panel Pengguna › Hak Akses: editor per pengguna, dikelompokkan sesuai menu */
.akses-table > tbody > tr.akses-editor > td { background: #f8fafc !important; border-top: 0; }
.akses-table > tbody > tr.akses-editor:not(.show) { display: none; }
.akses-kelompok { background: #fff; border: 1px solid var(--tb-line, #e9edf4); border-radius: 12px; padding: .75rem .85rem; }
.akses-kelompok-judul { display: flex; justify-content: space-between; align-items: center; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #5b6578; margin-bottom: .45rem; }
.akses-kelompok-judul .btn-link { font-size: .7rem; text-transform: none; letter-spacing: 0; text-decoration: none; }
.akses-item { padding: .3rem 0; border-top: 1px dashed #edf1f6; }
.akses-item:first-of-type { border-top: 0; }
.akses-item .form-check-label { font-size: .8rem; font-weight: 600; }
.akses-item .form-check-label .text-muted { font-size: .68rem; font-weight: 400; line-height: 1.3; }

/* v8.9: tautan ke fitur tanpa hak akses tampil sebagai teks */
a[aria-disabled="true"]:not([href]) { cursor: default; pointer-events: none; }
a.stat-card[aria-disabled="true"] .stat-label::after { content: " \1F512"; font-size: .7em; opacity: .5; }

/* v9.0 hasil analisis SK kenaikan pangkat */
.sk-hasil { border: 1px solid #dbe4f0; border-radius: 10px; padding: .55rem .7rem; background: #f7faff; }
.sk-hasil.is-ok { border-color: #bfe3cc; background: #f3fbf6; }
.sk-hasil.is-warn { border-color: #f3d9a4; background: #fffaf0; }
.sk-dl { display: grid; grid-template-columns: max-content 1fr; gap: .1rem .75rem; font-size: .78rem; }
.sk-dl dt { font-weight: 500; color: #64748b; } .sk-dl dd { margin: 0; font-weight: 600; }
.sk-terisi { box-shadow: 0 0 0 .2rem rgba(25, 135, 84, .25) !important; border-color: #198754 !important; transition: box-shadow .3s; }

/* v9.1 pratinjau berkas yang dipilih pada form unggah */
.dok-pratinjau { margin-top: .6rem; border: 1px solid #dbe4f0; border-radius: 10px; overflow: hidden; background: #fff; }
.dok-pratinjau[hidden] { display: none; }
.dok-pratinjau-kepala { display: flex; align-items: center; gap: .25rem; padding: .4rem .6rem; background: #f6f8fb; border-bottom: 1px solid #e9edf4; min-width: 0; }
.dok-pratinjau-isi { height: 460px; background: #eef1f5; transition: height .2s; }
.dok-pratinjau-isi.kecil { height: 300px; }
.dok-pratinjau-isi.besar { height: 78vh; }
.dok-pratinjau-isi iframe { width: 100%; height: 100%; border: 0; display: block; }
.dok-pratinjau-isi img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dok-pratinjau-kaki { font-size: .68rem; color: #64748b; padding: .3rem .6rem; border-top: 1px solid #eef1f6; }
.btn-xs { --bs-btn-padding-y: .1rem; --bs-btn-padding-x: .4rem; --bs-btn-font-size: .72rem; }
@media (max-width: 575.98px) { .dok-pratinjau-isi { height: 340px; } }
/* pratinjau berdampingan dengan form (layar ≥ 1200px) */
.modal-body.pv-samping { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.25rem; align-items: start; }
.modal-body.pv-samping > * { grid-column: 1; }
.modal-body.pv-samping > .dok-pratinjau { grid-column: 2; grid-row: 1 / span 30; position: sticky; top: 0; margin-top: 0; }
.modal-body.pv-samping > .dok-pratinjau .dok-pratinjau-isi { height: calc(100vh - 15rem); min-height: 420px; }

/* =========================================================
 *  CHAT END-TO-END (v9.2) — tampilan ala WhatsApp
 * ========================================================= */
.wa { --wa-hijau: #00a884; --wa-tua: #008069; --wa-garis: #e9edef; --wa-latar: #efeae2; --wa-saya: #d9fdd3;
  position: relative; display: grid; grid-template-columns: minmax(280px, 380px) 1fr; height: calc(100vh - 175px); min-height: 480px;
  background: #fff; border: 1px solid var(--wa-garis); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(11,58,111,.06); }
.wa .min-w-0 { min-width: 0; }
.wa-kiri { display: flex; flex-direction: column; border-right: 1px solid var(--wa-garis); min-height: 0; background: #fff; }
.wa-kanan { position: relative; display: flex; flex-direction: column; min-height: 0; background: var(--wa-latar); }
.wa-kepala { display: flex; align-items: center; gap: .65rem; padding: .6rem .9rem; background: #f0f2f5; border-bottom: 1px solid var(--wa-garis); min-height: 60px; }
.wa-sub { font-size: .72rem; color: #667781; }
.wa-ava { --h: 200; position: relative; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff;
  background: hsl(var(--h) 45% 52%); font-size: 1rem; }
.wa-on { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #25d366; border: 2px solid #fff; }
.wa-cari { position: relative; padding: .5rem .75rem; border-bottom: 1px solid var(--wa-garis); }
.wa-cari i { position: absolute; left: 1.45rem; top: 50%; transform: translateY(-50%); color: #8696a0; font-size: .8rem; }
.wa-cari input { width: 100%; border: 0; background: #f0f2f5; border-radius: 8px; padding: .45rem .75rem .45rem 2.1rem; font-size: .85rem; outline: none; }
.wa-cari input:focus { box-shadow: 0 0 0 2px rgba(0,168,132,.25); }
.wa-filter { display: flex; gap: .4rem; padding: .45rem .75rem; border-bottom: 1px solid var(--wa-garis); }
.wa-filter button { border: 0; background: #f0f2f5; color: #54656f; border-radius: 999px; padding: .2rem .75rem; font-size: .76rem; font-weight: 600; }
.wa-filter button.active { background: #e7fce3; color: var(--wa-tua); }
.wa-filter b { font-weight: 700; }
.wa-daftar { flex: 1; overflow-y: auto; min-height: 0; }
.wa-kosong-kecil { padding: 2rem 1rem; text-align: center; color: #8696a0; font-size: .85rem; }
.wa-item { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .9rem; border: 0; background: #fff; text-align: left; cursor: pointer; }
.wa-item:hover { background: #f5f6f6; }
.wa-item.aktif { background: #f0f2f5; }
.wa-item.redup .wa-ava { filter: grayscale(.6); opacity: .75; }
.wa-item-isi { flex: 1; min-width: 0; border-bottom: 1px solid var(--wa-garis); padding-bottom: .55rem; margin-bottom: -.55rem; }
.wa-item:last-child .wa-item-isi { border-bottom: 0; }
.wa-item-atas, .wa-item-bawah { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.wa-item-atas b { font-weight: 600; font-size: .9rem; color: #111b21; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-item-atas small { font-size: .7rem; color: #667781; flex: 0 0 auto; }
.wa-item-atas small.baru { color: #1fa855; font-weight: 600; }
.wa-prev { font-size: .8rem; color: #667781; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wa-jml { flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #25d366; color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.wa-sambut { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; background: #f8f9fa; border-bottom: 6px solid #25d366; }
.wa-sambut-ikon { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; color: var(--wa-tua); background: #e7fce3; margin-bottom: 1rem; }
.wa-e2e { font-size: .74rem; color: #667781; text-align: center; max-width: 420px; }
.wa-obrolan { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.wa-info { border: 0; background: transparent; padding: 0; }
.wa-kembali { display: none; }
.wa-pesan { flex: 1; overflow-y: auto; min-height: 0; padding: .8rem 6% 1rem; display: flex; flex-direction: column; gap: 2px;
  background-color: var(--wa-latar);
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 18px 18px; }
.wa-e2e-pesan { align-self: center; max-width: 520px; margin: .4rem 0 .8rem; padding: .45rem .8rem; border-radius: 8px; background: #ffeecd; color: #54656f; font-size: .74rem; text-align: center; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wa-sistem { align-self: center; margin: .35rem 0; }
.wa-sistem span { display: inline-block; padding: .3rem .7rem; border-radius: 8px; background: #fff7e0; color: #7a5b00; font-size: .74rem; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wa-tgl { align-self: center; margin: .6rem 0 .35rem; position: sticky; top: 0; z-index: 1; }
.wa-tgl span { display: inline-block; padding: .25rem .7rem; border-radius: 8px; background: #fff; color: #54656f; font-size: .72rem; font-weight: 600; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wa-baris { display: flex; margin-top: 2px; }
.wa-baris.saya { justify-content: flex-end; }
.wa-baris.saya + .wa-baris.lawan, .wa-baris.lawan + .wa-baris.saya { margin-top: 8px; }
.wa-gelembung { position: relative; max-width: min(75%, 560px); padding: .35rem .55rem .3rem .6rem; border-radius: 8px; background: #fff; color: #111b21; font-size: .88rem; line-height: 1.38;
  box-shadow: 0 1px .5px rgba(11,20,26,.13); word-wrap: break-word; overflow-wrap: anywhere; }
.wa-baris.saya .wa-gelembung { background: var(--wa-saya); }
.wa-baris.saya:not(.saya + .saya) .wa-gelembung { border-top-right-radius: 0; }
.wa-baris.lawan:not(.lawan + .lawan) .wa-gelembung { border-top-left-radius: 0; }
.wa-gelembung.x { color: #667781; font-size: .8rem; }
.wa-teks { white-space: pre-wrap; }
.wa-teks a { color: #027eb5; }
.wa-meta { float: right; margin: .35rem 0 -.2rem .6rem; font-size: .66rem; color: #667781; white-space: nowrap; line-height: 1; position: relative; top: .25rem; }
.wa-tick { color: #8696a0; margin-left: 2px; }
.wa-tick.dibaca { color: #53bdeb; }
.wa-baris.gagal .wa-gelembung { cursor: pointer; outline: 1px dashed #dc3545; }
.wa-tulis { display: flex; align-items: flex-end; gap: .5rem; padding: .55rem .8rem; background: #f0f2f5; }
.wa-tulis textarea { flex: 1; resize: none; border: 0; border-radius: 10px; padding: .55rem .85rem; font-size: .9rem; line-height: 1.35; max-height: 140px; outline: none; background: #fff; }
.wa-kirim { flex: 0 0 auto; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--wa-hijau); color: #fff; display: grid; place-items: center; }
.wa-kirim:hover { background: var(--wa-tua); }
.wa-tulis-off { padding: .8rem 1rem; background: #f0f2f5; color: #54656f; font-size: .8rem; text-align: center; }
.wa-lapis { position: absolute; inset: 0; z-index: 5; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(240,242,245,.94); backdrop-filter: blur(3px); }
.wa-lapis.tampil { display: flex; }
.wa-kartu { width: 100%; max-width: 380px; background: #fff; border-radius: 14px; padding: 1.5rem; box-shadow: 0 10px 30px rgba(11,20,26,.12); }
.wa-kartu-ikon { width: 64px; height: 64px; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: var(--wa-tua); background: #e7fce3; }
.wa-kode { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: .45rem 1rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .06em; color: #111b21; }
.chat-ava { --h: 200; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem; background: hsl(var(--h) 45% 52%); }
#chatList .notif-item { padding: .5rem .9rem; }
.nav-badge-chat { background: #25d366; }
@media (max-width: 991.98px) {
  .wa { grid-template-columns: 1fr; height: calc(100vh - 140px); border-radius: 10px; }
  .wa-kanan { display: none; }
  .wa.buka .wa-kiri { display: none; }
  .wa.buka .wa-kanan { display: flex; }
  .wa-kembali { display: grid; }
  .wa-pesan { padding: .6rem .7rem; }
  .wa-gelembung { max-width: 85%; }
}
@media print { .wa { display: none; } }

/* v9.3 — cek pemegang jabatan tugas tambahan */
.tugas-cek { border-radius: 10px; padding: .6rem .8rem; font-size: .85rem; border: 1px solid var(--line); background: #f8fafc; }
.tugas-cek.is-ok { background: #ecfdf3; border-color: #b7ebc6; color: #146c43; }
.tugas-cek.is-penuh { background: #fff4f2; border-color: #f5c2c7; color: #842029; }
.tugas-pemegang { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .45rem .55rem; margin-top: .35rem; border-radius: 8px; background: #fff; border: 1px solid #f1d4d6; color: var(--bs-body-color); }
.tugas-pemegang .min-w-0 { min-width: 0; }

/* v9.4 — pemisah "atau" & tombol Masuk dengan Email di form login */
.login-atau { display: flex; align-items: center; gap: .75rem; margin: .9rem 0 .7rem; color: var(--muted, #6b7488); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.login-atau::before, .login-atau::after { content: ""; flex: 1; height: 1px; background: var(--line, #e3e7ef); }

/* v9.4 — preferensi notifikasi chat (menu bar) */
.chat-pref { display: flex; flex-wrap: wrap; gap: .25rem; padding: .4rem .5rem; background: #f8fafc; }
.chat-pref-btn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border: 1px solid var(--line, #e3e7ef); background: #fff; color: #64748b; border-radius: 8px; padding: .3rem .45rem; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.chat-pref-btn.on { color: #128c7e; border-color: #9fe0c9; background: #ecfdf5; }
.chat-pref-btn:hover { border-color: #b8c2d3; }
.dropdown-item.on { color: #128c7e; }

/* v9.5 — masa maksimal kenaikan jabatan fungsional */
.text-bg-maks { background: #9d174d !important; color: #fff !important; }
.jf-panah .jf-maks { color: #9d174d; font-weight: 600; }

/* v9.5 — foto profil akun */
.profil-foto { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--navy-2, #164f93); color: #fff; font-size: 2rem; font-weight: 700; flex: 0 0 auto; box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(16,42,84,.15); }
.profil-foto img, .user-chip .avatar.has-foto img, .wa-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-chip .avatar.has-foto { overflow: hidden; padding: 0; background: #e5e9f0; }
.wa-ava img { border-radius: 50%; }
.profil-foto img:not(.d-none) + span { display: none; }

/* v9.5 — Panel Server */
.srv-angka { border: 1px solid var(--line, #e3e7ef); border-radius: 10px; padding: .55rem .4rem; background: #fff; }
.srv-angka b { display: block; font-size: 1.35rem; line-height: 1.1; color: #64748b; }
.srv-angka span { font-size: .7rem; color: #64748b; }
.srv-angka.ada { border-color: #f5c2c7; background: #fff5f5; }
.srv-angka.ada b { color: #b42318; }

/* v9.5 — kop surat (hanya saat dicetak; pratinjau di Pengaturan) */
.kop-cetak { display: none; color: #000; margin-bottom: 10px; }
.kop-cetak.tampil { display: block; background: #fff; padding: 12px 16px; border: 1px dashed var(--line, #e3e7ef); border-radius: 8px; }
.kop-cetak .kop-isi { display: flex; align-items: center; gap: 12px; }
.kop-cetak .kop-logo, .kop-cetak .kop-logo-imbang { width: 82px; height: 82px; object-fit: contain; flex: 0 0 82px; }
.kop-cetak .kop-teks { flex: 1; text-align: center; line-height: 1.25; font-family: Arial, Helvetica, sans-serif; }
.kop-cetak .kop-garis { border-top: 3px solid #000; border-bottom: 1px solid #000; height: 4px; margin-top: 6px; }
.kop-cetak.kop-gambar img { width: 100%; max-height: 170px; object-fit: contain; }
@media print { .kop-cetak { display: block !important; } }

/* v9.6.4: Monitoring — usulan ber-NIP sama dikelompokkan di atas */
.mon-table tr.mon-ganda > td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }
.mon-table tr.mon-fokus > td { background: #ecfdf5 !important; transition: background 1.5s; }

/* v9.7: lampiran & siaran chat */
.wa-klip { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #54656f; font-size: 1.1rem; }
.wa-klip:hover { background: rgba(0,0,0,.06); color: #111b21; }
.wa-lampir { display: flex; align-items: center; gap: .1rem; margin: 0 .8rem; padding: .45rem .7rem; border-radius: 10px 10px 0 0; background: #fff; border: 1px solid #e3e6ea; border-bottom: 0; font-size: .82rem; min-width: 0; }
.wa-gelembung.lampir { padding-top: .3rem; }
.wa-siaran { font-size: .68rem; font-weight: 600; color: #0f766e; margin-bottom: .15rem; }
.wa-gbr { display: block; padding: 0; border: 0; background: transparent; border-radius: 6px; overflow: hidden; margin-bottom: .2rem; cursor: zoom-in; }
.wa-gbr img { display: block; max-width: min(320px, 60vw); max-height: 320px; object-fit: cover; border-radius: 6px; }
.wa-gbr-muat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; width: 220px; height: 150px; background: rgba(0,0,0,.05); color: #8696a0; font-size: 1.6rem; border-radius: 6px; }
.wa-gbr-muat small { font-size: .7rem; padding: 0 .5rem; text-align: center; }
.wa-gbr-muat.x { font-size: 1.2rem; color: #b42318; }
.wa-berkas { display: flex; align-items: center; gap: .6rem; width: min(300px, 65vw); padding: .5rem .6rem; margin-bottom: .2rem; border: 0; border-radius: 6px; background: rgba(0,0,0,.05); text-align: left; color: inherit; }
.wa-berkas:hover { background: rgba(0,0,0,.09); }
.wa-berkas > .fa-solid:first-child { font-size: 1.7rem; color: #0b3a6f; }
.wa-berkas-isi { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wa-berkas-isi b { font-weight: 600; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-berkas-isi small { color: #667781; font-size: .7rem; }
.wa-berkas-unduh { color: #54656f; }
.wa-prog { height: 4px; border-radius: 2px; background: rgba(0,0,0,.08); overflow: hidden; margin: .1rem 0 .25rem; }
.wa-prog span { display: block; height: 100%; background: #25d366; transition: width .2s; }
.wa-obrolan.seret { outline: 3px dashed #25d366; outline-offset: -8px; }

/* ===== v9.8 Dokumen Publik ===== */
.dp-kat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .75rem; }
.dp-kat { display: flex; align-items: center; gap: .7rem; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.dp-kat:hover { border-color: var(--navy-3); box-shadow: 0 6px 18px rgba(14, 61, 117, .08); transform: translateY(-1px); }
.dp-kat b { display: block; font-size: .9rem; line-height: 1.25; }
.dp-kat small { color: var(--muted, #64748b); font-size: .78rem; }
.dp-kat-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--gold-soft); color: #b77f00; display: grid; place-items: center; flex-shrink: 0; }
.dp-kat.active { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.dp-kat.active small { color: #c3d3ea; }
.dp-kat.active .dp-kat-ic { background: rgba(255, 255, 255, .14); color: var(--gold); }
.dp-list { display: grid; gap: .6rem; }
.dp-item .card-body { padding: .9rem 1rem; }
.dp-item h3 { line-height: 1.35; }
.dp-min0 { min-width: 0; }
.dp-meta span { white-space: nowrap; }
@media (max-width: 575.98px) { .dp-item .card-body { flex-wrap: wrap; } .dp-item .card-body > .d-flex.flex-column { flex-direction: row !important; width: 100%; } }

/* ===== v9.8 Chat: edit & hapus pesan ===== */
.wa-gelembung { position: relative; }
.wa-aksi { position: absolute; top: 2px; right: 2px; width: 24px; height: 22px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .85); color: #54656f; font-size: .7rem; display: grid; place-items: center; opacity: 0; transition: opacity .15s; z-index: 2; cursor: pointer; }
.wa-baris:hover .wa-aksi, .wa-aksi:focus-visible { opacity: 1; }
@media (hover: none) { .wa-aksi { opacity: .75; } }
.wa-gelembung.lampir .wa-aksi { top: 6px; right: 6px; }
.wa-menu { position: fixed; z-index: 1080; min-width: 210px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 4px 0; }
.wa-menu button { display: flex; align-items: center; width: 100%; border: 0; background: none; padding: .55rem .9rem; font-size: .88rem; text-align: left; color: #1f2937; }
.wa-menu button.text-danger { color: #c0392b; }
.wa-menu button:hover, .wa-menu button:focus { background: #f1f5f9; outline: none; }
.wa-diedit { font-style: italic; opacity: .8; margin-right: 2px; }
.wa-gelembung.dihapus { color: #6b7280; font-size: .88rem; }

/* ===== v9.9 Chat: edit & hapus siaran ===== */
.wa-menu-judul { padding: .35rem .9rem .2rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #15803d; }
.wa-menu hr { margin: 4px 0; border-color: #e2e8f0; opacity: 1; }
.wa-sd { max-height: 52vh; overflow-y: auto; display: grid; gap: .5rem; text-align: left; }
.wa-sd-item { border: 1px solid #e2e8f0; border-radius: 10px; padding: .6rem .75rem; background: #fff; }
.wa-sd-item.dihapus { background: #f8fafc; color: #64748b; }
.wa-sd-isi { font-size: .9rem; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wa-sd-meta { font-size: .75rem; color: #64748b; margin-top: .2rem; }
.wa-sd-aksi { display: flex; gap: .4rem; margin-top: .45rem; }

/* ===== v10.0 Tautan dokumen ke email ===== */
.dl-kirim { border: 1px dashed #c7d4e8; background: #f7faff; border-radius: 10px; padding: .6rem .8rem; font-size: .88rem; }
