| Income Taxes (Details) - USD ($) $ in Thousands | 3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
| Jun. 30, 2022 | Jun. 30, 2021 | Jun. 30, 2022 | Jun. 30, 2021 | |
| Income Tax Disclosure [Abstract] | ||||
| Income tax provision (benefit) | $ 11,886 | $ (8,010) | $ 23,339 | $ (6,204) | 
| Unrecognized tax benefits, period increase | 4,400 | |||
| Unrecognized tax benefits, accrued interest | 400 | 400 | ||
| Unrecognized tax benefits, accrued penalties | $ 30 | $ 30 | ||
| X | ||||||||||
| 
- References No definition available. 
 | 
| 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 
 | 
| X | ||||||||||
| 
- Definition Amount of statutory penalties accrued for a tax position claimed or expected to be claimed by the entity, in its tax return. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
 | 
| X | ||||||||||
| 
- Definition Amount of interest expense accrued for an underpayment of income taxes. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
 | 
| X | ||||||||||
| 
- Definition Amount of increase (decrease) in unrecognized tax benefits attributable to uncertain tax positions taken in tax returns. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
 |