.stats-card {
    transition: transform 0.2s;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.stats-card:hover {
    transform: translateY(-1px);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.section-title {
    border-left: 3px solid #007bff;
    padding-left: 10px;
    margin: 15px 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 横向统计卡片样式 - 紧凑版 */
.horizontal-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.horizontal-stats .stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.horizontal-stats .stats-row:last-child {
    margin-bottom: 0;
}

.horizontal-stat-item {
    text-align: center;
    color: white;
    flex: 1;
    padding: 0 8px;
}

.horizontal-stat-item:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.3);
}

.horizontal-stat-number {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 2px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.horizontal-stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 状态颜色 */
.status-success { color: #28a745 !important; }
.status-warning { color: #ffc107 !important; }
.status-danger { color: #dc3545 !important; }
.status-info { color: #17a2b8 !important; }
.status-secondary { color: #6c757d !important; }

/* 今天/昨天对比卡片 - 紧凑版 */
.comparison-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.comparison-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #495057;
    text-align: center;
}

.comparison-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.comparison-item {
    text-align: center;
    flex: 1;
}

.comparison-number {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.comparison-label {
    font-size: 0.7rem;
    color: #6c757d;
}

/* 数据表格样式 - 紧凑版 */
.data-table-container {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 15px;
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table {
    font-size: 0.8rem;
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    padding: 8px 6px;
    font-size: 0.75rem;
}

.table td {
    vertical-align: middle;
    white-space: nowrap;
    padding: 6px 6px;
    font-size: 0.75rem;
}

.status-badge {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 500;
}

.status-badge.data-0 { background-color: #e3f2fd; color: #1976d2; }
.status-badge.data-1 { background-color: #fff3e0; color: #f57c00; }
.status-badge.data-2 { background-color: #e8f5e8; color: #388e3c; }
.status-badge.data-999 { background-color: #ffebee; color: #d32f2f; }

.status-badge.upload-0 { background-color: #f5f5f5; color: #616161; }
.status-badge.upload-1 { background-color: #e8f5e8; color: #388e3c; }
.status-badge.upload-999 { background-color: #ffebee; color: #d32f2f; }

/* 分页样式 - 紧凑版 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

.pagination-info {
    color: #6c757d;
    font-size: 0.75rem;
}

.pagination .page-link {
    border-radius: 6px;
    margin: 0 1px;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 4px 8px;
    font-size: 0.75rem;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
}

/* 搜索和筛选区域 - 紧凑版 */
.filter-section {
    background: white;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    margin-bottom: 12px;
}

.filter-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 4px 8px;
    font-size: 0.75rem;
    height: auto;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 3px;
}

.btn-search {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    padding: 4px 8px;
    font-size: 0.75rem;
}

.btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-reset {
    background-color: #6c757d;
    border: none;
    border-radius: 6px;
    color: white;
    padding: 4px 8px;
    font-size: 0.75rem;
}

.btn-reset:hover {
    background-color: #5a6268;
}

/* 页面整体紧凑化 */
.container-fluid {
    padding: 15px !important;
}

.row {
    margin-bottom: 8px;
}

.btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-sm {
    padding: 3px 6px;
    font-size: 0.7rem;
}

/* 页面标题区域紧凑化 */
.page-header {
    margin-bottom: 15px;
}

.page-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

/* 最后更新时间 */
.update-time {
    margin-top: 10px;
    font-size: 0.7rem;
}