/* Statistics - Central Unit graph, tooltip, legend and scroll indicator */

html[data-page=statistics] #centralUnit .section__heading {
    text-align: center;
}

html[data-page=statistics] .centralUnit__legendItem p {
    font-weight: 400;
    font-size: 17px;
    line-height: 120%;
    letter-spacing: -0.68px
}

@media (max-width: 534px) {
    html[lang^=ta] .centralUnit__legend {
        gap: 30px;
        flex-direction: column;
    }
}

html[data-page=statistics] .centralUnit__legendItem p {
    font-weight: 400;
    font-size: 17px;
    line-height: 120%;
    letter-spacing: -0.68px
}

html[data-page=statistics] .centralUnit__legendItem p {
    font-weight: 400;
    font-size: 17px;
    line-height: 120%;
    letter-spacing: -0.68px
}

html[data-page=statistics] .centralUnit__legendItem p {
    font-weight: 400;
    font-size: 17px;
    line-height: 120%;
    letter-spacing: -0.68px
}

html[data-page=statistics] .centralUnit__legendItem p {
    font-weight: 400;
    font-size: 17px;
    line-height: 120%;
    letter-spacing: -0.68px
}

html[data-page=statistics] .centralUnit__legendItem p {
    font-weight: 400;
    font-size: 17px;
    line-height: 120%;
    letter-spacing: -0.68px
}

html[data-page=statistics] .centralUnit__legendItem p {
    font-weight: 400;
    font-size: 17px;
    line-height: 120%;
    letter-spacing: -0.68px
}

html[data-page=statistics] .centralUnit__graphContainer {
    position: relative;
}

html[data-page=statistics] .centralUnit__graphContainer .c-scrollIndicator {
    display: block !important
}

html[data-page=statistics] .centralUnit__graphWrapper {
    overflow-x: auto;
    cursor: default;
    scrollbar-width: none;
    -ms-overflow-style: none
}

html[data-page=statistics] .centralUnit__graphWrapper::-webkit-scrollbar {
    display: none
}

@media(max-width: 1023.98px) {
    html[data-page=statistics] .centralUnit__graphWrapper {
        padding: 0 20px 0;
        margin-left: calc(50% - var(--viewportWidth) / 2);
        width: var(--viewportWidth);
        cursor: grab;
    }

    html[data-page=statistics] .centralUnit__graphWrapper.active {
        cursor: grabbing;
    }
}

html[data-page=statistics] .centralUnit__graph {
    display: flex;
    width: 100%;
    height: 500px;
    padding: 0 10px;
    justify-content: flex-start;
    display: flex;
    gap: 30px
}

@media(max-width: 1023.98px) {
    html[data-page=statistics] .centralUnit__graph {
        width: auto;
        display: inline-flex;
        height: 440px;
        padding: 0 0;
    }
}

html[data-page=statistics] .centralUnit__legend {
    display: none;
    margin-top: 24px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
}

html[data-page=statistics] .centralUnit__legendColor {
    width: 15px;
    height: 15px;
    border-radius: 2px;
    background-color: #F26727;
    flex-shrink: 0;
}

html[data-page=statistics] .centralUnit__legendColor.-orange {
    background-color: #F26727;
}

html[data-page=statistics] .centralUnit__legendColor.-blue {
    background-color: #2877FE;
}

html[data-page=statistics] .centralUnit__legendItem {
    display: flex;
    align-items: center;
    gap: 10px;
}

html[data-page=statistics] .centralUnit__legendItem p {
    white-space: nowrap;
    color: #1E1E1C;
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: -0.6px;
    margin: 0;
}

html[data-page=statistics] .centralUnit__legendItem p span {
    color: #828282;
}

html[data-page=statistics] .centralUnit__group {
    display: flex;
    flex-direction: column;
    gap: 10px
}

@media(max-width: 1023.98px) {
    html[data-page=statistics] .centralUnit__group {
        gap: 15px
    }
}

html[data-page=statistics] .centralUnit__groupLabel {
    color: #828282;
    text-align: center;
    white-space: nowrap;
    text-transform: capitalize
}

html[data-page=statistics] .centralUnit__groupInner {
    flex: 1;
    display: flex;
    gap: 10px
}

html[data-page=statistics] .centralUnit__groupVolume {
    position: relative;
    bottom: -1px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px
}

html[data-page=statistics] .centralUnit__groupVolumeBar {
    height: 0;
    width: 30px;
    border-radius: 2px 2px 0px 0px;
    background: #4773ff
}

@media(max-width: 1023.98px) {
    html[data-page=statistics] .centralUnit__groupVolumeBar {
        width: 20px
    }
}

html[data-page=statistics] .centralUnit__groupValue {
    position: relative;
    bottom: -1px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px
}

html[data-page=statistics] .centralUnit__groupValueBar {
    height: 0;
    width: 30px;
    border-radius: 2px 2px 0px 0px;
    background: #a9bdff
}

@media(max-width: 1023.98px) {
    html[data-page=statistics] .centralUnit__groupValueBar {
        width: 20px
    }
}

html[data-page=statistics] .centralUnit__group:first-child .centralUnit__groupInner::after {
    display: none
}

html[data-page=statistics] .centralUnit__groupInner {
    border-bottom: 1px solid #dadada;
    position: relative
}

html[data-page=statistics] .centralUnit__groupInner::before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: -30px;
    width: 60px;
    height: 1px;
    background-color: #dadada
}

@media(min-width: 1024px) {
    html[data-page=statistics] #centralUnit .section__header {
        justify-content: center;
    }
}

@media(min-width: 1024px) {
    html[data-page=statistics] #centralUnit .section__subheading {
        text-align: center;
    }
}

html[data-page=statistics] #centralUnit .section__subheading {
    margin-top: 15px;
    text-align: center;
    padding-top: 0;
    border-top: none
}

@media(max-width: 1023.98px) {
    html[data-page=statistics] .section.centralUnit .section__subheading {
        margin-top: 10px
    }
}

html[data-page=statistics] #centralUnit .section__graph {
    margin-top: 60px;
}

@media(max-width: 1023.98px) {
    html[data-page=statistics] #centralUnit .section__graph {
        margin-top: 0px;
    }
}

html[data-page=statistics] #centralUnit .section__footer {
    margin-top: 60px;
}

html[data-page=statistics] #centralUnit .section__filterBar {
    margin-top: 40px;
}

@media(max-width: 1023.98px) {
    html[data-page=statistics] #centralUnit .section__filterBar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin-top: 20px;
        position: relative !important;
        z-index: 50 !important;
    }

    html[data-page=statistics] #centralUnit .section__filterDropdowns {
        display: flex !important;
        width: auto !important;
        margin-left: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        flex-shrink: 0;
    }

    html[data-page=statistics] #centralUnit .section__exportWrapper {
        position: static !important;
        margin-left: auto !important;
        margin-top: 0 !important;
        flex-shrink: 0;
        width: auto !important;
    }

    html[data-page=statistics] #centralUnit .section__filterDropdowns + .c-exportBtn,
    html[data-page=statistics] #centralUnit .c-exportBtn {
        margin-top: 0 !important;
    }

    html[data-page=statistics] #centralUnit .section__filterDivider {
        display: none !important;
    }

    /* Export sits at the right end of the row: open under it, capped at 425px on tablets */
    html[data-page=statistics] #centralUnit .c-exportDropdown {
        left: auto !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 425px !important;
    }
}

/* Central Unit Custom Pure HTML/CSS Graph & Tooltip Styles */
.c-cuTooltip {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 242px;
    width: fit-content;
    padding: 20px;
    gap: 10px;
    border-radius: 10px;
    background: #F3F3F3;
    box-shadow: none;
    border: none;
    pointer-events: none;
    z-index: 20;
    transform: translate(-50%, -100%);
    margin-top: -14px;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    
}

.c-cuTooltip__caret {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #F3F3F3;
    border: none;
}

/* Tooltip Month & Year Header */
.c-cuTooltip__header {
    color: #828282;
    font-size: 13px;
    font-weight: 400;
    line-height: 110%;
    letter-spacing: -0.52px;
    margin: 0;
}

/* Tooltip Rows & Baseline Typography (Bodycopy/15) */
.c-cuTooltip__row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    font-size: 15px;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: -0.6px;
    margin: 0;
}

.c-cuTooltip__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.c-cuTooltip__dot.-blue {
    background: #3B82F6;
}

.c-cuTooltip__dot.-orange {
    background: #FF553F;
}

.c-cuTooltip__label {
    color: #828282;
    width: 58px;
    flex-shrink: 0;
}

.c-cuTooltip__val {
    color: #1E1E1C;
    flex: 1;
}

.c-cuGraphPure {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    position: relative;
    margin: 0 auto;
}

.c-cuGraphPure__leftAxis,
.c-cuGraphPure__rightAxis {
    display: flex;
    align-items: center;
    height: 350px;
}

.c-cuGraphPure__leftAxis {
    margin-right: 14px;
}

@media (max-width: 1023.98px) {
    .c-cuGraphPure__leftAxis {
        margin-right: 6px;
    }
}

.c-cuGraphPure__rightAxis {
    margin-left: 14px;
}

@media (max-width: 1023.98px) {
    .c-cuGraphPure__rightAxis {
        margin-left: 6px;
    }
}

.c-cuGraphPure__vTitleContainer {
    position: relative;
    width: 24px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.c-cuGraphPure__vTitleContainer.-left {
    margin-right: 14px;
}

.c-cuGraphPure__vTitleContainer.-right {
    margin-left: 14px;
}

.c-cuGraphPure__vTitle {
    position: absolute;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--Text-Secondary, #484848);
}

.c-cuGraphPure__vTitleContainer.-left .c-cuGraphPure__vTitle {
    transform: rotate(-90deg);
}

.c-cuGraphPure__vTitleContainer.-right .c-cuGraphPure__vTitle {
    transform: rotate(-90deg);
}

.c-cuGraphPure__vTitle .u-unit {
    color: #828282;
}

.c-cuGraphPure__icon {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}

.c-cuGraphPure__icon.-orange {
    background: #F26727;
}

.c-cuGraphPure__icon.-blue {
    background: #2877FE;
}

.c-cuGraphPure__ticks {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 350px;
}

.c-cuGraphPure__tick {
    color: var(--Text-Secondary, #484848);
    text-align: right;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
    letter-spacing: -0.52px;
    white-space: nowrap;
}

.c-cuGraphPure__rightAxis .c-cuGraphPure__tick {
    text-align: left;
}

.c-cuGraphPure__canvas {
    position: relative;
}

.c-cuGraphPure__barsViewport {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 350px;
    width: 100%;
    z-index: 1;
    
    border-left: 1px dashed #dadada;
    border-right: 1px dashed #dadada;
    border-bottom: 1px dashed #dadada;
}

.c-cuGraphPure__barCol {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    z-index: 1;
}

.c-cuGraphPure__bar {
    width: 100%;
    background: linear-gradient(180deg, #4773FF 0%, rgba(169, 189, 255, 0.55) 100%);
    border-radius: 6px 6px 0 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.c-cuGraphPure__barCol:hover .c-cuGraphPure__bar {
    opacity: 0.85;
}

.c-cuGraphPure__svgOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
}

.c-cuGraphPure__nodeDot {
    pointer-events: auto;
}

.c-cuGraphPure__xAxisRow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 12px;
    
}

.c-cuGraphPure__xLabel {
    color: var(--Text-Secondary, #484848);
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
    letter-spacing: -0.52px;
    
    white-space: pre-line;
}

html[data-page=statistics] #centralUnit .centralUnit__graphContainer {
    position: relative;
    width: 100%;
}

@media (min-width: 1024px) {
    html[data-page=statistics] #centralUnit .centralUnit__graphWrapper,
    html[data-page=statistics] #centralUnit .centralUnit__graphWrapper.active {
        overflow: visible !important;
        width: 100% !important;
        cursor: default !important;
    }

    html[data-page=statistics] #centralUnit .c-scrollIndicator {
        display: none !important;
    }
}

html[data-page=statistics] #centralUnit .c-scrollIndicator {
    position: relative;
    margin: 20px auto 0;
    width: 180px;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

html[data-page=statistics] .centralUnit__graph {
    display: block;
    width: 100%;
    height: fit-content;
    position: relative;
}

@media (max-width: 1023.98px) {
    html[data-page=statistics] #centralUnit .section__heading,
    html[data-page=statistics] #centralUnit .section__subheading {
        text-align: left !important;
    }

    .c-cuGraphPure__vTitleContainer {
        display: none !important;
    }

    html[data-page=statistics] .centralUnit__legend {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 10px;
        margin-top: 20px;
    }

    html[data-page=statistics] #centralUnit .centralUnit__graphWrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-left: calc(50% - var(--viewportWidth, 100vw) / 2);
        width: var(--viewportWidth, 100vw) !important;
        padding: 0 20px;

    }

    html[data-page=statistics] #centralUnit .centralUnit__graphWrapper::-webkit-scrollbar {
        display: none;
    }

    html[data-page=statistics] .c-cuGraphPure {
        justify-content: flex-start !important;
        width: max-content !important;
        padding-right: 20px;
    }
}
