Schedule II - Valuation and Qualifying Accounts (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2021 |
Dec. 31, 2020 |
Dec. 31, 2019 |
|
| SEC Schedule, 12-09, Allowance, Credit Loss | |||
| SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward] | |||
| Beginning Balance | $ 22,691 | $ 21,696 | $ 6,969 |
| Provision (benefit) for doubtful accounts | (2,334) | 1,749 | 12,325 |
| Write-off of accounts receivable against allowance | (483) | (754) | (2,290) |
| Other (opening balance adjustments on acquisitions) | 0 | 0 | 4,692 |
| Ending Balance | 19,874 | 22,691 | 21,696 |
| SEC Schedule, 12-09, Valuation Allowance, Operating Loss Carryforward | |||
| SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward] | |||
| Beginning Balance | 2,160 | 3,288 | 2,031 |
| Decrease (increase) | 1,161 | 1,128 | (1,257) |
| Ending Balance | $ 999 | $ 2,160 | $ 3,288 |