/* Склад / компенсация — ровный пошаговый блок */

.wh-page {
    /* как у номенклатуры: отступы берёт .panel */
    background: transparent;
    min-height: 0;
    box-sizing: border-box;
    padding-bottom: 24px;
}

.wh-page.panel {
    background: var(--ozon-white, #fff);
}

.wh-page-head {
    margin-bottom: 14px;
}

.wh-page-head .catalog-toolbar-title h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ozon-navy, #001a34);
}

.wh-page-head .section-hint {
    margin: 0;
    max-width: 720px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ozon-gray);
}

.wh-page-head .section-hint b {
    font-weight: 600;
    color: var(--ozon-navy, #001a34);
}

.wh-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.wh-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--ozon-border);
    border-radius: 12px;
}

.wh-step-num {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--ozon-blue-light);
    color: var(--ozon-blue);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wh-step-body {
    min-width: 0;
}

.wh-step-body h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: var(--ozon-navy);
}

.wh-step-lead {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--ozon-gray);
    line-height: 1.4;
}

.wh-step-lead b {
    color: var(--ozon-navy);
    font-weight: 600;
}

.wh-step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wh-page .btn {
    min-height: 36px;
    min-width: 168px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wh-page .btn.btn-primary {
    background: var(--ozon-blue);
    color: #fff;
    border: none;
}

.wh-page .btn.btn-primary:hover:not(:disabled) {
    background: var(--ozon-blue-dark);
}

.wh-page .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.wh-page .btn.wh-btn-outline {
    background: #fff;
    color: var(--ozon-navy);
    border: 1px solid var(--ozon-border);
}

.wh-page .btn.wh-btn-outline:hover:not(:disabled) {
    background: var(--ozon-blue-hover);
    border-color: #c5d7ef;
    color: var(--ozon-navy);
}

.wh-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 14px;
    margin-bottom: 12px;
    align-items: end;
}

.wh-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.wh-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ozon-gray);
}

.wh-field .select-input,
.wh-field input[type="date"],
.wh-field input[type="number"],
.wh-field input[type="text"],
.wh-field input[type="file"],
.wh-field select {
    width: 100%;
    min-width: 0;
}

.wh-field-wide {
    grid-column: 1 / -1;
}

.wh-meta {
    margin-top: 10px;
    font-size: 13px;
    color: var(--ozon-gray);
    line-height: 1.4;
}

.wh-warehouses {
    margin-top: 10px;
    max-height: 120px;
    overflow: auto;
    font-size: 13px;
    color: var(--ozon-gray);
    border-top: 1px dashed var(--ozon-border);
    padding-top: 8px;
}

.wh-warehouses:empty {
    display: none;
}

.wh-totals {
    margin-top: 12px;
    padding: 12px 14px;
    background: var(--ozon-blue-light);
    border-radius: 10px;
    font-size: 13px;
    color: var(--ozon-navy);
    line-height: 1.45;
}

.wh-totals:empty {
    display: none;
}

.wh-section {
    margin-top: 8px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--ozon-border);
    border-radius: 12px;
}

.wh-section h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: var(--ozon-navy);
}

.wh-table-wrap {
    margin-top: 16px;
    overflow: auto;
    border: 1px solid var(--ozon-border);
    border-radius: 12px;
    background: #fff;
}

.wh-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.wh-table-wrap th,
.wh-table-wrap td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--ozon-border);
    white-space: nowrap;
}

.wh-table-wrap th {
    background: var(--brand-bar-bg);
    font-weight: 600;
    color: var(--ozon-navy);
    position: sticky;
    top: 0;
}

.wh-table-wrap tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 700px) {
    .wh-step {
        grid-template-columns: 36px 1fr;
        gap: 10px;
        padding: 14px;
    }

    .wh-step-num {
        width: 32px;
        height: 32px;
        font-size: 14px;
        border-radius: 8px;
    }
}
