/* --- key figures ------------------- */
.charts__main-wrapper {
    display: flex;
    justify-content: center;
    padding: 32px 0 0 0;
    flex-wrap: wrap;
}

.charts__item-wrapper {
    border-right: 1px solid var(--quartz);
    padding: 26px 0px 26px 0px;
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.charts__item-wrapper:last-child {
    border-right: none;
}

.charts__item-wrapper .charts__values {
    font-size: 60px;
    font-weight: 700;
    line-height: 80px;
}

.charts__item-wrapper .charts__tagline {
    padding-right: 20px;
    padding-left: 20px;
    padding-top: 8px;
    text-align: center;
}

/* --- chart containers --------------------------------------------------- */
#rebased-to-1000-at-inception-v2 {
    width: 100%;
    height: 350px;
    margin-top: 24px;
}

#net-annual-performance-v2 {
    width: 100%;
    min-height: 135px;
    margin-top: 24px;
    height: 100%;
}

#cumulative-chart-v2 .highcharts-menu-item {
    font-size: 1.5rem !important;
}

.comprative-charts-wrapper p>i {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 22px
}

.comparative-chart-text {
    padding-left: 105px;
}

.warning-text {
    padding: 100px;
    text-align: center;
}

/* Monthly-performance tables */
#report-table-container{overflow-x: auto;}

/* --- Highcharts runtime markup ------------------------------------------ */
.highcharts-axis-labels text {
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1;
    color: #5C5B59 !important;
    font-family: var(--font-body) !important;
}

.highcharts-label text,
.highcharts-yaxis>text {
    font-weight: 700;
    line-height: 22px;
    color: #000 !important;
    fill: #000 !important;
    font-family: var(--font-body) !important;
}

input.highcharts-range-selector {
    color: var(--dark-stone) !important;
    font-weight: 400 !important;
    -webkit-transition: all 0.25s !important;
    transition: all 0.25s !important;
    max-width: 70rem;
    top: 30px !important;
    font-size: 14px !important;
}

/* --- breakpoints -------------------------------------------------------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) {
    .charts__main-wrapper {
        padding: 32px 0 0 0;
        justify-content: start;
    }

    .charts__item-wrapper {
        padding: 26px 10px 26px 0px;
        width: 30%;
    }

    .charts__item-wrapper:last-child {
        padding-right: 0px;
    }

    .charts__item-wrapper:first-child {
        padding-right: 0px;
    }
}

@media (max-width: 767.91px) {
    .charts__item-wrapper {
        border-right: none;
        border-bottom: 1px solid var(--quartz);
        padding: 25px 0px;
        width: 100%;
        align-items: start;
    }

    .charts__item-wrapper .charts__tagline {
        text-align: left;
        padding-left: 0;
    }

    .charts__item-wrapper .charts__values {
        font-size: 32px;
        line-height: 40px;
    }

    .charts__main-wrapper {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        padding: 24px 0 0 0;
    }

    .charts-mobile-title {
        padding-top: 64px;
    }

    .scroll-wrapper-chart {
        overflow-x: scroll;
    }

    #cumulative-chart-v2,
    #net-annual-performance-v2,
    #rebased-to-1000-at-inception-v2 {
        min-width: 770px;
        margin-left: -15px;
        width: 100%;
    }

    #net-annual-performance-v2 {
        width: 100%;
        min-height: 150px;
        margin-top: 24px;
        height: 100%;
    }

    #net-annual-performance-v2 .highcharts-data-labels {
        translate: 0px -25px;
    }

    .comparative-chart-text {
        padding-left: 0px;
    }
}

/* Grey background for each chart group rendered as a pseudo-element so it
   does NOT add any padding/margin to the actual box — the chart and title
   stay in their original positions, keeping alignment with other modules. */

.chart-group {
    position: relative;
    z-index: 0;
}

.chart-group::before {
    content: "";
    position: absolute;
    top: -25px;
    bottom: -25px;
    left: -40px;
    right: -40px;
    background-color: var(--bs-gray-200);
    border-radius: 4px;
    z-index: -1;
    pointer-events: none;
}

/* Keep the two stacked chart groups inside the performance section from
   visually overlapping (their pseudo backgrounds extend outward). */
.performance-charts-wrapper .chart-group+.chart-group {
    margin-top: 40px;
}

/* On smaller screens, reduce the outward extension so the grey panel does
   not get clipped by tight tab containers. */
@media (max-width: 767.98px) {
    .chart-group::before {
        top: -10px;
        bottom: -10px;
        left: -6px;
        right: -6px;
    }

    .performance-charts-wrapper .chart-group+.chart-group {
        margin-top: 28px;
    }
}
