/* =========================================================
   Dashboard Biro OSDMRB — Stylesheet Utama
   Bootstrap 5 + custom theme
   ========================================================= */

:root {
    --osdmrb-primary: #43538f;
    --osdmrb-primary-dark: #2f3f7c;
    --osdmrb-primary-light: #5366aa;
    --osdmrb-accent: #f0a44b;
    --osdmrb-bg: #f4f6fb;
    --osdmrb-border: #e5e7eb;
    --osdmrb-sidebar-width: 280px;
}

body {
    background: var(--osdmrb-bg);
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
}

/* ===================== AUTH PAGES (Corporate Split) ===================== */

.auth-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(1100px 520px at 8% -12%, rgba(83, 102, 170, .38), transparent 60%),
        radial-gradient(900px 520px at 108% 112%, rgba(240, 164, 75, .16), transparent 55%),
        linear-gradient(135deg, #222e5c 0%, var(--osdmrb-primary-dark) 45%, var(--osdmrb-primary) 100%);
    padding: 2rem 1rem;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    width: 100%;
    max-width: 980px;
    min-height: 620px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(13, 23, 62, .45);
}

/* ---------- Panel kiri : form ---------- */

.auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 48px;
    background: #fff;
}

.auth-main-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.auth-main-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--osdmrb-primary), var(--osdmrb-primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    box-shadow: 0 6px 14px rgba(67, 83, 143, .35);
}

.auth-main-head strong {
    display: block;
    font-size: 13.5px;
    color: #26376d;
    line-height: 1.25;
}

.auth-main-head span {
    display: block;
    font-size: 10.5px;
    color: #9ca3af;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #26376d;
    margin: 0 0 4px;
}

.auth-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 22px;
}

/* ---------- Panel kanan : informasi aplikasi ---------- */

.auth-info {
    position: relative;
    padding: 48px 44px;
    color: #fff;
    background: linear-gradient(160deg, var(--osdmrb-primary-dark) 0%, var(--osdmrb-primary) 68%, var(--osdmrb-primary-light) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.auth-info::before,
.auth-info::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-info::before {
    width: 300px;
    height: 300px;
    right: -110px;
    top: -110px;
    background: rgba(255, 255, 255, .06);
}

.auth-info::after {
    width: 380px;
    height: 380px;
    left: -160px;
    bottom: -180px;
    background: rgba(255, 255, 255, .05);
}

.auth-info > * { position: relative; z-index: 1; }

.auth-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.auth-info h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .3px;
    line-height: 1.25;
    margin: 0 0 8px;
}

.auth-info-lead {
    font-size: 13px;
    font-weight: 600;
    opacity: .95;
    margin: 0 0 10px;
}

.auth-info-desc {
    font-size: 12.5px;
    opacity: .82;
    line-height: 1.7;
    margin: 0 0 24px;
}

.auth-info-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 12px;
}

.auth-info-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    font-weight: 600;
    opacity: .95;
}

.auth-info-features i {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.auth-info-footer {
    font-size: 11px;
    opacity: .72;
    border-top: 1px solid rgba(255, 255, 255, .2);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---------- Input group + intip password ---------- */

.auth-input-group .input-group-text {
    background: #f1f5f9;
    border-color: var(--osdmrb-border);
    color: var(--osdmrb-primary);
    font-size: 13.5px;
}

.auth-input-group .form-control { border-left: 0; }

.auth-input-group .form-control:focus {
    box-shadow: none;
    border-color: var(--osdmrb-border);
}

.password-toggle {
    border-color: var(--osdmrb-border);
    color: #6b7280;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover,
.password-toggle:active,
.password-toggle:focus {
    color: var(--osdmrb-primary);
    background: #f1f5f9;
    box-shadow: none !important;
}

/* ---------- Captcha ---------- */

.captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px dashed var(--osdmrb-primary);
    border-radius: 8px;
    background:
        repeating-linear-gradient(-45deg, rgba(30, 96, 145, .06) 0 8px, transparent 8px 16px),
        #f8fafc;
    user-select: none;
}

.captcha-question {
    font-family: 'Courier New', monospace;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--osdmrb-primary-dark);
    white-space: nowrap;
}

.captcha-refresh {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--osdmrb-border);
    border-radius: 8px;
    background: #fff;
    color: var(--osdmrb-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.captcha-refresh:hover { background: #f1f5f9; }

.captcha-refresh:disabled { opacity: .6; }

.captcha-input { text-align: center; font-weight: 600; letter-spacing: 1px; }

@keyframes captcha-spin { to { transform: rotate(360deg); } }

.captcha-spinning { display: inline-flex; animation: captcha-spin .6s linear infinite; }

/* ---------- Auth responsive ---------- */

@media (max-width: 991.98px) {
    /* ----- Login: mode mobile, panel menumpuk ke bawah ----- */
    .auth-wrapper { padding: 1.25rem 0.9rem; }

    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
        max-width: 480px;
        min-height: auto;
    }

    .auth-info { order: -1; padding: 26px 24px 24px; }
    .auth-info h1 { font-size: 20px; margin-bottom: 6px; }
    .auth-info-lead { font-size: 12px; margin-bottom: 14px; }
    .auth-info-desc { display: none; }
    .auth-info-features { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
    .auth-info-features li { font-size: 11px; flex-direction: column; text-align: center; gap: 8px; }
    .auth-info-features i { width: 40px; height: 40px; font-size: 17px; }
    .auth-info-footer { padding-top: 12px; font-size: 10.5px; justify-content: center; text-align: center; }

    .auth-main { padding: 28px 24px 32px; }
    .auth-main-head { margin-bottom: 20px; }
    .auth-title { font-size: 20px; }
}

@media (max-width: 575.98px) {
    .auth-wrapper { padding: 1rem 0.75rem; }

    .auth-shell {
        max-width: 100%;
        border-radius: 14px;
        box-shadow: 0 14px 40px rgba(13, 23, 62, .35);
    }

    .auth-info { padding: 22px 18px 20px; }
    .auth-info h1 { font-size: 18px; }
    .auth-info-lead { font-size: 11.5px; }
    .auth-info-features li { font-size: 10.5px; }
    .auth-info-footer { flex-direction: column; gap: 2px; }

    .auth-main { padding: 24px 16px 28px; }
    .auth-main-head { margin-bottom: 18px; }
    .auth-title { font-size: 19px; }
    .auth-subtitle { font-size: 12.5px; margin-bottom: 18px; }

    /* Cegah auto-zoom iOS saat fokus input */
    .auth-main .form-control,
    .auth-main .input-group-text { font-size: 16px; }

    .captcha-question { font-size: 17px; letter-spacing: 2px; }
    .captcha-refresh { width: 42px; height: 42px; }

    /* Target sentuh minimal 44px */
    .password-toggle { min-width: 46px; }
    .form-check-input { width: 1.1em; height: 1.1em; }
}

@media (max-width: 359.98px) {
    .auth-info-features { grid-template-columns: 1fr; }
    .auth-info h1 { font-size: 16.5px; }
    .auth-main { padding: 20px 12px 24px; }
    .d-flex.flex-wrap { row-gap: 8px; }
}

/* ===================== APP LAYOUT ===================== */

.app-wrapper { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */

.sidebar {
    width: var(--osdmrb-sidebar-width);
    background: #fff;
    border-right: 1px solid var(--osdmrb-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    transition: width .25s ease;
    z-index: 1030;
}

.sidebar-brand {
    padding: 20px 18px 16px;
    border-bottom: 4px solid var(--osdmrb-primary);
    display: flex;
    gap: 12px;
    align-items: center;
}

.sidebar-brand .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--osdmrb-primary), var(--osdmrb-primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.sidebar-brand h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #26376d;
    line-height: 1.25;
}

.sidebar-brand span {
    font-size: 11px;
    color: #6b7280;
}

.sidebar-section {
    padding: 14px 14px 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #9ca3af;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 14px 14px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    background: var(--osdmrb-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all .25s ease;
}

.menu-item i { font-size: 17px; }

.menu-item:hover {
    background: var(--osdmrb-primary-dark);
    color: #fff;
    transform: translateX(3px);
}

.menu-item.active {
    background: var(--osdmrb-primary-dark);
    box-shadow: inset 4px 0 0 var(--osdmrb-accent);
}

/* ---------- Main ---------- */

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

.top-header {
    background: #fff;
    border-bottom: 1px solid var(--osdmrb-border);
    padding: 14px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.top-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #26376d;
}

.top-header .subtitle {
    margin: 0;
    font-size: 12.5px;
    color: #6b7280;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-chip .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--osdmrb-primary), var(--osdmrb-primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.user-chip .meta { line-height: 1.2; text-align: right; }
.user-chip .meta strong { font-size: 13px; color: #26376d; display: block; }
.user-chip .meta small { font-size: 11px; color: #6b7280; }

.content { padding: 24px 26px 40px; }

/* ---------- Cards ---------- */

.stat-card {
    background: #fff;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(38, 55, 109, .07);
    border: 1px solid var(--osdmrb-border);
    height: 100%;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(67, 83, 143, .1);
    color: var(--osdmrb-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    flex-shrink: 0;
}

.stat-icon.accent { background: rgba(240, 164, 75, .15); color: #d9862b; }
.stat-icon.success { background: rgba(25, 135, 84, .12); color: #198754; }
.stat-icon.danger { background: rgba(220, 53, 69, .12); color: #dc3545; }

.stat-card span { font-size: 12.5px; color: #6b7280; }
.stat-card h2 { margin: 3px 0 0; font-weight: 700; font-size: 24px; color: #26376d; }
.stat-card small { font-size: 11px; color: #9ca3af; }

.kpi-card {
    background: linear-gradient(135deg, var(--osdmrb-primary), var(--osdmrb-primary-light));
    color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(38, 55, 109, .25);
    height: 100%;
}

.kpi-card span { font-size: 13px; opacity: .9; }
.kpi-card h1 { margin: 6px 0 0; font-weight: 700; font-size: 34px; }

.chart-card,
.table-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(38, 55, 109, .07);
    border: 1px solid var(--osdmrb-border);
    height: 100%;
}

.chart-card h5,
.table-card h5 {
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 16px;
    color: #26376d;
}

/* ---------- Chart container (WAJIB tinggi tetap) ----------
   Tanpa ini, Chart.js (responsive + maintainAspectRatio:false) akan
   terus memperbesar canvas -> grafik "merambat turun" tanpa henti. */
.chart-wrap {
    position: relative;
    width: 100%;
    height: 250px; /* tinggi tetap, grafik statis */
}

.chart-wrap canvas {
    position: absolute;
    inset: 0;
    max-height: 100%;
}

.chart-wrap-donut { height: 265px; }

.card-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-card {
    background: #fff;
    padding: 18px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(38, 55, 109, .07);
    border: 1px solid var(--osdmrb-border);
}

.filter-card label { font-size: 11.5px; font-weight: 600; color: #6b7280; margin-bottom: 4px; }

/* ---------- Table ---------- */

.table th {
    background: var(--osdmrb-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}

.table td {
    font-size: 13px;
    vertical-align: middle;
    color: #374151;
}

.table-hover tbody tr:hover { background: rgba(67, 83, 143, .05); }

/* ---------- Buttons ---------- */

.btn-osdmrb {
    background: var(--osdmrb-primary);
    border-color: var(--osdmrb-primary);
    color: #fff;
}

.btn-osdmrb:hover {
    background: var(--osdmrb-primary-dark);
    border-color: var(--osdmrb-primary-dark);
    color: #fff;
}

.btn-outline-osdmrb {
    border-color: var(--osdmrb-primary);
    color: var(--osdmrb-primary);
}

.btn-outline-osdmrb:hover { background: var(--osdmrb-primary); color: #fff; }

/* ---------- Badges & status ---------- */

.badge { font-weight: 600; }

/* ---------- Form ---------- */

.form-label { font-size: 12.5px; font-weight: 600; color: #4b5563; }
.form-control, .form-select { font-size: 13.5px; }
.form-control:focus, .form-select:focus {
    border-color: var(--osdmrb-primary);
    box-shadow: 0 0 0 .2rem rgba(67, 83, 143, .15);
}

/* ---------- Timeline workflow ---------- */

.timeline { position: relative; padding-left: 26px; list-style: none; margin: 0; }

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--osdmrb-border);
}

.timeline-item { position: relative; padding-bottom: 18px; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--osdmrb-primary);
}

.timeline-item.muted::before { border-color: #d1d5db; }

/* ---------- Surat preview ---------- */

.letter-sheet {
    background: #fff;
    border: 1px solid var(--osdmrb-border);
    border-radius: 8px;
    padding: 40px 48px;
    font-family: 'Times New Roman', serif;
    font-size: 15px;
    line-height: 1.7;
    color: #111;
}

/* ---------- Print ---------- */

@media print {
    .sidebar, .top-header, .no-print { display: none !important; }
    .content { padding: 0 !important; }
    body { background: #fff; }
    .letter-sheet { border: none; }
}

/* ===================== MODUL BIRO OSDMRB ===================== */

/* Hero modul */
.module-hero {
    background: #fff;
    border: 1px solid var(--osdmrb-border);
    border-left: 4px solid var(--osdmrb-primary);
    border-radius: 10px;
    padding: 18px 22px;
    box-shadow: 0 2px 10px rgba(38, 55, 109, .07);
}

.module-hero h4 { font-weight: 700; font-size: 16.5px; color: #26376d; margin: 0 0 4px; }
.module-hero p { font-size: 13px; color: #6b7280; }
.module-hero-number { font-size: 28px; font-weight: 700; color: var(--osdmrb-primary); }

/* Kartu area RB / diklat */
.rb-card {
    background: #fff;
    border: 1px solid var(--osdmrb-border);
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(38, 55, 109, .07);
    transition: transform .15s ease, box-shadow .15s ease;
}

.rb-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(38, 55, 109, .12); }

.rb-card .rb-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(67, 83, 143, .1);
    color: var(--osdmrb-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.rb-card .progress-bar { background: var(--osdmrb-primary); }

/* AKHLAK items */
.akhlak-item {
    border: 1px solid var(--osdmrb-border);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    background: #fafbff;
}

.akhlak-item i { font-size: 22px; color: var(--osdmrb-accent); display: block; margin-bottom: 6px; }
.akhlak-item strong { display: block; font-size: 13px; color: #26376d; margin-bottom: 4px; }
.akhlak-item p { font-size: 11.5px; color: #6b7280; margin: 0; }

/* Kategori SOP */
.sop-cat-card {
    background: #fff;
    border: 1px solid var(--osdmrb-border);
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 10px rgba(38, 55, 109, .07);
}

.sop-cat-card i { font-size: 24px; color: var(--osdmrb-primary); display: block; margin-bottom: 8px; }
.sop-cat-card span { display: block; font-weight: 600; font-size: 13px; color: #26376d; }
.sop-cat-card small { color: #9ca3af; font-size: 11px; }

/* 9-box grid talenta */
.nine-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.nine-box-cell {
    border: 1px solid var(--osdmrb-border);
    border-radius: 8px;
    background: #fafbff;
    padding: 10px 6px;
    text-align: center;
}

.nine-box-cell i { display: block; font-size: 17px; color: var(--osdmrb-primary); margin-bottom: 4px; }
.nine-box-cell span { font-size: 10.5px; color: #4b5563; font-weight: 600; line-height: 1.2; }

/* ---------- Bagan struktur organisasi ---------- */
.org-tree-scroll { overflow-x: auto; padding: 10px 4px 18px; }

.org-tree { display: inline-flex; } /* biar bisa digulir ke samping */

.org-branch { display: flex; flex-direction: column; align-items: center; }

.org-node {
    background: #fff;
    border: 1.5px solid var(--osdmrb-primary);
    border-radius: 10px;
    padding: 10px 16px;
    min-width: 170px;
    max-width: 240px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(38, 55, 109, .1);
    position: relative;
}

.org-node strong { display: block; font-size: 12.5px; color: #26376d; line-height: 1.35; }

.org-node-level {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #9ca3af;
    margin-bottom: 2px;
}

.org-node-code {
    display: block;
    font-size: 10px;
    color: var(--osdmrb-primary);
    font-family: 'Courier New', monospace;
    margin-top: 3px;
}

.org-node--root { background: var(--osdmrb-primary); border-color: var(--osdmrb-primary-dark); }
.org-node--root strong, .org-node--root .org-node-level { color: #fff; }
.org-node--root .org-node-level { color: rgba(255, 255, 255, .75); }

.org-node--kementerian { border-color: var(--osdmrb-primary-dark); }
.org-node--es1 { border-color: var(--osdmrb-primary); }
.org-node--es2 { border-color: var(--osdmrb-primary-light); }
.org-node--es3 { border-color: #8aa0d8; }
.org-node--balai { border-color: var(--osdmrb-accent); }

.org-children {
    display: flex;
    gap: 18px;
    padding-top: 26px;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
}

/* garis penghubung vertikal dari parent */
.org-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 26px;
    background: #c7d0e6;
}

/* garis horizontal + vertikal ke tiap anak */
.org-branch:has(.org-children) > .org-node::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 13px;
    background: #c7d0e6;
}

@media (max-width: 575.98px) {
    .org-children { gap: 12px; }
    .org-node { min-width: 140px; max-width: 190px; padding: 8px 10px; }
    .org-node strong { font-size: 11.5px; }
    .nine-box-cell span { font-size: 9.5px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    .sidebar {
        width: 74px;
        position: fixed;
        left: 0;
        top: 0;
    }
    .sidebar-brand h4, .sidebar-brand span, .menu-item span, .sidebar-section { display: none; }
    .sidebar-brand { justify-content: center; }
    .menu-item { justify-content: center; }
    .main-content { margin-left: 74px; }
    .content { padding: 16px 14px 30px; }
    .top-header { padding: 12px 16px; }

    /* Chart tidak ikut menyusut terlalu kecil di tablet/HP */
    .chart-wrap { height: 260px; }
    .chart-wrap-donut { height: 270px; }
}

@media (max-width: 575.98px) {
    .chart-wrap { height: 240px; }
    .chart-wrap-donut { height: 255px; }
    .chart-card { padding: 14px; }
}

/* pagination */
.pagination .page-link { color: var(--osdmrb-primary); font-size: 13px; }
.pagination .page-item.active .page-link {
    background: var(--osdmrb-primary);
    border-color: var(--osdmrb-primary);
    color: #fff;
}
