/*!
 * kui-select
 * http://github.com/angular-ui/kui-select
 * Version: 0.8.3 - 2014-11-25T22:50:54.099Z
 * License: MIT
 */


/* Style when highlighting a search. */
.kui-select-highlight {
  font-weight: bold;
}

.kui-select-offscreen {
  clip: rect(0 0 0 0) !important;
  width: 1px !important;
  height: 1px !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  outline: 0 !important;
  left: 0px !important;
  top: 0px !important;
  display: none;
}

/* Select2 theme */

/* Mark invalid Select2 */
.ng-dirty.ng-invalid > a.select2-choice {
    border-color: #D44950;
}

.select2-result-single {
  padding-left: 0;
}

.select2-locked > .select2-search-choice-close{
  display:none;
}

/* Selectize theme */

/* Helper class to show styles when focus */
.selectize-input.selectize-focus{
  border-color: #007FBB !important;
}

/* Fix input width for Selectize theme */
.selectize-control > .selectize-input > input {
  width: 100%;
}

/* Fix dropdown width for Selectize theme */
.selectize-control > .selectize-dropdown {
  width: 100%;
}

/* Mark invalid Selectize */
.ng-dirty.ng-invalid > div.selectize-input {
    border-color: #D44950;
}


/* Bootstrap theme */

/* Helper class to show styles when focus */
/* .btn-default-focus {
  color: #333;
  background-color: #EBEBEB;
  border-color: #ADADAD;
  text-decoration: none;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
} */

.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default {
  color: #58666e !important;
  background-color: #fff;
  border-color: #c7d3d6;
}

/* Fix Bootstrap dropdown position when inside a input-group */
.input-group > .kui-select-bootstrap.dropdown {
  /* Instead of relative */
  position: static;
}

.input-group > .kui-select-bootstrap > input.kui-select-search.form-control {
  border-radius: 4px; /* FIXME hardcoded value :-/ */
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.kui-select-bootstrap > .kui-select-match {
  /* Instead of center because of .btn */
  text-align: left;
}

.kui-select-bootstrap > .kui-select-match > .caret {
  position: absolute;
  top: 45%;
  right: 10px;
}

/* See Scrollable Menu with Bootstrap 3 http://stackoverflow.com/questions/19227496 */
.kui-select-bootstrap > .kui-select-choices {
  width: 100%;
  height: auto;
  max-height: 200px;
  overflow-x: hidden;
}

.kui-select-multiple.kui-select-bootstrap {
  height: auto;
  padding: .3em;
}

.kui-select-multiple.kui-select-bootstrap input.kui-select-search {
  background-color: transparent !important; /* To prevent double background when disabled */
  border: none;
  outline: none;
  height: 1.666666em;
}

.kui-select-multiple.kui-select-bootstrap .kui-select-match .close {
  font-size: 1.6em;
  line-height: 0.75;
}

.kui-select-multiple.kui-select-bootstrap .kui-select-match-item{
  outline: 0;
}

.kui-select-bootstrap .kui-select-choices-row>a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
}

.kui-select-bootstrap .kui-select-choices-row>a:hover, .kui-select-bootstrap .kui-select-choices-row>a:focus {
    text-decoration: none;
    color: #262626;
    background-color: #f5f5f5;
}

.kui-select-bootstrap .kui-select-choices-row.active>a {
    color: #222;
    text-decoration: none;
    outline: 0;
    background-color: #ffd25f;
}

.kui-select-bootstrap .kui-select-choices-row.disabled>a,
.kui-select-bootstrap .kui-select-choices-row.active.disabled>a {
    color: #777;
    cursor: not-allowed;
    background-color: #fff;
}

/* fix hide/show angular animation */
.kui-select-match.ng-hide-add,
.kui-select-search.ng-hide-add {
    display: none !important;
}

/* Mark invalid Bootstrap */
.kui-select-bootstrap.ng-dirty.ng-invalid > button.btn.kui-select-match {
    border-color: #ededed;
}

.kui-select-no-border  > button.btn.kui-select-match {
    border: none;
    box-shadow: none;
}

.kui-select-choices-div {
  display: none;
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 1000001;
  background: rgba(0, 0, 0, 0.6);
}

.open .kui-select-choices-div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kui-select-choices-div .dropdown-menu {
  position: static;
  top: inherit;
  left: inherit;
  width: 100%;
  height: auto;
  max-height: 80%;
  overflow-y: auto;
  border: none;
  border-radius: 8px;
  padding: 0px;
  margin-left: 84px;
  margin-right: 84px;
}

.kui-select-choices-div .dropdown-menu li {
  font-size: 28px;
  color: #222;
}

.kui-select-bootstrap .kui-select-choices-group .kui-select-choices-row a{
  padding-top: 22px;
  padding-bottom: 22px;
  text-align: center;
}

.kui-select-bootstrap .kui-select-choices-group .kui-select-choices-row + .kui-select-choices-row {
  border-top: 1px solid #e5e5e5;
}

.open .dropdown-menu {
    display: block;
}

.kui-select-bootstrap .kui-select-choices-group .kui-select-choices-row:nth-child(3).active a{
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.kui-select-bootstrap .kui-select-choices-group .kui-select-choices-row:last-child.active a{
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.kui-select-bootstrap .kui-select-match {
  border: 1px solid #d4d5d9;
  opacity: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}