/* =========================================================
   SILAPIN - LAPORAN INDIKATOR
   Latar mint lembut, header hero, kartu kaca,
   pita hijau pada kartu indikator
   Ukuran dioptimalkan untuk laptop zoom 100%
========================================================= */


/* =========================================================
   LATAR HALAMAN
========================================================= */

body:has(.laporan-indikator-page) {
    background:
        radial-gradient(circle at 88% 8%, rgba(7, 141, 117, .16), transparent 38%),
        radial-gradient(circle at 12% 92%, rgba(39, 137, 197, .12), transparent 40%),
        linear-gradient(160deg, #e4f3ee 0%, #edf5f8 50%, #e2f0ec 100%) !important;
    background-attachment: fixed !important;
}

body:has(.laporan-indikator-page) .content {
    padding: 0 !important;
    background: transparent !important;
}

.laporan-indikator-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 16px 28px 30px;
    background: transparent;
    color: #243b46;
}


/* =========================================================
   HEADER HERO (LOGO + JUDUL + TOMBOL KEMBALI)
========================================================= */

.laporan-indikator-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 18px 26px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(120deg, #064b47 0%, #075e53 55%, #087765 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(6, 75, 71, .20);
}

/* Foto pelabuhan memudar dari kanan */
/* Sisi kiri: pola tanda plus kesehatan yang samar */
.laporan-indikator-header::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 62%;
    background: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2234%22%20height=%2234%22%20viewBox=%220%200%2034%2034%22%3E%3Cpath%20d=%22M17%2011v12M11%2017h12%22%20stroke=%22%23fff%22%20stroke-opacity=%22.08%22%20stroke-width=%223%22%20stroke-linecap=%22round%22/%3E%3C/svg%3E") 6px 4px / 34px 34px repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 100%);
    pointer-events: none;
}

/* Sisi kanan: panel mint miring + tanda plus hijau */
.laporan-indikator-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 44%;
    background:
        url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2234%22%20height=%2234%22%20viewBox=%220%200%2034%2034%22%3E%3Cpath%20d=%22M17%2011v12M11%2017h12%22%20stroke=%22%23087765%22%20stroke-opacity=%22.16%22%20stroke-width=%223%22%20stroke-linecap=%22round%22/%3E%3C/svg%3E") 8px 6px / 34px 34px repeat,
        linear-gradient(120deg, #eaf9f4, #cdeee3);
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

/* Komputer: tombol Kembali hijau supaya kontras di atas panel mint */
@media (min-width: 901px) {
    .laporan-indikator-header .tombol-kembali-laporan {
        text-decoration: none !important;
        background: #087765 !important;
        color: #fff !important;
        box-shadow: 0 6px 16px rgba(6, 75, 71, .25);
    }

    .laporan-indikator-header .tombol-kembali-laporan:hover {
        background: #06604f !important;
        color: #fff !important;
    }
}

/* HP/tablet: tanpa panel mint, cukup latar hijau bertanda plus */
@media (max-width: 900px) {
    .laporan-indikator-header::before {
        display: none;
    }

    .laporan-indikator-header::after {
        width: 100%;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

.laporan-header-kiri,
.tombol-kembali-laporan {
    position: relative;
    z-index: 1;
}

.laporan-header-kiri {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.laporan-indikator-header h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.laporan-indikator-header h2 i {
    margin-right: 8px;
    color: #a6f0d2;
}

.laporan-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #e6f6f1;
    font-size: 12.5px;
}

.info-chip i {
    color: #a6f0d2;
    font-size: 11px;
}

.info-chip strong {
    color: #fff;
    font-weight: 700;
}

/* Nama kategori di header: hanya tampil saat dicetak */
.laporan-kategori-cetak {
    display: none;
}

.tombol-kembali-laporan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 40px;
    padding: 8px 20px !important;
    border: none !important;
    border-radius: 12px;
    background: #fff !important;
    color: #07695c !important;
    font-size: 14px !important;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    transition: background .2s ease, transform .2s ease;
}

.tombol-kembali-laporan:hover {
    background: #e5f5f0 !important;
    color: #055c50 !important;
    transform: translateY(-1px);
}


/* =========================================================
   LOGO HEADER: SATU KAPSUL KACA + GARIS PEMISAH
========================================================= */

/* Kapsul kaca pembungkus kedua logo */
.laporan-indikator-header .laporan-logo-grup {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 18px;
    background: rgba(255, 255, 255, .20);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* Lambang karantina + garis pemisah di sisi kanannya */
.laporan-indikator-header .laporan-logo-karantina {
    position: relative;
    flex: 0 0 auto;
    padding: 0 16px 0 10px;
}

.laporan-indikator-header .laporan-logo-karantina::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, .45);
    transform: translateY(-50%);
}

.laporan-indikator-header .laporan-logo-karantina img {
    display: block;
    width: 46px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .25));
}

/* Lambang Kemenkes: transparan, ditanam di CSS */
.laporan-indikator-header .laporan-logo-kemenkes {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    margin: 0 10px 0 16px;
    padding: 0;
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAMAAADVRocKAAAAkFBMVEUAAAAasarR2gsKfHvM0jAznJn6+gRVpZwA//8zlZPKzTpNpJLJzEUul5KmrV21xUx/fwRpdHCvuU6prS5onWgAAP/Z3F6vtzm4wzrF0kLK0khGq5+2ylQ3hX0A/wBMqZyvtKL///+xvDi8zzUqeXa7xy+7yVL/AABEnHq+yj62x0cAAH8Vapc0iX1/Hx9Vap9ykSOPAAAAMHRSTlMA+/wHkVsFIAEiXltZphZcAgdhHg4BIlVZ3ozYJycBpwcBkNtOjPcBayeWAhZvAwdL9AbJAAAEg0lEQVR42s2a6XajOgyABQab1WAI2dOm+zIzd97/7a6cNE0gFobGnDP60ZKeHn2RbG02AP+YsEgpxfDXJNojdvHsHqFVsjhMQxTGJkHEYe59SR5qhFv1KvRaku8mVa8l/M+d/tKgHwnK1fqCUT8SgLnRP8vNAE84ITDKAO2kyIUBjDLAjQkMYlI/7qSjCbzknM+BO/YQRoPQ8VaeFZd8vIf+0h46+IijTlnXaMFc7hExGiB69HspzFB9FvgHCWAhgfORHrIAQFb+hQQSnAIEbD/9tiwj7g6QCrnyu1I8cFcAdFDlX8tyzEr3ADZ/YG4E+GPWoQeQbkFBZgI8jiCQgA36Z1GZLfAXDgAYAYvXNRQ+YcKNAMwR8sX3KYBfD15nAoD6Pw+hm1EAfhMgBVEccwNhQXEbAP1fPPl9FtwGOH3/qQC4P0+OIQEZxuBPAah/69sAVCBE7Eq6AJ2gV1aAeZuaG1rR2Z/NRfBSAGNVOPbP6aF//pZUtAAYX7NiZQdsDQagehHmhowTt/Sz1sYnAGtpqpsiNKec+NI/re9PAdBBpWGz5J4NIGDfCdwAkmEFh9SPDe5pDTYCrhKDEbAwlUyyvw1PFhz0rwYAEtMGUnR/+2XBPeqX196+BmT76+6urzs8AVD/dmUAdBc5MURABLvcArjX8fXk2wEJmHLEW097ewCgflE8mTZk20UB3xv0s74BQAM297gJzMW9DQi4McX1DgAagOliBis7IPiAevQAoLepuhPVKwU4r0GwJVK0FXCHAfz5EgTr4CDrdZZlX89zmGfHpyCRVCNhBeh/klI10DSXoYOi/9A8sEYp8feBLJIDXDSs+P0UEOkZo1gsk7Ogj46/tYsy/Rk//NhFQswkvPrWRX6pyUW2bNN7PQbYd5GPS07MZ/2BFm+wrP0yEzqpguiGIrClCi/l5h6xm4syow0RxLZk56Wyqey5SBOAjzMh/Kp1aEM1AOAv9/zN1G/lfYt8LM61qIYUHGIC3OWerSanhpRqKpkLs5NYbqnJSHiYPQ4p+sa2kVELfQHw0rJ+HNK2EDNmHOYWgLZh+WQHkAOUYmGe9wG8dwWLAa0jcSKiT8eU2Il4t4tRxPFHO5HgXlraAX5FpSXTCVw7U6XlZUyT7Ts9ZUbdGaSbCtP6osEbOYAMy7Xp/GzD6BFqUDJP5a/KBkhuAWBMy/WkAMx88rEvDm4GfOelAJbTALz0TSz6ALfsopMNDVbRCQFI+F2RB1LB8LsLuudIuaoKApCMOVIjm5p31UiiF5BOAF74Zj439T9GHWv2tGWpMgKKcQezv3v6vncmryerpeSuLkD08Fm8dPNcDeMAzHK8L4rgcn234++I+gCzQ6mdJ4GGBOtk3oy+AultjT11vGIptx94SyRlg9dFbi+JlJ5Pzi4fr96yCH9Ol76cl2XJufOLOubiVrnHR89Obq1pE/Kh86eV8GzWz1xdu5ttcKf/sJPgKpUyN9fV34y2m/JngDtwKwxarz04f6+C6d74eN6se2QGMMW7Id/PdzCJnDruaV6e+Yn8D9sJRqtYOE9LAAAAAElFTkSuQmCC") center / contain no-repeat;
    /* Gambar asli di dalam <img> disembunyikan, yang tampil adalah latar di atas */
    object-fit: none;
    object-position: 300% 300%;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .25));
}


/* =========================================================
   FILTER MENU + WILAYAH
========================================================= */

.laporan-filter-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 18px;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 8px 24px rgba(7, 100, 85, .08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.laporan-menu-label,
.laporan-filter-item label {
    display: block;
    margin-bottom: 8px;
    color: #064b47;
    font-size: 13.5px;
    font-weight: 700;
}

.laporan-filter-item .form-select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cfe3de;
    border-radius: 10px;
    background-color: #fff !important;
    color: #28534b !important;
    font-size: 14px;
}

.laporan-filter-item .form-select:focus {
    border-color: #54a99b;
    box-shadow: 0 0 0 3px rgba(0, 150, 136, .10);
}


/* =========================================================
   KARTU PILIHAN MENU (mode penuh)
========================================================= */

.laporan-menu-section {
    margin: 0;
}

/* Nama menu aktif: hanya tampil di HP */
.menu-aktif-nama {
    display: none;
}

.laporan-menu-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.laporan-menu-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: 10px 12px;
    border: 1px solid rgba(7, 131, 110, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .75);
    color: #174d46;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(7, 100, 85, .05);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.laporan-menu-card:hover {
    transform: translateY(-2px);
    background: #fff;
    color: #174d46;
    box-shadow: 0 8px 18px rgba(7, 131, 110, .12);
}

.laporan-menu-card.active {
    border-color: #087765;
    background: linear-gradient(135deg, #078d78, #087765);
    color: #fff;
    box-shadow:
        0 0 0 3px rgba(7, 141, 117, .18),
        0 10px 22px rgba(7, 131, 110, .28);
}

.laporan-menu-card.active:hover {
    color: #fff;
}

.laporan-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #d9f2eb;
    color: #078b70;
    font-size: 15px;
}

.laporan-menu-card.active .laporan-menu-icon {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.laporan-menu-text {
    padding-right: 16px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
}

.laporan-menu-check {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    font-size: 10px;
}


/* =========================================================
   MODE FOKUS (dari sidebar): kartu kategori terpilih
========================================================= */

.fokus-kategori {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(110deg, #064b47 0%, #075e53 55%, #087d68 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(6, 75, 71, .18);
}

.fokus-ikon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 19px;
}

.fokus-teks {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.fokus-teks small {
    display: block;
    color: #a6f0d2;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
}

.fokus-teks strong {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.fokus-menu-lain {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    color: #07695c;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    transition: background .2s ease, transform .2s ease;
}

.fokus-menu-lain:hover {
    background: #e5f5f0;
    color: #055c50;
    transform: translateY(-1px);
}


/* =========================================================
   KARTU REKAP SEMUA WILAYAH / PER WILAYAH (bisa diklik)
========================================================= */

.rekap-kartu {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(7, 131, 110, .15);
    border-radius: 16px;
    background: rgba(224, 244, 239, .7);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(7, 100, 85, .06);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.rekap-kartu:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .92);
    color: inherit;
    box-shadow: 0 14px 28px rgba(7, 100, 85, .13);
}

.rekap-kartu-ikon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #d9f2eb;
    color: #078b70;
    font-size: 20px;
}

.rekap-kartu-teks {
    flex: 1;
    min-width: 0;
}

.rekap-kartu-teks strong {
    display: block;
    color: #064b47;
    font-size: 14.5px;
    font-weight: 800;
}

.rekap-kartu-teks span {
    color: #5e778c;
    font-size: 12.5px;
    line-height: 1.45;
}

/* Panah bulat di kanan */
.rekap-kartu-panah {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #078d78;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(7, 100, 85, .12);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.rekap-kartu:hover .rekap-kartu-panah {
    background: #078d78;
    color: #fff;
    transform: translateX(3px);
}

/* Mode "sedang menampilkan semua wilayah" */
.rekap-kartu-aktif {
    border-color: #087765;
    background: linear-gradient(120deg, #078d78, #087765);
}

.rekap-kartu-aktif:hover {
    background: linear-gradient(120deg, #087765, #065f50);
}

.rekap-kartu-aktif .rekap-kartu-ikon {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.rekap-kartu-aktif .rekap-kartu-teks strong {
    color: #fff;
}

.rekap-kartu-aktif .rekap-kartu-teks span {
    color: #d6f3ea;
}


/* =========================================================
   RINGKASAN: KARTU JUMLAH INDIKATOR
========================================================= */

.ringkasan-laporan {
    margin-bottom: 18px;
}

.ringkasan-baris {
    display: grid;
    grid-template-columns: minmax(0, 360px);
    gap: 12px;
}

.ringkas-kartu {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(217, 242, 235, .9), rgba(255, 255, 255, .72));
    box-shadow: 0 8px 22px rgba(7, 100, 85, .08);
}

.ringkas-ikon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .75);
    color: #078b70;
    font-size: 23px;
}

.ringkas-teks {
    min-width: 0;
    line-height: 1.25;
}

.ringkas-teks strong {
    display: block;
    color: #064b47;
    font-size: 26px;
    font-weight: 800;
}

.ringkas-teks span {
    display: block;
    color: #355a52;
    font-size: 13px;
    font-weight: 700;
}

.ringkas-teks small {
    display: block;
    margin-top: 1px;
    color: #72928b;
    font-size: 11.5px;
}


/* =========================================================
   TOMBOL CETAK LAPORAN (menimpa style inline di PHP)
========================================================= */

.tombol-cetak-hilang {
    margin-bottom: 14px !important;
}

.tombol-cetak-hilang button {
    padding: 8px 16px !important;
    border-radius: 10px !important;
    background: #087765 !important;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(7, 131, 110, .2);
}

.tombol-cetak-hilang button:hover {
    background: #055c50 !important;
}


/* =========================================================
   DAFTAR KARTU INDIKATOR (2 KOLOM DI LAPTOP)
========================================================= */

.daftar-indikator {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.daftar-indikator .indikator-card:only-child {
    grid-column: 1 / -1;
}

.indikator-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 16px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 8px 22px rgba(7, 100, 85, .08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform .2s ease, box-shadow .2s ease;
}

.indikator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(7, 100, 85, .13);
}


/* =========================================================
   PITA HIJAU JUDUL INDIKATOR (gaya "Grafik Tren Risiko")
========================================================= */

.indikator-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 13px 18px;
    overflow: hidden;
    border-bottom: 0;
    background: linear-gradient(100deg, #064b47 0%, #075e53 45%, #087d68 100%);
    color: #fff;
}

/* Lengkung terang di sisi kanan */
.indikator-header::before {
    content: "";
    position: absolute;
    top: -70%;
    right: -8%;
    width: 44%;
    height: 240%;
    border-radius: 50%;
    background: radial-gradient(ellipse at 35% 50%, rgba(120, 214, 186, .38), rgba(120, 214, 186, 0) 68%);
    transform: rotate(16deg);
    pointer-events: none;
}

.indikator-header::after {
    content: "";
    position: absolute;
    top: -30%;
    right: 6%;
    width: 22%;
    height: 170%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .14);
    transform: rotate(16deg);
    pointer-events: none;
}

.indikator-header > * {
    position: relative;
    z-index: 1;
}

.indikator-judul {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 12px;
    min-width: 0;
}

/* Lencana kode indikator (A, B, C, ...) */
.indikator-kode {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border-radius: 10px;
    background: #fff;
    color: #075e53;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}

.indikator-nama,
.indikator-nama-jelas {
    min-width: 0;
    margin: 0;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.indikator-total {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
    text-align: right;
}

.indikator-total span {
    color: rgba(255, 255, 255, .75);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.indikator-total strong {
    color: #fff;
    font-size: 21px;
    font-weight: 800;
}


/* =========================================================
   GRAFIK BATANG BULANAN
========================================================= */

.grafik-bulanan {
    width: 100%;
    padding: 10px 14px 8px;
}

.baris-bulan {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 10px;
    min-height: 29px;
    padding: 0 4px;
    border-radius: 8px;
    transition: background .15s ease;
}

.baris-bulan:hover {
    background: rgba(217, 242, 235, .55);
}

.nama-bulan {
    color: #557770;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.area-bar {
    width: 100%;
    height: 12px;
    overflow: hidden;
    border-radius: 20px;
    background: #e4efec;
}

.batang-grafik {
    height: 100%;
    min-width: 0;
    border-radius: 20px;
    background: linear-gradient(90deg, #a9c3d6, #8eb0c8);
    transition: width .25s ease;
}

.nilai-bulan-grafik {
    color: #164c43;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.baris-bulan.nol {
    opacity: .5;
}

.baris-bulan.puncak .batang-grafik {
    background: linear-gradient(90deg, #2fbf8f, #078d75);
}

.baris-bulan.puncak .nilai-bulan-grafik {
    color: #067a64;
    font-weight: 800;
}

.baris-bulan.puncak .nama-bulan {
    color: #067a64;
    font-weight: 700;
}

.indikator-footer,
.tombol-cetak {
    display: none !important;
}


/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 1100px) {

    .daftar-indikator {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {

    .laporan-menu-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {

    .laporan-indikator-page {
        padding: 14px 16px 30px;
    }
}


/* =========================================================
   RESPONSIVE HP
========================================================= */

@media (max-width: 650px) {

    .laporan-indikator-page {
        padding: 12px 12px 30px;
    }

    /* ---------- Header ---------- */

    .laporan-indikator-header {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px;
        border-radius: 16px;
    }

    .laporan-indikator-header::before {
        width: 100%;
        opacity: .25;
    }

    .laporan-header-kiri {
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }

    .laporan-indikator-header .laporan-logo-grup {
        padding: 6px 8px;
    }

    .laporan-indikator-header .laporan-logo-karantina {
        padding: 0 12px 0 8px;
    }

    .laporan-indikator-header .laporan-logo-karantina img {
        width: 38px;
        height: 44px;
    }

    .laporan-indikator-header .laporan-logo-kemenkes {
        width: 40px;
        height: 40px;
        margin: 0 8px 0 12px;
    }

    .laporan-indikator-header h2 {
        font-size: 20px;
    }

    .tombol-kembali-laporan {
        width: 100%;
    }

    /* ---------- Filter ---------- */

    .laporan-filter-box {
        padding: 12px;
    }

    /* Bar hijau: nama lengkap menu yang sedang aktif */
    .menu-aktif-nama {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 10px;
        padding: 10px 12px;
        border-radius: 12px;
        background: linear-gradient(110deg, #064b47, #087765);
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.35;
        box-shadow: 0 6px 16px rgba(6, 75, 71, .18);
    }

    .menu-aktif-nama i {
        flex-shrink: 0;
        color: #a6f0d2;
        font-size: 16px;
    }

    /* 8 menu jadi 4 kolom x 2 baris, penomoran otomatis */
    .laporan-menu-section {
        counter-reset: nomorMenu;
    }

    .laporan-menu-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .laporan-menu-card {
        counter-increment: nomorMenu;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        min-height: 64px;
        padding: 8px 4px;
        text-align: center;
    }

    /* Nomor menu di bawah ikon */
    .laporan-menu-card::after {
        content: counter(nomorMenu);
        color: #174d46;
        font-size: 12px;
        font-weight: 800;
        line-height: 1;
    }

    .laporan-menu-card.active::after {
        color: #fff;
    }

    /* Teks panjang disembunyikan secara visual (tetap terbaca pembaca layar) */
    .laporan-menu-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .laporan-menu-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .laporan-menu-check {
        top: 4px;
        right: 4px;
        width: 16px;
        height: 16px;
        font-size: 8px;
    }

    /* ---------- Mode fokus ---------- */

    .fokus-kategori {
        flex-wrap: wrap;
        padding: 12px;
    }

    .fokus-teks {
        flex: 1 1 calc(100% - 60px);
    }

    .fokus-menu-lain {
        width: 100%;
        justify-content: center;
    }

    /* ---------- Rekap wilayah ---------- */

    .rekap-kartu {
        padding: 10px 12px;
    }

    .rekap-kartu-ikon {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .rekap-kartu-panah {
        width: 32px;
        height: 32px;
    }

    /* ---------- Ringkasan ---------- */

    .ringkasan-baris {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ringkas-kartu {
        padding: 10px 14px;
    }

    .ringkas-ikon {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .ringkas-teks strong {
        font-size: 22px;
    }

    /* ---------- Kartu indikator ---------- */

    .indikator-header {
        padding: 11px 14px;
    }

    .indikator-total strong {
        font-size: 18px;
    }

    .baris-bulan {
        grid-template-columns: 62px minmax(0, 1fr) 46px;
        gap: 6px;
    }
}


/* =========================================================
   CETAK
========================================================= */

@media print {

    @page {
        margin: 10mm;
    }

    body,
    body:has(.laporan-indikator-page) {
        background: #fff !important;
    }

    /* Lepas batas tinggi layar supaya isi mengalir ke banyak halaman */
    html,
    body,
    .main,
    .content,
    .laporan-indikator-page,
    .daftar-indikator {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .laporan-indikator-page {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        background: #fff !important;
        color: #000 !important;
    }


    /* ---------- Elemen yang tidak ikut dicetak ---------- */

    .tombol-kembali-laporan,
    .laporan-filter-box,
    .laporan-menu-section,
    .menu-aktif-nama,
    .fokus-kategori,
    .rekap-kartu,
    .ringkasan-laporan,
    .tombol-cetak-hilang,
    .indikator-footer,
    .tombol-cetak {
        display: none !important;
    }


    /* ---------- Header halaman: polos, tanpa foto ---------- */

    .laporan-indikator-header {
        margin-bottom: 8px !important;
        padding: 0 0 6px !important;
        background: none !important;
        color: #000 !important;
        box-shadow: none !important;
    }

    .laporan-indikator-header::before,
    .laporan-indikator-header::after {
        display: none !important;
    }

    .laporan-indikator-header h2,
    .laporan-indikator-header h2 i,
    .info-chip,
    .info-chip i,
    .info-chip strong {
        color: #000 !important;
        text-shadow: none !important;
    }

    .info-chip {
        border-color: #999 !important;
        background: none !important;
    }

    /* Nama kategori tampil di header halaman pertama */
    .laporan-kategori-cetak {
        display: block !important;
        margin-top: 8px;
        color: #000 !important;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.4;
    }


    /* ---------- Logo ---------- */

    .laporan-indikator-header .laporan-logo-grup {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .laporan-indikator-header .laporan-logo-karantina::after {
        background: #999;
    }

    .laporan-indikator-header .laporan-logo-karantina img {
        filter: none !important;
    }

    /* Latar CSS tidak ikut tercetak, jadi pakai gambar aslinya */
    .laporan-indikator-header .laporan-logo-kemenkes {
        background: none !important;
        object-fit: contain !important;
        object-position: center !important;
        filter: none !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }


    /* ---------- Kartu indikator ---------- */

    .daftar-indikator {
        display: block !important;
    }

    .indikator-card {
        margin-bottom: 10px !important;
        border: 1.5px solid #555 !important;
        border-radius: 8px !important;
        background: #fff !important;
        box-shadow: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        transform: none !important;
        break-before: auto !important;
        break-after: auto !important;
        break-inside: avoid !important;
        page-break-before: auto !important;
        page-break-after: auto !important;
        page-break-inside: avoid !important;
    }

    /* Pita hijau jadi polos */
    .indikator-header {
        padding: 9px 14px !important;
        border-bottom: 1.5px solid #555 !important;
        background: #f3f7f6 !important;
        color: #000 !important;
    }

    .indikator-header::before,
    .indikator-header::after {
        display: none !important;
    }

    .indikator-nama,
    .indikator-nama-jelas,
    .indikator-total span,
    .indikator-total strong {
        color: #000 !important;
        text-shadow: none !important;
    }

    .indikator-kode {
        background: #075e53 !important;
        color: #fff !important;
        box-shadow: none !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }


    /* ---------- Tabel 12 bulan bergaris ---------- */

    .grafik-bulanan {
        padding: 0 !important;
    }

    .baris-bulan {
        grid-template-columns: 90px minmax(0, 1fr) 60px !important;
        gap: 0 !important;
        min-height: 22px !important;
        padding: 0 !important;
        border-bottom: 1px solid #bbb !important;
        border-radius: 0 !important;
        opacity: 1 !important;
    }

    .baris-bulan:last-child {
        border-bottom: none !important;
    }

    /* Selang-seling abu tipis supaya mudah dibaca */
    .baris-bulan:nth-child(even) {
        background: #f4f6f6 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .nama-bulan {
        padding: 4px 10px !important;
        border-right: 1px solid #bbb !important;
        color: #000 !important;
        font-size: 11.5px !important;
        font-weight: 600 !important;
    }

    .area-bar {
        width: auto !important;
        height: 10px !important;
        margin: 0 10px !important;
        border: 1px solid #ccc !important;
        background: #fff !important;
    }

    .batang-grafik {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .nilai-bulan-grafik {
        padding: 4px 10px !important;
        border-left: 1px solid #bbb !important;
        color: #000 !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
    }

    /* Bulan bernilai 0 tetap terbaca jelas */
    .baris-bulan.nol .nama-bulan,
    .baris-bulan.nol .nilai-bulan-grafik {
        color: #444 !important;
    }

    .baris-bulan.puncak .nama-bulan,
    .baris-bulan.puncak .nilai-bulan-grafik {
        color: #000 !important;
    }
}

/* Tombol "Total Semua Wilayah" di samping pilihan wilayah */
.wilayah-baris {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.wilayah-baris .form-select {
    flex: 1 1 auto;
    min-width: 0;
}

.tombol-total-wilayah {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border: 1.5px solid #14a37f;
    border-radius: 10px;
    background: #fff;
    color: #067a64;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

a.tombol-total-wilayah:hover {
    background: #e4f6f0;
    color: #064b47;
}

.tombol-total-wilayah.aktif {
    background: linear-gradient(135deg, #14a37f, #067a64);
    border-color: #067a64;
    color: #fff;
    cursor: default;
}

@media (max-width: 650px) {
    .wilayah-baris {
        flex-direction: column;
    }

    .tombol-total-wilayah {
        justify-content: center;
        min-height: 42px;
    }
}

@media print {
    .wilayah-baris .tombol-total-wilayah {
        display: none !important;
    }
}


/* =========================================================
   HP: PEMILIH MENU = SATU BAR YANG BISA DIBUKA
   Nama lengkap menu tetap yang utama, ikon sebagai pelengkap.
========================================================= */

@media (max-width: 650px) {

    .menu-aktif-nama {
        width: 100%;
        margin: 0 0 10px;
        padding: 12px 14px;
        border: 0;
        font-family: inherit;
        font-size: 14px;
        text-align: left;
        cursor: pointer;
    }

    .menu-aktif-teks {
        flex: 1;
        min-width: 0;
    }

    .menu-aktif-ganti {
        display: inline-flex;
        flex-shrink: 0;
        align-items: center;
        gap: 5px;
        padding: 6px 11px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .2);
        font-size: 12px;
        font-weight: 800;
    }

    .menu-aktif-ganti i {
        color: #fff;
        font-size: 11px;
        transition: transform .2s ease;
    }

    .laporan-menu-section.menu-terbuka .menu-aktif-ganti i {
        transform: rotate(180deg);
    }

    /* Daftar tertutup sampai bar ditekan */
    .laporan-menu-cards {
        display: none;
        margin: 0 0 10px;
    }

    .laporan-menu-section.menu-terbuka .laporan-menu-cards {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* Tiap menu = satu baris: ikon + nama lengkap */
    .laporan-menu-card {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
        min-height: 58px;
        padding: 10px 14px;
        text-align: left;
    }

    .laporan-menu-card::after {
        content: none;
    }

    .laporan-menu-text {
        position: static;
        width: auto;
        height: auto;
        padding-right: 28px;
        overflow: visible;
        clip: auto;
        white-space: normal;
        font-size: 14.5px;
        font-weight: 700;
        line-height: 1.35;
    }

    .laporan-menu-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .laporan-menu-check {
        top: 50%;
        right: 12px;
        width: 22px;
        height: 22px;
        font-size: 11px;
        transform: translateY(-50%);
    }
}