.chart-local-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: nowrap;
    margin: 0 0 0.55rem;
    min-height: 2rem;
    overflow-x: auto;
}

.uniform-chart-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 470px;
}

.uniform-chart-card > .card-header {
    flex: 0 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
}

.uniform-chart-card > .card-header > * {
    width: 100%;
}

.uniform-chart-card .chart-header-title {
    flex-wrap: nowrap;
    min-width: 0;
    width: 100%;
}

.uniform-chart-card .chart-header-title > :first-child {
    flex: 0 0 auto;
}

.uniform-chart-card .chart-header-hint {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.uniform-chart-card .chart-header-hint::-webkit-scrollbar {
    display: none;
}

.uniform-chart-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.uniform-chart-scroll {
    flex: 0 0 322px;
    height: 322px;
    min-height: 322px;
    max-height: 322px;
}

.uniform-chart-scroll canvas,
.uniform-chart-scroll .chart-container,
.uniform-chart-scroll .monitoring-chart-container {
    height: 300px !important;
    min-height: 300px;
    max-height: 300px;
}

.chart-local-label {
    display: none;
    margin-right: auto;
    max-width: min(48vw, 24rem);
    color: var(--vhp-green-dark);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-local-controls button {
    min-width: 2rem;
    height: 1.9rem;
    border: 1px solid var(--vhp-green);
    border-radius: 6px;
    background: var(--vhp-green);
    color: var(--vhp-white);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.25rem 0.5rem;
    box-shadow: none;
}

.chart-local-controls button[data-chart-local-action="range"] {
    min-width: 2.45rem;
    border-color: #b0b7bd;
    background: #ffffff;
    color: var(--vhp-green-dark);
}

.chart-local-controls button[data-chart-local-action="range"].is-active {
    border-color: var(--vhp-orange);
    background: var(--vhp-orange);
    color: var(--vhp-white);
}

.chart-local-controls button:hover,
.chart-local-controls button:focus {
    border-color: var(--vhp-green-dark);
    background: var(--vhp-green-dark);
    color: var(--vhp-white);
}

.chart-local-controls button[data-chart-local-action="range"].is-active:hover,
.chart-local-controls button[data-chart-local-action="range"].is-active:focus {
    border-color: var(--vhp-orange);
    background: var(--vhp-orange);
}

.chart-local-controls button:focus-visible {
    outline: 2px solid var(--vhp-orange);
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .chart-local-controls {
        justify-content: flex-end;
    }

    .chart-local-label {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
