XML 69 R57.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 9 Months Ended
Sep. 30, 2021
Sep. 30, 2020
Sep. 30, 2021
Sep. 30, 2020
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items]        
Compensation expense $ 7,175 $ 5,363 $ 19,951 $ 15,718
Selling, General and Administrative        
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items]        
Compensation expense 4,119 2,952 11,501 8,500
Research and Development        
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items]        
Compensation expense $ 3,056 $ 2,411 $ 8,450 $ 7,218