/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== 问号提示 ========== */
.tooltip-icon:hover .tooltip-text {
    visibility: visible !important;
}

/* 调拨单上传区域的问号提示 */
.transfer-tooltip-icon:hover .transfer-tooltip-text {
    visibility: visible !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 顶部栏 ========== */
.topbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    height: 56px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.topbar-inner {
    display: flex;
    align-items: center;
    padding: 0 24px;
    width: 100%;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-right: 20px;
}

.topbar-subtitle {
    font-size: 14px;
    opacity: 0.85;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.3);
}

/* ========== 布局 ========== */
.layout {
    display: flex;
    padding-top: 56px;
    min-height: 100vh;
}

/* ========== 左侧导航 ========== */
.sidebar {
    width: 200px;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 50;
}

.sidebar-nav {
    padding: 12px 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #555;
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background: #f8f9ff;
    color: #667eea;
}

.sidebar-item.active {
    background: #f0f2ff;
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

.sidebar-icon {
    font-size: 18px;
    margin-right: 10px;
}

/* ========== 主内容区 ========== */
.main-content {
    flex: 1;
    margin-left: 200px;
    padding: 24px;
    min-height: calc(100vh - 56px);
}

/* ========== 上传区域 ========== */
.upload-section {
    margin-bottom: 20px;
}

.upload-card {
    background: #fff;
    border: 2px dashed #d9d9d9;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-card:hover,
.upload-card.dragover {
    border-color: #667eea;
    background: #f8f9ff;
}

.upload-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.upload-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #333;
}

.upload-hint {
    color: #999;
    font-size: 13px;
    margin-bottom: 16px;
}

.upload-actions {
    margin-bottom: 10px;
}

.drag-hint {
    color: #bbb;
    font-size: 12px;
}

.file-info {
    background: #fff;
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.file-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.file-name::before {
    content: "📄 ";
}

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: #fff;
    border: 1px solid #d9d9d9;
    color: #666;
}

.btn-outline:hover {
    border-color: #667eea;
    color: #667eea;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

/* ========== 工具栏 ========== */
.toolbar {
    background: #fff;
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 7px 14px 7px 32px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    width: 220px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
}

.search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #bbb;
    cursor: pointer;
    display: none;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.15s;
    user-select: none;
}

.search-clear:hover {
    color: #ff4d4f;
    background: #fff2f0;
}

.search-clear.visible {
    display: block;
}

select, #batchFilter {
    padding: 7px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background: #fff;
    cursor: pointer;
}

select:focus, #batchFilter:focus {
    border-color: #667eea;
}

.record-count {
    color: #999;
    font-size: 13px;
}

.update-time {
    color: #bbb;
    font-size: 12px;
    border-left: 1px solid #e8e8e8;
    padding-left: 10px;
}

/* ========== 表格 ========== */
.table-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}

.table-scroll-container {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.table-scroll-wrapper {
    flex: 1;
    min-width: 0;
    width: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

/* 滚动条一直显示 */
.table-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}

.table-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.table-action-fixed {
    flex-shrink: 0;
    border-left: 2px solid #f0f0f0;
    background: #fff;
}

.table-action-fixed table {
    min-width: 0;
    width: auto;
    table-layout: fixed;
}

.table-action-fixed th,
.table-action-fixed td {
    text-align: center;
    white-space: nowrap;
    padding: 8px 2px;
    border-bottom: 1px solid #f5f5f5;
    width: 60px;
}

.table-action-fixed th {
    padding: 10px 2px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

table {
    width: auto;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: auto;
}

thead {
    background: #fafafa;
}

th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #f0f0f0;
    white-space: nowrap;
    position: relative;
    user-select: none;
}

th.sortable {
    cursor: pointer;
}

th.sortable:hover {
    background: #f0f0f0;
}

th.sortable::after {
    content: " ↕";
    font-size: 11px;
    color: #ccc;
}

th.sort-asc::after {
    content: " ↑";
    color: #667eea;
}

th.sort-desc::after {
    content: " ↓";
    color: #667eea;
}

td {
    padding: 8px 14px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    white-space: nowrap;
}

tr:hover td {
    background: #f8f9ff;
}

tr:nth-child(even) td {
    background: #fafbfc;
}

tr:nth-child(even):hover td {
    background: #f0f2ff;
}

/* 操作列 */
.action-cell {
    white-space: nowrap;
    text-align: center;
    position: sticky;
    right: 0;
    background: #fff;
    border-left: 2px solid #f0f0f0;
    z-index: 1;
    padding: 8px 2px !important;
}

.action-cell-header {
    background: #fafafa;
}

tr:hover .action-cell {
    background: #f8f9ff;
}

tr:nth-child(even) .action-cell {
    background: #fafbfc;
}

tr:nth-child(even):hover .action-cell {
    background: #f0f2ff;
}

.action-btn {
    padding: 0px 2px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 1px;
}

.action-btn.edit {
    background: #e6f7ff;
    color: #1890ff;
}

.action-btn.edit:hover {
    background: #1890ff;
    color: #fff;
}

.action-btn.delete {
    background: #fff2f0;
    color: #ff4d4f;
}

.action-btn.delete:hover {
    background: #ff4d4f;
    color: #fff;
}
.action-btn.delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
    color: #999;
}
.action-btn.delete:disabled:hover,
.action-btn.delete:disabled:focus,
.action-btn.delete:disabled:active {
    background: #f0f0f0;
    color: #999;
    outline: none;
    box-shadow: none;
}

/* 仓库明细页面隐藏编辑按钮 */
body[data-page="warehouse"] .action-btn.edit {
    display: none;
}

/* 仓库明细页面：彻底清除 .action-cell 冗余样式（右侧独立表格已控制） */
body[data-page="warehouse"] .action-cell {
    position: static;
    right: auto;
    border-left: none;
    z-index: auto;
    background: transparent;
    padding: 8px 2px !important;
}

/* 仓库明细页面：固定前三列（仅限左侧数据表格，避免误匹配右侧操作列表格） */
body[data-page="warehouse"] #dataTable th:nth-child(-n+3),
body[data-page="warehouse"] #dataTable td:nth-child(-n+3) {
    position: sticky;
    z-index: 2;
    background: #fff;
}

body[data-page="warehouse"] #dataTable th:nth-child(1),
body[data-page="warehouse"] #dataTable td:nth-child(1) {
    left: 0;
    min-width: 220px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-page="warehouse"] #dataTable th:nth-child(2),
body[data-page="warehouse"] #dataTable td:nth-child(2) {
    left: 220px;
    min-width: 120px;
    max-width: 120px;
}

body[data-page="warehouse"] #dataTable th:nth-child(3),
body[data-page="warehouse"] #dataTable td:nth-child(3) {
    left: 340px;
    min-width: 160px;
    max-width: 160px;
}

/* 仓库明细页面：第5列及之后各仓库列宽缩短，内容换行显示 */
body[data-page="warehouse"] #dataTable th:nth-child(n+5),
body[data-page="warehouse"] #dataTable td:nth-child(n+5) {
    min-width: 100px;
    max-width: 100px;
    white-space: normal;
    word-break: break-all;
}

/* 仓库明细页面：隐藏右侧操作栏 */
body[data-page="warehouse"] .table-action-fixed {
    display: none !important;
}

/* 仓库明细页面：前三列偶数行背景色 */
body[data-page="warehouse"] #dataTable tr:nth-child(even) td:nth-child(-n+3) {
    background: #fafbfc;
}

/* 仓库明细页面：前三列悬浮背景色 */
body[data-page="warehouse"] #dataTable tr:hover td:nth-child(-n+3) {
    background: #f8f9ff;
}

body[data-page="warehouse"] #dataTable tr:nth-child(even):hover td:nth-child(-n+3) {
    background: #f0f2ff;
}

/* 仓库明细页面：前三列表头背景色 */
body[data-page="warehouse"] #dataTable thead th:nth-child(-n+3) {
    background: #fafafa;
    z-index: 3;
}

/* 仓库明细页面：每列加竖线分隔，方便区分数据 */
body[data-page="warehouse"] #dataTable th,
body[data-page="warehouse"] #dataTable td {
    border-right: 1px solid #f0f0f0;
}
body[data-page="warehouse"] #dataTable th:last-child,
body[data-page="warehouse"] #dataTable td:last-child {
    border-right: none;
}

/* ========== 多选下拉框（仓库明细页面） ========== */
#warehouseCheckFilters {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.multi-select-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
    white-space: nowrap;
    min-width: 120px;
    justify-content: space-between;
    color: #333;
    user-select: none;
}

.multi-select-trigger:hover {
    border-color: #667eea;
}

.multi-select-trigger.open {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.multi-select-arrow {
    font-size: 10px;
    transition: transform 0.2s;
    color: #999;
}

.multi-select-trigger.open .multi-select-arrow {
    transform: rotate(180deg);
}

.multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 200px;
    max-width: 260px;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 300;
    padding: 4px 0;
}

.multi-select-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.15s;
    user-select: none;
}

.multi-select-option:hover {
    background: #f5f7ff;
}

.multi-select-option.selected {
    background: #f0f2ff;
    color: #667eea;
    font-weight: 500;
}

.multi-select-option .ms-checkbox {
    width: 15px;
    height: 15px;
    border: 1.5px solid #d9d9d9;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    font-size: 10px;
    color: #fff;
}

.multi-select-option.selected .ms-checkbox {
    background: #667eea;
    border-color: #667eea;
}

.multi-select-option .ms-checkbox.checked {
    background: #667eea;
    border-color: #667eea;
}

.multi-select-option .ms-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.multi-select-option .ms-count {
    font-size: 11px;
    color: #999;
    margin-left: auto;
    padding-left: 8px;
}

.multi-select-footer {
    border-top: 1px solid #f0f0f0;
    padding: 6px 10px;
    display: flex;
    justify-content: center;
}

.multi-select-set-default {
    display: block;
    width: 100%;
    padding: 6px 10px;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    background: #fafafa;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.multi-select-set-default:hover {
    background: #fff7e6;
    border-color: #faad14;
    color: #d48806;
}

.multi-select-clear {
    display: block;
    width: auto;
    padding: 6px 10px;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    background: #fafafa;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.multi-select-clear:hover {
    background: #fff2f0;
    border-color: #ff4d4f;
    color: #ff4d4f;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px;
    border-top: 1px solid #f0f0f0;
}

.pagination span {
    font-size: 13px;
    color: #666;
}

.pagination .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 56px;
    margin-bottom: 14px;
}

.empty-state h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 6px;
}

.empty-state p {
    color: #999;
    font-size: 13px;
}

/* ========== 高级筛选面板 ========== */
.filter-panel {
    position: fixed;
    top: 70px;
    right: 24px;
    width: 520px;
    max-width: calc(100vw - 48px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    z-index: 200;
    animation: filterSlideIn 0.2s ease;
    overflow: hidden;
}

@keyframes filterSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    font-size: 14px;
}

.filter-logic {
    display: flex;
    gap: 12px;
    font-weight: 400;
    font-size: 12px;
    color: #666;
}

.filter-logic label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.filter-logic input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.filter-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0 4px;
    line-height: 1;
}

.filter-close:hover {
    color: #333;
}

.filter-panel-body {
    padding: 14px 18px;
    max-height: 360px;
    overflow-y: auto;
}

.filter-field-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}

.filter-field-group:hover {
    border-color: #e0e0e0;
}

.filter-field-label {
    width: 100px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    text-align: right;
}

.filter-field-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s;
}

.filter-field-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.filter-field-select {
    cursor: pointer;
    appearance: auto;
    padding: 6px 8px;
}

.filter-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-top: 1px solid #f0f0f0;
    gap: 10px;
}

.filter-footer-right {
    display: flex;
    gap: 8px;
}

.filter-panel-footer .btn-primary {
    padding: 6px 18px;
}

/* 高级筛选按钮激活状态 */
#advancedFilterBtn.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* 复选框筛选组（仓库明细页面） */
.filter-check-group {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    margin-bottom: 4px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
}

.filter-check-group:hover {
    border-color: #e0e0e0;
    background: #f0f0f0;
}

.filter-check-text {
    font-size: 13px;
    color: #555;
    user-select: none;
    cursor: pointer;
}

.filter-check-input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #667eea;
}

.filter-check-all-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    user-select: none;
}

.filter-check-all-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #52c41a;
}

.filter-footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== 弹窗 ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

/* 调货申请详情弹窗层级最高 */
#transferApplyDetailModal.modal-overlay {
    z-index: 2000;
}

.modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 0;
}

.modal-header h3 {
    font-size: 17px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    padding: 0 4px;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 18px 22px;
}

.modal-body .form-group {
    margin-bottom: 14px;
}

.modal-body label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.modal-body input,
.modal-body textarea,
.modal-body select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.modal-body input:focus,
.modal-body textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid #f0f0f0;
}

/* ========== Toast 提示 ========== */
.toast {
    position: fixed;
    top: 70px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    z-index: 2000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    background: #52c41a;
}

.toast.error {
    background: #ff4d4f;
}

.toast.info {
    background: #1890ff;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .sidebar {
        width: 56px;
    }

    .sidebar-item span:not(.sidebar-icon) {
        display: none;
    }

    .sidebar-icon {
        margin-right: 0;
    }

    .main-content {
        margin-left: 56px;
        padding: 16px;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-left,
    .toolbar-right {
        justify-content: center;
    }

    .search-box input {
        width: 160px;
    }

    .upload-card {
        padding: 24px 14px;
    }

    .modal {
        width: 95%;
    }
}
/* 1. 强制左右表格行高完全统一，消除高度差 & 底部空白 */
.table-scroll-container {
    align-items: stretch;
}

.table-scroll-wrapper table,
.table-action-fixed table {
    line-height: 1.4;
}

/* 统一单元格行高，强制对齐 */
.table-scroll-wrapper td,
.table-action-fixed td {
    height: 36px;
    vertical-align: middle;
}

.table-scroll-wrapper th,
.table-action-fixed th {
    height: 40px;
    vertical-align: middle;
}

/* 补货记录页面：不同单号之间的分隔线 */
.order-separator td {
    border-top: 2px solid #000 !important;
}

/* 2. 右侧操作列容器高度跟随父容器，杜绝底部留白、被垫高 */
.table-action-fixed {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.table-action-fixed table {
    flex: 1;
    height: 100%;
}