/* Адресное хранение: коробки, адреса, наклейки */

.storage-page {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pos-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pos-input,
.pos-select {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #0f172a;
}

.pos-input:focus,
.pos-select:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
}

.pos-card {
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
}

.pos-table-wrap {
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    max-height: calc(100vh - 220px);
}

.pos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pos-table th,
.pos-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.pos-table thead th {
    background: #f1f5f9;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #475569;
    position: sticky;
    top: 0;
    z-index: 5;
}

.pos-table tbody tr:hover {
    background: #f8fafc;
}

.pos-btn--small {
    padding: 4px 10px;
    font-size: 12px;
}

.pos-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 13px;
}

.pos-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}

.pos-modal.hidden {
    display: none;
}

.pos-modal__body {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.pos-modal__body h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.pos-modal__body label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #334155;
}

.pos-modal__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* Артикул размазан по нескольким коробкам — подсветка количества */
.qty-cell.qty-multi {
    background: #fef3c7;
}

.other-placements {
    font-size: 11px;
    color: #166534;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
}

tfoot .qty-cell strong {
    font-size: 15px;
}
