﻿/* ===== FACTOR LIVE SEARCH ===== */

/* Overflow fix - dropdown görünmesi için */
.sticky-header,
.main-bar-wraper,
.main-bar,
.dz-header,
.container-fluid,
.extra-nav,
.extra-cell,
.dlab-quik-search {
    overflow: visible !important;
}

#searchResultsContainer1 {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    z-index: 99999;
    display: none;
    max-height: 420px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    border-top: 3px solid #004a88;
}

    #searchResultsContainer1::-webkit-scrollbar {
        width: 5px;
    }

    #searchResultsContainer1::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

/* Her sonuç - a tag direkt */
#searchResults .search-item-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 12px;
    text-decoration: none !important;
    color: inherit !important;
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.15s;
}

    #searchResults .search-item-link:last-child {
        border-bottom: none;
    }

    #searchResults .search-item-link:hover {
        background: #f5f8ff;
    }

    /* Görsel */
    #searchResults .search-item-link img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        flex-shrink: 0;
        background: #fafafa;
        border: 1px solid #eee;
        border-radius: 6px;
    }

/* Metin */
.search-item-details {
    flex: 1;
    min-width: 0;
}

.search-item-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.search-item-code {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

.search-loading, .search-no-result {
    padding: 16px;
    text-align: center;
    color: #888;
    font-size: 13px;
}
