/* Statistics - Billers donut graph, legend and category shades */

html[data-page=statistics] .c-donutGraph__tooltip {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    min-width: 120px;
    padding: 15px 28px 10px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #ffb5ab;
    background: #fff;
    box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    opacity: 0
}

html[data-page=statistics] .c-donutGraph__tooltip img {
    width: 30px;
    height: 30px
}

html[data-page=statistics] .c-donutGraph__tooltip img+.c-donutGraph__tooltipText {
    margin-top: 5px
}

html[data-page=statistics] .c-donutGraph__tooltipText {
    display: flex;
    flex-direction: column;
    align-items: center
}

html[data-page=statistics] .c-donutGraph__tooltipText span {
    color: #5f5f5f
}

html[data-page=statistics] .c-donutGraph .group {
    cursor: pointer
}

html[data-page=statistics] .c-donutGraph .group text {
    pointer-events: none
}

html[data-page=statistics] .billers__graphWrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 60px auto 0px auto;
    overflow: visible;
}

html[data-page=statistics] .billers__graphWrapper .billers__graph,
html[data-page=statistics] .billers__graphWrapper .c-donutGraph,
html[data-page=statistics] .billers .section__graph {
    margin-top: 0 !important;
}

html[data-page=statistics] .billers__graphTotal,
html[data-page=statistics] .billers__legendList,
html[data-page=statistics] .billers__graphTooltip,
html[data-page=statistics] .c-donutGraph__tooltip {
    display: none !important;
}

html[data-page=statistics] .c-donutGraph {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
    height: auto;
}

html[data-page=statistics] .c-donutGraph svg {
    width: 100%;
    height: auto;
    max-width: 960px;
    display: block;
    overflow: visible;
}

html[data-page=statistics] .c-donutGraph__arc {
    cursor: default;
}

html[data-page=statistics] .c-donutGraph__callout {
    cursor: default;
}

html[data-page=statistics] .c-donutGraph__calloutLine {
    pointer-events: none;
    stroke: #000000;
    stroke-width: 0.7px;
    fill: none;
}

html[data-page=statistics] .c-donutGraph__calloutDot {
    pointer-events: none;
    fill: #BB1E09;
}

html[data-page=statistics] .c-donutGraph__calloutLabel,
html[data-page=statistics] .c-donutGraph__calloutLabel tspan {
    pointer-events: none;
    user-select: none;
    font-family: Inter, sans-serif;
    font-size: 15px;
    letter-spacing: -0.6px;
}

html[data-page=statistics] .c-donutGraph__calloutLabel .label-pct {
    font-weight: 500;
    fill: #000000;
}

html[data-page=statistics] .c-donutGraph__calloutLabel .label-name {
    font-weight: 400;
    fill: #000000;
}

html[data-page=statistics] .c-donutGraph__calloutLabel .label-val {
    font-weight: 400;
    fill: #5f5f5f;
}

html[data-page=statistics] .c-donutGraph__pct {
    pointer-events: none;
    user-select: none;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: -0.6px;
    fill: #000000;
}

html[data-page=statistics] .c-donutGraph__totalText {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 40px;
    letter-spacing: -2px;
    fill: #000000;
}

html[data-page=statistics] .c-donutGraph__periodText {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: -0.68px;
    fill: #000000;
}

@media (max-width: 767px) {
    html[data-page=statistics] .billers__graphWrapper {
        margin: 20px auto 0px auto;
    }

    html[data-page=statistics] .c-donutGraph,
    html[data-page=statistics] .c-donutGraph svg {
        max-width: 400px;
    }

    html[data-page=statistics] .c-donutGraph__calloutLabel,
    html[data-page=statistics] .c-donutGraph__calloutLabel tspan {
        font-size: 8px !important;
        letter-spacing: -0.32px !important;
    }

    html[data-page=statistics] .c-donutGraph__pct {
        font-size: 6px !important;
        letter-spacing: -0.24px !important;
    }

    html[data-page=statistics] .c-donutGraph__calloutLine {
        stroke-width: 0.5px !important;
    }

    html[data-page=statistics] .c-donutGraph__totalText {
        font-size: 13.68px !important;
        letter-spacing: -0.68px !important;
    }

    html[data-page=statistics] .c-donutGraph__periodText {
        font-size: 5.81px !important;
        letter-spacing: -0.23px !important;
    }
}

html[data-page=statistics] .billers__graph+.section__footer {
    margin-top: 40px;
}

/* billers legend / donut shades (was an inline <style> in live statistics.php) */
html[data-page=statistics] .-shade1 {
    background-color: #FF553F;
}

html[data-page=statistics] .-shade2 {
    background-color: #FF6D59;
}

html[data-page=statistics] .-shade3 {
    background-color: #FF8272;
}

html[data-page=statistics] .-shade4 {
    background-color: #FC9A8D;
}

html[data-page=statistics] .-shade5 {
    background-color: #FFAFA5;
}

html[data-page=statistics] .-shade6 {
    background-color: #FFC2BA;
}

html[data-page=statistics] .-shade7 {
    background-color: #FFD0CA;
}

html[data-page=statistics] .-shade8 {
    background-color: #FFDAD6;
}

html[data-page=statistics] .-shade9 {
    background-color: #FFEBE9;
}

html[data-page=statistics] .-shade10 {
    background-color: #FFF3F1;
}

html[data-page=statistics] .-shade11 {
    background-color: #ffafa5d1;
}

html[data-page=statistics] .-shade12 {
    background-color: #ffc2baa1;
}

html[data-page=statistics] .-shade13 {
    background-color: #FFF8F6;
}

/* Biller graph already shows month & year in center of d3 donut chart: hide timeline date header */
#billers .c-timeline__header,
.billers .c-timeline__header,
#billers .c-timeline__currentDate,
.billers .c-timeline__currentDate {
    display: none !important;
}
