XML 103 R87.htm IDEA: XBRL DOCUMENT v3.22.0.1
Income taxes - Schedule of income before income tax (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Income Tax Disclosure [Abstract]      
Domestic $ (71,537) $ (34,829) $ (43,544)
Foreign (8,441) 792 (834)
Loss before income tax benefit $ (79,978) $ (34,037) $ (44,378)