.tt-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    background-color: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.15);
    margin-top: 0.5rem;
    padding: 0.25rem;
    width: 100%;
    max-width: 36rem;
    max-height: 34rem;
    overflow-y: auto;
    direction: rtl;
    text-align: right;
    z-index: 2000;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.5) transparent;
}

.tt-menu::-webkit-scrollbar {
    width: 0.5rem;
}

.tt-menu::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.05));
    border-radius: 999px;
}

.tt-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.65), rgba(59, 130, 246, 0.4));
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.35);
}

.tt-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.8), rgba(37, 99, 235, 0.55));
}

.tt-menu.tt-open {
    display: block;
}

.tt-menu[hidden] {
    display: none !important;
}

.tt-dataset-search-suggestions .tt-suggestion {
    padding: 0.6rem 0.85rem;
    border-radius: 0.65rem;
    cursor: pointer;
    display: block;
    color: inherit;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.tt-suggestion:hover,
.tt-suggestion.tt-cursor {
    background-color: rgba(13, 110, 253, 0.12);
    color: inherit;
}

.tt-dataset-search-suggestions .tt-section-header {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bs-secondary-color, rgba(255, 255, 255, 0.6));
    padding: 0.45rem 0.85rem 0.2rem;
}

.suggestion-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.suggestion-row--query {
    gap: 0.75rem;
}

.suggestion-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.18), rgba(13, 110, 253, 0.05));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary, #0d6efd);
    flex-shrink: 0;
    font-size: 1rem;
}

.suggestion-thumb {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: var(--bs-dark-bg-subtle, rgba(15, 23, 42, 0.08));
}

.suggestion-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.suggestion-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary, #0d6efd);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.18), rgba(13, 110, 253, 0.05));
    font-size: 1.1rem;
}

.suggestion-thumb-overlay {
    position: absolute;
    left: 0.4rem;
    bottom: 0.35rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 0.25rem 0.5rem rgba(15, 23, 42, 0.3);
}

.suggestion-body {
    flex: 1;
    min-width: 0;
}

.suggestion-text {
    font-size: 0.95rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-text--multiline {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
}

.tt-dataset-search-suggestions .tt-empty {
    padding: 0.65rem 0.85rem;
    color: var(--bs-secondary-color, rgba(255, 255, 255, 0.65));
}

.typeahead {
    background-color: transparent;
    color: inherit;
}

.typeahead:focus {
    border-color: var(--bs-primary, #0d6efd);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}
