/*!
 * ui-select
 * http://github.com/angular-ui/ui-select
 * Version: 0.17.1 - 2016-06-09T20:41:58.462Z
 * License: MIT
 */


/* Style when highlighting a search. */
.ui-select-highlight {
    font-weight: bold;
    color: #9ca270;
}

.ui-select-offscreen {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    height: 1px !important;
    left: 0px !important;
    margin: 0 !important;
    outline: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    top: 0px !important;
    width: 1px !important;
}

.ui-select-choices {
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    padding: 0;
    width: 100%;
}

.ui-select-container {
    height: 32px;
    padding: 0 !important;
}

.ui-select-container:required .ui-select-toggle,
.ui-select-container.required-validator .ui-select-toggle,
.ui-select-container[required="required"] .ui-select-toggle {
    /*background-color: #272728;*/
    background-image: url('/Images/ui/corner.svg') !important;
    background-position: 99.9% 1px !important;
    background-repeat: no-repeat !important;
    /*background: #272728 url('/Images/ui/corner.svg') no-repeat 99.9% 1px !important;*/
}

.ui-select-container:disabled *,
.ui-select-container[disabled="disabled"] * { cursor: not-allowed !important; }

.ui-select-container:disabled .ui-select-toggle,
.ui-select-container[disabled="disabled"] .ui-select-toggle {
    background-color: #444445 !important;
    border-bottom: #5D5D5D;
}

/* 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; }

.select-locked > .ui-select-match-close { display: none; }

body > .select2-container.open {
    z-index: 9999; /* The z-index Select2 applies to the select2-drop */
}

/* Handle up direction Select2 */

.ui-select-container[theme="select2"].direction-up .ui-select-match {
    border-radius: 4px; /* FIXME hardcoded value :-/ */
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.ui-select-container[theme="select2"].direction-up .ui-select-dropdown {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-radius: 4px; /* FIXME hardcoded value :-/ */
    border-top-style: solid;
    border-top-width: 1px; /* FIXME hardcoded value :-/ */
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25);
    margin-top: -4px; /* FIXME hardcoded value :-/ */
}

.ui-select-container[theme="select2"].direction-up .ui-select-dropdown .select2-search {
    margin-top: 4px; /* FIXME hardcoded value :-/ */
}

.ui-select-container[theme="select2"].direction-up.select2-dropdown-open .ui-select-match { border-bottom-color: #5897fb; }

.ui-select-match.btn-default-focus span.btn {
    border-color: #9CA36D;
    box-shadow: none;
    outline: 0;
}

/* 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; }

/* Handle up direction Selectize */

.ui-select-container[theme="selectize"].direction-up .ui-select-dropdown {
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25);
    margin-top: -2px; /* FIXME hardcoded value :-/ */
}

/* 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);*/
}

.ui-select-container.open .btn-default-focus > span { border-bottom: 1px solid #9CA36D; }

.ui-select-bootstrap .ui-select-toggle { position: relative; }

.ui-select-bootstrap .ui-select-toggle > .caret {
    height: 10px;
    margin-top: -2px;
    position: absolute;
    right: 10px;
    top: 50%;
}

/* Fix Bootstrap dropdown position when inside a input-group */

.input-group > .ui-select-bootstrap.dropdown {
    /* Instead of relative */
    position: static;
}

.input-group > .ui-select-bootstrap > input.ui-select-search.form-control {
    border-bottom-right-radius: 0;
    border-radius: 4px; /* FIXME hardcoded value :-/ */
    border-top-right-radius: 0;
}

.input-group > .ui-select-bootstrap > input.ui-select-search.form-control.direction-up {
    border-bottom-right-radius: 0 !important;
    border-radius: 4px !important; /* FIXME hardcoded value :-/ */
    border-top-right-radius: 0 !important;
}

.ui-select-match { margin-bottom: 2px; }

.ui-select-bootstrap > .ui-select-match > .btn {
    /* Instead of center because of .btn */
    text-align: left !important;
}

.ui-select-bootstrap > .ui-select-match > .caret {
    position: absolute;
    right: 15px;
    top: 45%;
}

/* See Scrollable Menu with Bootstrap 3 http://stackoverflow.com/questions/19227496 */

.ui-select-bootstrap > .ui-select-choices, .ui-select-bootstrap > .ui-select-no-choice {
    height: auto;
    max-height: 200px;
    overflow-x: hidden;
    /*margin-top: -1px;*/
}

body > .ui-select-bootstrap.open {
    z-index: 1000; /* Standard Bootstrap dropdown z-index */
}

.ui-select-multiple.ui-select-bootstrap {
    height: auto;
    padding: 3px 3px 0 3px;
}

.ui-select-multiple.ui-select-bootstrap input.ui-select-search {
    background-color: transparent !important; /* To prevent double background when disabled */
    border: none;
    height: 1.666666em;
    margin-bottom: 3px;
    outline: none;
}

.ui-select-multiple.ui-select-bootstrap .ui-select-match .close {
    font-size: 1.6em;
    line-height: 0.75;
}

.ui-select-multiple.ui-select-bootstrap .ui-select-match-item {
    margin: 0 3px 3px 0;
    outline: 0;
}

.ui-select-multiple .ui-select-match-item { position: relative; }

.ui-select-multiple .ui-select-match-item.dropping .ui-select-match-close { pointer-events: none; }

.ui-select-multiple:hover .ui-select-match-item.dropping-before:before {
    border-left: 1px solid #428bca;
    content: "";
    height: 100%;
    margin-right: 2px;
    position: absolute;
    right: 100%;
    top: 0;
}

.ui-select-multiple:hover .ui-select-match-item.dropping-after:after {
    border-right: 1px solid #428bca;
    content: "";
    height: 100%;
    left: 100%;
    margin-left: 2px;
    position: absolute;
    top: 0;
}

.ui-select-toggle {
    background-color: #272728;
    border: none;
    border-bottom: 1px solid #5D5D5D;
    outline: none !important;
}

.ui-select-toggle:hover {
    background-color: #272728;
    border-bottom-color: #7F7F7F;
}

.btn-default-focus .ui-select-toggle,
.ui-select-toggle:focus,
.ui-select-toggle:active,
.ui-select-toggle:focus:active {
    background-color: #272728;
    border-bottom-color: #9CA36D;
    box-shadow: none;
}

.ui-select-bootstrap .ui-select-choices-row > a {
    background-color: #272728;
    clear: both;
    color: #ffffff;
    display: block;
    font-weight: 400;
    line-height: 1.42857143;
    padding: 3px 12px;
    white-space: nowrap;
}

.allocation-table .row a.ui-select-choices-row-inner {
    background-color: #272728;
    clear: both;
    color: #ffffff;
    display: block;
    font-weight: 400;
    line-height: 1.42857143;
    padding: 3px 12px;
    text-decoration: none;
    white-space: nowrap;
}

.ui-select-choices-row-inner {
    float: left;
    width: 100%;
}

.ui-select-choices-row-inner:focus { background-color: #9CA270; }

.ui-select-choices-row > a {
    background-color: #272728;
    clear: both;
    color: #ffffff;
    display: block;
    font-weight: 400;
    line-height: 1.42857143;
    padding: 3px 12px;
    white-space: nowrap;
}

.allocation-table .row a.ui-select-choices-row-inner span {
    color: white;
    text-decoration: none;
}

.allocation-table .row a.ui-select-choices-row-inner small {
    color: #505051;
    float: right;
    font-size: 13px;
    text-decoration: none;
}

.allocation-table .row a.ui-select-choices-row-inner:hover,
.allocation-table .row a.ui-select-choices-row-inner:focus,
.allocation-table .row div.active a.ui-select-choices-row-inner {
    background-color: #1f1f1f;
    text-decoration: none;
}

.allocation-table .row .ui-select-highlight {
    color: #9CA270 !important;
    font-weight: normal;
}

.allocation-table .row div.email-group,
.allocation-table .row div.select-group span,
.allocation-table .row input,
.allocation-table .row input.form-control { color: white; }

.allocation-table .row .ui-select-choices-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: auto;
}

.ui-select-bootstrap .ui-select-choices-row > a:hover,
.ui-select-bootstrap .ui-select-choices-row > a:focus {
    background-color: #9CA270;
    text-decoration: none;
}
.ui-select-bootstrap .ui-select-choices-row > a:hover .ui-select-highlight,
.ui-select-bootstrap .ui-select-choices-row > a:focus .ui-select-highlight {
    color: #fff;
}

.ui-select-choices-row > a:hover,
.ui-select-choices-row > a:focus {
    background-color: #9CA270;
    outline: none;
    text-decoration: none;
}

.ui-select-bootstrap .ui-select-choices-row.active > a {
    color: #fff;
    outline: 0;
    text-decoration: none;
}

.ui-select-choices-row.active > a {
    color: #fff;
    outline: 0;
    text-decoration: none;
}

.ui-select-bootstrap .ui-select-choices-row.disabled > a,
.ui-select-bootstrap .ui-select-choices-row.active.disabled > a {
    color: #ffffff;
    cursor: not-allowed;
}

.ui-select-choices-row.disabled > a,
.ui-select-choices-row.active.disabled > a {
    color: #ffffff;
    cursor: not-allowed;
}

.ui-select-choices-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.allocation-table .row .ui-select-choices-row span { float: none; }

/* fix hide/show angular animation */

.ui-select-match.ng-hide-add,
.ui-select-search.ng-hide-add { display: none !important; }

/* Mark invalid Bootstrap */

.ui-select-bootstrap.ng-touched.ng-invalid > button.btn.ui-select-match { border-color: #AB4E4D; }

/* Handle up direction Bootstrap */

.ui-select-container[theme="bootstrap"].direction-up .ui-select-dropdown { box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25); }

.ui-select-match-text { width: 100%; }

.ui-select-match-text span {
    float: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 90%;
}

.ui-select-container.ng-invalid-required.ng-touched > div > span,
.ui-select-container.ng-invalid.ng-touched > div > span,
.ng-submitted .ui-select-container.ng-invalid > div > span {
    border: none;
    box-shadow: 0 1px 0 #ad4f4e !important;
}