/* IMPETUS V58.6 — padrao institucional de impressao A4 */
@page{size:A4 portrait;margin:20mm}
html,body{width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important;color:#000!important}
body{font:10.5pt/1.42 Arial,Helvetica,sans-serif!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
body>header,.app-header,.no-print,.whatsapp-float{display:none!important}
main{position:static!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.print-sheet,.contract-sheet{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;color:#000!important;overflow:visible!important}
.print-sheet:before,.print-sheet:after{display:none!important}
.print-sheet h1,.print-sheet h2,.print-sheet h3{color:#000!important;break-after:avoid-page;page-break-after:avoid}
.print-sheet p,.print-sheet li,.print-sheet strong,.print-sheet small{color:#111!important;overflow-wrap:anywhere}
.print-title,.document-brand,.document-legal-line{break-inside:avoid-page;page-break-inside:avoid}
.document-brand{grid-template-columns:20mm minmax(0,1fr) minmax(40mm,auto)!important;gap:4mm!important;padding-bottom:3mm!important;border-color:#000!important}
.document-logo{width:18mm!important;height:18mm!important;max-width:18mm!important;max-height:18mm!important;object-fit:contain!important}
.document-heading{max-width:58mm!important}.document-heading strong{font-size:11pt!important}.document-heading span,.document-legal-line{color:#222!important}
.print-sheet table{width:100%!important;max-width:100%!important;border-collapse:collapse!important;table-layout:fixed!important;background:#fff!important;font-size:8.5pt!important}
.print-sheet thead{display:table-header-group}.print-sheet tfoot{display:table-footer-group}
.print-sheet tr{break-inside:avoid-page;page-break-inside:avoid}
.print-sheet th,.print-sheet td{height:auto!important;padding:2.2mm 1.8mm!important;border:1px solid #666!important;background:#fff!important;color:#000!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;vertical-align:top!important}
.print-sheet th{background:#ededed!important;font-size:8pt!important;letter-spacing:0!important;text-transform:none!important}
.signature-grid,.compact-signatures{break-inside:avoid-page;page-break-inside:avoid;grid-template-columns:1fr 1fr!important;gap:25mm!important;margin:18mm 8mm 0!important}
.signature-line{border-top:1px solid #000!important;color:#000!important;text-align:center!important;padding-top:2mm!important}
.history-sheet{font-size:6.8pt!important;line-height:1.18!important}
.history-sheet .document-brand{grid-template-columns:14mm minmax(0,1fr) minmax(35mm,auto)!important;gap:2.5mm!important;padding-bottom:1.5mm!important}
.history-sheet .document-logo{width:13mm!important;height:13mm!important}.history-sheet .document-identity h2{font-size:12pt!important}.history-sheet .document-heading strong{font-size:8.5pt!important}
.history-sheet .document-legal-line{font-size:5.7pt!important;padding:1mm!important}.history-sheet h2{font-size:8.5pt!important;margin:1.5mm 0!important}.history-sheet p{margin:1mm 0!important}
.history-sheet .history-identification{grid-template-columns:2fr 1fr 1fr!important;gap:1mm 2mm!important;margin:1.5mm 0!important;padding:1.5mm 2mm!important;break-inside:avoid-page;page-break-inside:avoid}
.history-sheet .history-identification span{font-size:5.4pt!important}.history-sheet .history-identification strong{font-size:6.2pt!important}
.history-sheet .history-matrix-wrap{width:100%!important;max-width:100%!important;overflow:visible!important}.history-sheet .history-matrix{table-layout:fixed!important;font-size:5.5pt!important}
.history-sheet .history-matrix th,.history-sheet .history-matrix td{padding:.75mm .45mm!important;font-size:5.5pt!important;line-height:1.05!important}.history-sheet .history-matrix .matrix-subject{width:22mm!important}
.history-sheet .history-establishments{font-size:5.5pt!important;padding:1.3mm 2mm!important;break-inside:avoid-page;page-break-inside:avoid}
.history-sheet .dependency-history,.history-sheet .history-notes,.history-sheet .history-legal{break-inside:avoid-page;page-break-inside:avoid}
.history-sheet .dependency-history p,.history-sheet .history-legal,.history-sheet .history-notes{font-size:5.8pt!important;line-height:1.15!important}
.history-sheet .compact-signatures{gap:22mm!important;margin:9mm 10mm 0!important;font-size:6pt!important}
.contract-body{padding:0!important;font-size:9pt!important;line-height:1.4!important}
