XML 32 R21.htm IDEA: XBRL DOCUMENT v3.21.2
Summary of Significant Accounting Policies (Tables)
6 Months Ended
Jun. 30, 2021
Accounting Policies [Abstract]  
Summary of changes in the allowance for doubtful accounts and sales allowances
The following table summarizes the changes in the allowance for doubtful accounts and sales allowances (in thousands):

Three Months Ended June 30,Six Months Ended June 30,
2021202020212020
Allowances, at beginning of period$6,149 $7,887 $7,147 $6,591 
Charged as a reduction of revenue1,287 2,959 2,566 5,357 
Charged to bad debt expense in general and administrative expenses236 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