XML 61 R38.htm IDEA: XBRL DOCUMENT v3.22.4
Summary of significant accounting policies - Summary of Customer and Supplier Concentration Risk (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Significant Accounting Policies [Line Items]      
Revenue $ 459,072 $ 645,274 $ 584,814
Cost of revenue 389,013 543,750 $ 499,434
Accounts receivable 59,998 76,094  
Accounts payable 53,992 61,770  
Top One Supplier | Supplier Concentration Risk | Purchases      
Significant Accounting Policies [Line Items]      
Cost of revenue $ 46,000 $ 55,000  
Concentration risk percentage 11.00% 10.00%  
Top Two Suppliers | Supplier Concentration Risk | Accounts Payable Benchmark      
Significant Accounting Policies [Line Items]      
Concentration risk percentage 40.00% 34.00%  
Accounts payable $ 22,000 $ 21,000  
Top One Customer | Customer Concentration Risk | Revenue from Contract with Customer Benchmark      
Significant Accounting Policies [Line Items]      
Revenue $ 48,000    
Concentration risk percentage 10.00%    
Top One Customer | Customer Concentration Risk | Accounts Receivable      
Significant Accounting Policies [Line Items]      
Concentration risk percentage   10.00%  
Accounts receivable   $ 7,000  
Top Two Customers | Customer Concentration Risk | Revenue from Contract with Customer Benchmark      
Significant Accounting Policies [Line Items]      
Revenue   $ 171,000  
Concentration risk percentage   27.00%