/* Build 405: padrão único para todos os relatórios do D7HS e Console 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;
  margin:0 auto!important;
  padding:0!important;
  overflow:visible!important;
  border:1px solid #d8e1eb!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 12px 32px rgba(7,29,61,.10)!important;
  color:#17283c!important;
}
#report-content>.report-sheet *,#report-content [class*="-report-sheet"] *{box-sizing:border-box;min-width:0}
#report-content .report-header{
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:13px!important;
  min-height:76px!important;
  margin:0!important;
  padding:12px 18px!important;
  border:0!important;
  border-bottom:4px solid #f47b20!important;
  background:linear-gradient(135deg,#071d3d,#174b7f)!important;
  color:#fff!important;
}
#report-content .report-header .mark{
  display:grid!important;
  place-items:center!important;
  width:52px!important;
  height:52px!important;
  padding:3px!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:12px!important;
  background:#fff url('logo-relatorios-d7hs.png') center/contain no-repeat!important;
  color:transparent!important;
  font-size:0!important;
}
#report-content .report-header .mark img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
#report-content .report-header .report-title{min-width:0!important;color:#fff!important}
#report-content .report-header .report-title strong{display:block!important;color:#fff!important;font-size:17px!important;line-height:1.2!important}
#report-content .report-header .report-title div,#report-content .report-header .report-title small{margin-top:3px!important;color:#d9e7f5!important;font-size:9px!important;line-height:1.3!important;overflow-wrap:anywhere}
#report-content .report-header>div:last-child:not(.report-title):not(.mark){color:#e2edf8!important;font-size:10px!important;font-weight:800!important;text-align:right!important;white-space:nowrap}
#report-content .student-band{
  display:grid!important;
  grid-template-columns:1.15fr .65fr 1fr 1.2fr!important;
  gap:1px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-bottom:1px solid #dce4ec!important;
  background:#dce4ec!important;
}
#report-content .student-band>div{min-width:0!important;padding:11px 13px!important;background:#f8fafc!important;color:#102f56!important}
#report-content .student-band small{display:inline-block!important;margin-bottom:3px!important;color:#6a798a!important;font-size:8px!important;font-weight:850!important;line-height:1.2!important;text-transform:uppercase!important}
#report-content .student-band strong{display:inline-block!important;color:#102f56!important;font-size:11px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
#report-content .student-band-with-iid{grid-template-columns:1.05fr .6fr .9fr 1.1fr .65fr!important}
#report-content .iid-report-badge{display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;border-left:3px solid #f47b20!important;text-align:center!important}
#report-content .iid-report-badge strong{color:#f47b20!important;font-size:22px!important;line-height:1!important}
#report-content .iid-report-badge span{color:#53667b!important;font-size:8px!important;font-weight:850!important;text-transform:uppercase!important}
#report-content .report-section{
  height:auto!important;
  max-height:none!important;
  margin:12px 16px!important;
  padding:13px!important;
  overflow:visible!important;
  border:1px solid #d8e1eb!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow-wrap:anywhere!important;
}
#report-content .report-section>h3:first-child{
  margin:-13px -13px 12px!important;
  padding:9px 12px!important;
  border:0!important;
  border-bottom:3px solid #f47b20!important;
  border-radius:11px 11px 0 0!important;
  background:#0b2a55!important;
  color:#fff!important;
  font-size:12px!important;
  line-height:1.3!important;
}
#report-content .report-section.clinical-layout{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:start!important}
#report-content .report-section.clinical-layout>div{height:auto!important;min-height:100%!important;padding:11px!important;border:1px solid #dce4ec!important;border-radius:10px!important;background:#f9fbfd!important}
#report-content .report-section.clinical-layout>div>h3:first-child{margin:-11px -11px 10px!important;padding:8px 10px!important;border-bottom:3px solid #f47b20!important;border-radius:9px 9px 0 0!important;background:#0b2a55!important;color:#fff!important;font-size:11px!important}
#report-content .report-grid,#report-content .clinical-report-grid,#report-content .record-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;align-items:stretch!important}
#report-content .report-score,#report-content .clinical-report-item,#report-content .record-kpis>div{height:auto!important;min-height:64px!important;padding:9px!important;overflow:visible!important;border:1px solid #dce4ec!important;border-radius:9px!important;background:#f8fafc!important;color:#435369!important;text-align:left!important;overflow-wrap:anywhere!important}
#report-content .report-score small,#report-content .clinical-report-item small,#report-content .record-kpis small{display:block!important;margin-bottom:4px!important;color:#6a798a!important;font-size:8px!important;font-weight:850!important;line-height:1.2!important;text-transform:uppercase!important}
#report-content .report-score strong,#report-content .clinical-report-item strong,#report-content .record-kpis strong{color:#14365f!important;line-height:1.15!important}
#report-content .report-score>strong{display:block!important;margin:2px 0!important;font-size:20px!important}
#report-content .clinical-report-item p{margin:3px 0!important;color:#435369!important;line-height:1.4!important;overflow-wrap:anywhere!important}
#report-content .table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;border:1px solid #d8e1eb!important;border-radius:10px!important}
#report-content table{width:100%!important;max-width:100%!important;min-width:0!important;border-collapse:collapse!important;table-layout:fixed!important}
#report-content thead th{padding:8px 9px!important;border:0!important;background:#0b2a55!important;color:#fff!important;font-size:8px!important;line-height:1.2!important;text-transform:uppercase!important;letter-spacing:.04em!important}
#report-content tbody th,#report-content tbody td{padding:7px 9px!important;border-right:1px solid #e0e6ed!important;border-bottom:1px solid #e0e6ed!important;background:#fff!important;color:#435369!important;font-size:9px!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;vertical-align:top!important}
#report-content tbody tr:nth-child(even) td,#report-content tbody tr:nth-child(even) th{background:#f8fafc!important}
#report-content tbody tr:last-child td,#report-content tbody tr:last-child th{border-bottom:0!important}
#report-content .alert-box,#report-content .reference-note{height:auto!important;max-height:none!important;padding:10px 12px!important;overflow:visible!important;border-radius:9px!important;line-height:1.4!important;overflow-wrap:anywhere!important}
#report-content .report-footer{display:flex!important;justify-content:space-between!important;gap:16px!important;margin:12px 0 0!important;padding:11px 16px!important;border:0!important;border-top:3px solid #f47b20!important;background:#f5f8fb!important;color:#607083!important;font-size:8px!important;line-height:1.4!important}
#report-content img,#report-content svg,#report-content canvas{max-width:100%!important}

@media(max-width:900px){
  #report-content>.report-sheet,#report-content [class*="-report-sheet"]{width:100%!important;border-radius:12px!important}
  #report-content .student-band,#report-content .student-band-with-iid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #report-content .report-grid,#report-content .clinical-report-grid,#report-content .record-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #report-content .report-section.clinical-layout{grid-template-columns:1fr!important}
}
@media(max-width:600px){
  #report-content .report-header{grid-template-columns:44px minmax(0,1fr)!important;gap:9px!important;padding:11px!important}
  #report-content .report-header .mark{width:42px!important;height:42px!important}
  #report-content .report-header>div:last-child:not(.report-title):not(.mark){grid-column:2;text-align:left!important}
  #report-content .student-band,#report-content .student-band-with-iid{grid-template-columns:1fr!important}
  #report-content .report-section{margin:10px!important;padding:11px!important}
  #report-content .report-section>h3:first-child{margin:-11px -11px 10px!important}
  #report-content .report-grid,#report-content .clinical-report-grid,#report-content .record-kpis{grid-template-columns:1fr!important}
  #report-content .report-footer{flex-direction:column!important;gap:4px!important}
}
@media print{
  @page{size:A4 portrait;margin:8mm}
  #report-content>.report-sheet,#report-content [class*="-report-sheet"]{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:0!important;overflow:visible!important;border:0!important;border-radius:0!important;box-shadow:none!important;font-size:8.5pt!important;line-height:1.25!important}
  #report-content .report-header{grid-template-columns:44px minmax(0,1fr) auto!important;min-height:56px!important;padding:8px 10px!important}
  #report-content .report-header .mark{width:40px!important;height:40px!important;border-radius:9px!important}
  #report-content .report-header .report-title strong{font-size:12pt!important}
  #report-content .student-band,#report-content .student-band-with-iid{grid-template-columns:1.15fr .65fr 1fr 1.2fr!important}
  #report-content .student-band-with-iid{grid-template-columns:1.05fr .6fr .9fr 1.1fr .65fr!important}
  #report-content .student-band>div{padding:6px 7px!important}
  #report-content .report-section{margin:7px 0!important;padding:7px!important;break-inside:auto!important;page-break-inside:auto!important}
  #report-content .report-section>h3:first-child{margin:-7px -7px 7px!important;padding:5px 7px!important;font-size:9pt!important;break-after:avoid!important;page-break-after:avoid!important}
  #report-content .report-section.clinical-layout{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  #report-content .report-grid,#report-content .clinical-report-grid,#report-content .record-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important}
  #report-content .report-score,#report-content .clinical-report-item,#report-content .record-kpis>div{min-height:0!important;padding:5px!important;break-inside:avoid!important;page-break-inside:avoid!important}
  #report-content .report-score>strong{font-size:12pt!important}
  #report-content .table-wrap{overflow:visible!important}
  #report-content table{font-size:7.5pt!important}
  #report-content thead{display:table-header-group!important}
  #report-content tr{break-inside:avoid!important;page-break-inside:avoid!important}
  #report-content thead th,#report-content tbody th,#report-content tbody td{padding:3.5pt 4pt!important;font-size:7.5pt!important;line-height:1.2!important}
  #report-content .report-footer{margin-top:6px!important;padding:6px 8px!important;break-inside:avoid!important;page-break-inside:avoid!important}
}

/* Relatórios administrativos e relatórios do App do Professor. */
#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report{box-sizing:border-box;width:min(100%,210mm);max-width:100%;margin-left:auto;margin-right:auto;overflow:hidden;border:1px solid #d8e1eb!important;border-radius:16px!important;background:#fff!important;box-shadow:0 12px 32px rgba(7,29,61,.10)!important}
#professional-report-print .report-brand,#student-life-report .report-brand,.professor-ai-report-head{display:flex!important;align-items:center!important;gap:13px!important;margin:0!important;padding:13px 18px!important;border:0!important;border-bottom:4px solid #f47b20!important;background:linear-gradient(135deg,#071d3d,#174b7f)!important;color:#fff!important}
#professional-report-print .report-brand img,#student-life-report .report-brand img,.professor-ai-report-head .d7hs-report-logo{display:block!important;width:52px!important;height:52px!important;flex:0 0 52px!important;padding:3px!important;border-radius:12px!important;background:#fff!important;object-fit:contain!important}
#professional-report-print .report-brand h2,#student-life-report .report-brand h2,.professor-ai-report-head h3{margin:0!important;color:#fff!important;font-size:18px!important}
#professional-report-print .report-brand p,#student-life-report .report-brand p,.professor-ai-report-head p{margin:3px 0 0!important;color:#d9e7f5!important;font-size:9px!important}
#professional-report-print .report-summary{padding:0 14px}.professor-ai-report-body,.professor-student-results-grid{padding:16px!important}.professor-ai-report-section,.professor-student-result-card,#student-life-report .life-section{border:1px solid #d8e1eb!important;border-radius:12px!important;background:#f9fbfd!important;box-shadow:none!important}
#professional-report-print thead th,#student-life-report thead th,.professor-ai-report-table thead th{background:#0b2a55!important;color:#fff!important}
#professional-report-print .professional-totals{margin:16px 14px!important;padding-top:12px!important;border-top:3px solid #f47b20!important}
@media(max-width:700px){#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report{width:100%;border-radius:12px!important}#professional-report-print .report-brand,#student-life-report .report-brand,.professor-ai-report-head{padding:12px!important}.professor-ai-report-body,.professor-student-results-grid{padding:11px!important}}
@media print{#professional-report-print,#student-life-report,.professor-ai-report-sheet,.professor-student-report{width:100%!important;max-width:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}#professional-report-print .report-brand,#student-life-report .report-brand,.professor-ai-report-head{padding:8px 10px!important}#professional-report-print .report-brand img,#student-life-report .report-brand img,.professor-ai-report-head .d7hs-report-logo{width:40px!important;height:40px!important;flex-basis:40px!important}}

/* Build 406: quadro rigorosamente quadrado em todos os cabeçalhos de relatório. */
#report-content .report-header .mark{min-width:52px!important;max-width:52px!important;min-height:52px!important;max-height:52px!important;flex:0 0 52px!important;aspect-ratio:1/1!important}
#report-content .report-header .mark img{min-width:100%!important;max-width:100%!important;min-height:100%!important;max-height:100%!important;aspect-ratio:1/1!important}
#professional-report-print .report-brand img,#student-life-report .report-brand img,.professor-ai-report-head .d7hs-report-logo{min-width:52px!important;max-width:52px!important;min-height:52px!important;max-height:52px!important;aspect-ratio:1/1!important}
@media(max-width:600px){#report-content .report-header .mark{width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;max-height:42px!important;flex-basis:42px!important}}
@media print{#report-content .report-header .mark,#professional-report-print .report-brand img,#student-life-report .report-brand img,.professor-ai-report-head .d7hs-report-logo{width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;flex-basis:40px!important;aspect-ratio:1/1!important}}

/* Build 407: headers stay in the sheet flow, without legacy negative margins. */
#report-content article.report-sheet,
#report-content article[class*="-report-sheet"],
#report-content article.accid-a4-report,
#report-content article.ai-suggestion-report{
  display:block!important;height:auto!important;min-height:0!important;
  max-height:none!important;padding:0!important;overflow:visible!important;
}
#report-content article .report-header,
#professional-report-print .report-brand,
#student-life-report .report-brand,
.professor-ai-report-sheet .professor-ai-report-head,
.professor-student-report .professor-ai-report-head{
  position:static!important;inset:auto!important;transform:none!important;
  margin:0!important;width:100%!important;height:auto!important;max-height:none!important;
  overflow:visible!important;box-sizing:border-box!important;
  break-inside:avoid!important;page-break-inside:avoid!important;
  break-after:avoid!important;page-break-after:avoid!important;
}
#report-content article .report-header{
  grid-column:1/-1!important;min-height:80px!important;padding:12px 18px!important;
  align-items:center!important;align-self:start!important;border-radius:12px 12px 0 0!important;
}
#report-content article .report-header .mark{
  margin:0!important;position:static!important;transform:none!important;
  background-position:center!important;background-origin:content-box!important;
}
/* The image fills the CONTENT box; 100% minimum dimensions previously clipped padding. */
#report-content article .report-header .mark img{
  min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;
  width:100%!important;height:100%!important;object-fit:contain!important;
}
#report-content article .report-header .report-title,
#professional-report-print .report-brand>div,
#student-life-report .report-brand>div,
.professor-ai-report-head>div{min-width:0!important;overflow:visible!important;overflow-wrap:anywhere!important}
#report-content article .report-header .report-title strong{white-space:normal!important;line-height:1.3!important}
@media(max-width:600px){
  #report-content article .report-header{padding:12px!important;min-height:76px!important}
}
@media print{
  #report-content article .report-header{min-height:60px!important;padding:9px 11px!important;border-radius:0!important}
  #professional-report-print,.professor-ai-report-sheet,.professor-student-report,#student-life-report{
    height:auto!important;max-height:none!important;overflow:visible!important;
  }
}
