/* Painel consumidor.gov.br (risco operacional e de conduta) — complementa dashboard-reclamacoes-html.css */
.cg-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 16px 0 4px; }
.cg-kpi { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; }
.cg-kpi b { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.cg-kpi span { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.cg-insight { background: var(--surface); border-left: 4px solid var(--heat-4); border-radius: 4px; padding: 12px 16px; margin: 0 0 16px; font-size: .92rem; line-height: 1.5; }
.cg-insight b { font-weight: 700; }
.cg-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.cg-insights .cg-insight { margin: 0; }
.cg-insights h3 { font-size: .95rem; margin: 0 0 4px; }
.cg-insights p { margin: 0; color: var(--ink); font-size: .87rem; line-height: 1.45; }

/* matriz de risco */
.cg-matrix-wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.cg-cell { stroke: var(--surface); stroke-width: 2; }
.cg-dot { stroke: var(--surface); stroke-width: 2; cursor: pointer; }
.cg-dot.sel { stroke: var(--ink); stroke-width: 2.5; }
.cg-dot.apagado { opacity: .25; }
.rc-chart .cg-dlbl { font-size: 11px; fill: var(--ink); pointer-events: none; }
.rc-chart .cg-axis { font-size: 12px; fill: var(--muted); font-weight: 600; }
.rc-chart .cg-ref { stroke: var(--muted); stroke-dasharray: 4 4; fill: none; }
.cg-detail h3 { font-size: 1.15rem; margin: 0 0 2px; }
.cg-detail .rc-sub { margin-bottom: 12px; }
.cg-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0 0 14px; }
.cg-metrics div { border-top: 1px solid var(--rule); padding-top: 6px; font-size: .82rem; color: var(--muted); }
.cg-metrics b { display: block; color: var(--ink); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.cg-metrics em { font-style: normal; font-size: .76rem; }
.cg-badge { display: inline-block; border-radius: 4px; padding: 1px 7px; font-size: .78rem; font-weight: 700; }
.cg-catbar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; gap: 2px; margin: 4px 0 6px; background: var(--surface); }
.cg-catbar i { display: block; height: 100%; }
.cg-k0 { background: var(--heat-5); } .cg-k1 { background: var(--heat-4); } .cg-k2 { background: var(--link); }
.cg-k3 { background: var(--heat-2); } .cg-k4 { background: var(--muted); } .cg-k5 { background: var(--heat-1); }
.rc-table th.sort { cursor: pointer; user-select: none; }
.rc-table th.sort:hover { color: var(--ink); }
.rc-table th.sort[aria-sort] { color: var(--ink); }
.cg-note { color: var(--muted); font-size: .8rem; margin: 10px 0 0; line-height: 1.45; }
.cg-src { columns: 2; column-gap: 32px; font-size: .9rem; line-height: 1.55; }
.cg-src h3 { break-after: avoid; font-size: 1rem; margin: 0 0 4px; }
.cg-src p, .cg-src ul { margin: 0 0 14px; break-inside: avoid; }
.cg-src li { margin-bottom: 4px; }
.cg-maptable td:first-child { white-space: nowrap; font-weight: 600; }
@media (max-width: 960px) {
  .cg-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-insights, .cg-matrix-wrap { grid-template-columns: 1fr; }
  .cg-src { columns: 1; }
}
.cg-nome { white-space: nowrap; font-weight: 600; }
.cg-segl { display: block; font-size: .76rem; }
.cg-insights-box h2 { font-size: 1rem; }
ul.cg-insights { display: block; margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .88rem; line-height: 1.55; }
ul.cg-insights li { margin-bottom: 8px; }
ul.cg-insights b { color: var(--ink); font-weight: 600; }
