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

.metric-card {
    padding: 18px;
}

.metric-label {
    color: #6b7280;
    font-size: 13px;
}

.metric-value {
    font-size: 30px;
    font-weight: 700;
    margin-top: 8px;
    color: #111827;
}

.metric-danger .metric-value {
    color: #dc2626;
}

.summary-list,
.kpi-list {
    display: grid;
    gap: 10px;
}

.summary-row,
.kpi-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-row:last-child,
.kpi-row:last-child {
    border-bottom: 0;
}

.workload-note {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #4b5563;
    font-size: 13px;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    color: #4b5563;
    font-size: 13px;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    display: inline-block;
}

.status-open-dot { background: #0284c7; }
.status-progress-dot { background: #d97706; }
.status-waiting-dot { background: #7c3aed; }
.status-completed-dot { background: #16a34a; }
.status-cancelled-dot { background: #dc2626; }

#workCalendar {
    min-height: 680px;
}

.fc .fc-toolbar-title {
    font-size: 20px;
    font-weight: 700;
}

.fc .fc-button {
    background: #2563eb;
    border-color: #2563eb;
    border-radius: 6px;
}

.gantt-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}

.gantt-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
}

#ganttChart {
    min-width: 900px;
    min-height: 420px;
}

.gantt-status-open .bar { fill: #0284c7; }
.gantt-status-in-progress .bar { fill: #d97706; }
.gantt-status-waiting .bar { fill: #7c3aed; }
.gantt-status-completed .bar { fill: #16a34a; }
.gantt-status-cancelled .bar { fill: #dc2626; }

.gantt-status-open .bar-progress,
.gantt-status-in-progress .bar-progress,
.gantt-status-waiting .bar-progress,
.gantt-status-completed .bar-progress,
.gantt-status-cancelled .bar-progress {
    fill: rgba(255, 255, 255, 0.35);
}

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

@media (max-width: 576px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .workload-note { display: block; }
    .workload-note span { display: block; margin-bottom: 6px; }
}
