﻿.highlight-row {
    font-weight: bold;
    background: #f8f9fa;
}

.hourly-accordion-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 118px;
    height: 28px;
    border: 0;
    border-radius: 4px;
    background: #22b24c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 28px;
    cursor: pointer;
    padding: 0 10px;
}

.hourly-accordion-toggle[aria-expanded="true"] {
    background: #1f6feb;
}

.hourly-accordion-icon {
    width: 10px;
    font-size: 13px;
    line-height: 1;
    text-align: center;
}

.hourly-accordion-detail > td {
    padding: 0 16px 16px 52px;
    border-top: 0;
    background: #f8fafc;
}

.hourly-detail-panel {
    border: 1px solid #d7deea;
    border-radius: 6px;
    background: #fff;
    padding: 12px;
}

.hourly-detail-table {
    margin-bottom: 0;
}

.hourly-detail-table th,
.hourly-detail-table td {
    white-space: nowrap;
    vertical-align: middle;
}

.forecast-trend-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 24px;
    padding: 22px 24px 28px;
}

.forecast-summary-item {
    flex: 1 1 220px;
    max-width: 320px;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.forecast-summary-item > div {
    min-width: 150px;
}

.forecast-summary-item label {
    display: block;
    margin-bottom: 8px;
    color: #001737;
    font-size: 13px;
}

.forecast-summary-item h4 {
    margin: 6px 0 0;
    color: #001737;
    font-size: 24px;
    font-weight: 700;
}

.forecast-trend-chart {
    width: 100%;
    height: 390px;
    margin-top: 4px;
    padding: 0 8px;
}

.forecast-trend-chart canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 767.98px) {
    .forecast-trend-body {
        padding: 18px 14px 22px;
        row-gap: 18px;
    }

    .forecast-summary-item {
        flex-basis: 100%;
        max-width: none;
        justify-content: flex-start;
    }

    .forecast-trend-chart {
        height: 340px;
        padding: 0;
    }

    .table-responsive {
        overflow-x: visible !important;
    }

    .table thead {
        display: none;
    }

    .table td[data-key="data_table_lbl_date"]::before {
        font-weight: 900;
        color: #222;
        letter-spacing: 0.5px;
    }

    .table, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }

        .table tr {
            margin-bottom: 1rem;
            border-bottom: 2px solid #eee;
            background: #fff;
            box-shadow: 0 1px 2px rgba(0,0,0,0.02);
        }

        .table td {
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
            text-align: left;
            border: none;
            border-bottom: 1px solid #eee;
            min-height: 40px;
            font-size: 1rem;
            padding: 0.5rem 0.5rem 0.5rem 0.5rem;
            position: relative;
        }

            .table td::before {
                content: attr(data-label) ": ";
                flex: 0 0 44%;
                font-weight: bold;
                color: #888;
                white-space: nowrap;
                padding-right: 0.5rem;
                padding-left: 0;
                position: static;
                min-width: 90px;
                max-width: 44%;
                box-sizing: border-box;
            }

    .table td[data-key="data_table_lbl_hourly"] {
        align-items: center;
    }

    .hourly-accordion-toggle {
        min-width: 0;
        max-width: 100%;
        height: auto;
        min-height: 32px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .hourly-accordion-detail {
        margin-top: -1rem;
    }

    .hourly-accordion-detail > td {
        display: block;
        width: 100%;
        padding: 0 0 16px;
        border-bottom: 0;
    }

    .hourly-accordion-detail > td::before {
        display: none;
        content: none;
    }

    .hourly-detail-panel {
        width: 100%;
        padding: 10px;
        overflow: hidden;
    }

    .hourly-detail-panel .table-responsive {
        width: 100%;
        overflow-x: visible !important;
    }

    .hourly-detail-table tr {
        margin-bottom: 0.75rem;
        border: 1px solid #e5eaf2;
        border-radius: 4px;
        box-shadow: none;
    }

    .hourly-detail-table td {
        align-items: center;
        justify-content: space-between;
        min-height: 34px;
        padding: 0.45rem 0.5rem;
        font-size: 0.95rem;
    }

    .hourly-detail-table td::before {
        flex-basis: 42%;
        max-width: 42%;
        min-width: 76px;
    }
}
