.filterable-multi-select {
    position: relative;
    min-height: 50px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    background-color: #fff;
}

.filterable-multi-select .filter-input-container {
    margin-bottom: 10px;
}

.filterable-multi-select .filter-input-container input {
    width: 93%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.filterable-multi-select .filter-input-container input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.selected-items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    min-height: 30px;
}

.selected-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    font-size: 13px;
    max-width: 100%;
}

.selected-item .remove-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0 4px;
    display: flex;
    align-items: center;
    font-size: 18px;
    line-height: 1;
    font-weight: bold;
    transition: transform 0.2s;
}

.selected-item .remove-btn:hover {
    opacity: 0.8;
    transform: scale(1.2);
}

.options-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fafafa;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.option-item:last-child {
    border-bottom: none;
}

.option-item:hover {
    background-color: #f0f0f0;
}

.option-item.selected {
    background-color: #e7f3ff;
}

.option-item input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.option-item span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Scrollbar styling for webkit browsers */
.options-list::-webkit-scrollbar {
    width: 8px;
}

.options-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.options-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.options-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}
