/* Shared import controls for the institution administrator and mandate offices. */
#v3-list-editor .cadre-actions,#v3-queue .cadre-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0}
#v3-list-editor .cadre-actions>label{flex:1 1 300px;min-width:0}
#v3-list-editor input[type=file]{width:100%;max-width:100%;box-sizing:border-box}
#v3-people .cadre-scroll,#v3-preview .cadre-scroll,#v3-queue .cadre-scroll{max-width:100%;overflow-x:auto}
#v3-preview table{width:100%;min-width:1050px;border-collapse:collapse}
#v3-preview th,#v3-preview td{padding:8px;text-align:left;vertical-align:top}
#v3-preview input{width:100%;min-width:125px;box-sizing:border-box;padding:10px;border:1px solid #bacce0;border-radius:8px;font:inherit;background:#fff;color:#193653}
#v3-preview input[data-field=email]{min-width:235px}
#v3-preview input[data-field=phone]{min-width:160px}
#v3-preview [role=alert],#v3-queue [role=alert]{color:#9a2532}
#v3-list-editor button[hidden]{display:none!important}
#v3-list-editor button:disabled,#v3-queue button:disabled{opacity:.55;cursor:wait}
#v3-queue [data-remove-panel]:not(:empty){margin:12px 0;padding:15px;border:1px solid #d8b574;border-radius:10px;background:#fff8e9}
#v3-queue [data-v3=batch-remove],#v3-queue [data-remove-confirm]{color:#912c37}
@media(max-width:600px){#v3-list-editor .cadre-actions,#v3-queue .cadre-actions{align-items:stretch;flex-direction:column}#v3-list-editor .cadre-actions>label{flex:auto;width:100%}#v3-list-editor .cadre-actions>button,#v3-preview .cadre-actions>button{width:100%}}

.cadre-panel .cadre-required{color:#c12535;font-weight:800}.cadre-required-note{font-size:12px;color:#64748b}
.student-import-tools{padding:16px;border:1px solid #d8e3ef;background:#fff;border-radius:14px;margin:20px 0}.student-import-help{font-size:12px;color:#63758b;margin:4px 0 12px}
#v3-list-editor .student-import-consent,.student-conversion-review label{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.5}.student-import-consent input,.student-conversion-review input[type=checkbox]{width:auto!important;min-width:0!important;margin:4px 0;flex:none}
#v3-list-editor [hidden]{display:none!important}#v3-list-editor .student-import-secondary{margin-bottom:0}.student-import-secondary button{font-size:12px}
#v3-list-editor [data-v3=draft-save],#v3-list-editor [data-v3=file-convert]{background:#173b6c;color:#fff;border-color:#173b6c}.student-conversion-review{padding:14px;border-radius:10px;background:#fff8e8;border:1px solid #edd9a7;margin:12px 0}

/* Compact review: only the current page is rendered; records stay in editor state. */
#student-preview{min-width:0;max-width:100%;margin-top:20px;color:#193653;font-size:13px}
#student-preview button,#student-preview select,#student-preview input{font:inherit;box-sizing:border-box;color:inherit}
#student-preview button,#student-preview select{min-height:34px;padding:6px 11px;border:1px solid #d3deea;border-radius:7px;background:#fff;line-height:1.35}
#student-preview button:hover{background:#eef4fa}
#student-preview button:disabled{cursor:default}
#student-preview .student-primary{background:#193b66;color:#fff;border-color:#193b66;font-weight:650}
#student-preview .student-primary:hover{background:#244e7d}
#student-preview :focus-visible{outline:2px solid #327bb0;outline-offset:2px}
#student-preview .student-review-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
#student-preview h3{font:700 19px/1.3 system-ui,sans-serif;margin:0 0 4px}
#student-preview h3 span{font-size:13px;font-weight:400;color:#64748b}
#student-preview #student-check-summary{font-size:12px;line-height:1.4;color:#536b80;margin:0}
#student-preview .student-review-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#student-preview .student-more{position:relative;margin:0;font-size:13px}
#student-preview .student-more summary{cursor:pointer;list-style:none;border:1px solid #d3deea;border-radius:7px;padding:7px 11px;min-height:34px;background:#fff;font-weight:500;font-size:13px}
#student-preview .student-more summary::after{content:' ▾';color:#61778f}
#student-preview .student-more>div{position:absolute;right:0;top:100%;z-index:5;background:#fff;padding:5px;min-width:210px;border:1px solid #d3deea;border-radius:9px;box-shadow:0 8px 24px #1837511f}
#student-preview .student-more button{display:block;border:0;width:100%;text-align:left}
#student-preview .student-more [data-student-clear]{color:#a53742}
#student-preview .student-review-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
#student-preview .student-search{flex:1;min-width:230px;max-width:420px;margin:0}
#student-preview #student-search{width:100%;min-height:36px;padding:8px 11px;border:1px solid #cddae7;border-radius:8px;background:#fff;font-size:13px;margin:0}
#student-preview .student-filters{display:flex;gap:4px;background:#e9eff6;border-radius:8px;padding:3px}
#student-preview .student-filters button{border-color:transparent;background:transparent;min-height:30px;padding:4px 10px;font-size:12px}
#student-preview .student-filters button[aria-pressed=true]{background:#fff;box-shadow:0 1px 3px #16395d14;color:#173b63}
#student-preview .student-filters b{font-size:11px;background:#e9eff6;padding:2px 5px;border-radius:5px;margin-left:3px}
#student-preview .student-table-scroll{max-width:100%;max-height:560px;overflow:auto;border:1px solid #d7e1ec;border-radius:10px;background:#fff;scrollbar-gutter:stable}
#student-preview .student-import-table{width:100%;min-width:820px;border-collapse:separate;border-spacing:0;table-layout:fixed;margin:0;font-size:13px;line-height:1.35}
#student-preview .student-index-col{width:48px}#student-preview .student-action-col{width:40px}
#student-preview .student-col-email{width:25%}#student-preview .student-col-phone{width:17%}
#student-preview .student-import-table th,#student-preview .student-import-table td{padding:4px 6px;text-align:left;vertical-align:top;border:0;border-bottom:1px solid #e8edf3;min-width:0;max-width:none;white-space:normal;height:auto}
#student-preview .student-import-table th{position:sticky;top:0;z-index:1;padding:10px 12px;background:#eef3f8;color:#536b80;font-size:11px;font-weight:650;letter-spacing:.02em;white-space:nowrap}
#student-preview .student-import-table tr:nth-child(even){background:#fafcfe}
#student-preview .student-import-table tr:hover{background:#f1f6fc}
#student-preview .student-import-table .student-incomplete{background:#fffaf3}
#student-preview .student-import-table input{display:block;width:100%;min-width:0;min-height:30px;height:30px;padding:5px 6px;margin:0;border:1px solid transparent;border-radius:5px;background:transparent;font-size:13px;line-height:18px;box-shadow:none;text-overflow:ellipsis}
#student-preview .student-import-table input:hover{border-color:#c8d8e7;background:#fff}
#student-preview .student-import-table input:focus{border-color:#327bb0;background:#fff;text-overflow:clip;outline-offset:0}
#student-preview .student-import-table input[aria-invalid=true]{background:#fff;border-color:#e3b5a7}
#student-preview .student-import-table .student-row-index{position:relative;padding:11px 5px 7px 10px;font-size:11px;color:#657b90;font-variant-numeric:tabular-nums}
#student-preview .student-status-mark{display:inline-block;color:#a35317;font-size:10px;font-weight:800;margin-left:3px}
#student-preview .student-import-table .student-row-actions{padding:4px}
#student-preview .student-row-actions button{width:30px;min-height:30px;height:30px;padding:0;border:0;background:transparent;color:#6f8296;font-size:19px;line-height:1}
#student-preview .student-row-actions button:hover{color:#a53742;background:#fdeff0}
#student-preview .student-row-error{display:block;color:#a34425;font-size:11px;line-height:1.35;margin:3px 6px 1px;overflow-wrap:anywhere}
#student-preview .student-row-feedback td{color:#a34425;background:#fff7ed;font-size:12px;padding:8px 12px;grid-column:1/-1}
#student-preview .student-global-errors{color:#a34425;background:#fff7ed;padding:10px;border-radius:7px;margin:8px 0}
#student-preview .student-global-errors p{margin:0}
#student-preview .student-import-table .student-empty{padding:28px;text-align:center;color:#667c92}
#student-preview .student-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 0;font-size:12px;color:#566d83}
#student-preview .student-pagination label,#student-preview .student-page-nav{display:flex;align-items:center;gap:7px;margin:0;font-size:12px;font-weight:400}
#student-preview .student-pagination select{width:65px;min-height:30px;height:30px;padding:3px 5px;font-size:12px}
#student-preview .student-page-nav button{width:30px;min-height:30px;height:30px;padding:0;font-size:21px;line-height:1}
#student-preview #student-page-number{width:48px;min-height:30px;height:30px;margin:0;padding:3px;border:1px solid #d3deea;border-radius:6px;text-align:center;background:#fff;font-size:12px;-moz-appearance:textfield}
#student-preview #student-page-number::-webkit-inner-spin-button{appearance:none}
#student-preview .student-save-scope{font-size:11px;color:#667c90;margin:0;line-height:1.5}
#student-preview .student-reading-notes{font-size:12px;color:#667c90;margin-top:6px}
#student-preview .student-reading-notes summary{font-size:12px;font-weight:400;padding:0;cursor:pointer}
#student-preview .student-reading-notes p{margin:5px 0}
#student-upload input[type=file]{width:100%;box-sizing:border-box}
#student-message[role=alert]{color:#b42332}
@media(max-width:720px){
 #student-preview .student-review-actions{width:100%}
 #student-preview .student-primary{flex:1}
 #student-preview .student-search{max-width:none;flex-basis:100%}
 #student-preview .student-table-scroll{max-height:65vh;border:0;background:transparent;scrollbar-gutter:auto}
 #student-preview .student-import-table{display:block;min-width:0}
 #student-preview .student-import-table thead,#student-preview .student-import-table colgroup{display:none}
 #student-preview .student-import-table tbody{display:block}
 #student-preview .student-import-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);position:relative;padding:10px;margin:0 0 8px;background:#fff;border:1px solid #d7e1ec;border-radius:9px}
 #student-preview .student-import-table td{display:block;min-width:0;padding:4px;border:0}
 #student-preview .student-import-table td[data-label]::before{content:attr(data-label);display:block;font-size:10px;font-weight:600;color:#667c92;margin:0 0 2px 6px}
 #student-preview .student-import-table .student-row-index{grid-column:1/-1;padding:0 6px 4px}
 #student-preview .student-row-index>span:first-child::before{content:'Étudiant '}
 #student-preview .student-import-table td[data-label=Email],#student-preview .student-import-table td[data-label=Téléphone]{grid-column:1/-1}
 #student-preview .student-import-table .student-row-actions{position:absolute;top:3px;right:3px}
 #student-preview .student-import-table input{font-size:16px;height:34px;min-height:34px;border-color:#e2eaf2;background:#fff}
 #student-preview .student-import-table input[aria-invalid=true]{border-color:#e3b5a7}
 #student-preview .student-pagination{gap:9px}
 #student-preview .student-page-nav{margin-left:auto}
 #student-preview .student-empty{grid-column:1/-1}
}
.student-directory{margin-bottom:24px;color:#193653;font-size:13px}.student-directory-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.student-directory h3{margin:0;font-size:18px}.student-directory-head form{display:flex;gap:6px;align-items:center}.student-directory input,.student-directory button,.student-management-dialog button,.student-management-dialog input,.student-management-dialog select,.student-management-dialog textarea{font:inherit;color:inherit;box-sizing:border-box;border:1px solid #cddae7;border-radius:7px;background:#fff;padding:7px 10px;min-height:34px}.student-directory input{width:230px;max-width:100%}.student-directory button{font-size:12px}.student-directory button:hover{background:#edf3fa}.student-directory [data-student-directory-status]{font-size:12px;margin:8px 0}.student-directory [data-student-directory-status]:empty{display:none}.student-directory [role=alert]{color:#a82f3d}.student-directory-scroll{overflow:auto;border:1px solid #d7e1ec;border-radius:9px;margin-top:12px;max-height:560px}.student-directory table{border-collapse:collapse;width:100%;min-width:780px;font-size:13px;margin:0}.student-directory th,.student-directory td{padding:8px 10px!important;text-align:left;vertical-align:middle;border:0;border-bottom:1px solid #e5ecf3;line-height:1.4}.student-directory th{font-size:11px;color:#62768c;background:#eef3f8;position:sticky;top:0}.student-directory tr:nth-child(even){background:#f8fbfe}.student-directory strong{font-weight:600}.student-directory small{display:block;color:#687b90;font-size:11px;margin-top:2px}.student-directory .student-directory-actions{white-space:nowrap}.student-directory-actions button+button{margin-left:5px}.student-directory .student-access-badge{display:inline-block;background:#e7f2eb;color:#32674a;border-radius:20px;padding:3px 8px;font-size:11px;white-space:nowrap}.student-directory .is-suspended{background:#fff0dc;color:#975616}.student-directory-pages{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding-top:10px;font-size:12px}.student-directory .student-directory-empty{text-align:center;padding:22px!important}.student-management-dialog{width:min(490px,calc(100vw - 24px));max-height:90vh;overflow:auto;padding:0;border:1px solid #d5e0eb;border-radius:14px;background:#fff;color:#193653;box-shadow:0 20px 80px #102c4d44;font:14px/1.45 system-ui,sans-serif}.student-management-dialog::backdrop{background:#0e26475c}.student-management-dialog header{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e4ebf3;padding:14px 18px}.student-management-dialog h3{margin:0;font-size:20px}.student-management-dialog header button{border:0;padding:2px 8px;font-size:22px;min-height:30px}.student-management-body{padding:16px 18px}.student-management-body>strong{display:block;margin-bottom:14px}.student-management-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.student-management-dialog label{display:grid;gap:5px;font-size:12px;font-weight:600}.student-management-dialog label:has([name=email]),.student-management-dialog label:has([name=phone]){grid-column:1/-1}.student-management-dialog input,.student-management-dialog select,.student-management-dialog textarea{width:100%;font-size:14px;font-weight:400}.student-management-dialog [data-custom-reason]{margin-top:12px}.student-management-dialog [hidden]{display:none!important}.student-management-dialog footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid #e4ebf3}.student-management-dialog .student-management-primary{background:#193b66;border-color:#193b66;color:#fff}.student-management-dialog [data-error]{font-size:12px;color:#a82f3d;margin:12px 0 0}.student-management-dialog [data-error]:empty{display:none}.student-management-dialog :focus-visible,.student-directory :focus-visible{outline:2px solid #327bb0;outline-offset:2px}@media(max-width:600px){.student-directory-head form{width:100%}.student-directory-head input{flex:1;min-width:0}.student-directory .student-directory-pages{justify-content:space-between}.student-management-fields{grid-template-columns:1fr}.student-management-dialog input,.student-management-dialog select{font-size:16px}}

.student-directory-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-bottom:16px}.student-directory-filters label{display:grid;gap:6px;font-size:12px;font-weight:600;min-width:0}.student-directory-filters select{width:100%;min-width:0;max-width:100%;min-height:38px;margin:0;padding:8px 30px 8px 10px;border:1px solid #cddae7;border-radius:8px;background:#fff;color:#193653;font:13px system-ui;box-sizing:border-box}.student-directory-state{padding:20px 14px;text-align:center;border:1px dashed #cddae7;border-radius:9px;color:#687b90;font-size:13px}.student-directory input[type=search]{width:280px}.student-directory table{min-width:660px}.student-directory-head h3:empty{display:none}@media(max-width:600px){.student-directory-filters{grid-template-columns:1fr}.student-directory-filters select{font-size:16px}.student-directory input[type=search]{width:100%}}
