Fair Value Measurements - Level 3 Instruments Reconciliation (Details) - Warrants - USD ($) $ in Thousands |
6 Months Ended | |
|---|---|---|
Jun. 30, 2018 |
Jun. 30, 2017 |
|
| Reconciliations of the beginning and ending balances for liabilities measured at fair value on a recurring basis using significant unobservable inputs (i.e. Level 3) | ||
| Balance at the beginning of the period | $ 4,391 | $ 11,387 |
| Change in fair value of common stock warrants | (1,592) | 14,576 |
| Issuance of common stock warrants | 4,905 | |
| Exercise of common stock warrants | (27,089) | |
| Balance at the end of the period | $ 2,799 | $ 3,779 |