#report-dialog {
  --report-text:var(--ink);
  --report-muted:var(--ink2);
  --report-surface:var(--surface);
  --report-panel:var(--bg);
  --report-border:var(--line);
  --report-accent:var(--green);
  --report-negative:#a32a25;

  width:min(850px,calc(100% - 24px));
  max-height:calc(100% - 24px);
  padding:0;
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--report-text);
  background:var(--report-surface);
}
#report-dialog::backdrop {background:#071a32ba}
.report-actions {
  display:flex; flex-wrap:wrap; align-items:end; gap:10px;
  padding:14px 20px; background:var(--report-panel); border-bottom:1px solid var(--report-border);
  color:var(--report-text);
}
.report-actions label {display:grid;gap:4px;font-size:12px;font-weight:600;margin-right:auto}
.report-actions select {padding:8px;border:1px solid var(--report-border);border-radius:6px;color:var(--report-text);background:var(--report-surface)}
.report-actions button {padding:8px 12px;border:1px solid var(--report-border);border-radius:6px;background:var(--report-surface);color:var(--report-text);cursor:pointer}
.report-actions #report-download {background:#185f50;color:#fff;border-color:#185f50}
#report-content {padding:24px;overflow-wrap:anywhere}
.report-header {display:flex;align-items:center;gap:16px;padding:0 0 14px;border-bottom:2px solid var(--report-accent)}
.report-header img {width:70px;height:auto;box-sizing:border-box;background:#fff;padding:4px;border-radius:6px}
.report-brand {margin:0;color:var(--report-accent);font:600 10px/1.4 system-ui;letter-spacing:.08em}
.report-header h2 {margin:3px 0;font:650 28px/1.1 system-ui;color:var(--report-text)}
.report-company {margin:0;font:600 14px/1.35 system-ui}
.report-meta {display:flex;flex-wrap:wrap;gap:6px 18px;padding:12px 0;color:var(--report-muted);font-size:12px}
.report-meta strong {color:var(--report-text)}
.report-cards {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:4px 0 12px}
.report-cards div {padding:9px 10px;border:1px solid var(--report-border);border-radius:6px;background:var(--report-panel)}
.report-cards dt {font-size:11px;color:var(--report-muted)}
.report-cards dd {margin:4px 0 0;font:700 17px/1.25 system-ui;font-variant-numeric:tabular-nums}
.report-balances {display:flex;flex-wrap:wrap;gap:5px 22px;margin:0 0 9px;font-size:12px;font-weight:600}
.report-reference {margin:0 0 10px;padding:7px 10px;background:var(--report-panel);border-left:3px solid var(--report-accent);font-size:12px}
.report-table-wrap {overflow-x:auto}
.report-table {width:100%;min-width:0;border-collapse:collapse;font-size:11px;font-variant-numeric:tabular-nums}
.report-table caption {text-align:left;margin:0 0 6px;font-size:14px;font-weight:700}
#report-content .report-table :is(th,td) {color:var(--report-text);background:var(--report-surface);padding:7px 6px;border-bottom:1px solid var(--report-border);text-align:right;white-space:nowrap}
#report-content .report-table tr :first-child {text-align:left}
#report-content .report-table :is(thead,tfoot) :is(th,td) {background:var(--report-panel);font-weight:700}
#report-content .report-table td.report-negative {color:var(--report-negative)}
.report-notes {margin-top:11px;color:var(--report-muted);font-size:10px;line-height:1.4}
.report-notes p {margin:4px 0}
.report-empty {padding:12px;border:1px solid var(--report-border);border-radius:6px;background:var(--report-panel)}
@media screen and (max-width:600px) {
  #report-content {padding:16px}
  .report-cards {grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-meta {display:grid}
}
@media print {
  @page {size:A4 portrait;margin:12mm}
  body:has(#report-dialog[open]) > :not(#report-dialog) {display:none!important}
  body:has(#report-dialog[open]) {background:var(--surface)!important;margin:0;padding:0}
  #report-dialog[open] {position:static;inset:auto;width:100%;box-sizing:border-box;max-width:none;height:auto;max-height:none;margin:0;padding:0;border:0;overflow:visible;border-radius:0}
  #report-dialog::backdrop {display:none}
  .report-actions {display:none!important}
  #report-content {padding:10px;font:10pt/1.35 system-ui;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .report-header,.report-meta,.report-cards,.report-balances,.report-reference,.report-table tr {break-inside:avoid}
  .report-cards dd {font-size:13pt}
  .report-table-wrap {overflow:visible}
  .report-table {font-size:8.5pt}
  #report-content .report-table :is(th,td) {padding:5px 4px}
  .report-table thead {display:table-header-group}
  .report-table tfoot {display:table-row-group}
}

:root[data-theme="dark"] #report-dialog {--report-negative:#ffaaa3}

.report-chart {margin:0 0 12px;padding:8px 10px 4px;border:1px solid var(--report-border);border-radius:6px}
.report-chart figcaption {font-size:14px;font-weight:700}
.report-chart-legend {display:flex;flex-wrap:wrap;gap:3px 14px;margin:4px 0;padding:0;list-style:none;font-size:11px}
.report-chart-legend li::before {
  content:"";display:inline-block;width:9px;height:9px;margin-right:4px;border-radius:2px;background:var(--series-color);
}
.report-series-fat {--series-color:var(--s-fat)}
.report-series-custos {--series-color:var(--c5)}
.report-series-lucro {--series-color:var(--s-lucro)}
.report-chart-loss {--series-color:var(--report-negative)}
.report-chart svg {display:block;width:100%;height:auto;max-height:174px}
.report-chart rect {fill:var(--series-color)}
.report-chart text {fill:var(--report-muted);font:12px system-ui}
.report-chart-grid {stroke:var(--report-border)}
.report-chart-zero {stroke:var(--report-muted)}
@media print {
  #report-dialog[open] {print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .report-chart {break-inside:avoid}
  .report-chart svg {max-height:145px}
  #report-content .report-table th {white-space:normal}
}
