﻿.chart-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

    .chart-toggle label {
        display: flex;
        align-items: center;
        gap: 6px;
        background: #2c2f36;
        color: #ddd;
        padding: 6px 12px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
    }

    .chart-toggle input[type="radio"] {
        accent-color: #00e396;
    }

        .chart-toggle input[type="radio"]:checked + span {
            color: #00e396;
            font-weight: 600;
        }

#dischargeContainer {
    width: 100%;
    height: 60vh;
}

.apexcharts-canvas {
    max-width: 100% !important;
    overflow: hidden !important;
}

.apexcharts-legend {
    flex-wrap: wrap;
    white-space: normal;
    justify-content: center;
}



/* Force Apex toolbar buttons in one row */
.apexcharts-menu-item {
    display: inline-block !important;
    margin: 0 4px !important;
    white-space: nowrap !important;
}

.apexcharts-menu {
    min-width: auto !important;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* date left, toggle right */
    gap: 1rem;
    margin-bottom: 1rem;
}

.reading-date {
    color: #00e396;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    background: #2c2f36;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}
.upstream {
    color: #0090ff !important;
}

.downstream {
    color: #00e396 !important;
}