/*jq-ui autocomplete*/
.ui-front {
    z-index: 200;
}
.ui-autocomplete {
    position: absolute;
    top: 0;
    left: 0;
    cursor: default;
    max-height: 250px;
    overflow:hidden;
    overflow-y:auto;
    z-index:2000;
}
.ui-autocomplete-category {
    font-weight: bold;
    padding: .2em .4em;
    margin: .8em 0 .2em;
    line-height: 1.5;
}
.ui-menu {
    list-style: none;
    padding: 2px;
    margin: 0;
    display: block;
    outline: none;
}
.ui-menu .ui-menu-item {
    margin: 0;
    padding: 0;
    width: 100%;
    /* support: IE10, see #8844 */
    list-style-image: none;
}
.ui-menu .ui-menu-disabled-item {
    text-decoration: none;
    display: block;
    padding: 2px .4em 2px 5px;
    line-height: 1.5;
    min-height: 0; /* support: IE7 */
    font-weight: normal;
    color:#ccc;
    background-color: #fffae5;
}
.ui-menu .ui-menu-item a {
    text-decoration: none;
    display: block;
    padding: 2px .4em;
    line-height: 1.5;
    min-height: 0; /* support: IE7 */
    font-weight: normal;
}
.ui-menu .ui-menu-item a.ui-state-focus,
.ui-menu .ui-menu-item a.ui-state-active {
    font-weight: normal;
    margin: -1px;
}
.ui-menu .ui-state-disabled {
    font-weight: normal;
    margin: .4em 0 .2em;
    line-height: 1.5;
}
.ui-menu .ui-state-disabled a {
    cursor: default;
}
.ui-widget-content {
    border: 1px solid #e6e6e6;
    background: #ffffff;
    color: #333;
}
.ui-widget-content a {
    color: #333;
}
.ui-autocomplete.ui-widget-content .ui-menu-item a.ui-state-hover,
.ui-autocomplete.ui-widget-content .ui-menu-item a.ui-state-focus{
    border: 1px solid #f0feff;
    background-color:#f0feff;
    font-weight: normal;
    color: #212121;
}
.ui-widget {
    font-family: Verdana,Arial,sans-serif;
    font-size: 13px;
}
/* Corner radius */
.ui-corner-all,
.ui-corner-top,
.ui-corner-left,
.ui-corner-tl {
    border-top-left-radius: 4px;
}
.ui-corner-all,
.ui-corner-top,
.ui-corner-right,
.ui-corner-tr {
    border-top-right-radius: 4px;
}
.ui-corner-all,
.ui-corner-bottom,
.ui-corner-left,
.ui-corner-bl {
    border-bottom-left-radius: 4px;
}
.ui-corner-all,
.ui-corner-bottom,
.ui-corner-right,
.ui-corner-br {
    border-bottom-right-radius: 4px;
}
.ui-helper-hidden-accessible {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*!
 * bootstrap-tokenfield
 * https://github.com/sliptree/bootstrap-tokenfield
 * Copyright 2013-2014 Sliptree and other contributors; Licensed MIT
 */
@-webkit-keyframes blink {
    0% {
    border-color: #ededed;
}
100% {
    border-color: #b94a48;
}
}
@-moz-keyframes blink {
    0% {
    border-color: #ededed;
}
100% {
    border-color: #b94a48;
}
}
@keyframes blink {
    0% {
    border-color: #ededed;
}
100% {
    border-color: #b94a48;
}
}

.tokenfield {
    height: auto;
    min-height: 40px;/*34px;*/
    padding-bottom: 0px;
    padding-left: 5px;/*7px;*/
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    /*padding: 0 10px;*/
    
}
.tokenfield.focus {
    border: 1px solid #20ade1;
    outline: none;
    /*-webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.04) inset;*/
    /*box-shadow: 0 2px 2px rgba(0,0,0,0.04) inset;*/
    /* -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
     box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);*/
}

.tokenfield .token {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    display: inline-block;
    /* border: 1px solid #f0f0f0;*/
    /*background-color: #f0f0f0;#ededed;*/
    white-space: nowrap;
    margin: 0px 5px 5px 0;/*5px 5px 5px 0;*/
    height: 26px;/*22px;*/
    vertical-align: top;
    cursor: default;
    padding-right:20px;
    position:relative;
    max-width:100%;
}
.tokenfield .token:hover {
    border-color: #b9b9b9;
}
.tokenfield .token.active {
    border-color: #52a8ec;
    border-color: rgba(82, 168, 236, 0.8);
}
.tokenfield .token.duplicate {
    border-color: #ebccd1;
    -webkit-animation-name: blink;
    animation-name: blink;
    -webkit-animation-duration: 0.1s;
    animation-duration: 0.1s;
    -webkit-animation-direction: normal;
    animation-direction: normal;
    -webkit-animation-timing-function: ease;
    animation-timing-function: ease;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
}
.tokenfield .token.invalid {
    background: none;
    border: 1px solid transparent;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    border-bottom: 1px dotted #d9534f;
}
.tokenfield .token.invalid.active {
    background: #ededed;
    border: 1px solid #ededed;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
.tokenfield .token .token-label {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 4px;
    vertical-align: top;
    padding-top:2px;
    max-width: 100%/*!important*/;
}
.tokenfield .token .close {
    /*font-family: Arial;
    display: inline-block;
    line-height: 100%;
    font-size: 1.1em;
    line-height: 1.49em;
    margin-left: 5px;
    float: none;
    height: 100%;
    vertical-align: top;
    padding-right: 4px;
    color:#333333;
    margin-top: -2px;*/

    display: block;
    font-size: 1px;
    height: 8px;
    position: absolute;
    right: 7px;
    top: 8px;
    width: 8px;
    opacity:1;
}
.tokenfield .token-input {
    background: none;
    width: 60px;
    min-width: 60px;
    border: 0;
    height: 25px;/*20px;*/
    padding: 0;
    /*margin-bottom: 6px;*/
    /*margin-top:8px;*/
    -webkit-box-shadow: none;
    box-shadow: none;
}
.tokenfield .token-input:focus {
    border-color: transparent;
    outline: 0;
    /* IE6-9 */
    -webkit-box-shadow: none;
    box-shadow: none;
}
.tokenfield.disabled {
    cursor: not-allowed;
    background-color: #eeeeee;
}
.tokenfield.disabled .token-input {
    cursor: not-allowed;
}
.tokenfield.disabled .token:hover {
    cursor: not-allowed;
    border-color: #d9d9d9;
}
.tokenfield.disabled .token:hover .close {
    cursor: not-allowed;
    opacity: 0.2;
    filter: alpha(opacity=20);
}
.has-warning .tokenfield.focus {
    border-color: #66512c;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
}
.has-error .tokenfield.focus {
    border-color: #843534;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
}
.has-success .tokenfield.focus {
    border-color: #2b542c;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
}
.tokenfield.input-sm,
.input-group-sm .tokenfield {
    min-height: 30px;
    padding-bottom: 0px;
}
.input-group-sm .token,
.tokenfield.input-sm .token {
    height: 20px;
    margin-bottom: 4px;
}
.input-group-sm .token-input,
.tokenfield.input-sm .token-input {
    height: 18px;
    margin-bottom: 5px;
}
.tokenfield.input-lg,
.input-group-lg .tokenfield {
    height: auto;
    min-height: 75px;/*45px;*/
    padding-bottom: 4px;
}
.input-group-lg .token,
.tokenfield.input-lg .token {
    height: 28px;
}
.input-group-lg .token-label,
.tokenfield.input-lg .token-label {
    line-height: 23px;
    padding-top:0px;
}
.input-group-lg .token .close,
.tokenfield.input-lg .token .close {
    line-height: 1.3em;
}
.input-group-lg .token-input,
.tokenfield.input-lg .token-input {
    height: 28px;
    line-height: 23px;
    margin-bottom: 6px;
    margin-top: 3px;
    vertical-align: top;
}
.tokenfield.rtl {
    direction: rtl;
    text-align: right;
}
.tokenfield.rtl .token {
    margin: -1px 0 5px 5px;
}
.tokenfield.rtl .token .token-label {
    padding-left: 0px;
    padding-right: 4px;
}
