/* Gaya bersama halaman data (curahhujan.php, tinggimukaair.php).
   Setelah diubah, naikkan ?v= di tag <link> kedua halaman supaya cache aplikasi ikut diperbarui. */
:root {
    --navy: #0b2a63;
    --biru: #1d6fe0;
    --latar: #eef2f8;
    --kartu: #ffffff;
    --garis: #e4e9f1;
    --teks: #1f2a37;
    --redup: #6b7a8c;
    --halus: #f5f7fb;
    --bayang: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    background: var(--latar);
    color: var(--teks);
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.wadah {
    max-width: 1560px;
    margin: 0 auto;
    padding: 12px 18px 32px;
}

/* ===== Bilah menu ===== */
.navbar {
    position: sticky;
    top: 10px;
    z-index: 1000;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 10px 0 14px;
    border-radius: 16px;
    background: rgba(11, 42, 99, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #fff;
    box-shadow: 0 8px 24px rgba(11, 42, 99, 0.25);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.nav-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.nav-brand b {
    display: block;
    font-size: 13.5px;
    letter-spacing: 0.6px;
}

.nav-brand small {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #ffd54f;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.nav-menu a,
.nav-menu > .nav-drop > button {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 13px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-drop.buka > button,
.nav-drop > button.aktif {
    background: rgba(255, 255, 255, 0.14);
}

.nav-drop {
    position: relative;
}

.nav-drop > button::after {
    content: '';
    margin-left: 6px;
    border: 5px solid transparent;
    border-top-color: currentColor;
    border-bottom: 0;
}

.nav-drop-isi {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 230px;
    padding: 6px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(11, 42, 99, 0.25);
    display: none;
}

.nav-drop-isi::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-drop.buka .nav-drop-isi {
    display: block;
}

.nav-drop-isi a,
.nav-drop-isi span {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    height: 40px !important;
    padding: 0 12px !important;
    border-radius: 9px !important;
    color: #344054 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.nav-drop-isi a:hover {
    background: #f0f5ff !important;
}

.nav-drop-isi a.aktif {
    background: #eaf1ff !important;
    color: var(--biru) !important;
}

.nav-drop-isi span {
    color: #b0bac6 !important;
}

.nav-drop-isi small {
    padding: 2px 7px;
    border-radius: 8px;
    background: #f0f2f5;
    color: #98a2b3;
    font-size: 10.5px;
}

.nav-burger {
    display: none;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 19px;
}

/* ===== Hero: judul, tanggal, ringkasan ===== */
.hero {
    position: relative;
    margin-top: 14px;
    padding: 22px 24px 20px;
    border-radius: 22px;
    background:
        radial-gradient(900px 300px at 85% -40%, rgba(80, 180, 255, 0.45), transparent 60%),
        radial-gradient(600px 260px at 0% 120%, rgba(0, 200, 170, 0.28), transparent 60%),
        linear-gradient(135deg, #0b2a63 0%, #1446a0 55%, #1d6fe0 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 42, 99, 0.25);
}

.hero-atas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.hero h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.hero .sub {
    margin-top: 3px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.langsung {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 20px;
    background: rgba(76, 217, 100, 0.22);
    color: #b9f6ca;
    font-size: 11.5px;
    font-weight: 600;
    vertical-align: 3px;
}

.langsung i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4cd964;
    animation: denyut 1.6s ease-in-out infinite;
}

@keyframes denyut {
    50% {
        opacity: 0.3;
    }
}

.nav-tanggal {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.nav-tanggal button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 18px;
}

.nav-tanggal button:hover {
    background: rgba(255, 255, 255, 0.16);
}

.nav-tanggal input {
    height: 36px;
    padding: 0 8px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

.nav-tanggal .hari-ini {
    width: auto;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
}

.kpi {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.kpi > div {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    min-width: 0;
}

.kpi small {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.kpi b {
    display: block;
    margin-top: 4px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.kpi b em {
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    opacity: 0.8;
}

.kpi span {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kpi .klik {
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.kpi .klik:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

/* bar sebaran kategori di hero */
.sebaran {
    display: flex;
    height: 10px;
    margin-top: 16px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
}

.sebaran i {
    display: block;
    height: 100%;
    transition: width 0.4s;
}

.sebaran-ket {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.sebaran-ket button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    font-size: 12px;
}

.sebaran-ket button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.sebaran-ket button.aktif {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.18);
    font-weight: 600;
}

.sebaran-ket i {
    width: 9px;
    height: 9px;
    border-radius: 3px;
}

/* ===== Bilah alat ===== */
.alat {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.chip-wilayah {
    display: flex;
    gap: 6px;
    flex: 1 1 100%;
    padding: 2px 0 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.chip-wilayah button {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--garis);
    border-radius: 17px;
    background: #fff;
    color: #475467;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}

.chip-wilayah button:hover {
    border-color: #b9c6d8;
}

.chip-wilayah button.aktif {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.chip-wilayah button em {
    padding: 1px 7px;
    border-radius: 10px;
    background: #eef2f8;
    color: var(--biru);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.chip-wilayah button.aktif em {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.cari {
    position: relative;
    flex: 1 1 220px;
}

.cari svg {
    position: absolute;
    top: 11px;
    left: 12px;
    width: 18px;
    height: 18px;
    fill: #98a2b3;
}

.cari input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 38px;
    border: 1px solid var(--garis);
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    outline: none;
}

.cari input:focus {
    border-color: var(--biru);
    box-shadow: 0 0 0 3px rgba(29, 111, 224, 0.14);
}

.segmen {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--garis);
    border-radius: 12px;
    background: #fff;
}

.segmen button {
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.segmen button.aktif {
    background: #eaf1ff;
    color: var(--biru);
}

.sakelar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--garis);
    border-radius: 12px;
    background: #fff;
    color: #475467;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.sakelar input {
    display: none;
}

.sakelar span {
    position: relative;
    width: 34px;
    height: 20px;
    border-radius: 10px;
    background: #d0d7e2;
    transition: background 0.2s;
}

.sakelar span::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s;
}

.sakelar input:checked + span {
    background: var(--biru);
}

.sakelar input:checked + span::after {
    transform: translateX(14px);
}

.tombol {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: #12805c;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
}

.tombol svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

/* ===== Tata letak utama ===== */
.grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr);
    gap: 16px;
    align-items: start;
    margin-top: 14px;
}

.kartu {
    border-radius: 18px;
    background: var(--kartu);
    box-shadow: var(--bayang);
    overflow: hidden;
}

.kartu-kepala {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--garis);
}

.kartu-kepala h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.kartu-kepala .ket {
    font-size: 12.5px;
    color: var(--redup);
}

.kartu-kepala .kanan {
    margin-left: auto;
}

/* ===== Daftar pos dengan pita 24 jam ===== */
.daftar {
    max-height: calc(100vh - 150px);
    min-height: 420px;
    overflow-y: auto;
}

.kepala-pita {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: var(--kolom);
    align-items: end;
    gap: 12px;
    padding: 8px 18px 6px;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--garis);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #98a2b3;
}

.kepala-pita .jam-label {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
}

.kepala-pita .jam-label span {
    text-align: left;
}

:root {
    --kolom: 44px minmax(150px, 1.1fr) minmax(230px, 1.5fr) 72px 70px 78px;
}

.grup-judul {
    position: sticky;
    top: 37px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-bottom: 1px solid var(--garis);
    background: #f7f9fc;
    color: #344054;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.grup-judul .panah {
    display: inline-block;
    transition: transform 0.2s;
    color: #98a2b3;
}

.grup-judul.tutup .panah {
    transform: rotate(-90deg);
}

.grup-judul span:last-child {
    margin-left: auto;
    font-weight: 500;
    color: var(--redup);
}

.baris {
    display: grid;
    grid-template-columns: var(--kolom);
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid #f1f4f8;
    cursor: pointer;
    transition: background 0.12s;
    animation: masuk 0.25s ease both;
}

@keyframes masuk {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
}

.baris:hover {
    background: #f7faff;
}

.baris.pilih {
    background: #eef4ff;
    box-shadow: inset 3px 0 0 var(--biru);
}

.bulat {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.info-pos {
    min-width: 0;
}

.info-pos b {
    display: block;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-pos small {
    display: block;
    overflow: hidden;
    margin-top: 1px;
    font-size: 12px;
    color: var(--redup);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lencana {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    vertical-align: 2px;
}

.lencana.off {
    background: #fdecec;
    color: #c62828;
}

.lencana.hujan {
    background: #e6f0ff;
    color: var(--biru);
}

.pita {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 2px;
    height: 22px;
}

.pita i {
    border-radius: 3px;
    background: #eef1f5;
    transition: transform 0.1s;
}

.pita i.nol {
    background: #e3e8ef;
}

.pita i.kosong {
    background: repeating-linear-gradient(135deg, #f3f5f8 0 3px, #e9edf2 3px 6px);
}

.pita i:hover {
    transform: scaleY(1.25);
    outline: 2px solid rgba(11, 42, 99, 0.5);
}

.angka-kolom {
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.angka-kolom small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--redup);
}

.kosong-besar {
    padding: 48px 16px;
    text-align: center;
    color: var(--redup);
}

/* tampilan tabel 6 jam */
table.tabel {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
}

.tabel th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px 8px;
    border-bottom: 1px solid var(--garis);
    background: #f7f9fc;
    color: #667085;
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.tabel th.kiri,
.tabel td.kiri {
    text-align: left;
}

.tabel th.urut::after {
    content: ' ▼';
    font-size: 9px;
}

.tabel th.urut.naik::after {
    content: ' ▲';
}

.tabel td {
    padding: 9px 8px;
    border-bottom: 1px solid #f1f4f8;
    text-align: center;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tabel tr.pos {
    cursor: pointer;
}

.tabel tr.pos:hover td {
    background: #f7faff;
}

.tabel tr.pos.pilih td {
    background: #eef4ff;
}

.tabel td .nilai {
    display: inline-block;
    min-width: 46px;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: 700;
}

.tabel td.kosong {
    color: #c6cdd8;
}

/* ===== Panel detail ===== */
.detail {
    position: sticky;
    top: 78px;
}

.detail-kepala {
    position: relative;
    padding: 18px 18px 14px;
    color: #fff;
    overflow: hidden;
}

.detail-kepala::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.detail-kepala .jenis {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    opacity: 0.85;
}

.detail-kepala h3 {
    margin: 3px 0 2px;
    font-size: 20px;
    font-weight: 800;
}

.detail-kepala .lokasi {
    font-size: 12.5px;
    opacity: 0.9;
}

.detail-kepala .besar {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 12px;
}

.detail-kepala .besar b {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.detail-kepala .besar span {
    font-size: 15px;
    font-weight: 600;
    opacity: 0.9;
}

.detail-kepala .chip {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 12px;
    font-weight: 600;
}

.mini-stat {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 14px 16px 4px;
}

.mini-stat div {
    padding: 9px 10px;
    border-radius: 12px;
    background: var(--halus);
    font-size: 11px;
    color: var(--redup);
}

.mini-stat b {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    color: var(--teks);
}

.tab {
    display: flex;
    gap: 4px;
    margin: 12px 16px 0;
    padding: 4px;
    border-radius: 12px;
    background: var(--halus);
}

.tab button {
    flex: 1;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.tab button.aktif {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

.isi-tab {
    padding: 12px 16px 16px;
}

.isi-tab[hidden] {
    display: none;
}

.pil-grafik {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4px;
}

svg.grafik {
    display: block;
    width: 100%;
    height: auto;
}

svg.grafik rect.batang {
    transition: opacity 0.15s;
}

svg.grafik rect.batang:hover {
    opacity: 0.75;
}

.legenda-grafik {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
    margin-top: 6px;
    font-size: 11.5px;
    color: #667085;
}

.legenda-grafik i {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 5px;
    border-radius: 3px;
    vertical-align: -1px;
}

.data-masuk {
    max-height: 360px;
    overflow-y: auto;
}

.data-masuk table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-masuk th {
    position: sticky;
    top: 0;
    padding: 8px;
    background: #f7f9fc;
    color: #667085;
    font-size: 11.5px;
    font-weight: 600;
    text-align: right;
}

.data-masuk th:first-child,
.data-masuk td:first-child {
    text-align: left;
}

.data-masuk td {
    padding: 7px 8px;
    border-bottom: 1px solid #f1f4f8;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.data-masuk td.ada {
    color: var(--biru);
    font-weight: 700;
}

#peta {
    height: 360px;
    border-radius: 14px;
}

.tautan-peta {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.tautan-peta a {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--garis);
    border-radius: 12px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.tautan-peta a.utama {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

/* tooltip pita */
.tip {
    position: fixed;
    z-index: 2000;
    padding: 7px 10px;
    border-radius: 10px;
    background: #101828;
    color: #fff;
    font-size: 12px;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    display: none;
}

.tip b {
    display: block;
    font-size: 13px;
}

.memuat {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s;
}

@media (max-width: 1180px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .detail {
        position: static;
    }

    .kpi {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .wadah {
        padding: 8px 10px 24px;
    }

    .navbar {
        top: 6px;
        height: 52px;
    }

    .nav-burger {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: min(270px, calc(100vw - 20px));
        padding: 6px;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 16px 40px rgba(11, 42, 99, 0.25);
    }

    .navbar.buka .nav-menu {
        display: flex;
    }

    .nav-menu a {
        color: #344054;
    }

    .nav-menu > .nav-drop > button {
        width: 100%;
        color: #98a2b3;
        font-size: 11px;
        text-transform: uppercase;
        pointer-events: none;
    }

    .nav-drop > button::after {
        display: none;
    }

    .nav-drop-isi {
        position: static;
        display: block;
        padding: 0;
        box-shadow: none;
    }

    .hero {
        padding: 16px 14px;
        border-radius: 18px;
    }

    .hero h1 {
        font-size: 20px;
    }

    .nav-tanggal {
        width: 100%;
        margin-left: 0;
    }

    .nav-tanggal input {
        flex: 1;
    }

    .kpi {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .kpi > div:first-child {
        grid-column: span 2;
    }

    .kpi b {
        font-size: 22px;
    }

    :root {
        --kolom: 40px minmax(0, 1fr) 64px;
    }

    .kepala-pita {
        display: none;
    }

    .baris {
        grid-template-areas: 'bulat info total' 'pita pita pita';
        row-gap: 8px;
        padding: 10px 12px;
    }

    .baris .bulat {
        grid-area: bulat;
    }

    .baris .info-pos {
        grid-area: info;
    }

    .baris .pita {
        grid-area: pita;
        height: 16px;
    }

    .baris .k-total {
        grid-area: total;
    }

    .baris .k-maks,
    .baris .k-durasi {
        display: none;
    }

    .grup-judul {
        top: 0;
    }

    .daftar {
        max-height: none;
    }

    .mini-stat {
        grid-template-columns: repeat(2, 1fr);
    }

    #peta {
        height: 300px;
    }
}

/* ===== Tombol login di menu & halaman login / input manual ===== */
.nav-menu a.nav-login {
    margin-left: 6px;
    background: #ffd54f;
    color: #0b2a63;
}

.nav-menu a.nav-login:hover,
.nav-menu a.nav-login.aktif {
    background: #ffe082;
}

/* "Input Data" berupa menu: Input Pos Manual / Import Kualitas Air */
.nav-menu > .nav-drop > button.nav-login {
    margin-left: 6px;
    background: #ffd54f;
    color: #0b2a63;
}

.nav-menu > .nav-drop > button.nav-login:hover,
.nav-drop.buka > button.nav-login,
.nav-menu > .nav-drop > button.nav-login.aktif {
    background: #ffe082;
}

@media (max-width: 767px) {
    .nav-menu > .nav-drop.nav-input > button.nav-login {
        margin: 0;
        background: transparent;
        color: #98a2b3;
    }
}

.nav-akun .nav-drop-isi {
    min-width: 220px;
}

/* menu Data (dropdown) bisa lebih dari satu */
.nav-drop + .nav-drop {
    margin-left: 2px;
}

.kotak-login {
    max-width: 400px;
    margin: 48px auto 0;
    padding: 28px 26px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--bayang);
}

.kotak-login h1 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
}

.kotak-login p {
    margin: 0 0 18px;
    font-size: 13.5px;
    color: var(--redup);
}

.isian {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
}

.isian input,
.isian select {
    display: block;
    width: 100%;
    height: 44px;
    margin-top: 6px;
    padding: 0 12px;
    border: 1px solid var(--garis);
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 400;
    outline: none;
}

.isian input:focus,
.isian select:focus {
    border-color: var(--biru);
    box-shadow: 0 0 0 3px rgba(29, 111, 224, 0.14);
}

.tombol-penuh {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: var(--navy);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.tombol-penuh:hover {
    background: #12387f;
}

.pesan {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px;
}

.pesan.galat {
    background: #fdecec;
    color: #b42318;
}

.pesan.sukses {
    background: #e7f6ec;
    color: #1b7f3b;
}

/* ===== Pilihan sumber data: Otomatis / Manual (di hero halaman Curah Hujan & Tinggi Muka Air) ===== */
.pilih-sumber {
    display: inline-flex;
    gap: 3px;
    margin-top: 10px;
    padding: 3px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
}

.pilih-sumber a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.pilih-sumber a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.pilih-sumber a.aktif {
    background: #fff;
    color: var(--navy);
}
