XML 46 R34.htm IDEA: XBRL DOCUMENT v3.21.2
Summary of significant accounting policies - Inventory (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2021
Jun. 30, 2021
Jun. 30, 2020
Dec. 31, 2020
Accounting Policies [Abstract]        
Raw materials $ 687 $ 687   $ 824
Work in progress 8,840 8,840   8,745
Finished goods 6,914 6,914   9,128
Total inventory 16,441 16,441   $ 18,697
Inventory write-down $ 300 $ 1,700 $ 200