﻿.autocomplete-wrapper {
  position: relative;
  display: inline-block;
  clear: both;
}
.autocomplete-extended {
  display: none;
  float: left;
  background-color: #ffffff;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, 0.3);
  *border: 1px solid #999;
  /* IE6-7 */

  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding-box;
  background-clip: padding-box;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1031;
  margin-top: 3px;
}
.autocomplete-extended:before {
  content: '';
  display: block;
  position: absolute;
  bottom: 100%;
  left: 5px;
  height: 0;
  width: 0;
  border: 7px solid transparent;
  border-bottom-color: #666;
  border-bottom-color: rgba(0, 0, 0, 0.5);
}
.autocomplete-extended:after {
  content: '';
  display: block;
  position: absolute;
  bottom: 100%;
  left: 6px;
  height: 0;
  width: 0;
  border: 6px solid transparent;
  border-bottom-color: #fff;
}
.autocomplete-extended > ul {
  min-width: 200px;
  max-width: 300px;
  max-height: 400px;
  list-style: none;
  margin: 0;
  overflow-y: auto;
}
.autocomplete-extended > ul li:first-child a {
  -moz-border-radius: 3px 3px 0 0;
  -webkit-border-radius: 3px 3px 0 0;
  border-radius: 3px 3px 0 0;
}
.autocomplete-extended > ul li:last-child a {
  -moz-border-radius: 0 0 3px 3px;
  -webkit-border-radius: 0 0 3px 3px;
  border-radius: 0 0 2px 2px;
  border-bottom: none;
}
.autocomplete-extended > ul a {
  border-bottom: 1px solid #dedede;
  padding: 4px 12px;
  cursor: pointer;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.autocomplete-extended > ul a:hover {
  background-color: #0081C2;
  background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
  background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
  background-image: -o-linear-gradient(top, #0088cc, #0077b3);
  background-image: linear-gradient(to bottom, #0088cc, #0077b3);
  color: #ffffff;
  text-decoration: none;
}
.autocomplete-extended > ul a i {
  margin-right: 4px !important;
}
.autocomplete-extended > ul li.active a {
  background-color: #0081C2;
  background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
  background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
  background-image: -o-linear-gradient(top, #0088cc, #0077b3);
  background-image: linear-gradient(to bottom, #0088cc, #0077b3);
  color: #ffffff;
}
.autocomplete-extended > ul li.no-result {
  padding: 4px 12px;
  color: #aaa;
  font-style: italic;
}
.autocomplete-extended > ul li.no-result i {
  color: #aaa !important;
}
.autocomplete-extended .autocomplete-footer {
  border-top: 1px solid #B2B2B2;
  padding: 10px;
  display: block;
}
.autocomplete-extended.content-width {
  right: auto;
}
.autocomplete-extended.content-width ul {
  max-width: 400px;
}
.autocomplete-extended.from-right {
  left: auto;
  right: 0;
}
.autocomplete-extended.from-right:before {
  left: auto !important;
  right: 5px !important;
}
.autocomplete-extended.from-right:after {
  left: auto !important;
  right: 6px !important;
}
.autocomplete-extended.from-top {
  top: auto;
  bottom: 100%;
  margin-bottom: 3px;
  margin-top: 0;
}
.autocomplete-extended.from-top:before {
  top: 100%;
  border-bottom-color: transparent;
  border-top-color: #666;
  border-top-color: rgba(0, 0, 0, 0.5);
}
.autocomplete-extended.from-top:after {
  top: 100%;
  border-bottom-color: transparent;
  border-top-color: #fff;
}
.autocomplete-extended.multiline > ul a {
  overflow: visible;
  text-overflow: none;
  white-space: normal;
}
.autocomplete-extended.select-box {
  margin-top: -2px;
  border-color: rgba(82, 168, 236, 0.8);
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  -moz-border-radius: 0 0 4px 4px;
  -webkit-border-radius: 0 0 4px 4px;
  border-radius: 0 0 4px 4px;
}
.autocomplete-extended.select-box > ul li:first-child a {
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  border-radius: 0;
}
.autocomplete-extended.select-box:before,
.autocomplete-extended.select-box:after {
  display: none;
}
.autocomplete-extended.select-box.from-top {
  margin-top: 0;
  margin-bottom: -2px;
  -moz-border-radius: 4px 4px 0 0;
  -webkit-border-radius: 4px 4px 0 0;
  border-radius: 4px 4px 0 0;
}
.autocomplete-extended.select-box.from-top > ul li:first-child a {
  -moz-border-radius: 3px 3px 0 0;
  -webkit-border-radius: 3px 3px 0 0;
  border-radius: 3px 3px 0 0;
}
.autocomplete-extended.select-box.from-top > ul li:last-child a {
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  border-radius: 0;
}
.autocomplete-extended .media-object {
  font-size: 12px;
}
.autocomplete-extended .media-object a {
  padding: 10px;
}
.autocomplete-extended .media-object img.avatar {
  margin-top: 0;
  margin-right: 10px;
}
.autocomplete-extended .media-object li {
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.autocomplete-extended .media-object li strong {
  font-size: 14px;
}
.modal .autocomplete-extended {
  z-index: 1051;
}
input[type="text"].autocomplete {
  margin-bottom: 0;
}
