/* Impressão / "Salvar como PDF": a ficha vira um documento de bancada, com
   fonte, versão e validade em cada página, notas abertas e checklist com
   caixas vazias. */

@page { size: A4; margin: 14mm 13mm 18mm; }

:root {
  --bg: #fff; --papel: #fff; --ink: #000; --muted: #333; --linha: #999; --suave: #eee;
  --acento: #000; --destaque: #f1f1f1; --sombra: none;
}

body { background: #fff; color: #000; font-size: 10.5pt; }
.topo .menu, .pular, .ferramentas, .exemplos, .caixa-busca, .nao-imprimir { display: none !important; }
.topo { padding: 0 0 6px; border-bottom: 1px solid #000; }
main, .rodape, .topo { max-width: none; padding-left: 0; padding-right: 0; }
a { color: #000; text-decoration: none; }
.so-impressao { display: block; }

.bloco, .cartao, .tabela-rolagem, .resultado { box-shadow: none; border-color: #999; break-inside: avoid; }
.tabela-rolagem { overflow: visible; }
.bp { min-width: 0; font-size: 8.5pt; }
.bp thead { display: table-header-group; }
.bp tr { break-inside: avoid; }
.secao-ficha { break-inside: auto; margin-top: 14px; }
.secao-ficha > h2 { break-after: avoid; }

details.notas > summary { list-style: none; }
details.notas:not([open]) > *:not(summary) { display: block; } /* notas sempre impressas */
.cartao details > *:not(summary) { display: block; }

.checklist input[type=checkbox] { appearance: none; width: 12px; height: 12px; border: 1px solid #000; border-radius: 2px; }
.checklist input[type=checkbox]:checked { background: #000; }
.checklist li { break-inside: avoid; padding: 4px 0; }
.checklist li.proximo { background: none; }
.param { background: none; text-decoration: underline; text-decoration-style: dotted; }
.campo input, .execucao input, .cq-valor { border: 0; border-bottom: 1px solid #000; border-radius: 0; width: 120px; background: none; }
.cronometro { display: none; }
.porque { display: none; }
.alternar { display: none; }

/* Folha de bancada: só o checklist escolhido, com cabeçalho e assinaturas. */
body.imprimindo-folha #conteudo > *:not(:has(.folha-alvo)),
body.imprimindo-folha #conteudo > * > *:not(.folha-alvo):not(:has(.folha-alvo)),
body.imprimindo-folha .rodape,
body.imprimindo-folha .execucao,
body.imprimindo-folha .arquivo { display: none !important; }
body.imprimindo-folha .so-folha { display: flex !important; flex-wrap: wrap; gap: 4px 24px; }
body.imprimindo-folha .linha-hora { display: inline !important; }
body.imprimindo-folha .folha-assinaturas { margin-top: 16px; padding-top: 8px; border-top: 1px solid #000; }
body.imprimindo-folha .cq-tabela tr:not(.cq-preenchida) { display: table-row; }
body.imprimindo-folha .cq-filtro { display: none; }

.selo { border: 1px solid #000; background: none !important; color: #000 !important; }
.alerta { border: 1px solid #000; background: none !important; color: #000 !important; }

.rodape-impressao {
  position: fixed; bottom: -12mm; left: 0; right: 0; font-size: 7.5pt; color: #333; border-top: 1px solid #999; padding-top: 2mm;
}
.resultado::after { opacity: 0.18; color: #000; }
