@import "@equitysim/react-uikit/dist/styles/styleguide";

.c-portfolio-overview-graph {
    // 0.3rem compensating for Plotly graph
    padding: v-space(3) var(--container-padding-h) v-space(3) + 0.3rem var(--container-padding-h);
    position: relative;
    display: block;

    &__statistics {
        display: flex;
        justify-content: space-around;

        @media screen and (min-width: 840px) {
            min-height: v-space(38);
            flex-direction: column;
            justify-content: flex-start;
        }
    }

    &__heading {
        @extend %heading-md;
        margin: 0;
        padding: v-space(5) var(--container-padding-h) 0 var(--container-padding-h);
    }

    &__graph {
        height: v-space(48);
        width: 100%;
        &--blank {
            filter: blur(8px);
        }
    }

    &__blank-state {
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 100%;
        z-index: 10;

        background-color: rgba($white, .9); // Fallback if can't apply blur
        @supports (filter: blur()) {
            background-color: rgba($white, .25);
        }
    }
    &__blank-state-message {
        font-size: 1.4rem;
        line-height: v-space(3);
        border-radius: 0.2rem;
        width: v-space(34);
        padding: v-space(2) v-space(3);
        text-align: center;
        background-color: rgba($grey-10, 0.4);
        color: $white;
    }
}

.c-portfolio-overview-statistic {
    margin-bottom: v-space(4);
    &__label {
        @extend %caption;
        font-weight: $font-weight-bold;
        color: $grey-50;
    }

    &__amount {
        @extend %number-value-md;
    }
}
