/* v4.2.5: dedicated single-page registration */
body.eft-registration-mode #eft-page-tabs{display:none!important}
#eft-reg-intro{display:none}
body.eft-registration-mode #eft-reg-intro{display:block;margin-bottom:16px}
body.eft-registration-mode #toms-student-db{max-width:1100px}
body.eft-registration-mode #toms-student-db [data-eft-subtab]{display:block!important}
body.eft-registration-mode #toms-student-db fieldset{display:block;margin:18px 0;padding:18px;border:1px solid #cbd5e1;border-radius:12px}
body.eft-registration-mode #toms-student-db fieldset legend{font-weight:700;padding:0 8px}
body.eft-registration-mode #toms-student-db #sdb-documents{display:block!important}
body.eft-registration-mode #toms-student-db #sdb-enrollment-history,
body.eft-registration-mode #toms-student-db #eft-recognition{display:none!important}
body.eft-registration-mode #toms-student-db #sdb-id,
body.eft-registration-mode #toms-student-db #sdb-id + *,
body.eft-registration-mode #toms-student-db #sdb-new,
body.eft-registration-mode #toms-student-db #sdb-open-training-records,
body.eft-registration-mode #toms-student-db #eft-student-course-hint{display:none!important}
body.eft-registration-mode #toms-student-db label:has(> #sdb-id){display:none!important}
body.eft-registration-mode #toms-student-db #sdb-list,
body.eft-registration-mode #toms-student-db #sdb-list ~ *{display:none!important}
body.eft-registration-mode #toms-student-db h3:has(+ div #sdb-list),
body.eft-registration-mode #toms-student-db div:has(> table #sdb-list){display:none!important}
/* Hide legacy document upload only on registration; keep licence/medical metadata and the single registration upload. */
body.eft-registration-mode #sdb-documents > h3,
body.eft-registration-mode #sdb-documents > .sd-grid:has(#sd-file),
body.eft-registration-mode #sdb-documents > p:has(#sd-upload),
body.eft-registration-mode #sdb-documents > div:has(table #sd-list),
body.eft-registration-mode #sdb-documents > details,
body.eft-registration-mode #sdb-documents > p.sd-notice:last-child{display:none!important}
body.eft-registration-mode #eft-reg-save-actions{margin-top:12px;padding:14px 0}
body.eft-registration-mode #sdb-save{padding:12px 22px;font-weight:700}
#eft-reg-final{display:none!important}

body.eft-registration-mode #reg-document-metadata{margin:16px 0}
body.eft-registration-mode #reg-document-metadata .student-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
body.eft-registration-mode #reg-document-metadata label{display:flex;flex-direction:column;gap:6px}

body.eft-registration-mode #sdb-documents > .sd-grid:has(#sd-licence-expiry){display:none!important}

/* v4.2.7: streamlined registration and student qualification fields.
   Existing stored metadata is preserved for backwards compatibility. */
body.eft-registration-mode #sdb-documents .sd-grid:has(#sd-licence-number),
body.eft-registration-mode #sdb-documents .sd-grid:has(#sd-identity-number){display:none!important}

/* v4.2.11: strict separation between registration and existing-student views. */
body.eft-registration-mode #eft-student-document-summary{display:none!important}
body:not(.eft-registration-mode) #reg-document-metadata{display:none!important}
body.eft-registration-mode #toms-student-db > #eft-student-document-summary{display:none!important}

/* Restore registration save action after switching from Training Records. */
body.eft-registration-mode #toms-student-db > #eft-reg-save-actions{display:block!important;visibility:visible!important}
