/* Shared A4 document style. Repeated :is increases specificity over legacy
   compact/blue styles without changing the application outside reports. */
:is(#report-content,#professional-report-print,#student-life-report,#product-panel-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,#product-panel-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report),
:is(#report-content,#professional-report-print,#student-life-report,#product-panel-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,#product-panel-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) *{
  box-sizing:border-box!important;font-family:Arial,Helvetica,sans-serif!important;
  font-size:10pt!important;line-height:1.1!important;color:#17283c!important;
  background-color:#fff!important;background-image:none!important;
  box-shadow:none!important;text-shadow:none!important;border-radius:0!important;
  max-height:none!important;min-height:0!important;overflow-wrap:anywhere!important;white-space:normal!important;
}
:is(#report-content,#professional-report-print,#student-life-report,#product-panel-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,#product-panel-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report){
  width:100%!important;max-width:210mm!important;margin:0 auto!important;
  padding:12mm!important;border:0!important;height:auto!important;overflow:visible!important;
}
#report-content#report-content{padding:0!important}
#report-content#report-content>article{
  display:block!important;width:100%!important;max-width:210mm!important;
  margin:0 auto!important;padding:12mm!important;min-height:0!important;
  height:auto!important;overflow:visible!important;border:0!important;
}
:is(#report-content,#professional-report-print,#student-life-report,#product-panel-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,#product-panel-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(section,.card,.result,.clinical-report-item,.report-score,.reference-note,.alert-box,.report-section,.student-delivery-overview,.student-delivery-score,.student-delivery-section,.professor-ai-report-section,.professor-student-result-card){
  border:0!important;padding:0!important;margin:3mm 0!important;height:auto!important;
  min-height:0!important;overflow:visible!important;break-inside:auto!important;page-break-inside:auto!important;
}
:is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(.report-header,.report-brand,.professor-ai-report-head,.student-delivery-header){
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  flex-wrap:wrap!important;gap:4mm!important;position:static!important;transform:none!important;
  inset:auto!important;margin:0 0 6mm!important;padding:0 0 4mm!important;
  width:100%!important;height:auto!important;min-height:20mm!important;
  border:0!important;border-bottom:1px solid #8996a5!important;overflow:visible!important;
  break-inside:avoid!important;page-break-inside:avoid!important;break-after:avoid!important;
}
:is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(.mark,.report-brand>img,.d7hs-report-logo,.student-delivery-brand>img){
  display:block!important;width:20mm!important;height:20mm!important;
  min-width:20mm!important;max-width:20mm!important;min-height:20mm!important;max-height:20mm!important;
  flex:0 0 20mm!important;aspect-ratio:1!important;object-fit:contain!important;
  padding:0!important;margin:0!important;border:0!important;overflow:visible!important;
}
#report-content#report-content .report-header .mark{background:#fff url('logo-relatorios-d7hs.png') center/contain no-repeat!important;color:transparent!important;font-size:0!important}
#report-content#report-content .report-header .mark img{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-height:100%!important;object-fit:contain!important}
:is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(.report-title,.student-delivery-brand){flex:1!important;min-width:0!important}
:is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(h2,h3,h4){margin:3mm 0 3mm!important;padding:0!important;border:0!important;font-weight:700!important;break-after:avoid!important;page-break-after:avoid!important}
:is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(.student-band,.student-delivery-identity,.report-grid,.clinical-report-grid,.record-kpis,.student-delivery-scores,.results){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:2mm 5mm!important;margin:2mm 0!important;padding:0!important;border:0!important}
:is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(.student-band>div,.student-delivery-identity>div){padding:0!important;border:0!important}
:is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(.clinical-layout,.student-delivery-sections,.professor-ai-report-grid,.professor-student-results-grid){display:block!important;padding:0!important}
:is(#report-content,#professional-report-print,#student-life-report,#product-panel-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,#product-panel-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(table,.table-wrap){width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;overflow:visible!important}
:is(#report-content,#professional-report-print,#student-life-report,#product-panel-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,#product-panel-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(th,td){padding:1mm 2mm!important;border:1px solid #b9c1ca!important;vertical-align:top!important;word-break:normal!important}
:is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(img,svg,canvas){max-width:100%!important;object-fit:contain!important}
:is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(.report-chart,.report-postural-photos,figure){break-inside:avoid!important;page-break-inside:avoid!important}
#report-content#report-content .apid-print-regions{display:none!important}
#report-content#report-content :is(.radar,.report-chart svg){display:block!important;width:100%!important;max-width:170mm!important;height:auto!important;margin:4mm auto!important}
#report-content#report-content .apid-view-table{display:table!important}
#report-content#report-content .apid-general-section .table-wrap{display:block!important}
#report-content#report-content :is(.apid-report-images,.report-postural-grid){display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:2mm!important;break-inside:avoid!important;page-break-inside:avoid!important}
#report-content#report-content :is(.apid-report-images,.report-postural-grid) figure{margin:0!important;padding:0!important;min-width:0!important}
#report-content#report-content :is(.apid-report-images,.report-postural-grid) img{display:block!important;width:100%!important;height:48mm!important;max-height:48mm!important;object-fit:contain!important}
#report-content#report-content :is(.report-section,.result)::before,#report-content#report-content .student-delivery-section h3>span{display:none!important}
:is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(.card,.result,.report-score,.clinical-report-item)::before,
:is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(.card,.result,.report-score,.clinical-report-item)::after{display:none!important;content:none!important}
@media(max-width:600px){#report-content#report-content>article{padding:5mm!important}#report-content#report-content :is(.student-band,.student-delivery-identity,.report-grid,.clinical-report-grid,.student-delivery-scores){grid-template-columns:1fr!important}}
@media print{
  @page{size:A4 portrait;margin:12mm}
  :is(#report-content,#professional-report-print,#student-life-report,#product-panel-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,#product-panel-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report){width:100%!important;max-width:186mm!important;padding:0!important;margin:0!important;overflow:visible!important}
  #report-content#report-content>article{width:100%!important;max-width:186mm!important;padding:0!important;margin:0!important;overflow:visible!important}
  #report-content#report-content :is(.student-band,.student-delivery-identity,.report-grid,.clinical-report-grid,.student-delivery-scores){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #report-content#report-content thead{display:table-header-group!important}
  #report-content#report-content tr{break-inside:avoid!important;page-break-inside:avoid!important}
}

/* Build 410: compact continuous document flow; keep only indivisible visuals together. */
:is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(section,.report-section,.student-delivery-overview,.student-delivery-section,.report-chart,.report-postural-photos){margin:1.5mm 0!important;break-inside:auto!important;page-break-inside:auto!important;break-before:auto!important;page-break-before:auto!important;break-after:auto!important;page-break-after:auto!important}
:is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(p,li,ul,ol){margin-top:1mm!important;margin-bottom:1mm!important;padding-top:0!important;padding-bottom:0!important}
:is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(h2,h3,h4){margin:2mm 0 1mm!important}
:is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report):is(#report-content,#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report,.student-delivery-report) :is(th,td){padding:.5mm 1.5mm!important}
#report-content#report-content .report-integrative .radar{width:50%!important;max-width:85mm!important;margin:2mm auto!important}
#report-content#report-content .report-chart svg{break-inside:avoid!important;page-break-inside:avoid!important}
@media print{
  #report-content#report-content :is(.student-band,.student-delivery-identity,.student-delivery-overview,.student-delivery-sections,.student-delivery-scores,.report-grid){break-inside:auto!important;page-break-inside:auto!important;orphans:2;widows:2}
  #report-content#report-content :is(.report-footer,.student-delivery-footer){break-before:auto!important;page-break-before:auto!important;margin-top:2mm!important;padding-top:1mm!important}
}
