v3.22.1
Summary of Significant Accounting Policies - Condensed consolidated statements of operations and comprehensive loss (Details) - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2022
Mar. 31, 2021
Financing Receivable, Impaired [Line Items]    
Cost of sales $ 40,566 $ 25,454
Gross profit 5,968 8,555
General and administrative 11,715 9,581
Total operating expenses $ 24,179 16,495
Prior to Change    
Financing Receivable, Impaired [Line Items]    
Cost of sales   26,696
Gross profit   7,313
General and administrative   8,339
Total operating expenses   15,253
Effect of Change    
Financing Receivable, Impaired [Line Items]    
Cost of sales   (1,242)
Gross profit   1,242
General and administrative   1,242
Total operating expenses   $ 1,242