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;
}

@media (max-width: 575.98px) {
  .btn {
    font-size: 0.875rem;
    padding: 0.4rem 0.6rem;
  }
  .btn-sm {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  h4 {
    font-size: 1rem;
  }
  h5 {
    font-size: 0.95rem;
  }
  .card-body {
    padding: 0.75rem;
  }
  .table {
    font-size: 0.8rem;
  }
  .table td, .table th {
    padding: 0.35rem 0.4rem;
  }
  .form-label {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
  }
  .modal-dialog {
    margin: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .d-flex.gap-2, .d-flex.flex-wrap.gap-2 {
    gap: 0.35rem !important;
  }
  .d-flex.justify-content-between.align-items-center.mb-3 {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .d-flex.justify-content-between.align-items-center.mb-3 > div {
    width: 100%;
  }
  .d-flex.justify-content-between.align-items-center.mb-3 > div .btn {
    width: 100%;
    margin-bottom: 0.25rem;
  }
  .d-flex.justify-content-between.align-items-center.mb-3 > div .btn + .btn {
    margin-left: 0 !important;
  }
  .row.g-3 > .col-md-3,
  .row.g-3 > .col-md-4,
  .row.g-3 > .col-md-6 {
    margin-bottom: 0.5rem;
  }
}