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;
}

.login-error {
  display: inline-block;
  margin: 1rem 0 1rem 0;
  padding: 2rem 4rem 2rem 4rem;
}

.user-icon {
  width: 2rem;
  height: 2rem;
  float: right;
}

/* Tomselect dark mode theme */
[data-bs-theme="dark"] .ts-control,
[data-bs-theme="dark"] .ts-dropdown {
  color: #f8f9fa !important;
  border-color: #444 !important;
}

[data-bs-theme="dark"] .ts-control input,
[data-bs-theme="dark"] .ts-dropdown .option,
[data-bs-theme="dark"] .ts-dropdown .item {
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] .ts-dropdown .option:hover,
[data-bs-theme="dark"] .ts-dropdown .active {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .ts-control .item {
  color: #f8f9fa !important;
  border-color: #666 !important;
}

h3.modal-title {
  font-size: 1.25rem;
}

h4.fw-bold, h4.card-title {
  font-size: 1rem;
}

.table button {
  word-break: normal;
}

.skip-link:focus {
  left: 10px !important;
  top: 10px;
  outline: none;
}

[data-bs-theme="dark"] input[readonly] {
  background-color: #343a40 !important;
  box-shadow: none;
  opacity: 1;
  border-color: var(--bs-border-color) !important;
}

[data-bs-theme="light"] input[readonly] {
  background-color: var(--bs-secondary-bg) !important;
  box-shadow: none;
  opacity: 1;
  border-color: var(--bs-border-color) !important;
}

/* Groups view checkmarks */
td.text-success span, td.text-danger span {
  font-size: 2rem;
}

/* Make form-check-label WCAG 2.2 (2.5.5) compliant */
.form-check {
  display: flex;
  align-items: center;
}

.form-check-label {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-left: 0.5rem;
}