/**
 * CSS for the jQuery UI based DWR autocomplete (js/autocomplete.js).
 * Self-contained: pages that do not load jquery-ui.css still get a positioned, styled list.
 */

/* The old Scriptaculous suggestion divs are no longer shown. They stay in the page because
   the page scripts read their style.display to know whether the list is open. */
div.auto_complete {
  display: none !important;
}

.ui-autocomplete {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 0 0 0 2rem; /* the old list got Bootstrap's ul padding */
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #fff;
  border: 1px solid #A5A5A5;
  cursor: default;
}

.ui-autocomplete .ui-menu-item {
  list-style: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.ui-autocomplete .ui-menu-item-wrapper {
  display: block;
  margin: 0;
  padding: 2px;
  border: 0;
  color: inherit;
  background: transparent;
}

/* highlighted item, as li.selected was */
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
  margin: 0;
  border: 0;
  color: #000;
  background-color: #ffb;
}

.ui-autocomplete .notlisted {
  color: brown;
}

/* screen reader messages of the widget */
.ui-helper-hidden-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
