/* ==========================================================================
   BOOTSTRAP 4 → 5 COMPATIBILITY SHIM
   The site runs Bootstrap 5.3. A number of v4 utility classes are still used
   throughout the Razor views but were renamed or dropped in v5. Rather than
   rewrite ~150 markup sites, this tiny layer restores those class names. It is
   loaded right after bootstrap.css on BOTH layouts (front + portal).
   (JavaScript data attributes were migrated to data-bs-* in the markup; those
   cannot be shimmed in CSS.)
   ========================================================================== */

/* .form-group lost its default bottom margin in v5 */
.form-group {
    margin-bottom: 1rem;
}

/* .btn-block was removed in v5 (replaced by .d-grid / .w-100) */
.btn-block {
    display: block;
    width: 100%;
}

/* Float + text directional utilities were renamed to *-start / *-end in v5 */
.float-left {
    float: left !important;
}

.float-right {
    float: right !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* Auto margins ml-*/mr-* were renamed ms-*/me-* in v5 */
.ml-auto {
    margin-left: auto !important;
}

.mr-auto {
    margin-right: auto !important;
}

/* font-weight-* utilities were renamed fw-* in v5 */
.font-weight-bold {
    font-weight: 700 !important;
}

.font-weight-normal {
    font-weight: 400 !important;
}

.font-weight-light {
    font-weight: 300 !important;
}

/* .sr-only was renamed .visually-hidden in v5 */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
