/* ============================================
   Conclusion Sidebar Layout
   Стили для sidebar-навигации заключений экспертизы
   ============================================ */

.concl-layout {
    display: flex;
    gap: 0;
    min-height: 500px;
    border: 1px solid #d6dce5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* --- Sidebar --- */
.concl-sidebar {
    width: 280px;
    min-width: 280px;
    background: #f5f7fa;
    border-right: 1px solid #d6dce5;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.concl-sidebar__title {
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: #1e3a5f;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.concl-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    flex: 1;
    overflow-y: auto;
}

.concl-sidebar__item {
    border-bottom: 1px solid #d6dce5;
}

.concl-sidebar__item:last-child {
    border-bottom: none;
}

.concl-sidebar__link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;
    gap: 10px;
}

.concl-sidebar__link:hover {
    background: #eef2f7;
    color: #1f2937;
    text-decoration: none;
}

.concl-sidebar__link.is-active {
    background: #1e3a5f;
    color: #fff;
    font-weight: 600;
}

.concl-sidebar__link.is-active .concl-sidebar__dot {
    background: #fff;
    border-color: #fff;
}

/* Индикатор заполнения */
.concl-sidebar__dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    border: 2px solid #aab4c2;
    background: transparent;
    transition: all 0.2s ease;
}

.concl-sidebar__dot.is-filled {
    background: #1e3a5f;
    border-color: #1e3a5f;
}

.concl-sidebar__num {
    font-weight: 700;
    min-width: 30px;
    color: inherit;
}

.concl-sidebar__text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Счетчик прогресса внизу sidebar */
.concl-sidebar__progress {
    padding: 14px 18px;
    border-top: 1px solid #d6dce5;
    background: #eef2f7;
    font-size: 12px;
    color: #4b5563;
    text-align: center;
    font-weight: 600;
}

.concl-sidebar__progress-bar {
    height: 4px;
    background: #d6dce5;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.concl-sidebar__progress-fill {
    height: 100%;
    background: #1e3a5f;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* --- Content Area --- */
.concl-content {
    flex: 1;
    min-width: 0;
    padding: 24px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

/* Секция контента */
.concl-section {
    display: none;
}

.concl-section.is-active {
    display: block;
}

/* Навигация Назад/Далее */
.concl-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #d6dce5;
}

.concl-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #f5f7fa;
    border: 1px solid #d6dce5;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.concl-nav__btn:hover {
    background: #eef2f7;
    border-color: #bac4d2;
    color: #1f2937;
    text-decoration: none;
}

.concl-nav__btn.is-primary {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #fff;
}

.concl-nav__btn.is-primary:hover {
    background: #274a74;
    border-color: #274a74;
}

.concl-nav__btn:disabled,
.concl-nav__btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.concl-nav__counter {
    font-size: 13px;
    color: #4b5563;
}

/* --- Адаптив --- */
@media (max-width: 992px) {
    .concl-layout {
        flex-direction: column;
    }

    .concl-sidebar {
        width: 100%;
        min-width: 100%;
        max-height: none;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #d6dce5;
    }

    .concl-sidebar__list {
        display: flex;
        flex-wrap: wrap;
        padding: 8px;
        gap: 4px;
    }

    .concl-sidebar__item {
        border-bottom: none;
    }

    .concl-sidebar__link {
        padding: 8px 12px;
        border-radius: 4px;
        border: 1px solid #d6dce5;
        font-size: 12px;
    }

    .concl-sidebar__link.is-active {
        border-color: #1e3a5f;
    }

    .concl-sidebar__dot {
        display: none;
    }

    .concl-content {
        max-height: none;
    }
}
