/* Directory presentation is scoped to Alumnos; shared ERP screens are unchanged. */
.students-page .heading-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.students-page main>.heading .heading-actions>a{padding:11px 16px;border:1px solid #cdd4dd;border-radius:8px;background:#fff;color:var(--blue);text-decoration:none;font-size:13px;font-weight:600}
.student-search-card{padding:26px;margin-bottom:24px}
.student-search-heading h2{font-size:21px;margin:0 0 8px}
.student-search-heading p{margin:0 0 22px;font-size:14px;line-height:1.6;color:var(--muted)}
.students-page #search-form{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;width:100%}
.student-search-field{display:flex;flex-direction:column;gap:8px;flex:1 1 360px;min-width:0}
.student-search-field label{font-size:13px;font-weight:600}
.students-page #search{width:100%;min-height:44px;font-size:14px;background:#fff}
.student-search-actions{display:flex;gap:10px;flex-wrap:wrap}
.student-search-actions button{min-height:44px;white-space:nowrap}
.student-search-help{margin:18px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}
.student-results-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;padding:24px 26px}
.student-results-heading h2{font-size:19px;margin:0 0 7px}
.student-results-heading p{margin:0;font-size:12px;color:var(--muted)}
.student-result-count{display:inline-block;border:1px solid #dce5ef;background:#f1f6fa;padding:10px 14px;border-radius:9px;font-size:12px;color:#385571}
.students-page #feedback:empty{display:none}
.student-directory-card table{font-size:13px}
.student-directory-card th{padding:15px 22px;font-size:10px;line-height:1.5}
.student-directory-card td{padding:20px 22px;line-height:1.5;vertical-align:top}
.student-directory-card tbody tr:hover{background:#f8fbfd}
.student-directory-card .person{align-items:center;gap:13px}
.student-directory-card .person strong{font-size:14px;line-height:1.5}
.student-directory-card .avatar{width:39px;height:39px;background:#edf3f8;color:#476786;font-weight:600;flex-shrink:0}
.student-directory-card .code{font-variant-numeric:tabular-nums;padding-top:24px}
.student-directory-card .sub{line-height:1.5;margin-top:5px}
.student-directory-card td:nth-child(3){overflow-wrap:anywhere}
.student-directory-card .student-enrollment-summary{display:grid;gap:10px}
.student-directory-card .badge{line-height:1.5;white-space:normal;max-width:100%;padding:6px 10px}
.student-directory-card .link-button{background:#fff;border:1px solid #cdd9e6;border-radius:8px;padding:9px 13px;font-weight:600}
.student-directory-card .pagination{padding:18px 26px;background:#fcfdfe}
.students-page #detail{width:min(730px,calc(100% - 28px));padding:28px}
.students-page #detail>.dialog-head{margin-bottom:14px;gap:16px}
.students-page #detail-title{font-size:30px;line-height:1.25;margin:0 0 22px}
.students-page #detail>.heading-actions{padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid var(--line)}
.students-page #detail-content>dl{grid-template-columns:130px minmax(0,1fr);gap:16px 22px;font-size:14px;line-height:1.6}
.students-page #detail .student-enrollment-summary{display:grid;gap:10px}
.students-page #detail .badge{white-space:normal;line-height:1.5}
.students-page #detail .student-notes{padding:16px;background:#f7f9fc;border:1px solid #e1e7ef;border-radius:10px;margin-top:20px}
.students-page #detail .student-notes summary{cursor:pointer;font-size:14px;font-weight:600}
.students-page #detail .student-notes p{line-height:1.7;font-size:13px}
@media(min-width:701px){.student-directory-card table{min-width:940px}.student-directory-card td:first-child{min-width:230px}.student-directory-card td:nth-child(4){min-width:230px}}
@media(max-width:700px){
 .student-search-card{padding:20px}.student-search-field{flex-basis:100%}.student-search-actions{width:100%}.student-search-actions button{flex:1 1 auto}
 .student-results-heading{padding:20px;align-items:flex-start}.student-result-count{width:100%}
 .student-directory-card td{padding:0;margin-bottom:15px}.student-directory-card .code{padding-top:0}
 .student-directory-card .table-wrap tr{padding:18px;background:#fff;box-shadow:0 3px 12px #18365f05}
 .student-directory-card .table-wrap td:last-child{padding-top:14px}.student-directory-card .link-button{width:100%;text-align:center}
 .student-directory-card .person strong{font-size:16px}.student-directory-card .pagination{padding:16px}
 .students-page #detail{padding:22px}.students-page #detail-content>dl{grid-template-columns:1fr;gap:6px}.students-page #detail-content>dl dd{margin-bottom:14px}
}

/* Academic criteria and export share the same applied search. */
.students-page .student-search-field{flex-basis:100%}
.student-academic-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;flex:1 1 100%;padding:18px;background:#f8fafc;border:1px solid #e0e7ef;border-radius:10px}
.student-academic-filters label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;min-width:0}
.student-academic-filters select{width:100%;min-width:0;min-height:44px;font:inherit;font-weight:400;padding:10px;background:#fff;border:1px solid #c7d3e1;border-radius:8px;color:var(--blue)}
.students-page .student-search-actions{width:100%;align-items:center}
#student-export{margin-left:auto}
.student-filter-dirty{font-size:12px;color:#815b16;margin:14px 0 0}
@media(max-width:1100px){.student-academic-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.student-academic-filters{grid-template-columns:1fr;padding:14px}#student-export{margin-left:0}}
