/* =====================================================================
   SIMPANAN Binuang — Sistem desain
   Dibangun di atas Bootstrap 5.3: variabel Bootstrap ditimpa sehingga
   seluruh halaman lama otomatis mengikuti tema baru (terang & gelap).
   ===================================================================== */

:root,
[data-bs-theme="light"] {
    --sp-brand: #0f766e;          /* hijau toska — warna utama */
    --sp-brand-600: #0d9488;
    --sp-brand-700: #115e59;
    --sp-brand-rgb: 15, 118, 110;
    --sp-accent: #f59e0b;         /* kuning emas — aksen */
    --sp-accent-rgb: 245, 158, 11;
    --sp-ink: #0f172a;
    --sp-muted: #64748b;
    --sp-surface: #ffffff;
    --sp-surface-2: #f1f5f9;
    --sp-bg: #f6f8fb;
    --sp-line: #e2e8f0;
    --sp-radius: 16px;
    --sp-radius-sm: 10px;
    --sp-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
    --sp-shadow-lg: 0 24px 60px -24px rgba(15, 23, 42, .28);

    --bs-primary: var(--sp-brand);
    --bs-primary-rgb: var(--sp-brand-rgb);
    --bs-primary-text-emphasis: #134e4a;
    --bs-primary-bg-subtle: #ccfbf1;
    --bs-primary-border-subtle: #99f6e4;
    --bs-link-color: var(--sp-brand);
    --bs-link-color-rgb: var(--sp-brand-rgb);
    --bs-link-hover-color: var(--sp-brand-700);
    --bs-link-hover-color-rgb: 17, 94, 89;
    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-bg: var(--sp-bg);
    --bs-body-color: var(--sp-ink);
    --bs-secondary-color: var(--sp-muted);
    --bs-border-color: var(--sp-line);
    --bs-border-radius: var(--sp-radius-sm);
    --bs-border-radius-lg: var(--sp-radius);
    --bs-tertiary-bg: var(--sp-surface-2);
    --bs-focus-ring-color: rgba(var(--sp-brand-rgb), .25);
}

[data-bs-theme="dark"] {
    --sp-brand: #2dd4bf;
    --sp-brand-600: #14b8a6;
    --sp-brand-700: #5eead4;
    --sp-brand-rgb: 45, 212, 191;
    --sp-ink: #e2e8f0;
    --sp-muted: #94a3b8;
    --sp-surface: #111a2e;
    --sp-surface-2: #0f1729;
    --sp-bg: #0a1020;
    --sp-line: #1e293b;
    --sp-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);

    --bs-primary: var(--sp-brand);
    --bs-primary-rgb: var(--sp-brand-rgb);
    --bs-primary-text-emphasis: #99f6e4;
    --bs-primary-bg-subtle: rgba(45, 212, 191, .12);
    --bs-primary-border-subtle: rgba(45, 212, 191, .3);
    --bs-link-color: var(--sp-brand);
    --bs-link-color-rgb: var(--sp-brand-rgb);
    --bs-link-hover-color: var(--sp-brand-700);
    --bs-body-bg: var(--sp-bg);
    --bs-body-color: var(--sp-ink);
    --bs-secondary-color: var(--sp-muted);
    --bs-border-color: var(--sp-line);
    --bs-tertiary-bg: var(--sp-surface-2);
    --bs-secondary-bg: var(--sp-surface);
}

html { scroll-behavior: smooth; }
body {
    font-size: .95rem;
    background: var(--sp-bg);
    color: var(--sp-ink);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 700; letter-spacing: -.01em; }
.text-secondary, .text-muted { color: var(--sp-muted) !important; }
::selection { background: rgba(var(--sp-brand-rgb), .2); }

/* ---------- Komponen Bootstrap disesuaikan ---------- */
.btn { border-radius: 12px; font-weight: 600; padding: .55rem 1.1rem; }
.btn-sm { border-radius: 10px; padding: .35rem .8rem; }
.btn-lg { border-radius: 14px; padding: .8rem 1.5rem; }
.btn-primary {
    --bs-btn-bg: var(--sp-brand); --bs-btn-border-color: var(--sp-brand);
    --bs-btn-hover-bg: var(--sp-brand-700); --bs-btn-hover-border-color: var(--sp-brand-700);
    --bs-btn-active-bg: var(--sp-brand-700); --bs-btn-active-border-color: var(--sp-brand-700);
    --bs-btn-disabled-bg: var(--sp-brand); --bs-btn-disabled-border-color: var(--sp-brand);
    box-shadow: 0 6px 16px -8px rgba(var(--sp-brand-rgb), .8);
}
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #042f2e; --bs-btn-hover-color: #042f2e; --bs-btn-active-color: #042f2e; }
.btn-outline-primary {
    --bs-btn-color: var(--sp-brand); --bs-btn-border-color: var(--sp-brand);
    --bs-btn-hover-bg: var(--sp-brand); --bs-btn-hover-border-color: var(--sp-brand);
    --bs-btn-active-bg: var(--sp-brand); --bs-btn-active-border-color: var(--sp-brand);
}
.btn-accent { background: var(--sp-accent); border-color: var(--sp-accent); color: #1f1300; }
.btn-accent:hover { background: #d97706; border-color: #d97706; color: #1f1300; }

.card {
    --bs-card-bg: var(--sp-surface);
    --bs-card-border-color: var(--sp-line);
    --bs-card-border-radius: var(--sp-radius);
    --bs-card-inner-border-radius: calc(var(--sp-radius) - 1px);
    --bs-card-cap-bg: transparent;
    box-shadow: var(--sp-shadow);
}
.card.shadow-sm, .card.shadow { box-shadow: var(--sp-shadow) !important; }
.card-header { font-weight: 600; border-bottom-color: var(--sp-line); }
.card-header.bg-white { background: transparent !important; }

.form-control, .form-select {
    border-radius: 12px; padding: .6rem .9rem;
    background-color: var(--sp-surface); border-color: var(--sp-line);
}
.form-control:focus, .form-select:focus {
    border-color: var(--sp-brand);
    box-shadow: 0 0 0 .25rem rgba(var(--sp-brand-rgb), .15);
}
.form-label { font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.form-text { color: var(--sp-muted); }
.input-group > .btn { border-radius: 0 12px 12px 0; }

.table { --bs-table-bg: transparent; }
.table > thead th, .table-light th {
    font-size: .75rem; text-transform: uppercase; letter-spacing: .04em;
    color: var(--sp-muted); font-weight: 600;
    background: var(--sp-surface-2) !important;
    border-bottom: 1px solid var(--sp-line);
}
[data-bs-theme="dark"] .table-light { --bs-table-bg: var(--sp-surface-2); --bs-table-color: var(--sp-ink); }

.badge { font-weight: 600; padding: .45em .75em; border-radius: 999px; letter-spacing: .01em; }
.alert { border-radius: var(--sp-radius-sm); border: 0; box-shadow: var(--sp-shadow); }
.alert p { margin: 0; }
.alert p + p { margin-top: .25rem; }
.nav-pills .nav-link.active { background: var(--sp-brand); }
.page-link { color: var(--sp-brand); }
.active > .page-link { background: var(--sp-brand); border-color: var(--sp-brand); }
.bg-primary { background-color: var(--sp-brand) !important; }
.text-primary { color: var(--sp-brand) !important; }
.border-primary { border-color: var(--sp-brand) !important; }

/* ---------- Navbar publik ---------- */
.sp-nav {
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--sp-line);
}
[data-bs-theme="dark"] .sp-nav { background: rgba(10, 16, 32, .8); }
.sp-nav .nav-link { font-weight: 600; color: var(--sp-muted); border-radius: 10px; padding: .45rem .8rem !important; }
.sp-nav .nav-link:hover, .sp-nav .nav-link.active { color: var(--sp-brand); background: rgba(var(--sp-brand-rgb), .08); }
.sp-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--sp-ink) !important; text-decoration: none; }
.sp-brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--sp-muted); letter-spacing: .02em; line-height: 1.1; }
.sp-logo {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; color: #fff; font-size: 1.2rem;
    background: linear-gradient(135deg, var(--sp-brand-600), var(--sp-brand-700));
    box-shadow: 0 6px 16px -6px rgba(var(--sp-brand-rgb), .7);
}
.theme-toggle { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; padding: 0; }

/* ---------- Hero ---------- */
.sp-hero {
    position: relative; overflow: hidden; color: #fff;
    border-radius: 28px; padding: clamp(2rem, 5vw, 4rem);
    background:
        radial-gradient(1000px 400px at 100% 0%, rgba(245, 158, 11, .35), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(45, 212, 191, .35), transparent 60%),
        linear-gradient(135deg, #0f766e 0%, #115e59 45%, #134e4a 100%);
    box-shadow: var(--sp-shadow-lg);
}
.sp-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
    background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to left, #000, transparent 70%);
}
.sp-hero > * { position: relative; z-index: 1; }
.sp-hero .lead { color: rgba(255, 255, 255, .85); }
.sp-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
}
.sp-track-box {
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 20px; padding: 1.25rem; backdrop-filter: blur(8px);
}
.sp-track-box .form-control { background: #fff; border: 0; color: #0f172a; }
.sp-greeting { font-size: .85rem; color: rgba(255,255,255,.75); }

/* ---------- Statistik ---------- */
.stat-card { padding: 1.25rem; border-radius: var(--sp-radius); background: var(--sp-surface); border: 1px solid var(--sp-line); box-shadow: var(--sp-shadow); height: 100%; position: relative; }
.stat-card .stat-label { font-size: .75rem; color: var(--sp-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.stat-card .stat-value { font-size: 1.9rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-card .stat-icon { position: absolute; top: 1.1rem; right: 1.1rem; }
.icon-tile {
    width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0;
}
.tile-teal   { background: rgba(13, 148, 136, .12); color: #0d9488; }
.tile-amber  { background: rgba(245, 158, 11, .14); color: #d97706; }
.tile-rose   { background: rgba(244, 63, 94, .12);  color: #e11d48; }
.tile-sky    { background: rgba(14, 165, 233, .12); color: #0284c7; }
.tile-violet { background: rgba(139, 92, 246, .12); color: #7c3aed; }
.tile-slate  { background: rgba(100, 116, 139, .14); color: #475569; }
[data-bs-theme="dark"] .tile-teal   { color: #2dd4bf; }
[data-bs-theme="dark"] .tile-amber  { color: #fbbf24; }
[data-bs-theme="dark"] .tile-rose   { color: #fb7185; }
[data-bs-theme="dark"] .tile-sky    { color: #38bdf8; }
[data-bs-theme="dark"] .tile-violet { color: #a78bfa; }
[data-bs-theme="dark"] .tile-slate  { color: #94a3b8; }

/* ---------- Kartu layanan ---------- */
.service-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    height: 100%;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--sp-shadow-lg) !important; border-color: rgba(var(--sp-brand-rgb), .4); }
.service-card .req { font-size: .82rem; color: var(--sp-muted); padding-left: 1.1rem; margin: 0; }
.service-card .req li { margin-bottom: .15rem; }
.service-meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--sp-muted); }
.service-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; font-size: 1.6rem; }

.section-title { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 800; margin-bottom: .25rem; }
.section-sub { color: var(--sp-muted); margin-bottom: 1.5rem; }
.eyebrow { font-size: .75rem; font-weight: 700; color: var(--sp-brand); text-transform: uppercase; letter-spacing: .1em; }

/* Langkah alur */
.step { display: flex; gap: 1rem; }
.step-num {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; font-weight: 800; font-size: .9rem;
    background: rgba(var(--sp-brand-rgb), .12); color: var(--sp-brand);
}

/* Desa */
.desa-pill {
    display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem;
    border-radius: 12px; background: var(--sp-surface); border: 1px solid var(--sp-line);
    font-weight: 600; font-size: .9rem;
}
.desa-pill .bi { color: var(--sp-brand); }
.desa-pill .count { margin-left: auto; font-size: .75rem; color: var(--sp-muted); font-weight: 500; }

/* Linimasa status tiket */
.timeline { display: flex; justify-content: space-between; position: relative; margin: 1.5rem 0 .5rem; }
.timeline::before { content: ""; position: absolute; top: 17px; left: 16.67%; right: 16.67%; height: 3px; background: var(--sp-line); border-radius: 3px; }
.timeline .tl-fill { position: absolute; top: 17px; left: 16.67%; height: 3px; background: var(--sp-brand); border-radius: 3px; transition: width .6s ease; }
.timeline .tl-step { position: relative; z-index: 1; text-align: center; flex: 1; font-size: .78rem; color: var(--sp-muted); font-weight: 600; }
.timeline .tl-dot { width: 36px; height: 36px; border-radius: 50%; margin: 0 auto .4rem; display: grid; place-items: center; background: var(--sp-surface); border: 3px solid var(--sp-line); color: var(--sp-muted); }
.timeline .tl-step.done .tl-dot { background: var(--sp-brand); border-color: var(--sp-brand); color: #fff; }
.timeline .tl-step.done { color: var(--sp-ink); }
.timeline .tl-step.rejected .tl-dot { background: #e11d48; border-color: #e11d48; color: #fff; }

/* Hint NIK pintar */
.nik-hint { font-size: .8rem; margin-top: .35rem; display: none; }
.nik-hint.show { display: block; }
.nik-hint .ok { color: #059669; }
.nik-hint .warn { color: #d97706; }
.nik-hint .bad { color: #e11d48; }

/* ---------- Footer ---------- */
.sp-footer { background: #0b1324; color: #94a3b8; }
.sp-footer h6 { color: #fff; font-weight: 700; margin-bottom: .9rem; }
.sp-footer a { color: #cbd5e1; text-decoration: none; }
.sp-footer a:hover { color: #fff; }
.sp-footer .list-unstyled li { margin-bottom: .45rem; }

/* ---------- Asisten pintar (widget chat) ---------- */
.asst-fab {
    position: fixed; right: 20px; bottom: 20px; z-index: 1080;
    width: 60px; height: 60px; border-radius: 50%; border: 0;
    background: linear-gradient(135deg, var(--sp-brand-600), var(--sp-brand-700));
    color: #fff; font-size: 1.5rem; box-shadow: 0 14px 30px -10px rgba(var(--sp-brand-rgb), .9);
    display: grid; place-items: center; transition: transform .2s ease;
}
.asst-fab:hover { transform: scale(1.06); }
.asst-fab .pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(var(--sp-brand-rgb), .6); animation: asstPulse 2.4s infinite; }
@keyframes asstPulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.asst-panel {
    position: fixed; right: 20px; bottom: 92px; z-index: 1080;
    width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
    background: var(--sp-surface); border: 1px solid var(--sp-line); border-radius: 22px;
    box-shadow: var(--sp-shadow-lg); display: none; flex-direction: column; overflow: hidden;
}
.asst-panel.open { display: flex; animation: asstIn .2s ease; }
@keyframes asstIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.asst-head { padding: 1rem 1.1rem; color: #fff; background: linear-gradient(135deg, #0f766e, #134e4a); display: flex; align-items: center; gap: .7rem; }
.asst-head .avatar { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 1.2rem; }
.asst-head small { color: rgba(255,255,255,.75); display: block; font-size: .72rem; }
.asst-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--sp-surface-2); }
.asst-msg { max-width: 85%; padding: .6rem .85rem; border-radius: 16px; font-size: .87rem; line-height: 1.5; word-wrap: break-word; }
.asst-msg.bot { background: var(--sp-surface); border: 1px solid var(--sp-line); border-bottom-left-radius: 4px; align-self: flex-start; }
.asst-msg.user { background: var(--sp-brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
[data-bs-theme="dark"] .asst-msg.user { color: #042f2e; }
.asst-msg ul { padding-left: 1.1rem; margin: .3rem 0 0; }
.asst-msg a { font-weight: 600; }
.asst-suggest { display: flex; flex-wrap: wrap; gap: .35rem; padding: .6rem 1rem 0; background: var(--sp-surface); }
.asst-suggest button { font-size: .75rem; border-radius: 999px; padding: .25rem .7rem; border: 1px solid rgba(var(--sp-brand-rgb), .35); background: transparent; color: var(--sp-brand); font-weight: 600; }
.asst-suggest button:hover { background: rgba(var(--sp-brand-rgb), .08); }
.asst-form { display: flex; gap: .5rem; padding: .75rem 1rem 1rem; background: var(--sp-surface); }
.asst-form input { flex: 1; border-radius: 12px; }
.asst-typing span { display: inline-block; width: 6px; height: 6px; margin: 0 1px; border-radius: 50%; background: var(--sp-muted); animation: asstDot 1s infinite; }
.asst-typing span:nth-child(2) { animation-delay: .15s; }
.asst-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes asstDot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* ---------- Back office (staf) ---------- */
.staff-shell { display: flex; min-height: 100vh; }
.staff-side {
    width: 260px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: #0b1324; color: #94a3b8; padding: 1.25rem 1rem;
}
.staff-side .sp-brand { color: #fff !important; }
.staff-side .sp-brand small { color: #64748b; }
.staff-side .side-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #475569; font-weight: 700; margin: 1.25rem .75rem .5rem; }
.staff-side .nav-link { color: #94a3b8; border-radius: 10px; padding: .55rem .75rem; display: flex; align-items: center; gap: .7rem; font-weight: 500; font-size: .9rem; }
.staff-side .nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.staff-side .nav-link.active { color: #fff; background: rgba(45, 212, 191, .14); box-shadow: inset 3px 0 0 #2dd4bf; }
.staff-side .nav-link .bi { font-size: 1.05rem; width: 20px; text-align: center; }
.staff-main { flex: 1; min-width: 0; }
.staff-top { position: sticky; top: 0; z-index: 1020; background: rgba(246, 248, 251, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--sp-line); }
[data-bs-theme="dark"] .staff-top { background: rgba(10, 16, 32, .85); }
@media (max-width: 991.98px) {
    .staff-side { position: fixed; left: 0; z-index: 1045; transform: translateX(-100%); transition: transform .25s ease; }
    .staff-side.open { transform: none; box-shadow: var(--sp-shadow-lg); }
}

/* ---------- Halaman masuk (split) ---------- */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .auth-split { grid-template-columns: 1.05fr 1fr; } }
.auth-art {
    display: none; color: #fff; padding: 3rem; position: relative; overflow: hidden;
    background:
        radial-gradient(800px 400px at 100% 0%, rgba(245,158,11,.35), transparent 60%),
        linear-gradient(160deg, #0f766e, #134e4a);
}
@media (min-width: 992px) { .auth-art { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-form-wrap { display: grid; place-items: center; padding: 2rem 1rem; }

/* ---------- Utilitas ---------- */
.rounded-4 { border-radius: var(--sp-radius) !important; }
.min-w-0 { min-width: 0; }
.fade-up { animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
a:focus-visible, button:focus-visible, .form-control:focus-visible {
    outline: 3px solid rgba(var(--sp-brand-rgb), .35); outline-offset: 2px;
}
@media (min-width: 992px) { .position-lg-sticky { position: sticky; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
    .sp-nav, .sp-footer, .asst-fab, .asst-panel, .staff-side, .staff-top, .alert { display: none !important; }
}

/* ---------- Laporan: tata letak cetak resmi (A4) ---------- */
@media print {
    @page { size: A4 portrait; margin: 14mm 14mm 16mm; }
    html, body { background: #fff !important; color: #000 !important; font-size: 10pt; }
    :root, [data-bs-theme="dark"] { --sp-surface: #fff; --sp-surface-2: #fff; --sp-bg: #fff; --sp-ink: #000; --sp-muted: #333; --sp-line: #999; --bs-body-bg: #fff; --bs-body-color: #000; }
    .staff-main main { padding: 0 !important; }
    .card, .stat-card { box-shadow: none !important; border: 1px solid #999 !important; break-inside: avoid; background: #fff !important; }
    .card-header { background: #f0f0f0 !important; font-weight: 700; padding: 4px 8px !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .laporan-table th, .laporan-table td { border: 1px solid #999 !important; padding: 3px 6px !important; color: #000 !important; }
    .laporan-table thead th { background: #e9e9e9 !important; text-transform: none; font-size: 9pt; letter-spacing: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .laporan-kpi .stat-card { padding: 6px 8px; }
    .laporan-kpi .stat-value { font-size: 13pt !important; }
    .laporan-kpi > div { width: 33.333% !important; flex: 0 0 auto; }
    .laporan-kop { position: relative; }
    .laporan-logo { position: absolute; left: 0; top: 0; height: 64px; }
    .laporan-garis { border: 0; border-top: 3px double #000; opacity: 1; margin: 6px 0 0; }
    .laporan-judul { font-size: 12pt; text-decoration: underline; }
    .laporan-section { margin-bottom: 10px !important; }
    .laporan-ttd { width: 70mm; margin: 16px 0 0 auto; text-align: center; break-inside: avoid; }
    .laporan-footer { margin-top: 14px; padding-top: 4px; border-top: 1px solid #bbb; font-size: 7.5pt; color: #555; text-align: center; break-inside: avoid; }
    .row > .col-lg-7, .row > .col-lg-5 { width: 100% !important; }
    /* Tabel panjang harus bisa berlanjut ke halaman berikutnya — jangan dipotong/di-scroll */
    .laporan-row { display: block !important; margin-left: 0 !important; margin-right: 0 !important; --bs-gutter-x: 0; }
    .laporan-row > [class*="col-"] { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin-bottom: 10px; }
    .laporan-section, .laporan-section.h-100 { height: auto !important; break-inside: auto !important; overflow: visible !important; }
    .laporan-section .table-responsive { overflow: visible !important; max-height: none !important; }
    .laporan-section .card-header { break-after: avoid; }
    .laporan-table thead { display: table-header-group; }
    .laporan-table tr { break-inside: avoid; }
    .progress { border: 1px solid #999; } .progress-bar { background: #555 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    a { color: #000 !important; text-decoration: none; }
}
