/* Капитализация РФРП — CapitalizationEdit / CapitalizationView */

.content-white {
    padding-bottom: 80px;
    background-color: #FFF;
}

/* Хлебные крошки + ссылки/кнопки справа */
.cap-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    row-gap: 10px;
}
.cap-breadcrumbs__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
    row-gap: 10px;
}
/* перебиваем глобальное .button { min-width: 30% } из main.css (max-width: 1199.98px) */
.cap-breadcrumbs button {
    min-width: 0;
}
.cap-template-link {
    color: var(--main);
}

/* Фильтры */
.cap-filters-container {
    padding-bottom: 20px;
}
.cap-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    row-gap: 10px;
}
.cap-filters__body {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: calc(100% - 380px);
    gap: 12px;
    row-gap: 10px;
}
/* поля фильтров: 265px на десктопе, сжимаются/переносятся при нехватке места, а не уезжают */
.cap-filters__body .field--select {
    min-width: 0;
    flex: 0 1 265px;
}
/* перебиваем глобальное .button { min-width: 30% } из main.css (max-width: 1199.98px) */
.cap-filters button {
    min-width: 0;
}
.button--apply {
    background: #41BC9A;
    border-color: #41BC9A;
}
.button--apply:hover {
    color: #41BC9A;
    background: var(--white);
}

/* Статус версии */
.cap-status {
    display: flex;
    align-items: center;
    max-width: 350px;
    gap: 10px;
}
@media (max-width: 767.98px) {
    .container {
        padding: 0 20px;
    }
    .cap-filters__body {
        width: 100%;
    }
    .cap-filters__body .field--select {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .cap-status {
        max-width: 100%;
    }
}
.cap-status__text {
    display: flex;
    flex-direction: column;
    color: #0A1729;
    font-size: 14px;
}
.cap-status__note {
    font-size: 10px;
}
.cap-history-btn {
    width: 24px;
    height: 24px;
    border: none;
    cursor: pointer;
    background: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1729' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v5h5'/%3E%3Cpath d='M3.05 13A9 9 0 1 0 6 5.3L3 8'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Таблица */
.cap-dates-row td {
    font-weight: 700;
}
.cap-section-gap td {
    padding-top: 28px;
}
.cap-input {
    height: 32px;
    max-width: 160px;
    padding: 6px 10px;
}
.cap-input--total {
    background: #F2F4F7;
}
/* убираем отступ вложенных уровней (как в макете) */
.content-white .capitalisation .table-first-level td:first-child,
.content-white .capitalisation .table-second-level td:first-child {
    padding-left: 0;
}

/* Изменённое значение (View): синяя рамка как в макете */
.cap-value-changed {
    display: inline-block;
    border: 1px solid var(--main);
    border-radius: 4px;
    padding: 4px 10px;
}

/* Модалки */
.cap-modal-title--center {
    text-align: center;
}
.cap-required {
    color: var(--red-text);
}
.cap-modal-comment {
    width: 100%;
    min-height: 90px;
    padding: 10px;
    resize: vertical;
}
.cap-modal-comment[readonly] {
    color: #6B7280;
}
.cap-modal-comment::placeholder {
    text-align: center;
    color: #6C6D70;
}
.cap-modal-file-label {
    margin-top: 16px;
}
.cap-modal-note {
    margin-top: 8px;
    color: #6B7280;
    font-size: 12px;
}
.cap-modal-version {
    margin-top: 16px;
    font-weight: 700;
    color: #0A1729;
}
.cap-modal-version a {
    color: var(--main);
    font-weight: 400;
}

/* Фиксированная нижняя панель с кнопками */
.cap-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 160;
    padding: 6px 0;
}
.cap-bottom-bar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}
/* перебиваем глобальное .button { min-width: 30% } из main.css (max-width: 1199.98px) */
.cap-bottom-bar button {
    min-width: 0;
}
@media (max-width: 767.98px) {
    .cap-bottom-bar {
        padding: 8px 0;
        background: var(--white);
        border-top: 1px solid #E0E0E0;
    }
    .cap-bottom-bar__inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .cap-bottom-bar button {
        flex: 1 1 auto;
        min-width: calc(50% - 8px);
        padding: 0 8px;
        font-size: 12px;
    }
}
.button--accept {
    background: #41BC9A;
    border-color: #41BC9A;
}
.button--accept:hover {
    color: #41BC9A;
    background: var(--white);
}
.button--reject {
    background: var(--red-text);
    border-color: var(--red-text);
}
.button--reject:hover {
    color: var(--red-text);
    background: var(--white);
}
