/* ===== RELATÓRIOS DA OPERAÇÃO =====
   Padrão de espaçamento: 4/8/12/16/24px
   Nenhum botão pode ficar colado em outro componente
   Título de seção: 12px topo; parágrafo após título: 4-6px
   Botão de submit: 16px de respiro acima do formulário/grid/dropzone */

/* ── Toolbar de filtros do relatório ── */
.toolbar.report-noprint {
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.toolbar.report-noprint .spacer { flex: 1; }
.toolbar.report-noprint .muted { font-size: 11px; white-space: nowrap; }

/* ── Stats strip (cards numéricos) ── */
.stats-strip { margin-bottom: 24px; }
.stats-strip .stat .value { font-family: var(--display); }

/* ── Painel de gráfico ── */
.panel .section-title { margin-bottom: 16px; margin-top: 12px; }
.panel .section-title h2 { margin: 0; font-size: 14px; }
.panel .section-title .muted { font-size: 10px; color: var(--muted); margin-top: 4px; }

/* ── Gráfico de barras ── */
.chart { display: flex; align-items: flex-end; gap: 12px; height: 140px; padding-top: 16px; }
.chart .bar-group { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 36px; height: 100%; }
.chart .bar-group .bar { width: 100%; max-width: 28px; background: var(--green); border-radius: 4px 4px 0 0; transition: height 0.3s ease; }
.chart .bar-group small { margin-top: 8px; font-size: 10px; color: var(--muted); text-align: center; }

/* ── Funil de produção ── */
.report-funnel { display: flex; gap: 4px; height: 14px; border-radius: 8px; overflow: hidden; background: #e7eae0; margin-top: 16px; }
.report-funnel span { display: block; min-width: 3px; border-radius: 2px; transition: flex 0.3s ease; }

/* ── Legenda do funil ── */
.report-funnel-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin-top: 16px; font-size: 11.5px; }
.report-funnel-legend .row { display: flex; align-items: center; justify-content: space-between; }
.report-funnel-legend .row > span { display: flex; align-items: center; gap: 8px; }
.rep-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ── Distribuição (barras de progresso) ── */
.report-dist { margin-top: 12px; }
.report-dist:first-child { margin-top: 0; }
.report-dist .row { display: flex; align-items: center; justify-content: space-between; }
.report-dist .progress { margin-top: 8px; }

/* ── Tabela de desempenho ── */
.table-wrap { overflow: auto; margin-top: 16px; }
.table { margin: 0; }
.table th, .table td { padding: 12px 16px; vertical-align: middle; }

/* ── Lista responsáveis / gargalos ── */
.list-row { padding: 12px 16px; }
.list-row:first-child { padding-top: 0; }
.list-row .avatar { flex-shrink: 0; }
.list-row .spacer strong { font-size: 13px; }
.list-row .spacer p { margin: 4px 0 0; font-size: 11px; }

/* ── Badge de tempo de espera ── */
.report-wait { font-size: 10px; font-weight: 700; color: #8f3d2c; background: #f6ded6; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }

/* ── Gargalos: itens clicáveis ── */
a.list-row { text-decoration: none; color: inherit; display: flex; }
a.list-row:hover { background: #f6f8f0; }
a.list-row .report-wait { flex-shrink: 0; }

/* ── Botões de ação do relatório ── */
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ── Nota de rodapé ── */
.report-note { margin-top: 16px; padding: 12px 16px; font-size: 11px; color: var(--muted); line-height: 1.5; background: #f7f9f1; border-radius: 8px; }

/* ── Espaçamento entre painéis do relatório ── */
.two + .two, .two + .panel, .panel + .two { margin-top: 24px; }
.content .two { align-items: start; gap: 24px; }
.content .two > .panel { min-height: 280px; }
.content > .panel { min-height: 280px; }

/* ── Espaçamento interno dos painéis ── */
.panel .section-title:first-child { margin-top: 0; }
.panel .chart { margin-top: 16px; }
.panel .report-funnel { margin-top: 16px; }
.panel .report-funnel-legend { margin-top: 16px; }
.panel .report-dist { margin-top: 16px; }
.panel .report-dist:first-child { margin-top: 0; }
.panel .table-wrap { margin-top: 16px; }
.panel .list-row { padding: 12px 0; }
.panel .list-row:first-child { padding-top: 0; }
.panel .divider { margin: 24px 0; }
.panel .report-actions { margin-top: 16px; }
.panel .report-note { margin-top: 16px; }

/* ── Impressão ── */
@media print {
  .report-noprint { display: none !important; }
  .panel { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}

/* ── Responsivo ── */
@media (max-width: 720px) {
  .report-funnel-legend { grid-template-columns: 1fr; gap: 8px; }
}

/* ── Distância vertical entre cards e blocos ── */
.content .two{column-gap:24px;row-gap:24px}
.content .two+.two,
.content .two+.panel,
.content .panel+.two{margin-top:24px!important}