
@media (max-width: 767px) {

html[data-theme="light"] .analytics-page .cumulative-card,
body[data-theme="light"] .analytics-page .cumulative-card,
html.rb-mobile-light .analytics-page .cumulative-card,
body.rb-mobile-light .analytics-page .cumulative-card {
    width: 100% !important;
    min-height: 250px !important;
    height: auto !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: #FFFFFF !important;
    border: 1px solid #E1E7F0 !important;
    border-radius: 20px !important;
    box-shadow:
        0 1px 2px rgba(16,24,40,.03),
        0 10px 30px rgba(15,32,57,.07) !important;
    color: #111827 !important;
}

html[data-theme="light"] .analytics-page .cumulative-head h3,
body[data-theme="light"] .analytics-page .cumulative-head h3,
html.rb-mobile-light .analytics-page .cumulative-head h3,
body.rb-mobile-light .analytics-page .cumulative-head h3 {
    margin: 0 !important;
    color: #27364B !important;
    font-size: 20px !important;
    line-height: 25px !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

html[data-theme="light"] .analytics-page .cumulative-head p,
body[data-theme="light"] .analytics-page .cumulative-head p,
html.rb-mobile-light .analytics-page .cumulative-head p,
body.rb-mobile-light .analytics-page .cumulative-head p {
    margin: 4px 0 0 !important;
    color: #667085 !important;
    font-size: 13px !important;
    line-height: 19px !important;
    opacity: 1 !important;
}

html[data-theme="light"] .analytics-page .cumulative-legend,
body[data-theme="light"] .analytics-page .cumulative-legend,
html.rb-mobile-light .analytics-page .cumulative-legend,
body.rb-mobile-light .analytics-page .cumulative-legend {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 14px !important;
    margin-top: 12px !important;
    color: #667085 !important;
    font-size: 11px !important;
    line-height: 17px !important;
    opacity: 1 !important;
}

html[data-theme="light"] .analytics-page .cumulative-legend span,
body[data-theme="light"] .analytics-page .cumulative-legend span,
html.rb-mobile-light .analytics-page .cumulative-legend span,
body.rb-mobile-light .analytics-page .cumulative-legend span {
    color: #667085 !important;
}

html[data-theme="light"] .analytics-page .cumulative-legend i,
body[data-theme="light"] .analytics-page .cumulative-legend i,
html.rb-mobile-light .analytics-page .cumulative-legend i,
body.rb-mobile-light .analytics-page .cumulative-legend i {
    background: #16C76A !important;
}

html[data-theme="light"] .analytics-page .cumulative-legend i.blue,
body[data-theme="light"] .analytics-page .cumulative-legend i.blue,
html.rb-mobile-light .analytics-page .cumulative-legend i.blue,
body.rb-mobile-light .analytics-page .cumulative-legend i.blue {
    background: #2F6BFF !important;
}

html[data-theme="light"] .analytics-page .cumulative-canvas,
body[data-theme="light"] .analytics-page .cumulative-canvas,
html.rb-mobile-light .analytics-page .cumulative-canvas,
body.rb-mobile-light .analytics-page .cumulative-canvas {
    position: relative !important;
    width: 100% !important;
    height: 170px !important;
    min-height: 170px !important;
    margin-top: 12px !important;
    overflow: hidden !important;
}

html[data-theme="light"] .analytics-page .cumulative-canvas canvas,
body[data-theme="light"] .analytics-page .cumulative-canvas canvas,
html.rb-mobile-light .analytics-page .cumulative-canvas canvas,
body.rb-mobile-light .analytics-page .cumulative-canvas canvas {
    display: block !important;
    width: 100% !important;
    height: 170px !important;
}

/* Если tooltip Chart.js создаёт отдельный HTML-блок */
html[data-theme="light"] .analytics-page .chartjs-tooltip,
body[data-theme="light"] .analytics-page .chartjs-tooltip,
html.rb-mobile-light .analytics-page .chartjs-tooltip,
body.rb-mobile-light .analytics-page .chartjs-tooltip {
    display: none !important;
}
}
