/* Valiom · Simplificação · item 3: "Relatórios" (17/11/2026). Só com a chave (classe vrel, posta pelo vi-relatorios-vdb.js)
   e o visual novo (html.vdb). Só tokens da base; sem valor solto e sem !important. */

/* a faixa de abas ganha o botão "Exportar" no fim */
html.vdb.vrel:not(#_):not(#_) .vsr-faixa.vrel-faixa{display:flex;align-items:flex-end;gap:var(--vds-space-3)}
html.vdb.vrel:not(#_):not(#_) .vsr-faixa.vrel-faixa>.vds-tabs{flex:1;min-width:0}
html.vdb.vrel:not(#_):not(#_) .vrel-exportar{position:relative;margin-bottom:var(--vds-space-2)}
html.vdb.vrel:not(#_):not(#_) .vrel-exportar>summary{list-style:none;cursor:pointer}
html.vdb.vrel:not(#_):not(#_) .vrel-exportar>summary::-webkit-details-marker{display:none}
html.vdb.vrel:not(#_):not(#_) .vrel-exportar-menu{position:absolute;right:0;top:calc(100% + var(--vds-space-1));z-index:var(--vds-z-raised);min-width:240px}

/* os botões soltos de exportar e imprimir das três páginas: agora no "Exportar" */
html.vdb.vrel:not(#_):not(#_) #page-relatorios button[onclick="exportarRelatorio()"],
html.vdb.vrel:not(#_):not(#_) #page-dre button[onclick^="exportarDRE("],
html.vdb.vrel:not(#_):not(#_) #page-executive_report [data-vr="print"]{display:none}

@media (max-width:760px){
  html.vdb.vrel:not(#_):not(#_) .vsr-faixa.vrel-faixa{flex-wrap:wrap;align-items:stretch}
  html.vdb.vrel:not(#_):not(#_) .vrel-exportar{margin-bottom:0}
}

/* H2 (17/11/2026): um título só, "Relatórios" (o do topo), e as abas no mesmo lugar nas três.
   Saem os títulos de dentro das páginas e o cartão "Financeiro executivo" do alto do DRE (repetia o Resumo). */
html.vdb.vrel:not(#_):not(#_) #page-dre .pg-title,
html.vdb.vrel:not(#_):not(#_) #page-dre .pg-sub,
html.vdb.vrel:not(#_):not(#_) #page-relatorios .pg-title,
html.vdb.vrel:not(#_):not(#_) #page-relatorios .pg-sub,
html.vdb.vrel:not(#_):not(#_) #page-executive_report .vr-eyebrow,
html.vdb.vrel:not(#_):not(#_) #page-executive_report .vr-title,
html.vdb.vrel:not(#_):not(#_) #vx-exec-fin{display:none}
html.vdb.vrel:not(#_):not(#_) .vsr-faixa.vrel-faixa{flex-wrap:wrap}
html.vdb.vrel:not(#_):not(#_) .vsr-faixa.vrel-faixa>.vrel-titulo{flex:1 1 100%;margin:0 0 var(--vds-space-3);font-size:var(--vds-fs-page);font-weight:var(--vds-fw-title);line-height:var(--vds-lh-tight);color:var(--vds-text-primary)}
html.vdb.vrel.vrel-pg:not(#_):not(#_) #topbar-title{display:none}
html.vdb.vrel.vrel-pg:not(#_):not(#_) #vdb-tut{display:none}

/* J (17/11/2026): no Resumo a página não tem recuo (vi-report-vdb.css zera o padding e o relatório tem o próprio);
   a faixa ganha o recuo das outras duas abas para ficar no mesmo lugar */
html.vdb.vrel[data-vdb-tela="executive_report"]:not(#_):not(#_) #page-executive_report>.vsr-faixa{padding:var(--vds-space-6) var(--vds-space-8) 0}
