
        :root {
            --primary: #0d47a1;
            --primary-light: #1565c0;
            --primary-light2: #1584c0;
            --primary-dark: #082577;
            --secondary: #00897b;
            --accent: #ff6f00;
            --success: #2e7d32;
            --warning: #f57c00;
            --danger: #c62828;
            --info: #0277bd;
            
            --bg-primary: #f5f7fa;
            --bg-secondary: #ffffff;
            --text-primary: #1a1a1a;
            --text-secondary: #666666;
            --border-color: #e8ecf1;
            
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
            --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
            --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.16);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 50%);
            background-attachment: fixed;
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
        }

        /* ========== HEADER ========== */
        .main-header {
            height: 90px;
            padding: 0 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: white;
            position: sticky;
            top: 0;
            z-index: 9999;
            box-shadow: var(--shadow-md);
            animation: slideDown 0.4s ease-out;
        }
.leaflet-control-container {
    position: static !important;
}
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 20px;
            animation: fadeInLeft 0.6s ease-out;
        }

        @keyframes fadeInLeft {
            from {
                opacity: 0;
                transform: translateX(-30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .logo-box {
            width: 60px;
            height: 60px;
            background: transparent;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: none;
            transition: transform 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .logo-box:hover {
            transform: translateY(-4px);
        }

        .logo-box img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
        }

        .logo-shape {
            display: none;
        }

        .title {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .main-title {
            font-size: 24px;
            font-weight: 700;
            letter-spacing: -0.5px;
            line-height: 1;
        }

        .sub-title {
            font-size: 12px;
            font-weight: 400;
            opacity: 0.9;
            letter-spacing: 0.8px;
            text-transform: uppercase;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 15px;
            animation: fadeInRight 0.6s ease-out;
        }

        @keyframes fadeInRight {
            from {
                opacity: 0;
                transform: translateX(30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .time-box {
            background: rgba(255, 255, 255, 0.12);
            padding: 12px 18px;
            border-radius: 12px;
            text-align: right;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .time-box:hover {
            background: rgba(255, 255, 255, 0.18);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .time {
            font-weight: 600;
            font-size: 14px;
            font-family: 'DM Mono', monospace;
            letter-spacing: 0.5px;
        }

        .date {
            font-size: 11px;
            opacity: 0.85;
            margin-top: 4px;
            font-weight: 500;
        }

        .home-btn {
            width: 44px;
            height: 44px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.2);
            font-size: 20px;
        }

        .home-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
        }

        /* Hide header-right on mobile */
        .header-right-desktop {
            display: flex;
        }

        .header-right-mobile {
            display: none;
        }

        

        /* ========== MAP CONTAINER ========== */
        .map-container {
            height: 85vh;
            padding: 20px;
            animation: fadeIn 0.8s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        #map {
            width: 100%;
            height: 100%;
            border-radius: 20px;
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border-color);
            overflow: hidden;
        }

        .leaflet-control-attribution {
    font-size: 10px;
    opacity: 0.7;
}

        /* ========== TABLE CONTAINER ========== */
        .table-container {
            padding: 20px;
            animation: slideUp 0.6s ease-out;
            max-width: 1450px;  /* atur sesuai kebutuhan */
            margin: 0px auto;  /* atas bawah tetap, kiri kanan auto */
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .table-card {
            background: var(--bg-secondary);
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-md);
            transition: all 0.3s ease;
            animation: fadeInUp 0.6s ease-out backwards;
        }

        .table-card:hover {
            box-shadow: var(--shadow-lg);
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .table-card:nth-child(1) { animation-delay: 0.1s; }
        .table-card:nth-child(2) { animation-delay: 0.2s; }
        .table-card:nth-child(3) { animation-delay: 0.3s; }

        /* ========== TABLE HEADER ========== */
        .table-header {
            background: linear-gradient(135deg, var(--primary-light2) 0%, var(--primary-light) 100%);
            color: white;
            padding: 16px 20px;
            font-weight: 600;
            font-size: 14px;
            letter-spacing: 0.3px;
            display: flex;
            align-items: center;
            gap: 10px;
            text-transform: uppercase;
        }

        .table-header-green {
            background: linear-gradient(135deg, var(--secondary) 0%, #00695c 100%);
            color: white;
            padding: 16px 20px;
            font-weight: 600;
            font-size: 14px;
            letter-spacing: 0.3px;
            display: flex;
            align-items: center;
            gap: 10px;
            text-transform: uppercase;
        }

        .table-header-orange {
            background: linear-gradient(135deg, var(--warning) 0%, #e65100 100%);
            color: white;
            padding: 16px 20px;
            font-weight: 600;
            font-size: 14px;
            letter-spacing: 0.3px;
            display: flex;
            align-items: center;
            gap: 10px;
            text-transform: uppercase;
        }

        .table-header::before,
        .table-header-green::before,
        .table-header-orange::before {
            content: '';
            display: inline-block;
            width: 4px;
            height: 4px;
            background: currentColor;
            border-radius: 50%;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* ========== TABLE ========== */
        .table-responsive {
            overflow: hidden;
        }

        .table-responsive-scroll {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .table-responsive-scroll::-webkit-scrollbar {
            height: 6px;
        }

        .table-responsive-scroll::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .table-responsive-scroll::-webkit-scrollbar-thumb {
            background: #d0d9e6;
            border-radius: 10px;
        }

        .table-responsive-scroll::-webkit-scrollbar-thumb:hover {
            background: #888;
        }

        .custom-table {
            margin-bottom: 0;
            
        }

        .custom-table thead {
            background: #f8fafb;
            border-bottom: 2px solid var(--border-color);
        }

        .custom-table thead th {
            padding: 14px 12px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.4px;
            white-space: nowrap;
            border: none;
            vertical-align: middle;
        }

        .custom-table tbody td {
            padding: 14px 12px;
            font-size: 13px;
            color: var(--text-primary);
            border-bottom: 1px solid var(--border-color);
            vertical-align: middle;
        }

        .custom-table tbody tr {
            transition: all 0.2s ease;
        }

        .custom-table tbody tr:hover {
            background: #f8fafb;
        }

        .custom-table tbody tr:last-child td {
            border-bottom: none;
        }

        /* ========== TABLE DATA ========== */
        .link-pos {
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s ease;
            position: relative;
        }

        .link-pos::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s ease;
        }

        .link-pos:hover::after {
            width: 100%;
        }

        .badge-logger {
            display: inline-block;
            padding: 5px 10px;
            border: 1.5px solid var(--primary);
            color: var(--primary);
            font-size: 11px;
            font-weight: 600;
            border-radius: 8px;
            font-family: 'DM Mono', monospace;
            letter-spacing: 0.3px;
            background: rgba(13, 71, 161, 0.05);
            transition: all 0.2s ease;
        }

        .badge-logger:hover {
            background: var(--primary);
            color: white;
        }

        /* ========== INTENSITAS WARNA ========== */
        .intensitas-none {
            color: #999;
            font-style: italic;
            font-size: 12px;
        }

        .bg-biru {
            background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
            color: white;
            font-weight: 600;
            border-radius: 8px;
            padding: 6px 10px;
            display: inline-block;
            box-shadow: 0 2px 8px rgba(66, 165, 245, 0.3);
        }

        .bg-green {
            background: linear-gradient(135deg, #3bae5e 0%, #44b98e 100%);
            color: white;
            font-weight: 600;
            border-radius: 8px;
            padding: 6px 10px;
            display: inline-block;
            box-shadow: 0 2px 8px rgba(66, 165, 245, 0.3);
        }

        .bg-yellow {
            background: linear-gradient(135deg, #ffb74d 0%, #ffa726 100%);
            color: white;
            font-weight: 600;
            border-radius: 8px;
            padding: 6px 10px;
            display: inline-block;
            box-shadow: 0 2px 8px rgba(255, 167, 38, 0.3);
        }

        .bg-orange {
            background: linear-gradient(135deg, #ff7043 0%, #ff5722 100%);
            color: white;
            font-weight: 600;
            border-radius: 8px;
            padding: 6px 10px;
            display: inline-block;
            box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
        }

        .bg-red {
            background: linear-gradient(135deg, #ff4343 0%, #b94444 100%);
            color: white;
            font-weight: 600;
            border-radius: 8px;
            padding: 6px 10px;
            display: inline-block;
            box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
        }


        .bg-merah {
            background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
            color: white;
            font-weight: 600;
            border-radius: 8px;
            padding: 6px 10px;
            display: inline-block;
            box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
        }

        /* ========== TABLE FOOTER ========== */
        .table-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            background: #f8fafb;
            border-top: 1px solid var(--border-color);
            flex-wrap: wrap;
            gap: 15px;
            font-size: 12px;
        }

        .legend-left {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .trend-up {
            color: var(--danger);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .trend-down {
            color: var(--success);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .legend-right {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .legend-box {
            display: inline-block;
            width: 14px;
            height: 14px;
            border-radius: 4px;
            transition: transform 0.2s ease;
        }

        .legend-box:hover {
            transform: scale(1.3);
        }

        .gray { background: #ccc; }
        .green { background: var(--success); }
        .yellow { background: #ffc107; }
        .orange { background: var(--warning); }
        .red { background: var(--danger); }
        .biru { background: #42a5f5; }
        .kuning { background: #ffa726; }
        .merah { background: #ef5350; }

        /* ========== TABLE NOTE ========== */
        .table-note {
            font-size: 11px;
            color: #999;
            padding: 12px 20px;
            background: white;
            border-top: 1px solid var(--border-color);
            text-align: right;
            font-style: italic;
        }

        /* ========== RESPONSIVE ========== */
        @media (max-width: 1024px) {
            .map-container {
                height: 55vh;
            }

            .header-right {
                gap: 10px;
            }

            .time-box {
                padding: 10px 14px;
            }

            .time {
                font-size: 12px;
            }

            .date {
                font-size: 10px;
            }
        }

        @media (max-width: 768px) {
            .main-header {
                height: auto;
                padding: 15px;
                flex-direction: row;
                gap: 15px;
                justify-content: space-between;
            }

            .header-left {
                width: auto;
                justify-content: flex-start;
                gap: 12px;
            }

            .header-right-desktop {
                display: none !important;
            }

            .header-right-mobile {
                display: flex !important;
            }

            .logo-box {
                width: 50px;
                height: 50px;
            }

            .title {
                gap: 2px;
            }

            .main-title {
                font-size: 18px;
            }

            .sub-title {
                font-size: 10px;
            }

            .map-container {
                height: 50vh;
                padding: 12px;
                margin-bottom: 0;
            }

            #map {
                border-radius: 12px;
            }

            .table-container {
                padding: 12px;
            }

            .table-card {
                border-radius: 12px;
            }

            .table-header,
            .table-header-green,
            .table-header-orange {
                padding: 14px 12px;
                font-size: 13px;
                gap: 8px;
            }

            .table-responsive,
            .table-responsive-scroll {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .custom-table {
                min-width: 900px;
            }

            .custom-table thead th {
                font-size: 11px;
                padding: 10px 8px;
            }

            .custom-table tbody td {
                font-size: 12px;
                padding: 10px 8px;
            }

            .table-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
                padding: 14px 12px;
                font-size: 11px;
            }

            .legend-left {
                flex-direction: column;
                gap: 8px;
                width: 100%;
            }

            .trend-up,
            .trend-down {
                font-size: 11px;
            }

            .legend-right {
                width: 100%;
                flex-wrap: wrap;
                gap: 10px;
            }

            .legend-box {
                width: 12px;
                height: 12px;
            }

            .table-note {
                font-size: 10px;
                padding: 10px 12px;
            }

            .badge-logger {
                padding: 4px 8px;
                font-size: 10px;
            }

            .link-pos {
                font-size: 12px;
            }

            .spacer-lg { height: 15px; }
            .spacer-md { height: 10px; }
        }

        @media (max-width: 480px) {
            .main-header {
                padding: 12px;
                gap: 10px;
            }

            .header-right-desktop {
                display: none !important;
            }

            .header-right-mobile {
                display: flex !important;
            }

            .logo-box {
                width: 45px;
                height: 45px;
            }

            .main-title {
                font-size: 16px;
            }

            .sub-title {
                font-size: 9px;
            }

            .map-container {
                height: 45vh;
                padding: 10px;
            }

            #map {
                border-radius: 10px;
            }

            .table-container {
                padding: 10px;
            }

            .table-card {
                border-radius: 10px;
                border: none;
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
            }

            .table-header,
            .table-header-green,
            .table-header-orange {
                padding: 12px 10px;
                font-size: 12px;
            }

            .table-responsive,
            .table-responsive-scroll {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .custom-table {
                min-width: 900px;
            }

            .custom-table thead th {
                font-size: 10px;
                padding: 8px 6px;
            }

            .custom-table tbody td {
                font-size: 11px;
                padding: 8px 6px;
            }

            .table-footer {
                padding: 12px 10px;
                gap: 8px;
            }

            .table-note {
                font-size: 9px;
                padding: 8px 10px;
            }

            .badge-logger {
                padding: 3px 6px;
                font-size: 9px;
            }

            .link-pos {
                font-size: 11px;
            }

            .legend-box {
                width: 10px;
                height: 10px;
            }

            .spacer-lg { height: 12px; }
            .spacer-md { height: 8px; }
        }

        /* ========== SCROLLBAR ========== */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        ::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

        /* ========== SPACING ========== */
        .spacer-lg { height: 12px; }
        .spacer-md { height: 8px; }

        /* ========== FOOTER ========== */
        .main-footer {
            background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
            color: white;
            padding: 20px;
            margin-top: 20px;
            text-align: center;
            box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        }

        .footer-text {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
            letter-spacing: 0.3px;
        }

        /* ========== RESPONSIVE FOOTER ========== */
        @media (max-width: 768px) {
            .main-footer {
                padding: 15px;
            }

            .footer-text {
                font-size: 12px;
            }
        }

        @media (max-width: 480px) {
            .main-footer {
                padding: 12px;
            }

            .footer-text {
                font-size: 11px;
            }
        }

          .value-center {
            text-align: center;
        }
        
        .value-bold {
            font-weight: 600;
        }
    
.popup-card {
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    min-width: 180px;
}

.popup-header {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #2c3e50;
}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.popup-row {
    display: flex;
    justify-content: space-between;
}

.label {
    color: #7f8c8d;
}

.value {
    font-weight: 500;
    color: #2c3e50;
}

/* RESET popup leaflet */
.leaflet-popup-content {
    margin: 8px 12px !important;
    line-height: 1.4;
}

/* container */
.popup-clean {
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    min-width: 200px;
}

/* judul */
.popup-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #2c3e50;
}

/* tabel */
.popup-table {
    width: 100%;
    border-collapse: collapse;
    align-items: center;
}

.popup-table td {
    padding: 2px 0;
    vertical-align: top;
}

/* label kiri */
.label {
    color: #7f8c8d;
    width: 80px;
}

/* value kanan */
.value {
    text-align: right;
    font-weight: 500;
    color: #2c3e50;
}

/* Center seluruh isi popup */
.leaflet-popup-content {
    text-align: center !important;
}

.legend {
    background: rgb(6, 4, 105);
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    font-size: 13px;
    line-height: 1.5;
}

.legend-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    color: #ffffff;
    text-align: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.legend-item i {
    width: 16px;
    text-align: center;
}

@media (max-width: 768px) {
    .legend {
        display: none;
    }
}

.home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.home-btn:hover {
    background: #f4f4f4;
}

.td-lokasi {
    max-width: 250px;       /* batasi lebar */
    white-space: normal;    /* izinkan turun baris */
    word-wrap: break-word;
}


    .cuaca-cell {
        cursor: pointer;
        transition: background-color 0.15s ease;
        border-radius: 6px;
    }
 
    .cuaca-cell:hover,
    .cuaca-cell:focus {
        background-color: rgba(29, 111, 163, 0.08);
        outline: none;
    }
 
    /* Fallback minimal untuk modal & backdrop, jaga-jaga kalau halaman yang
       meng-include file ini tidak memuat CSS Bootstrap secara lengkap.
       z-index dibuat sangat tinggi supaya tidak tertimpa header/navbar situs. */
    #modalDetailCuaca.modal {
        position: fixed;
        inset: 0;
        z-index: 999999;
        display: none;
        overflow-x: hidden;
        overflow-y: auto;
    }

    #modalDetailCuacaLabel {
    width: 100%;
    text-align: center;
    margin: 0;
}
 
    /* ===== MODAL DETAIL CUACA - desain kartu, responsif mobile ===== */
 
    #modalDetailCuaca .modal-dialog {
        max-width: 480px;
        margin: 1.75rem auto;
    }
 
    #modalDetailCuaca .modal-content {
        background-color: #ffffff;
        border-radius: 14px;
        overflow: hidden;
        border: none;
        box-shadow: 0 20px 50px rgba(15, 44, 76, 0.25);
    }
 
    #modalDetailCuaca .modal-header {
        padding: 14px 18px;
        border-bottom: none;
    }
 
    #modalDetailCuaca .modal-title {
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.2px;
    }
 
    #modalDetailCuaca .modal-body {
        padding: 16px 18px 18px;
        max-height: 75vh;
        overflow-y: auto;
    }
 
    /* Ringkasan kondisi hari itu, tampil sebagai chip di atas modal */
    .cuaca-kondisi-chip {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.95rem;
        font-weight: 600;
        color: #0F2C4C;
        margin-bottom: 14px;
    }
 
    .cuaca-kondisi-chip img {
        width: 26px;
        height: 26px;
        flex-shrink: 0;
    }
 
    /* Suhu minimum / maksimum, dua kartu berdampingan */
    .cuaca-stat-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 18px;
    }
 
    .cuaca-stat-card {
        background: linear-gradient(180deg, rgba(29, 111, 163, 0.07), rgba(29, 111, 163, 0.02));
        border: 1px solid rgba(29, 111, 163, 0.15);
        border-radius: 10px;
        padding: 10px 12px;
        text-align: center;
    }
 
    .cuaca-stat-card .label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #5b7182;
        font-weight: 600;
        margin-bottom: 2px;
    }
 
    .cuaca-stat-card .value {
        font-size: 1.35rem;
        font-weight: 700;
        color: #0F2C4C;
    }
 
    /* Judul bagian "Rincian per Waktu" */
    .cuaca-section-title {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        font-weight: 700;
        color: #5b7182;
        margin: 0 0 8px 2px;
    }
 
    /* Daftar kartu per slot waktu (pagi/siang/malam, dst) */
    .cuaca-timeline {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
 
    .cuaca-slot-card {
        border: 1px solid #e7edf1;
        border-radius: 10px;
        padding: 10px 12px;
        background: #fbfcfd;
    }
 
    .cuaca-slot-head {
        display: flex;
        align-items: center;
        gap: 10px;
    }
 
    .cuaca-slot-head img {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }
 
    .cuaca-slot-jam {
        font-size: 0.72rem;
        font-weight: 700;
        color: #fff;
        background-color: var(--primary, #1D6FA3);
        border-radius: 20px;
        padding: 2px 9px;
        display: inline-block;
        margin-bottom: 3px;
    }
 
    .cuaca-slot-kondisi {
        font-size: 0.88rem;
        font-weight: 600;
        color: #0F2C4C;
    }
 
    .cuaca-slot-suhu {
        margin-left: auto;
        text-align: right;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--primary, #1D6FA3);
        flex-shrink: 0;
    }
 
    .cuaca-slot-suhu small {
        display: block;
        font-size: 0.65rem;
        font-weight: 600;
        color: #8a99a5;
    }
 
    /* Statistik sekunder: kelembaban, angin, jarak pandang, dst */
    .cuaca-slot-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px 10px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed #e2e8ec;
    }
 
    .cuaca-slot-stat {
        display: flex;
        justify-content: space-between;
        gap: 6px;
        font-size: 0.78rem;
    }
 
    .cuaca-slot-stat .k {
        color: #8a99a5;
    }
 
    .cuaca-slot-stat .v {
        color: #26333d;
        font-weight: 600;
        text-align: right;
    }
 
    .cuaca-meta-note {
        margin-top: 14px;
        font-size: 0.72rem;
        color: #a3b0b9;
        text-align: center;
    }
 
    /* ===== Mobile ===== */
    @media (max-width: 480px) {
        #modalDetailCuaca .modal-dialog {
            max-width: none;
            margin: 0.6rem;
        }
 
        #modalDetailCuaca .modal-body {
            padding: 14px 14px 16px;
            max-height: 80vh;
        }
 
        .cuaca-stat-card .value {
            font-size: 1.15rem;
        }
 
        .cuaca-slot-suhu {
            font-size: 1.02rem;
        }
 
        .cuaca-slot-grid {
            grid-template-columns: 1fr 1fr;
            font-size: 0.74rem;
        }
    }
        position: fixed;
        inset: 0;
        z-index: 1050;
        background-color: #000;
        opacity: 0.5;
    }
 
    body.modal-open {
        overflow: hidden;
    }

        .table-header-bendungan{
    background: #0fbfb0 !important;
    color: #000;
}