﻿/* Ticker search results dropdown */
.ticker-search {
    position: relative;
}

.ticker-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 360px;
    overflow-y: auto;
    z-index: 1000;
    padding: 4px;
}

.ticker-result {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 7px;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: background-color 100ms ease;
}

    .ticker-result:hover,
    .ticker-result:focus {
        background: var(--surface-alt);
    }

.ticker-result-symbol {
    font-weight: 700;
    font-size: 14px;
    min-width: 56px;
    padding-right: 12px;
    box-sizing: border-box;
    color: var(--text);
}

.ticker-result-name {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* uncovered companies (no BrkRec): more muted */
.ticker-result.is-uncovered .ticker-result-symbol,
.ticker-result.is-uncovered .ticker-result-name {
    color: var(--text-muted);
    opacity: 0.72;
}

/* divider between covered and uncovered groups */
.ticker-result-divider {
    height: 1px;
    background: var(--border);
    margin: 5px 8px;
}
