Income Taxes - Summary of Significant Components of Deferred Income Tax Assets and Liabilities (Details) - USD ($) $ in Thousands |
Dec. 31, 2019 |
Dec. 31, 2018 |
|---|---|---|
| Deferred tax assets: | ||
| Net operating loss carryforwards | $ 263,512 | $ 128,829 |
| Reserves and accruals | 10,425 | 7,840 |
| Research and development credits | 73,442 | 39,344 |
| Lease Obligation | 81,639 | |
| Stock-based compensation | 17,494 | 7,529 |
| Total deferred tax assets | 446,512 | 183,542 |
| Deferred tax liabilities: | ||
| Right-of-use asset | (72,243) | |
| Depreciation and amortization | (10,916) | (343) |
| Total deferred tax liabilities | (83,159) | (343) |
| Valuation allowance | (361,233) | (182,360) |
| Net deferred tax assets | $ 2,120 | $ 839 |
| X | ||||||||||
- Definition Deferred tax assets lease obligation. No definition available.
|
| X | ||||||||||
- Definition Deferred tax liabilities right-of-use asset. No definition available.
|
| X | ||||||||||
- Definition Amount of deferred tax liability attributable to taxable temporary differences. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount, after allocation of valuation allowances and deferred tax liability, of deferred tax asset attributable to deductible differences and carryforwards, without jurisdictional netting. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible research tax credit carryforwards. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from share-based compensation. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from reserves and accruals. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount of deferred tax liability attributable to taxable temporary differences from property, plant, and equipment. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|