/* Статистика партнёрской программы (задача 85): кабинет партнёра и админка. */

.pkr-stats__switch {
    display: inline-flex;
    border: 1px solid #CFD0D2;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 0 12px;
}
.pkr-stats__btn {
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #2B2D2F;
    text-decoration: none;
    background: #fff;
    border-right: 1px solid #CFD0D2;
}
.pkr-stats__btn:last-child {
    border-right: 0;
}
.pkr-stats__btn:hover {
    background: #F5F5F6;
    color: #2B2D2F;
}
.pkr-stats__btn.is-active {
    background: #9A3020;
    color: #fff;
}
.pkr-stats__bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0 12px;
}
.pkr-stats__bar .pkr-stats__switch {
    margin: 0;
}
.pkr-stats__wrap {
    overflow-x: auto;
}
.pkr-stats__table td,
.pkr-stats__table th {
    white-space: nowrap;
    vertical-align: middle;
}
.pkr-stats__table .pkr-stats__tg {
    width: 28px;
    padding-right: 0;
}
.pkr-stats__row.is-zero td {
    color: #949599;
}
.pkr-stats__row.is-zero td strong {
    font-weight: 500;
}
.pkr-stats__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid #CFD0D2;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    color: #2B2D2F;
}
.pkr-stats__toggle:hover {
    background: #F5F5F6;
}
.pkr-stats__toggle--empty {
    border: 0;
    color: #CFD0D2;
    cursor: default;
}
.pkr-stats__chev {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg) translate(-1px, -1px);
    transition: transform .15s;
}
.pkr-stats__row.is-open .pkr-stats__chev {
    transform: rotate(45deg) translate(-1px, -1px);
}
.pkr-stats__table tr.pkr-stats__detail > td {
    background: #FBF1EE !important; /* светлый оттенок фирменного цвета, отличим от чередования строк основной таблицы */
    font-size: 13px;
    color: #4B4D50;
    border-bottom: 1px solid #F0DCD6;
}
.pkr-stats__table tr.pkr-stats__detail > td:first-child {
    box-shadow: inset 3px 0 0 #9A3020;
}
.pkr-stats__row.is-open > td {
    background: #FFF8F6 !important;
}
.pkr-stats__detail .pkr-stats__dlabel {
    padding-left: 24px;
    white-space: normal;
}
.pkr-stats--admin .pkr-stats__detail .pkr-stats__dlabel {
    white-space: nowrap;
}
.pkr-stats__total td {
    font-weight: 600;
    border-top: 2px solid #CFD0D2;
}
.pkr-stats__note {
    font-size: 12px;
    color: #949599;
    margin: 8px 0 0;
}
.pkr-stats--admin .pkr-stats__table {
    margin-top: 4px;
}
.pkr-stats--admin .pkr-stats__table th {
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
}

/* Задача 87: строки книг в детализации админки — чуть темнее строк ссылок. */
.pkr-stats--admin .pkr-stats__detail--book td {
    background: #F6E9E4 !important;
}
