/* Typeahead styling (Bootstrap 3 Typeahead adapted for Bootstrap 4) */
.typeahead.dropdown-menu {
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 2px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
  z-index: 1051 !important;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  padding: 0.5rem 0;
}

.typeahead > li > a,
.typeahead > .dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  white-space: normal;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.typeahead > li > a:hover,
.typeahead > li > a:focus,
.typeahead > .dropdown-item:hover,
.typeahead > .dropdown-item:focus {
  color: #16181b;
  text-decoration: none;
  background-color: #f8f9fa;
  outline: none;
}

.typeahead > .active > a,
.typeahead > .active > a:hover,
.typeahead > .active > a:focus,
.typeahead > .active > .dropdown-item,
.typeahead > .active > .dropdown-item:hover,
.typeahead > .active > .dropdown-item:focus {
  color: #fff;
  text-decoration: none;
  background-color: #007bff;
  outline: 0;
}

.typeahead .typeahead-suggestion strong {
  font-weight: 600;
  color: #0056b3;
}

.typeahead > .active .typeahead-suggestion strong {
  color: #fff;
}

.input-group .typeahead.dropdown-menu {
  margin-top: 0;
}

