#print-root {
  position: absolute;
  left: -20000px;
  top: 0;
  width: 210mm;
  display: block;
  visibility: hidden;
}
.pagination-workbench {
  position: absolute;
  left: -20000px;
  top: 0;
  width: 210mm;
  visibility: hidden;
}
.folha {
  width: 210mm;
  height: 297mm;
  padding: var(--margem, 18mm);
  background: white;
  color: #172c42;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 10pt;
  line-height: 1.5;
  overflow: hidden;
}
.cabecalho-folha {
  flex: none;
  margin-bottom: 6mm;
}
.conteudo-folha {
  flex: 1;
  min-height: 0;
  display: block;
}
.rodape-folha {
  flex: none;
  padding-top: 3mm;
  margin-top: 4mm;
  border-top: 1px solid #becbd7;
  font-size: 8pt;
  color: #465c70;
  min-height: 7mm;
}
.folha h1 {
  font-size: 21pt;
  line-height: 1.17;
  margin: 0 0 4mm;
  color: var(--cor-documento, #102c48);
}
.folha h2 {
  font-size: 12pt;
  margin: 3mm 0 2mm;
  color: var(--destaque, var(--cor-documento, #102c48));
  line-height: 1.25;
}
.folha h3 {
  font-size: 10pt;
  margin: 2mm 0;
}
.folha p {
  margin: 0 0 3mm;
}
.folha table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 9pt;
}
.folha th,
.folha td {
  border: 1px solid #bcc9d5;
  padding: 2mm;
  text-align: left;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.folha th {
  background: #eef3f7;
  color: #243c53;
  font-weight: 600;
}
.folha ul,
.folha ol {
  padding-left: 5mm;
  margin: 2mm 0 3mm;
}
.folha li {
  margin-bottom: 1.5mm;
}
.folha img {
  max-width: 100%;
  height: auto;
}
.folha .logo-institucional {
  max-width: 34mm;
  max-height: 18mm;
  object-fit: contain;
  margin-bottom: 3mm;
}
.bloco-impresso {
  overflow-wrap: anywhere;
  vertical-align: top;
}
.bloco-impresso.meia-largura {
  display: inline-block;
  margin-right: 3mm;
  width: calc(50% - 3mm) !important;
}
.folha .passos {
  list-style: none;
  counter-reset: passo var(--inicio-passo, 0);
  padding-left: 0;
}
.folha .passos > li {
  counter-increment: passo;
  display: flex;
  gap: 3mm;
  break-inside: avoid;
  margin-bottom: 3mm;
}
.folha .passos > li:before {
  content: counter(passo, decimal-leading-zero);
  color: var(--cor-documento);
  font-size: 10pt;
  font-weight: 700;
  width: 7mm;
  flex: none;
  padding-top: 1mm;
}
.passo-corpo {
  flex: 1;
  min-width: 0;
}
.passo-topo {
  display: flex;
  justify-content: space-between;
  gap: 4mm;
}
.tempo-passo {
  margin-left: auto;
  color: #42596e;
  font-size: 8pt;
}
.ponto-critico {
  font-size: 8pt;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #748aa0;
}
.folha .nota-professor {
  background: #edf4f8;
  border-left: 2px solid #7391aa;
  padding: 2mm;
  margin: 2mm 0;
  font-size: 9pt;
}
.aviso-seguranca {
  border: 1px solid #9eb5c6;
  background: #f2f7fa;
  padding: 3mm;
}
.aviso-seguranca h2 {
  margin-top: 0;
}
.pauta {
  height: 7mm;
  border-bottom: 1px solid #bcc7d1;
}
.pautas {
  margin-bottom: 3mm;
}
.formula {
  font-family: Georgia, serif;
  font-size: 12pt;
  background: #f0f4f7;
  padding: 3mm;
  margin-bottom: 3mm;
  white-space: pre-wrap;
}
.figura {
  margin-top: 2mm;
  margin-bottom: 3mm;
  max-width: 100%;
}
.figura img {
  display: block;
  width: 100%;
  max-height: 180mm;
}
.figura figcaption {
  font-size: 8pt;
  color: #3d5468;
  text-align: center;
  margin-top: 2mm;
}
.figura figcaption small {
  display: block;
  font-size: 7pt;
}
.imagem-vazia {
  min-height: 28mm;
  background: #f1f4f7;
  border: 1px dashed #a7bacb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #51697e;
}
.galeria {
  display: grid;
  gap: 4mm;
}
.assinaturas {
  display: flex;
  gap: 10mm;
  justify-content: space-evenly;
  text-align: center;
  margin-top: 12mm;
}
.assinaturas > div {
  flex: 1;
}
.linha-assinatura {
  border-top: 1px solid #586e81;
  margin-bottom: 2mm;
}
.referencias {
  font-size: 8pt;
  overflow-wrap: anywhere;
}
.referencias ul {
  list-style: none;
  padding: 0;
}
.diario-secoes > section,
.questoes > li,
figure,
tr {
  break-inside: avoid;
}
.orientacao-diario {
  font-size: 9pt;
}
.ghs {
  width: 10mm !important;
  height: 10mm !important;
  display: block;
  object-fit: contain;
}
.divisor {
  border: 0;
  border-top: 1px solid #a7bacb;
}
.folha.compacta {
  font-size: 9pt;
  line-height: 1.35;
}
.compacta .pauta {
  height: 6mm;
}
.compacta .bloco-impresso {
  margin-bottom: 2mm !important;
}
.folha.economica {
  filter: grayscale(1);
}
.economica .aviso-seguranca,
.economica .formula,
.economica .nota-professor,
.economica th {
  background: white !important;
}
.serifada {
  font-family: Georgia, "Times New Roman", serif;
}
.edit-only {
  display: none;
}
.folha-escala {
  position: relative;
  margin: 0 auto 28px;
  box-shadow: 0 3px 24px #102c4820;
}
.folha-escala .folha {
  transform: scale(var(--escala, 1));
  transform-origin: top left;
}
@page {
  size: A4 portrait;
  margin: 0;
}
@media print {
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
  }
  body > *:not(#print-root) {
    display: none !important;
  }
  #print-root {
    position: static;
    left: auto;
    visibility: visible;
    width: 210mm;
  }
  #print-root .folha {
    break-after: page;
    page-break-after: always;
    box-shadow: none;
    transform: none;
    margin: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #print-root .folha:last-child {
    break-after: auto;
    page-break-after: auto;
  }
  thead {
    display: table-header-group;
  }
  tfoot {
    display: table-footer-group;
  }
  tr,
  img,
  .passo,
  .questoes > li,
  .diario-secoes > section {
    break-inside: avoid;
  }
  h1,
  h2,
  h3 {
    break-after: avoid;
  }
  .edit-only {
    display: none !important;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
}
