.but-overview-hero{margin-top:16px}
.but-overview-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.but-overview-stats>div{display:grid;gap:5px;padding:15px 18px;border:1px solid #cfe3e1;border-radius:15px;background:#f7fcfb}
.but-overview-stats small{color:var(--muted);font-size:12px;font-weight:700}
.but-overview-stats strong{color:var(--navy);font-size:24px}
.but-overview-card .card-head{display:flex;justify-content:space-between;gap:18px;align-items:end}
.but-overview-card .card-head p{margin:5px 0 0}
.but-overview-search{display:grid;gap:6px;min-width:210px;color:var(--muted);font-size:12px;font-weight:750}
.but-overview-search input{width:100%;min-height:42px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--navy);font:inherit}
.but-overview-toggle{display:flex;align-items:center;gap:7px;margin:6px 0 15px;color:var(--muted);font-size:13px}
.but-overview-table{min-width:1120px}
.but-overview-table th,.but-overview-table td{white-space:normal;vertical-align:top}
.but-overview-table th:first-child,.but-overview-table td:first-child{min-width:145px}
.but-overview-table tbody tr:hover{background:#f7fcfb}
.but-overview-table tbody tr[hidden]{display:none}
.but-overview-table input,.but-overview-table select,.but-overview-table textarea{width:100%;min-height:39px;min-width:0;padding:8px 9px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--navy);font:inherit;font-size:13px}
.but-overview-table input:focus,.but-overview-table select:focus,.but-overview-table textarea:focus{outline:2px solid var(--teal);outline-offset:1px}
.but-overview-table td:nth-child(2){min-width:205px}
.but-overview-table td:nth-child(3){min-width:155px}
.but-overview-table td:nth-child(4){min-width:145px}
.but-overview-table td:nth-child(5){min-width:135px}
.but-overview-table td:nth-child(6){min-width:200px}
.but-overview-table td:nth-child(7){min-width:130px}
.but-overview-table textarea{resize:vertical;min-height:70px}
/* Keep the editable overview's labels in the same scroll area as its rows. */
@media(min-width:701px){
 .but-overview-card .table-wrap{max-height:68vh;max-height:68dvh;overflow:auto;position:relative;isolation:isolate;scroll-padding-top:75px}
 .but-overview-table{border-collapse:separate;border-spacing:0}
 .but-overview-table thead th{position:sticky;top:0;z-index:3;background:#f2f7f8;box-shadow:0 1px 0 var(--line)}
 .but-overview-table tbody td:first-child{position:sticky;left:0;z-index:2;background:#fff;box-shadow:1px 0 0 var(--line)}
 .but-overview-table tbody tr:hover td:first-child{background:#f7fcfb}
 .but-overview-table thead th:first-child{left:0;z-index:4}
}
@media print{
 .but-overview-card .table-wrap{max-height:none;overflow:visible}
 .but-overview-table thead th,.but-overview-table tbody td:first-child{position:static;box-shadow:none}
}
.but-inline-subjects{display:grid;gap:6px}
.but-inline-subject{display:grid;grid-template-columns:minmax(0,1fr) 68px;gap:5px}
.but-inline-add{margin-top:6px;border:0;background:none;color:var(--teal-dark);font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.but-inline-add:hover{text-decoration:underline}
.but-inline-status{display:inline-block;color:var(--muted);font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.but-inline-status[data-state="saved"]{color:#075e50}
.but-inline-status[data-state="error"]{color:#a33c26}
.but-inline-status[data-state="saving"],.but-inline-status[data-state="pending"]{color:#876018}
@media(max-width:700px){.but-overview-stats{grid-template-columns:1fr}.but-overview-card .card-head{align-items:stretch;flex-direction:column}.but-overview-search{width:100%}.but-overview-table{min-width:0}.but-overview-table thead{display:none}.but-overview-table tbody{display:grid;gap:12px}.but-overview-table tbody tr[data-but-student-id]{display:grid;padding:12px;border:1px solid var(--line);border-radius:13px;background:#fff}.but-overview-table tbody tr[hidden]{display:none}.but-overview-table td{display:grid;gap:4px;min-width:0!important;padding:7px 0}.but-overview-table td::before{content:attr(data-label);color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.but-overview-table td:first-child::before{display:none}}
