/* Build 390: ferramentas compactas e relatórios sem corte ou sobreposição. */
.assessment-toolstrip{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;
}
.assessment-toolstrip .assessment-counter-group,
.assessment-toolstrip .assessment-tool-counter,
.assessment-toolstrip .assessment-counter-reset{display:none!important}
.assessment-toolstrip .assessment-tool-timer,
.assessment-toolstrip .assessment-tool-camera{
  width:100%!important;
  min-height:52px!important;
  height:52px!important;
  padding:6px 10px!important;
}

/* Base única para todos os relatórios do Portal Avaliação. */
#report-content .report-sheet,
#report-content [class*="-report-sheet"]{
  box-sizing:border-box!important;
  width:min(100%,210mm)!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
#report-content .report-sheet *,
#report-content [class*="-report-sheet"] *{
  box-sizing:border-box;
  min-width:0;
}
#report-content .report-section,
#report-content .clinical-report-item,
#report-content .alert-box{
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  overflow-wrap:anywhere;
}
#report-content .table-wrap{width:100%;max-width:100%;overflow-x:auto}
#report-content table{width:100%!important;max-width:100%!important;border-collapse:collapse;table-layout:fixed}
#report-content th,#report-content td{white-space:normal!important;overflow-wrap:anywhere;word-break:normal;vertical-align:top}
#report-content img,#report-content svg,#report-content canvas{max-width:100%!important;height:auto}

@media(max-width:760px){
  .assessment-toolstrip .assessment-tool-timer,
  .assessment-toolstrip .assessment-tool-camera{min-height:52px!important;height:52px!important}
  #report-content .report-sheet,
  #report-content [class*="-report-sheet"]{display:block!important;padding:16px!important}
  #report-content .student-band,
  #report-content .report-grid,
  #report-content .clinical-report-grid,
  #report-content .clinical-layout{grid-template-columns:1fr!important}
}

@media print{
  @page{size:A4 portrait;margin:10mm}
  html,body{width:auto!important;height:auto!important;min-height:0!important;overflow:visible!important}
  main,.report-area,#report-content{width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important}
  #report-content .report-sheet,
  #report-content [class*="-report-sheet"],
  #report-content .apid-report-sheet,
  #report-content .accid-a4-report,
  #report-content .ai-suggestion-report{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:5mm!important;
    overflow:visible!important;
    font-size:9pt!important;
    line-height:1.3!important;
  }
  #report-content .report-header{break-after:avoid;page-break-after:avoid}
  #report-content .report-section{height:auto!important;max-height:none!important;overflow:visible!important;break-inside:auto!important;page-break-inside:auto!important}
  #report-content .report-section>h3{break-after:avoid;page-break-after:avoid}
  #report-content .clinical-report-item,
  #report-content .report-score,
  #report-content .alert-box,
  #report-content figure{break-inside:avoid;page-break-inside:avoid}
  #report-content table{table-layout:fixed!important;font-size:8.5pt!important}
  #report-content thead{display:table-header-group}
  #report-content tfoot{display:table-footer-group}
  #report-content tr,#report-content img{break-inside:avoid;page-break-inside:avoid}
  #report-content th,#report-content td{padding:4pt!important;line-height:1.25!important}
  #report-content .table-wrap{overflow:visible!important}
  #report-content .report-footer{break-inside:avoid;page-break-inside:avoid}
  #report-content .ai-suggestion-report .report-section:nth-of-type(4){break-before:auto!important;page-break-before:auto!important}
  #report-content .apid-report-sheet .apid-general-section .table-wrap{display:block!important}
  #report-content .apid-report-sheet .apid-print-regions{display:none!important}
  #report-content .apid-report-sheet .apid-report-images{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #report-content .apid-report-sheet .apid-report-images img{height:auto!important;max-height:65mm!important;object-fit:contain!important}
}
