/*!
 * 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: 36px;
    padding-bottom: 0px;
}

.tokenfield.focus {
    border-color: #0BA4E8;
    outline: 0;
}

.tokenfield .token {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #DADCDE;
    background-color: #DADCDE;
    white-space: nowrap;
    margin: 1px 5px 5px 0;
    height: 24px;
    cursor: default;
    display: inline-flex;
    align-items: center;
    padding: 0px 7px;
    line-height: 14px;
}

.tokenfield .token:hover {
    border-color: #DADCDE;
}

.tokenfield .token.active {
    border-color: #C8CBCE;
    box-shadow: 0px 0px 0px 2px #000;
}

.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 {
    border: 1px solid #D74A4D;
    background-color: #D74A4D;
    color: #fff;
    padding-left: 30px;
    position: relative;

}

.tokenfield .token.invalid:before {
    display: inline-block;
    background-image: url(../images/exclamation-point-circle-white.svg);
    background-repeat: no-repeat;
    background-size: 15px 15px;
    height: 15px;
    width: 15px;
    flex: 0 0 15px;
    content: "";
    color: transparent;
    text-shadow: none;
    position: absolute;
    left: 7px;
    top: 3px;
}

.tokenfield .token.invalid.active {
    background: #D74A4D;
    border: 1px solid #D74A4D;
    box-shadow: 0px 0px 0px 2px #000;
}

.tokenfield .token .token-label {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 0 auto;
}

.tokenfield .token .close {
    display: inline-block;
    float: none;
    background-image: url(../images/x-circle.svg);
    background-repeat: no-repeat;
    background-size: 15px 15px;
    height: 15px;
    flex: 0 0 15px;
    content: "";
    color: transparent;
    text-shadow: none;
    margin-left: 7px;
    opacity: .6;
    transition: all .15s ease-in-out;
}

.tokenfield .token .close:hover {
    opacity: 1;
}

.tokenfield .token.invalid .close {
    background-image: url(../images/x-circle-white.svg);
}

.tokenfield .token-input {
    background: none;
    width: 60px;
    min-width: 60px;
    border: 0;
    height: 20px;
    padding: 0;
    margin-bottom: 6px;
    -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: 45px;
    padding-bottom: 4px;
}

.input-group-lg .token,
.tokenfield.input-lg .token {
    height: 25px;
}

.input-group-lg .token-label,
.tokenfield.input-lg .token-label {
    line-height: 23px;
}

.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: 23px;
    line-height: 23px;
    margin-bottom: 6px;
    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;
}

.ui-widget.keep-open {
    display: block !important;
    border: 3px solid red;
}

.tokenfield-form-control-underline .form-control {
    border-width: 0px 0px 1px 0px;
    border-radius: 0px !important;
    padding-left: 0px;
    padding-right: 0px;
}
