* {
    --aSelect-Header-Color: #ccc;
    --aSelect-Header-Text: #111;
    --aSelect-Items-Container-Color: #d4d4d4;
    --aSelect-Items-Color: #eee;
    --aSelect-Items-Active-Color: rgba(0,0,153,0.7);
    --aSelect-Items-Hover-Color: rgba(0,0,153,0.6);
    --aSelect-Items-Hover-Text: white;
    --aSelect-Items-AlwaysShow-Color: #ddd;
}

.a-select-body-fixed {
    /*position: fixed;
    overflow-y: hidden;*/
}

.a-select-body-scroll {
    /* overflow-y: scroll; */
}

.a-select {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
}

.a-select.hidden {
    display: none;
    visibility: hidden;
}

.a-select input {
    padding-right: 12px;
}

.a-select.readonly input {
    cursor: pointer;
}

.a-select-down-arrow {
    right: 0.5em;
    top: 0px;
    bottom: 0px;
    display: flex;
    align-items: center;
    position: absolute;
    z-index: 98;
    background-color: transparent;
    cursor: pointer;
}

.a-select.disabled .a-select-down-arrow {
    display: none;
}

.a-select-down-arrow::before {
    content: '';
    position: relative;
    display: inline-block;
    width: 0.3em;
    height: 0.3em;
    border: solid 0.2em rgba(0,0,0,0.7);
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
    transform-origin: top center;
}

.a-select-footer {
    position: relative;
    height: 25px;
    overflow: hidden;
    background-color: var(--aSelect-Header-Color);
    border-top: solid 1px #bbb;
    text-align: center;
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.a-select-footer-text {
    font-size: smaller;
}

.a-select-footer-prev, .a-select-footer-next {
    width: 60px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

.a-select-footer-next {
}

.a-select-footer-prev.disabled, .a-select-footer-next.disabled {
    cursor: auto;
    color: rgba(0,0,0,0.3);
    background-color: unset !important;
}

.a-select-footer-prev:hover:not(.disabled), .a-select-footer-next:hover:not(.disabled) {
    color: white;
}

.a-select-items {
    xxborder: 1px solid rgba(255,0,0,0.2);
    border-bottom: none;
    border-radius: 1px;
    overflow: hidden;
    xoverflow-y: auto;
    z-index: 99;
    /*position the a-select items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

.a-select-items.loading {
    min-height: 80px;
}

.a-select-items .a-select-items-loading {
    display: none;
    visibility: hidden;
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.a-select-items.loading .a-select-items-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible;
    background-color: rgba(255,255,255,0.9);
}

.a-select-items-table {
    overflow: hidden;
    overflow-y: auto;
}

.a-select-items table {
    border-spacing: .2em;
    border-collapse: separate;
    width: 100%;
    background-color: var(--aSelect-Items-Container-Color);
}

.a-select-items tr td {
    font-weight: normal !important;
    padding: 8px !important;
    cursor: pointer;
    background-color:white;
    border: .1em solid currentColor;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.a-select-items tr.alwaysShow td {
    background-color: var(--aSelect-Items-AlwaysShow-Color) !important;
    /* font-style: italic; */
    color: var(--optionColor);
    padding-left: 10px;
}

.a-select-items tr:hover td {
    /*when hovering an item:*/
    background-color: #dddddd !important;
    color: currentColor !important;
}

.a-select-items tr:first-of-type {
    border-radius: 1px 1px 0px 0px;
}

.a-select-items tr:last-of-type {
    border-radius: 0px 0px 1px 1px;
}

.a-select-items tr.a-select-active td {
    /*when navigating through the items using the arrow keys:*/
    background-color: var(--aSelect-Items-Active-Color) !important;
    color: white !important;
}

.a-select-header-span {
    display: block;
    position: relative;
    height: 25px;
    padding: 0;
    overflow: hidden;
    border-bottom: solid 1px #bbb;
}

.a-select-header {
    display: block;
    xposition: fixed;
    color: var(--aSelect-Header-Text);
    background-color: var(--aSelect-Header-Color);
    left: 0px;
    right: 0px;
    margin: auto;
    border-radius: 1px 1px 0px 0px;
    z-index: 1001;
    border-bottom: solid 1px rgba(0,0,0,0.1);
}

.a-select-header .search-text {
    display: inline-block;
    position: relative;
    padding: 0 35px 0 6px;
    vertical-align: top;
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    box-sizing: border-box;
}

.a-select-header .search-clear {
    display: inline-block;
    text-align: center;
    font-family: Helvetica;
    position: absolute;
    background-color: rgba(255,255,255,0.6);
    color: #777;
    border-radius: 100%;
    border: solid 1px rgba(0,0,0,0.3);
    top: 3px;
    right: 3px;
    height: 17px;
    width: 17px;
    font-size: 12px;
    line-height: 17px;
    cursor: pointer;
    pointer-events: auto;
}

.a-select-header .search-clear::before {
    content: 'x';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}


.a-select-container {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: 1000;
        /*max-width: 640px;
        margin: auto;*/
        overflow: hidden;
        background-color: rgba(255,255,255,0.1);
        /*background-color: #ddd;
        border: solid 1px rgba(0,0,0,0.2);
        border-radius: 1px;*/
    }
    
    .a-select-container.top {
        xtop: auto;
        xbottom: 100%;
    }
    
    .a-select-header {
        max-width: 640px;
    }

.a-select-items-container {
    position: fixed;
    display: block;
    right: unset;
    border: solid 1px rgba(0,0,0,0.2);
    border-radius: 2px;
    background-color: var(--aSelect-Items-Container-Color);
    z-index: 99;
}

    .a-select-items {
        position: relative;
        display: block;
        z-index: 99;
    }
    
    .a-select-items div {
        border-radius: 0px !important;
    }


.a-select-badges-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: .3em 0em;
}

.a-select-badge {
    display: flex;
    align-items: center;
    position: relative;
    border: solid 1px rgba(0,0,0,0.2);
    color: #444;
    background-color: whitesmoke;
    border-radius: 3px;
    padding: .4em 1.8em .4em .4em;
    margin: .4em .4em .4em 0em;
    font-size: .9em;
}

.a-select-badge-remove {
    position: absolute;
    display: flex;
    align-items: center;
    top: 0px;
    right: 0px;
    overflow: hidden;
    border-radius: 0px 3px 3px 0px;
    border-left: solid 1px rgba(0,0,0,0.3);
    background-color: #e0e0e0;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    padding: 0em .3em;
    height: 100%;
    transition: all 0.5s ease;
}

.a-select-badge-remove:hover {
    color: rgb(247,247,247);
    background-color: #FF452B;
}

