@charset "UTF-8";
/**
 * 报表页面对齐修复样式
 * Report Page Alignment Fix Styles
 */

/* 报表页面整体容器 */
.report-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 报表标题区域 */
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.report-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

/* 标签导航对齐 */
.report-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.report-tab {
    padding: 10px 20px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #6b7280;
}

.report-tab.active {
    background: #374151;
    color: white;
    border-color: #374151;
}

/* 统计卡片统一高度 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 160px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.stat-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: currentColor;
}

.stat-card.total::before {
    background: #3b82f6;
}

.stat-card.completed::before {
    background: #10b981;
}

.stat-card.progress::before {
    background: #f59e0b;
}

.stat-card.overdue::before {
    background: #ef4444;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 14px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-progress {
    margin-top: auto;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.stat-progress-bar {
    height: 100%;
    background: currentColor;
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* 分布图表卡片 */
.distribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* 表格对齐优化 */
.data-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f9fafb;
}

.data-table th {
    padding: 16px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.data-table th:first-child {
    padding-left: 24px;
}

.data-table th:last-child {
    padding-right: 24px;
}

.data-table td {
    padding: 14px 12px;
    font-size: 14px;
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
}

.data-table td:first-child {
    padding-left: 24px;
}

.data-table td:last-child {
    padding-right: 24px;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

/* 进度条对齐 */
.progress-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar-container {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.progress-text {
    min-width: 50px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
}

/* 状态徽章对齐 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.progress {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.pending {
    background: #e5e7eb;
    color: #374151;
}

.status-badge.high {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.medium {
    background: #dbeafe;
    color: #1e3a8a;
}

.status-badge.low {
    background: #e5e7eb;
    color: #6b7280;
}

/* 优先级徽章 */
.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.priority-badge.high {
    background: #fef3c7;
    color: #92400e;
}

.priority-badge.medium {
    background: #dbeafe;
    color: #1e3a8a;
}

.priority-badge.low {
    background: #e5e7eb;
    color: #6b7280;
}

/* 数量显示对齐 */
.quantity-cell {
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}

.proportion-cell {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* 趋势图表区域 */
.trend-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 人员统计表格 */
.personnel-table {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 最后更新时间对齐 */
.last-update {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
    justify-content: flex-end;
}

/* 导出按钮对齐 */
.export-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.export-button:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .report-container {
        padding: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .distribution-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .report-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .data-table th:first-child,
    .data-table td:first-child {
        padding-left: 12px;
    }
    
    .data-table th:last-child,
    .data-table td:last-child {
        padding-right: 12px;
    }
}

/* 图标对齐 */
.icon-align {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

/* 文本对齐工具类 */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Flexbox对齐工具类 */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.flex-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
