/* 批次库存页面样式 - 独立样式，避免与其他页面冲突 */

/* 使用特定的命名空间前缀，避免样式冲突 */
.batch-inv-container {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.batch-inv-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

/* 搜索区域 */
.batch-inv-search-area {
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.batch-inv-search-form {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.batch-inv-search-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    flex: 1;
}

.batch-inv-search-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    white-space: nowrap;
    line-height: 1.2;
}

/* 组合搜索框样式 */
.batch-inv-search-item .search-combined {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e6eb;
    width: 100%;
    min-width: 200px;
}

.batch-inv-search-item .search-type {
    width: 100px;
    height: 36px;
    border: none;
    border-right: 1px solid #e5e6eb;
    border-radius: 0;
    padding: 0 12px;
    cursor: pointer;
    margin: 0;
}

.batch-inv-search-item .search-value {
    flex: 1;
    border: none;
    border-radius: 0;
    height: 36px;
    background: #ffffff;
    padding: 0 12px;
    margin: 0;
}

.batch-inv-search-input:not(.search-value),
.batch-inv-search-select {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    vertical-align: middle;
}

.batch-inv-search-input:focus,
.batch-inv-search-select:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.batch-inv-search-input:hover,
.batch-inv-search-select:hover {
    border-color: #c9cdd4;
}

/* 货主选择框样式 */
.batch-inv-search-item .owner-select-container {
    width: 100%;
}

.batch-inv-search-item .owner-select-input {
    width: 100%;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    transition: all 0.2s ease;
    padding-right: 45px; /* 为图标和清空按钮留出空间 */
}

.batch-inv-search-item .owner-select-input:hover {
    border-color: #c9cdd4;
}

.batch-inv-search-item .owner-select-input:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 日期范围容器样式 */
.batch-inv-date-range-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-inv-date-separator {
    color: #4b5563;
    font-size: 14px;
    white-space: nowrap;
}

.batch-inv-date-input {
    flex: 1;
    min-width: 120px;
}

/* 操作按钮区域 */
.batch-inv-action-area {
    justify-content: flex-end;
    margin-bottom: 10px;
}

/* 列表区域 */
.batch-inv-list {
    height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e6eb;
    overflow: hidden;
}

/* 列表头部样式 */
.batch-inv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.batch-inv-title {
    font-size: 16px;
    font-weight: 500;
    color: #303133;
    margin: 0;
}

.batch-inv-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.batch-inv-btn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f5f5f5;
    color: #4e5969;
    border: 1px solid #d9d9d9;
}

.batch-inv-btn:hover {
    background-color: #e6e6e6;
}

.batch-inv-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: text-bottom;
}

/* 表格容器 */
.batch-inv-table-container {
    background: #ffffff;
    overflow: auto;
    flex: 1;
}

.batch-inv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
}

.batch-inv-table th {
    background-color: #f7f8fa;
    color: #1d2129;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e6eb;
    white-space: nowrap;
    line-height: 1.5;
    vertical-align: middle;
}

.batch-inv-table td {
    color: #4d5156;
    padding: 6px 16px;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.5;
    vertical-align: middle;
}

.batch-inv-table tbody tr:hover {
    background-color: #f7f8fa;
}

.batch-inv-table tbody tr:last-child td {
    border-bottom: none;
}

/* 展开列单元格样式 */
.batch-inv-table .batch-inv-expand-cell {
    width: 40px;
    padding: 6px 8px;
    text-align: center;
    line-height: 1;
}

/* 特定字段居中对齐 - 库存数量相关列 */
.batch-inv-table th:nth-child(7),
.batch-inv-table td:nth-child(7),
.batch-inv-table th:nth-child(8),
.batch-inv-table td:nth-child(8),
.batch-inv-table th:nth-child(9),
.batch-inv-table td:nth-child(9),
.batch-inv-table th:nth-child(10),
.batch-inv-table td:nth-child(10),
.batch-inv-table th:nth-child(11),
.batch-inv-table td:nth-child(11),
.batch-inv-table th:nth-child(12),
.batch-inv-table td:nth-child(12),
.batch-inv-table th:nth-child(13),
.batch-inv-table td:nth-child(13),
.batch-inv-table th:nth-child(14),
.batch-inv-table td:nth-child(14),
.batch-inv-table th:nth-child(15),
.batch-inv-table td:nth-child(15),
.batch-inv-table th:nth-child(16),
.batch-inv-table td:nth-child(16),
.batch-inv-table th:nth-child(17),
.batch-inv-table td:nth-child(17) {
    text-align: center;
}

/* 状态标签 */
.batch-inv-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    vertical-align: middle;
}

.batch-inv-status-active {
    background-color: #eef9f0;
    color: #2d9e45;
}

.batch-inv-status-warning {
    background-color: #fef9e7;
    color: #e37415;
}

.batch-inv-status-danger {
    background-color: #fdeef0;
    color: #d54941;
}

.batch-inv-status-inactive {
    background-color: #f5f5f5;
    color: #666666;
    border: 1px solid #d9d9d9;
}

/* 操作按钮样式 - 与库存查询页面保持一致 */
.batch-inv-action-btn {
    padding: 4px 8px;
    margin-right: 8px;
    color: #1976d2;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 14px;
    line-height: 1.5;
    vertical-align: middle;

}

.batch-inv-action-btn:hover {
    text-decoration: underline;
}

.batch-inv-action-btn:last-child {
    margin-right: 0;
}

/* 查看尺寸链接样式 */
.batch-inv-dimensions-link {
    color: #0052d9;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.batch-inv-dimensions-link:hover {
    background-color: rgba(0, 82, 217, 0.1);
    text-decoration: underline;
}

/* 锁定按钮样式 */
.batch-inv-action-lock {
    color: #d54941;
}

.batch-inv-action-lock:hover {
    color: #b3361a;
}

/* 记录按钮样式 */
.batch-inv-action-record {
    color: #2d9e45;
}

.batch-inv-action-record:hover {
    color: #237a32;
}

/* 分页区域 */
.batch-inv-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #e5e6eb;
    background: #f8f9fa;
}

.batch-inv-pagination-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.batch-inv-pagination-info {
    font-size: 14px;
    color: #4d5156;
}

.batch-inv-pagination-btn {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    background-color: #ffffff;
    color: #4d5156;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.batch-inv-pagination-btn:hover:not(:disabled) {
    border-color: #1976d2;
    color: #1976d2;
}

.batch-inv-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.batch-inv-page-size {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4d5156;
}

.batch-inv-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

/* 空数据状态 */
.batch-inv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: #6b7280;
}

.batch-inv-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.batch-inv-empty-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.batch-inv-empty-desc {
    font-size: 14px;
    color: #9ca3af;
}

/* TDesign风格日期范围选择器样式 */
.batch-inv-tdesign-date-range {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.batch-inv-tdesign-date-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 1;
    min-width: 140px;
}

.batch-inv-tdesign-date-input {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    height: 40px;
}

.batch-inv-tdesign-date-input:hover {
    border-color: #c0c4cc;
}

.batch-inv-tdesign-date-input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
    outline: none;
}

.batch-inv-tdesign-date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #c0c4cc;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

/* 隐形滚动条样式 - 针对WebKit浏览器 */
.batch-inv-table-container::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

.batch-inv-table-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    border: none;
}

.batch-inv-table-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.batch-inv-table-container::-webkit-scrollbar-track {
    background: transparent;
    border: none;
}

/* 日期选择器面板样式 */
.batch-inv-tdesign-date-panel {
    position: absolute;
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 0;
    z-index: 1000;
    width: 280px;
    overflow: hidden;
}

.batch-inv-tdesign-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e6eb;
}

.batch-inv-tdesign-date-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.batch-inv-tdesign-date-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #4b5563;
    transition: all 0.2s;
}

.batch-inv-tdesign-date-nav-btn:hover {
    background: #e5e6eb;
    color: #0052d9;
}

.batch-inv-tdesign-date-title {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    user-select: none;
}

.batch-inv-tdesign-date-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    padding: 8px 0;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.batch-inv-tdesign-date-weekday {
    text-align: center;
    font-size: 12px;
    color: #666666;
    font-weight: 500;
    padding: 8px 0;
}

.batch-inv-tdesign-date-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    padding: 8px;
}

.batch-inv-tdesign-date-day {
    text-align: center;
    font-size: 14px;
    color: #1d2129;
    padding: 8px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    user-select: none;
}

.batch-inv-tdesign-date-day:hover {
    background: #f0f5ff;
    color: #0052d9;
}

.batch-inv-tdesign-date-day.empty {
    cursor: default;
    color: transparent;
}

.batch-inv-tdesign-date-day.today {
    font-weight: 600;
    color: #0052d9;
    background: #f0f5ff;
}

.batch-inv-tdesign-date-day.selected {
    background: #0052d9;
    color: #ffffff;
}

/* 日期分隔符样式 */
.batch-inv-tdesign-date-separator {
    color: #666666;
    font-size: 14px;
    margin: 0 8px;
    user-select: none;
}

/* 展开/收起按钮样式 - 与库存查询页面保持一致 */
.batch-inv-expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.batch-inv-expand-btn:hover:not(.disabled) {
    background-color: #f0f0f0;
}

.batch-inv-expand-btn.expanded {
    background-color: #e6f7ff;
}

.batch-inv-expand-btn.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.batch-inv-expand-btn svg {
    width: 16px;
    height: 16px;
    fill: #666;
    transition: transform 0.3s ease;
}

.batch-inv-expand-btn:hover svg {
    fill: #1890ff;
}

.batch-inv-expand-btn.expanded svg {
    fill: #1890ff;
    transform: rotate(90deg);
}

/* 展开行样式 - 与库存查询页面保持一致 */
.batch-inv-expanded-row {
    background-color: #fafafa;
    border-left: 3px solid #1890ff;
}

.batch-inv-expanded-row.expanding {
    animation: batchInvExpandAnimation 0.3s ease-out forwards;
    overflow: hidden;
    max-height: 500px;
}

.batch-inv-expanded-row.collapsing {
    animation: batchInvCollapseAnimation 0.3s ease-out forwards;
    overflow: hidden;
    max-height: 500px;
}

@keyframes batchInvExpandAnimation {
    0% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

@keyframes batchInvCollapseAnimation {
    0% {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
}

.batch-inv-expanded-cell {
    padding: 0;
    vertical-align: top;
}

/* 批次详情容器样式 - 与库存查询页面保持一致 */
.batch-inv-detail-container {
    padding: 16px;
    background: white;
    margin: 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.batch-inv-detail-title {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e6eb;
}

.batch-inv-distribution-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.batch-inv-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.batch-inv-detail-table th {
    background-color: #f0f2f5;
    color: #1d2129;
    font-weight: 500;
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e6eb;
}

.batch-inv-detail-table td {
    color: #4d5156;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.batch-inv-detail-table tr:last-child td {
    border-bottom: none;
}

.batch-inv-detail-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* 库存数量、可用库存、占用库存列居中 */
.batch-inv-detail-table th:nth-child(4),
.batch-inv-detail-table th:nth-child(5),
.batch-inv-detail-table th:nth-child(6),
.batch-inv-detail-table td:nth-child(4),
.batch-inv-detail-table td:nth-child(5),
.batch-inv-detail-table td:nth-child(6) {
    text-align: center;
}

/* 占用库存链接样式 - 与库存查询页面保持一致 */
.batch-inv-table .inv-occupancy-link {
    color: #fa8c16;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    line-height: 1.5;
    vertical-align: middle;
}

.batch-inv-table .inv-occupancy-link:hover {
    background-color: rgba(250, 140, 22, 0.1);
    text-decoration: underline;
}

.batch-inv-table .inv-occupancy-link:active {
    background-color: rgba(250, 140, 22, 0.2);
}

.batch-inv-detail-table .inv-occupancy-link {
    color: #fa8c16;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.batch-inv-detail-table .inv-occupancy-link:hover {
    background-color: rgba(250, 140, 22, 0.1);
    text-decoration: underline;
}

.batch-inv-detail-table .inv-occupancy-link:active {
    background-color: rgba(250, 140, 22, 0.2);
}

.batch-inv-detail-table tbody tr:hover {
    background-color: #f5f5f5;
}

.text-center {
    text-align: center;
}

/* 批次库存记录弹窗样式 */
.batch-inv-records-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.batch-inv-records-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.batch-inv-records-container {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 1200px;
    height: 1000px; /* 增加高度到1000px */
    display: flex;
    flex-direction: column;
}

.batch-inv-records-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.batch-inv-records-title {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
}

.batch-inv-records-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #8c8c8c;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.batch-inv-records-close:hover {
    background-color: #f5f5f5;
    color: #262626;
}

.batch-inv-records-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.batch-inv-records-table {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}

.batch-records-data-table {
    width: 100%;
    border-collapse: collapse;
}

.batch-records-data-table th {
    background: #f5f5f5;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #262626;
    font-size: 14px;
    border-bottom: 1px solid #e5e5e5;
}

.batch-records-data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.batch-records-data-table tr:last-child td {
    border-bottom: none;
}

.batch-record-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.batch-record-type.in {
    background-color: #e8f5e8;
    color: #52c41a;
}

.batch-record-type.out {
    background-color: #fff2f0;
    color: #ff4d4f;
}

.batch-record-quantity.in {
    color: #52c41a;
    font-weight: 600;
}

.batch-record-quantity.out {
    color: #ff4d4f;
    font-weight: 600;
}

.batch-inv-records-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
}

.batch-inv-records-btn {
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: white;
    color: #262626;
    cursor: pointer;
    font-size: 14px;
}

.batch-inv-records-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

/* 批次库存记录分页样式 */
.batch-inv-records-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.batch-records-pagination-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4d5156;
}

#batchRecordsPageInfo,
#batchDistRecordsPageInfo {
    font-weight: 500;
    color: #1d2129;
}

.batch-records-total-info {
    color: #86909c;
}

.batch-records-pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-records-pagination-btn {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: white;
    color: #4d5156;
    cursor: pointer;
    font-size: 14px;
}

.batch-records-pagination-btn:hover:not(:disabled) {
    border-color: #1976d2;
    color: #1976d2;
}

.batch-records-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.batch-records-page-size {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4d5156;
}

.batch-records-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

/* 尺寸详情弹窗样式 */
.batch-inv-dimensions-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.batch-inv-dimensions-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.batch-inv-dimensions-container {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.batch-inv-dimensions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.batch-inv-dimensions-title {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
}

.batch-inv-dimensions-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #8c8c8c;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    line-height: 1;
}

.batch-inv-dimensions-close:hover {
    background-color: #f5f5f5;
    color: #262626;
}

.batch-inv-dimensions-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.batch-inv-dimensions-info-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #fafafa;
    border-radius: 6px;
}

.batch-inv-dimensions-info-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 16px;
}

.batch-inv-dimensions-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.batch-inv-dimensions-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.batch-inv-dimensions-info-label {
    font-size: 13px;
    color: #86909c;
}

.batch-inv-dimensions-info-value {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
}

.batch-inv-dimensions-detail-section {
    padding: 16px;
    background: #f0f7ff;
    border-radius: 6px;
    border: 1px solid #d6e9ff;
}

.batch-inv-dimensions-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.batch-inv-dimensions-detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    text-align: center;
}

.batch-inv-dimensions-detail-label {
    font-size: 13px;
    color: #86909c;
}

.batch-inv-dimensions-detail-value {
    font-size: 18px;
    font-weight: 600;
    color: #0052d9;
}

.batch-inv-dimensions-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    gap: 12px;
}

.batch-inv-dimensions-btn {
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.batch-inv-dimensions-btn-confirm {
    background: #0052d9;
    color: white;
    border: 1px solid #0052d9;
}

.batch-inv-dimensions-btn-confirm:hover {
    background: #0043b5;
}

/* 批次详情基本信息样式（尺寸详情弹窗使用） */
.batch-inv-info-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #fafafa;
    border-radius: 6px;
}

.batch-inv-info-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 12px;
}

.batch-inv-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.batch-inv-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.batch-inv-info-label {
    font-size: 13px;
    color: #86909c;
}

.batch-inv-info-value {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .batch-inv-container {
        padding: 16px;
    }
    
    .batch-inv-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .batch-inv-search-item {
        width: 100%;
        min-width: auto;
    }
    
    .batch-inv-table-container {
        overflow-x: auto;
    }
    
    .batch-inv-table {
        min-width: 800px;
    }
    
    .batch-inv-detail-table {
        font-size: 12px;
    }
    
    .batch-inv-detail-table th,
    .batch-inv-detail-table td {
        padding: 8px 12px;
    }
    
    .batch-inv-detail-container {
        padding: 12px;
    }
    
    /* 批次记录弹窗响应式调整 */
    .batch-inv-records-container {
        width: 95%;
        height: 95vh;
    }
    
    .batch-inv-records-body {
        padding: 16px;
    }
    
    .batch-records-data-table th,
    .batch-records-data-table td {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* 批次详情弹窗响应式调整 */
    .batch-inv-info-grid {
        grid-template-columns: 1fr;
    }
    
    /* 尺寸详情弹窗响应式调整 */
    .batch-inv-dimensions-container {
        width: 95%;
        max-width: none;
    }
    
    .batch-inv-dimensions-body {
        padding: 16px;
    }
    
    .batch-inv-dimensions-info-grid {
        grid-template-columns: 1fr;
    }
    
    .batch-inv-dimensions-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .batch-inv-dimensions-detail-item {
        padding: 10px;
    }
    
    .batch-inv-dimensions-detail-value {
        font-size: 16px;
    }
}