| Income Taxes - Provision for Income Tax (Details) - USD ($) $ in Thousands | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018 | |
| Current: | |||
| Federal | $ 0 | $ (3) | $ 0 | 
| State | 1,087 | 1,381 | 2,507 | 
| Foreign | 15,484 | 22,810 | 27,062 | 
| Current income tax | 16,571 | 24,188 | 29,569 | 
| Deferred: | |||
| Federal | (58,744) | 11,824 | 10,875 | 
| State | (2,910) | 3,175 | 67 | 
| Foreign | (3,039) | 490 | (6,870) | 
| Deferred income tax | (64,693) | 15,489 | 4,072 | 
| Total | $ (48,122) | $ 39,677 | $ 33,641 | 
| X | ||||||||||
| 
- Definition Amount of current federal tax expense (benefit) pertaining to income (loss) from continuing operations. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of current foreign income tax expense (benefit) pertaining to income (loss) from continuing operations. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
 | 
| X | ||||||||||
| 
- Definition Amount of current income tax expense (benefit) pertaining to taxable income (loss) from continuing operations. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- References No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of current state and local tax expense (benefit) pertaining to income (loss) from continuing operations. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of deferred federal income tax expense (benefit) pertaining to income (loss) from continuing operations. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of deferred foreign income tax expense (benefit) pertaining to income (loss) from continuing operations. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of deferred income tax expense (benefit) pertaining to income (loss) from continuing operations. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- References No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of deferred state and local tax expense (benefit) pertaining to income (loss) from continuing operations. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
 | 
| X | ||||||||||
| 
- Definition Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 |