XML 106 R82.htm IDEA: XBRL DOCUMENT v3.22.0.1
Income taxes - Additional Information (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Dec. 31, 2018
Income Tax Disclosure [Abstract]        
Deferred tax assets, valuation allowance $ 47,420 $ 19,362    
Valuation allowance, period increase (decrease) 28,000 (6,800)    
Unrecognized tax benefits 18,533 971 $ 651 $ 180
Unrecognized tax benefits that would impact effective tax rate 100      
Domestic Tax Authority | Federal        
Operating Loss Carryforwards [Line Items]        
Operating loss carryforwards 224,400 49,500    
Domestic Tax Authority | Federal | Research Tax Credit Carryforward        
Operating Loss Carryforwards [Line Items]        
Research and development tax credit 4,000 2,100    
Domestic Tax Authority | Federal | Operating Loss Carryforwards Expiration Year, Unlimited        
Operating Loss Carryforwards [Line Items]        
Operating loss carryforwards 215,900 49,500    
State and Local Jurisdiction | California Franchise Tax Board        
Operating Loss Carryforwards [Line Items]        
Operating loss carryforwards 146,800 70,000    
State and Local Jurisdiction | California Franchise Tax Board | Research Tax Credit Carryforward        
Operating Loss Carryforwards [Line Items]        
Research and development tax credit $ 2,300 $ 100