aside {
    position: sticky;
    top: 10px;
    background-color: #E5ECF0;
    border: 1px solid #E5ECF0;
    border-radius: var(--border-radius-lg);
    width: 300px;
    height: calc(100vh - var(--header-size) - var(--space-lg) * 2 - var(--footer-size) - 10px); /* 10px - отступ сайдбара снизу */
    transition: width 0.2s;
    & * {
        outline: none;
    }
    & .nav-tabs {
        gap: 10px;
        border-bottom: none;
        margin: 10px;
    }
    & .tab-pane {
        margin-right: 10px;
    }
    & .tab-content {
        height: calc(100% - 55px);
        overflow: hidden;
        overflow-y: visible;
        margin: 5px 0 5px 5px;
        padding: 5px;
    }
}
.aside_collapsed {
    width: 50px;
    & .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
}
.aside_collapsed .tab-content {
    display: none;
}
.aside_collapsed .nav-item {
    order: 1;
    & .aside__tab-icon.active {
        opacity: .5;
        color: var(--color-brand-700);
    }
    & .aside__tab-icon:hover {
        opacity: .8 !important;
    }
}
.nav-item.aside__toggle {
    margin-left: auto;
    & .aside__tab-icon {
        opacity: 1;
    }
}
.aside_collapsed .aside__toggle {
    display: none;
}
.aside__tab-icon {
    color: var(--color-brand-700);
    opacity: .5;
    padding: 0;
    border: none;
    background: inherit;
    position: relative;
    transition: opacity .2s;
    &.active {
        opacity: 1;
    }
}
.aside__tab-icon__badge {
    position: absolute;
    top: 0;
    left: 100%;
    padding: 6px;
    transform: translate(-75%, -33%);
    background: var(--bs-danger);
    border: 1px solid var(--bs-light);
    border-radius: 50%;
}
.aside-header {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    & svg {
        color: var(--color-brand-700);
    }
}
.aside-header__title {
    font-size: 18px;
    margin-left: 5px;
}
.recent-applications {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
}
.recent-applications__empty {
    color: var(--color-gray);
    padding: 20px 10px;
    text-align: center;
}

.borrower-checks-summary {
    --borrower-checks-muted: #8293a3;
    padding: 10px 16px;
    border: 1px solid #dce4ea;
    border-radius: 12px;
    background: var(--color-white);
    color: #1c3543;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}
.borrower-checks-summary__title {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}
.borrower-checks-summary__app {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--borrower-checks-muted);
    font-size: 12px;
}
.borrower-checks-summary__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.borrower-checks-summary__generate {
    width: 100%;
    min-height: 35px;
    padding: 8px;
    border-radius: var(--border-radius-md);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}
.borrower-checks-summary__groups,
.borrower-checks-summary__empty {
    margin-top: 17px;
    padding-top: 12px;
    border-top: 1px solid var(--color-neutral-100);
}
.borrower-checks-summary__group + .borrower-checks-summary__group {
    margin-top: 16px;
}
.borrower-checks-summary__group-title {
    margin: 0 0 8px;
    color: var(--borrower-checks-muted);
    font-size: 12px;
    font-weight: 400;
}
.borrower-checks-summary__result {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 27px;
    padding: 4px 0;
    cursor: help;
}
.borrower-checks-summary__result:focus-visible {
    outline: 2px solid var(--color-brand-700);
    outline-offset: 2px;
}
.borrower-checks-summary__status {
    display: inline-block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #adb5bd;
    &[data-risk="no_risk"] { background: var(--bs-success); }
    &[data-risk="medium"] { background: var(--bs-warning); }
    &[data-risk="high"] { background: var(--bs-danger); }
}
.borrower-checks-summary__label_muted {
    color: var(--borrower-checks-muted);
}
.borrower-checks-summary__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid var(--color-neutral-100);
    color: var(--borrower-checks-muted);
    font-size: 10px;
    & > span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    & .borrower-checks-summary__status {
        flex-basis: 7px;
        width: 7px;
        height: 7px;
    }
}
.borrower-checks-summary-tooltip {
    --bs-tooltip-max-width: 235px;
    --bs-tooltip-padding-x: 10px;
    --bs-tooltip-padding-y: 8px;
    --bs-tooltip-font-size: 12px;
    --bs-tooltip-bg: var(--color-neutral-800);
    --bs-tooltip-border-radius: 6px;
    --bs-tooltip-opacity: 1;
    font-family: Arial, sans-serif;
}
.borrower-checks-summary-tooltip .tooltip-inner {
    text-align: left;
}
