/*!
 * ui-select
 * http://github.com/angular-ui/ui-select
 * Version: 0.19.5 - 2016-10-24T23:13:59.551Z
 * License: MIT
 */


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

.ui-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;
}


.ui-select-choices-row:hover {
    background-color: #f0f0f0;
    transition: background-color 0.1s;

}
.ui-select-choices-row {
    transition: background-color 0.1s;

}
.ui-select-choices-row.has-view-btn{
    position: relative;
}

/* 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,
.ui-select-container.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,
.ui-select-container.select2.direction-up .ui-select-dropdown {
    border-radius: 4px; /* FIXME hardcoded value :-/ */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;

    border-top-width: 1px;  /* FIXME hardcoded value :-/ */
    border-top-style: solid;

    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,
.ui-select-container.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,
.ui-select-container.select2.direction-up.select2-dropdown-open .ui-select-match {
    border-bottom-color: #5897fb;
}

.ui-select-container[theme="select2"] .ui-select-dropdown .ui-select-search-hidden,
.ui-select-container[theme="select2"] .ui-select-dropdown .ui-select-search-hidden input{
    opacity: 0;
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border:0;
}

/* Selectize theme */

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

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

/* Fix line break when there's at least one item selected with the Selectize theme */
.selectize-control.multi > .selectize-input > input {
    margin: 0 !important;
}

/* 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 !important;
}

/* 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 :-/ */
}

.ui-select-container[theme="selectize"] input.ui-select-search-hidden{
    opacity: 0;
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border:0;
    width: 0;
}

/* Bootstrap theme */

/* Helper class to show styles when focus */
.btn-default-focus {
}

.ui-select-bootstrap .ui-select-toggle {
    position: relative;
    background-color: #fff !important;
    line-height: 22px !important;
}

.ui-select-bootstrap .ui-select-toggle > .caret {
    position: absolute;
    height: 10px;
    top: 50%;
    right: 10px;
    margin-top: -2px;
}

/* 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-radius: 4px; /* FIXME hardcoded value :-/ */
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.input-group > .ui-select-bootstrap > input.ui-select-search.form-control.direction-up {
    border-radius: 4px !important; /* FIXME hardcoded value :-/ */
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.ui-select-bootstrap .ui-select-search-hidden{
    opacity: 0;
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border:0;
}

.ui-select-bootstrap > .ui-select-match > .btn{
    /* Instead of center because of .btn */
    text-align: left !important;
    color: #687587;
    background-color: #f0f0f0;
    border: 1px solid #d4d4d4;
    font-weight: normal;
    box-shadow: none;
}

.ui-select-bootstrap > .btn-default-focus > .btn{
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: none;
}

form.ng-submitted .ng-invalid > .ui-select-match > .btn{
    border-color: #ff0000 !important;
    outline: 0;
    -webkit-box-shadow: none;
}

.invalid-input > .ui-select-match > .btn{
    border-color: #ff0000 !important;
    outline: 0;
    -webkit-box-shadow: none;
}

.ui-select-bootstrap > .ui-select-match > .btn:hover {
    color: #687587;
    background-color: #e3e3e3;
}

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

/* See Scrollable Menu with Bootstrap 3 http://stackoverflow.com/questions/19227496 */
.ui-select-bootstrap > .ui-select-choices ,.ui-select-bootstrap > .ui-select-no-choice {
    width: 100%;
    height: auto;
    max-height: 230px;
    overflow-x: hidden;
    margin-top: 0px;
}

body > .ui-select-bootstrap.open {
    z-index: 2000 !important; /* Standard Bootstrap dropdown z-index */
}

.ui-select-multiple.ui-select-bootstrap {
    height: 34px;
    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;
    outline: none;
    height: 1.666666em;
    margin-bottom: 3px;
    height: 26px;
    padding-left: 7px;
    padding-right: 20px;
    position: relative;
    z-index: 1;

}

.ui-select-multiple.ui-select-bootstrap .ui-select-match .close {
    font-size: 1.6em;
    line-height: 20px;
    padding-left: 3px;
}
.ui-select-multiple.ui-select-bootstrap .ui-select-match .close i{
    font-size: 12px;
    color: #808080;
}
.ui-select-multiple.ui-select-bootstrap .ui-select-match-item, .ui-select-match-item.btn-default:hover, .ui-select-match-item.btn-default:active {
    outline: 0;
    margin: 0 3px 3px 0;
    height: 26px;
    line-height: 22px;

    color: #6b7486;
    /*background-color: #ffffff !important;*/
    border: 1px solid #cfd3d6  !important;
    border-radius: 4px  !important;
    font-weight: normal  !important;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.1)  !important;
    cursor: pointer;
}

.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 {
    content: "";
    position: absolute;
    top: 0;
    right: 100%;
    height: 100%;
    margin-right: 2px;
    border-left: 1px solid #428bca;
}

.ui-select-multiple:hover .ui-select-match-item.dropping-after:after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    height: 100%;
    margin-left: 2px;
    border-right: 1px solid #428bca;
}

.ui-select-bootstrap .ui-select-choices-row>span {
    cursor: default;
    display: block;
    padding: 3px 20px;
    padding-top: 0px;
    padding-bottom: 0px;
    clear: both;
    font-weight: 400;
    line-height: 30px;
    color:#757575;
    white-space: nowrap;
    cursor: pointer;
}
.ui-select-bootstrap .ui-select-choices-row:hover>span {
    color: #262626 !important;
}

.ui-select-bootstrap .btn {
    cursor: default;
    text-transform: none !important;
    text-align: left !important;
    box-shadow: none !important;
}
.ui-select-bootstrap .ui-select-choices-row>span:hover, .ui-select-bootstrap .ui-select-choices-row>span:focus, .ui-autocomplete  li:hover {
    text-decoration: none;



}
.multiple_label span {
    font-weight: normal !important;
}
.ui-select-bootstrap .form-control:focus{
    box-shadow: none;
}
.ui-autocomplete  li {

    cursor: pointer;

}
.ui-autocomplete  li a {
    color: #5f5f5f !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif  !important;
    font-size: 12px  !important;
    vertical-align: middle;

}
.ui-select-choices.dropdown-menu, .ui-autocomplete  {
    border-radius: 2px !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.ui-select-bootstrap .ui-select-choices-row.active>span {
    color: #757575;
    text-decoration: none;
    outline: 0;
    background-color: #f0f0f0;
}

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

/* 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-dirty.ng-invalid > button.btn.ui-select-match {
    border-color: #D44950;
}

/* 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-bootstrap .ui-select-match-text {
    width: 100%;
    padding-right: 1em;
    line-height: 23px;
    height: 23px;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.ui-select-bootstrap .ui-select-match-text span {
    display: inline-block;
    width: 100%;
}
.ui-select-bootstrap .ui-select-toggle > a.btn {
    background-color: #fff !important;
    position: absolute;
    height: 10px;
    right: 10px;
    margin-top: -2px;
}

/* Spinner */
.ui-select-refreshing {
    position: absolute;
    right: 0;
    padding: 8px 27px;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing:antialiased;
}

@-webkit-keyframes ui-select-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}
@keyframes ui-select-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

.ui-select-spin {
    -webkit-animation: ui-select-spin 2s infinite linear;
    animation: ui-select-spin 2s infinite linear;
}

.ui-select-refreshing.ng-animate {
    -webkit-animation: none 0s;
}
.dropdown-menu.up {
    bottom: 100% !important;
    top: auto;
}

input, textarea {
    box-shadow: none;
}
input {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.has-search-icon {
    padding-right: 33px !important;
}


.ui-select-bootstrap .input-search-icon {
    color: #c7d2df;
    position: absolute;
    right: 1px;
    top: 1px;
    height: 32px;
    width: 32px;
    text-align: center;
    line-height: 34px !important;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.ui-select-bootstrap .input-search-icon:hover {
    transition: background-color 0.2s, color 0.2s;
    background-color: #efefef;
    color: #687587;
}
.square {
    border-radius: 0px !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.175);
    -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.175);
}

.space-for-icon {
    display: inline-block;
    width: 32px;
    height: 30px;
    float: left;
    line-height: 33px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.1s;

}
.space-for-icon:hover {
    transition: background-color 0.1s;

}

.space-for-icon i {
    display:none;
}

.added .space-for-icon i {
    display:inline;
}
.ui-select-multiple .ui-select-choices-row > span {
    display: inline-block;
    width: calc(100% - 40px);
    border: 0px;
}

.ui-select-multiple .ui-select-search {

}
.ui-select-multiple .ui-select-search:focus {
    text-align: left;
}

.ui-select-multiple .ui-select-choices-row>span {
    padding-left: 0px !important;
}
.fakePlaceholder {
    position: absolute;
    top: 0px;
    right: 35px;
    z-index: 0;
    height: 32px;
    line-height: 32px;
    cursor: default;
}
.fakePlaceholder.left {
    opacity: 0.6;
    left: 0px;
    right: auto;
    padding-left: 15px;
}
.ui-select-multiple .input-search-icon {
    top: 0px;
    right: 0px;
}

.input-search-icon.no-action {
    cursor: default !important;
    opacity: 0.7;
    font-size: 13px;
}

.input-search-icon.no-action:hover {
    cursor: default !important;
    background-color: #fff !important;
    color: rgb(199, 210, 223) !important;
}


.templates-select .dropdown-header{
    color: #cccccc;
    padding: 3px 10px;
    padding-top: 10px;

}

.templates-select .ui-select-choices-row{
    padding-top: 5px;
    padding-bottom: 5px;
    position: relative;
}
.templateText {
    font-size: 11px;
    line-height: 11px;
    vertical-align: top;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.templateTitle  {
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 20px;
}
.selected-icon {
    display: inline-block;
    position: absolute;
    width: 30px;
    left: 0px;
    top: 0px;
    height: 100%;
    text-align: center;

    height: 100%;

}

.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus {
    background-color: #f0f0f0 !important;
}

.selected-icon i {


    display: inline;

    line-height: 15px !important;
    font-size: 15px !important;
}
.templates-select .ui-select-choices-row-inner {
    position: relative;
    padding-left: 30px !important;
}

.ui-select-clear-btn {
    color: #bec2c8;
    position: absolute;
    top: 0;
    right: 36px;
    line-height: 35px !important;
    font-size: 12px;
    cursor: pointer;
}

.ui-select-clear-btn:hover{
    color: #b2b6bd;
}

.allowClear input {
    padding-right: 56px !important;
}


.ui-select-multiple .ui-select-choices-group {
    overflow: hidden;
}


.grid-select-match-text:hover {
    border-bottom: 1px dashed #1c84c6;
}

.ui-select-match.selected .grid-select-match-text:hover  {
    border-bottom: 1px dashed #8994a4;
}

.ui-select-search {
    padding-right: 34px;

}

.close {
    opacity: 0.9;
}
