/* ========================================================================
   calc_summary.css — Подписи в заголовках шагов и «Зафиксированные стены»
   ======================================================================== */

/* --- ПОДПИСИ В ЗАГОЛОВКАХ ШАГОВ --- */
.step-value-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 2px;
    line-height: 1.3;
}

/* --- БЛОК «РАСЧЁТ ДЛЯ:» (breadcrumbs) --- */
.calc-breadcrumbs-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 12px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
}

.calc-breadcrumbs__title {
    color: #64748b;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.calc-breadcrumbs__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-breadcrumbs__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    min-width: 0;
}

.calc-breadcrumbs__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.calc-breadcrumbs__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Миниатюры в breadcrumbs */
.calc-breadcrumbs__thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.calc-breadcrumbs__label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.calc-breadcrumbs__value {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.calc-breadcrumbs__btn {
    background: transparent;
    border: none;
    color: #e67e22;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 4px;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}

.calc-breadcrumbs__btn:hover {
    color: #d35400;
    text-decoration: underline;
}

/* --- БЛОК «ЗАФИКСИРОВАННЫЕ СТЕНЫ» --- */
.fixed-walls-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.fixed-walls-box__title {
    font-size: 11px;
    font-weight: 700;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 0 8px 0;
}

.fixed-walls-box__table {
    width: 100%;
    border-collapse: collapse;
}

.fixed-walls-box__table th {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-align: left;
    padding: 3px 6px;
    border-bottom: 1px solid #bbf7d0;
}

.fixed-walls-box__table td {
    font-size: 12px;
    color: #1e293b;
    padding: 3px 6px;
    border-bottom: 1px solid #f0fdf4;
}

.fixed-walls-box__table tr:last-child td {
    border-bottom: none;
}

.fixed-walls-box__table td:last-child {
    text-align: right;
    font-weight: 600;
}

.fixed-walls-box__empty {
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    padding: 6px 0;
}

/* ========================================================================
    INLINE-РЕДАКТИРОВАНИЕ: блок «Параметры сохранены»
    ======================================================================== */

/* Контейнер-список — колонка карточек */
.slab-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* Каждая карточка параметра — точная копия .calc-breadcrumbs__item */
.slab-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}

.slab-summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Левая часть: название + значение в колонку */
.slab-summary-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Название параметра — сверху мелким серым */
.step5-summary-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Значение параметра — снизу жирным тёмным */
.step5-summary-value {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Кнопка "Изменить" в строках параметров */
.btn-inline-edit {
    background: transparent;
    border: none;
    color: #e67e22;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-inline-edit:hover {
    color: #d35400;
    background: #fef3c7;
    text-decoration: none;
}

/* Режим редактирования: поле ввода + кнопка ОК */
.inline-edit-field {
    width: 100%;
    min-width: 60px;
    padding: 3px 6px;
    font-size: 12px;
    border: 1px solid #e67e22;
    border-radius: 3px;
    background: #fffbeb;
    box-sizing: border-box;
}

.btn-inline-ok {
    background: #e67e22;
    border: none;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 4px;
    transition: background 0.15s;
}

.btn-inline-ok:hover {
    background: #d35400;
}
