XML 49 R37.htm IDEA: XBRL DOCUMENT v3.8.0.1
Notes Payable - Term Loan Agreement - Additional Information (Detail)
$ / shares in Units, $ in Thousands
1 Months Ended 3 Months Ended
Mar. 31, 2018
USD ($)
Dec. 31, 2016
USD ($)
Warrant
$ / shares
shares
Mar. 31, 2018
USD ($)
Mar. 31, 2017
USD ($)
Dec. 31, 2017
USD ($)
Debt Instrument          
Repayments of note payable     $ 352 $ 299  
Common Stock [Member]          
Debt Instrument          
Number of warrants | Warrant   4      
Number of shares issuable for warrants outstanding (in shares) | shares   528,958      
Exercise price of warrants | $ / shares   $ 8.06      
Fair market value of warrants   $ 1,800      
Loan and Security Agreement [Member]          
Debt Instrument          
Repayments of note payable   27,500      
Promissory Note [Member]          
Debt Instrument          
Repayments of note payable   500      
CRG [Member] | Term Loan Agreement [Member]          
Debt Instrument          
Debt instrument, required payment in December 31, 2020     5,800    
Debt instrument, required payment in December 31, 2021     23,000    
Debt instrument, required payment in December 31, 2022     17,200    
Proceeds from issuance of long-term debt   40,000      
Line of credit, additional borrowing capacity $ 10,000 $ 10,000 10,000    
Debt term (in years)   6 years      
Debt instrument, term of interest-only payments (in years)   3 years      
Debt instrument, extended term interest only payments (in years)   4 years      
Final fee as a percentage of the principal outstanding (as a percent)   8.00%      
Debt instrument, prepayment fee term (in years)   5 years      
Debt instrument covenant compliance revenue targeted for fiscal year $ 7,000   $ 7,000    
Additional interest rate, event of default (as a percent) 4.00% 4.00% 4.00%    
Derivative liability $ 2,100   $ 2,100   $ 2,200
Proceeds from issuance of note payable, net   $ 39,200      
Portion of proceeds used for debt repayment   $ 28,000      
CRG [Member] | Term Loan Agreement [Member] | Prior to Approval Milestone [Member]          
Debt Instrument          
Annual fixed rate (as a percent)   12.50%      
Deferred interest rate (as a percent)   4.00%      
CRG [Member] | Term Loan Agreement [Member] | Following Approval Milestone [Member]          
Debt Instrument          
Annual fixed rate (as a percent)   11.50%      
Deferred interest rate (as a percent)   3.50%