XML 70 R54.htm IDEA: XBRL DOCUMENT v3.21.2
Share-based compensation - Allocation of Compensation Expense Related to Option (Details) - Stock Options - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2021
Jun. 30, 2020
Jun. 30, 2021
Jun. 30, 2020
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items]        
Compensation expense $ 7,227 $ 5,434 $ 12,776 $ 10,355
Selling, General and Administrative        
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items]        
Compensation expense 4,123 2,804 7,382 5,548
Research and Development        
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items]        
Compensation expense $ 3,104 $ 2,630 $ 5,394 $ 4,807