/* Compact student directory. Scope these rules so other student views retain their layout. */
.student-directory-toolbar{display:grid;grid-template-columns:minmax(190px,1.5fr) repeat(3,minmax(140px,1fr));gap:10px;align-items:end}
.student-directory-toolbar label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:11px;font-weight:600;color:var(--muted)}
.student-directory-toolbar input,.student-directory-toolbar select{width:100%;min-width:0;max-width:none;margin:0;font-weight:400}
.student-directory-counts{grid-column:1/-1;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.student-directory-counts .badge{white-space:normal}
.student-directory-wrap{border-radius:var(--beat-radius) var(--beat-radius) 0 0}
.student-directory-table{table-layout:fixed}
.student-directory-table th{padding:8px 12px;font-size:11px}
.student-directory-table th:first-child{width:29%}
.student-directory-table th:nth-child(3){width:180px}
.student-directory-table th:nth-child(4){width:100px}
.student-directory-table th:nth-child(5){width:130px}
.student-directory-table th:last-child{width:68px;text-align:right}
.student-directory-table.with-face-actions th:last-child{width:96px}
.student-directory-table td{padding:8px 12px;vertical-align:middle;font-size:12px;line-height:1.4}
.student-directory-table tbody tr:last-child td{border-bottom:0}
.student-directory-table .student-identity{gap:9px;min-width:0}
.student-directory-table .student-photo{width:36px;height:36px;flex-basis:36px;font-size:11px}
.student-directory-table .student-photo img{width:100%;height:100%}
.student-directory-name{min-width:0}
.student-directory-name b{display:block;font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.student-directory-table td small{font-size:11px;line-height:1.4;margin-top:2px}
.student-directory-program>span,.student-directory-program>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.student-directory-table .student-directory-registration small{font-size:10px}
.student-directory-table .student-directory-rfid .badge{font-size:10px;padding:3px 6px}
.student-directory-table .student-directory-face .badge{font-size:10px;padding:3px 6px;white-space:nowrap}
.student-face-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.student-face-total{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:14px 16px;text-align:left;border:1px solid var(--line);background:var(--surface,#fff);border-radius:var(--beat-radius);color:var(--slsu-ink)}
.student-face-total span{font-size:12px;color:var(--muted);font-weight:500}
.student-face-total b{font-size:26px;line-height:1.2;font-variant-numeric:tabular-nums}
.student-face-total[aria-pressed=true]{border-color:var(--slsu-blue);background:var(--slsu-blue-soft);box-shadow:inset 0 0 0 1px var(--slsu-blue)}
.student-face-total:focus-visible{outline:2px solid var(--slsu-blue);outline-offset:3px}
.student-directory-mobile-label{display:none}
.student-directory-actions>div{display:flex;justify-content:flex-end;align-items:center;gap:4px}
.student-directory-actions button{min-height:32px;padding:6px 8px;font-size:11px;font-weight:550;white-space:nowrap;background:transparent;border-color:transparent;color:var(--slsu-blue)}
.student-directory-actions button:hover:not(:disabled){border-color:var(--line);background:var(--slsu-blue-soft)}
.student-directory-actions .student-directory-icon{width:32px;height:32px;padding:7px;flex-shrink:0;border-radius:6px}
.student-directory-icon .icon{width:18px;height:18px;pointer-events:none}
#student-results .directory-pagination{padding:9px 12px;gap:8px}
#student-results .directory-pagination small{font-size:11px}
#student-results .directory-pagination .inline{gap:5px}
#student-results .directory-pagination button{min-height:32px;padding:6px 9px;font-size:11px}
@media(max-width:1050px){
 .student-directory-table,.student-directory-table tbody{display:block}
 .student-directory-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .student-directory-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;padding:11px 12px;border-bottom:1px solid var(--line)}
 .student-directory-table tbody tr:last-child{border-bottom:0}
 .student-directory-table td{display:block;padding:0;border:0;min-width:0;white-space:normal}
 .student-directory-table .student-directory-person{grid-column:1/-1}
 .student-directory-name b{white-space:normal;overflow-wrap:anywhere}
 .student-directory-table .student-directory-program{grid-column:1/-1;margin-top:2px}
 .student-directory-program>span,.student-directory-program>small{white-space:normal;overflow-wrap:anywhere}
 .student-directory-table .student-directory-registration{grid-column:1/-1;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:11px}
 .student-directory-table .student-directory-registration small{margin-top:0;font-size:11px}
 .student-directory-table .student-directory-rfid,.student-directory-table .student-directory-face{grid-column:1;display:flex;align-items:center;gap:5px}
 .student-directory-mobile-label{display:inline;font-size:10px;color:var(--muted)}
 .student-directory-table .student-directory-actions{grid-column:2;grid-row:4/6;align-self:center}
}
@media(max-width:760px){
 .student-directory-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}
 .student-directory-toolbar .student-search-filter{grid-column:1/-1}
 .student-directory-toolbar label:last-of-type{grid-column:1/-1}
 #student-results .directory-pagination{flex-wrap:wrap}
 #student-results .directory-pagination>.inline{margin-left:auto}
 .student-face-totals{gap:8px}
 .student-face-total{padding:12px 9px}
 .student-face-total span{font-size:11px}
 .student-face-total b{font-size:23px}
}
@media(pointer:coarse){
 .student-directory-actions button,#student-results .directory-pagination button{min-height:44px}
 .student-directory-actions .student-directory-icon{width:44px;height:44px}
 .student-directory-table.with-face-actions th:last-child{width:120px}
}
