.stats__filters {
    display: flex;
    flex-direction: column;
    row-gap: 20px
}

.stats__profit {
    margin-top: 24px
}

.stats__details {
    background: #fff;
    margin-top: 24px;
    padding: 15px 15px 40px
}

.stats__table {
    width: 100%
}

.stats__table tbody tr:nth-child(2n) {
    background: #f2f5fc
}

.stats__table td,
.stats__table th {
    color: #262626;
    font-size: .6875rem;
    height: 40px;
    line-height: 1.2;
    vertical-align: middle
}

.stats__table td:not(.stats__table-divider-cell),
.stats__table th:not(.stats__table-divider-cell) {
    padding: 8px
}

.stats__table th {
    font-weight: 600
}

.stats__table-divider {
    display: block;
    padding: 10px 0 18px;
    width: 100%
}

.stats__table-divider:before {
    background: #e9edf4;
    content: "";
    display: block;
    height: 1px;
    width: 100%
}

.profit {
    background: #fff;
    padding: 34px 20px 95px
}

.profit__title {
    color: #262626;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.125;
    margin-bottom: 20px;
    text-align: center
}

.profit__label {
    align-items: center;
    color: #9fa8bb;
    display: flex;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.2857142857;
    margin-bottom: 10px
}

.profit__label:before {
    background: #2cd852;
    content: "";
    display: block;
    height: 13px;
    margin-right: 9px;
    width: 13px
}

.profit__header {
    display: flex;
    flex-direction: column-reverse;
    row-gap: 20px
}

.profit__filters {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin-left: auto
}

.profit__filters-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    color: #262626;
    display: block;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.8571428571;
    padding: 0 12px;
    transition-duration: .15s;
    transition-property: color, border-color, background;
    transition-timing-function: ease-in-out;
    white-space: nowrap
}

.profit__filters-btn:hover,
.profit__filters-btn_active {
    color: #01c102
}

.profit__filters-btn_active {
    background: #eefdee;
    border-color: #8ad48a
}

.profit-chart {
    align-items: flex-end;
    -moz-column-gap: 26px;
    column-gap: 26px;
    display: flex
}

.profit-chart__content {
    flex-basis: 100%
}

.profit-chart__label {
    color: #9fa8bc;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.2857142857;
    position: relative;
    top: 26px
}

.chart {
    grid-column-gap: 25px;
    align-items: end;
    border-bottom: 1px solid #7f7f7f;
    border-left: 1px solid #7f7f7f;
    display: grid;
    grid-auto-flow: column;
    height: 288px;
    padding: 48px 13px 0
}

.chart__item {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative
}

.chart__item:before {
    background: #2cd852;
    content: "";
    display: block;
    height: 100%;
    width: 100%
}

.chart__value {
    font-size: .8125rem;
    top: -17px
}

.chart__label,
.chart__value {
    color: #262626;
    left: 50%;
    line-height: 1.2;
    position: absolute;
    text-align: center;
    transform: translateX(-50%)
}

.chart__label {
    font-size: .75rem;
    margin-top: 10px;
    top: 100%
}

@media only screen and (min-width:36em) {
    .stats__filters {
        grid-column-gap: 20px;
        display: grid;
        grid-template-columns: repeat(2, 1fr)
    }

    .stats__table td,
    .stats__table th {
        font-size: .875rem;
        line-height: 1.2
    }

    .stats__table td:not(.stats__table-divider-cell),
    .stats__table th:not(.stats__table-divider-cell) {
        padding: 8px 22px
    }
}

@media only screen and (min-width:48em) {
    .stats__table-divider {
        padding: 20px 0 28px
    }

    .profit__label {
        font-size: .875rem;
        line-height: 1.2857142857;
        margin-bottom: 0
    }

    .profit__header {
        align-items: center;
        -moz-column-gap: 20px;
        column-gap: 20px;
        display: flex;
        flex-direction: row
    }

    .profit-chart__label {
        font-size: .875rem;
        line-height: 1.2857142857
    }
}

@media only screen and (min-width:62em) {
    .profit__title {
        margin-bottom: 0
    }
}

@media only screen and (min-width:75em) {
    .stats__filters {
        grid-column-gap: 38px
    }

    .stats__details {
        padding: 15px 42px 80px
    }

    .profit {
        padding: 34px 82px 95px 94px
    }
}

@media only screen and (max-width:47.9875em) and (min-width:36em) {
    .chart__item:nth-child(-n+5) {
        display: none
    }
}

@media only screen and (max-width:35.9875em) {
    .chart__item:nth-child(-n+7) {
        display: none
    }
}