/*
 * legacy-look-bootstrap.css
 * Keeps Bootstrap 4.6.2 CSS looking like Bootstrap 4.6.0 on this app.
 * LOAD POSITION: immediately after the bootstrap@4.6.2 bootstrap.min.css <link>
 * (before font-awesome, app.css, application-shell.css, login.css, sms-verification.css ...),
 * so that the app's own rules still win exactly as they did over 4.6.0.
 * Every selector below is copied from the library rule it overrides (same specificity).
 * !important is used only where the 4.6.2 rule itself is !important.
 */

/* Bootstrap 4.6.0 -> 4.6.2: `.small, small` font-size 80% -> .875em
   (old value: bootstrap@4.6.0 `.small,small{font-size:80%;font-weight:400}`) */
.small,
small {
  font-size: 80%;
}

/* Bootstrap 4.6.0 -> 4.6.2: validation messages font-size 80% -> .875em
   (old value: bootstrap@4.6.0 `.valid-feedback` / `.invalid-feedback`) */
.valid-feedback {
  font-size: 80%;
}
.invalid-feedback {
  font-size: 80%;
}

/* Bootstrap 4.6.0 -> 4.6.2: new rule for <select class="form-control"> in a validation state:
   padding-right 3rem!important and background-position right 1.5rem center.
   4.6.0 had no select-specific rule; a select got the generic .form-control.is-(in)valid values
   (padding-right calc(1.5em + .75rem), background-position right calc(.375em + .1875rem) center). */
select.form-control.is-valid,
select.form-control.is-invalid {
  padding-right: calc(1.5em + .75rem) !important; /* !important only because the 4.6.2 rule has it */
  background-position: right calc(.375em + .1875rem) center;
}

/* Bootstrap 4.6.0 -> 4.6.2: `.nav-tabs .nav-link:focus/:hover` gained `isolation:isolate` */
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
  isolation: auto;
}

/* Bootstrap 4.6.0 -> 4.6.2: spinner vertical-align text-bottom -> -.125em
   (old value: bootstrap@4.6.0 `.spinner-border`) */
.spinner-border {
  vertical-align: text-bottom;
}

/* Bootstrap 4.6.0 -> 4.6.2: print rule `thead{display:table-header-group}` was removed */
@media print {
  thead {
    display: table-header-group;
  }
}

/* Firefox only. Bootstrap 4.6.0 -> 4.6.2: `.form-control:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}`
   was narrowed to `select.form-control`. In 4.6.0 the `color` half never applied (the later `.form-control:focus`
   rule set color again), so only the text-shadow is restored here. Not verifiable with the Chrome harness. */
.form-control:-moz-focusring {
  text-shadow: 0 0 0 #495057;
}
