/* Menu: Bảng điều khiển — KPI cards (CARA style) */
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 22px; }
.kpi-card { padding: 22px 24px; }
.kpi-ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.kpi-ic svg { width: 22px; height: 22px; }
.kpi-ic-blue { background: #DBEAFE; color: #2563EB; }
.kpi-ic-green { background: #DCFCE7; color: #16A34A; }
.kpi-ic-red { background: #FEE2E2; color: #DC2626; }
.kpi-ic-orange { background: #FFEDD5; color: #EA580C; }
.kpi-ic-purple { background: #EDE9FE; color: #7C3AED; }
.kpi-ic svg { stroke: currentColor; }
.kpi-value { font-size: 32px; font-weight: 700; letter-spacing: -.02em; margin: 16px 0 4px; }
.kpi-label { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.kpi-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; margin-top: 14px; }
.kpi-badge svg { width: 13px; height: 13px; }

/* biểu đồ tốc độ */
.dash-chart { padding: 22px 26px; margin-bottom: 22px; }
.dash-chart-head { display: flex; justify-content: space-between; align-items: center; }
.dash-chart-head h3 { font-size: 18px; font-weight: 700; }
.dash-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #E2E8F0; border-radius: 9px; padding: 7px 12px; font-size: 13px; color: #475569; font-weight: 500; }
.dash-chip svg { width: 15px; height: 15px; }
.chart-area { position: relative; height: 280px; margin-top: 22px; padding-bottom: 26px; }
.chart-grid { position: absolute; left: 0; right: 0; top: 0; bottom: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid > div { border-top: 1px dashed #EEF1F4; }
.chart-grid .chart-base { border-top: 1px solid #E8EBEF; }
.chart-bars { position: absolute; left: 0; right: 0; top: 0; bottom: 26px; display: flex; align-items: flex-end; gap: 5px; padding: 0 2px; }
.bar-col { flex: 1; display: flex; align-items: flex-end; height: 100%; }
.bar { width: 100%; min-height: 4px; background: linear-gradient(180deg, rgba(37, 99, 235, .72), var(--accent)); border-radius: 5px 5px 2px 2px; transition: filter .15s; }
.bar:hover { filter: brightness(1.14); }
.chart-xaxis { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); }

/* panel dưới */
.dash-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.dash-panel { padding: 22px 24px; }
.panel-title { font-size: 16px; font-weight: 700; }
.panel-sub { font-size: 12.5px; color: var(--muted-2); margin-top: 3px; }
.dist-list { margin-top: 20px; display: flex; flex-direction: column; gap: 15px; }
.dist-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; }
.dist-name { display: flex; align-items: center; gap: 8px; color: #334155; }
.dist-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dist-count { font-weight: 600; color: var(--ink); }
.dist-bar { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.dist-fill { height: 100%; border-radius: 99px; transition: width .5s ease; }
.emp-chart { margin-top: 18px; display: flex; align-items: stretch; gap: 10px; height: 178px; }
.emp-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.emp-count { font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.emp-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.emp-bar { width: 100%; max-width: 32px; min-height: 6px; background: linear-gradient(180deg, rgba(37, 99, 235, .5), var(--accent)); border-radius: 6px 6px 3px 3px; }
.emp-name { font-size: 10.5px; color: var(--muted); text-align: center; margin-top: 7px; line-height: 1.2; }

@media (max-width: 1100px) {
  .dash-stats { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}
