div.auto-complete-wrapper {
    position: relative;
}

div.auto-complete-wrapper div.clearing,
div.auto-complete-wrapper div.loading {
    position: absolute;
    top: 5px;
    right: 20px;
    display: none;
}

div.auto-complete-wrapper:hover .tags ~ div.clearing{
    cursor: pointer;
    display: block!important;
}

div.auto-complete-wrapper.empty:hover div.clearing,
div.auto-complete-wrapper div.loading[style*="display:block"] + div.clearing,
div.auto-complete-wrapper div.loading[style*="display: block"] + div.clearing{
    display: none!important;
}

div.auto-complete-wrapper div.auto-complete-disable {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.4;
    filter: alpha(opacity=50);
    background-color: #F0FFFF;
    border: 1px solid #d5d5d5;
}

div.auto-complete-wrapper .tags {
    width: 100%;
    min-height: 110px; /* Init to same form-control class */
    overflow-y: auto;
    height: 110px;
}
div.auto-complete-wrapper .tags > input[type=text]{
    width: auto;
    padding: inherit;
    background: none;
}
div.auto-complete-wrapper .tags input[name=txt_edit]{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: calc(100% - 18px);
    height: 100%;
    border: solid 1px #91b8d0;
}
div.auto-complete-wrapper .tags .tag {
    padding-right: 40px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 28px;
    border-radius: 3px;
}
div.auto-complete-wrapper .tags .tag .tag-name{
    max-width: 100%;
}
div.auto-complete-wrapper .tags .tag .edit {
    font-size: 15px;
    line-height: 20px;
    opacity: 1;
    filter: alpha(opacity=100);
    color: #FFF;
    text-shadow: none;
    float: none;
    position: absolute;
    right: 17px;
    top: 0;
    bottom: 0;
    width: 18px;
    text-align: center;
}

div.auto-complete-wrapper .tags .tag .edit:hover {
    background-color: rgba(0, 0, 0, .2)
}

div.auto-complete-wrapper .tags.tags-ctrl-hover {
    border-color: #43b4b9!important;
}

div.auto-complete-wrapper .tags .tag.tag-select-all {
    background-color: #43b4b9;
}

div.auto-complete-wrapper .tags.tags-important .tag.tag-select-all {
    background-color: #d15b47!important;
}

div.auto-complete-wrapper .tags .tag button.edit {
    -webkit-appearance: none;
    padding: 0;
    cursor: pointer;
    background: 0 0;
    border: 0;
}
.ui-front-custom{
    z-index: 1050!important;
}
.ui-front-custom-mobile{
    z-index: 1029!important;
}

@media only screen and (max-width: 991px) {
    div.auto-complete-wrapper .tags .search-placeholder{
        width: 100%;
    }
    div.auto-complete-wrapper .tags .tag{
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-bottom: 0;

    }
}

.tags .tag-invalid {
    background-color: #d15b47!important;
}

.tags .tab-content {
    border: 1px solid #c5d0dc !important;
    position: relative !important;
    height: 130px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.tags .more-autocomp-menu {
    position: absolute!important;
    z-index: 1;
    background-color: #ffffff;
    width: 350px!important;
}

.tags .more-autocomp-menu .tab-content .tab-pane ul{
    width: 100%;
    margin: 0;
    list-style: none;
}

.tags .more-autocomp-menu .tabs-below > .nav-tabs > li.active > a {
    background-color: #fff;
    width: 100%;
    padding: 0 0 5px;
    margin: 0 0 2px;
    list-style: none;
    font-size: 14px;
}

.tags .more-autocomp-menu > ul.nav.nav-tabs {
    border-bottom: 1px solid #c5d0dc;
    border-right: 1px solid #c5d0dc;
}

.tags .more-autocomp-menu > ul.nav.nav-tabs > li > a {
    margin-bottom: -1px;
}

.tags .more-autocomp-menu .tab-pane ul li a {
    text-decoration: none;
    display: block;
    padding: 4px 7px 5px;
    clear: both;
    font-weight: normal;
    line-height: 1.5;
    color: #333;
    white-space: nowrap;
    font-size: 13px;
    margin-bottom: 1px;
    margin-top: 1px;
}

.tags .more-autocomp-menu .tab-pane ul li a:hover {
    background: #4f99c6;
    color: #fff;
}

.tags .more-autocomp-menu > ul + a[data-action="close"] {
    position: absolute;
    right: 10px;
    bottom: 5px;
}