/* Dropdown container style */

#dropdown_for_search {
    display: none;
    /* Hidden by default */
    max-height: 600px;
    /* Maximum height */
    overflow-y: auto;
    /* Vertical scrolling if the dropdown is long */
    overflow-x: hidden;
    /* Hide horizontal scrolling */
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    margin-top: 5px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
    white-space: normal;
    /* Text will wrap to the next line if it's long */
    word-wrap: break-word;
    /* Words will break if they're too long */
}

/* Dropdown item style */

.dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /* Will wrap to the next line if items don't fit */
    white-space: normal;
    /* Text inside dropdown will wrap */
    word-break: break-word;
    /* Long words will break and wrap */
}

/* Service badge style */

.badge.service_id_badge {
    margin-right: 8px;
    /* Gap between the badge and name */
    font-size: 12px;
    /* Badge text size */
}

/* Centered "Please Wait" or loading message */

#dropdown_for_search .text-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    /* Correct positioning for the message */
    font-weight: bold;
}