/* Live grade sheets inspired by green-and-gold academic stationery. */
.portal-modern-chic #grades.grade-progress-design{--progress-green:var(--section-color,#184d39);--progress-gold:#997019;--grade-workspace-width:1200px;background:linear-gradient(#ffffffe0,#fffffff5),var(--grade-background-image,url('../grades/student-progress-background-v2.png')) center top/cover no-repeat;border-radius:22px;padding:clamp(10px,2vw,24px);box-sizing:border-box}
.portal-modern-chic #grades.grade-progress-design>.portal-flow-header{min-height:190px;background:linear-gradient(90deg,#fffffff0 10%,#ffffffe0 55%,#ffffff10),var(--grade-background-image,url('../grades/student-progress-background-v2.png')) center 22%/cover;border:1px solid #d9cba7;border-radius:16px;color:#183f30;box-shadow:0 12px 32px #193e3010}
.portal-modern-chic #grades.grade-progress-design>.portal-flow-header :is(h3,p,.portal-flow-kicker){color:#183f30;text-shadow:none}
.portal-modern-chic #grades.grade-progress-design>.portal-flow-header h3{font:500 clamp(30px,4vw,48px)/1.1 Georgia,serif}
.portal-modern-chic #grades.grade-progress-design>.portal-flow-header .portal-flow-icon{background:#fff9e9;color:#997019;border-color:#d9cba7}
.portal-modern-chic #grades.grade-progress-design .grade-toolbar{background:#ffffffed;border-color:#ddd4bf;box-shadow:none}
.portal-modern-chic #grades.grade-progress-design .grade-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
.portal-modern-chic #grades.grade-progress-design .grade-summary-item{background:#fffffff0;border-color:#ddd4bf}
.portal-modern-chic #grades.grade-progress-design .grade-summary-icon{background:#eaf1e9;color:#28553e}
.portal-modern-chic #grades.grade-progress-design .grade-summary-item strong{color:#184d39}
.portal-modern-chic #grades.grade-progress-design .grade-course-section{background:#f9f8f3;border:1px solid #d5c9aa}
.portal-modern-chic #grades.grade-progress-design .grade-course-heading{background:linear-gradient(110deg,var(--progress-green),#163e30);padding:17px 20px}
.portal-modern-chic #grades.grade-progress-design .grade-course-heading p{color:#ecede4}
.portal-modern-chic #grades.grade-progress-design .grade-course-students{grid-template-columns:minmax(0,1fr);padding:12px;gap:10px}
.portal-modern-chic #grades.grade-progress-design .student-progress-card{width:100%;max-width:none;border:1px solid #d9d1be;border-radius:12px;box-shadow:0 4px 16px #183c3010}
.portal-modern-chic #grades.grade-progress-design .student-grade-stack-head{cursor:pointer;list-style:none;display:flex;padding:14px 18px;gap:14px;background:linear-gradient(110deg,#fff,#f3f5ed);border-bottom:0}
.student-grade-stack-head::-webkit-details-marker{display:none}
#grades .student-grade-stack-head:focus-visible{outline:3px solid #ad882c;outline-offset:-3px}
.portal-modern-chic #grades.grade-progress-design .student-grade-stack-head h4{font:600 18px/1.3 Georgia,serif;color:#193f30;overflow-wrap:anywhere}
.portal-modern-chic #grades.grade-progress-design .student-grade-stack-head small{font:12px/1.5 system-ui,sans-serif;color:#5b665e}
#grades .progress-student-name{flex:1;min-width:0}
#grades .progress-avatar{flex:0 0 42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#e6ede2;color:#214e38;font:600 15px Georgia,serif;border:1px solid #d4d7c6}
.portal-modern-chic #grades.grade-progress-design .student-grade-average strong{font:600 21px/1.3 Georgia,serif;color:#184d39}
.portal-modern-chic #grades.grade-progress-design .student-grade-average span{font-size:9px;color:#666451}
#grades .progress-chevron{font-size:22px;color:#8c671b;transform:rotate(-90deg)}
#grades .student-progress-card[open]>.student-grade-stack-head .progress-chevron{transform:rotate(0)}
#grades .progress-sheet{padding:clamp(10px,2vw,24px);background:#fff var(--grade-background-image,url('../grades/student-progress-background-v2.png')) center top/100% auto no-repeat;overflow-wrap:anywhere}
#grades .progress-sheet-heading{text-align:center;padding:36px 8px 22px;background:radial-gradient(ellipse,#ffffffec,#ffffff80 60%,transparent)}
#grades .progress-brand{font:600 12px/1.5 Georgia,serif;letter-spacing:.12em;text-transform:uppercase;color:#244533}
#grades .progress-sheet-heading h4{font:500 clamp(30px,4vw,52px)/1.1 Georgia,serif;color:#173f2f;margin:14px 0 10px}
#grades .progress-sheet-heading h4 em{font-style:normal;color:#94701e}
#grades .progress-sheet-heading p{font:11px/1.6 system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:#314d3d;margin:0}
#grades .progress-student-details{display:grid;grid-template-columns:1fr 1fr;gap:0 30px;padding:16px 20px;border:1px solid #d5cbb6;background:#fffffff2;border-radius:12px;margin:0}
#grades .progress-student-details>div{display:grid;grid-template-columns:95px minmax(0,1fr);gap:10px;align-items:baseline;padding:8px 0;border-bottom:1px solid #e9e4d8}
#grades .progress-student-details dt{font:600 14px Georgia,serif;color:#22432f}
#grades .progress-student-details dd{margin:0;font:13px/1.4 system-ui,sans-serif;color:#3a493f}
#grades .progress-sheet-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:14px 0}
#grades .progress-sheet-tools p{margin:0;color:#555f55;font-size:12px}
#grades .progress-sheet-tools .btn{padding:9px 15px;font-size:12px;min-height:40px}
#grades .progress-table-wrap{border:1px solid #d4c7ad;border-radius:10px;overflow:hidden;background:#fff}
#grades table.progress-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:0;font:12px/1.5 system-ui,sans-serif}
#grades .progress-table thead th{background:var(--progress-green);color:#fff;font:600 13px/1.4 Georgia,serif;padding:14px 8px;text-align:center;border-right:1px solid #ffffff38;text-transform:uppercase;letter-spacing:.03em}
#grades .progress-table thead th span{display:block;font:24px/1.4 system-ui,sans-serif}
#grades .progress-table thead th:first-child{width:20%}#grades .progress-table thead th:last-child{width:24%}
#grades .progress-table :is(td,tbody th){padding:12px 10px;text-align:left;vertical-align:top;border:1px solid #dfd6c5;color:#243c2d;font-size:12px;white-space:normal;overflow-wrap:anywhere}
#grades .progress-table tbody th{font-weight:500;background:#f7f1e5}
#grades .progress-table tbody tr:nth-child(even){background:#faf8f3}
.portal-modern-chic #grades.grade-progress-design .progress-table .grade-record{display:table-row;position:static;padding:0;border:0;border-radius:0;background:#fff;box-shadow:none;overflow:visible}
#grades .progress-table .grade-record::before{content:none}
.portal-modern-chic #grades.grade-progress-design .progress-table .grade-record-test{background:var(--test-grade-bg,#d9f0ff)!important}
#grades .progress-table .grade-record-test th{background:color-mix(in srgb,var(--test-grade-bg,#d9f0ff) 90%,#184d39)}
#grades .progress-table :is(strong,small){display:block}
#grades .progress-table small{font:11px/1.6 system-ui,sans-serif;color:#53604f;margin-top:4px}
#grades .progress-work-type{display:block;font:600 14px Georgia,serif;color:#6e551f;margin-bottom:5px}
#grades .progress-table .progress-percentage{font:600 19px Georgia,serif;color:#174b32}
#grades .progress-table .progress-remarks{white-space:pre-wrap}
.portal-modern-chic #grades.grade-progress-design .progress-table .actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px;padding-top:0;border:0}
.portal-modern-chic #grades.grade-progress-design .progress-table .actions .btn{width:auto;min-height:34px;font-size:11px;padding:6px 9px;white-space:normal}
#grades .progress-ungraded td{color:#707465;font-size:11px;vertical-align:middle}
#grades .progress-sheet-footer{padding:28px 12px 20px;text-align:center;background:linear-gradient(#ffffffa8,#ffffffca),var(--grade-background-image,url('../grades/student-progress-background-v2.png')) center bottom/cover}
#grades .progress-sheet-footer p{font:30px/1.3 Allura,Georgia,serif;color:#254734;margin:0 0 6px}
#grades .progress-sheet-footer em{font-style:normal}
#grades .progress-sheet-footer>span{display:block;font-size:32px;line-height:1;color:#9d761f}
#grades .progress-sheet-footer small{display:block;font-size:10px;letter-spacing:.12em;color:#596353;margin:10px 0 20px}
#grades .progress-sheet-footer>div{border-top:1px solid #d7c49b;padding-top:14px;font:11px Georgia,serif;letter-spacing:.12em;text-transform:uppercase;color:#36513d}
.progress-grade-form-heading{padding:20px;border:1px solid #d6c49f;border-radius:12px;background:linear-gradient(90deg,#fffffff5,#ffffffbc),var(--grade-background-image,url('../grades/student-progress-background-v2.png')) center/cover;margin-bottom:18px}
.progress-grade-form-heading>span{font-size:11px;text-transform:uppercase;letter-spacing:.15em;color:#886619}.progress-grade-form-heading h3{color:#184d39!important;margin:8px 0;font:30px Georgia,serif}.progress-grade-form-heading p{font-size:13px;line-height:1.5;color:#4c5c50;margin:0}
@media(max-width:850px){#grades .progress-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#grades .progress-table,#grades .progress-table tbody{display:block}.portal-modern-chic #grades.grade-progress-design .progress-table .grade-record{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #d4c7ad}#grades .progress-table :is(td,tbody th){display:block;border:0;border-bottom:1px solid #e4ddcc;padding:10px;min-width:0}#grades .progress-table [data-label]::before{content:attr(data-label);display:block;font:600 10px/1.4 system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#5f694f;margin-bottom:5px}#grades .progress-table .grade-record>th,#grades .progress-table .grade-record>td:last-child{grid-column:1/-1}#grades .progress-ungraded{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e4ddcc}#grades .progress-ungraded>th{flex:1}#grades .progress-ungraded>td{flex:1}.portal-modern-chic #grades.grade-progress-design .grade-summary{grid-template-columns:repeat(2,minmax(0,1fr))}#grades .progress-student-details{gap:0 15px;padding:12px}#grades .progress-student-details>div{grid-template-columns:1fr;gap:4px}}
@media(max-width:500px){.portal-modern-chic #grades.grade-progress-design{padding:8px}.portal-modern-chic #grades.grade-progress-design>.portal-flow-header{padding:20px 14px;min-height:170px}.portal-modern-chic #grades.grade-progress-design .grade-course-students{padding:7px}.portal-modern-chic #grades.grade-progress-design .student-grade-stack-head{gap:8px;padding:12px 10px}#grades .progress-avatar{display:none}.portal-modern-chic #grades.grade-progress-design .student-grade-stack-head h4{font-size:16px}.portal-modern-chic #grades.grade-progress-design .student-grade-stack-head small{font-size:10px}.portal-modern-chic #grades.grade-progress-design .student-grade-average strong{font-size:18px}#grades .progress-sheet-heading{padding:24px 0 18px}#grades .progress-brand{font-size:9px}#grades .progress-sheet-heading h4{font-size:29px}#grades .progress-sheet-heading p{font-size:9px;letter-spacing:.09em}#grades .progress-student-details{grid-template-columns:1fr}#grades .progress-student-details>div{grid-template-columns:80px minmax(0,1fr)}#grades .grade-filter-grid,#grades .grade-filter-grid:has(#gradeStudentFilterField.hidden){grid-template-columns:minmax(0,1fr)}#grades .grade-toolbar-actions .btn{white-space:normal}#grades .progress-sheet-tools .btn{width:100%}.portal-modern-chic #grades.grade-progress-design .grade-summary-item{padding:10px;grid-template-columns:1fr}#grades .grade-summary-icon{display:none}}
@media print{.portal-modern-chic #grades.grade-progress-design{background:#fff;padding:0}#grades .progress-sheet{background:#fff;padding:4px}#grades .progress-sheet-tools,#grades .progress-chevron,#grades .progress-table .actions{display:none!important}#grades .progress-table thead{position:static;width:auto;height:auto;clip-path:none;display:table-header-group}#grades .progress-table{display:table}#grades .progress-table tbody{display:table-row-group}.portal-modern-chic #grades.grade-progress-design .progress-table .grade-record,#grades .progress-ungraded{display:table-row;break-inside:avoid}#grades .progress-table :is(td,tbody th){display:table-cell;border:1px solid #ccc}#grades .progress-table [data-label]::before{content:none}#grades .progress-sheet-heading{padding:8px}#grades .progress-sheet-footer{background:none}#grades .progress-student-details{grid-template-columns:1fr 1fr}}

#grades .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media print{body.printing-grades #grades .student-progress-card{break-inside:auto}#grades .student-progress-card{overflow:visible}}

#grades .progress-sheet-heading h4::after{display:none}

#grades .progress-table-wrap{container-type:inline-size}
@media screen{@container(max-width:760px){#grades .progress-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#grades .progress-table,#grades .progress-table tbody{display:block}.portal-modern-chic #grades.grade-progress-design .progress-table .grade-record{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #d4c7ad}#grades .progress-table :is(td,tbody th){display:block;border:0;border-bottom:1px solid #e4ddcc;padding:10px;min-width:0}#grades .progress-table [data-label]::before{content:attr(data-label);display:block;font:600 10px/1.4 system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#5f694f;margin-bottom:5px}#grades .progress-table .grade-record>th,#grades .progress-table .grade-record>td:last-child{grid-column:1/-1}#grades .progress-ungraded{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e4ddcc}#grades .progress-ungraded>th{flex:1}#grades .progress-ungraded>td{flex:1}}}
#grades .progress-sheet-heading{border-bottom:1px solid #c4a257;box-shadow:none;border-radius:0}
