* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f5f8;
    color: #1f2937;
}

header {
    min-height: 70px;
    padding: 18px 28px;
    background: #ffffff;
    border-bottom: 1px solid #dce3ea;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 28px;
}

header p {
    margin: 5px 0 0;
    color: #64748b;
}

#connection-indicator {
    padding: 9px 14px;
    border-radius: 20px;
    background: #e2e8f0;
    font-size: 14px;
    font-weight: bold;
}

#connection-indicator.online {
    background: #dcfce7;
    color: #166534;
}

#connection-indicator.offline {
    background: #fee2e2;
    color: #991b1b;
}

main {
    padding: 20px;
}

.dashboard {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.card {
    background: #ffffff;
    border-radius: 10px;
    padding: 17px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 10px
        rgba(15, 23, 42, 0.05);
}

.card span {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 14px;
}

.card strong {
    display: block;
    font-size: 21px;
    color: #0f172a;
}

.map-section {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.map-header {
    padding: 16px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid #e2e8f0;
}

.map-header h2 {
    margin: 0 0 5px;
}

.map-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.last-update {
    font-size: 14px;
    color: #475569;
}

#map {
    width: 100%;
    height: 480px;
}

footer {
    padding: 18px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 700px) {

    header {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    main {
        padding: 12px;
    }

    .map-header {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    #map {
        height: 400px;
    }
}

.flood-status {
    display: inline-block;
    padding: 8px 13px;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 700;
}

.flood-status.normal {
    background: #dcfce7;
    color: #166534;
}

.flood-status.siaga {
    background: #fef3c7;
    color: #92400e;
}

.flood-status.waspada {
    background: #ffedd5;
    color: #c2410c;
}

.flood-status.awas {
    background: #fee2e2;
    color: #b91c1c;
}

.flood-status.unknown {
    background: #e2e8f0;
    color: #475569;
}

.chart-section {
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.chart-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.chart-header h2 {
    margin: 0 0 5px;
}

.chart-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.chart-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-control label {
    color: #475569;
    font-size: 14px;
}

.chart-control select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 380px;
    padding: 20px;
}

@media (max-width: 700px) {
    .chart-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .chart-control {
        width: 100%;
        justify-content: space-between;
    }

    .chart-container {
        height: 320px;
        padding: 12px;
    }
}

/* =========================================
   HEADER DAN NAVIGASI UTAMA
   ========================================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    min-height: 62px;

    padding:
        8px
        18px;

    background: #071b35;

    border-bottom: none;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    align-items: center;

    column-gap: 20px;

    box-shadow:
        0 8px 24px
        rgba(15, 23, 42, 0.16);
}


/* =========================================
   BRAND GEOFEWS
   ========================================= */

.brand {
    display: flex;

    align-items: center;

    gap: 8px;

    min-width: max-content;

    justify-self: start;
}


/* Logo GeoFEWS */

.brand-logo {
    display: block;

    width: 30px;
    height: 30px;

    flex:
        0
        0
        30px;

    object-fit: contain;

    transform: scale(1.2);

    transform-origin: center;
}


/* Nama GeoFEWS */

.brand h1 {
    margin: 0;

    color: #ffffff;

    font-size: 26px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: -0.5px;

    white-space: nowrap;
}


/* =========================================
   NAVIGASI UTAMA
   ========================================= */

.main-navigation {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    min-width: 0;

    justify-self: center;

    flex-wrap: nowrap;
}


/* =========================================
   TOMBOL NAVIGASI
   ========================================= */

.navigation-button {
    flex:
        0
        0
        auto;

    min-height: 40px;

    padding:
        9px
        16px;

    border: 1px solid transparent;

    border-radius: 9px;

    color: #dce7f5;

    background: transparent;

    font-size: 14px;
    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.navigation-button:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.1);
}


.navigation-button.active {
    color: #ffffff;

    background: #087f7b;

    border-color:
        rgba(255, 255, 255, 0.12);

    box-shadow:
        0 6px 16px
        rgba(8, 127, 123, 0.3);
}


/* =========================================
   DESKTOP / TABLET SEMPIT
   TETAP SATU BARIS
   ========================================= */

@media
    (min-width: 601px)
    and
    (max-width: 900px) {

    header {
        position: sticky;

        min-height: 62px;

        padding:
            8px
            18px;

        grid-template-columns:
            minmax(0, 1fr)
            auto
            minmax(0, 1fr);

        align-items: center;

        column-gap: 20px;
    }


    .brand {
        min-width: max-content;
    }


    .main-navigation {
        width: auto;

        min-width: 0;

        justify-content: center;

        justify-self: center;

        overflow: visible;

        flex-wrap: nowrap;
    }


    .navigation-button {
        flex:
            0
            0
            auto;

        white-space: nowrap;
    }

}


/* =========================================
   PONSEL
   ========================================= */

@media (max-width: 600px) {

    header {
        position: static;

        grid-template-columns: 1fr;

        align-items: stretch;

        gap: 12px;

        padding:
            12px
            14px;
    }

}

/* =========================================
   SISTEM HALAMAN TAB
   ========================================= */

.tab-page {
    display: none;
}

.tab-page.active {
    display: block;
}

.page-placeholder {
    min-height: 420px;
    padding: 64px 48px;

    border: 1px solid #dce3ea;
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f3f8fb
        );

    box-shadow:
        0 10px 30px
        rgba(15, 23, 42, 0.07);
}

.page-placeholder-label {
    display: inline-block;

    margin-bottom: 14px;
    padding: 7px 11px;

    border-radius: 20px;

    color: #087f7b;
    background: #dff7f4;

    font-size: 13px;
    font-weight: 700;
}

.page-placeholder h2 {
    margin: 0 0 14px;

    color: #071b35;
    font-size: 34px;
}

.page-placeholder p {
    max-width: 680px;
    margin: 0;

    color: #64748b;
    font-size: 17px;
    line-height: 1.7;
}

@media (max-width: 700px) {
    .page-placeholder {
        min-height: 360px;
        padding: 36px 24px;
    }

    .page-placeholder h2 {
        font-size: 28px;
    }
}

/* =========================================
   HALAMAN BERANDA
   PROFESIONAL
   ========================================= */

#tab-home {
    width: 100%;
}


/* =========================================
   HERO GEOFEWS - COMPACT
   ========================================= */

.home-pro-hero {
    position: relative;

    min-height: 220px;

    padding:
        26px
        34px;

    overflow: hidden;

    border: 1px solid
        rgba(255, 255, 255, 0.06);

    border-radius: 14px;

    background:
        #071b35
        url("/images/hero/geofews-hero-bg.svg")
        center center / cover
        no-repeat;

    box-shadow:
        0 12px 28px
        rgba(7, 27, 53, 0.12);
}


/* =========================================
   KONTEN HERO
   ========================================= */

.home-pro-hero-content {
    position: relative;

    z-index: 2;

    width: min(
        62%,
        720px
    );
}


/* =========================================
   LABEL HERO
   ========================================= */




/* =========================================
   GEOFEWS
   ========================================= */

.home-pro-hero h2 {
    margin:
        8px
        0
        0;

    color: #ffffff;

    font-size: clamp(
        60px,
        4.2vw,
        56px
    );

    font-weight: 700;

    line-height: 1;

    letter-spacing: -0.035em;
}


/* =========================================
   SUBTITLE HERO
   ========================================= */

.home-pro-hero h3 {
    max-width: 620px;

    margin:
        9px
        0
        0;

    color: #d7e6f2;

    font-size: clamp(
        24px,
        1.8vw,
        26px
    );

    font-weight: 500;

    line-height: 1.5;
}


/* =========================================
   DESKRIPSI HERO
   ========================================= */

.home-pro-hero-description {
    max-width: 650px;

    margin:
        17px
        0
        0;

    color: #aec2d3;

    font-size: 13.5px;

    line-height: 1.65;
}


/* =========================================
   ACTION HERO
   ========================================= */


/* =========================================
   TENTANG GEOFEWS / ALUR SISTEM
   ========================================= */

.home-pro-system {
    margin-top: 12px;

    padding:
        44px
        42px;

    border: 1px solid #dce5ee;

    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 8px 22px
        rgba(15, 23, 42, 0.045);
}


/* =========================================
   HEADER TENTANG GEOFEWS
   ========================================= */

.home-pro-system-header {
    position: relative;

    max-width: 900px;

    padding-left: 18px;

    margin-bottom: 30px;
}


/* Garis aksen vertikal */

.home-pro-system-header::before {
    content: "";

    position: absolute;

    top: 2px;
    left: 0;

    width: 4px;
    height: 58px;

    border-radius: 999px;

    background: linear-gradient(
        180deg,
        #0d9488,
        #22c7c7
    );
}


/* Eyebrow */

.home-pro-section-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: #0d9488;

    font-size: 12px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


/* Judul */

.home-pro-system-header h3 {
    margin: 0;

    color: #071b35;

    font-size: 25px;
    font-weight: 750;

    line-height: 1.16;

    letter-spacing: -0.025em;
}


/* Deskripsi */

.home-pro-system-header > p {
    max-width: 790px;

    margin:
        12px
        0
        0;

    color: #64748b;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.65;
}


/* =========================================
   GRID ALUR SISTEM
   ========================================= */

.home-pro-system-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;

    margin-top: 12px;
}


/* =========================================
   CARD TAHAP SISTEM
   ========================================= */
.home-pro-system-card {
    position: relative;

    display: grid;

    grid-template-columns:
        82px
        minmax(0, 1fr);

    align-items: center;

    gap: 20px;

    min-height: 130px;

    padding:
        20px
        20px;

    border: 1px solid #dce5ee;

    border-radius: 10px;

    background: #f8fafc;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}



.home-pro-system-card:hover {
    transform:
        translateY(-2px);

    border-color: #b7d8d5;

    box-shadow:
        0 8px 18px
        rgba(15, 23, 42, 0.055);
}


/* Card WebGIS sebagai output akhir */

.home-pro-system-card-final {
    border-color: #addbd6;

    background: #f0fbfa;
}

/* =========================================
   PANEL LOGO SISTEM
   ========================================= */

.home-pro-system-logo-panel {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 82px;
    height: 82px;

    overflow: hidden;

    border: 1px solid #dce5ee;

    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 4px 12px
        rgba(15, 23, 42, 0.04);
}

.home-pro-system-logo {
    display: block;

    width: auto;
    height: auto;

    max-width: 58px;
    max-height: 58px;

    object-fit: contain;
}

/* =========================================
   INFORMASI SISTEM
   ========================================= */

.home-pro-system-info {
    min-width: 0;
}


/* .home-pro-system-number {
    display: block;

    margin-bottom: 5px;

    color: #078c82;

    font-size: 15px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.06em;
}


.home-pro-system-info strong {
    display: block;

    margin: 0;

    color: #071b35;

    font-size: 17px;
    font-weight: 700;

    line-height: 1.2;
}


.home-pro-system-info p {
    max-width: 330px;

    margin:
        6px
        0
        0;

    color: #718096;

    font-size: 12.5px;

    line-height: 1.45;
} */

.home-pro-system-number {
    margin-bottom: 3px;
    font-size: 16px;
}

.home-pro-system-info strong {
    line-height: 1.15;
}

.home-pro-system-info p {
    margin-top: 4px;
    line-height: 1.35;
}


/* =========================================
   NOMOR TAHAP
   ========================================= */

.home-pro-system-number {
    display: block;

    margin-bottom: 23px;

    color: #078c82;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.07em;
}


/* =========================================
   NAMA TAHAP
   ========================================= */

.home-pro-system-card strong {
    display: block;

    color: #071b35;

    font-size: 17px;
    font-weight: 700;

    line-height: 1.35;
}


/* =========================================
   DESKRIPSI TAHAP
   ========================================= */

.home-pro-system-card p {
    margin:
        9px
        0
        0;

    color: #718096;

    font-size: 12.5px;

    line-height: 1.6;
}


/* =========================================
   CONTAINER UTAMA TINGKAT PERINGATAN
   ========================================= */

.home-pro-alert {
    margin-top: 12px;

    padding:
        44px
        42px;

    border: 1px solid #dce5ee;

    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 8px 22px
        rgba(15, 23, 42, 0.045);
}


/* =========================================
   HEADER TINGKAT PERINGATAN
   ========================================= */

.home-pro-alert .home-pro-section-header {
    position: relative;

    max-width: 900px;

    margin-bottom: 30px;

    padding-left: 18px;
}


/* Garis aksen vertikal */

.home-pro-alert
.home-pro-section-header::before {
    content: "";

    position: absolute;

    top: 2px;
    left: 0;

    width: 4px;
    height: 58px;

    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            #0d9488,
            #22c7c7
        );
}


/* Judul */

.home-pro-alert
.home-pro-section-header h3 {
    margin: 0;

    color: #071b35;

    font-size: 25px;
    font-weight: 750;

    line-height: 1.16;

    letter-spacing: -0.025em;
}


/* Deskripsi */

.home-pro-alert
.home-pro-section-header > p {
    max-width: 790px;

    margin:
        12px
        0
        0;

    color: #64748b;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.65;
}


/* =========================================
   SKALA TINGKAT PERINGATAN
   ========================================= */

.home-pro-alert-scale {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr)
        auto
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    align-items: center;

    margin-top: 31px;

    padding:
        24px
        26px;

    border: 1px solid #e1e8ef;

    border-radius: 12px;

    background: #f8fafc;
}


.home-pro-alert-item {
    display: flex;

    align-items: center;

    gap: 13px;
}

/* ===== TAMBAHKAN MULAI DI SINI ===== */

.home-pro-alert-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 36px;
    height: 36px;

    border-radius: 10px;

    color: #ffffff;

    box-shadow:
        0 4px 10px
        rgba(15, 23, 42, 0.12);
}


/* =========================================
   UKURAN IKON PUTIH DI DALAM BADGE
   ========================================= */

.home-pro-alert-icon {
    display: block;

    width: 24px;
    height: 24px;

    overflow: visible;

    transform-origin: center;
}


/* AMAN - PERISAI */

.home-pro-alert-aman
.home-pro-alert-icon {
    transform: scale(1.38);
}


/* WASPADA - LINGKARAN */

.home-pro-alert-waspada
.home-pro-alert-icon {
    transform: scale(1.48);
}


/* SIAGA - LONCENG */

.home-pro-alert-siaga
.home-pro-alert-icon {
    transform: scale(1.40);
}


/* AWAS - SEGITIGA */

.home-pro-alert-awas
.home-pro-alert-icon {
    transform: scale(1.20);
}


/* AMAN */

.home-pro-alert-aman
.home-pro-alert-badge {
    background: #16a34a;
}


/* WASPADA */

.home-pro-alert-waspada
.home-pro-alert-badge {
    background: #d89b00;
}


/* SIAGA */

.home-pro-alert-siaga
.home-pro-alert-badge {
    background: #ea580c;
}


/* AWAS */

.home-pro-alert-awas
.home-pro-alert-badge {
    background: #dc2626;
}



.home-pro-alert-item strong {
    display: block;

    color: #172033;

    font-size: 13px;

    line-height: 1.3;
}


.home-pro-alert-item small {
    display: block;

    margin-top: 3px;

    color: #7a899b;

    font-size: 10px;

    line-height: 1.4;
}


.home-pro-alert-divider {
    width: 36px;
    height: 1px;

    margin:
        0
        14px;

    background: #d2dce5;
}


/* Warna hanya sebagai indikator */

.home-pro-alert-aman
.home-pro-alert-dot {
    background: #16a34a;

    box-shadow:
        0 0 0 5px
        rgba(22, 163, 74, 0.09);
}


.home-pro-alert-waspada
.home-pro-alert-dot {
    background: #eab308;

    box-shadow:
        0 0 0 5px
        rgba(234, 179, 8, 0.09);
}


.home-pro-alert-siaga
.home-pro-alert-dot {
    background: #ea580c;

    box-shadow:
        0 0 0 5px
        rgba(234, 88, 12, 0.09);
}


.home-pro-alert-awas
.home-pro-alert-dot {
    background: #dc2626;

    box-shadow:
        0 0 0 5px
        rgba(220, 38, 38, 0.09);
}


/* Arah peningkatan */

.home-pro-alert-direction {
    display: grid;

    grid-template-columns:
        auto
        minmax(80px, 1fr)
        auto;

    align-items: center;

    gap: 13px;

    margin-top: 15px;
}


.home-pro-alert-direction > span,
.home-pro-alert-direction > strong {
    color: #8a99a8;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}


.home-pro-alert-direction > div {
    position: relative;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            #cbd5e1,
            #94a3b8
        );
}


.home-pro-alert-direction > div::after {
    content: "";

    position: absolute;

    top: -3px;
    right: 0;

    width: 6px;
    height: 6px;

    border-top: 1px solid #94a3b8;
    border-right: 1px solid #94a3b8;

    transform:
        rotate(45deg);
}


/* =========================================
   CTA
   ========================================= */

.home-pro-cta {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 50px;

    margin-top: 12px;

    padding:
        38px
        42px;

    overflow: hidden;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #071b35,
            #0a3152
        );

    box-shadow:
        0 14px 30px
        rgba(7, 27, 53, 0.12);
}


.home-pro-cta > div {
    position: relative;
    z-index: 1;

    max-width: 720px;
}


.home-pro-cta-eyebrow {
    display: block;

    margin-bottom: 9px;

    color: #69d9ce;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.09em;

    text-transform: uppercase;
}


.home-pro-cta h3 {
    margin: 0;

    color: #ffffff;

    font-size: 24px;

    line-height: 1.3;

    letter-spacing: -0.015em;
}


.home-pro-cta p {
    max-width: 650px;

    margin:
        13px
        0
        0;

    color: #aebfd0;

    font-size: 13px;

    line-height: 1.7;
}


.home-pro-cta-button {
    position: relative;
    z-index: 1;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 13px;

    flex: 0 0 auto;

    min-height: 47px;

    padding:
        11px
        18px;

    border: 1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 9px;

    color: #ffffff;

    background: #0d9488;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}


.home-pro-cta-button:hover {
    background: #0faaa0;

    transform:
        translateY(-2px);
}


/* =========================================
   RESPONSIVE BERANDA
   ========================================= */

@media (max-width: 1100px) {

    .home-pro-hero {
        min-height: 285px;

        padding:
            38px
            42px;
    }


    .home-pro-hero-content {
        width: min(
            66%,
            700px
        );
    }


    .home-pro-pipeline-arrow {
        flex-basis: 20px;
    }


    .home-pro-alert-divider {
        width: 20px;

        margin:
            0
            8px;
    }

    .home-pro-system-card {
        grid-template-columns:
            72px
            minmax(0, 1fr);

        gap: 16px;

        padding:
            20px
            18px;
    }


    .home-pro-system-logo-panel {
        width: 72px;
        height: 72px;
    }


    .home-pro-system-logo {
        max-width: 50px;
        max-height: 50px;
    }
}


@media (max-width: 900px) {

    .home-pro-hero {
        min-height: 270px;

        padding:
            36px
            34px;
    }


    .home-pro-hero-content {
        width: 74%;
    }

    .home-pro-section-header {
        display: block;
    }


    .home-pro-section-header > p {
        max-width: 620px;

        margin-top: 13px;

        text-align: left;
    }

    .home-pro-system-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }    

    .home-pro-alert-scale {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }


    .home-pro-alert-divider {
        display: none;
    }
}


@media (max-width: 700px) {

    .home-pro-hero {
        min-height: auto;

        padding:
            30px
            22px;

        border-radius: 14px;
    }


    .home-pro-hero-content {
        width: 100%;
        max-width: 100%;
    }


    .home-pro-hero h2 {
        font-size: 40px;
    }


    .home-pro-hero h3 {
        font-size: 18px;
    }


    .home-pro-hero-description {
        font-size: 13px;

        line-height: 1.6;
    }

    .home-pro-system,
    .home-pro-alert {
        padding:
            28px
            22px;
    }


    .home-pro-system-header h3,
    .home-pro-section-header h3 {
        font-size: 23px;
    }

    .home-pro-system-grid {
        grid-template-columns: 1fr;
    }

    .home-pro-system-card {
        grid-template-columns:
            68px
            minmax(0, 1fr);

        gap: 17px;

        min-height: 125px;

        padding:
            18px;
    }


    .home-pro-system-logo-panel {
        width: 68px;
        height: 68px;

        border-radius: 12px;
    }


    .home-pro-system-logo {
        max-width: 46px;
        max-height: 46px;
    }

    .home-pro-alert-scale {
        grid-template-columns: 1fr;
    }


    .home-pro-alert-direction {
        display: none;
    }


    .home-pro-cta {
        display: block;

        padding:
            30px
            24px;
    }


    .home-pro-cta-button {
        margin-top: 24px;
    }
}


@media (max-width: 480px) {

    .home-pro-hero {
        padding:
            27px
            18px;
    }


    .home-pro-hero h2 {
        font-size: 36px;
    }


    .home-pro-hero h3 {
        font-size: 17px;
    }

}

/* =========================================
   LAYOUT PEMANTAUAN BANJIR
   ========================================= */

#tab-flood-monitoring.active {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr);

    grid-template-areas:
        "hero"
        "summary"
        "main";

    gap: 12px;

    align-items: start;

    width: 100%;
    min-width: 0;
}


/* =========================================
   HEADER HALAMAN
   ========================================= */

#tab-flood-monitoring
.flood-monitoring-hero {
    grid-area: hero;

    min-width: 0;
    width: 100%;
}


/* =========================================
   RINGKASAN
   ========================================= */

#tab-flood-monitoring
.monitoring-summary {
    grid-area: summary;

    min-width: 0;
    margin-bottom: 0;
}



/* =========================================
   UKURAN VISUAL
   ========================================= */

#tab-flood-monitoring
.chart-container {
    height: 420px;
}


/* =========================================
   LAPTOP SEMPIT, TABLET, DAN PONSEL
   ========================================= */



/* =========================================
   TINGGI PETA DAN GRAFIK SAMA
   KHUSUS LAYAR LEBAR
   ========================================= */

/* =========================================
   AREA UTAMA PEMANTAUAN BANJIR
   KHUSUS DESKTOP
   ========================================= */

/* =========================================
   AREA UTAMA PEMANTAUAN BANJIR
   KHUSUS DESKTOP
   ========================================= */



/* =========================================
   HALAMAN KESEHATAN SISTEM
   ========================================= */

#tab-system-health {
    width: 100%;
}


/* =========================================
   HEADER KESEHATAN SISTEM
   ========================================= */

.health-page-header {
    position: relative;
    overflow: hidden;

    width: 100%;
    box-sizing: border-box;

    display: flex;
    align-items: center;

    min-height: 100px;

    padding:
        16px
        24px;

    border-radius: 14px;

    background:
        linear-gradient(
            120deg,
            #082d5b 0%,
            #06496a 58%,
            #08777b 100%
        );

    color: #ffffff;
}

.health-page-header::after {
    content: "";

    position: absolute;

    right: -90px;
    top: -120px;

    width: 420px;
    height: 420px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 50%;

    box-shadow:
        0 0 0 55px
            rgba(255, 255, 255, 0.025),
        0 0 0 110px
            rgba(255, 255, 255, 0.02);

    pointer-events: none;
}

.health-page-header > div {
    position: relative;
    z-index: 1;
}

.health-page-header h2 {
    margin: 0;

    color: #ffffff;

    font-size: 32px;
    letter-spacing: -0.02em;
}

.health-page-header p {
    max-width: 680px;

    margin:
        6px
        0
        0;

    color:
        rgba(
            255,
            255,
            255,
            0.86
        );

    font-size: 14px;

    line-height: 1.4;
}


/* =========================================
   BAGIAN KESEHATAN
   ========================================= */

/* .health-section {
    margin-top: 12px;
    padding: 30px;

    border: 1px solid #dce5ee;
    border-radius: 18px;

    background: #ffffff;

    box-shadow:none;
} */

.health-section {
    margin-top: 12px;

    padding: 20px;

    border:
        1px solid
        #dce5ee;

    border-radius: 16px;

    background: #ffffff;

    box-shadow: none;
}

.health-section-heading {
    margin-bottom: 14px;
}

.health-section-heading h3 {
    margin: 0;

    color: #071b35;

    font-size: 20px;
}

.health-section-heading p {
    margin: 7px 0 0;

    color: #718096;

    font-size: 12px;
}


/* =========================================
   KARTU STATUS KOMPONEN
   ========================================= */

.system-health-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}

/* =========================================
   GRAFIK GPS PADA KESEHATAN PERANGKAT
   ========================================= */

.health-gps-quality-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    width: 100%;

    margin-top: 15px;
}


.health-gps-quality-grid
.metric-chart-card {
    min-width: 0;
    width: 100%;
}

/* =========================================
   INFORMASI JARINGAN
   ========================================= */

.health-network-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;
}

/* =========================================
   MODE KOMUNIKASI
   ========================================= */

/*
 * Mode komunikasi adalah konfigurasi,
 * bukan status operasional.
 *
 * Karena itu warna dibuat teal-netral,
 * bukan hijau / amber / merah.
 */

.health-network-mode-card {
    border-color:
        #c7dddd;

    background:
        linear-gradient(
            145deg,
            #f8fcfc,
            #f0f7f7
        );
}


/* Ikon MODE */

.health-network-mode-card
.health-network-mode-icon {
    color:
        #0f6468;

    background:
        #dceeee;
}


/* Nilai konfigurasi */

.health-network-mode-card
.health-network-mode-value {
    color:
        #0f6468;

    background:
        #ecf8f8;

    border-color:
        #9ccaca;

    box-shadow:
        none;

    white-space:
        nowrap;
}


.health-network-signal-chart {
    margin-top: 15px;
}


.health-network-signal-chart
.metric-chart-card {
    width: 100%;
    box-sizing: border-box;
}

/* =========================================
   DAYA DAN KELISTRIKAN
   ========================================= */

.health-power-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    width: 100%;
}


.health-power-grid
.metric-chart-card {
    min-width: 0;
    width: 100%;
}

.system-health-card {
    display: grid;

    grid-template-columns:
        44px minmax(0, 1fr) auto;

    gap: 12px;
    align-items: center;

    min-height: 86px;
    padding: 14px;

    border: 1px solid #dfe7ef;
    border-radius: 14px;

    background: #ffffff;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


.system-health-card:hover {
    border-color: #c8d8e6;

    transform: translateY(-1px);

    box-shadow:
        0 6px 16px
        rgba(15, 23, 42, 0.06);
}

.system-health-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border-radius: 13px;

    color: #087f7b;
    background: #dff7f4;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.system-health-content {
    min-width: 0;
}

.system-health-content strong {
    display: block;

    color: #10233d;

    font-size: 16px;
}

.system-health-content p {
    margin: 6px 0 0;

    color: #718096;

    font-size: 13px;
    line-height: 1.45;
}

.system-health-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 72px;
    max-width: 145px;

    padding: 8px 11px;

    overflow-wrap: anywhere;

    border: 1px solid #dce5ee;
    border-radius: 999px;

    color: #526173;
    background: #ffffff;

    font-size: 12px;
    font-weight: 800;
    text-align: center;
}


/* Status yang akan digunakan JavaScript nanti */

.system-health-value.status-ok {
    color: #15803d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.system-health-value.status-warning {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}

.system-health-value.status-error {
    color: #b91c1c;
    background: #fff1f2;
    border-color: #fecdd3;
}

.system-health-value.status-unknown {
    color: #64748b;
    background: #f8fafc;
    border-color: #dce5ee;
}


/* =========================================
   KARTU NILAI DIAGNOSTIK
   ========================================= */

.health-metric-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}

.health-metric-card {
    min-height: 150px;
    padding: 21px;

    border: 1px solid #dfe7ef;
    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fbfd
        );
}

.health-metric-card > span {
    display: block;

    margin-bottom: 15px;

    color: #64748b;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.health-metric-card strong {
    display: block;

    color: #071b35;

    font-size: 25px;
    line-height: 1.25;
}

.health-metric-card p {
    margin: 11px 0 0;

    color: #7a899b;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================
   RESPONSIVE KESEHATAN SISTEM
   ========================================= */

@media (max-width: 900px) {

    .system-health-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    /* Grafik Satelit GPS dan HDOP */
    .health-gps-quality-grid {
        grid-template-columns: 1fr;
    }


    .health-network-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .health-metric-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .health-power-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 500px) {

    .system-health-grid {
        grid-template-columns: 1fr;
    }


    .health-network-grid {
        grid-template-columns: 1fr;
    }


    .health-metric-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   WARNA STATUS KESEHATAN LEBIH TEGAS
   ========================================= */

/* NORMAL / SEHAT */
.system-health-value.status-ok {
    color: #065f46;
    background: #bbf7d0;
    border-color: #16a34a;

    box-shadow:
        0 0 0 3px rgba(22, 163, 74, 0.12);
}


/* PERINGATAN */
.system-health-value.status-warning {
    color: #78350f;
    background: #fde68a;
    border-color: #d97706;

    box-shadow:
        0 0 0 3px rgba(217, 119, 6, 0.14);
}


/* GANGGUAN / ERROR */
.system-health-value.status-error {
    color: #7f1d1d;
    background: #fecaca;
    border-color: #dc2626;

    box-shadow:
        0 0 0 3px rgba(220, 38, 38, 0.14);
}


/* STATUS TIDAK DIKETAHUI */
.system-health-value.status-unknown {
    color: #334155;
    background: #e2e8f0;
    border-color: #64748b;

    box-shadow:
        0 0 0 3px rgba(100, 116, 139, 0.1);
}


/* =========================================
   WARNA LATAR KARTU SESUAI STATUS
   ========================================= */

.system-health-card:has(
    .system-health-value.status-ok
) {
    background: #ffffff;
    border-color: #dce5ee;
}

.system-health-card:has(
    .system-health-value.status-warning
) {
    background: #fffbeb;
    border-color: #fbbf24;
}

.system-health-card:has(
    .system-health-value.status-error
) {
    background: #fff1f2;
    border-color: #fda4af;
}

.system-health-card:has(
    .system-health-value.status-unknown
) {
    background: #f8fafc;
    border-color: #cbd5e1;
}


/* Ikon mengikuti kondisi kartu */

.system-health-card:has(
    .system-health-value.status-ok
)
.system-health-icon {
    color: #166534;
    background: #bbf7d0;
}

.system-health-card:has(
    .system-health-value.status-warning
)
.system-health-icon {
    color: #92400e;
    background: #fde68a;
}

.system-health-card:has(
    .system-health-value.status-error
)
.system-health-icon {
    color: #991b1b;
    background: #fecaca;
}

.system-health-card:has(
    .system-health-value.status-unknown
)
.system-health-icon {
    color: #475569;
    background: #e2e8f0;
}

/* =========================================
   RINGKASAN GLOBAL KONDISI PERANGKAT
   ========================================= */

.health-global-summary {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;

    width: 100%;

    margin-top: 12px;
}


/* =========================================
   KARTU GLOBAL
   ========================================= */

.health-global-card {
    position: relative;

    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
    min-height: 76px;

    padding:
        9px
        11px;

    overflow: hidden;

    border:
        1px solid
        #dce5ee;

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 4px 14px
        rgba(15, 23, 42, 0.045);
}


/* =========================================
   IKON
   ========================================= */

.health-global-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex:
        0
        0
        44px;

    width: 44px;
    height: 44px;

    border:
        2px solid
        #ffffff;

    border-radius: 13px;

    color: #ffffff;

    font-size: 24px;
    font-weight: 800;

    line-height: 1;

    box-shadow:
        0 0 0 1px
            rgba(15, 23, 42, 0.12),
        0 4px 9px
            rgba(15, 23, 42, 0.12);
}


/* =========================================
   ISI
   ========================================= */

.health-global-content {
    min-width: 0;
}

.health-global-label {
    display: block;

    margin-bottom: 2px;

    color: #64748b;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.055em;

    text-transform: uppercase;
}

.health-global-card strong {
    display: block;

    color: #071b35;

    font-size: 22px;

    font-weight: 800;

    line-height: 1;
}

.health-global-card p {
    margin:
        3px
        0
        0;

    color: #7a899b;

    font-size: 12px;

    line-height: 1.25;
}


/* =========================================
   TOTAL PERANGKAT
   ========================================= */

.health-global-total {
    border-color: #bfdbfe;

    background: #f8fbff;
}

.health-global-total
.health-global-icon {
    background:
        linear-gradient(
            145deg,
            #2563eb,
            #1d4ed8
        );
}


/* =========================================
   NORMAL
   ========================================= */

.health-global-normal {
    border-color: #bbf7d0;

    background: #f7fef9;
}

.health-global-normal
.health-global-icon {
    background:
        linear-gradient(
            145deg,
            #22c55e,
            #15803d
        );
}


/* =========================================
   PERINGATAN
   ========================================= */

.health-global-warning {
    border-color: #fde68a;

    background: #fffdf5;
}

.health-global-warning
.health-global-icon {
    background:
        linear-gradient(
            145deg,
            #f59e0b,
            #d97706
        );
}


/* =========================================
   TIDAK AKTIF
   ========================================= */

.health-global-inactive {
    border-color: #cbd5e1;

    background: #f8fafc;
}

.health-global-inactive
.health-global-icon {
    background:
        linear-gradient(
            145deg,
            #94a3b8,
            #64748b
        );
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {

    .health-global-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 480px) {

    .health-global-summary {
        grid-template-columns: 1fr;
    }

}


/* =========================================
   PEMILIHAN PERANGKAT
   ========================================= */

.health-device-tabs-section {
    margin-top: 12px;
}


/* =========================================
   JUDUL AREA PERANGKAT
   ========================================= */





/* =========================================
   CONTAINER TAB
   ========================================= */

.health-device-tabs-shell {
    position: relative;

    width: 100%;

    overflow: hidden;

    border:
        1px solid
        #d7e0e9;

    border-radius:
        10px
        10px
        0
        0;

    background: #e8edf3;
}

/* =========================================
   BAR TAB
   ========================================= */

.health-device-tabs {
    display: flex;

    align-items: flex-end;

    gap: 3px;

    width: 100%;

    padding:
        6px
        6px
        0;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: thin;
}


/* =========================================
   SATU TAB PERANGKAT
   ========================================= */

/* .health-device-tab {
    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    flex:
        0
        0
        auto;

    min-width: 175px;
    min-height: 50px;

    padding:
        8px
        14px;

    border:
        1px solid
        transparent;

    border-bottom: none;

    border-radius:
        10px
        10px
        0
        0;

    color: #526173;

    background:
        rgba(
            255,
            255,
            255,
            0.38
        );

    font-family: inherit;

    text-align: left;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
} */

.health-device-tab {
    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    flex:
        0
        0
        auto;

    min-width: 165px;
    min-height: 44px;

    padding:
        6px
        12px;

    border:
        1px solid
        transparent;

    border-bottom: none;

    border-radius:
        10px
        10px
        0
        0;

    color: #526173;

    background:
        rgba(
            255,
            255,
            255,
            0.38
        );

    font-family: inherit;

    text-align: left;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}


.health-device-tab:hover {
    background:
        rgba(
            255,
            255,
            255,
            0.68
        );
}


/* =========================================
   TAB AKTIF
   ========================================= */

.health-device-tab.active {
    z-index: 2;

    color: #071b35;

    background: #ffffff;

    border-color: #d7e0e9;

    box-shadow:
        0 -2px 8px
        rgba(15, 23, 42, 0.035);
}


/* Menghilangkan garis bawah pada tab aktif */

.health-device-tab.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: -1px;

    height: 2px;

    background: #ffffff;
}


/* =========================================
   STATUS DEVICE
   ========================================= */

.health-device-tab-status {
    flex:
        0
        0
        9px;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #94a3b8;

    box-shadow:
        0 0 0 3px
        rgba(148, 163, 184, 0.14);
}


/* NORMAL */

.health-device-tab-status.status-normal {
    background: #16a34a;

    box-shadow:
        0 0 0 3px
        rgba(22, 163, 74, 0.12);
}


/* PERINGATAN */

.health-device-tab-status.status-warning {
    background: #d97706;

    box-shadow:
        0 0 0 3px
        rgba(217, 119, 6, 0.13);
}


/* TIDAK AKTIF */

.health-device-tab-status.status-inactive {
    background: #64748b;

    box-shadow:
        0 0 0 3px
        rgba(100, 116, 139, 0.12);
}


/* =========================================
   TEKS TAB
   ========================================= */

.health-device-tab-content {
    display: block;

    min-width: 0;
}


.health-device-tab-content strong {
    display: block;

    overflow: hidden;

    color: inherit;

    font-size: 12px;

    font-weight: 700;

    line-height: 1.2;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.health-device-tab-content small {
    display: block;

    margin-top: 3px;

    color: #7a899b;

    font-size: 9px;

    line-height: 1;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 700px) {

    .health-device-tab {
        min-width: 145px;

        padding:
            8px
            11px;
    }

}

/* =========================================
   RINGKASAN PERANGKAT TERPILIH
   ========================================= */

/* .health-selected-device-summary {
    margin-top: 12px;

    padding:
        16px
        18px
        18px;

    border:
        1px solid
        #dce5ee;

    border-radius: 14px;

    background: #ffffff;

    box-shadow:none;
} */

.health-selected-device-summary {
    margin-top: 12px;

    padding:
        14px
        16px
        16px;

    border:
        1px solid
        #dce5ee;

    border-radius: 14px;

    background: #ffffff;

    box-shadow: none;
}


/* =========================================
   HEADER RINGKASAN PERANGKAT
   ========================================= */

.health-selected-device-summary-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 12px;
}

.health-selected-device-summary-header
#health-device-id {
    display: block;

    min-width: 0;

    color: #071b35;

    font-size: 20px;
    font-weight: 700;

    line-height: 1.15;
}

/* =========================================
   RINGKASAN OPERASIONAL
   ========================================= */

.health-operational-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 10px;

    margin-top: 0;
}

/* .health-operational-card {
    min-width: 0;

    min-height: 92px;

    padding:
        14px
        16px;

    border:
        1px solid
        #e1e8ef;

    border-radius: 11px;

    background: #f8fafc;

    box-shadow: none;
} */

.health-operational-card {
    min-width: 0;

    min-height: 78px;

    padding:
        10px
        14px;

    border:
        1px solid
        #e1e8ef;

    border-radius: 11px;

    background: #f8fafc;

    box-shadow: none;
}

.health-operational-card > span {
    display: block;

    margin-bottom: 7px;

    color: #64748b;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.055em;

    text-transform: uppercase;
}

.health-operational-card strong {
    display: block;

    overflow-wrap: anywhere;

    color: #071b35;

    font-size: 18px;

    font-weight: 700;

    line-height: 1.2;
}

.health-operational-card p {
    margin:
        5px
        0
        0;

    color: #7a899b;

    font-size: 10px;

    line-height: 1.3;
}

@media (max-width: 1100px) {
    .health-operational-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .health-operational-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   KESEGARAN DATA TELEMETRY
   ========================================= */

#health-data-freshness-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    padding: 7px 12px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: 0.03em;
    text-transform: uppercase;

    white-space: nowrap;
}

/* Data masih baru */

#health-data-freshness-value.freshness-current {
    border-color: #16a34a;
    background: #dcfce7;
    color: #166534;
}


/* Data sudah kedaluwarsa */

#health-data-freshness-value.freshness-stale {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
}

/* Data belum tersedia */

#health-data-freshness-value.freshness-unknown {
    border-color: #64748b;
    background: #f1f5f9;
    color: #475569;
}


@media (max-width: 700px) {

    /* =========================================
       RINGKASAN PERANGKAT TERPILIH
       ========================================= */

    .health-selected-device-summary {
        padding:
            14px;
    }


    .health-selected-device-summary-header {
        flex-wrap: wrap;

        gap: 10px;
    }

}

/* =========================================
   PENANDA DATA KESEHATAN KEDALUWARSA
   ========================================= */

#tab-system-health
.health-section {
    position: relative;
}


/* Kartu berasal dari telemetry lama */

#tab-system-health.health-data-stale
.system-health-card,

#tab-system-health.health-data-stale
.health-metric-card {
    opacity: 0.72;

    filter:
        saturate(0.45);

    transition:
        opacity 0.2s ease,
        filter 0.2s ease;
}


/* Peringatan pada setiap kelompok data */






/* Belum ada telemetry */

#tab-system-health.health-data-unknown
.system-health-card,

#tab-system-health.health-data-unknown
.health-metric-card {
    opacity: 0.58;

    filter:
        grayscale(0.55);
}


/* Telemetry kembali terkini */

#tab-system-health.health-data-current
.system-health-card,

#tab-system-health.health-data-current
.health-metric-card {
    opacity: 1;

    filter: none;
}


@media (max-width: 700px) {
    #tab-system-health.health-data-stale
    .health-section {
        padding-top: 84px;
    }

    #tab-system-health.health-data-stale
    .health-section::before {
        top: 22px;
        right: auto;
        left: 22px;

        max-width:
            calc(100% - 44px);

        white-space: normal;
    }
}

/* =========================================
   STATUS KOMPONEN STANDBY
   ========================================= */

.system-health-value.status-neutral {
    color: #1e3a8a;
    background: #dbeafe;
    border-color: #60a5fa;

    box-shadow:
        0 0 0 3px
        rgba(59, 130, 246, 0.12);
}

.system-health-card:has(
    .system-health-value.status-neutral
) {
    background: #eff6ff;
    border-color: #93c5fd;
}

.system-health-card:has(
    .system-health-value.status-neutral
)
.system-health-icon {
    color: #1e40af;
    background: #bfdbfe;
}

/* =========================================
   NILAI DIAGNOSTIK TIDAK TERSEDIA
   ========================================= */

.metric-unit {
    margin-left: 3px;

    font-size: 0.72em;
    font-weight: 700;
}

.health-metric-card.metric-unavailable {
    border-style: dashed;
    border-color: #cbd5e1;

    background:
        linear-gradient(
            145deg,
            #f8fafc,
            #f1f5f9
        );
}

.health-metric-card.metric-unavailable strong {
    color: #64748b;

    font-size: 18px;
    font-weight: 700;
}

.health-metric-card.metric-unavailable p {
    color: #94a3b8;
}

/* =========================================
   STATUS PERANGKAT TETAP SEJAJAR DI PONSEL
   ========================================= */

@media (max-width: 600px) {

    .system-health-card {
        grid-template-columns:
            48px
            minmax(0, 1fr)
            auto;

        gap: 12px;
        align-items: center;
    }

    .system-health-icon {
        grid-column: 1;
        grid-row: 1;
    }

    .system-health-content {
        grid-column: 2;
        grid-row: 1;

        min-width: 0;
    }

    .system-health-value {
        grid-column: 3;
        grid-row: 1;

        justify-self: end;

        min-width: 68px;
        max-width: 100px;

        margin-left: 0;
        padding: 7px 9px;

        font-size: 11px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* =========================================
   NAVIGASI PONSEL - 3 TAB SATU BARIS
   ========================================= */

@media (max-width: 600px) {

    .main-navigation {
        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        width: 100%;

        gap: 6px;

        overflow: visible;
    }


    .navigation-button {
        width: 100%;

        min-width: 0;
        min-height: 42px;

        padding:
            9px
            5px;

        font-size: 12px;
        font-weight: 600;

        line-height: 1.15;

        text-align: center;

        white-space: nowrap;
    }

}

/* =========================================
   PASANGAN NILAI DAN GRAFIK KESEHATAN
   ========================================= */

.health-paired-monitoring {
    display: grid;
    gap: 18px;
}


/* Satu baris terdiri dari nilai dan grafik */

.health-pair-row {
    display: grid;
    grid-template-columns:
        minmax(270px, 0.36fr)
        minmax(0, 0.64fr);

    gap: 18px;
    align-items: stretch;

    min-width: 0;
}


/* =========================================
   KARTU NILAI DI SISI KIRI
   ========================================= */

.health-pair-value {
    display: flex;
    flex-direction: column;
    justify-content: center;

    width: 100%;
    height: 100%;
    min-height: 220px;
    margin: 0;
}

.health-pair-value > span {
    margin-bottom: 18px;
}

.health-pair-value strong {
    font-size: 28px;
}

.health-pair-value p {
    margin-top: 14px;
}


/* =========================================
   PANEL GRAFIK DI SISI KANAN
   ========================================= */

.health-pair-chart {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 220px;
    padding: 18px 20px;

    border: 1px solid #dce5ee;
    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7fafc
        );

    box-shadow:
        0 5px 16px
        rgba(15, 23, 42, 0.04);
}


/* Header grafik */

.health-pair-chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    padding-bottom: 13px;

    border-bottom: 1px solid #e2e8f0;
}

.health-pair-chart-header > div {
    min-width: 0;
}

.health-pair-chart-header strong {
    display: block;

    color: #10233d;

    font-size: 15px;
    line-height: 1.35;
}

.health-pair-chart-header p {
    margin: 5px 0 0;

    color: #718096;

    font-size: 12px;
    line-height: 1.45;
}


/* Nilai terbaru di header grafik */

.health-chart-current-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    min-width: 70px;
    padding: 7px 11px;

    border: 1px solid #99f6e4;
    border-radius: 999px;

    color: #087f7b;
    background: #f0fdfa;

    font-size: 12px;
    font-weight: 800;
    text-align: center;
}


/* =========================================
   AREA CANVAS GRAFIK
   ========================================= */

.health-pair-chart-container {
    position: relative;

    flex: 1;

    width: 100%;
    min-width: 0;
    min-height: 135px;

    margin-top: 12px;
}

.health-pair-chart-container canvas {
    display: block;

    width: 100% !important;
    height: 100% !important;
}


/* Pesan ketika grafik belum memiliki data */

.health-pair-chart-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;

    border: 1px dashed #cbd5e1;
    border-radius: 10px;

    color: #94a3b8;
    background:
        rgba(248, 250, 252, 0.88);

    font-size: 13px;
    text-align: center;
}

.health-pair-chart-placeholder.hidden {
    display: none;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1100px) {
    .health-pair-row {
        grid-template-columns: 1fr;
    }

    .health-pair-value {
        min-height: 165px;
    }

    .health-pair-chart {
        min-height: 280px;
    }

    .health-pair-chart-container {
        min-height: 185px;
    }
}


/* =========================================
   PONSEL
   ========================================= */

@media (max-width: 600px) {
    .health-paired-monitoring {
        gap: 22px;
    }

    .health-pair-row {
        gap: 10px;
    }

    .health-pair-value {
        min-height: 155px;
        padding: 20px;
    }

    .health-pair-chart {
        min-height: 260px;
        padding: 17px;
    }

    .health-pair-chart-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .health-chart-current-value {
        align-self: flex-start;
    }

    .health-pair-chart-container {
        min-height: 165px;
    }
}

/* .system-metrics-section {
    margin-top: 32px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 24px;
} */

.system-metrics-section {
    margin-top: 12px;

    padding: 20px;

    background: #ffffff;

    border:
        1px solid
        #d9e2ec;

    border-radius: 16px;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.section-heading-row h2 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #08224a;
}

.section-heading-row p {
    margin: 0;
    font-size: 12px;
    color: #6b7a90;
}

.data-mode-badge {
    display: none;
}

.data-mode-badge.mode-current {
    border-color: #16a34a;
    background: #dcfce7;
    color: #166534;
}


.data-mode-badge.mode-disconnected {
    border-color: #dc2626;
    background: #fee2e2;
    color: #991b1b;
}


.data-mode-badge.mode-waiting {
    border-color: #64748b;
    background: #f1f5f9;
    color: #475569;
}

/* .metrics-two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
} */

.metrics-two-column-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

/* .metric-chart-card {
    background: #f8fbff;
    border: 1px solid #d9e6f2;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(8, 34, 74, 0.06);
} */

.metric-chart-card {
    background: #f8fbff;

    border:
        1px solid
        #d9e6f2;

    border-radius: 14px;

    padding: 14px;

    box-shadow:
        0 5px 16px
        rgba(8, 34, 74, 0.05);
}

.metric-chart-card-header {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 16px;

    margin-bottom: 18px;

    width: 100%;
    min-width: 0;
}

.metric-chart-card-header
> div:first-child {
    min-width: 0;
}

.metric-label {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5b6b82;
    margin-bottom: 8px;
}

.metric-subtitle {
    font-size: 0.92rem;
    color: #7b8aa0;
}

.metric-current-badge {
    flex: 0 0 auto;

    min-width: 120px;

    padding:
        10px
        14px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #0b2d57,
            #0f8b8d
        );

    color: #ffffff;

    box-shadow:
        0 8px 20px
        rgba(15, 139, 141, 0.22);

    text-align: right;
}

/* ======================================================
   BADGE METRIC DIAGNOSTIK — TELEMETRY TERPUTUS
   ====================================================== */

.metric-current-badge.is-stale {
    background:
        linear-gradient(
            135deg,
            #475569,
            #64748b
        );

    box-shadow:
        0 7px 18px
        rgba(71, 85, 105, 0.18);
}

.metric-current-badge-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 6px;
}

.metric-current-badge strong {
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 800;
}

.metric-current-badge-unit {
    margin-left: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0.95;
}

.metric-chart-box {
    height: 220px;
    background: #ffffff;
    border: 1px solid #e3ebf3;
    border-radius: 16px;
    padding: 12px;
}

.metric-chart-box canvas {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 900px) {

    .metrics-two-column-grid {
        grid-template-columns: 1fr;
    }


    .section-heading-row {
        flex-direction: column;
        align-items: flex-start;
    }

}

.metric-current-badge-reading {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;

    gap: 5px;
}

.metric-current-badge-reading strong {
    color: #ffffff;

    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.metric-current-badge-reading
.metric-current-badge-unit {
    color: rgba(255, 255, 255, 0.92);

    font-size: 0.9rem;
    font-weight: 700;
}

/* ======================================================
   RESPONSIVE GRAFIK DIAGNOSTIK — HP
   ====================================================== */

@media (max-width: 500px) {

    .metric-chart-card-header {
        flex-direction: column;
        align-items: stretch;

        gap: 12px;
    }


    .metric-current-badge {
        width: 100%;
        min-width: 0;

        text-align: left;
    }


    .metric-current-badge-reading {
        justify-content: flex-start;
    }

}

/* ======================================================
   NILAI TERAKHIR METRIC SAAT TELEMETRY TIDAK TERSEDIA
   ====================================================== */

.metric-last-value {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;

    margin: 0 10px 8px;
    padding: 7px 10px;

    border: 1px solid #dbe4ee;
    border-radius: 8px;

    background: #f8fafc;

    font-size: 11px;
    line-height: 1.4;

    color: #64748b;
}


/*
 * Elemen ini hanya ditampilkan ketika
 * telemetry tidak lagi tersedia.
 */
.metric-last-value[hidden] {
    display: none !important;
}


.metric-last-value-label {
    font-weight: 600;
    color: #64748b;
}


.metric-last-value strong {
    font-weight: 700;
    color: #334155;
}


.metric-last-value-separator {
    margin: 0 2px;
    color: #94a3b8;
}


.metric-last-value span:last-child {
    color: #64748b;
}

/* ======================================================
   BADGE REAL-TIME KESEHATAN PERANGKAT
   ====================================================== */

.health-device-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;
}


.health-device-heading > div:first-child {
    min-width: 0;
}


.health-device-mode-badge {
    display: none;
}


/*
 * Telemetry aktif.
 */
.health-device-mode-badge.mode-current {
    border-color: #16a34a;
    background: #dcfce7;
    color: #166534;
}


/*
 * Telemetry terputus.
 * Amber = komunikasi hilang,
 * bukan bukti kerusakan perangkat.
 */
.health-device-mode-badge.mode-disconnected {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
}


/*
 * Belum pernah menerima telemetry.
 */
.health-device-mode-badge.mode-waiting {
    border-color: #64748b;
    background: #f1f5f9;
    color: #475569;
}


@media (max-width: 700px) {

    .health-device-heading {
        flex-direction: column;
        align-items: flex-start;
    }


    .health-device-mode-badge {
        white-space: normal;
    }
}

.health-last-reading {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: 0;

    padding: 5px 10px;
    border-radius: 10px;

    background: #e3f0ff;
    border: 1px solid #bcd8fb;

    color: #1f4266;
    font-size: 12px;
    line-height: 1.4;
    width: fit-content;
    max-width: 90%;
}

/* ======================================================
   PEMANTAUAN BANJIR — HEADER
   ====================================================== */

.flood-monitoring-hero {
    position: relative;
    overflow: hidden;

    width: 100%;
    box-sizing: border-box;

    display: flex;
    align-items: center;

    min-height: 100px;
    padding: 16px 24px;

    border-radius: 14px;

    background:
        linear-gradient(
            120deg,
            #082d5b 0%,
            #06496a 58%,
            #08777b 100%
        );

    color: #ffffff;
}


/*
 * Ornamen lembut agar hero tidak terlalu datar.
 */
.flood-monitoring-hero::after {
    content: "";

    position: absolute;
    right: -90px;
    top: -120px;

    width: 420px;
    height: 420px;

    border: 1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 50%;

    box-shadow:
        0 0 0 55px
            rgba(255, 255, 255, 0.025),
        0 0 0 110px
            rgba(255, 255, 255, 0.02);

    pointer-events: none;
}


.flood-monitoring-hero-content {
    position: relative;
    z-index: 1;

    max-width: 760px;
}

.flood-monitoring-title {
    margin: 0;

    color: #ffffff;

    font-size: 32px;

    letter-spacing: -0.02em;
}


.flood-monitoring-description {
    max-width: 680px;

    margin:
        6px
        0
        0;

    color:
        rgba(
            255,
            255,
            255,
            0.86
        );

    font-size: 14px;
    line-height: 1.4;
}

/* ======================================================
   PEMANTAUAN BANJIR — RINGKASAN GLOBAL SENSOR
   ====================================================== */

.flood-summary-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 10px;

    width: 100%;
}


/* ======================================================
   KARTU RINGKASAN
   ====================================================== */

/* .flood-summary-card {
    position: relative;

    display: flex;
    align-items: center;

    gap: 14px;

    min-width: 0;
    min-height: 118px;

    padding: 18px 20px;

    overflow: hidden;

    border: 1px solid #dce5ee;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 7px 22px
        rgba(15, 23, 42, 0.055);
} */

.flood-summary-card {
    position: relative;

    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;

    min-height: 76px;

    padding:
        9px
        11px;

    overflow: hidden;

    border: 1px solid #dce5ee;

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 4px 14px
        rgba(15, 23, 42, 0.045);
}


/* ======================================================
   ISI
   ====================================================== */

.flood-summary-content {
    min-width: 0;
}


.flood-summary-label {
    display: block;

    margin-bottom: 2px;

    color: #64748b;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.055em;

    text-transform: uppercase;
}

.flood-summary-card strong {
    display: block;

    color: #071b35;

    font-size: 22px;

    font-weight: 800;

    line-height: 1;
}

.flood-summary-card p {
    margin:
        3px
        0
        0;

    color: #7a899b;

    font-size: 12px;

    line-height: 1.25;
}


/* ======================================================
   TOTAL SENSOR
   ====================================================== */

.flood-summary-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 44px;
    height: 44px;

    border:
        2px solid
        #ffffff;

    border-radius: 13px;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #2563eb,
            #1d4ed8
        );

    font-size: 28px;
    font-weight: 800;

    line-height: 1;

    box-shadow:
        0 0 0 1px
            rgba(15, 23, 42, 0.12),
        0 4px 9px
            rgba(15, 23, 42, 0.12);
}

/* ======================================================
   SIMBOL STATUS RINGKASAN SENSOR
   ====================================================== */

.flood-summary-status-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex:
        0
        0
        44px;

    width: 44px;
    height: 44px;

    border:
        2px solid
        #ffffff;

    border-radius: 13px;

    color: #ffffff;

    box-shadow:
        0 0 0 1px
            rgba(15, 23, 42, 0.12),
        0 4px 9px
            rgba(15, 23, 42, 0.12);
}


/* ======================================================
   UKURAN SVG
   ====================================================== */

.flood-summary-status-icon svg {
    display: block;

    width: 30px;
    height: 30px;

    overflow: visible;
}


/* ======================================================
   BENTUK UTAMA SVG
   ====================================================== */

.flood-summary-icon-main {
    fill: currentColor;

    stroke: currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Detail putih di dalam simbol */

.flood-summary-icon-detail {
    fill: none;

    stroke: #ffffff;

    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.flood-summary-icon-dot {
    fill: #ffffff;

    stroke: none;
}


/* ======================================================
   AMAN
   ====================================================== */

.flood-summary-status-icon-aman {
    background:
        linear-gradient(
            145deg,
            #22c55e,
            #15803d
        );
}


/* ======================================================
   WASPADA
   ====================================================== */

.flood-summary-status-icon-waspada {
    background:
        linear-gradient(
            145deg,
            #eab308,
            #a16207
        );
}


/* ======================================================
   SIAGA
   ====================================================== */

.flood-summary-status-icon-siaga {
    background:
        linear-gradient(
            145deg,
            #f97316,
            #c2410c
        );
}


/* ======================================================
   AWAS
   ====================================================== */

.flood-summary-status-icon-awas {
    background:
        linear-gradient(
            145deg,
            #ef4444,
            #b91c1c
        );
}


/* ======================================================
   TIDAK AKTIF / TELEMETRY TERPUTUS
   ====================================================== */

.flood-summary-status-icon-inactive {
    background:
        linear-gradient(
            145deg,
            #94a3b8,
            #64748b
        );
}


/* ======================================================
   TOTAL SENSOR — BIRU
   ====================================================== */

.flood-summary-total {
    background:
        linear-gradient(
            145deg,
            #eff6ff,
            #ffffff
        );

    border-color:
        #bfdbfe;
}


.flood-summary-total
.flood-summary-label {
    color:
        #1d4ed8;
}


.flood-summary-total
strong {
    color:
        #1e3a8a;
}


/* ======================================================
   AMAN — HIJAU
   ====================================================== */

.flood-summary-aman {
    background:
        linear-gradient(
            145deg,
            #f0fdf4,
            #ffffff
        );

    border-color:
        #bbf7d0;
}


.flood-summary-aman
.flood-summary-label {
    color:
        #15803d;
}


.flood-summary-aman
strong {
    color:
        #166534;
}


/* ======================================================
   WASPADA — KUNING
   ====================================================== */

.flood-summary-waspada {
    background:
        linear-gradient(
            145deg,
            #fffbeb,
            #ffffff
        );

    border-color:
        #fde68a;
}


.flood-summary-waspada
.flood-summary-label {
    color:
        #a16207;
}


.flood-summary-waspada
strong {
    color:
        #854d0e;
}


/* ======================================================
   SIAGA — ORANYE
   ====================================================== */

.flood-summary-siaga {
    background:
        linear-gradient(
            145deg,
            #fff7ed,
            #ffffff
        );

    border-color:
        #fed7aa;
}


.flood-summary-siaga
.flood-summary-label {
    color:
        #c2410c;
}


.flood-summary-siaga
strong {
    color:
        #9a3412;
}


/* ======================================================
   AWAS — MERAH
   ====================================================== */

.flood-summary-awas {
    background:
        linear-gradient(
            145deg,
            #fff1f2,
            #ffffff
        );

    border-color:
        #fecdd3;
}


.flood-summary-awas
.flood-summary-label {
    color:
        #b91c1c;
}


.flood-summary-awas
strong {
    color:
        #991b1b;
}


/* ======================================================
   TIDAK AKTIF — ABU-ABU
   ====================================================== */

.flood-summary-inactive {
    background:
        linear-gradient(
            145deg,
            #f1f5f9,
            #ffffff
        );

    border-color:
        #cbd5e1;
}


.flood-summary-inactive
.flood-summary-label {
    color:
        #475569;
}


.flood-summary-inactive
strong {
    color:
        #334155;
}

/* ======================================================
   HOVER KARTU RINGKASAN
   ====================================================== */

.flood-summary-card {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}


.flood-summary-card:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 10px 26px
        rgba(15, 23, 42, 0.09);
}

.flood-summary-inactive
.flood-summary-content p {
    color:
        #64748b;
}

/* ======================================================
   RESPONSIVE RINGKASAN SENSOR
   ====================================================== */

@media (max-width: 1180px) {

    .flood-summary-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 760px) {

    .flood-summary-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 480px) {

    .flood-summary-grid {
        grid-template-columns: 1fr;
    }


    .flood-summary-card {
        min-height: 98px;
        padding: 16px 18px;
    }
}

@media (max-width: 700px) {

}

/* ======================================================
   PEMANTAUAN BANJIR — AREA UTAMA
   ====================================================== */

.flood-main-monitoring {
    grid-area: main;

    display: grid;

    grid-template-columns:
        minmax(0, 1.62fr)
        minmax(0, 1fr);

    gap: 12px;

    align-items: start;

    width: 100%;
    min-width: 0;
}


/* ======================================================
   PANEL UMUM
   ====================================================== */

.flood-map-panel,
.flood-selected-sensor,
.flood-selected-chart,
.flood-forecast-panel {
    min-width: 0;

    border: 1px solid #dce5ee;
    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 8px 24px
        rgba(15, 23, 42, 0.055);
}


/* ======================================================
   HEADER PANEL
   ====================================================== */

.flood-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;

    padding: 12px 16px;
}


.flood-panel-heading h2,
.flood-selected-chart-header h2 {
    margin: 0;

    color: #071b35;

    font-size: 22px;
}


.flood-panel-heading p,
.flood-selected-chart-header p {
    margin: 7px 0 0;

    color: #718096;

    font-size: 12px;
    line-height: 1.5;
}


/* ======================================================
   PETA
   ====================================================== */

.flood-map-panel {
    overflow: hidden;
}


.flood-map-container {
    position: relative;

    width: 100%;

    padding: 14px;

    background:
        linear-gradient(
            180deg,
            #f8fbfd 0%,
            #f3f7fa 100%
        );
}


#tab-flood-monitoring
.flood-map-container
#map {
    width: 100%;
    height: 500px;

    overflow: hidden;

    border: 1px solid #d8e2ea;
    border-radius: 14px;

    background: #e9eff4;

    box-shadow:
        0 3px 12px
        rgba(15, 23, 42, 0.08);
}

/* ======================================================
   KONTROL LEAFLET — ZOOM
   ====================================================== */

#tab-flood-monitoring
#map
.leaflet-control-zoom {
    margin-top: 14px;
    margin-left: 14px;

    overflow: hidden;

    border: 1px solid
        rgba(203, 213, 225, 0.9);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.96);

    box-shadow:
        0 6px 18px
        rgba(15, 23, 42, 0.14);
}


/* Tombol + dan - */

#tab-flood-monitoring
#map
.leaflet-control-zoom a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border: none;

    color: #071b35;
    background: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 20px;
    font-weight: 700;
    line-height: 1;

    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}


/* Pemisah antar tombol */

#tab-flood-monitoring
#map
.leaflet-control-zoom-in {
    border-bottom:
        1px solid #e2e8f0 !important;
}


/* Hover */

#tab-flood-monitoring
#map
.leaflet-control-zoom a:hover {
    color: #087f7b;
    background: #f0fdfa;
}


/* Saat tombol zoom tidak tersedia */

#tab-flood-monitoring
#map
.leaflet-control-zoom a.leaflet-disabled {
    color: #a8b4c3;
    background: #f8fafc;
    cursor: default;
}

/* ======================================================
   KONTROL TAMPILKAN SELURUH SENSOR
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-fit-control {
    margin-top: 10px;
    margin-left: 14px;

    overflow: hidden;

    border:
        1px solid
        rgba(203, 213, 225, 0.9);

    border-radius: 11px;

    background:
        rgba(
            255,
            255,
            255,
            0.96
        );

    box-shadow:
        0 6px 18px
        rgba(15, 23, 42, 0.14);
}


/* ======================================================
   TOMBOL
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-fit-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin: 0;
    padding: 0;

    border: none;

    color: #071b35;
    background: #ffffff;

    cursor: pointer;

    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}


/* ======================================================
   IKON
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-fit-button svg {
    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ======================================================
   HOVER
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-fit-button:hover {
    color: #087f7b;

    background: #f0fdfa;
}


/* ======================================================
   FOCUS KEYBOARD
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-fit-button:focus-visible {
    position: relative;

    z-index: 1;

    outline:
        2px solid
        #0f8b8d;

    outline-offset: -3px;
}

/* ======================================================
   KONTROL FULLSCREEN PETA
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-fullscreen-control {
    margin-top: 14px;
    margin-right: 14px;

    overflow: hidden;

    border:
        1px solid
        rgba(203, 213, 225, 0.9);

    border-radius: 11px;

    background:
        rgba(
            255,
            255,
            255,
            0.96
        );

    box-shadow:
        0 6px 18px
        rgba(15, 23, 42, 0.14);
}


/* ======================================================
   TOMBOL FULLSCREEN
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-fullscreen-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin: 0;
    padding: 0;

    border: none;

    color: #071b35;
    background: #ffffff;

    cursor: pointer;

    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}


/* ======================================================
   IKON FULLSCREEN
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-fullscreen-button svg {
    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ======================================================
   HOVER
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-fullscreen-button:hover {
    color: #087f7b;

    background: #f0fdfa;
}


/* ======================================================
   FOCUS KEYBOARD
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-fullscreen-button:focus-visible {
    position: relative;

    z-index: 1;

    outline:
        2px solid
        #0f8b8d;

    outline-offset: -3px;
}

/* ======================================================
   MODE FULLSCREEN PETA
   ====================================================== */

#tab-flood-monitoring
#map:fullscreen {
    width: 100vw !important;
    height: 100vh !important;

    margin: 0 !important;

    border: none !important;
    border-radius: 0 !important;

    background: #dbe4ea;
}


#tab-flood-monitoring
#map:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;

    margin: 0 !important;

    border: none !important;
    border-radius: 0 !important;

    background: #dbe4ea;
}

/* ======================================================
   SCALE BAR PETA
   ====================================================== */

#tab-flood-monitoring
#map
.leaflet-control-scale {
    margin-left: 14px;
    margin-bottom: 14px;
}


/* ======================================================
   GARIS DAN LABEL SCALE BAR
   ====================================================== */

#tab-flood-monitoring
#map
.leaflet-control-scale-line {
    min-width: 58px;

    padding:
        3px
        7px
        4px;

    border:
        2px solid
        rgba(7, 27, 53, 0.82);

    border-top: none;

    border-radius:
        0
        0
        6px
        6px;

    color: #071b35;

    background:
        rgba(
            255,
            255,
            255,
            0.90
        );

    box-shadow:
        0 3px 10px
        rgba(15, 23, 42, 0.10);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 10px;
    font-weight: 800;

    line-height: 1.2;

    text-align: center;

    backdrop-filter:
        blur(4px);
}

/* ======================================================
   STATE VISUAL PETA
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-state-overlay {
    position: absolute;

    z-index: 750;

    top: 50%;
    left: 50%;

    display: flex;

    align-items: center;

    gap: 12px;

    width:
        min(
            320px,
            calc(100% - 48px)
        );

    padding:
        13px
        15px;

    border:
        1px solid
        rgba(203, 213, 225, 0.94);

    border-radius: 13px;

    background:
        rgba(
            255,
            255,
            255,
            0.96
        );

    box-shadow:
        0 10px 28px
        rgba(15, 23, 42, 0.18);

    transform:
        translate(
            -50%,
            -50%
        );

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    pointer-events: none;

    backdrop-filter:
        blur(6px);
}


#tab-flood-monitoring
#map
.flood-map-state-overlay[hidden] {
    display: none !important;
}


/* ======================================================
   IKON STATE
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-state-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    border-radius: 11px;

    color: #475569;
    background: #f1f5f9;
}


/* ======================================================
   SVG STATE
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-state-icon svg {
    width: 21px;
    height: 21px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


#tab-flood-monitoring
#map
.flood-map-state-symbol-detail {
    fill: none;

    stroke: currentColor;

    stroke-width: 2;
}


#tab-flood-monitoring
#map
.flood-map-state-symbol-dot {
    fill: currentColor;

    stroke: none;
}


/* ======================================================
   TEKS STATE
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-state-content {
    min-width: 0;
}


#tab-flood-monitoring
#map
.flood-map-state-content strong {
    display: block;

    color: #10233d;

    font-size: 12px;
    font-weight: 800;

    line-height: 1.35;
}


#tab-flood-monitoring
#map
.flood-map-state-content span {
    display: block;

    margin-top: 3px;

    color: #718096;

    font-size: 10px;

    line-height: 1.45;
}

/* ======================================================
   STATE — LOADING
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-state-overlay.is-loading
.flood-map-state-icon {
    color: #087f7b;

    background: #e6fffb;
}


/* ======================================================
   STATE — EMPTY
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-state-overlay.is-empty
.flood-map-state-icon {
    color: #475569;

    background: #f1f5f9;
}


/* ======================================================
   STATE — ERROR
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-state-overlay.is-error {
    border-color: #fecaca;
}


#tab-flood-monitoring
#map
.flood-map-state-overlay.is-error
.flood-map-state-icon {
    color: #b91c1c;

    background: #fee2e2;
}


#tab-flood-monitoring
#map
.flood-map-state-overlay.is-error
.flood-map-state-content strong {
    color: #991b1b;
}

/* ======================================================
   SPINNER LOADING PETA
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-loading-spinner {
    display: block;

    width: 19px;
    height: 19px;

    border:
        2px solid
        rgba(8, 127, 123, 0.22);

    border-top-color: #087f7b;

    border-radius: 50%;

    animation:
        flood-map-loading-spin
        0.8s
        linear
        infinite;
}


@keyframes flood-map-loading-spin {

    to {
        transform:
            rotate(360deg);
    }
}

/* ======================================================
   LEGENDA STATUS PETA
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-legend {
    width: 164px;

    margin-right: 4px;
    margin-bottom: 4px;

    padding:
        11px
        12px
        12px;

    border:
        1px solid
        rgba(203, 213, 225, 0.92);

    border-radius: 12px;

    color: #334155;

    background:
        rgba(
            255,
            255,
            255,
            0.95
        );

    box-shadow:
        0 7px 20px
        rgba(15, 23, 42, 0.15);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    backdrop-filter:
        blur(6px);
}


/* ======================================================
   JUDUL LEGENDA
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-legend-title {
    margin-bottom: 9px;

    color: #071b35;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.055em;

    text-transform: uppercase;
}


/* ======================================================
   DAFTAR LEGENDA
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-legend-list {
    display: grid;

    gap: 7px;
}


/* ======================================================
   SATU ITEM LEGENDA
   ====================================================== */
#tab-flood-monitoring
#map
.flood-map-legend-item {
    display: grid;

    grid-template-columns:
        28px
        minmax(0, 1fr);

    gap: 9px;

    align-items: center;

    min-width: 0;

    color: #475569;

    font-size: 10px;
    font-weight: 700;

    line-height: 1.3;
}

/* ======================================================
   IKON STATUS LEGENDA
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-legend-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border:
        2px solid #ffffff;

    border-radius: 9px;

    color: #ffffff;

    box-shadow:
        0 0 0 1px
            rgba(15, 23, 42, 0.14),
        0 3px 7px
            rgba(15, 23, 42, 0.14);
}


/* ======================================================
   SVG LEGENDA
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-legend-icon svg {
    width: 18px;
    height: 18px;

    overflow: visible;
}


#tab-flood-monitoring
#map
.flood-map-legend-main {
    fill: currentColor;

    stroke: currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}


#tab-flood-monitoring
#map
.flood-map-legend-detail {
    fill: none;

    stroke: #ffffff;

    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}


#tab-flood-monitoring
#map
.flood-map-legend-dot {
    fill: #ffffff;

    stroke: none;
}

/* ======================================================
   WARNA IKON LEGENDA
   ====================================================== */


/* AMAN */

#tab-flood-monitoring
#map
.flood-map-legend-icon.legend-aman {
    background:
        linear-gradient(
            145deg,
            #22c55e,
            #15803d
        );
}


/* WASPADA */

#tab-flood-monitoring
#map
.flood-map-legend-icon.legend-waspada {
    background:
        linear-gradient(
            145deg,
            #eab308,
            #a16207
        );
}


/* SIAGA */

#tab-flood-monitoring
#map
.flood-map-legend-icon.legend-siaga {
    background:
        linear-gradient(
            145deg,
            #f97316,
            #c2410c
        );
}


/* AWAS */

#tab-flood-monitoring
#map
.flood-map-legend-icon.legend-awas {
    background:
        linear-gradient(
            145deg,
            #ef4444,
            #b91c1c
        );
}


/* TELEMETRY TERPUTUS */

#tab-flood-monitoring
#map
.flood-map-legend-icon.legend-telemetry-stale {
    background:
        linear-gradient(
            145deg,
            #94a3b8,
            #64748b
        );
}


/* ======================================================
   SIMBOL WARNA
   ====================================================== */
#tab-flood-monitoring
#map
.flood-map-legend-symbol {
    display: block;

    width: 10px;
    height: 10px;

    border: 2px solid
        rgba(255, 255, 255, 0.95);

    border-radius: 50%;

    box-shadow:
        0 0 0 1px
        rgba(15, 23, 42, 0.14);
}



/* ======================================================
   PEMISAH STATUS BANJIR DAN TELEMETRY
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-legend-divider {
    height: 1px;

    margin:
        1px
        0;

    background: #e2e8f0;
}

/* ======================================================
   SEMBUNYIKAN LEGENDA PETA
   PADA TABLET DAN HP
   ====================================================== */

@media (max-width: 900px) {

    #tab-flood-monitoring
    #map
    .flood-map-legend {
        display: none !important;
    }

}

/* ======================================================
   MARKER SENSOR PROFESIONAL
   ====================================================== */

#tab-flood-monitoring
#map
.flood-sensor-div-icon {
    overflow: visible;

    background: transparent;
    border: none;
}

/* ======================================================
   LABEL SENSOR PADA MARKER
   ====================================================== */

#tab-flood-monitoring
#map
.flood-symbol-marker-label {
    position: absolute;
    z-index: 4;

    top: -27px;
    left: 50%;

    transform:
        translateX(-50%);

    min-height: 23px;

    padding:
        5px
        9px;

    border:
        1px solid
        rgba(203, 213, 225, 0.95);

    border-radius:
        7px;

    color: #0f172a;

    background:
        rgba(255, 255, 255, 0.96);

    box-shadow:
        0 3px 9px
        rgba(15, 23, 42, 0.16);

    font-size: 10px;
    font-weight: 800;

    line-height: 1.1;

    white-space: nowrap;

    pointer-events: none;

    backdrop-filter:
        blur(4px);
}


/* ======================================================
   WRAPPER
   ====================================================== */

#tab-flood-monitoring
#map
.flood-symbol-marker {
    --flood-marker-color: #64748b;
    --flood-marker-border: #475569;

    position: relative;

    width: 36px;
    height: 40px;

    display: flex;
    align-items: flex-start;
    justify-content: center;
}


/* ======================================================
   PIN
   ====================================================== */

#tab-flood-monitoring
#map
.flood-symbol-marker-pin {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border: 2px solid #ffffff;

    border-radius: 9px;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            var(--flood-marker-color),
            var(--flood-marker-border)
        );

    box-shadow:
        0 0 0 1px
            rgba(15, 23, 42, 0.14),
        0 4px 9px
            rgba(15, 23, 42, 0.22);

    transform: none;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

#tab-flood-monitoring
#map
.flood-symbol-marker-pin::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -5px;

    width: 8px;
    height: 8px;

    background:
        var(--flood-marker-border);

    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;

    transform:
        translateX(-50%)
        rotate(45deg);

    border-radius: 1px;
}


/* ======================================================
   SVG ICON
   ====================================================== */

#tab-flood-monitoring
#map
.flood-symbol-marker-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    transform: none;
}


#tab-flood-monitoring
#map
.flood-symbol-marker-icon svg {
    width: 20px;
    height: 20px;

    overflow: visible;

    fill: currentColor;
    stroke: currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/*
 * Detail icon seperti:
 * centang, tanda seru,
 * garis lonceng, tanda tanya.
 */

#tab-flood-monitoring
#map
.flood-marker-symbol-detail {
    fill: none;

    stroke: #ffffff;

    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}


#tab-flood-monitoring
#map
.flood-marker-symbol-dot {
    fill: #ffffff;
    stroke: none;
}


/* ======================================================
   HOVER
   ====================================================== */

#tab-flood-monitoring
#map
.flood-symbol-marker:hover
.flood-symbol-marker-pin {
    transform:
        scale(1.08);

    box-shadow:
        0 6px 14px
        rgba(15, 23, 42, 0.30);
}


/* ======================================================
   SENSOR TERPILIH
   ====================================================== */

#tab-flood-monitoring
#map
.flood-symbol-marker.is-selected
.flood-symbol-marker-pin {
    transform:
        scale(1.10);

    box-shadow:
        0 6px 16px
        rgba(15, 23, 42, 0.34);
}


/* ======================================================
   HALO SENSOR TERPILIH
   ====================================================== */

#tab-flood-monitoring
#map
.flood-symbol-marker-halo {
    position: absolute;

    z-index: 1;

    top: -4px;
    left: 50%;

    width: 36px;
    height: 36px;

    border: 2px solid
        var(--flood-marker-color);

    border-radius: 11px;

    opacity: 0;

    transform:
        translateX(-50%)
        scale(0.85);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}


#tab-flood-monitoring
#map
.flood-symbol-marker.is-selected
.flood-symbol-marker-halo {
    opacity: 0.28;

    transform:
        translateX(-50%)
        scale(1);
}

/* ======================================================
   POPUP SENSOR LEAFLET
   ====================================================== */

#tab-flood-monitoring
#map
.leaflet-popup-content-wrapper {
    overflow: hidden;

    padding: 0;

    border:
        1px solid
        rgba(203, 213, 225, 0.95);

    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 12px 32px
        rgba(15, 23, 42, 0.20);
}


/* ======================================================
   CONTENT POPUP
   ====================================================== */

#tab-flood-monitoring
#map
.leaflet-popup-content {
    width: 270px !important;

    margin: 0;

    color: #0f172a;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* ======================================================
   SEGITIGA POPUP
   ====================================================== */

#tab-flood-monitoring
#map
.leaflet-popup-tip {
    background: #ffffff;

    box-shadow:
        3px 3px 8px
        rgba(15, 23, 42, 0.10);
}


/* ======================================================
   TOMBOL TUTUP POPUP
   ====================================================== */

#tab-flood-monitoring
#map
.leaflet-popup-close-button {
    top: 9px;
    right: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    padding: 0 !important;

    border-radius: 50%;

    color: #64748b !important;

    background:
        rgba(248, 250, 252, 0.92);

    font-size: 19px !important;
    font-weight: 400;

    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}


#tab-flood-monitoring
#map
.leaflet-popup-close-button:hover {
    color: #071b35 !important;

    background: #e2e8f0;
}


/* ======================================================
   WRAPPER POPUP SENSOR
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-popup {
    width: 100%;

    background: #ffffff;
}


/* ======================================================
   HEADER POPUP SENSOR
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-popup-header {
    padding:
        10px
        42px
        9px
        14px;

    background:
        linear-gradient(
            135deg,
            #071b35 0%,
            #0b3153 68%,
            #087f7b 145%
        );
}


#tab-flood-monitoring
#map
.flood-map-popup-header span {
    display: block;

    margin-bottom: 3px;

    color: #9fded8;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


#tab-flood-monitoring
#map
.flood-map-popup-header strong {
    display: block;

    overflow: hidden;

    color: #ffffff;

    font-size: 15px;
    font-weight: 800;

    line-height: 1.25;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ======================================================
   ISI DETAIL POPUP
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-popup-details {
    padding:
        2px
        14px
        5px;
}


/* ======================================================
   BARIS DETAIL POPUP
   ====================================================== */

#tab-flood-monitoring
#map
.flood-map-popup-row {
    display: grid;

    grid-template-columns:
        minmax(0, 0.46fr)
        minmax(0, 0.54fr);

    gap: 8px;

    align-items: center;

    min-height: 32px;

    border-bottom:
        1px solid #eef2f6;
}


#tab-flood-monitoring
#map
.flood-map-popup-row:last-child {
    border-bottom: none;
}


/* LABEL */

#tab-flood-monitoring
#map
.flood-map-popup-row > span {
    color: #718096;

    font-size: 10px;

    line-height: 1.35;
}


/* NILAI */

#tab-flood-monitoring
#map
.flood-map-popup-row > strong {
    min-width: 0;

    color: #10233d;

    font-size: 10px;
    font-weight: 800;

    line-height: 1.4;

    text-align: right;

    overflow-wrap: anywhere;
}


/* ======================================================
   KOLOM SENSOR TERPILIH
   ====================================================== */

.flood-selected-column {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr);

    grid-template-rows:
        auto
        auto
        auto;

    gap: 10px;

    align-content: start;

    width: 100%;
    min-width: 0;
}

.flood-selected-sensor {
    overflow: hidden;
}


/* ======================================================
   STATUS SENSOR
   ====================================================== */

.flood-selected-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    min-width: 74px;

    padding: 8px 12px;

    border: 1px solid #cbd5e1;
    border-radius: 999px;

    color: #475569;
    background: #f8fafc;

    font-size: 11px;
    font-weight: 800;
}

.flood-selected-status.status-aman {
    color: #166534;
    background: #dcfce7;
    border-color: #22c55e;
}


.flood-selected-status.status-waspada {
    color: #854d0e;
    background: #fef9c3;
    border-color: #eab308;
}


.flood-selected-status.status-siaga {
    color: #9a3412;
    background: #ffedd5;
    border-color: #f97316;
}


.flood-selected-status.status-awas {
    color: #991b1b;
    background: #fee2e2;
    border-color: #ef4444;
}


.flood-selected-status.status-unknown {
    color: #475569;
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* ======================================================
   TELEMETRY SENSOR TERPUTUS
   ====================================================== */

.flood-selected-status.status-telemetry-stale {
    color: #92400e;
    background: #fffbeb;
    border-color: #f59e0b;
}


/* ======================================================
   DETAIL SENSOR
   ====================================================== */

.flood-selected-details {
    padding: 8px 22px 14px;
}


.flood-detail-row {
    display: grid;

    grid-template-columns:
        minmax(0, 0.45fr)
        minmax(0, 0.55fr);

    gap: 16px;
    align-items: center;

    min-height: 48px;

    border-bottom: 1px solid #eef2f6;
}


.flood-detail-row:last-child {
    border-bottom: none;
}


.flood-detail-row > span {
    color: #718096;

    font-size: 12px;
}


.flood-detail-row strong {
    min-width: 0;

    overflow-wrap: anywhere;

    color: #10233d;

    font-size: 12px;
    text-align: right;
}

/* ======================================================
   PEMILIH SENSOR
   ====================================================== */

.flood-sensor-selector-wrap {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(145px, 0.62fr);

    gap: 8px;

    padding: 9px 16px;

    background: #f8fbfd;
}

.flood-sensor-control-group,
.flood-range-control-group {
    display: grid;

    grid-template-rows:
        auto
        auto;

    gap: 7px;

    min-width: 0;
}


.flood-sensor-selector-wrap label {
    color: #64748b;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.05em;
    text-transform: uppercase;
}


.flood-sensor-selector-wrap select {
    width: 100%;
    min-width: 0;
    min-height: 34px;

    padding: 6px 9px;

    border: 1px solid #cbd5e1;
    border-radius: 9px;

    color: #10233d;
    background: #ffffff;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}


/* ======================================================
   GRAFIK SENSOR TERPILIH
   ====================================================== */

.flood-selected-chart {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fbfd
        );
}


/* .flood-selected-chart-header {
    padding: 18px 20px;
} */

.flood-selected-chart-header {
    padding:
        14px
        18px
        6px;
}

/* ======================================================
   HEADER GRAFIK — BARIS ATAS
   ====================================================== */

.flood-chart-top-row {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    width: 100%;
    min-width: 0;
}


.flood-chart-heading {
    min-width: 0;
}

/* ======================================================
   HEADER GRAFIK BANJIR — NILAI TERKINI
   ====================================================== */

.flood-chart-heading {
    min-width: 0;
}




/* ======================================================
   BADGE NILAI MUKA AIR
   ====================================================== */

.flood-chart-current-value {
    min-width: 118px;
    
    flex: 0 0 auto;

    padding: 9px 13px;

    border-radius: 14px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #0b2d57,
            #0f8b8d
        );

    box-shadow:
        0 7px 18px
        rgba(15, 139, 141, 0.20);

    text-align: right;
}


.flood-chart-current-value > span {
    display: block;

    margin-bottom: 5px;

    color:
        rgba(
            255,
            255,
            255,
            0.82
        );

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


.flood-chart-current-value > div {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;

    gap: 4px;
}


.flood-chart-current-value strong {
    color: #ffffff;

    font-size: 20px;
    font-weight: 800;

    line-height: 1;
}


.flood-chart-current-value small {
    color:
        rgba(
            255,
            255,
            255,
            0.9
        );

    font-size: 11px;
    font-weight: 700;
}

/* ======================================================
   BADGE GRAFIK — TELEMETRY TERPUTUS
   ====================================================== */

.flood-chart-current-value.is-stale {
    background:
        linear-gradient(
            135deg,
            #475569,
            #64748b
        );

    box-shadow:
        0 7px 18px
        rgba(71, 85, 105, 0.18);
}


.flood-selected-chart-container {
    position: relative;

    flex: 1;

    width: auto;
    min-width: 0;
    min-height: 230px;

    margin:
        4px
        12px
        8px;

    padding:
        10px
        10px
        10px;

    border: 1px solid #e3ebf3;
    border-radius: 14px;

    background: #ffffff;
}


.flood-selected-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ======================================================
   FORECAST KONDISI MUKA AIR
   ====================================================== */

.flood-forecast-panel {
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fbfd
        );
}


/* ======================================================
   HEADER
   ====================================================== */

.flood-forecast-header {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: start;

    gap: 16px;

    padding:
        16px
        18px
        10px;
}


.flood-forecast-header > div:first-child {
    min-width: 0;
}


.flood-forecast-header h2 {
    margin: 0;

    color: #071b35;

    font-size: 22px;
}


.flood-forecast-header p {
    margin:
        7px
        0
        0;

    color: #718096;

    font-size: 12px;

    line-height: 1.5;
}


/* ======================================================
   BADGE
   ====================================================== */

.flood-forecast-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 30px;

    padding:
        5px
        10px;

    border: 1px solid #dbe5ef;
    border-radius: 999px;

    background: #f8fafc;

    color: #475569;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.03em;

    white-space: nowrap;
}


/* ======================================================
   INFORMASI UTAMA
   ====================================================== */
.flood-forecast-main {
    display: grid;

    grid-template-columns:
        58px
        minmax(0, 1fr);

    column-gap: 18px;
    row-gap: 14px;

    align-items: center;

    margin:
        0
        12px
        12px;

    padding:
        16px;

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    background: #ffffff;
}

/* ======================================================
   PERBANDINGAN LAJU
   ====================================================== */

.flood-forecast-rate-compare {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr);

    gap: 10px;

    width: 190px;
    min-width: 0;

    align-items: stretch;
}


/* ======================================================
   LAJU MODEL PREDIKSI
   ====================================================== */



/* .flood-forecast-model-rate-card > span {
    display: block;

    margin-bottom: 5px;

    color: #64748b;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.05em;

    text-transform: uppercase;
} */


.flood-forecast-model-rate-card > div {
    display: flex;

    align-items: baseline;
}


/* .flood-forecast-model-rate-card strong {
    color: #0f172a;

    font-size: 18px;
    font-weight: 800;

    line-height: 1.1;

    white-space: nowrap;
} */



.flood-forecast-direction-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    flex: 0 0 auto;

    border:
        1px solid
        #dbe5ef;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #f8fbff,
            #edf4fb
        );

    color: #334155;

    font-size: 30px;
    font-weight: 800;

    box-shadow:
        0 6px 16px
        rgba(15, 23, 42, 0.06);

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.flood-forecast-main-content {
    min-width: 0;
    width: 100%;

    padding:
        14px
        18px;

    border:
        1px solid
        #e3ebf3;

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fbff
        );

    box-shadow:
        0 4px 14px
        rgba(15, 23, 42, 0.035);
}

/* ======================================================
   INFORMASI FORECAST — TELEMETRY AKTIF
   ====================================================== */

.flood-forecast-panel.is-telemetry-current
.flood-forecast-main-content {
    border-color: #7dd3c7;

    background:
        linear-gradient(
            145deg,
            #e6f8f5 0%,
            #d8f3ef 100%
        );

    box-shadow:
        0 7px 20px
        rgba(13, 148, 136, 0.12);
}

.flood-forecast-panel.is-telemetry-current
.flood-forecast-primary-label {
    color: #087f7b;
}

/* ======================================================
   INFORMASI FORECAST — TELEMETRY TERPUTUS
   ====================================================== */

.flood-forecast-panel.is-telemetry-stale
.flood-forecast-main-content {
    border-color: #d5dde7;

    background:
        linear-gradient(
            145deg,
            #f8fafc,
            #eef2f6
        );

    box-shadow: none;
}

.flood-forecast-panel.is-telemetry-stale
.flood-forecast-primary-label {
    color: #64748b;
}

.flood-forecast-panel.is-telemetry-stale
.flood-forecast-primary-value {
    color: #475569;
}

.flood-forecast-panel.is-telemetry-current
.flood-forecast-description {
    color: #52677d;
}

.flood-forecast-primary-label {
    display: block;

    margin-bottom: 4px;

    color: #60758f;

    font-size: 11px;
    font-weight: 800;

    line-height: 1.2;

    text-transform: uppercase;

    letter-spacing: 0.07em;
}


.flood-forecast-primary-value {
    display: block;

    margin-top: 2px;

    color: #071b35;

    font-size: 25px;
    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -0.02em;
}


.flood-forecast-description {
    margin:
        7px
        0
        0;

    max-width: 680px;

    color: #64748b;

    font-size: 12px;

    font-weight: 450;

    line-height: 1.6;
}


/* ======================================================
   DETAIL MODEL
   ====================================================== */

.flood-forecast-detail-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 8px;

    padding:
        0
        12px
        12px;
}


/* ======================================================
   QUALITY MODEL
   ====================================================== */

.flood-forecast-quality-section {
    padding:
        0
        12px
        12px;
}


.flood-forecast-quality-title {
    margin:
        2px
        0
        6px;

    color: #64748b;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}


.flood-forecast-quality-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 8px;
}


.flood-forecast-detail-item {
    min-width: 0;

    padding:
        10px
        12px;

    border: 1px solid #e7edf4;
    border-radius: 12px;

    background: #fbfdff;
}


.flood-forecast-detail-item span {
    display: block;

    margin-bottom: 4px;

    color: #718096;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.03em;
}


.flood-forecast-detail-item strong {
    display: block;

    color: #0f172a;

    font-size: 13px;
    font-weight: 750;

    overflow-wrap: anywhere;
}

.flood-forecast-detail-value-row {
    display: flex;

    align-items: baseline;

    gap: 4px;
}


.flood-forecast-detail-value-row strong {
    display: inline;

    overflow-wrap: normal;
}


.flood-forecast-detail-value-row small {
    color: #718096;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}


/* ======================================================
   FOOTER
   ====================================================== */




/* ======================================================
   STATE
   ====================================================== */

.flood-forecast-panel.is-rising
.flood-forecast-badge {
    border-color: #fecaca;

    background: #fff1f2;

    color: #b91c1c;
}


.flood-forecast-panel.is-rising
.flood-forecast-direction-icon {
    border-color: #f87171;

    background:
        linear-gradient(
            145deg,
            #fee2e2 0%,
            #fecaca 100%
        );

    color: #b91c1c;

    box-shadow:
        0 7px 18px
        rgba(220, 38, 38, 0.18);
}


.flood-forecast-panel.is-falling
.flood-forecast-badge {
    border-color: #bfdbfe;

    background: #eff6ff;

    color: #1d4ed8;
}


.flood-forecast-panel.is-falling
.flood-forecast-direction-icon {
    border-color: #60a5fa;

    background:
        linear-gradient(
            145deg,
            #dbeafe 0%,
            #bfdbfe 100%
        );

    color: #1d4ed8;

    box-shadow:
        0 7px 18px
        rgba(37, 99, 235, 0.18);
}




.flood-forecast-panel.is-stable
.flood-forecast-badge {
    border-color: #cbd5e1;

    background: #f8fafc;

    color: #475569;
}

.flood-forecast-panel.is-stable
.flood-forecast-direction-icon {
    border-color: #4ade80;

    background:
        linear-gradient(
            145deg,
            #dcfce7 0%,
            #bbf7d0 100%
        );

    color: #15803d;

    box-shadow:
        0 7px 18px
        rgba(22, 163, 74, 0.18);
}


.flood-forecast-panel.is-building
.flood-forecast-badge {
    border-color: #fde68a;

    background: #fffbeb;

    color: #a16207;
}

.flood-forecast-panel.is-building
.flood-forecast-direction-icon {
    border-color: #fbbf24;

    background:
        linear-gradient(
            145deg,
            #fef3c7 0%,
            #fde68a 100%
        );

    color: #b45309;

    box-shadow:
        0 7px 18px
        rgba(217, 119, 6, 0.18);
}


.flood-forecast-panel.is-unstable
.flood-forecast-badge {
    border-color: #fed7aa;

    background: #fff7ed;

    color: #c2410c;
}

.flood-forecast-panel.is-unstable
.flood-forecast-direction-icon {
    border-color: #fb923c;

    background:
        linear-gradient(
            145deg,
            #ffedd5 0%,
            #fed7aa 100%
        );

    color: #c2410c;

    box-shadow:
        0 7px 18px
        rgba(234, 88, 12, 0.18);
}

.flood-forecast-panel.is-inactive
.flood-forecast-direction-icon {
    border-color: #cbd5e1;

    background:
        linear-gradient(
            145deg,
            #f1f5f9 0%,
            #e2e8f0 100%
        );

    color: #475569;

    box-shadow:
        0 5px 14px
        rgba(71, 85, 105, 0.12);
}


/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 640px) {

    .flood-forecast-header {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .flood-forecast-badge {
        justify-self: start;
    }


    /* ==========================================
       BAGIAN UTAMA
       ========================================== */

    .flood-forecast-main {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }


    /*
     * Kedua badge laju berada satu baris penuh
     * di atas arrow + hasil forecast.
     */
    .flood-forecast-rate-compare {
        grid-column:
            1 / -1;

        width: 100%;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .flood-forecast-direction-icon {
        grid-column:
            1;
    }


    .flood-forecast-main-content {
        grid-column:
            2;
    }


    /* ==========================================
       QUALITY
       ========================================== */

    .flood-forecast-quality-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}

@media (max-width: 480px) {

    .flood-forecast-rate-compare {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .flood-forecast-quality-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }
}

/* ======================================================
   TREN KENAIKAN AIR
   ====================================================== */

.flood-rise-chart {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fbfd
        );
}


/* ======================================================
   HEADER TREN KENAIKAN AIR
   ====================================================== */

.flood-rise-chart-header {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 18px;

    align-items: start;

    padding:
        14px
        18px
        6px;
}


.flood-rise-chart-header
> div:first-child {
    min-width: 0;
}


.flood-rise-chart-header h2 {
    margin: 0;

    color: #071b35;

    font-size: 22px;
}


.flood-rise-chart-header p {
    margin:
        7px
        0
        0;

    color: #718096;

    font-size: 12px;
    line-height: 1.5;
}

/* ======================================================
   BADGE LAJU FORECAST

   Tinggi, padding, dan tipografi mengikuti
   badge "Saat Ini" pada grafik Tinggi Muka Air.

   Lebar dibuat AUTO karena satuan "cm/menit"
   lebih panjang daripada satuan "cm".
   ====================================================== */

.flood-forecast-rate-compare
.flood-rise-value,

.flood-forecast-model-rate-card {
    width: 100%;
    min-width: 0;
    min-height: 68px;

    flex: 0 0 auto;

    padding:
        9px
        13px;

    border: 1px solid #cfddee;
    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #eef5ff 100%
        );

    box-shadow:
        0 4px 12px
        rgba(37, 99, 235, 0.06);

    color: #0f172a;

    text-align: right;
}


/* ======================================================
   LABEL
   ====================================================== */

.flood-forecast-rate-compare
.flood-rise-value > span,

.flood-forecast-model-rate-card > span {
    display: block;

    margin-bottom: 5px;

    color: #58708f;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.06em;

    line-height: 1.15;

    text-transform: uppercase;
}


/* ======================================================
   BARIS NILAI + SATUAN
   ====================================================== */

.flood-forecast-rate-compare
.flood-rise-value > div,

.flood-forecast-model-rate-card > div {
    display: flex;

    align-items: baseline;
    justify-content: flex-end;

    gap: 4px;

    white-space: nowrap;
}


/* ======================================================
   NILAI
   ====================================================== */

.flood-forecast-rate-compare
.flood-rise-value strong,

.flood-forecast-model-rate-card strong {
    color: #0f172a;

    font-size: 20px;
    font-weight: 800;

    line-height: 1;

    white-space: nowrap;
}


/* ======================================================
   SATUAN
   ====================================================== */

.flood-forecast-rate-compare
.flood-rise-value small,

.flood-forecast-model-rate-card small {
    color: #58708f;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}


.flood-rise-value.is-stale {
    border-color: #dbe5ef;

    background: #f1f5f9;

    box-shadow: none;

    opacity: 0.8;
}
/* ======================================================
   STATUS ARAH LAJU MUKA AIR
   ====================================================== */

.flood-rise-trend-status {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 8px;
    padding: 4px 8px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.05em;
}


/* NAIK */

.flood-rise-trend-status.trend-rising {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}


/* STABIL */

.flood-rise-trend-status.trend-stable {
    color: #0f766e;
    background: #f0fdfa;
    border-color: #99f6e4;
}


/* TURUN */

.flood-rise-trend-status.trend-falling {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}


/* BELUM TERSEDIA */

.flood-rise-trend-status.trend-unknown {
    color: #64748b;
    background: #f8fafc;
    border-color: #e2e8f0;
}


/* ======================================================
   GRAFIK LAJU KENAIKAN MUKA AIR
   ====================================================== */

.flood-rise-chart-container {
    position: relative;

    flex: 1;

    width: auto;
    min-width: 0;

    height: 230px;
    min-height: 230px;

    margin:
        4px
        12px
        8px;

    padding:
        10px
        10px
        10px;

    border:
        1px solid
        #e3ebf3;

    border-radius: 14px;

    background: #ffffff;
}


#flood-rise-chart-canvas {
    display: block;

    width: 100% !important;
    height: 100% !important;
}


/* ======================================================
   PLACEHOLDER GRAFIK KENAIKAN AIR
   ====================================================== */

.flood-rise-chart-placeholder {
    flex: 1;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 110px;

    margin:
        14px
        18px
        16px;

    padding:
        18px;

    border:
        1px dashed
        #cbd5e1;

    border-radius: 14px;

    background:
        rgba(
            248,
            250,
            252,
            0.88
        );

    text-align: center;
}


/* ======================================================
   IKON PLACEHOLDER
   ====================================================== */

.flood-rise-placeholder-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    margin-bottom: 11px;

    border-radius: 50%;

    color: #64748b;
    background: #e2e8f0;

    font-size: 17px;
    font-weight: 800;
}


/* ======================================================
   TEKS PLACEHOLDER
   ====================================================== */

.flood-rise-chart-placeholder
> strong {
    color: #334155;

    font-size: 13px;
    font-weight: 800;
}


.flood-rise-chart-placeholder
> p {
    max-width: 300px;

    margin:
        6px
        0
        0;

    color: #718096;

    font-size: 11px;
    line-height: 1.55;
}

/* ======================================================
   DESKTOP — TINGGI PETA MENGIKUTI KOLOM KANAN
   ====================================================== */

@media (min-width: 1181px) {

    /* =====================================
       DUA KOLOM BERADA DALAM SATU GRID ROW
       DAN MEMILIKI TINGGI YANG SAMA
       ===================================== */

    .flood-main-monitoring {
        align-items: stretch;
    }


    /* =====================================
       PANEL PETA MENGISI SELURUH
       TINGGI GRID ROW
       ===================================== */

    .flood-map-panel {
        display: flex;

        flex-direction: column;

        align-self: stretch;

        min-height: 0;
    }


    /* =====================================
       AREA PEMBUNGKUS PETA MENGAMBIL
       SELURUH SISA TINGGI SETELAH HEADER
       ===================================== */

    .flood-map-container {
        flex:
            1
            1
            auto;

        display: flex;

        flex-direction: column;

        min-height: 0;
    }


    /* =====================================
       LEAFLET MENGISI AREA PETA
       ===================================== */

    #tab-flood-monitoring
    .flood-map-container
    #map {
        flex:
            1
            1
            auto;

        height: auto;

        min-height: 500px;
    }


    /* =====================================
       KOLOM KANAN TETAP MENGGUNAKAN
       TINGGI ALAMI TIGA CARD
       ===================================== */

    .flood-selected-column {
        align-self: stretch;

        height: auto;
        min-height: 0;
    }
}

/* ======================================================
   RESPONSIVE AREA UTAMA
   ====================================================== */


/* ======================================================
   LAPTOP SEMPIT / TABLET
   PETA DI ATAS, PANEL MONITORING DI BAWAH
   ====================================================== */

@media (max-width: 1180px) {

    .flood-main-monitoring {
        grid-template-columns:
            minmax(0, 1fr);

        align-items: start;
    }


    .flood-map-panel {
        width: 100%;
        min-width: 0;
    }


    .flood-selected-column {
        grid-template-columns:
            minmax(0, 1fr);

    grid-template-rows:
        auto
        auto
        auto;

        gap: 18px;

        align-content: start;

        width: 100%;
        min-width: 0;
    }
}


/* ======================================================
   PONSEL
   ====================================================== */

@media (max-width: 760px) {

    /* =====================================
       TINGGI PETA PONSEL
       ===================================== */

    #tab-flood-monitoring
    .flood-map-container
    #map {
        height: 430px;
    }


    /* =====================================
       HEADER GRAFIK MUKA AIR
       ===================================== */

    .flood-chart-top-row {
        flex-direction: column;

        gap: 14px;
    }


    /* =====================================
       AREA GRAFIK
       ===================================== */

    .flood-selected-chart-container {
        min-height: 240px;
    }


    /* =====================================
       BADGE NILAI MUKA AIR
       ===================================== */

    .flood-chart-current-value {
        width: 100%;

        text-align: left;
    }


    .flood-chart-current-value > div {
        justify-content: flex-start;
    }


    /* =====================================
       SELECTOR SENSOR DAN RENTANG
       ===================================== */

    .flood-sensor-selector-wrap {
        grid-template-columns:
            minmax(0, 1fr);
    }


    /* =====================================
       HEADER TREN KENAIKAN AIR
       ===================================== */

    .flood-rise-chart-header {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .flood-rise-value {
        width: 100%;

        text-align: left;
    }


    .flood-rise-value > div {
        justify-content: flex-start;
    }

    /* =====================================
    GRAFIK LAJU KENAIKAN AIR
    ===================================== */

    .flood-rise-chart-container {
        height: 240px;
        min-height: 240px;

        margin:
            4px
            10px
            8px;

        padding:
            10px;
    }

}

/* =========================================
   FINAL OVERRIDE - SYSTEM CARD TYPOGRAPHY
   ========================================= */

.home-pro-system-card .home-pro-system-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}


.home-pro-system-card
.home-pro-system-info
.home-pro-system-number {
    display: block;

    margin: 0 0 7px 0 !important;

    color: #078c82;

    font-size: 17px !important;
    font-weight: 800 !important;

    line-height: 1 !important;

    letter-spacing: 0.06em;
}


.home-pro-system-card
.home-pro-system-info
strong {
    display: block;

    margin: 0 !important;

    color: #071b35;

    font-size: 18px !important;
    font-weight: 700;

    line-height: 1.15 !important;
}


.home-pro-system-card
.home-pro-system-info
p {
    margin: 6px 0 0 0 !important;

    color: #718096;

    font-size: 13px !important;

    line-height: 1.35 !important;
}

/* ======================================================
   LATENSI SISTEM
   ====================================================== */

.latency-system-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* ======================================================
   METADATA LATENSI
   ====================================================== */

.latency-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.latency-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;

    padding:
        8px
        12px;

    border:
        1px solid
        #dbe5ef;

    border-radius:
        9px;

    background:
        #f8fafc;
}


.latency-meta-item span {
    color:
        #64748b;

    font-size:
        11px;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.04em;
}


.latency-meta-item strong {
    color:
        #071b35;

    font-size:
        12px;

    font-weight:
        700;
}


/* ======================================================
   GRID METRIK LATENSI
   ====================================================== */

.latency-metrics-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap:
        10px;
}


/* ======================================================
   CARD LATENSI
   ====================================================== */

.latency-metric-card {
    min-width:
        0;

    min-height:
        110px;

    padding:
        14px;

    border:
        1px solid
        #dce5ee;

    border-radius:
        11px;

    background:
        #f8fafc;

    box-shadow:
        none;
}


.latency-metric-card > span {
    display:
        block;

    margin-bottom:
        12px;

    color:
        #64748b;

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        0.05em;

    text-transform:
        uppercase;
}


.latency-metric-value {
    display:
        flex;

    align-items:
        baseline;

    gap:
        5px;
}


.latency-metric-value strong {
    color:
        #071b35;

    font-size:
        24px;

    font-weight:
        700;

    line-height:
        1;
}


.latency-metric-value small {
    color:
        #64748b;

    font-size:
        11px;

    font-weight:
        700;
}


.latency-metric-card p {
    margin:
        10px
        0
        0;

    color:
        #7a899b;

    font-size:
        10px;

    line-height:
        1.35;
}


/* ======================================================
   END TO END
   ====================================================== */

.latency-metric-card-total {
    border-color:
        #99d5cf;

    background:
        #f0fbfa;
}


.latency-metric-card-total
.latency-metric-value strong {
    color:
        #087f7b;
}


/* ======================================================
   GRAFIK LATENSI
   ====================================================== */

.latency-chart-card {
    padding:
        14px;

    border:
        1px solid
        #dce5ee;

    border-radius:
        14px;

    background:
        #f8fbff;
}


.latency-chart-header {
    margin-bottom:
        12px;
}


.latency-chart-header h3 {
    margin:
        0;

    color:
        #071b35;

    font-size:
        16px;
}


.latency-chart-header p {
    margin:
        5px
        0
        0;

    color:
        #718096;

    font-size:
        11px;
}


.latency-chart-container {
    position:
        relative;

    width:
        100%;

    height:
        300px;

    padding:
        10px;

    border:
        1px solid
        #e3ebf3;

    border-radius:
        12px;

    background:
        #ffffff;
}


.latency-chart-container canvas {
    width:
        100% !important;

    height:
        100% !important;
}


/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 1100px) {

    .latency-metrics-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

}


@media (max-width: 800px) {

    .latency-metrics-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media (max-width: 520px) {

    .latency-metrics-grid {
        grid-template-columns:
            1fr;
    }

    .latency-meta-row {
        flex-direction:
            column;
    }

}
@media (min-width: 761px) and (max-width: 1180px) {
    .flood-selected-chart-container {
        min-height: 230px; /* sesuaikan kebutuhan */
    }
}

/* ======================================================
   TRAJECTORY MARKER
   ====================================================== */
.trajectory-marker {
    font-size: 24px;
    line-height: 1;
    text-align: center;
    background: transparent !important;
    border: none !important;
}