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;
}

header {
  position: relative;
  z-index: 1100;
}

header .navbar {
  position: relative;
  z-index: 1050;
}

header .navbar .dropdown-menu {
  z-index: 1200;
}

/* Prevent content containers from clipping dropdown menus on Rooms page */
.card-body {
  overflow: visible;
}

/* Keep Bootstrap responsive tables working (prevent tables from overflowing cards on mobile) */
.table-responsive {
  overflow-x: auto;
}

@media (max-width: 767.98px) {
  .table-mobile-stack {
    border: 0;
  }

  .table-mobile-stack thead {
    display: none;
  }

  .table-mobile-stack tbody tr {
    display: block;
    margin-bottom: 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
  }

  .table-mobile-stack tbody tr.table-mobile-stack-group,
  .table-mobile-stack tbody tr.table-mobile-stack-collapse {
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
  }

  .table-mobile-stack tbody td {
    display: block;
    border: 0;
    border-bottom: 1px solid var(--bs-border-color);
    padding: 0.5rem 0.75rem;
  }

  .table-mobile-stack tbody tr.table-mobile-stack-group td::before,
  .table-mobile-stack tbody tr.table-mobile-stack-collapse td::before {
    display: none;
  }

  .table-mobile-stack tbody tr.table-mobile-stack-collapse td {
    padding: 0;
    border: 0;
  }

  .table-mobile-stack tbody td:last-child {
    border-bottom: 0;
  }

  .table-mobile-stack tbody td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: var(--bs-secondary-color);
    margin-bottom: 0.25rem;
  }
}

.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;
}
