/* 库位管理页面样式 - 使用独立命名空间wh-loc避免冲突 */

/* 搜索区域样式 */
.wh-loc-search-form {
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wh-loc-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.wh-loc-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.wh-loc-search-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    min-width: 80px;
}

.wh-loc-search-combined {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #d9d9d9;
    min-width: 300px;
    flex: 1;
}

.wh-loc-search-type {
    width: 100px;
    height: 36px;
    border: none;
    border-right: 1px solid #d9d9d9;
    background: #f8f9fa;
    font-size: 13px;
    color: #1d2129;
    cursor: pointer;
    margin: 0;
}

.wh-loc-search-value {
    flex: 1;
    border: none;
    border-radius: 0;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
    margin: 0;
}

.wh-loc-search-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    vertical-align: middle;
}

.wh-loc-search-select {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    vertical-align: middle;
}

.wh-loc-search-input:focus,
.wh-loc-search-select:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.wh-loc-search-input:hover,
.wh-loc-search-select:hover {
    border-color: #c9cdd4;
}

/* 按钮区域样式 */
.wh-loc-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.wh-loc-actions-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 视图切换按钮组 */
.wh-loc-view-switcher {
    display: flex;
    gap: 0;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    overflow: hidden;
}

.wh-loc-view-btn {
    padding: 6px 12px;
    border: none;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4e5969;
}

.wh-loc-view-btn:not(:last-child) {
    border-right: 1px solid #d9d9d9;
}

.wh-loc-view-btn:hover {
    background-color: #f5f5f5;
}

.wh-loc-view-btn-active {
    background-color: #0052d9;
    color: white;
}

.wh-loc-view-btn-active:hover {
    background-color: #0045b5;
}

.wh-loc-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;
}

.wh-loc-btn-primary {
    background-color: #0052d9;
    color: white;
}

.wh-loc-btn-primary:hover {
    background-color: #0045b5;
}

.wh-loc-btn-default {
    background-color: #f5f5f5;
    color: #4e5969;
    border: 1px solid #d9d9d9;
}

.wh-loc-btn-default:hover {
    background-color: #e6e6e6;
}

.wh-loc-btn-danger {
    background-color: #ff4d4f;
    color: white;
}

.wh-loc-btn-danger:hover {
    background-color: #cf1322;
}

.wh-loc-btn-warning {
    background-color: #faad14;
    color: white;
}

.wh-loc-btn-warning:hover {
    background-color: #d48806;
}

.wh-loc-btn-success {
    background-color: #52c41a;
    color: white;
}

.wh-loc-btn-success:hover {
    background-color: #389e0d;
}

/* 批量操作计数样式 */
.wh-loc-batch-count {
    font-size: 13px;
    color: #4e5969;
    margin-left: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #f5f5f5;
}

/* 表格区域样式 */
.wh-loc-table-container {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

/* 隐形滚动条样式 */
.wh-loc-table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.wh-loc-table-container::-webkit-scrollbar-track {
    background: transparent;
}

.wh-loc-table-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.wh-loc-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* 针对Firefox的隐形滚动条 */
.wh-loc-table-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.wh-loc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: auto;
}

.wh-loc-table th,
.wh-loc-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e6eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 层号、库位序号、库位尺寸、库位体积、库位状态、利用率、操作列居中显示 */
.wh-loc-table th:nth-child(4),
.wh-loc-table td:nth-child(4),
.wh-loc-table th:nth-child(5),
.wh-loc-table td:nth-child(5),
.wh-loc-table th:nth-child(6),
.wh-loc-table td:nth-child(6),
.wh-loc-table th:nth-child(7),
.wh-loc-table td:nth-child(7),
.wh-loc-table th:nth-child(8),
.wh-loc-table td:nth-child(8),
.wh-loc-table th:nth-child(9),
.wh-loc-table td:nth-child(9),
.wh-loc-table th:nth-child(12),
.wh-loc-table td:nth-child(12) {
    text-align: center;
}

.wh-loc-table thead {
    background-color: #f5f7fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.wh-loc-table thead th {
    font-weight: 600;
    color: #1d2129;
    border-bottom: 2px solid #e5e6eb;
}

.wh-loc-table tbody tr {
    transition: background-color 0.2s;
}

.wh-loc-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 标签样式 - 优化紧凑设计 */
.wh-loc-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.wh-loc-tag-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    color: #2e7d32;
    border-color: #a5d6a7;
}

.wh-loc-tag-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #fff8f1 100%);
    color: #e65100;
    border-color: #ffcc80;
}

.wh-loc-tag-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
    color: #1565c0;
    border-color: #90caf9;
}

.wh-loc-tag-danger {
    background: linear-gradient(135deg, #ffebee 0%, #fff5f5 100%);
    color: #c62828;
    border-color: #ef9a9a;
}

/* 操作列样式 */
.wh-loc-actions-cell {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.wh-loc-action-btn {
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.wh-loc-action-btn-view {
    background-color: #e3f2fd;
    color: #1976d2;
}

.wh-loc-action-btn-view:hover {
    background-color: #bbdefb;
}

.wh-loc-action-btn-edit {
    background-color: #fff3e0;
    color: #e65100;
}

.wh-loc-action-btn-edit:hover {
    background-color: #ffe0b2;
}

.wh-loc-action-btn-log {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.wh-loc-action-btn-log:hover {
    background-color: #e1bee7;
}

.wh-loc-action-btn-print {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.wh-loc-action-btn-print:hover {
    background-color: #c8e6c9;
}

/* 分页区域样式 */
.wh-loc-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #e5e6eb;
    margin-top: 16px;
}

.wh-loc-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wh-loc-btn-pagination {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.wh-loc-btn-pagination:not(:disabled):hover {
    background-color: #f5f5f5;
    border-color: #0052d9;
    color: #0052d9;
}

.wh-loc-btn-pagination:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.wh-loc-page-info {
    font-size: 13px;
    color: #4e5969;
}

.wh-loc-page-size {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4e5969;
}

.wh-loc-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
}

.wh-loc-page-size-select:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.wh-loc-table-summary {
    font-size: 13px;
    color: #4e5969;
}

/* 卡片容器样式 */
.wh-loc-card-container {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

/* 隐形滚动条 */
.wh-loc-card-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.wh-loc-card-container::-webkit-scrollbar-track {
    background: transparent;
}

.wh-loc-card-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.wh-loc-card-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.wh-loc-card-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

/* 卡片网格 - 紧凑优化布局 */
.wh-loc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    padding: 6px;
    /* 确保卡片等高 */
    align-items: stretch;
}

/* 卡片容器优化 - 更紧凑的卡片高度 */
.wh-loc-card-container {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    padding: 4px 0;
}

/* 单个卡片 - 简洁紧凑设计 */
.wh-loc-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9eaec;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wh-loc-card:hover {
    box-shadow: 0 3px 10px rgba(0, 82, 217, 0.15);
    transform: translateY(-1px);
    border-color: #c9e2ff;
}

/* 卡片头部 - 紧凑设计 */
.wh-loc-card-header {
    padding: 8px 10px;
    background: linear-gradient(135deg, #f8fbff 0%, #f5f8ff 100%);
    border-bottom: 1px solid #e9eaec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
}

.wh-loc-card-code {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    font-family: 'Consolas', 'Monaco', monospace;
    flex: 1;
    min-width: 0;
}

.wh-loc-card-code svg {
    color: #0052d9;
    flex-shrink: 0;
    margin-right: 6px;
}

.wh-loc-card-code span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wh-loc-card-badges {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

/* 更小的标签样式 */
.wh-loc-card-badges .wh-loc-tag {
    padding: 3px 8px;
    font-size: 11px;
    line-height: 1.2;
}

/* 卡片主体 - 紧凑布局 */
.wh-loc-card-body {
    padding: 10px 12px;
    background: #fafbfc;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wh-loc-card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    border-bottom: 1px dashed #f0f0f0;
    min-height: 22px;
}

.wh-loc-card-info-row:last-child {
    border-bottom: none;
}

.wh-loc-card-label {
    font-size: 12px;
    color: #86909c;
    font-weight: 500;
    min-width: 60px;
    flex-shrink: 0;
}

.wh-loc-card-value {
    font-size: 12px;
    color: #1d2129;
    font-weight: 500;
    text-align: right;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* 卡片值中的标签样式 - 更小 */
.wh-loc-card-value .wh-loc-tag {
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.2;
}

/* 进度条样式 - 更紧凑 */
.wh-loc-progress-container {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin: 0 6px;
    max-width: 80px;
}

.wh-loc-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 根据利用率设置不同的颜色 */
.wh-loc-progress-bar.success {
    background: linear-gradient(90deg, #52c41a 0%, #73d13d 100%);
}

.wh-loc-progress-bar.warning {
    background: linear-gradient(90deg, #faad14 0%, #ffc53d 100%);
}

.wh-loc-progress-bar.danger {
    background: linear-gradient(90deg, #ff4d4f 0%, #ff7875 100%);
}

/* 进度条上的光泽效果 - 简化版本 */
.wh-loc-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 卡片底部 - 紧凑设计 */
.wh-loc-card-footer {
    padding: 6px 10px;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.wh-loc-card-footer-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.wh-loc-card-footer-right {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* 创建时间样式 */
.wh-loc-card-time {
    font-size: 11px;
    color: #86909c;
    font-weight: 500;
    line-height: 1.2;
}

/* 更小的按钮样式 - 无文字，圆形图标按钮 */
.wh-loc-card-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: linear-gradient(135deg, #0052d9 0%, #0066ff 100%);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 82, 217, 0.2);
}

.wh-loc-card-btn:hover {
    background: linear-gradient(135deg, #0045b5 0%, #0052d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 82, 217, 0.25);
}

/* 批量操作相关样式 */
.wh-loc-batch-operation-btn {
    margin-right: 10px;
}

/* 优化批量操作工具栏样式 */
#wh-loc-batch-toolbar {
    display: none;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e6eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    gap: 12px;
}

#wh-loc-batch-toolbar button {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    margin-right: 0;
}

#wh-loc-batch-toolbar button.wh-loc-btn-primary {
    background-color: #0052d9;
    color: white;
}

#wh-loc-batch-toolbar button.wh-loc-btn-primary:hover {
    background-color: #0045b5;
}

#wh-loc-batch-toolbar button.wh-loc-btn-default {
    background-color: #f5f5f5;
    color: #4e5969;
    border: 1px solid #d9d9d9;
}

#wh-loc-batch-toolbar button.wh-loc-btn-default:hover {
    background-color: #e6e6e6;
}

#wh-loc-batch-toolbar button.wh-loc-btn-danger {
    background-color: #ff4d4f;
    color: white;
}

#wh-loc-batch-toolbar button.wh-loc-btn-danger:hover {
    background-color: #cf1322;
}

#wh-loc-batch-toolbar button.wh-loc-btn-warning {
    background-color: #faad14;
    color: white;
}

#wh-loc-batch-toolbar button.wh-loc-btn-warning:hover {
    background-color: #d48806;
}

#wh-loc-batch-toolbar button.wh-loc-btn-success {
    background-color: #52c41a;
    color: white;
}

#wh-loc-batch-toolbar button.wh-loc-btn-success:hover {
    background-color: #389e0d;
}

#wh-loc-batch-count {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: #1d2129;
    padding: 4px 12px;
    background-color: #f5f7fa;
    border-radius: 4px;
    border: 1px solid #e5e6eb;
}

/* 表格视图复选框样式 */
.wh-loc-location-checkbox {
    margin: 0;
}

/* 卡片视图样式 */
.wh-loc-card {
    position: relative;
    transition: all 0.2s ease;
}

.wh-loc-card-selected {
    border-color: #428bca;
    box-shadow: 0 0 0 2px rgba(66, 139, 202, 0.2);
    background-color: rgba(66, 139, 202, 0.05);
}

.wh-loc-card-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.wh-loc-card-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 82, 217, 0.2);
}

.wh-loc-card-btn-secondary {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #d9d9d9;
    background: white;
    color: #4e5969;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.wh-loc-card-btn-secondary:hover {
    background: #f5f7fa;
    border-color: #0052d9;
    color: #0052d9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 82, 217, 0.2);
}

.wh-loc-card-btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.wh-loc-card-btn svg,
.wh-loc-card-btn-secondary svg {
    width: 14px;
    height: 14px;
    transition: all 0.2s ease;
}

.wh-loc-card-btn:hover svg,
.wh-loc-card-btn-secondary:hover svg {
    transform: scale(1.1);
    filter: brightness(1.05);
}

/* 空状态 */
.wh-loc-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #909399;
    min-height: 400px;
    /* 确保在网格中居中 */
    grid-column: 1 / -1;
    text-align: center;
}

/* 响应式布局 - 优化紧凑设计 */
@media (max-width: 1600px) {
    .wh-loc-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 10px;
        padding: 6px;
    }
}

@media (max-width: 1400px) {
    .wh-loc-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
    
    /* 进一步减小卡片内部间距 */
    .wh-loc-card-header {
        padding: 8px 10px;
        min-height: 40px;
    }
    
    .wh-loc-card-body {
        padding: 8px 10px;
    }
    
    .wh-loc-card-footer {
        padding: 6px 10px;
    }
    
    .wh-loc-card-info-row {
        padding: 3px 0;
        min-height: 22px;
    }
}

@media (max-width: 1200px) {
    .wh-loc-search-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wh-loc-search-field {
        width: 100%;
    }
    
    .wh-loc-search-combined {
        min-width: 100%;
    }
    
    .wh-loc-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 8px;
        padding: 4px;
    }
    
    /* 更小的卡片元素 */
    .wh-loc-card-header {
        padding: 6px 8px;
        min-height: 36px;
    }
    
    .wh-loc-card-body {
        padding: 6px 8px;
    }
    
    .wh-loc-card-footer {
        padding: 4px 8px;
    }
    
    .wh-loc-card-info-row {
        padding: 2px 0;
        min-height: 20px;
    }
    
    .wh-loc-card-btn,
    .wh-loc-card-btn-secondary {
        width: 28px;
        height: 28px;
    }
    
    .wh-loc-card-btn svg,
    .wh-loc-card-btn-secondary svg {
        width: 12px;
        height: 12px;
    }
    
    .wh-loc-progress-container {
        height: 6px;
        max-width: 70px;
    }
    
    .wh-loc-card-time {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .wh-loc-card-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 4px;
    }
    
    .wh-loc-card-footer {
        flex-wrap: wrap;
        gap: 4px;
        padding: 4px 8px;
    }
    
    .wh-loc-card-btn,
    .wh-loc-card-btn-secondary {
        flex: 1 1 calc(50% - 2px);
        min-width: 70px;
        width: 32px;
        height: 32px;
    }
    
    .wh-loc-table-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .wh-loc-view-switcher {
        align-self: flex-end;
    }
    
    /* 移动端进一步优化卡片 */
    .wh-loc-card-header {
        padding: 6px 8px;
        min-height: 36px;
    }
    
    .wh-loc-card-body {
        padding: 6px 8px;
    }
    
    .wh-loc-card-time {
        font-size: 9px;
        color: #969799;
    }
    
    .wh-loc-card-footer {
        padding: 4px 8px;
        gap: 6px;
    }
    
    .wh-loc-card-footer-right {
        gap: 3px;
    }
}

/* ===== 库位详情模态框样式 ===== */
.wh-loc-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.wh-loc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wh-loc-modal-container {
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.wh-loc-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e6eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.wh-loc-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
}

.wh-loc-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4e5969;
    transition: all 0.2s;
}

.wh-loc-modal-close:hover {
    background-color: #f5f5f5;
    color: #1d2129;
}

.wh-loc-modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.wh-loc-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e5e6eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

/* 详情模态框选项卡样式 */
.wh-loc-modal-tabs {
    display: flex;
    border-bottom: 1px solid #e5e6eb;
    margin-bottom: 20px;
}

.wh-loc-modal-tab {
    padding: 8px 16px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #4e5969;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.wh-loc-modal-tab:hover {
    color: #0052d9;
}

.wh-loc-modal-tab.wh-loc-active {
    color: #0052d9;
    border-bottom-color: #0052d9;
}

.wh-loc-tab-content {
    display: none;
}

.wh-loc-tab-content.wh-loc-active {
    display: block;
}

/* 详情内容样式 */
.wh-loc-detail-section {
    margin-bottom: 20px;
}

.wh-loc-detail-row {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
}

.wh-loc-detail-row:last-child {
    margin-bottom: 0;
}

.wh-loc-detail-label {
    width: 120px;
    color: #4e5969;
    font-size: 14px;
    flex-shrink: 0;
}

.wh-loc-detail-value {
    flex: 1;
    color: #1d2129;
    font-size: 14px;
}

/* 尺寸信息显示样式 */
.wh-loc-dimensions-display {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.wh-loc-dimension-box {
    background-color: #f5f7fa;
    padding: 16px;
    border-radius: 4px;
    text-align: center;
    flex: 1;
    border: 1px solid #e5e6eb;
}

.wh-loc-dimension-value {
    font-weight: 600;
    color: #1d2129;
    font-size: 20px;
}

.wh-loc-dimension-label {
    font-size: 12px;
    color: #86909c;
    margin-top: 4px;
}

/* 存储详情样式 */
.wh-loc-storage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e6eb;
}

.wh-loc-storage-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
}

.wh-loc-storage-summary {
    display: flex;
    gap: 20px;
}

.wh-loc-storage-summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wh-loc-storage-label {
    font-size: 14px;
    color: #86909c;
}

.wh-loc-storage-value {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
}

.wh-loc-storage-table-container {
    margin-top: 16px;
    overflow-x: auto;
    border-radius: 4px;
    border: 1px solid #e5e6eb;
}

.wh-loc-storage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wh-loc-storage-table th,
.wh-loc-storage-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e6eb;
}

.wh-loc-storage-table th {
    background-color: #f5f7fa;
    font-weight: 600;
    color: #1d2129;
}

.wh-loc-storage-table tbody tr:hover {
    background-color: #f5f7fa;
}

.wh-loc-storage-table tbody tr:last-child td {
    border-bottom: none;
}

/* 编辑表单样式 */
.wh-loc-form-group {
    margin-bottom: 16px;
}

.wh-loc-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.wh-loc-form-row .wh-loc-form-group {
    flex: 1;
    margin-bottom: 0;
}

.wh-loc-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
}

.wh-loc-form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.wh-loc-form-input:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.wh-loc-form-input[readonly] {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.wh-loc-form-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
    background-color: #ffffff;
    box-sizing: border-box;
}

.wh-loc-form-select:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.wh-loc-form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
    resize: vertical;
    min-height: 80px;
}

.wh-loc-form-textarea:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.wh-loc-calculated-volume {
    padding: 10px 12px;
    background-color: #f0f7ff;
    border: 1px solid #adc6ff;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #0052d9;
    text-align: center;
}

/* ===== 库位操作日志弹窗样式 - 参考库区操作日志 ===== */
.wh-loc-log-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wh-loc-log-modal-overlay.show {
    opacity: 1;
}

.wh-loc-log-modal-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.wh-loc-log-modal-overlay.show .wh-loc-log-modal-container {
    transform: translateY(0);
}

.wh-loc-log-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
}

.wh-loc-log-modal-title {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
}

.wh-loc-log-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    border-radius: 4px;
    cursor: pointer;
    color: #4e5969;
    transition: all 0.2s;
}

.wh-loc-log-close-btn:hover {
    background-color: #f2f3f5;
    color: #1d2129;
}

.wh-loc-log-content-area {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
}

.wh-loc-log-item {
    display: flex;
    margin-bottom: 24px;
    position: relative;
}

.wh-loc-log-item:last-child {
    margin-bottom: 0;
}

.wh-loc-log-timeline-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 16px;
}

.wh-loc-log-timeline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-bottom: 8px;
}

.wh-loc-log-timeline-line {
    width: 2px;
    flex: 1;
    background-color: #e5e6eb;
}

.wh-loc-log-item:last-child .wh-loc-log-timeline-line {
    display: none;
}

/* 日志类型图标样式 */
.wh-loc-log-icon-create {
    background-color: #e8f8f0;
    color: #28a745;
}

.wh-loc-log-icon-edit {
    background-color: #e6f7ff;
    color: #1890ff;
}





.wh-loc-log-icon-inbound {
    background-color: #e6fffb;
    color: #13c2c2;
}

.wh-loc-log-icon-outbound {
    background-color: #fff2e8;
    color: #fa8c16;
}

.wh-loc-log-icon-default {
    background-color: #f5f5f5;
    color: #8c8c8c;
}

.wh-loc-log-content {
    flex: 1;
    background: #fafafa;
    border-radius: 6px;
    padding: 16px;
    position: relative;
}

.wh-loc-log-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 18px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #fafafa;
}

.wh-loc-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wh-loc-log-action-type {
    font-weight: 600;
    font-size: 16px;
    color: #1d2129;
}

.wh-loc-log-timestamp {
    font-size: 12px;
    color: #8c8c8c;
}

.wh-loc-log-detail {
    margin-bottom: 12px;
    color: #4e5969;
    font-size: 14px;
    line-height: 1.5;
}

.wh-loc-log-operator {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #8c8c8c;
}

.wh-loc-log-changes-section {
    margin-top: 12px;
    border-top: 1px dashed #e5e6eb;
    padding-top: 12px;
}

.wh-loc-log-change-item {
    display: flex;
    margin-bottom: 8px;
    align-items: center;
}

.wh-loc-log-change-item:last-child {
    margin-bottom: 0;
}

.wh-loc-log-field-name {
    min-width: 100px;
    font-size: 13px;
    color: #4e5969;
    font-weight: 500;
}

.wh-loc-log-field-values {
    display: flex;
    align-items: center;
    flex: 1;
}

.wh-loc-log-old-value {
    padding: 2px 6px;
    background-color: #fff2f0;
    color: #ff4d4f;
    border-radius: 3px;
    font-size: 13px;
    margin-right: 8px;
}

.wh-loc-log-new-value {
    padding: 2px 6px;
    background-color: #f6ffed;
    color: #52c41a;
    border-radius: 3px;
    font-size: 13px;
}

.wh-loc-log-change-arrow {
    margin: 0 8px;
    color: #8c8c8c;
    font-size: 14px;
}

.wh-loc-log-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #e5e6eb;
}

.wh-loc-log-close-action-btn {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #f2f3f5;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    color: #4e5969;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.wh-loc-log-close-action-btn:hover {
    background: #e5e6eb;
    color: #1d2129;
}

.wh-loc-log-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #8c8c8c;
}

.wh-loc-log-empty-icon {
    margin-bottom: 16px;
    opacity: 0.4;
}
