.i-dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.i-dropdown-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--label);
}

.i-dropdown-label:empty {
    display: none;
}

.i-dropdown-button {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 2px;
    align-items: center;
    cursor: pointer;
    background-color: white;
    border-radius: 4px;
    max-height: 32px;
    min-height: 32px;
    box-sizing: border-box;
}

.i-dropdown-button:hover {
    background-color: #f7f7f7;
}

.i-dropdown-button-readonly {
    background-color: var(--light);
    pointer-events: none;
}

.i-dropdown-button-info {
    padding: 4px 8px;
    flex-grow: 1;
    color: #303640;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    min-height: 32px;
    max-height: 32px;
    box-sizing: border-box;
}

.i-dropdown-button-arrow {
    min-width: 20px;
    max-width: 20px;
    min-height: 32px;
    display: flex;
    align-items: center;
}

.i-dropdown-popup {
    border: 1px solid var(--border);
    position: fixed;
    max-height: 250px;
    background-color: white;
    border: 1px solid rbb(204, 204, 204);
    box-shadow: 0 6px 12px rgb(0 0 0 / 18%);
    border-radius: 2px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    box-sizing: border-box;
}

.i-dropdown-popup-TOP {
    bottom: 40px;
}

.i-dropdown-popup-items {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    margin-top: 4px;
    flex-grow: 1;
}

.i-dropdown-popup-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    min-height: 24px;
    max-height: 24px;
    padding: 4px 8px;
    padding-left: 12px;
    color: #303640;
}


.i-dropdown-popup-item-selected {
    background-color: #2196f32b;
    color: #444444;
}

.i-dropdown-popup-item-hover {
    background-color: #2196f3;
    color: white;
}

.i-dropdown-popup-item-container {
    display: flex;
    flex-grow: 1;
    align-items: center;
}

.i-dropdown-popup-item-info {
    flex-grow: 1;
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-y: hidden;
}

.i-dropdown-popup-item-check {
    min-width: 40px;
    max-width: 40px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.i-dropdown-popup-bg {
    width: 100%;
    height:100%;
    position: fixed;
    top: 0;
    height: 100%;
    left: 0;
    z-index: 1;
    display: none;
}

.i-dropdown-select {
    display: none;
}

.i-dropdown-popup-search {
    display: flex;
    padding: 4px 8px;
}

.i-dropdown-popup-filter {
    flex-grow: 1;
    border: 1px solid #efefef;
    padding: 8px;
    box-shadow: inset 0 -1px 0 #ddd;
    border-radius: 2px;
    font-size: 16px;
    color: #111111;
    min-height: 10px;
    max-height: 10px;
    min-width: 0;
}

.i-dropdown-popup-filter:focus {
    border-color: rgba(82,168,236,.8);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
    outline: 0;
    outline: thin dotted \9;
}

.i-dropdown-popup-controls {
    display: flex;
    padding: 4px 8px;
}

.i-dropdown-popup-control {
    border: 1px solid #adadad;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 26px;
    max-height: 26px;
    cursor: pointer;
}

.i-dropdown-popup-control:hover {
    background-color: #e6e6e6;
}

.i-dropdown-popup-control:first-child {
    border-radius: 2px 0 0 2px;
}

.i-dropdown-popup-control:last-child {
    border-radius: 0 2px 2px 0;
}

.i-dropdown-popup-control:not(:last-child) {
    border-right: 0;
}

.i-dropdown-popup-controls-history-active {
    background-color: #ffd68c8c;
}

.i-dropdown-popup-controls-history-active:hover {
    background-color: #ffc966;
}

.i-dropdown-placeholder {
    color: #999;
}

.i-dropdown-info {
    display: flex;
    justify-content: flex-end;
    min-height: 22px;
}

.i-dropdown-invalidmessage {
    text-align: right;
    background-color: #e51c23;
    color: white;
    font-size: 0.9em;
    padding: 4px;
}

.i-dropdown-button-error {
    border: 2px solid #e51c23;
}