/* ── Ticker Autocomplete (shared component) ────── */

.sc-ac-wrap {
    position: relative;
    width: 320px;
}

.sc-ac-input-row {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sc-ac-input-row:focus-within {
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

.sc-ac-icon {
    color: #9ca3af;
    font-size: 14px;
    flex-shrink: 0;
}

.sc-ac-input {
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 10px;
    font-size: 14px;
    width: 100%;
    color: #1f2937;
}

.sc-ac-input::placeholder {
    color: #9ca3af;
}

.sc-ac-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: #198754;
    border-radius: 50%;
    animation: sc-ac-spin 0.6s linear infinite;
    flex-shrink: 0;
}

@keyframes sc-ac-spin {
    to { transform: rotate(360deg); }
}

.sc-ac-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 360px;
    overflow-y: auto;
    z-index: 1000;
}

.sc-ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.1s;
}

.sc-ac-item:first-child { border-radius: 8px 8px 0 0; }
.sc-ac-item:last-child  { border-radius: 0 0 8px 8px; }

.sc-ac-item:hover,
.sc-ac-item.sc-ac-active {
    background: #f0fdf4;
}

.sc-ac-item + .sc-ac-item {
    border-top: 1px solid #f3f4f6;
}

.sc-ac-ticker {
    font-weight: 700;
    font-size: 14px;
    color: #198754;
    min-width: 60px;
}

.sc-ac-name {
    font-size: 13px;
    color: #374151;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-ac-exchange {
    font-size: 11px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.sc-ac-empty {
    padding: 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}
