﻿.charts-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
    min-width: 0;
}

.chart-container {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    height: 450px;
    margin-bottom: 30px;
}

.chart-container canvas {
    display: block;
    width: 100% !important;
    height: 400px !important;
    max-height: none;
}

.chart-title {
    margin: 0 0 12px 0;
    color: var(--text-main, #111827);
    font-size: 1rem;
}

/* Внешняя легенда Chart.js */

/* Внешняя легенда Chart.js */
.chart-html-legend {
    height: 84px;
    min-height: 84px;
    box-sizing: border-box;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: center;

    column-gap: 12px;
    row-gap: 3px;

    overflow: hidden;
    padding: 4px 0 8px;
    margin: 0;
}

.chart-html-legend .legend-line {
    height: 0;
    border-radius: 0;
    align-self: center;
}

/* Элементы легенды */
.chart-html-legend button {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    font-family: "Manrope", sans-serif;
    color: rgba(102, 102, 102, 0.95);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;

    cursor: pointer;
}

/* Скрытые наборы данных */
.chart-html-legend button.hidden {
    opacity: 0.4;
    text-decoration: line-through;
}

/* Цветные маркеры */

.chart-html-legend .legend-color {
    display: inline-block;

    flex: 0 0 25px;
    width: 20px;
    min-width: 25px;
    height: 12px;

    border: 0;
    border-radius: 0;
    box-sizing: border-box;
}



/* Адаптив */
@media (max-width: 768px) {
    .charts-row {
        flex-direction: column;
    }
}