XML 41 R30.htm IDEA: XBRL DOCUMENT v3.21.2
Accounting Policies - Summary of Changes in Allowance for Doubtful Accounts and Sales Allowances (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2021
Jun. 30, 2020
Jun. 30, 2021
Jun. 30, 2020
Allowance for Doubtful Accounts Receivable [Roll Forward]        
Allowances, at beginning of period $ 6,149 $ 7,887 $ 7,147 $ 6,591
Charged as a reduction of revenue 1,287 2,959 2,566 5,357
Charged to bad debt expense in general and administrative expenses 236 1,260 468 3,485
Write-offs, net of recoveries (1,883) (1,802) (4,392) (5,129)
Allowances, at end of period $ 5,789 $ 10,304 $ 5,789 $ 10,304