Annual report pursuant to Section 13 and 15(d)

Long-Term Debt and Other Financings - Hercules Term Loan - Additional Information (Details)

v3.6.0.2
Long-Term Debt and Other Financings - Hercules Term Loan - Additional Information (Details) - USD ($)
$ / shares in Units, $ in Thousands
1 Months Ended 12 Months Ended
Feb. 27, 2015
Jan. 31, 2017
Feb. 29, 2016
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Debt Instrument [Line Items]            
Aggregate number of unregistered shares of common stock called by warrants (in shares)     8,249      
Exercise price of warrants (in dollars per share)     $ 15.40      
Estimated fair value of warrants     $ 100      
Exercisable period of warrants     5 years      
Repayment of principal       $ 6,890 $ 6,128 $ 5,917
Carrying value of the loan       $ 43,167 48,667  
Subsequent Event [Member]            
Debt Instrument [Line Items]            
Maturity date   Jul. 15, 2017        
Hercules Term Loan [Member]            
Debt Instrument [Line Items]            
Maturity date Sep. 01, 2018          
Variable rate basis       The Hercules Term Loan has a variable interest rate that is the greater of either (i) 9.40% plus the prime rate as reported from time to time in The Wall Street Journal minus 7.25%, or (ii) 9.40%.    
Period of principal and interest amortized 30 months          
Amortization of interest payments period end date Jun. 01, 2016          
Period of interest 1 month          
Prepayment fee within twelve months of maturity 3.00%          
Prepayment fee after twelve months but before twenty four months of maturity 2.00%          
Prepayment fee after twenty four months of maturity 1.00%          
Additional interest rate in case of default 5.00%          
Debt issuance costs $ 500          
Final payment fee $ 1,200          
Amortization of debt discount       $ 700 500  
Aggregate number of unregistered shares of common stock called by warrants (in shares) 9,063          
Exercise price of warrants (in dollars per share) $ 66.20          
Estimated fair value of warrants $ 500          
Exercisable period of warrants 5 years          
Warrants expiration period 2020-02          
Outstanding principal balance       17,500 20,000  
Carrying value of the loan       $ 16,850 $ 19,653  
Hercules Term Loan [Member] | Subsequent Event [Member]            
Debt Instrument [Line Items]            
Repayment of principal   $ 10,000        
Minimum [Member] | Hercules Term Loan [Member]            
Debt Instrument [Line Items]            
Percentage bearing variable rate       9.40%    
Prime Rate [Member] | Hercules Term Loan [Member]            
Debt Instrument [Line Items]            
Basis spread, addition       9.40%    
Basis spread, subtraction       7.25%