XML 47 R38.htm IDEA: XBRL DOCUMENT v3.22.2
Revenue from Contracts with Customers - Summary of Changes in Allowance for Doubtful Accounts (Details) - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2022
Jun. 30, 2021
Accounts Receivable Allowance    
Accounts Notes And Loans Receivable [Line Items]    
Allowance for doubtful accounts, Beginning Balance $ 2,284 $ 1,769
Amounts charged to contra revenue, cost of revenues and expenses 63 207
Amounts written off as uncollectable   (181)
Allowance for doubtful accounts, Ending Balance 2,347 1,795
Supplier Advances Receivable Allowance    
Accounts Notes And Loans Receivable [Line Items]    
Allowance for doubtful accounts, Beginning Balance 1,105 1,099
Amounts charged to contra revenue, cost of revenues and expenses 1,250  
Amounts written off as uncollectable (1,595) (233)
Recoveries of amounts previously written off 597 44
Allowance for doubtful accounts, Ending Balance $ 1,357 $ 910