/* Balanços do sistema financeiro (versão HTML). Base: os componentes rc-* da página de reclamações. */
.rc-bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 16px 20px; }
.rc-f { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.rc-f select, .rc-f input { font: inherit; font-size: 0.95rem; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 7px 10px; min-width: 130px; max-width: 260px; }
.rc-f select:disabled { opacity: .6; }
.rc-f-inst { flex: 1 1 260px; }
.rc-f-inst input { width: 100%; max-width: none; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 20px; margin: 12px 0 4px; font-size: 0.9rem; }
.rc-chips .rc-hint { color: var(--muted); }
.rc-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 0.88rem; cursor: pointer; }
.rc-chip:hover { background: var(--link); }
.rc-chip span { opacity: 0.75; }
.rc-clear { background: transparent; border: 0; color: var(--link); font: inherit; font-size: 0.88rem; text-decoration: underline; cursor: pointer; padding: 4px; }
.rc-aviso { margin: 8px 0 0; padding: 10px 14px; border-left: 4px solid var(--heat-3); background: var(--surface); border-radius: 4px; font-size: 0.9rem; color: var(--ink); }
.bb-status { margin: 6px 0 0; min-height: 1.2em; font-size: 0.85rem; color: var(--muted); }
.rc-tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--rule); margin: 16px 0 16px; }
.rc-tabs button { font: inherit; font-weight: 600; font-size: 0.97rem; color: var(--muted); background: none; border: 0; padding: 10px 0; cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.rc-tabs button:hover { color: var(--ink); }
.rc-tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.rc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rc-grid .rc-wide, .rc-card.rc-wide { grid-column: 1 / -1; }
.rc-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 20px; min-width: 0; position: relative; }
.rc-card h2 { font-size: 1.05rem; margin: 0 0 4px; letter-spacing: -0.01em; }
.rc-sub { color: var(--muted); font-size: 0.84rem; margin: 0 0 10px; }
.rc-cardhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 10px; }
.rc-cardhead .rc-sub { margin: 0; max-width: 70ch; }
.rc-seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.rc-seg button { font: inherit; font-size: 0.85rem; background: var(--paper); color: var(--muted); border: 0; padding: 7px 10px; cursor: pointer; }
.rc-seg button + button { border-left: 1px solid var(--rule); }
.rc-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.rc-toggle { font: inherit; font-size: 0.88rem; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: 6px; padding: 7px 12px; cursor: pointer; }
.rc-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.rc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 0.8rem; margin: 0 0 8px; }
.rc-sw { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; }
.rc-chart { position: relative; width: 100%; min-height: 60px; }
.rc-chart svg { display: block; overflow: visible; }
.rc-chart text { font-family: var(--font-ui); font-size: 11.5px; fill: var(--muted); }
.rc-chart .lbl { fill: var(--ink); font-weight: 600; }
.rc-chart .grid { stroke: var(--rule); }
.rc-empty { color: var(--muted); font-size: 0.9rem; padding: 20px 0; margin: 0; }
.rc-tip { position: absolute; z-index: 10; pointer-events: none; background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 6px 20px rgba(22, 38, 46, 0.12); border-radius: 6px; padding: 8px 10px; font-size: 0.82rem; line-height: 1.5; color: var(--ink); max-width: 360px; white-space: pre-line; }
.rc-tip b { font-weight: 700; }
.rc-tablewrap { overflow: auto; max-height: 520px; border-top: 1px solid var(--rule); }
.rc-tablewrap.rc-tall { max-height: 720px; }
.rc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.84rem; }
.rc-table th { position: sticky; top: 0; z-index: 2; background: var(--surface); text-align: left; font-weight: 700; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--rule); vertical-align: bottom; user-select: none; }
.rc-table td { padding: 7px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rc-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-table th.n { text-align: right; min-width: 74px; }
.rc-table tr.total td { font-weight: 700; background: var(--paper); }
.rc-table tr.bloco td { font-weight: 700; color: var(--link); background: var(--surface); padding-top: 14px; border-bottom: 2px solid var(--rule); }
.rc-table tbody tr.clic { cursor: pointer; }
.rc-table tbody tr.clic:hover td { background: var(--paper); }
.rc-table tbody tr.sel td { background: #DCE8E5; font-weight: 600; }
.rc-table tr.filho td { color: var(--muted); font-size: 0.8rem; }
.rc-table tr.filho td.nome { padding-left: 34px; }
.rc-bt td.nome, .rc-bt th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 200px; max-width: 280px; }
.rc-bt th:first-child { z-index: 3; }
.rc-bt tr.sel td.nome { background: #DCE8E5; }
.rc-exp, .rc-exp-v { display: inline-block; width: 20px; height: 20px; margin-right: 6px; vertical-align: -4px; }
.rc-exp { border: 1px solid var(--rule); background: var(--paper); border-radius: 4px; font: inherit; font-size: 0.8rem; line-height: 16px; padding: 0; cursor: pointer; color: var(--ink); }
.rc-dim { color: var(--muted); }
.rc-nota { margin: 8px 0 0; }
.rc-slide th .rc-sw { margin-right: 4px; }
.rc-slide td:first-child { min-width: 260px; }
.rc-legenda-ind { font-size: 8pt; color: var(--muted); margin: 10px 0 0; line-height: 1.45; }
.rc-bal td:first-child { min-width: 380px; }
@media (max-width: 860px) {
  .rc-grid { grid-template-columns: 1fr; }
  .rc-f select { min-width: 110px; }
  .rc-bal td:first-child { min-width: 240px; }
}
.rc-tablewrap.rc-solta { max-height: none; }
.rc-chipgrupo { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-right: 10px; }
.rc-chiprot { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.rc-chart .rot { fill: #fff; font-weight: 700; font-size: 10.5px; }
.rc-chart .rot-fora { font-weight: 700; font-size: 10.5px; fill: var(--ink); }
.rc-bal td.nv1 { padding-left: 8px; } .rc-bal td.nv2 { padding-left: 22px; } .rc-bal td.nv3 { padding-left: 36px; } .rc-bal td.nv4 { padding-left: 50px; } .rc-bal td.nv5 { padding-left: 64px; }
.rc-chart svg.rc-sw, svg.rc-sw { display: inline-block; overflow: hidden; }

.rc-prodsel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 24px; }
.rc-prodsel .rc-f select { max-width: 360px; min-width: 280px; }
.rc-prodsel .rc-sub { margin: 0; flex: 1 1 300px; }
.rc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 8px; }
.rc-kpi { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; background: var(--paper); }
.rc-kpi span { display: block; font-size: 0.8rem; color: var(--muted); }
.rc-kpi b { display: block; font-size: 1.4rem; margin-top: 4px; color: var(--ink); font-variant-numeric: tabular-nums; }
