.task-indicators-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 12px 0;
}

.task-indicators-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.task-indicators-header h2 {
    margin: 0;
    color: #111c3a;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
}

.task-indicators-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.task-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.task-kpi-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    min-height: 78px;
    padding: 14px 16px;
    border: 1px solid #dce6f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.task-kpi-card div {
    min-width: 0;
}

.task-kpi-card span:not(.material-symbols-outlined) {
    display: block;
    margin-bottom: 7px;
    color: #50617d;
    font-size: 12px;
    font-weight: 600;
}

.task-kpi-card strong {
    display: block;
    color: #111c3a;
    font-size: clamp(15px, 1vw, 20px);
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.task-kpi-card > .material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 22px;
}

.task-kpi-card.blue > .material-symbols-outlined {
    color: #007bff;
    background: #eef6ff;
}

.task-kpi-card.green > .material-symbols-outlined {
    color: #16a34a;
    background: #dcfce7;
}

.task-kpi-card.red > .material-symbols-outlined {
    color: #ef4444;
    background: #fee2e2;
}

.task-kpi-card.purple > .material-symbols-outlined {
    color: #8b5cf6;
    background: #f3e8ff;
}

.task-kpi-card.orange > .material-symbols-outlined {
    color: #f59e0b;
    background: #fff7df;
}

.task-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.8fr);
    gap: 12px;
}

.task-chart-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.task-chart-grid-full {
    grid-template-columns: 1fr;
}

.task-chart-card {
    min-width: 0;
    border: 1px solid #dce6f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.task-chart-card-wide {
    grid-column: span 2;
}

.task-chart-header {
    padding: 14px 16px 0;
}

.task-chart-header h3 {
    margin: 0;
    color: #111c3a;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.task-chart-header span {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
}

.task-chart-body {
    position: relative;
    height: 330px;
    padding: 14px 16px 12px;
}

.task-chart-body-compact {
    height: 260px;
}

.task-chart-body-small {
    height: 230px;
}

.task-chart-body-trend {
    height: 280px;
}

.task-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 16px;
}

.task-legend-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    color: #1f2a44;
    font-size: 12px;
}

.task-legend-item span:nth-child(2) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-legend-item strong {
    color: #111c3a;
    font-size: 12px;
}

.task-legend-item em {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
}

.task-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.task-indicators-section-title {
    margin: 6px 0 0;
    color: #111c3a;
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .task-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-chart-grid,
    .task-chart-grid-three {
        grid-template-columns: 1fr;
    }

    .task-chart-card-wide {
        grid-column: span 1;
    }
}

@media (max-width: 720px) {
    .task-kpi-grid {
        grid-template-columns: 1fr;
    }
}
