/* Best Paths Page Styles */

.best-paths-company-search {
    flex: 1 1 100%;
}

.best-paths-loading-text {
    color: var(--text-secondary);
}

.best-paths-empty-text {
    color: var(--text-muted);
}

.best-paths-dropdown-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: auto;
}

.best-paths-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 16px;
}

.best-paths-conclusion {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.best-paths-confidence-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    background: var(--bg-white);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.best-paths-confidence--high {
    background: var(--success-bg);
    color: var(--success);
}

.best-paths-confidence--medium {
    background: var(--warning-bg);
    color: var(--warning);
}

.best-paths-confidence--low,
.best-paths-confidence--unknown {
    background: var(--bg-light);
    color: var(--text-muted);
}

.best-paths-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    background: var(--bg-light);
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.best-paths-item:hover {
    background: #eaeaea;
}

.best-paths-item:last-child {
    margin-bottom: 0;
}

.best-paths-chain {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.best-paths-chain-arrow {
    color: var(--text-muted);
    font-size: 1rem;
}

.best-paths-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
    text-decoration: none;
}

.best-paths-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.best-paths-info {
    flex: 1;
    min-width: 0;
}

.best-paths-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.best-paths-summary-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.best-paths-kind-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    flex-shrink: 0;
    background: var(--bg-white);
    color: var(--text-secondary);
}

.best-paths-kind--direct {
    background: var(--success-bg);
    color: var(--success);
}

.best-paths-kind--via_gate {
    background: var(--warning-bg);
    color: var(--warning);
}

/* Path graph popup */
.best-paths-graph-container {
    width: 100%;
    height: 280px;
}
