@import '~@equitysim/react-uikit/dist/styles/styleguide';

$padding: v-space(4);
%row {
    height: $padding * 2;
    border: none;
    text-align: center;
}

.c-company-financials {
    $mobile-width: h-space(6);
    &__heading {
        margin: v-space(4) 0 v-space(2) 0;
        @extend %heading-md;
    }
    &__section {
        @media screen and (max-width: $screen-medium) {
            overflow-x: scroll;
        }

        @media screen and (min-width: $screen-large) {
            margin: v-space(2) $padding * 2 $padding * 2 $padding * 2;
        }
    }
    &__tabs {
        min-width: $mobile-width;
    }

    &__table {
        width: 100%;
        margin-top: v-space(2) + 0.6rem;
        border: none;
        border-collapse: collapse;
        column-rule-style: none;
        min-width: $mobile-width;
    }

    &__td td {
        @extend %row;
        border-bottom: solid 0.1rem $grey-92;
        background-color: rgba(247, 247, 247, 0.5);

        &:first-child {
            color: $grey-40;
            padding-left: $padding;
            font-weight: $font-weight-bold;
            text-align: left;
        }

        &:not(:first-child) {
            color: $grey-60;
            width: 20%;
            max-width: v-space(20);
            font-weight: $font-weight-light;
            text-align: right;
            padding-right: v-space(6);
        }
    }
    &__td--yoy {
        text-align: left !important;
        padding-left: v-space(6);
    }
    &__th th {
        @extend %row;
        color: $grey-40;
        font-weight: $font-weight-bold;
        border-bottom: solid 0.1rem $grey-85;
    }

    &__blank-state {
        width: h-space(6);
        margin: v-space(7) auto v-space(2) auto;
        text-align: center;
        line-height: v-space(3);
    }
}
