.vm-hover,
.vm-hover *
{
    box-sizing: border-box;
}

.vm-hover,
.vm-hover .vm-hover-info
{
    position: fixed;
    z-index: 10020;
    margin: 0;
    padding: 0;
    border: 1px solid var(--theme-panel-border, #4b5563);
    border-radius: 8px;
    color: var(--theme-body-fg, #e0e0e0);
    background: var(--theme-panel-bg, #30343c);
    box-shadow: 0 5px 18px #0003;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
}

.vm-hover
{
    display: flex;
    flex-direction: column;
}

.vm-hover[hidden],
.vm-hover [hidden],
.vm-hover-bridge[hidden]
{
    display: none !important;
}

.vm-hover-bridge
{
    position: fixed;
    z-index: 10019;
    background: transparent;
}

.vm-hover .vm-hover-header
{
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 2px 3px 2px 6px;
    border-bottom: 1px solid var(--theme-panel-border, #4b5563);
    font-size: 12px;
    font-weight: 700;
}

.vm-hover button.vm-hover-close
{
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    color: inherit;
    background: transparent;
    box-shadow: none;
    font: 19px/22px sans-serif;
    cursor: pointer;
}

.vm-hover .vm-hover-list
{
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    max-height: 300px;
    padding: 3px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.vm-hover button.vm-hover-row
{
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 3px;
    width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 3px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: inherit;
    background: transparent;
    box-shadow: none;
    font: inherit;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.vm-hover button.vm-hover-row.is-active,
.vm-hover button.vm-hover-row:hover,
.vm-hover button.vm-hover-close:hover
{
    border-color: var(--theme-control-focus-border, #6a9fd5);
    background: var(--theme-control-bg, #3a3a3a);
    color: var(--theme-control-fg, #e0e0e0);
}

.vm-hover button:focus-visible
{
    outline: 2px solid var(--theme-control-focus-border, #6a9fd5);
    outline-offset: -2px;
}

.vm-hover .vm-hover-number
{
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vm-hover .vehicle-marker
{
    flex: 0 0 24px;
    pointer-events: none;
}

.vm-hover .vm-hover-info
{
    z-index: 10021;
    padding: 6px;
    overflow-wrap: anywhere;
}

.vm-hover .vm-hover-info::before
{
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: -8px;
    width: 8px;
    content: "";
}

.vm-hover .vm-hover-info > *
{
    max-width: 100% !important;
    max-height: calc(100vh - 34px);
    margin: 0 !important;
    overflow: auto;
    color: inherit !important;
    font-family: inherit !important;
    font-size: 12px !important;
    line-height: 1.6;
}
