Quarterly report pursuant to Section 13 or 15(d)

Convertible Preferred Stock Warrants and Common Stock Warrants - Additional Information (Details)

v3.7.0.1
Convertible Preferred Stock Warrants and Common Stock Warrants - Additional Information (Details) - USD ($)
$ in Thousands
1 Months Ended 3 Months Ended 6 Months Ended
Jun. 30, 2017
Jun. 30, 2017
Jun. 30, 2016
Jun. 30, 2017
Jun. 30, 2016
Class Of Warrant Or Right [Line Items]          
Loss on remeasurement of convertible preferred stock warrant liability   $ 3,725 $ 551 $ 3,725 $ 551
Reclassification of convertible preferred stock warrant liability into additional paid-in capital $ 5,700     $ 5,711  
The June 2012 Common stock warrant | Warrants Not Settleable in Cash          
Class Of Warrant Or Right [Line Items]          
Conversion of preferred stock into common stock, shares 15,136        
The August 2012 Common stock warrant | Warrants Not Settleable in Cash          
Class Of Warrant Or Right [Line Items]          
Conversion of preferred stock into common stock, shares 39,771        
Maximum          
Class Of Warrant Or Right [Line Items]          
Number of shares called by warrant 84,000 84,000   84,000  
Other Expense, Net          
Class Of Warrant Or Right [Line Items]          
Loss on remeasurement of convertible preferred stock warrant liability $ 3,700