/* Telas de impressão (ficha, termo de entrega, etiqueta): A4 retrato */
.impressao { background: #d9dde0; min-height: 100vh; padding: 24px 16px 48px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.barra-impressao { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.folha { width: 210mm; min-height: 297mm; background: #fff; box-shadow: 0 0 34px -15px rgba(0, 0, 0, .3); display: flex; flex-direction: column; font: 13px/1.4 var(--f-corpo); color: #3a3a3a; }
.doc-topo { background: #0d3852; padding: 26px 12mm; display: flex; justify-content: space-between; align-items: center; gap: 20px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-topo img { height: 40px; width: auto; }
.doc-topo div { display: flex; flex-direction: column; align-items: flex-end; }
.doc-topo small { font: 700 14px var(--f-titulo); letter-spacing: 1.5px; color: #2ba8d1; }
.doc-topo strong { font: 800 34px/1 var(--f-titulo); color: #fff; }
.doc-corpo { flex: 1; padding: 8mm 12mm 0; display: flex; flex-direction: column; gap: 6mm; }
.doc-corpo h2 { font-size: 16px; letter-spacing: 1px; color: #c04e00; margin: 0 0 4px; }
.doc-corpo table { width: 100%; border-collapse: collapse; }
.doc-corpo td { padding: 4px 0; border-bottom: 1px solid #d1d1d1; vertical-align: top; }
.doc-corpo td + td { text-align: right; font-weight: 700; color: #0d3852; padding-left: 12px; }
.doc-duas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6mm; }
.doc-linha { display: flex; gap: 6mm; align-items: stretch; }
.doc-qr { margin: 0; width: 30mm; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.doc-qr img { width: 28mm; height: 28mm; }
.doc-qr figcaption { font-size: 11px; text-align: center; color: #595959; }
.doc-obs { background: #f4f1ec; border-radius: 8px; padding: 10px 14px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-obs p { margin: 2px 0; }
.doc-check th { text-align: left; font: 700 13px var(--f-titulo); letter-spacing: .6px; text-transform: uppercase; color: #0d3852; padding: 4px 0; border-bottom: 2px solid #d1d1d1; }
.doc-check th + th, .doc-check td + td { text-align: center !important; width: 26mm; font-size: 15px; }
.doc-assinaturas { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10mm; padding-top: 14mm; margin-top: auto; }
.doc-assinaturas div { border-top: 1px solid #3a3a3a; padding-top: 6px; font-size: 12px; }
.doc-rodape { margin: 8mm 12mm 10mm; padding-top: 10px; border-top: 1px solid #e7e7e7; display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: #595959; }
.folha-etiquetas { min-height: auto; padding: 12mm; }
.etiqueta { width: 90mm; height: 50mm; border: 1px dashed #6190ac; border-radius: 4px; padding: 4mm; display: flex; gap: 4mm; align-items: center; }
.etiqueta-qr { width: 38mm; height: 38mm; flex: none; }
.etiqueta div { display: flex; flex-direction: column; gap: 1.5mm; min-width: 0; }
.etiqueta-logo { height: 7mm; width: auto; align-self: flex-start; }
.etiqueta strong { font: 800 22px/1 var(--f-titulo); color: #0d3852; }
.etiqueta span { font-size: 10px; line-height: 1.3; color: #3a3a3a; }

@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .nao-imprimir, .toast { display: none !important; }
  .impressao { padding: 0; background: #fff; display: block; }
  .folha { box-shadow: none; width: 210mm; min-height: 296mm; }
  .folha-etiquetas { min-height: auto; padding: 10mm; }
}
@media screen and (max-width: 820px) {
  .folha { width: 100%; min-height: auto; }
  .doc-duas { grid-template-columns: 1fr; }
}
