.ac-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
}

.ac-group-label {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.ac-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.1s;
    gap: 8px;
}

.ac-item:last-child {
    border-bottom: none;
}

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

.ac-item .ac-info {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.ac-item .ac-value {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ac-item .ac-value strong {
    color: #2563eb;
}

.ac-item .ac-detail {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ac-item .ac-count {
    font-size: 11px;
    color: #999;
    background: #f0f0f0;
    padding: 1px 6px;
    border-radius: 10px;
    flex-shrink: 0;
}

.ac-thumb {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 3px;
    border: 1px solid #eee;
    flex-shrink: 0;
    background: #fafafa;
}

.ac-item-rich {
    padding: 6px 12px;
}

.ac-with-picture {
    max-height: 450px;
}

.ac-spellcheck {
    padding: 8px 12px;
    font-size: 13px;
    color: #666;
    background: #fffbe6;
    border-bottom: 1px solid #eee;
}

.ac-spellcheck a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.ac-spellcheck a:hover {
    text-decoration: underline;
}
