.offcanvas-size-xl {
    --bs-offcanvas-width: min(95vw, 600px) !important;
}

.offcanvas-size-xxl {
    --bs-offcanvas-width: min(95vw, 90vw) !important;
}

.offcanvas-size-md {
    /* add Responsivenes to default offcanvas */
    --bs-offcanvas-width: min(95vw, 400px) !important;
}

.offcanvas-size-sm {
    --bs-offcanvas-width: min(95vw, 250px) !important;
}

/* ============================================
   Dual List Box Component Styles
   Used for property/member group selection
   ============================================ */

.dual-list-panel {
    border: 1px solid #d9dee3;
    border-radius: 0.375rem;
    background: #fff;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.dual-list-header {
    padding: 0.75rem 1rem;
    background: #f5f5f9;
    border-bottom: 1px solid #d9dee3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.375rem 0.375rem 0 0;
}

.dual-list-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #566a7f;
}

.dual-list-search {
    padding: 0.5rem;
    border-bottom: 1px solid #d9dee3;
}

.dual-list-items {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.dual-list-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.875rem;
    transition: background-color 0.15s ease;
    user-select: none;
}

.dual-list-item:hover {
    background-color: #f5f5f9;
}

.dual-list-item.selected {
    background-color: #e7e7ff;
    color: #696cff;
}

.dual-list-item.selected:hover {
    background-color: #dcddff;
}

.dual-list-item:last-child {
    border-bottom: none;
}

.dual-list-buttons {
    padding: 1rem 0.5rem;
}

.dual-list-buttons .btn {
    width: 50px;
}

.dual-list-loading {
    color: #a1acb8;
    font-size: 0.875rem;
}

.dual-list-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #a1acb8;
    font-size: 0.875rem;
}

/* Load more indicator */
.dual-list-load-more {
    text-align: center;
    padding: 0.75rem;
    color: #696cff;
    cursor: pointer;
    font-size: 0.8rem;
    background: #f5f5f9;
}

.dual-list-load-more:hover {
    background: #eaeaff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dual-list-panel {
        height: 250px;
        margin-bottom: 1rem;
    }
    
    .dual-list-buttons {
        flex-direction: row !important;
        padding: 0.5rem;
    }
    
    .dual-list-buttons .btn {
        margin: 0 0.25rem !important;
    }
}