﻿/*the container must be positioned relative:*/
.autocomplete {
    position: relative;

}

.autocomplete-items {
    position: relative;
    (relative treeview 583);
    border: 1px solid #d4d4d4;
    border-top: none;
    z-index: 99;
    left: 0;
    right: 0;
    height: calc(100vh - 437px);
    max-height:260px;
    min-height:82px;
    overflow-y: auto;
    overscroll-behavior-block: contain;
    overscroll-behavior: contain;
    border: 1px solid #d4d4d4;
    border-top: none;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.autocomplete-items div {
    padding: 3px 10px;
    cursor: pointer;
    background-color: #fff;

}

/*when hovering an item:*/
.autocomplete-items div:hover {
    background-color: #e9e9e9;
}

/*when navigating through the items using the arrow keys:*/
.autocomplete .active {
    background-color: rgb(189, 232, 255) !important;
    color: #020617;
}

.autocomplete .input-group {
    position: relative;
}

.autocomplete .input-group .clear-button {
    position: absolute;
    right: 44px;
    top: 54%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 10;
    font-size: 24px;
}

.autocomplete .input-group input {
    padding-right:30px;
}

.autocomplete .glyphicon.glyphicon-menu-down {
    font-weight: bold;
    font-size: 10px;
}
