/* ========================================================================= */
/* OM AUTOCOMPLETE & FUZZY SEARCH CORE STYLES                                */
/* Reusable across all modules: Products, Customers, Orders, Inventory, Reports */
/* ========================================================================= */

.om-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.om-autocomplete-wrapper .input-group-text {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.om-suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1080;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.om-suggestions-box::-webkit-scrollbar {
    width: 6px;
}

.om-suggestions-box::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.om-suggestions-box::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

.om-suggestion-item {
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.15s ease;
    text-decoration: none;
    color: inherit;
}

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

.om-suggestion-item:hover,
.om-suggestion-item.active {
    background-color: #f0fdf4;
}

.om-suggestion-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 2px;
    flex-shrink: 0;
}

.om-suggestion-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.om-suggestion-info {
    flex-grow: 1;
    min-width: 0;
}

.om-suggestion-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
}

.om-suggestion-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.om-suggestion-price {
    font-weight: 700;
    color: #dc2626;
    font-size: 12.5px;
}

.om-suggestion-cost {
    font-weight: 600;
    color: #059669;
    font-size: 12px;
}

.om-suggestion-stock {
    font-size: 11px;
    color: #475569;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
}

.om-match-highlight {
    color: #0284c7 !important;
    font-weight: 700;
    background-color: rgba(2, 132, 199, 0.1);
    padding: 0 2px;
    border-radius: 2px;
}

.om-suggestion-action-btn {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.om-suggestion-viewall {
    padding: 9px 12px;
    text-align: center;
    background: #f8fafc;
    font-size: 12.5px;
    font-weight: 600;
    color: #0284c7;
    cursor: pointer;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
}

.om-suggestion-viewall:hover {
    background: #f0f9ff;
    color: #0369a1;
}

.om-selected-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 6px;
}
