XML 59 R49.htm IDEA: XBRL DOCUMENT v3.19.1
Debt - Additional Information (Details)
1 Months Ended 3 Months Ended
Oct. 23, 2018
USD ($)
Oct. 31, 2018
USD ($)
May 31, 2018
USD ($)
Dec. 31, 2015
USD ($)
Tranche
Jun. 30, 2015
Nov. 30, 2012
USD ($)
shares
Mar. 31, 2019
USD ($)
Aug. 31, 2016
USD ($)
Pharmakon Loan Agreement                
Debt Instrument [Line Items]                
Maximum borrowing capacity       $ 55,000,000        
Number of tranches for loans | Tranche       2        
Loss in connection with early extinguishment of debt $ 3,000,000              
Prepayment premium fee 1,000,000              
Additional consideration for prepayment of debt 1,500,000              
Repayment of debt   $ 35,800,000            
Pharmakon Loan Agreement | Silicon Valley Bank                
Debt Instrument [Line Items]                
Repayment of debt       $ 4,900,000        
Pharmakon Loan Agreement | Tranche A Loans                
Debt Instrument [Line Items]                
Maximum borrowing capacity       $ 30,000,000        
Debt instrument, fixed interest rate       9.50%        
Debt instrument, periodic payment             quarterly  
Debt instrument, interest due and payable       50.00%        
Repayment of debt 30,000,000              
Payment of accrued interest on debt $ 3,300,000              
Pharmakon Loan Agreement | Tranche B Loans                
Debt Instrument [Line Items]                
Maximum borrowing capacity       $ 25,000,000        
SVB Loan Agreement                
Debt Instrument [Line Items]                
Maximum borrowing capacity       $ 15,000,000        
Credit facility expiration date       Dec. 04, 2018        
Borrowing capacity description             The Company may borrow up to 80% of its eligible accounts receivable, up to the maximum of $15.0 million  
SVB Loan Agreement | Maximum                
Debt Instrument [Line Items]                
Percentage of eligible accounts receivable for borrowings       80.00%        
SVB Loan Agreement | Prime Rate                
Debt Instrument [Line Items]                
Debt instrument interest rate spread       0.25%        
SVB Loan Agreement | Standby Letters of Credit                
Debt Instrument [Line Items]                
Line of credit               $ 3,100,000
Third Amended and Restated SVB Loan Agreement | Standby Letters of Credit                
Debt Instrument [Line Items]                
Maximum borrowing capacity   11,000,000            
Proceeds from line of credit   6,900,000            
Third Amended and Restated SVB Loan Agreement | SVB Term Loan                
Debt Instrument [Line Items]                
Maximum borrowing capacity   $ 35,000,000            
Last interest only payment date   Oct. 31, 2020            
Number of monthly payments of principal and interest   36 months            
Debt instrument, interest rate terms             Interest charged on the SVB Term Loan will be the greater of (a) a floating rate based on the “Prime Rate” published by The Wall Street Journal minus 0.75%, or (b) 4.25%.  
Third Amended and Restated SVB Loan Agreement | SVB Term Loan | Minimum                
Debt Instrument [Line Items]                
Debt instrument, interest rate   4.25%            
Third Amended and Restated SVB Loan Agreement | SVB Term Loan | Prime Rate                
Debt Instrument [Line Items]                
Basis spread deduction on variable rate   0.75%            
Third Amended and Restated SVB Loan Agreement | Revolving Credit Facility                
Debt Instrument [Line Items]                
Maximum borrowing capacity   $ 25,000,000            
Line of credit             $ 0  
Debt instrument, interest rate terms             Any principal amount outstanding under the Third Amended and Restated SVB Loan Agreement revolving credit line shall bear interest at an amount that is the greater of (a) a floating rate per annum equal to the rate published by The Wall Street Journal as the “Prime Rate” or (b) 5.00%.  
Third Amended and Restated SVB Loan Agreement | Revolving Credit Facility | Maximum                
Debt Instrument [Line Items]                
Percentage of eligible accounts receivable for borrowings   75.00%            
Third Amended and Restated SVB Loan Agreement | Revolving Credit Facility | Minimum                
Debt Instrument [Line Items]                
Debt instrument, interest rate   5.00%            
CHCF Note                
Debt Instrument [Line Items]                
Repayment of debt     $ 1,500,000          
Payment of accrued interest on debt     $ 200,000          
Proceeds from long-term debt, net of issuance costs           $ 1,500,000    
Debt instrument accrues simple interest rate           2.00%    
Debt instrument maturity date         May 31, 2018 Nov. 30, 2016    
CHCF Note | Series D Convertible Preferred Stock                
Debt Instrument [Line Items]                
Warrants issued to purchase shares | shares           22,807