/**
 * 待办概览 — Dashboard 待办统计样式
 */

/* ========== 布局 ========== */
.todo-overview-section {
    margin-bottom: 24px;
}

.todo-overview-content {
    display: flex;
    gap: 32px;
}

.todo-summary {
    flex: 1;
    min-width: 0;
}

.todo-assignee-ranking {
    flex: 0 0 260px;
}

/* ========== 完成率头部 ========== */
.todo-stat-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.todo-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #22c55e;
    line-height: 1;
}

.todo-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
}

/* ========== 进度条 ========== */
.completion-bar {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: #f1f5f9;
    margin-bottom: 14px;
}

.completion-bar-completed {
    background: #22c55e;
    transition: width 0.6s ease;
}

.completion-bar-in-progress {
    background: #f59e0b;
    transition: width 0.6s ease;
}

.completion-bar-pending {
    background: #e2e8f0;
    transition: width 0.6s ease;
}

/* ========== 统计行 ========== */
.todo-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.todo-meta-item {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
}

.todo-meta-item strong {
    color: var(--text-main, #1a1a1a);
    font-weight: 600;
}

/* ========== 责任人排行 ========== */
.assignee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm, 8px);
    transition: background 0.15s;
}

.assignee-item:hover {
    background: var(--bg-secondary, #f8fafc);
}

.assignee-rank {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-muted, #6b7280);
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}

.assignee-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main, #1a1a1a);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assignee-stats {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    white-space: nowrap;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .todo-overview-content {
        flex-direction: column;
        gap: 20px;
    }

    .todo-assignee-ranking {
        flex: 1;
    }
}
