
.cbr {
    margin: 3rem 0rem; 
}

/* ====== БАЗА ====== */
.cbr-dashboard {
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    gap: 1rem;
    max-width: 500px;
    font-family: "Times New Roman", Georgia, serif;
    color: #111;
}

/* ====== КАРТОЧКА ГРАФИКА ====== */
.chart-card {
    max-width: 500px;
    min-width: 450px;
    border: 1px solid #e5e5e5;
    padding: 10px 15px;
    background: #fff;
    border-radius: 10px;
}

.chart-card h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* ====== ПАНЕЛЬ УПРАВЛЕНИЯ ====== */
.chart-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-bottom: 12px;
    justify-content: space-between;
}

/* ====== КНОПКИ ====== */
.chart-controls button {
    font-size: 13px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: all .15s ease;
}

.chart-controls button:hover {
    background: #f3f3f3;
    border-color: #999;
}

.chart-controls button.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* reset zoom */
.chart-controls .reset {
    margin-left: auto;
    font-size: 12px;
    border-color: #aaa;
}

/* ====== SELECT ====== */
.chart-controls select {
    font-size: 13px;
    padding: 4px 6px;
    border: 1px solid #ccc;
    background: #fff;
}

/* ====== CANVAS ====== */
.chart-canvas {
    width: 100%;
    height: 360px;
    border-top: 1px solid #eee;
    padding-top: 14px;
}

/* ====== SEO / HOVER TEXT ====== */
.chart-seo {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ====== HOVER INFO ====== */
.chart-card[data-info]:hover::after {
    content: attr(data-info);
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px 12px;
    font-size: 12px;
    width: 260px;
    line-height: 1.4;
    top: 10px;
    right: 10px;
    z-index: 10;
}


.cbr h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.cbr-text {
    background-color: #f9f9f9;
    padding: 0px 25px;
    border-left: 4px solid #003366;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.cbr-text h2 {
    font-size: 22px;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #003366;
}

.cbr-text h3 {
    font-size: 18px;
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #004080;
}

.cbr-text p {
    margin-bottom: 1rem;
    text-align: justify;
    text-justify: inter-word;
}

.cbr-text p:last-child {
    margin-bottom: 0;
}

.cbr-text a {
    color: #003366;
    text-decoration: underline;
}

.cbr-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 768px) {
    .chart-card {
        min-width: auto;
        padding: 10px 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .chart-canvas-container {
        height: 300px;
    }

    .cbr-text {
        padding: 16px 12px;
        border-left: 3px solid #003366;
    }
    .cbr h1 {
        font-size: 1.3rem;
    }

    .cbr-text h2 {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .cbr-text p {
        font-size: 0.8rem;
    }

    .chart-canvas {
        padding-top: 0px;
    }

    .chart-card h2 {
        font-size: 1.3rem;
        align-items: center;
    }

    .chart-controls {
        gap: 8px;
        justify-content: flex-start;
    }

    .chart-controls .reset {
        margin: 0px;
    }

    .cbr {
        margin: 2rem 0rem;
    }
}