html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.red {
    color: red;
}

/* Fix Select2: template overrides display to 'inline' which breaks arrow position
   and causes Select2's JS to miscalculate the dropdown offset (gap).
   Restore to inline-block so the container has a proper bounding box. */
body .select2-container {
    display: inline-block;
}

/* Fix arrow so it stays inside the selection box */
body .select2-container--default .select2-selection--single .select2-selection__arrow,
body .select2-container--classic .select2-selection--single .select2-selection__arrow {
    top: 1px;
    right: 1px;
    width: 20px;
    height: calc(100% - 2px);
}

/* Select2 Bootstrap validation states */
body .select2-container--default .select2-selection--single.is-invalid,
body .select2-container--classic .select2-selection--single.is-invalid {
    border-color: #dc3545;
}

body .select2-container--default .select2-selection--single.is-valid,
body .select2-container--classic .select2-selection--single.is-valid {
    border-color: #198754;
}