| Income Taxes - Additional Information (Details) - USD ($) $ in Thousands | 12 Months Ended | |||
|---|---|---|---|---|
| Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018 | |
| Operating Loss Carryforwards [Line Items] | ||||
| Income tax provision (benefit) | $ 5,901 | $ (16,259) | $ (12,586) | |
| Unrecognized tax benefits, period increase | 1,900 | |||
| Unrecognized tax benefits | 65,684 | $ 63,765 | $ 62,027 | $ 61,470 | 
| Unrecognized tax benefits that would impact effective tax rate | 55,900 | |||
| Unrecognized tax benefits, accrued interest | 500 | |||
| Domestic Tax Authority | ||||
| Operating Loss Carryforwards [Line Items] | ||||
| Operating loss carryforwards | 187,900 | |||
| Tax credit carryforwards, amount | 56,700 | |||
| State and Local Jurisdiction | ||||
| Operating Loss Carryforwards [Line Items] | ||||
| Operating loss carryforwards | 79,800 | |||
| Tax credit carryforwards, amount | 95,600 | |||
| Foreign Tax Authority | ||||
| Operating Loss Carryforwards [Line Items] | ||||
| Operating loss carryforwards | 0 | |||
| Tax credit carryforwards, amount | 1,800 | |||
| Other tax carryforwards | $ 6,700 | |||
| X | ||||||||||
| 
- Definition Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible tax carryforwards, classified as other. 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 
 | 
| X | ||||||||||
| 
- Definition Amount of operating loss carryforward, before tax effects, available to reduce future taxable income under enacted tax laws. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. No definition available. 
 | 
| X | ||||||||||
| 
- Definition The amount of the tax credit carryforward, before tax effects, available to reduce future taxable income under enacted tax laws. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of unrecognized tax benefits. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 | 
| 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 
 | 
| X | ||||||||||
| 
- Definition The total amount of unrecognized tax benefits that, if recognized, would affect the effective tax rate. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 |