/* Sistema ND Web V2.429 · Importar XLSX / Sexo: simetría real del modal.
   Solamente diseño. La importación, RPC, confirmación, validación y datos no cambian. */
#studentsImportXlsxModal .students-import-card{
  --nd-import-side:20px;
  width:min(890px,calc(100vw - 24px));
  max-height:min(740px,calc(100dvh - 24px));
  min-width:0;
  overflow:hidden;
}
#studentsImportXlsxModal .students-import-card>.modal-header,
#studentsImportXlsxModal .students-import-card>.students-import-footer{
  padding-left:var(--nd-import-side);
  padding-right:var(--nd-import-side);
  box-sizing:border-box;
}
#studentsImportXlsxModal .students-import-card>.students-import-body{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  width:100%;
  max-width:100%;
  padding:18px var(--nd-import-side) 14px;
  overflow:hidden;
  scrollbar-gutter:auto; /* Eliminar el carril adicional a la derecha */
  box-sizing:border-box;
}
#studentsImportXlsxModal .students-import-body>.students-import-table-wrap{
  flex:1 1 auto;
  min-height:0;
  min-width:0;
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  overflow-y:auto; /* Un solo scroll, exclusivamente dentro de la tabla */
  scrollbar-gutter:auto;
  box-sizing:border-box;
}
#studentsImportXlsxModal .students-import-body>:not(.students-import-table-wrap){
  flex:0 0 auto;
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
}
#studentsImportXlsxModal .students-import-issues{
  max-height:130px;
  overflow-y:auto;
}
#studentsImportXlsxModal .students-import-table{
  width:100%;
  min-width:0;
  table-layout:fixed;
}
#studentsImportXlsxModal .students-import-table th,
#studentsImportXlsxModal .students-import-table td{
  overflow-wrap:anywhere;
}
#studentsImportXlsxModal .students-import-footer .students-import-footnote{
  flex:1 1 260px;
  min-width:0;
  max-width:390px;
}
#studentsImportXlsxModal .students-import-footer .students-footer-actions{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin-left:auto;
}
@media(max-width:760px){
  #studentsImportXlsxModal .students-import-card{--nd-import-side:12px;}
  #studentsImportXlsxModal .students-import-card>.students-import-body{
    padding:12px var(--nd-import-side);
    gap:10px;
  }
  #studentsImportXlsxModal .students-import-card>.students-import-footer{
    justify-content:space-between;
    text-align:left;
    padding:12px var(--nd-import-side);
  }
  #studentsImportXlsxModal .students-import-footer .students-import-footnote{flex-basis:160px;}
}
@media(max-width:520px){
  #studentsImportXlsxModal .students-import-card{
    width:calc(100vw - 14px);
    max-height:calc(100dvh - 14px);
  }
  #studentsImportXlsxModal .students-import-footer .students-footer-actions{
    width:100%;
    justify-content:flex-end;
  }
  #studentsImportXlsxModal .students-import-footer .students-import-footnote{
    flex:1 1 100%;
    max-width:100%;
  }
}
