XML 39 R28.htm IDEA: XBRL DOCUMENT v3.7.0.1
Debt Obligations - Narrative (Details) - USD ($)
1 Months Ended 6 Months Ended 39 Months Ended
Jun. 17, 2016
Dec. 31, 2014
May 31, 2014
Jun. 30, 2017
Jul. 01, 2020
Dec. 31, 2016
Debt Instrument [Line Items]            
Debt Instrument, Unamortized Discount       $ 3,493,000   $ 3,733,000
Period For Warrant Term       5 years    
Exercise price of warrants (in dollars per share)       $ 20.00    
Number of shares of stock warranted (shares)       1,901,918    
Document Period End Date       Jun. 30, 2017    
Working capital advance note payable, net of discount of $3,493 and $3,733 at June 30, 2017 and December 31, 2016, respectively       $ 3,507,000   $ 3,267,000
Term Loan | Loan And Security Agreement            
Debt Instrument [Line Items]            
Covenant compliance, deposit account, percent of account balances (percent) 50.00%          
Collateral account balance, covenant compliance amount $ 50,000,000.0          
Interest rate (percent) 7.00%          
Debt Instrument, Unamortized Discount   $ 600,000        
Period For Warrant Term   10 years        
Exercise price of warrants (in dollars per share)   $ 9.44        
Number of shares of stock warranted (shares)   63,559        
Borrowing limit under Term loan and Revolving credit facility   $ 20,000,000        
Final payment of existing term loans $ 1,000,000.0          
Termination fee $ 200,000.0          
Term Loan | Loan And Security Agreement | Prime Rate            
Debt Instrument [Line Items]            
Basis spread on variable rate (percent) 3.25% 5.25%        
Interest rate (percent)   8.75%        
Promissory note | Working Capital Advance            
Debt Instrument [Line Items]            
Debt Instrument, Unamortized Discount     $ 4,700,000      
Face amount of debt     $ 7,000,000      
Revolving Credit Facility | Loan And Security Agreement            
Debt Instrument [Line Items]            
Borrowing limit under Term loan and Revolving credit facility   $ 4,000,000        
Final payment of existing term loans $ 100,000.0          
Scenario, Forecast [Member] | Term Loan | Loan And Security Agreement            
Debt Instrument [Line Items]            
Final payment of existing term loans         $ 1,400,000.0  
Silicon Valley Bank [Member] | Term Loan | Loan And Security Agreement            
Debt Instrument [Line Items]            
Covenant compliance, deposit account, percent of account balances (percent) 85.00%          
Endo Ventures Supply Agreement            
Debt Instrument [Line Items]            
Initial term of supply agreement     8 years      
Endo Ventures Supply Agreement | Working Capital Advance            
Debt Instrument [Line Items]            
Initial term of supply agreement 8 years