/* DEKMA V126 — scoped, responsive design for Test-wise Reports only */
#studentTestwisePanel{--tw-blue:#173a65;--tw-line:#dbe6f3;--tw-soft:#f4f8fd;color:#183450}
#studentTestwisePanel .panelTop{margin-bottom:16px}
#studentTestwisePanel .student-report-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end;padding:17px;background:var(--tw-soft);border:1px solid var(--tw-line);border-radius:18px;margin:17px 0}
#studentTestwisePanel .student-report-filters label{display:block;min-width:0;font-size:12px;font-weight:750;letter-spacing:.02em;color:#3c5878}
#studentTestwisePanel .student-report-filters select{appearance:auto;display:block;width:100%;box-sizing:border-box;min-height:46px;padding:10px 13px;margin:7px 0 0;border:1px solid #c5d7eb;border-radius:11px;background:#fff;color:#183450;font-size:14px;font-weight:650;box-shadow:none}
#studentTestwisePanel .student-report-filters select:focus-visible,#studentTestwisePanel .student-report-filters button:focus-visible{outline:3px solid #80baf0;outline-offset:2px}
#studentTestwisePanel .student-report-filters button{min-height:46px;border-radius:11px;border:1px solid #bed2e8;font-weight:750;padding:11px 14px;white-space:nowrap}
#studentTestwisePanel #srLoad{background:#1a4b84;color:#fff;border-color:#1a4b84}
#studentTestwisePanel #srRefresh{background:#e8f1fb;color:#214b75}
#studentTestwisePanel #srStatus{font-size:13px;line-height:1.5;margin:13px 0;padding:10px 13px;background:#eef5fc;border-radius:10px;color:#436587}
#studentTestwisePanel #srResults>h3{font-size:18px;font-weight:800;color:#183a62;margin:24px 0 12px}
#studentTestwisePanel .student-report-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:17px 0}
#studentTestwisePanel .student-report-summary>div{min-width:0;padding:19px;background:#f1f7ff;border:1px solid #d4e5f6;border-radius:16px}
#studentTestwisePanel .student-report-summary small{display:block;font-size:12px;color:#56718d;font-weight:650}
#studentTestwisePanel .student-report-summary strong{display:block;font-size:clamp(25px,4vw,34px);font-weight:800;line-height:1.4;color:#153d6c}
#studentTestwisePanel .student-report-overflow{max-width:100%;overflow-x:auto;border:1px solid var(--tw-line);border-radius:14px;-webkit-overflow-scrolling:touch}
#studentTestwisePanel .student-report-overflow table{width:100%;min-width:450px;border-collapse:separate;border-spacing:0;font-size:13px}
#studentTestwisePanel .student-report-overflow th{font-size:11px;letter-spacing:.035em;text-transform:uppercase;background:#edf4fb;color:#4b6580;font-weight:800}
#studentTestwisePanel .student-report-overflow td,#studentTestwisePanel .student-report-overflow th{padding:12px 13px;text-align:left;border-bottom:1px solid #e6edf5;vertical-align:top}
#studentTestwisePanel .student-report-overflow tr:last-child td{border-bottom:0}
#studentTestwisePanel .student-report-overflow tbody tr:nth-child(even){background:#f8fbff}
#studentTestwisePanel .student-report-overflow td:first-child{font-weight:800;color:#22578c;white-space:nowrap}
#studentTestwisePanel #srGrades,#studentTestwisePanel #srBands{display:grid;gap:10px}
#studentTestwisePanel .tw-bar-row{margin:0;padding:12px 13px;border-radius:12px;background:#f6f9fd;border:1px solid #e7eef6}
#studentTestwisePanel .tw-bar-label{display:flex;justify-content:space-between;gap:8px;color:#254565;font-size:13px;font-weight:650;margin-bottom:9px}
#studentTestwisePanel .tw-bar-track{height:9px;background:#e1eaf4;border-radius:50px;overflow:hidden}
#studentTestwisePanel .tw-bar-fill{height:100%;background:#1d7e9f;border-radius:50px}
@media(max-width:700px){#studentTestwisePanel .student-report-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:11px}#studentTestwisePanel .student-report-filters button{width:100%}#studentTestwisePanel .student-report-overflow table{min-width:440px}}
@media(max-width:390px){#studentTestwisePanel .student-report-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#studentTestwisePanel .student-report-filters select{font-size:13px;padding:9px 8px}#studentTestwisePanel .student-report-summary>div{padding:13px}}
@media(prefers-reduced-motion:reduce){#studentTestwisePanel *{scroll-behavior:auto!important}}

/* V129: compact, mobile-first centre average comparison */
#studentTestwisePanel .centre-average-compare{margin:16px 0 22px;padding:14px;border:1px solid #d5e4f3;background:#f7fbff;border-radius:15px}
#studentTestwisePanel .centre-average-compare h3{margin:0 0 5px}
#studentTestwisePanel .centre-average-compare .muted{margin:0 0 12px;font-size:12px}
#studentTestwisePanel .centre-average-bars{display:grid;gap:11px}
#studentTestwisePanel .centre-average-row{min-width:0}
#studentTestwisePanel .centre-average-label{display:flex;justify-content:space-between;gap:10px;margin-bottom:5px;font-size:13px;color:#254565}
#studentTestwisePanel .centre-average-track{height:13px;border-radius:30px;background:#dfe9f4;overflow:hidden}
#studentTestwisePanel .centre-average-fill{height:100%;border-radius:30px;background:#227ca6}
#studentTestwisePanel .centre-average-row:nth-child(2) .centre-average-fill{background:#3568b5}
#studentTestwisePanel .centre-average-row:nth-child(3) .centre-average-fill{background:#518f86}

/* V136: compact accessible disclosures for optional rankings */
#studentTestwisePanel .student-report-disclosure{margin:18px 0 10px;border:1px solid #d5e4f3;border-radius:16px;background:#f7fbff;overflow:hidden}
#studentTestwisePanel .student-report-disclosure>summary{display:flex;align-items:center;gap:12px;padding:15px 17px;cursor:pointer;list-style:none;min-height:55px;color:#183a62}
#studentTestwisePanel .student-report-disclosure>summary::-webkit-details-marker{display:none}
#studentTestwisePanel .student-report-disclosure>summary>span:nth-child(2){flex:1;min-width:0}
#studentTestwisePanel .student-report-disclosure>summary strong{display:block;font-size:16px}
#studentTestwisePanel .student-report-disclosure>summary small{display:block;font-size:12px;color:#607b96;margin-top:3px}
#studentTestwisePanel .student-report-disclosure-icon{font-size:22px;line-height:1}
#studentTestwisePanel .student-report-disclosure>summary>span:last-child{transition:transform .2s}
#studentTestwisePanel .student-report-disclosure[open]>summary>span:last-child{transform:rotate(180deg)}
#studentTestwisePanel .student-report-disclosure>summary:focus-visible{outline:3px solid #80baf0;outline-offset:-3px}
#studentTestwisePanel .student-report-disclosure .student-report-overflow{margin:0 12px 14px;background:#fff}
@media(max-width:480px){#studentTestwisePanel .student-report-disclosure>summary{padding:12px}#studentTestwisePanel .student-report-disclosure .student-report-overflow{margin:0 8px 10px}}

/* V138: collapsed optional charts, visually consistent with ranking cards. */
#studentTestwisePanel .student-report-chart-content{padding:1px 12px 14px;display:grid;gap:8px}
#studentTestwisePanel .student-report-chart-content .tw-bar-row{padding:9px 12px}
#studentTestwisePanel .student-report-chart-content .tw-bar-label{margin-bottom:6px}
#studentTestwisePanel .three-centre-compare>summary{min-height:76px;padding:18px 20px;gap:14px}
#studentTestwisePanel .three-centre-summary-icon{flex-basis:44px;height:44px;font-size:23px}
#studentTestwisePanel .three-centre-summary-text strong{font-size:18px;line-height:1.35}
#studentTestwisePanel .three-centre-summary-text small{font-size:13px;line-height:1.4}
@media(max-width:520px){#studentTestwisePanel .student-report-chart-content{padding:0 8px 10px}#studentTestwisePanel .three-centre-compare>summary{min-height:72px;padding:14px 13px;gap:11px}#studentTestwisePanel .three-centre-summary-text strong{font-size:16px}#studentTestwisePanel .three-centre-summary-text small{font-size:12px}}

/* V139: Make the three-centre disclosure a real visible card. The former
   inline style rules were blocked by the student page's style-src self CSP. */
#studentTestwisePanel details.three-centre-compare {
  display:block;
  margin:16px 0 6px;
  border:1px solid #c5d9ed;
  border-radius:17px;
  background:#f4f8fd;
  overflow:hidden;
  box-shadow:0 2px 7px rgba(18,56,97,.035);
}
#studentTestwisePanel details.three-centre-compare > summary {
  display:flex;
  align-items:center;
  width:100%;
  min-height:78px;
  padding:16px 18px;
  gap:13px;
  cursor:pointer;
  list-style:none;
  box-sizing:border-box;
  color:#173a65;
}
#studentTestwisePanel details.three-centre-compare > summary::-webkit-details-marker {display:none}
#studentTestwisePanel details.three-centre-compare > summary::marker {content:''}
#studentTestwisePanel details.three-centre-compare > summary:focus-visible {outline:3px solid #5b9cdd;outline-offset:-4px}
#studentTestwisePanel .three-centre-summary-icon {
  flex:0 0 44px;
  width:44px;height:44px;
  display:grid;place-items:center;
  border-radius:12px;
  background:#e0eefb;
  color:#22588b;
  font-size:22px;
  line-height:1;
}
#studentTestwisePanel .three-centre-summary-text {
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}
#studentTestwisePanel .three-centre-summary-text strong {
  display:block;
  font-size:17px;
  line-height:1.25;
  font-weight:800;
  color:#173a65;
}
#studentTestwisePanel .three-centre-summary-text small {
  display:block;
  font-size:12px;
  line-height:1.5;
  font-weight:500;
  color:#55728f;
  white-space:normal;
}
#studentTestwisePanel .three-centre-summary-chevron {
  flex:0 0 30px;
  display:grid;place-items:center;
  height:30px;
  font-size:25px;
  font-weight:600;
  transition:transform .2s ease;
  color:#275e94;
}
#studentTestwisePanel details.three-centre-compare[open] .three-centre-summary-chevron {transform:rotate(180deg)}
#studentTestwisePanel .three-centre-comparison-body {padding:0 14px 15px}
#studentTestwisePanel .three-centre-comparison-body>.centre-average-compare,
#studentTestwisePanel .three-centre-comparison-body>.grade-centre-compare {margin:12px 0}
@media(max-width:520px) {
 #studentTestwisePanel details.three-centre-compare > summary {min-height:76px;padding:13px;gap:11px}
 #studentTestwisePanel .three-centre-summary-icon {flex-basis:39px;width:39px;height:39px;font-size:20px}
 #studentTestwisePanel .three-centre-summary-text strong {font-size:16px}
 #studentTestwisePanel .three-centre-summary-text small {font-size:11px}
 #studentTestwisePanel .three-centre-summary-chevron {flex-basis:25px}
 #studentTestwisePanel .three-centre-comparison-body {padding:0 8px 10px}
}
