/* Selected report design. Scoped to report roots, not management controls. */
body.parent-page:has(#report-root){background:#fff;padding:22px}
#report-root{max-width:1036px;margin:auto}
.report-theme-b{container:report-b / inline-size;color:#24354d;font-family:Arial,"Malgun Gothic",sans-serif;--navy:#245aa8;--blue:#245aa8;--line:#d2dce9}
.report-theme-b .report-shell{border:0;border-radius:0;background:#fff;box-shadow:none;overflow:visible;max-width:none}
.report-theme-b .report-shell .report-head{min-height:102px;position:relative;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:20px;padding:23px 25px;background:#235ca4;color:#fff;border:0;border-radius:6px 6px 0 0}
.report-theme-b .report-shell .wordmark{position:static;margin:0;display:block;flex:none;width:155px;height:47px;background:url('/idealmath-logo.png') left center/contain no-repeat;filter:brightness(0) invert(1);text-indent:-9999px}
.report-theme-b .report-shell .student-badge{display:block;text-align:right;background:none;border:0;border-radius:0;padding:0}
.report-theme-b .report-shell .avatar{display:none}
.report-theme-b .report-shell .student-name{font-size:25px;font-weight:800;color:#fff}
.report-theme-b .report-shell .student-class{font-size:12px;color:#d6e4f7;margin-top:5px}
.report-theme-b .report-shell .report-tab{padding:11px 25px;background:#174982;color:white;border:0;border-radius:0 0 6px 6px;text-align:left;font-size:14px;font-weight:700}
.report-theme-b .report-shell .report-select{border:0;background:#fff;padding:20px 2px 0;gap:10px;flex-wrap:wrap}
.report-theme-b .report-shell .report-select label{min-width:0;max-width:100%;font-size:12px;color:#405877}
.report-theme-b .report-shell .report-select select{min-height:39px;max-width:100%;border:1px solid #b8c9df;border-radius:3px;background:#fff;padding:7px 34px 7px 11px;color:#28496f;font-size:13px}
.report-theme-b .report-shell .report-select .small{font-size:11px}
.report-theme-b .report-shell .report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:20px 0;background:#fff;gap:16px;align-items:stretch}
.report-theme-b .report-shell .report-card{min-width:0;border:1px solid #c4d3e6;border-radius:6px;box-shadow:0 3px 9px #1c447d16;background:#fff;padding:0;overflow:hidden}
.report-theme-b .report-shell .text-card{grid-column:span 2}
.report-theme-b .report-shell .wide,.report-theme-b .report-shell .text-card:has(.field-note){grid-column:1/-1}
.report-theme-b .report-shell .report-card>h2{margin:0;padding:17px 20px 0;border:0;background:#fff;color:#25466e;font-size:15px;font-weight:700;line-height:1.5}
/* Only the title receives a highlight; the body and surrounding card stay white. */
.report-theme-b .report-shell .text-card>h2{display:table;width:fit-content;max-width:calc(100% - 40px);margin:16px 20px 0;padding:5px 10px;background:#edf2f8;border:0;border-radius:3px;color:#25466e;line-height:1.6}
.report-theme-b .report-shell .report-copy{margin:12px 20px 21px;font-size:14px;line-height:1.9;color:#344760;white-space:pre-wrap}
.report-theme-b .report-shell .field-note{margin:12px 20px 0;font-size:12px;line-height:1.7;color:#7a8da5}
.report-theme-b .report-shell .text-card.wide{order:-1;background:#fff;border-left:1px solid #c4d3e6}
.report-theme-b .report-shell .metric{grid-column:span 2;order:-2;min-height:254px;padding:0;text-align:center;border-top:4px solid #3680d8}
.report-theme-b .report-shell .metric:has(.attendance-value){background:#fff;border:1px solid #c4d3e6}
.report-theme-b .report-shell .metric:has(.attendance-value)>h2{background:#fff;color:#2b6658}
.report-theme-b .report-shell .attendance-value{font-size:27px;white-space:nowrap;line-height:1.3;min-height:118px;padding:20px 10px;margin:0;color:#246c58;display:grid;place-items:center;flex:1}
.report-theme-b .report-shell .score-ring{width:119px;height:119px;margin:16px auto 8px}
.report-theme-b .report-shell .score-number{font-size:33px;color:#244b7d}
.report-theme-b .report-shell .score-ring svg circle:last-child{stroke:#245aa8}
.report-theme-b .report-shell .score-denominator{font-size:13px;color:#697d97;margin:0 0 15px}
.report-theme-b .report-shell .score-detail-trigger{background:#f1f6fc;border-top:1px solid #c9d7e8;padding:11px;color:#245aa8;font-size:12px;font-weight:700}
.report-theme-b .report-shell .metric details{border-top:1px solid #c9d7e8;margin:0;padding-top:0}
.report-theme-b .report-shell .metric details summary{background:#fff;color:#4c637a;font-size:12px;padding:11px}
.report-theme-b .report-shell .trend-table{font-size:12px}
.report-theme-b .report-shell .inline-score-stats{display:flex;justify-content:center;gap:0;margin:0 18px 16px;padding:12px 0;border-top:1px solid #dce4ee;line-height:1.5}
.report-theme-b .report-shell .inline-score-stats>span{flex:1;min-width:0;text-align:center}
.report-theme-b .report-shell .inline-score-stats>span+span{border-left:1px solid #dce4ee}
.report-theme-b .report-shell .inline-score-stats small{display:block;color:#6e7d90;font-size:11px}
.report-theme-b .report-shell .inline-score-stats strong{display:block;color:#254b7c;font-size:17px;font-weight:700;margin-top:3px}
.report-theme-b .score-detail-dialog{border:1px solid #b0c3de;border-top:4px solid #245aa8;border-radius:5px;max-width:calc(100vw - 28px)}
.report-theme-b .report-shell .clinic-overview{border:1px solid #c4d3e6;border-radius:6px;border-top:3px solid #245aa8;background:#fff;box-shadow:0 3px 9px #1c447d16}
.report-theme-b .report-shell .clinic-section{padding:18px 20px}
.report-theme-b .report-shell .clinic-section-heading{border:0;padding:0;margin:0 0 12px;align-items:center;gap:10px}
.report-theme-b .report-shell .clinic-section-heading h2{width:fit-content;margin:0;padding:5px 10px;background:#edf2f8;border:0;border-radius:3px;color:#25466e;font-size:15px;line-height:1.6}
.report-theme-b .report-shell .clinic-section .report-copy{margin:0;font-size:14px;line-height:1.9}
.report-theme-b .report-shell .clinic-section .field-note{margin:0 0 12px}
.report-theme-b .report-shell .clinic-overview .report-copy{margin:0}
@media(max-width:600px){body.parent-page:has(#report-root){padding:12px}}
/* Container queries also cover the narrow student profile pane and admin modal. */
@container report-b (max-width:600px){
 .report-theme-b .report-shell .report-head{padding:21px 16px;gap:12px}
 .report-theme-b .report-shell .wordmark{width:112px;height:36px}
 .report-theme-b .report-shell .student-name{font-size:21px}
 .report-theme-b .report-shell .student-class{font-size:10px;line-height:1.5;max-width:175px}
 .report-theme-b .report-shell .report-select{padding:13px 14px}
 .report-theme-b .report-shell .report-select select{width:100%;min-width:0;font-size:12px}
 .report-theme-b .report-shell .report-select label{width:100%}
 .report-theme-b .report-shell .report-select>.small{font-size:10px}
 .report-theme-b .report-shell .report-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));padding-top:14px}
 .report-theme-b .report-shell .text-card{grid-column:1/-1}
 .report-theme-b .report-shell .report-card>h2{font-size:14px}
 .report-theme-b .report-shell .text-card>h2{margin:15px 16px 0;max-width:calc(100% - 32px);padding:5px 9px}
 .report-theme-b .report-shell .report-copy{margin:12px 16px 19px;font-size:13px;line-height:1.9}
 .report-theme-b .report-shell .field-note{margin-left:16px;margin-right:16px;font-size:11px}
 .report-theme-b .report-shell .metric{grid-column:span 1;min-height:276px}
 .report-theme-b .report-shell .metric>h2{font-size:13px;padding:12px 8px}
 .report-theme-b .report-shell .attendance-value{font-size:clamp(15px,5cqi,21px);padding:10px 5px}
 .report-theme-b .report-shell .score-ring{width:99px;height:99px}
 .report-theme-b .report-shell .score-number{font-size:28px}
 .report-theme-b .report-shell .inline-score-stats{margin:0 10px 12px;padding-top:10px}
 .report-theme-b .report-shell .inline-score-stats small{font-size:10px}
 .report-theme-b .report-shell .inline-score-stats strong{font-size:15px}
 .report-theme-b .report-shell .clinic-learning-pair{grid-template-columns:1fr;gap:12px}
 .report-theme-b .report-shell .clinic-section{padding:16px}
 .report-theme-b .report-shell .clinic-overview{flex-direction:column;align-items:stretch}
 .report-theme-b .report-shell .clinic-attendance-summary{border-left:0;border-top:1px solid #c6d6e6;padding:12px 0 0}
}

/* Approved notice-first emphasis; other B cards keep their existing styles. */
.report-theme-b .report-shell .report-grid>.report-notice{order:-3;background:#f3f7fd;border-color:#a8bfdd;border-left:4px solid #245aa8}
.report-theme-b .report-shell .report-grid>.report-notice>h2{background:#245aa8;color:#fff;font-weight:700}
.report-theme-b .report-shell .report-grid>.report-notice>.report-copy{color:#233c5b}
