.searchable-dropdown {
    position: relative;
    width: 100%;
}

.searchable-input {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.searchable-input:focus {
    color: #212529;
    background-color: #fff;
    border-color: var(--brand-accent, #ed3325);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(237, 51, 37, 0.25);
}

.searchable-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    font-size: 0.875rem;
}

.dropdown-item:hover,
.dropdown-item.active {
    color: #fff;
    background-color: var(--brand-accent, #ed3325);
}

.dropdown-item.disabled {
    color: #6c757d;
    pointer-events: none;
    background-color: transparent;
    cursor: default;
}

.dropdown-item:not(.disabled):hover {
    background-color: var(--brand-accent-light, #f04937);
}

/* Scrollbar styling for dropdown */
.searchable-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.searchable-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.searchable-dropdown-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.searchable-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Auto-assignment visual feedback */
.auto-selected {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
    transition: all 0.3s ease-in-out;
}

.auto-assignment-notification {
    font-size: 0.875rem;
    background-color: #f8f9fa;
    border: 2px solid var(--light-gray, #E5E5E5);
    border-left: 4px solid var(--primary-red, #DF2C21);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: var(--dark-gray, #333333);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 1;
    position: relative;
    display: block;
    z-index: 10000;
}

.auto-assignment-notification .btn-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.7;
}

.auto-assignment-notification .btn-close:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .searchable-dropdown-menu {
        max-height: 200px;
    }
    
    .dropdown-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .auto-assignment-notification {
        max-width: 300px !important;
        font-size: 0.8rem;
        bottom: 10px !important;
        left: 10px !important;
    }
}