Income Taxes - Narrative (Details) - USD ($) $ in Thousands |
12 Months Ended | |||
---|---|---|---|---|
Dec. 31, 2021 |
Dec. 31, 2020 |
Dec. 31, 2019 |
Dec. 31, 2017 |
|
Tax Credit Carryforward [Line Items] | ||||
Valuation allowance | $ 56,551 | $ 41,922 | ||
Increase (decrease) in deferred tax asset valuation allowance | 14,600 | 13,000 | ||
Write off of net operating losses | $ 3,100 | |||
Write off of tax credits | 1,200 | |||
Unrecognized tax benefits | 8,489 | $ 8,248 | $ 989 | |
Federal | ||||
Tax Credit Carryforward [Line Items] | ||||
Net operating loss carryforwards | 181,500 | $ 71,900 | ||
Federal | Tax Year 2018 | ||||
Tax Credit Carryforward [Line Items] | ||||
Net operating loss carryforwards | 109,700 | |||
State | ||||
Tax Credit Carryforward [Line Items] | ||||
Net operating loss carryforwards | 325,500 | |||
Research and Development | Federal | ||||
Tax Credit Carryforward [Line Items] | ||||
Tax credit carryforward | 3,000 | |||
Research and Development | State | ||||
Tax Credit Carryforward [Line Items] | ||||
Tax credit carryforward | $ 4,500 |