Income Taxes - Deferred Tax Assets (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2016 |
Dec. 31, 2015 |
Dec. 31, 2014 |
|
| Income Taxes | |||
| Valuation allowance increase | $ 34,500 | $ 24,500 | $ 900 |
| Deferred tax assets | |||
| Net operating loss carryforwards | 68,504 | 41,451 | |
| Research and development tax credit carryforwards | 8,634 | 4,794 | |
| Reserves and accruals | 5,719 | 3,108 | |
| Stock based compensation | 3,220 | 2,206 | |
| Total deferred tax assets before valuation allowance | 86,077 | 51,559 | |
| Less: valuation allowance | (85,606) | (51,153) | |
| Deferred tax assets, net | 471 | 406 | |
| Deferred tax liabilities | |||
| Property and equipment | $ (471) | $ (406) | |
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
| X | ||||||||||
- Definition Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
| 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://www.xbrl.org/2003/role/presentationRef
|
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible research tax credit carryforwards. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from share-based compensation. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from reserves and accruals. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
| 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://www.xbrl.org/2003/role/presentationRef
|
| 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://www.xbrl.org/2003/role/presentationRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount of increase (decrease) in the valuation allowance for a specified deferred tax asset. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|