/* Linha expandida das listagens (usuário, tier, projeto, WBS): painel de consumo dos últimos 30 dias.
   Texto usa a cor do tema; marcas usam a cor da série (azul, a mesma do painel da pessoa). Modo escuro do Unfold: .dark */
.ro { container-type: inline-size; --ro-series: #2a78d6; --ro-line: color-mix(in srgb, currentColor 14%, transparent); font-size: 13px; }
.dark .ro { --ro-series: #3987e5; }
.ro-muted { opacity: .7; font-weight: 400; }
/* A linha expandida ocupa a largura da tabela, que em listagens largas passa da tela (rolagem horizontal):
   o painel fica preso à esquerda e limitado à largura visível (tela menos o menu lateral, de 1024px em diante) */
.ro { position: sticky; left: 12px; max-width: calc(100vw - 56px); }
@media (min-width: 1024px) { .ro { max-width: calc(100vw - 350px); } }
.ro h3, .ro h4 { margin: 0; font-size: 13px; font-weight: 600; }
.ro h4 { opacity: .8; margin-bottom: 6px; }
.ro-head { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.ro-head a { font-weight: 600; text-decoration: underline; }

.ro-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 14px; }
.ro-tile { padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, currentColor 5%, transparent); }
.ro-tile dt { font-size: 11px; opacity: .75; }
.ro-tile dd { margin: 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Gráfico (2 partes) e até três quebras (1 parte cada) lado a lado; em área estreita, tudo empilha em colunas flexíveis */
.ro-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ro-chart { margin: 0; min-width: 0; }
.ro-chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-weight: 600; margin-bottom: 6px; opacity: .9; }

/* Colunas finas (até 24px), ponta de dados arredondada em 4px, base reta; 2px de vão entre elas */
.ro-bars { display: flex; align-items: stretch; height: 72px; border-bottom: 1px solid var(--ro-line); }
.ro-bar { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 1px; border-radius: 4px 4px 0 0; outline: none; }
.ro-bar i { display: block; width: 100%; max-width: 24px; background: var(--ro-series); border-radius: 4px 4px 0 0; }
.ro-bar:hover, .ro-bar:focus-visible { background: color-mix(in srgb, currentColor 10%, transparent); }
.ro-bar:hover i, .ro-bar:focus-visible i { filter: brightness(1.15); }
.ro-axis { display: flex; justify-content: space-between; margin-top: 3px; font-size: 11px; opacity: .7; }

.ro details { margin-top: 6px; }
.ro summary { cursor: pointer; opacity: .8; }
.ro table { width: 100%; max-height: 220px; border-collapse: collapse; margin-top: 6px; }
.ro th, .ro td { padding: 3px 6px; text-align: left; border-bottom: 1px solid var(--ro-line); }
.ro .num { text-align: right; font-variant-numeric: tabular-nums; }

.ro-breakdown ul { list-style: none; margin: 0; padding: 0; }
.ro-breakdown li { margin-bottom: 8px; }
.ro-row { display: flex; justify-content: space-between; gap: 8px; }
.ro-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ro-value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ro-share { display: block; height: 4px; margin-top: 3px; background: var(--ro-series); border-radius: 0 4px 4px 0; }

.ro-empty { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--ro-line); }
.ro-empty .material-symbols-outlined { font-size: 18px; }

@container (max-width: 820px) {
  .ro-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .ro-chart { grid-column: 1 / -1; }
}
