.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
}

.stat-info h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.recent-activities {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.recent-activities h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.activity-icon.inbound {
    background: #d4edda;
    color: #28a745;
}

.activity-icon.outbound {
    background: #f8d7da;
    color: #dc3545;
}

.activity-icon.inventory {
    background: #d1ecf1;
    color: #17a2b8;
}

.activity-content {
    flex: 1;
}

.activity-time {
    font-size: 12px;
    color: #999;
}

.activity-text {
    font-size: 14px;
    color: #333;
}

.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

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

.data-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    font-weight: 600;
    font-size: 14px;
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.data-table th.sortable:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.data-table th .sort-icon {
    font-size: 12px;
    margin-left: 5px;
    color: #ffd700;
}

.data-table td {
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

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

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.shelf {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 15px;
    transition: all 0.3s;
}

.shelf:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.shelf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.shelf-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.shelf-levels {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shelf-level {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.level-label {
    width: 40px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-align: center;
}

.level-slots {
    flex: 1;
    display: flex;
    gap: 8px;
}

.slot {
    flex: 1;
    min-height: 60px;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    padding: 5px;
}

.slot:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slot.empty {
    border-color: #ddd;
    background: #f8f9fa;
}

.slot.occupied {
    border-color: #28a745;
    background: #f0fff4;
}

.slot.near-full {
    border-color: #ffc107;
    background: #fffbf0;
}

.slot.full {
    border-color: #dc3545;
    background: #fff5f5;
}

.slot-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.slot-status {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

.slot-status.empty {
    background: #e9ecef;
    color: #666;
}

.slot-status.occupied {
    background: #d4edda;
    color: #28a745;
}

.slot-usage {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
}

.shelf-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 2px solid #f0f0f0;
    font-size: 12px;
    color: #666;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.location-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.location-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.location-item.occupied {
    border: 2px solid #28a745;
}

.location-item.empty {
    border: 2px solid #ddd;
}

.location-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.location-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.location-status.occupied {
    background: #d4edda;
    color: #28a745;
}

.location-status.empty {
    background: #f8f9fa;
    color: #666;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.report-filters {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.filter-group input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.report-content {
    display: grid;
    gap: 25px;
}

.report-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.report-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.chart-container {
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.chart-bar {
    width: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s;
}

.chart-bar:hover {
    transform: scaleY(1.05);
    transform-origin: bottom;
}

.chart-bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.chart-bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.completed {
    background: #d4edda;
    color: #28a745;
}

.status-badge.cancelled {
    background: #f8d7da;
    color: #dc3545;
}

.status-badge.status-normal {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-warning {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-primary {
    background: #cce5ff;
    color: #004085;
}

.status-badge.status-default {
    background: #e2e3e5;
    color: #383d41;
}

.status-badge-success {
    background: #d4edda;
    color: #155724;
}

.status-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.status-badge-secondary {
    background: #e2e3e5;
    color: #6c757d;
}

/* 仓库标签样式 */
.warehouse-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-buttons button {
    padding: 6px 12px;
    font-size: 12px;
}

/* 系统切换标签样式 */
.system-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 4px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-btn.active::before {
    display: none;
}

/* 链接样式的tab按钮 */
.tab-btn.tab-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* 文章管理样式 */
.article-preview-box {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    background: #f8f9fa;
}

.article-view {
    max-width: 800px;
    margin: 0 auto;
}

.article-view h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.article-content {
    line-height: 1.8;
    color: #333;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 20px 0 10px;
    color: #333;
}

.article-content p {
    margin: 10px 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.article-content th,
.article-content td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.article-content th {
    background: #f8f9fa;
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    margin: 10px 0;
    padding-left: 25px;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 15px;
    margin: 15px 0;
    color: #666;
    font-style: italic;
}

.article-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.article-content pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 15px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

/* 翻页组件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

.pagination button {
    padding: 8px 16px;
}

.page-info {
    color: #666;
    font-size: 14px;
}

.page-jump {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-jump input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
}

#inboundPageSize, #outboundPageSize, #ordersPageSize {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* 搜索栏组件 */
.search-bar {
    background: white;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.search-item {
    display: flex;
    align-items: center;
}

.search-item input,
.search-item select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 140px;
}

.search-item input:focus,
.search-item select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102,126,234,0.1);
}

.search-item input::placeholder {
    color: #999;
}

.search-item input[type="date"] {
    min-width: 160px;
}

/* 帕累托分析样式 */
.pareto-controls {
    margin-bottom: 15px;
}

.pareto-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
    cursor: pointer;
}

.pareto-controls select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102,126,234,0.1);
}

.pareto-summary {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pareto-abc-summary h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.abc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.abc-card {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: white;
}

.abc-card.category-a {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

.abc-card.category-b {
    background: linear-gradient(135deg, #ffd93d 0%, #f5c800 100%);
    color: #333;
}

.abc-card.category-c {
    background: linear-gradient(135deg, #6bcf7f 0%, #5cb85c 100%);
}

.abc-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.abc-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.abc-percent {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 3px;
}

.abc-contribution {
    font-size: 12px;
    opacity: 0.9;
}

.pareto-insight {
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.pareto-insight strong {
    color: #333;
}

/* 响应式帕累托分析 */
@media (max-width: 768px) {
    .abc-cards {
        grid-template-columns: 1fr;
    }
}

/* 响应式翻页组件 */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .page-jump {
        width: 100%;
        justify-content: center;
    }
    
    .page-jump input {
        width: 80px;
    }
}

/* 概率函数帮助信息样式 */
.probability-help {
    flex: 1;
    padding: 8px 12px;
    background: #f0f7ff;
    border: 1px solid #667eea;
    border-radius: 6px;
    min-height: 60px;
}

.probability-help-content {
    font-size: 13px;
    color: #555;
}

.probability-help-content strong {
    color: #667eea;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.probability-help-content p {
    margin: 5px 0;
}

.probability-formula,
.probability-params,
.probability-example {
    margin: 3px 0;
    font-family: 'Courier New', monospace;
    color: #333;
}

.probability-formula {
    color: #d63384;
}

.probability-params {
    color: #198754;
}

.probability-example {
    color: #0d6efd;
    font-style: italic;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #ddd;
}

.probability-time {
    color: #fd7e14;
    font-weight: 500;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #ddd;
}

/* 时间序列图样式 */
.time-series-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.time-series-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 120px;
    cursor: pointer;
    background: white;
}

.time-series-controls select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102,126,234,0.1);
}

.time-series-stats {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.time-series-stats-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.stat-value {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.stat-value.highlight-max {
    color: #dc3545;
}

.stat-value.highlight-min {
    color: #28a745;
}

/* 响应式时间序列图 */
@media (max-width: 768px) {
    .time-series-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .time-series-controls select {
        width: 100%;
    }
    
    .time-series-stats-content {
        grid-template-columns: 1fr;
    }
}

/* ABC设置样式 */
.abc-settings {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.abc-settings > label {
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    display: block;
}

.abc-thresholds {
    margin-bottom: 20px;
}

.abc-threshold-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.abc-label {
    min-width: 80px;
    font-weight: 500;
}

.abc-label.abc-a {
    color: #dc3545;
}

.abc-label.abc-b {
    color: #fd7e14;
}

.abc-label.abc-c {
    color: #28a745;
}

.abc-input {
    width: 60px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.abc-input[readonly] {
    background: #e9ecef;
    cursor: not-allowed;
}

.abc-probability-controls,
.abc-quantity-controls {
    margin-bottom: 20px;
}

.abc-probability-controls > label,
.abc-quantity-controls > label {
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    display: block;
}

.abc-prob-row,
.abc-qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.abc-prob-row input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 3px;
    outline: none;
}

.abc-prob-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
}

.abc-qty-input {
    width: 60px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.abc-prob-total {
    text-align: right;
    font-weight: bold;
    color: #28a745;
    margin-top: 5px;
}

.abc-prob-total.warning {
    color: #dc3545;
}

/* ============================================
   TableUtils 翻页组件样式 - 订单管理风格
   ============================================ */

/* 分页容器 */
.pagination-container {
    display: flex;
    flex-direction: column;
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    gap: 8px;
}

/* 分页包装器 - 主要控件区域 */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 分页信息文本 */
.pagination-info {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* 扩展信息 */
.pagination-info-extended {
    text-align: center;
    font-size: 13px;
    color: #868e96;
}

/* 页码按钮基础样式 */
.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    background: white;
    color: #595959;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled):not(.active) {
    color: #40a9ff;
    border-color: #40a9ff;
}

.page-btn:active:not(:disabled) {
    color: #096dd9;
    border-color: #096dd9;
}

.page-btn.active {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

.page-btn:disabled {
    color: #bfbfbf;
    background: #f5f5f5;
    border-color: #d9d9d9;
    cursor: not-allowed;
}

/* 上一页/下一页按钮 */
.page-btn.prev,
.page-btn.next {
    padding: 0 16px;
}

/* 跳转按钮 */
.page-btn.jump-btn {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

.page-btn.jump-btn:hover {
    background: #40a9ff;
    border-color: #40a9ff;
}

/* 页码信息 */
.page-info {
    font-size: 14px;
    color: #595959;
    padding: 0 8px;
}

/* 跳转区域 */
.page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid #e8e8e8;
}

.page-input {
    width: 50px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    transition: all 0.2s;
}

.page-input:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 每页条数选择器 */
.page-size-selector {
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid #e8e8e8;
}

.page-size-select {
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #595959;
    cursor: pointer;
    transition: all 0.2s;
}

.page-size-select:hover {
    border-color: #40a9ff;
}

.page-size-select:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}



/* 响应式适配 */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .pagination-info {
        font-size: 13px;
    }

    .pagination-buttons {
        gap: 4px;
    }

    .page-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
        border-radius: 6px;
    }

    .page-btn.prev,
    .page-btn.next {
        padding: 0 12px;
    }

    .page-btn.prev::before,
    .page-btn.next::after {
        display: none;
    }
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
    .pagination-container {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-top-color: #4a5568;
    }

    .pagination-info {
        color: #a0aec0;
    }

    .page-btn {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .page-btn:hover:not(:disabled):not(.active) {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-color: #667eea;
    }

    .page-btn:disabled {
        background: #4a5568;
        border-color: #4a5568;
        color: #718096;
    }

    .page-ellipsis {
        color: #718096;
    }
}

/* ABC预览样式 */
.abc-preview {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.abc-preview-empty {
    color: #999;
    text-align: center;
    padding: 20px;
}

.abc-preview-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.abc-preview-section {
    padding: 10px;
    border-radius: 6px;
}

.abc-a-section {
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
}

.abc-b-section {
    background: rgba(253, 126, 20, 0.1);
    border-left: 4px solid #fd7e14;
}

.abc-c-section {
    background: rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
}

.abc-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.abc-badge {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.abc-badge.abc-a {
    background: #dc3545;
}

.abc-badge.abc-b {
    background: #fd7e14;
}

.abc-badge.abc-c {
    background: #28a745;
}

.abc-count {
    color: #666;
    font-size: 14px;
}

.abc-preview-items {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.abc-item {
    padding: 3px 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
}

.abc-more {
    padding: 3px 8px;
    color: #999;
    font-size: 12px;
    font-style: italic;
}

/* 响应式ABC设置 */
@media (max-width: 768px) {
    .abc-threshold-row,
    .abc-prob-row,
    .abc-qty-row {
        flex-wrap: wrap;
    }
    
    .abc-label {
        min-width: 60px;
    }
}

/* 拣货管理样式 */
.picking-strategy-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.strategy-option {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.strategy-option:hover {
    border-color: #007bff;
    background: #f0f4ff;
}

.strategy-option.active {
    border-color: #007bff;
    background: #e7f1ff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.strategy-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.strategy-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.picking-strategy-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #e7f1ff;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.strategy-info-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.strategy-badge {
    padding: 5px 12px;
    background: #007bff;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.strategy-description {
    color: #333;
    font-size: 14px;
}

/* 信用等级徽章样式 */
.credit-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.credit-badge.aaa {
    background: #d4edda;
    color: #28a745;
}

.credit-badge.aa {
    background: #cce5ff;
    color: #007bff;
}

.credit-badge.a {
    background: #fff3cd;
    color: #856404;
}

.credit-badge.bbb {
    background: #f8f9fa;
    color: #6c757d;
}

/* 供应商状态徽章样式 */
.supplier-status-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.supplier-status-badge.active {
    background: #d4edda;
    color: #28a745;
}

.supplier-status-badge.inactive {
    background: #e9ecef;
    color: #6c757d;
}

.supplier-status-badge.suspended {
    background: #f8d7da;
    color: #dc3545;
}

/* 采购订单状态徽章样式 */
.po-status-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.po-status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.po-status-badge.confirmed {
    background: #cce5ff;
    color: #007bff;
}

.po-status-badge.shipped {
    background: #e7f3ff;
    color: #0056b3;
}

.po-status-badge.waiting {
    background: #fff3e0;
    color: #e65100;
}

.po-status-badge.received {
    background: #d4edda;
    color: #28a745;
}

.po-status-badge.completed {
    background: #c3e6cb;
    color: #155724;
}

.po-status-badge.cancelled {
    background: #f8d7da;
    color: #dc3545;
}

/* 仓储模块Tab样式 */
.warehouse-tabs {
    display: flex;
    gap: 2px;
    margin: 20px 0;
    border-bottom: 2px solid #e9ecef;
}

.warehouse-tab-btn {
    padding: 12px 24px;
    border: none;
    background: #f8f9fa;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.warehouse-tab-btn:hover {
    background: #e9ecef;
}

.warehouse-tab-btn.active {
    background: white;
    color: #667eea;
    border-bottom-color: #667eea;
    box-shadow: 0 -2px 0 #667eea;
}

.warehouse-tab-content {
    display: none;
    padding: 20px 0;
}

.warehouse-tab-content.active {
    display: block;
}

/* 拣选管理子Tab样式 */
.picking-sub-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.picking-sub-tab-btn {
    padding: 10px 20px;
    border: none;
    background: #f3f4f6;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    color: #6b7280;
}

.picking-sub-tab-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.picking-sub-tab-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.picking-sub-tab-content {
    display: none;
}

.picking-sub-tab-content.active {
    display: block;
}

/* 功能区规划样式 */
.functional-area-config {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 1px solid #e0e6ff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.functional-area-config h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-item label {
    font-weight: 500;
    color: #555;
    font-size: 0.95em;
}

.config-item input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.config-item input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.functional-area-result {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.functional-area-result h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.result-value {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-label {
    font-size: 0.95em;
    opacity: 0.9;
    margin-bottom: 10px;
}

.result-formula {
    font-size: 0.8em;
    opacity: 0.7;
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: help;
}

.area-table-container {
    overflow-x: auto;
}

.area-calculation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.area-calculation-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 500;
}

.area-calculation-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.area-calculation-table tr:hover {
    background: #f8f9ff;
}

.area-calculation-table .formula {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #666;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

.area-calculation-table .highlight-row {
    background: linear-gradient(90deg, #f8f9ff 0%, #fff 100%);
    border-left: 4px solid #667eea;
}

.area-calculation-table .highlight-row td {
    font-weight: 500;
}

.area-calculation-table .total-row {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.area-calculation-table .total-row td {
    border-bottom: none;
}

.area-calculation-table .total-row .formula {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* 安全库存分析样式 */
.safety-stock-analysis {
    padding: 20px;
}

.analysis-placeholder {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

.analysis-status {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    align-items: flex-start;
}

.analysis-status.status-ok {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
}

.analysis-status.status-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 1px solid #ffc107;
}

.status-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.status-content h4 {
    margin-bottom: 10px;
    color: #333;
}

.status-content p {
    color: #666;
    margin-bottom: 5px;
}

.low-stock-list {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.low-stock-item {
    display: flex;
    gap: 15px;
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
    align-items: center;
}

.material-name {
    font-weight: 500;
    min-width: 120px;
}

.stock-gap {
    color: #dc3545;
    font-weight: 500;
}

.volume-gap {
    color: #666;
    font-size: 0.9em;
}

.recommendation {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    color: #555;
}
