/* EMBER charts — shared styles for the SVG data-viz kit (theme-variable driven). */
.chart-donut { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.chart-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; font-size: 13px; color: var(--muted, #93a1b0); pointer-events: none; }
.chart-center b { font-size: 26px; color: var(--ink, #e7edf3); line-height: 1; }

.chart-bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; align-items: center; gap: 10px; }
.bar-label { font-size: 13px; color: var(--ink, #e7edf3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 12px; background: var(--panel2, #1c232d); border: 1px solid var(--line, #2a323d); border-radius: 999px; overflow: hidden; }
.bar-track i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .8s cubic-bezier(.2,.7,.2,1); }
.bar-val { font-size: 12px; color: var(--muted, #93a1b0); min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .bar-track i { transition: none; } }

.chart-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.kpi-tile { background: var(--panel, #161b22); border: 1px solid var(--line, #2a323d); border-radius: 14px; padding: 16px 16px 14px; }
.kpi-tile b { display: block; font-size: 26px; line-height: 1.1; color: var(--brand, #ff7a18); }
.kpi-tile span { display: block; color: var(--muted, #93a1b0); font-size: 12px; margin-top: 3px; }
.kpi-tile small { display: block; color: var(--muted, #93a1b0); font-size: 11px; margin-top: 4px; opacity: .85; }
.kpi-tile.good b { color: var(--good, #3fb950); } .kpi-tile.warn b { color: var(--partial, #d29922); } .kpi-tile.bad b { color: var(--bad, #f85149); }

.chart-table-wrap { overflow-x: auto; }
.chart-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.chart-table caption { text-align: left; color: var(--muted, #93a1b0); font-size: 12px; padding-bottom: 8px; }
.chart-table th { text-align: left; color: var(--muted, #93a1b0); font-weight: 600; padding: 7px 10px; border-bottom: 1px solid var(--line, #2a323d); white-space: nowrap; }
.chart-table td { padding: 8px 10px; border-bottom: 1px solid var(--panel2, #1c232d); }
.chart-table td.good { color: var(--good, #3fb950); } .chart-table td.warn { color: var(--partial, #d29922); } .chart-table td.bad { color: var(--bad, #f85149); }
.chart-table tbody tr:hover { background: var(--panel2, #1c232d); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--muted, #93a1b0); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
