﻿/*Autocomplete styling*/

/*the container must be positioned relative:*/
.autocomplete {
    position: relative;
    display: inline-block;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid var(--bs-dark-border-subtle);
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

    .autocomplete-items div {
        padding: 8px;
        cursor: pointer;
        background-color: var(--bs-light-bg-subtle);
        border-bottom: 1px solid var(--bs-dark-border-subtle);
        padding-left: 13px;
    }

/*when hovering an item:*/
.autocomplete-items div:hover {
    background-color: #e9e9e9;
}

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
    background-color: DodgerBlue !important;
    color: var(--bs-secondary-text-emphasis);
}

/*Autocomplete styling*/
