.box {
  margin-bottom: 20px;
}

/*
 * Autocomplete results are suggestions, not form content.  Keeping the menu
 * in normal document flow made every result row increase the filter panel's
 * height and pushed the remaining fields/actions down the page.
 */
.form-box:has(.ht-autocomplete) {
  position: relative;
  overflow: visible;
}

.form-box:has(.ht-autocomplete) > .form-group > ul.list-group {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1080;
  width: 100%;
  max-height: 260px;
  margin: 4px 0 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #d7e0ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(25, 49, 92, .16);
}

.form-box:has(.ht-autocomplete) > .form-group > ul.list-group:empty {
  display: none;
}

.form-box:has(.ht-autocomplete) > .form-group > ul.list-group .list-group-item {
  cursor: pointer;
  font-size: 12px;
}
