html {
  font-size: 14px;
  color-scheme: light dark;
}

@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 {
  background-color: var(--bs-tertiary-bg);
  margin-bottom: 60px;
}

main {
  min-width: 0;
}

.navbar .btn.nav-link {
  padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
}

.theme-toggle {
  min-width: 4.25rem;
}

.table {
  --bs-table-bg: var(--bs-body-bg);
}

.table td,
.table th {
  vertical-align: middle;
}

.table td {
  overflow-wrap: anywhere;
}

.bg-white {
  background-color: var(--bs-body-bg) !important;
}

.text-dark {
  color: var(--bs-body-color) !important;
}

.text-muted {
  color: var(--bs-secondary-color) !important;
}

.border,
.border-top,
.border-bottom {
  border-color: var(--bs-border-color) !important;
}

.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;
}

@media (max-width: 575.98px) {
  body {
    margin-bottom: 84px;
  }

  .container {
    max-width: 100%;
  }

  h1.h2,
  h1.h3 {
    font-size: 1.45rem;
  }

  .d-flex.justify-content-between,
  .d-flex.justify-content-end,
  .d-flex.gap-2,
  .d-inline-flex.gap-2 {
    flex-wrap: wrap;
  }

  .btn {
    white-space: normal;
  }

  .row.g-2 > .col-auto {
    width: 100%;
  }

  .row.g-2 > .col-auto .btn,
  form .d-flex.justify-content-end .btn {
    width: 100%;
  }

  .pagination {
    flex-wrap: wrap;
    gap: .25rem;
  }

  .table-responsive {
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
  }

  textarea.form-control {
    min-height: 9rem;
  }
}
