﻿#collapseMap .card-body {
    padding: 0;
    box-shadow: 0 0 0 .2em white;
    width: 100vw;
}

#collapseInfo .card-body {
    box-shadow: 0 0 0 .2em white;
}

#map {
    width: 100%;
    height: 40vh;
    transition: height 0.5s ease-in-out;
}

    #map.full-width {
        width: 100%;
        height: 68vh;
    }

#container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}


.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.metric-card {
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

    .metric-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

    .metric-card:nth-child(1) {
        border-left: 8px solid;
        border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
        border-image-slice: 1;
        border-width: 0 0 0 8px;
    }



    .metric-card:nth-child(2) {
        border-left: 8px solid;
        border-image: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) 1;
        border-image-slice: 1;
        border-width: 0 0 0 8px;
    }



    .metric-card:nth-child(3) {
        border-left: 8px solid;
        border-image: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) 1;
        border-image-slice: 1;
        border-width: 0 0 0 8px;
    }


    .metric-card:nth-child(4) {
        border-left: 8px solid;
        border-image: linear-gradient(135deg, #e83838 0%, #fee140 100%) 1;
        border-image-slice: 1;
        border-width: 0 0 0 8px;
    }

    .metric-card:nth-child(5) {
        border-left: 8px solid;
        border-image: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) 1;
        border-image-slice: 1;
        border-width: 0 0 0 8px;
    }


.metric-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.mud-tab {
    color: #424242 !important;
    background: transparent !important;
}

    .mud-tab svg {
        fill: #424242 !important;
    }

.mud-tab-active {
    color: #1565c0 !important;
    border-bottom: 2px solid #1565c0 !important;
}

    .mud-tab-active svg {
        fill: #1565c0 !important;
    }

.mud-tab, .mud-tab-active {
    display: inline-block !important;
}

.dxbl-grid .dxbl-grid-table > tbody > tr > td:first-child,
.dxbl-grid .dxbl-grid-table > tbody > tr > th:first-child:not(.dxbl-grid-bordered-left),
.dxbl-grid .dxbl-grid-table > tfoot > tr > td:first-child,
.dxbl-grid .dxbl-grid-table > tfoot > tr > th:first-child:not(.dxbl-grid-bordered-left),
.dxbl-grid .dxbl-grid-table > thead > tr > td:first-child,
.dxbl-grid .dxbl-grid-table > thead > tr > th:first-child:not(.dxbl-grid-bordered-left) {
    text-align: left !important;
}

.dxbl-grid .dxbl-grid-table > thead:nth-child(2) > tr:first-child > th {
    padding: 1em !important;
}

.dxbl-grid .dxbl-grid-table > thead > tr > td {
    height: 1em !important;
    width: 2em;
}

.dxbl-grid .dxbl-grid-table > tbody > tr {
    cursor: pointer;
}

    .dxbl-grid .dxbl-grid-table > tbody > tr.selected-row {
        background-color: #1565c0 !important;
        color: white !important;
    }

        .dxbl-grid .dxbl-grid-table > tbody > tr.selected-row svg polyline {
            stroke: white !important;
        }

        .dxbl-grid .dxbl-grid-table > tbody > tr.selected-row svg line {
            stroke: white !important;
        }

.map-focused {
    transition: all 0.3s ease;
}

.dxbl-chart-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.4px;
}
.dxbl-chart-legend-text {
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 500;
}
.chart-container {
    color: #0f172a;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 40px 32px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
}

.compact-list {
    background: white;
    border-radius: 0 0 24px 24px;
    padding: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
}

.compact-item {
    display: grid;
    grid-template-columns: 40px 1fr 100px;
    gap: 12px;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    cursor:pointer;
}

    .compact-item:hover {
        background: #f9f9f9;
    }

    .compact-item:last-child {
        border-bottom: none;
    }

.compact-rank {
    font-size: 20px;
    font-weight: 700;
    color: #1976d2;
    text-align: center;
}

    .compact-rank.top3 {
        color: #f57c00;
    }

.compact-details {
    display: flex;
    flex-direction: column;
}

.compact-meter {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.compact-ref {
    font-size: 11px;
    color: #999;
}

.compact-value {
    font-size: 18px;
    font-weight: 700;
    color: #1976d2;
    text-align: right;
}

.column-header {
    text-align: center;
    padding: 3px;
    /*    background: linear-gradient(135deg, #1976d2, #42a5f5);*/
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
}


    .consumer-hg-title {
        margin-top:5px;
        font-size: 17px;
        font-weight: 700;
        color: #0f172a;
        letter-spacing: -0.4px;
    }

    .consumer-hg-subtitle {
        font-size: 12px;
        color: #94a3b8;
        font-weight: 400;
    }
    .column-header.bottom {
/*        background: linear-gradient(135deg, #388e3c, #66bb6a);*/
    }

.dual-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding:20px; 
}


h2 {
    text-align: center;
}

.nds-col-header-sub {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--ontec-text-secondary, #64748B);
    opacity: 0.85;
}

.hg-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px 20px 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
/*    font-family: 'Plus Jakarta Sans', sans-serif;*/
}

/* Header */
.hg-header {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.hg-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.4px;
}

.hg-subtitle {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 3px;
    font-weight: 400;
}

/* Grid */
.hg-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.hg-cell {
    border-radius: 10px;
    padding: 11px 9px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    border: 1px solid transparent;
}

    .hg-cell:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.10);
        z-index: 1;
        border-color: rgba(0,0,0,0.06);
    }
        .hg-cell:hover .hg-cell-date {
            font-size: 12.5px;
        }
        .hg-cell:hover .hg-cell-value {
            font-size: 15.5px;
        }

.hg-cell--empty {
    background: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0 !important;
    opacity: 0.5;
}

.hg-cell-date {
    font-size: 9.5px;
    font-weight: 500;
    margin-bottom: 5px;
    letter-spacing: 0.1px;
}

.hg-cell-value {
    font-size: 11.5px;
    font-weight: 500;
}

/* Level colors */
.hg-l0 {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0 !important;
}

.hg-l1 {
    background: #e2e8f0;
    color: #334155;
}

.hg-l2 {
    background: #cbd5e1;
    color: #1e293b;
}

.hg-l3 {
    background: #94a3b8;
    color: #0f172a;
}

.hg-l4 {
    background: #64748b;
    color: #f8fafc;
}

.hg-l5 {
    background: #334155;
    color: #f1f5f9;
}

/* Legend */
.hg-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.hg-legend-label {
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 500;
}

.hg-legend-steps {
    display: flex;
    gap: 4px;
    align-items: center;
}

.hg-legend-box {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}
