v3.22.2.2
Summary of significant accounting policies - Change in Allowance for Doubtful Accounts (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Sep. 30, 2022
Sep. 30, 2021
Accounts Receivable, Allowance for Credit Loss [Roll Forward]        
Balance as of beginning of the year $ 5,756 $ 5,256 $ 8,132 $ 5,746
Provision for bad debts, included in selling, general and administrative 4,628 1,903 11,308 5,417
Uncollectible receivables written off (2,202) (114) (11,258) (4,118)
Balance as of end of the year $ 8,182 $ 7,045 $ 8,182 $ 7,045