/* Duas propostas de apresentação, sem alterar o renderer em uso. */
.report-reference.modern-report{font-family:Arial,Helvetica,sans-serif;color:#191d22}
.modern-report .modern-top{display:grid;grid-template-columns:1fr 1.25fr;align-items:center;gap:24px;padding-bottom:14px;border-bottom:2px solid #246d73;margin-bottom:12px}
.modern-report .report-origin-brand{text-align:left;padding:0}
.modern-report .report-origin-brand>img.report-brand-logo{width:235px;height:auto;max-height:65px;object-position:left center;margin:0}
.modern-report .report-origin-name{display:none}
.modern-report .modern-document{text-align:right}
.modern-report .report-heading{background:none;padding:0;color:#191d22;text-align:right;font-family:inherit;font-size:14px;line-height:1.3}
.modern-report .report-code{font-family:inherit;font-size:inherit;color:#191d22;margin:8px 0 0}
.modern-report .report-code b{margin-left:6px}
.modern-report .report-identification{display:block;border:0;padding:0}
.modern-report .report-patient{font-family:inherit;font-size:inherit}
.modern-report .modern-patient-summary{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1.05fr) minmax(0,.8fr);gap:20px;background:#f1f6f7;border:1px solid #d9e4e5;border-radius:5px;padding:12px 14px}
.modern-report .modern-field{min-width:0;margin:0;line-height:1.35}
.modern-report .modern-field-label{display:block;font-family:inherit;font-size:inherit;font-weight:400;color:#46545e;margin-bottom:3px}
.modern-report .modern-field-value{display:block;font-family:inherit;font-size:inherit;font-weight:700;color:#191d22;line-height:1.35}
.modern-report .modern-patient-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 20px;padding:12px 14px 8px}
.modern-report .report-clinical-info{font-family:inherit;font-size:inherit;color:#191d22;background:#fafbfc;border:1px solid #e4e8ea;border-radius:4px;padding:8px 14px;margin:5px 0 0!important}
.modern-report .report-demo-warning{margin:0 0 10px;padding:0;border:0;font-size:9px;color:#555}
.modern-report .report-body{padding-top:0}
.modern-report .report-block{margin-top:15px}
.modern-report .report-block h3{font-family:inherit;font-size:inherit;border-bottom:1px solid #d9e1e6;padding-bottom:5px;margin-bottom:7px;color:#191d22}
.modern-report .report-answer{margin-left:0!important;text-decoration:none}
.modern-report .report-result-line{margin:2px 0!important}
.modern-report .report-result-line>span{text-decoration:none}
.modern-report .modern-taxon,.modern-report i{white-space:nowrap}
.modern-report .report-findings{margin:0}
.modern-report .report-findings h4{font-size:inherit;text-transform:none;font-weight:400;color:#46545e;margin:0 0 6px}
.modern-report .report-findings h4:before{display:none}
.modern-report .modern-sample-grid{display:grid;grid-template-columns:1.3fr 1fr;column-gap:20px}
.modern-report .modern-sample-grid .report-block:last-child{grid-column:1/-1}
.modern-report .modern-conclusion{background:#f5f8fd;border:1px solid #dbe5f2;border-left:3px solid #0000ff;border-radius:4px;padding:10px 14px;break-inside:avoid}
.modern-report .modern-conclusion.altered{background:#fff8f8;border-color:#efdede;border-left-color:#ff0000}
.modern-report .modern-conclusion h3{border:0;padding:0;margin-bottom:5px}
.modern-report .report-conclusion{margin:0;text-decoration:none;font-size:inherit}
.modern-report .report-reference-footer{margin-top:22px;padding-top:0}
.modern-report .report-footer-notes{border-top:1px solid #b7c3cd;padding-top:7px}
.modern-report .report-responsible{background:#f1f6f7;border-radius:3px;padding:7px 9px}
.modern-report .report-signature-block p{font-family:inherit;font-size:12px}
.modern-report .report-signature-block{margin-bottom:12px}
.modern-report.modern-b .modern-top{border-bottom:1px solid #aebfc9;padding-bottom:16px}
.modern-report.modern-b .modern-patient-summary{background:none;border:0;border-radius:0;padding:0 0 12px}
.modern-report.modern-b .modern-patient-details{border-top:1px solid #d9e1e6;border-bottom:1px solid #d9e1e6;padding:10px 0;row-gap:10px}
.modern-report.modern-b .report-clinical-info{background:none;border:0;padding:8px 0;margin:0!important}
.modern-report.modern-b .report-block{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;border-bottom:1px solid #e1e6ea;padding:10px 0;margin:0}
.modern-report.modern-b .report-block h3{border:0;margin:0;padding:0}
.modern-report.modern-b .report-findings h4{margin-bottom:4px}
.modern-report.modern-b .modern-conclusion{border:0;border-top:2px solid #bacad5;border-radius:0;background:none;margin-top:10px;padding:12px 0}
.modern-report.modern-b .modern-conclusion.altered{border-color:#bacad5;background:none}
.modern-report.modern-b .report-responsible{background:none;border-left:2px solid #246d73;border-radius:0;padding:3px 9px}
@media print{
 .report-reference.modern-report{font-size:9.5pt;line-height:1.3}
 .modern-report .modern-top{gap:5mm;padding-bottom:3mm;margin-bottom:2.5mm}
 .modern-report .report-origin-brand>img.report-brand-logo{width:65mm;max-height:17mm;height:auto}
 .modern-report .report-heading{font-size:11pt}
 .modern-report .report-code{margin-top:2mm;font-size:9.5pt}
 .modern-report .report-code b{margin-left:1.5mm}
 .modern-report .report-demo-warning{font-size:7pt;margin-bottom:2mm}
 .modern-report .modern-patient-summary{gap:4mm;padding:2.5mm 3mm}
 .modern-report .modern-field-label{font-size:9.5pt;margin-bottom:.7mm}
 .modern-report .modern-field-value{font-size:9.5pt}
 .modern-report .modern-patient-details{gap:2mm 4mm;padding:2.5mm 3mm 2mm}
 .modern-report .report-clinical-info{font-size:9.5pt;padding:2mm 3mm;margin:1mm 0 0!important}
 .modern-report .report-block{margin-top:3mm}
 .modern-report .report-block h3{font-size:9.5pt;padding-bottom:1mm;margin-bottom:1.5mm}
 .modern-report .report-findings h4{font-size:9.5pt;margin-bottom:1mm}
 .modern-report .modern-sample-grid{column-gap:5mm}
 .modern-report .modern-conclusion{padding:2.5mm 3mm;margin-top:4mm}
 .modern-report .modern-conclusion h3{padding:0;margin-bottom:1mm}
 .modern-report .report-conclusion{font-size:9.5pt}
 .modern-report .report-reference-footer{margin-top:6mm}
 .modern-report .report-signature-block{margin-bottom:3mm}
 .modern-report .report-signature-block p{font-size:9.5pt}
 .modern-report .report-footer-notes{padding-top:1.5mm}
 .modern-report .report-responsible{padding:1.5mm 2mm}
 .modern-report.modern-b .modern-top{padding-bottom:3mm}
 .modern-report.modern-b .modern-patient-summary{padding:0 0 2.5mm}
 .modern-report.modern-b .modern-patient-details{padding:2mm 0;row-gap:2mm}
 .modern-report.modern-b .report-clinical-info{padding:2mm 0;margin:0!important}
 .modern-report.modern-b .report-block{grid-template-columns:42mm minmax(0,1fr);gap:4mm;padding:3mm 0;margin:0}
 .modern-report.modern-b .report-block h3{padding:0;margin:0}
 .modern-report.modern-b .modern-conclusion{margin-top:2mm;padding:3mm 0}
 .modern-report.modern-b .report-responsible{padding:1mm 2mm}
}

/* Com observação e três notas, preservar tamanho do texto clínico e reduzir apenas espaços. */
@media print{
 .modern-report .modern-top{padding-bottom:2mm;margin-bottom:2mm}
 .modern-report .modern-patient-summary{padding:2mm 3mm}
 .modern-report .modern-field-label{margin-bottom:.4mm}
 .modern-report .modern-patient-details{gap:1.5mm 4mm;padding:2mm 3mm 1.5mm}
 .modern-report .report-clinical-info{padding:1.5mm 3mm;margin:.5mm 0 0!important}
 .modern-report .report-block{margin-top:2.5mm}
 .modern-report .report-block h3{padding-bottom:.5mm;margin-bottom:1mm}
 .modern-report .modern-conclusion{margin-top:3mm;padding:2mm 3mm}
 .modern-report .report-reference-footer{margin-top:4mm}
 .modern-report .report-footer-notes>p{line-height:1.25;margin:1mm 0}
 .modern-report.modern-b .modern-top{padding-bottom:2mm}
 .modern-report.modern-b .report-block{padding:2.5mm 0}
 .modern-report.modern-b .report-block h3{padding:0;margin:0}
 .modern-report.modern-b .modern-conclusion{padding:2.5mm 0}
}

.modern-report .modern-adequacy-observation.report-block,
.modern-report.modern-b .modern-adequacy-observation.report-block{display:block;margin:3px 0 0;padding:0;border:0}
.modern-report .modern-adequacy-observation>h3{display:none}

/* Revisão de alinhamento: grade de quatro colunas, com dados em duas colunas. */
.modern-report .modern-patient-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.modern-report .modern-patient-summary>.modern-field:first-child{grid-column:span 2}
.modern-report .modern-patient-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 16px}
.modern-report .modern-patient-details .modern-field-label,
.modern-report .modern-patient-details .modern-field-value{display:inline}
.modern-report .modern-patient-details .modern-field-label{margin:0 5px 0 0}
.modern-report .report-body{padding:0 14px}
.modern-report .modern-sample-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}
.modern-report .modern-bullets{list-style:disc;margin:0;padding:0 0 0 15px}
.modern-report .modern-bullets li{padding-left:2px;margin:3px 0;line-height:1.3}
.modern-report .modern-bullets li::marker{color:#46545e;font-size:.85em}
.modern-report .modern-bullets .report-result-line{margin:0!important}
.modern-report.modern-b .report-block{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.modern-report.modern-b .report-block>h3{grid-column:1}
.modern-report.modern-b .report-block>.modern-section-content{grid-column:2/span 3}
.modern-report.modern-b .modern-patient-summary,
.modern-report.modern-b .modern-patient-details{padding-left:14px;padding-right:14px}
@media print{
 .modern-report .modern-patient-summary{gap:4mm}
 .modern-report .modern-field-label{font-size:8.5pt}
 .modern-report .modern-patient-details{gap:1.5mm 4mm}
 .modern-report .modern-patient-details .modern-field-label{margin:0 1mm 0 0}
 .modern-report .report-body{padding:0 3mm}
 .modern-report .modern-sample-grid{column-gap:4mm}
 .modern-report .report-findings h4{font-size:8.5pt}
 .modern-report .modern-bullets{padding-left:3mm}
 .modern-report .modern-bullets li{padding-left:.5mm;margin:.5mm 0}
 .modern-report.modern-b .report-block{gap:4mm}
 .modern-report.modern-b .modern-patient-summary,
 .modern-report.modern-b .modern-patient-details{padding-left:3mm;padding-right:3mm}
 .modern-report .report-reference-footer{font-size:7.5pt}
 .modern-report .report-footer-notes>p{line-height:1.2}
 .modern-report .report-trace{font-size:7pt}
}

/* Modelo consolidado: ritmo único de seções, títulos e subitens. */
.modern-report .report-block{margin-top:12px}
.modern-report .report-findings h4{font-weight:700;text-transform:uppercase;color:#191d22}
.modern-report .report-photos h3{font:700 12px Arial;text-transform:uppercase;border-bottom:1px solid #d9e1e6;margin:0 0 7px;padding-bottom:5px}
.modern-report .report-photo-row{gap:12px}
.modern-report .report-photo-frame{border:1px solid #b7c3cd;aspect-ratio:3/2}
.modern-report .report-photo-row figcaption{margin-top:4px}
.modern-report .report-signature-block{margin-left:auto;margin-right:auto}
.modern-report .report-code b{font-size:1.2em}
@media print{
 .modern-report .report-block{margin-top:2.5mm}
 .modern-report .report-photos{margin-top:2.5mm}
 .modern-report .report-photos h3{font-size:9.5pt;padding-bottom:.5mm;margin-bottom:1mm}
 .modern-report .report-photo-row{gap:3mm}
 .modern-report .report-photo-frame{height:36mm;aspect-ratio:auto}
 .modern-report .report-photo-row figcaption{font-size:8pt;margin-top:1mm}
 .modern-report .report-reference-footer{margin-top:2.5mm;padding-top:0}
 .modern-report .report-signature-block{margin-bottom:2mm}
 .modern-report .report-footer-notes{padding-top:1mm}
 .modern-report .report-footer-notes>p{margin:1mm 0;line-height:1.2}
}

/* Cabeçalho com o mesmo ritmo de linha do corpo, sem vão adicional na grade. */
.modern-report .modern-field,.modern-report .modern-field-value{line-height:1.3}
.modern-report .modern-patient-details{row-gap:2px}
.modern-report .report-note-block h3{border:0;padding:0;margin-bottom:2px}
.modern-report .report-clinical-note{font-weight:700;line-height:1.3}
@media print{
 .modern-report .modern-patient-details{row-gap:.5mm}
 .modern-report .report-block{margin-top:2mm}
 .modern-report .report-block h3{padding-bottom:.3mm;margin-bottom:.6mm}
 .modern-report .report-photos{margin-top:2mm}
 .modern-report .report-photos h3{padding-bottom:.3mm;margin-bottom:.6mm}
 .modern-report .modern-top{padding-bottom:1.5mm;margin-bottom:1.5mm}
 .modern-report .report-note-block h3{padding:0;margin-bottom:.5mm}
 .modern-report .report-laboratory-footer{font-size:7.5pt}
}

/* Identificação compacta: logo ao lado dos dados, título abaixo. */
.modern-report .modern-top{grid-template-columns:27% minmax(0,1fr);gap:16px;align-items:center;padding-bottom:8px;margin-bottom:4px}
.modern-report .report-origin-brand>img.report-brand-logo{width:100%;height:auto;max-height:75px}
.modern-report .report-code{margin:0 0 5px;font-size:10px}
.modern-report .modern-patient-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px;padding:6px 8px;border:0;border-radius:0;background:none}
.modern-report .modern-patient-summary>.modern-field:first-child{grid-column:1/-1}
.modern-report .modern-patient-summary .modern-field-label,.modern-report .modern-patient-summary .modern-field-value{display:inline;margin:0}
.modern-report .modern-patient-details{padding:6px 8px 0;column-gap:12px;border-top:1px solid #d9e1e6}
.modern-report .report-clinical-info{padding:5px 0;background:none;border:0;border-radius:0}
.modern-report .report-heading{text-align:center;margin:3px 0 0;padding:5px 0;border-top:1px solid #d9e1e6;border-bottom:1px solid #d9e1e6}
.modern-report .report-transformation-zone{text-decoration:none}
@media print{
 .modern-report .modern-top{grid-template-columns:27% minmax(0,1fr);gap:3mm;padding-bottom:1.5mm;margin-bottom:.5mm}
 .modern-report .report-origin-brand>img.report-brand-logo{width:100%;height:auto;max-height:20mm}
 .modern-report .report-code{font-size:8.5pt;margin:0 0 .5mm}
 .modern-report .modern-patient-summary{padding:1mm 1.5mm;gap:.5mm 3mm}
 .modern-report .modern-patient-details{padding:1mm 1.5mm 0;column-gap:3mm}
 .modern-report .report-clinical-info{padding:1mm 0;margin:0!important}
 .modern-report .report-heading{font-size:11pt;padding:1mm 0;margin:0}
}
.modern-report .report-inline-field>h3,.modern-report .report-note-block>h3{display:inline;border:0;padding:0;margin:0;text-transform:none}.modern-report .report-inline-field>.report-answer,.modern-report .report-note-block>.report-clinical-note{display:inline;margin:0!important;font-weight:400}.modern-report .report-note-block>h3{text-transform:uppercase}

/* Margem comum e ritmo entre blocos; assinatura acompanha o fim do conteúdo. */
.modern-report .report-body{padding:0}
.modern-report .report-block{margin-top:17px}
.modern-report .report-block h3{margin-bottom:5px}
.modern-report .report-inline-field>h3,.modern-report .report-note-block>h3{margin:0}
.modern-report .report-photos{margin-top:17px}
.modern-report .report-body>.report-signature-block{margin:20px auto 0}
@media print{
 .modern-report .report-body{padding:0}
 .modern-report .report-block{margin-top:3.5mm}
 .modern-report .report-block h3{margin-bottom:1mm}
 .modern-report .report-inline-field>h3,.modern-report .report-note-block>h3{margin:0}
 .modern-report .report-photos{margin-top:3.5mm}
 .modern-report .report-body>.report-signature-block{margin:4mm auto 0}
 .modern-report .report-reference-footer{margin-top:3mm}
}
.modern-report .modern-bullets{list-style:none;padding:0}
.modern-report .modern-bullets li{position:relative;padding-left:15px}
.modern-report .modern-bullets li:before{content:'•';position:absolute;left:0;top:0;color:#46545e}
@media print{.modern-report .modern-bullets{padding:0}.modern-report .modern-bullets li{padding-left:3.5mm}}
/* Corpo com maior entrelinha, mantendo o cabeçalho aprovado intacto. */
.modern-report .report-body p,.modern-report .modern-bullets li{line-height:1.45}
.modern-report .report-reference-footer>.report-signature-block{margin:0 auto 14px}
@media print{
 .modern-report .report-body p,.modern-report .modern-bullets li{line-height:1.45}
 .modern-report .report-block{margin-top:4mm}
 .modern-report .modern-bullets li{margin:.8mm 0}
 .modern-report .report-reference-footer>.report-signature-block{margin:0 auto 3mm}
}
/* Logos horizontais, quadradas e verticais cabem na mesma área, sem deformação. */
.modern-report .report-origin-brand>img.report-brand-logo{width:100%;max-width:100%;height:80px;max-height:80px;object-fit:contain;object-position:center;margin:0}
.modern-report .report-origin-brand:not(:has(img)) .report-origin-name{display:block}
.modern-report .report-footer-notes>p{text-align:justify;text-align-last:left}
@media print{.modern-report .report-origin-brand>img.report-brand-logo{height:20mm;max-height:20mm}}
/* Divisória neutra; o espaço recuperado é distribuído entre texto, nota e fotos. */
.modern-report .report-origin-brand:has(img){position:relative;align-self:stretch;min-height:80px}
.modern-report .report-origin-brand>img.report-brand-logo{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain}
@media print{.modern-report .report-origin-brand:has(img){min-height:20mm}.modern-report .report-origin-brand>img.report-brand-logo{height:100%;max-height:none}}
.modern-report .modern-top{border-bottom-color:#aab3bb}
.modern-report .modern-top{row-gap:0;grid-template-rows:auto auto}
.modern-report .modern-top>.report-code{grid-column:2;grid-row:1}
.modern-report .modern-top>.report-identification{grid-column:2;grid-row:2}
.modern-report .modern-top>.report-origin-brand{grid-column:1;grid-row:2;margin-top:6px}
@media print{.modern-report .modern-top>.report-origin-brand{margin-top:1mm}}
.modern-report .report-block{margin-top:calc(17px + var(--report-spacing-extra,0px))}
.modern-report .report-photos{margin-top:calc(17px + var(--report-spacing-extra,0px))}
@media print{
 .modern-report .report-block{margin-top:calc(4mm + var(--report-spacing-extra,0px))}
 .modern-report .report-photos{margin-top:calc(3.5mm + var(--report-spacing-extra,0px))}
}

/* Conteúdo mais extenso: reduzir apenas o ritmo vertical e os quadros das fotos. */
@media print{
 .modern-report.modern-compact .report-block{margin-top:2mm}
 .modern-report.modern-compact .report-photos{margin-top:2mm}
 .modern-report.modern-compact .report-body p,
 .modern-report.modern-compact .modern-bullets li{line-height:1.3}
 .modern-report.modern-compact .report-photo-frame{height:32mm}
}


