﻿
.vd-container {
    width: 100%;
    position: relative;
    border: 1px solid #c8c6c4;
    border-radius: 4px;
    background: white;
    outline: none;
}

.vd-container:focus,
.vd-container:focus-within {
    outline: none;
    border-color: #0078d4;
}

.vd-trigger {
    margin: 1px;
    height: 25px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    font-weight: bold;
    font-size: 12px;
    color: #323130;
}

.vd-trigger span:first-child {
    flex: auto;
    width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vd-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    background: white;
    z-index: 99999;
}

.vd-list {
    box-sizing: content-box;
    padding: 0;
    margin: 0;
}

.vd-item {
    height: 34px;
    line-height: 34px;
    padding: 0 6px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vd-item.selected {
    background: #0078d4;
    color: white;
}

/* The ShowNoneOption row — the placeholder, so it reads as "nothing" rather than as an item. */
.vd-item.vd-none {
    color: #888;
    font-style: italic;
}

.vd-item.vd-none.selected {
    color: white;
}

/* Sits above the list (see VirtualDropdown.razor), so the divider goes underneath it. */
.vd-footer {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-bottom: 1px solid #ddd;
}

.placeholder {
    background: white;
    color: #323130;
}

.vd-arrow {
    width: 7px;
    height: 7px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(45deg);
    margin-left: 8px;
}

.vd-footer button {
    width: 100%;
    height: 30px;
    display: flex;
    border: 1px solid #c8c6c4;
    border-radius: 4px;
    justify-content: space-evenly;
    font-weight: bold;
}

.vd-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Search box at the top of the open list. */
.vd-search {
    padding: 6px;
    border-bottom: 1px solid #ddd;
}

.vd-container .vd-search input {
    display: block;
    box-sizing: border-box;
    background: #fff;
    color: #323130;
    font-weight: normal;
    width: 100%;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #c8c6c4;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
}

.vd-container .vd-search input:focus {
    border-color: #0078d4;
}

/* GetGroup: a heading row above each group (an account list under its Group Name). */
.vd-group {
    height: 34px;
    line-height: 34px;
    padding: 0 8px;
    background: #f3f6fb;
    color: #007BFF;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid #e3e8ef;
    cursor: default;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vd-item.vd-grouped { padding-left: 18px; }
