Income Taxes - Gross unrecognized tax benefits (Details) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Dec. 31, 2021 |
Dec. 31, 2020 |
|
| Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward] | ||
| Beginning balance | $ (35,558) | $ (8,427) |
| Increases in balances related to tax positions taken during current period | (4,529) | (29,812) |
| Reductions related to changes in estimates | (640) | 3,230 |
| Other (increase) decrease | 469 | (549) |
| Ending balance | (40,258) | (35,558) |
| Income tax examination, interest | 0 | 0 |
| Income tax examination, penalties | $ 0 | $ 0 |
| X | ||||||||||
- Definition Unrecognized Tax Benefits, Increase (Decrease) Resulting from Changes in Estimates No definition available.
|
| X | ||||||||||
- Definition Unrecognized Tax Benefits, Other Increase (Decrease) No definition available.
|
| X | ||||||||||
- Definition The amount of estimated interest recognized in the period arising from income tax examinations. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition The amount of estimated penalties recognized in the period arising from income tax examinations. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period. No definition available.
|
| X | ||||||||||
- Definition Amount of unrecognized tax benefits. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of increase in unrecognized tax benefits resulting from tax positions that have been or will be taken in current period tax return. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|