* {
    --aSelect-Header-Color: #ccc;
    --aSelect-Header-Text: #111;
    --aSelect-Items-Container-Color: #e0e0e0;
    --aSelect-Items-Color: #eee;
    --aSelect-Items-Text: #333;
    --aSelect-Items-Active-Color: rgb(153, 204, 255);
    --aSelect-Items-Hover-Color: rgb(51, 204, 255);
    --aSelect-Items-Hover-Text: white;
    --aSelect-Items-AlwaysShow-Color: #ddd;
    --aSelect-Items-AlwaysShow-Text: #555;
}

.a-select {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
    width: calc(100% - .5em);
}

.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.4em;
    top: -1.4em;
    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: absolute;
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    right: 1em;
    top: 2em;
    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-prev::before {
    content: '<<';
}

.a-select-footer-next::before {
    content: '>>';
}

.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 {
    border-bottom: none;
    border-radius: 1px;
    overflow: hidden;
    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: 0px 1px;
    border-collapse: separate;
    width: 100%;
    background-color: var(--aSelect-Items-Container-Color);
    margin-bottom: unset !important;
}

.a-select-items table thead {
    position: sticky;
    top: 0px;
}

.a-select-items table thead th::before {
    content: '';
    display: block;
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--aSelect-Items-Container-Color);
    z-index: -1;
}

.a-select-items table thead th {
    position: relative;
    text-align: left;
    padding: 6px 16px 6px 8px !important;
    cursor: unset;
    color: var(--aSelect-Header-Text);
    background-color: var(--aSelect-Header-Color);
    border-bottom: solid 1px #bbb;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.a-select-items tr td {
    font-weight: normal !important;
    padding: 8px 16px 8px 8px !important;
    cursor: pointer;
    background-color: var(--aSelect-Items-Color);
    color: var(--aSelect-Items-Text);
    /* border-bottom: 1px solid #d4d4d4;  */
    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(--aSelect-Items-AlwaysShow-Text);
    padding-left: 10px;
}

.a-select-items tr:hover td {
    /*when hovering an item:*/
    background-color: var(--aSelect-Items-Hover-Color) !important;
    color: var(--aSelect-Items-Hover-Text) !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 !important;
    overflow: hidden;
    border-bottom: solid 1px #bbb;
}

.a-select-header {
    display: block;
    color: var(--aSelect-Header-Text);
    background-color: var(--aSelect-Header-Color);
    left: 0px;
    right: 0px;
    margin: auto;
    padding: 0 !important;
    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: 4px;
    border: solid 1px rgba(0, 0, 0, 0.3);
    top: 3px;
    right: 3px;
    height: 17px;
    width: 17px;
    padding: 0 !important;
    font-size: 12px;
    line-height: 17px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.5s ease;
}

.a-select-header .search-clear:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: #555;
    border: solid 1px rgba(0, 0, 0, 0.5);
}

.a-select-header .search-clear::before {
    content: '+';
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    pointer-events: none;
}

.a-select-container {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1000;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
}

.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: 0em .4em .4em 0em;
    font-size: .9em;
}

.a-select-badge-remove {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -1px;
    right: -1px;
    overflow: hidden;
    border-radius: 0px 3px 3px 0px;
    border: solid 1px rgba(0, 0, 0, 0.2);
    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::before {
    content: '+';
    font-size: 16px;
    font-weight: bold;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.a-select-badge-remove:hover {
    color: rgb(247, 247, 247);
    background-color: #FF452B;
    border: solid 1px rgba(0, 0, 0, 0.4);
}

.a-select-modal label {
    width: 100%;
    display: inline-block;
}