/* =====================================================================
   Gestão CIPA — IMPRESSÃO / PDF
   Durante a impressão, somente #print-root aparece.
   ===================================================================== */
#print-root { display: none; }

@media print {
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing { background: #fff !important; }
  body.printing #print-root { display: block; color: #111; font-family: 'Inter', Arial, sans-serif; font-size: 10.5pt; line-height: 1.45; }
  .pr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 2.5px solid #F26A1B; padding-bottom: 8px; margin-bottom: 14px; }
  .pr-app { font-size: 8.5pt; font-weight: 700; color: #D9570C; text-transform: uppercase; letter-spacing: .06em; }
  .pr-head h1 { font-size: 16pt; margin: 2px 0 0; color: #111; }
  .pr-head p { color: #555; font-size: 9pt; margin-top: 2px; }
  .pr-date { font-size: 8.5pt; color: #555; white-space: nowrap; }
  .pr-body h2 { font-size: 11.5pt; margin: 16px 0 6px; color: #222; border-left: 3px solid #F26A1B; padding-left: 7px; }
  .pr-body h3 { font-size: 10.5pt; margin: 12px 0 4px; }
  .pr-body p { margin: 0 0 6px; }
  .pr-table { width: 100%; border-collapse: collapse; font-size: 8.8pt; }
  .pr-table th { background: #2B2F36 !important; color: #fff !important; text-align: left; padding: 5px 6px; font-weight: 600; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pr-table td { border-bottom: 1px solid #ddd; padding: 4px 6px; vertical-align: top; }
  .pr-table tr { page-break-inside: avoid; }
  .pr-kv { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  .pr-kv th { width: 32%; text-align: left; color: #555; font-weight: 600; padding: 4px 8px 4px 0; vertical-align: top; border-bottom: 1px solid #eee; }
  .pr-kv td { padding: 4px 0; border-bottom: 1px solid #eee; white-space: pre-wrap; }
  .pr-count { margin-top: 8px; font-size: 8.5pt; color: #666; }
  .pr-foot { margin-top: 20px; padding-top: 6px; border-top: 1px solid #ddd; font-size: 7.5pt; color: #777; }
  .pr-doc { white-space: pre-wrap; font-size: 10.5pt; }
  .pr-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin-top: 26px; }
  .pr-sign div { border-top: 1px solid #333; padding-top: 4px; font-size: 9pt; text-align: center; }
  .pr-box { border: 1px solid #ccc; border-radius: 6px; padding: 8px 10px; margin: 8px 0; }
  .pr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; font-size: 9.5pt; }
  .pr-break { page-break-before: always; }
  a { color: #111; text-decoration: none; }
}
