.dashboard-shell {
    padding-bottom: 1rem;
    min-width: 0;
}

.dashboard-row > [class*="col-"] {
    min-width: 0;
}

.dashboard-shell .card,
.dashboard-shell .card-body,
.dashboard-shell .card-header,
.dashboard-shell .table-responsive {
    min-width: 0;
}

.dashboard-kpi-card {
    border-radius: 1rem;
}

.dashboard-kpi-blue {
    background: linear-gradient(135deg, #eef4ff 0%, #f6f9ff 100%);
}

.dashboard-kpi-mint {
    background: linear-gradient(135deg, #eefcf7 0%, #f5fffb 100%);
}

.dashboard-kpi-amber {
    background: linear-gradient(135deg, #fff7e8 0%, #fffdf7 100%);
}

.dashboard-kpi-rose {
    background: linear-gradient(135deg, #fff0f4 0%, #fff8fb 100%);
}

.dashboard-kpi-label {
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .045em;
    font-size: .72rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.dashboard-kpi-value {
    font-size: 2.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.dashboard-chart {
    min-height: clamp(220px, 30vw, 320px);
}

.dashboard-empty-chart {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 600;
    border: 1px dashed #dbe3ef;
    border-radius: 1rem;
    background: #f8fafc;
}

.dashboard-donut-panel {
    display: grid;
    place-items: center;
    gap: 1rem;
}

.dashboard-donut {
    width: clamp(150px, 26vw, 190px);
    height: clamp(150px, 26vw, 190px);
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06), 0 18px 38px rgba(15, 23, 42, .08);
}

.dashboard-donut-core {
    width: clamp(92px, 17vw, 118px);
    height: clamp(92px, 17vw, 118px);
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    align-content: center;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.dashboard-donut-core span {
    color: #0f172a;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.dashboard-donut-core small {
    color: #64748b;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dashboard-donut-legend {
    width: 100%;
    display: grid;
    gap: .65rem;
}

.dashboard-donut-legend-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .75rem;
    border: 1px solid #edf2f7;
    border-radius: .85rem;
    background: #fff;
}

.dashboard-donut-legend-item strong,
.dashboard-donut-legend-item small {
    display: block;
}

.dashboard-donut-legend-item strong {
    color: #0f172a;
    font-size: .86rem;
}

.dashboard-donut-legend-item small {
    color: #64748b;
    font-size: .75rem;
}

.dashboard-level-dot {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: .82rem;
    font-weight: 800;
    border: 1px solid;
}

.dashboard-bar-list {
    display: grid;
    align-content: start;
    gap: .72rem;
    padding-top: .35rem;
}

.dashboard-bar-row {
    display: grid;
    gap: .38rem;
}

.dashboard-bar-label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #0f172a;
    font-size: .82rem;
    font-weight: 700;
}

.dashboard-bar-label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-shell table {
    margin-bottom: 0;
}

.dashboard-shell th,
.dashboard-shell td {
    white-space: nowrap;
}

.dashboard-bar-label strong {
    color: #475569;
}

.dashboard-bar-track {
    height: 1.05rem;
    overflow: hidden;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.dashboard-bar-fill {
    height: 100%;
    border-radius: inherit;
    min-width: .75rem;
}

.dashboard-bar-fill-blue {
    background: linear-gradient(90deg, #7aa7ff 0%, #3d6dd8 100%);
}

.dashboard-bar-fill-coral {
    background: linear-gradient(90deg, #ffb1a6 0%, #ef6a5a 100%);
}

.dashboard-level-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 1.6rem;
    padding: 0 .5rem;
    border-radius: .85rem;
    font-weight: 700;
    font-size: .78rem;
    border: 1px solid;
}

.dashboard-level-training {
    color: #d84b3b;
    background: #ffeceb;
    border-color: #ffbcb5;
}

.dashboard-level-good {
    color: #b87900;
    background: #fff5d9;
    border-color: #f3d269;
}

.dashboard-level-awesome {
    color: #16894d;
    background: #e4f8ea;
    border-color: #a8e2bf;
}

.station-name {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
}

.station-name-dot {
    display: inline-block;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #60d394;
    box-shadow: 0 0 0 0.18rem rgba(96, 211, 148, 0.18);
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .dashboard-chart {
        min-height: 240px;
    }

    .dashboard-kpi-value {
        font-size: 1.8rem;
    }

    .dashboard-donut-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .dashboard-shell {
        padding-bottom: .5rem;
    }

    .dashboard-shell .card-header,
    .dashboard-shell .card-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .dashboard-kpi-value {
        font-size: 1.65rem;
    }

    .dashboard-chart {
        min-height: auto;
    }

    .dashboard-bar-label {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: .5rem;
    }

    .dashboard-bar-label span {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
        line-height: 1.35;
    }

    .dashboard-donut-legend-item {
        padding: .55rem .65rem;
    }

    .dashboard-shell th,
    .dashboard-shell td {
        font-size: .8rem;
    }
}

@media (max-width: 575.98px) {
    .dashboard-shell .row {
        --vz-gutter-x: 1rem;
    }

    .dashboard-donut-core span {
        font-size: 1.6rem;
    }

    .dashboard-level-pill {
        min-width: 1.8rem;
        height: 1.45rem;
        font-size: .72rem;
    }
}
