/*
 * SelfRegistration - Bootstrap 5 compatibility layer
 * ---------------------------------------------------
 * The SelfRegistration role (and the shared _MomServiceLayout / _ClientDashboardLayout /
 * _UserDashboardLayout pages) moved from Bootstrap 4.5.2 (and 3.x for a few standalone pages)
 * to Bootstrap 5.0.2. Bootstrap 5 dropped a few base styles that the existing markup and the
 * custom stylesheets (clientDashboardCustomCSS.css, bd-wizard.css, momVerification.css,
 * DashboardCandidateProfile.css) still rely on. This file restores only those defaults so the
 * UI looks the same as before the upgrade.
 *
 * Load order: immediately AFTER bootstrap-5.0.2.min.css and BEFORE the page's custom CSS,
 * so every custom rule keeps overriding these defaults exactly as it did with Bootstrap 4.
 */



/* Links: BS5 underlines all links by default; BS4 only underlined on hover. */
a {
    text-decoration: none;
}

/* Labels: BS4 reboot gave every <label> a bottom margin (BS5 moved it to .form-label). */
label {
    margin-bottom: .5rem;
}

.form-check-label,
.col-form-label {
    margin-bottom: 0;
}

/* .form-group was removed in BS5 (custom CSS still overrides this where needed). */
.form-group {
    margin-bottom: 1rem;
}

/* <select class="form-control form-select">: BS5 .form-control sets appearance:none, which hid
   the dropdown caret, so selects now also carry .form-select (caret). Custom ".xyz .form-control
   { padding }" rules would otherwise pull the text under the caret - keep room for it. */
select.form-control.form-select {
    padding-right: 2.25rem;
}

/* .close was replaced by .btn-close in BS5. The modals keep their "×" close button
   (styled by bd-wizard.css, e.g. red on the gradient header), so restore the BS4 rules. */
.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}

    .close:hover {
        color: #000;
        text-decoration: none;
    }

    .close:not(:disabled):not(.disabled):hover,
    .close:not(:disabled):not(.disabled):focus {
        opacity: .75;
    }

button.close {
    padding: 0;
    background-color: transparent;
    border: 0;
}

.modal-header .close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
}

/* Tables: BS5.0 draws the header/body separator in currentColor (dark) and uses smaller
   cell padding; restore the BS4 look. */
.table > :not(caption) > * > * {
    padding: .75rem;
}

.table-sm > :not(caption) > * > * {
    padding: .3rem;
}

.table > :not(:first-child) {
    border-top-color: #dee2e6;
}

.table > :not(:last-child) > :last-child > * {
    border-bottom-color: #dee2e6;
}
