| Income Taxes - Additional Information (Details) - USD ($) $ in Thousands | 12 Months Ended | |||
|---|---|---|---|---|
| Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020 | |
| Operating Loss Carryforwards [Line Items] | ||||
| Income tax provision | $ 9,337 | $ 49,158 | $ 5,901 | |
| Unrecognized tax benefits | 68,638 | $ 67,134 | $ 65,684 | $ 63,765 | 
| Unrecognized tax benefits that would impact effective tax rate | 58,500 | |||
| Unrecognized tax benefits, accrued interest | 300 | |||
| Domestic Tax Authority | ||||
| Operating Loss Carryforwards [Line Items] | ||||
| Operating loss carryforwards | 100,200 | |||
| Tax credit carryforwards, amount | 29,600 | |||
| State and Local Jurisdiction | ||||
| Operating Loss Carryforwards [Line Items] | ||||
| Operating loss carryforwards | 77,800 | |||
| Tax credit carryforwards, amount | 106,300 | |||
| Foreign Tax Authority | ||||
| Operating Loss Carryforwards [Line Items] | ||||
| Operating loss carryforwards | 49,500 | |||
| Tax credit carryforwards, amount | 3,200 | |||
| Other tax carryforwards | $ 7,200 | |||
| 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 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 
 |