Fair Value Measurements - Reconciliation of Common Stock Warrant Liability Measured at Fair Value on Recurring Basis (Details) - Recurring basis - Significant Unobservable Inputs (Level 3) - Common stock warrants $ in Thousands |
12 Months Ended |
|---|---|
|
Dec. 31, 2016
USD ($)
| |
| Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] | |
| Fair value of derivative liabilities at December 31, 2015 | $ 338 |
| Change in the fair value of derivative liabilities, net | (98) |
| Adjustment for warrants exercised/extinguished | (103) |
| Adjustments for extinguished preferred stock | 2,617 |
| Issuance of Notes containing embedded derivative | (2,571) |
| Fair value of derivative liabilities at December 31, 2016 | $ 183 |