/* =============================================================================
   Transfer Order Modal & Toolbar Styles
   ============================================================================= */

/* Toolbar */
.transfer-order-toolbar {
    padding: 8px 16px;
    background: #f0f9ff;
    border-bottom: 1px solid #bae6fd;
    display: flex;
    align-items: center;
    gap: 12px;
}

.transfer-order-toolbar .badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
}

/* Modal header */
.to-modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.to-modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Step badge */
.to-step-badge {
    margin-bottom: 12px;
    font-size: 13px;
    color: #64748b;
}

/* Section titles (Step 1) */
.to-section-title {
    font-weight: 600;
    font-size: 13px;
    padding: 8px 12px;
    margin: 16px 0 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.to-section-title:first-of-type {
    margin-top: 4px;
}

.to-section-deficit {
    background: #fef2f2;
    color: #991b1b;
}

.to-section-ok {
    background: #f8fafc;
    color: #64748b;
}

/* Tables */
.to-table {
    font-size: 13px;
    margin-bottom: 0;
}

.to-table th {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    padding: 6px 8px;
}

.to-table td {
    padding: 5px 8px;
    vertical-align: middle;
}

.to-cell-article {
    width: 70px;
    color: #64748b;
}

.to-cell-unit {
    width: 45px;
    color: #64748b;
}

.to-cell-num {
    width: 85px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.to-deficit-val {
    color: #dc2626;
    font-weight: 600;
}

.to-cell-date {
    width: 85px;
    white-space: nowrap;
}

.to-cell-input {
    width: 110px;
}

.to-cell-input input {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Batch sections (Step 2) */
.to-batch-section {
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.to-batch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    gap: 8px;
}

.to-batch-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.to-batch-name {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.to-batch-meta {
    font-size: 12px;
    color: #64748b;
}

.to-batch-selected {
    font-size: 12px;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    white-space: nowrap;
    flex-shrink: 0;
}

.to-batch-selected.to-batch-ok {
    color: #16a34a;
    background: #f0fdf4;
    font-weight: 600;
}

.to-batch-table {
    border-radius: 0;
}

.to-batch-table th {
    background: #fafafa;
}

.to-batch-cell {
    font-weight: 500;
}

/* Shortage highlight (Step 2) */
.to-batch-shortage {
    border-color: #fca5a5;
}

.to-batch-shortage .to-batch-header {
    background: #fef2f2;
}

.to-shortage-warn {
    color: #dc2626;
    font-weight: 600;
}

/* Checkbox column styling */
.tabulator .tabulator-header .tabulator-col[tabulator-field="_selected"] {
    background: transparent;
}
