.report-sheet.report-reference{font-family:Arial,Helvetica,sans-serif;color:#191d22;background:#fff;font-size:12px;line-height:1.35;padding:30px;display:flex;flex-direction:column;min-height:960px;overflow-wrap:anywhere}.report-reference p{margin:0;line-height:1.35}.report-code{text-align:right;font-size:10px;margin-bottom:2px}.report-identification{display:grid;grid-template-columns:27% minmax(0,1fr);gap:12px;border-top:2px solid #111;border-bottom:2px solid #111;padding:3px 0}.report-lab{padding:9px 6px 6px 0}.report-lab>img{width:42px;height:42px;float:left;margin:0 5px 6px 0}.report-wordmark{font-size:20px;color:#10133f;line-height:1.2;white-space:nowrap}.report-wordmark small{font-size:9px}.report-lab>p{clear:both;font-size:10px}.report-patient{font-size:10px;min-width:0}.report-meta-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:7px}.report-demographics{border-bottom:1.4px solid #111;padding:3px 0;margin-bottom:3px}.report-patient p{line-height:1.4}.report-clinical-info{font-size:10px;margin:6px 0!important}.report-heading{background:#bdd7ee;text-align:center;font-size:15px;font-weight:bold;padding:5px 9px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.report-demo-warning{font-size:9px;color:#555;margin:5px 0 0;border-bottom:1px solid #ddd;padding-bottom:4px}.report-body{flex:1;padding-top:12px}.report-reference .report-block{margin:17px 0 0;break-inside:avoid;page-break-inside:avoid}.report-reference .report-block h3{margin:0 0 4px;font-family:Arial,Helvetica,sans-serif;font-size:12px;letter-spacing:0;color:#191d22;text-transform:uppercase;font-weight:700}.report-answer{margin-left:14px!important;white-space:pre-wrap;text-decoration:underline;text-underline-offset:2px}.report-reference .adequacy-answer{font-weight:bold;text-decoration:none;margin-left:0!important}.report-result-line{margin:2px 0 2px 14px!important;white-space:pre-wrap}.report-result-line>span{text-decoration:underline;text-underline-offset:2px}.report-findings{margin-left:18px;margin-bottom:7px}.report-findings h4{font-size:12px;text-transform:uppercase;margin:0 0 3px}.report-findings h4:before{content:'•';margin-right:10px}.report-reference .report-conclusion{margin-left:14px;white-space:pre-wrap;font-weight:bold;text-decoration:underline;text-underline-offset:2px}.report-conclusion.normal{color:#0000ff}.report-conclusion.altered{color:#ff0000}.report-conclusion.unclassified{color:#191d22}.report-reference-footer{margin-top:30px;padding-top:5px;font-size:8px;break-inside:avoid;page-break-inside:avoid}.report-reference-footer>p{margin:5px 0;line-height:1.25}.report-responsible{background:#bdd7ee;padding:5px 4px;margin-top:7px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.report-trace{color:#444;font-size:7px}.report-reference i{font-style:italic}@media(max-width:700px){.report-sheet.report-reference{padding:18px;min-height:0}.report-identification{grid-template-columns:1fr}.report-lab{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.report-lab>p{width:100%}.report-wordmark{font-size:21px}.report-meta-grid{gap:8px}.report-patient{font-size:11px}.report-reference .report-block h3{font-size:12px}.report-reference-footer{font-size:9px}}
@media print{@page pap-report{size:A4 portrait;margin:15mm}.report-sheet.report-reference{page:pap-report;padding:0;border:0;border-radius:0;font-size:9.5pt;line-height:1.25;min-height:266mm;display:flex;flex-direction:column}.report-code{font-size:8pt}.report-identification{grid-template-columns:27% minmax(0,1fr);gap:3mm}.report-lab{display:block;padding-top:2mm}.report-lab>img{width:11mm;height:11mm;float:left;margin-right:1mm}.report-wordmark{font-size:16pt}.report-lab>p{font-size:8pt}.report-patient{font-size:8pt}.report-clinical-info{font-size:8pt;margin:1.5mm 0!important}.report-heading{font-size:11pt;padding:1.5mm}.report-demo-warning{font-size:7pt}.report-body{padding-top:3mm;flex:1}.report-reference .report-block{margin-top:4mm}.report-reference .report-block h3,.report-findings h4{font-size:9.5pt}.report-reference p{line-height:1.3}.report-reference-footer{font-size:7pt;margin-top:8mm;padding-top:1.5mm}.report-trace{font-size:6.5pt}.report-reference .report-conclusion{print-color-adjust:exact;-webkit-print-color-adjust:exact}.report-reference .report-photos{margin-top:4mm}.report-reference .report-photo-frame{height:32mm}}

.signature-editor{margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:8px}.signature-editor p{font-size:12px}.signature-editor input{display:block;max-width:100%;margin-top:6px}#ops-signature-preview img{display:block;max-width:260px;width:auto;max-height:90px;object-fit:contain;background:#fff;margin:12px 0}.report-signature-block{width:240px;max-width:100%;margin:0 0 12px auto;text-align:center;break-inside:avoid}.report-signature-block img{display:block;width:100%;height:65px;object-fit:contain;object-position:center bottom}.report-signature-space{height:30px}.report-signature-block p{font-size:11px;line-height:1.2;margin:4px 0}.report-footer-notes{border-top:1px dashed #333;padding-top:5px}.report-footer-notes>p{margin:5px 0;line-height:1.25}@media print{.report-signature-block{width:65mm;margin-bottom:3mm}.report-signature-block img{height:16mm}.report-signature-space{height:8mm}.report-signature-block p{font-size:9pt}}
.report-clinical-note{white-space:pre-wrap;font-weight:700}.report-laboratory-footer{background:#edf4f7;border-top:1px solid #b7c3cd;margin-top:6px;padding:6px 8px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.report-laboratory-footer p{line-height:1.25}@media print{.report-laboratory-footer{margin-top:1.5mm;padding:1mm 1.5mm}}

#ops-clinic-logo-preview img{display:block;max-width:260px;max-height:110px;width:auto;object-fit:contain;background:#fff;margin:12px 0}.report-origin-brand{text-align:center;min-width:0}.report-origin-brand>img.report-brand-logo{display:block;float:none;margin:0 auto 4px;width:100%;height:75px;object-fit:contain}.report-origin-brand>p.report-origin-name{font-size:12px;line-height:1.3;overflow-wrap:anywhere}@media print{.report-origin-brand>img.report-brand-logo{width:100%;height:18mm;float:none;margin:0 auto 1mm;object-fit:contain}.report-origin-brand>p.report-origin-name{font-size:9pt}}

.asset-treatment{margin-top:16px;padding:14px;border:1px solid #d8e0e8;border-radius:8px;background:#f7fafc}.asset-compare{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}.asset-compare>div{min-width:0}.asset-source{position:relative;display:inline-block;max-width:100%;touch-action:none;cursor:crosshair;line-height:0;margin-top:8px}.asset-source>img{display:block;max-width:100%;max-height:240px;width:auto;height:auto}.asset-crop-box{position:absolute;inset:0;border:2px solid #2072b3;background:#1c73b51a;pointer-events:none}.asset-preview{margin-top:8px;min-height:100px;padding:10px;background:repeating-conic-gradient(#e5e8eb 0% 25%,white 0% 50%) 0/16px 16px}.asset-preview img{max-width:100%;max-height:180px;object-fit:contain}.asset-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.asset-options input[type=range]{min-height:24px;padding:0;width:100%}.asset-options output{margin-left:8px;font-size:12px}#asset-feedback{font-size:12px}.asset-treatment .actions{justify-content:flex-start;gap:8px}@media(max-width:700px){.asset-compare,.asset-options{grid-template-columns:1fr}.asset-treatment .actions button{width:100%}}
.report-reference .report-inline-field>h3,.report-reference .report-note-block>h3{display:inline;border:0;padding:0;margin:0;text-transform:none}.report-reference .report-inline-field>.report-answer,.report-reference .report-note-block>.report-clinical-note{display:inline;margin:0!important;text-decoration:none;font-weight:400}.report-reference .report-note-block>h3{text-transform:uppercase}
/* Regra de identidade: caixa fixa, proporção preservada e imagem inteira visível. */
.report-reference .report-origin-brand{min-width:0;padding:0;align-self:center}
.report-reference .report-origin-brand>img.report-brand-logo{width:100%;max-width:100%;height:80px;max-height:80px;object-fit:contain;object-position:center;float:none;display:block;margin:0}
.report-reference .report-footer-notes>p{text-align:justify;text-align-last:left}
@media print{.report-reference .report-origin-brand>img.report-brand-logo{height:20mm;max-height:20mm}}

.report-reference .report-transformation-zone{text-decoration:none}

/* A altura disponível acompanha os dados do cabeçalho, sem criar uma faixa extra. */
.report-reference .report-origin-brand:has(img){position:relative;align-self:stretch;min-height:80px}
.report-reference .report-origin-brand>img.report-brand-logo{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain}
@media print{.report-reference .report-origin-brand:has(img){min-height:20mm}.report-reference .report-origin-brand>img.report-brand-logo{height:100%;max-height:none}}

@media print{body>.print-target:has(.report-reference){page:pap-report;width:180mm;margin:0;padding:0}.report-sheet.report-reference{break-inside:avoid;page-break-inside:avoid}}
