XML 126 R63.htm IDEA: XBRL DOCUMENT v3.20.1
Debt (Details) - USD ($)
12 Months Ended
Mar. 11, 2020
Jul. 01, 2019
Jul. 25, 2017
Dec. 31, 2019
Dec. 31, 2018
Dec. 31, 2020
Mar. 10, 2020
Line Of Credit Facility [Line Items]              
Credit and security agreement entered date     Jul. 25, 2017        
Amortization of debt issuance costs       $ 400,000 $ 200,000    
Additional interest (as a percent)     5.00%        
Restated Term Loan Credit Agreement              
Line Of Credit Facility [Line Items]              
Credit and security agreement entered date   Jul. 01, 2019          
Line of credit facility, remaining borrowing capacity   $ 35,000,000          
Debt maturity date   Jul. 01, 2024          
Repayment of outstanding balance related to term loans   $ 35,000,000          
Loan amount outstanding       40,000,000      
Unamortized debt issuance costs       1,800,000      
Unamortized debt issuance costs on restated term loan, current portion       0      
Restated Term Loan Credit Agreement | London Interbank Offered Rate (LIBOR)              
Line Of Credit Facility [Line Items]              
Spread on variable rate basis (as a percent)   7.50%          
Restated Term Loan Credit Agreement | Scenario, Forecast              
Line Of Credit Facility [Line Items]              
Line of credit facility, remaining borrowing capacity           $ 10,000,000  
Additional Term Loan              
Line Of Credit Facility [Line Items]              
Line of credit facility, remaining borrowing capacity   $ 5,000,000          
Minimum revenue required to satisfy additional term loan facility   $ 100,000,000          
Additional Term Loan | Scenario, Forecast              
Line Of Credit Facility [Line Items]              
Line of credit facility, remaining borrowing capacity           $ 15,000,000  
Revolving Credit Agreement              
Line Of Credit Facility [Line Items]              
Debt maturity date   Jul. 01, 2024          
Loan amount outstanding       6,500,000      
Borrowing base of accounts receivable (as a percent)   85.00%          
Borrowing base of finished goods inventory (as a percent)   40.00%          
Revolving Credit Agreement | Maximum              
Line Of Credit Facility [Line Items]              
Loan amount outstanding   $ 10,000,000          
Borrowing base availability from finished goods inventory (as a percent)   20.00%          
Revolving Credit Agreement | Other Long-Term Assets              
Line Of Credit Facility [Line Items]              
Unamortized debt issuance costs       $ 100,000      
Revolving Credit Agreement | London Interbank Offered Rate (LIBOR)              
Line Of Credit Facility [Line Items]              
Spread on variable rate basis (as a percent)   4.50%          
Restated Revolving Loan              
Line Of Credit Facility [Line Items]              
Loan amount outstanding   $ 4,300,000          
Deerfield Facility Agreement | Subsequent Event              
Line Of Credit Facility [Line Items]              
Debt instrument principal $ 60,000,000            
Debt instrument interest rate 4.00%            
Deerfield Facility Agreement | Unsecured and Subordinated Convertible Notes              
Line Of Credit Facility [Line Items]              
Debt instrument, call feature       Deerfield has the option to demand repayment of all outstanding principal, and any unpaid interest accrued thereon, in connection with a Major Transaction (as defined in the Convertible Note), which shall include, among others, any acquisition or other change of control of the Company; the sale or transfer of assets of the Company equal to more than 50% of the Enterprise Value (as defined in the Convertible Note) of the Company; a liquidation, bankruptcy or other dissolution of the Company; or if at any time shares of the Company’s common stock are not listed on an Eligible Market (as defined in the Convertible Note). The Convertible Note is subject to specified events of default, the occurrence of which would entitle Deerfield to immediately demand repayment of all outstanding principal and accrued interest on the Convertible Note. Such events of default include, among others, failure to make any payment under the Convertible Note when due, failure to observe or perform any covenant under the Deerfield Facility Agreement or the other transaction documents related thereto (subject to a standard cure period), the failure of the Company to be able to pay debts as they come due, the commencement of bankruptcy or insolvency proceedings against the Company, a material judgement levied against the Company and a material default by the Company under the Convertible Note.      
Amended and restated credit and security agreement date       Jul. 01, 2019      
Deerfield Facility Agreement | Unsecured and Subordinated Convertible Notes | Subsequent Event              
Line Of Credit Facility [Line Items]              
Credit and security agreement entered date Mar. 11, 2020            
Debt instrument principal $ 60,000,000            
Debt instrument interest rate 4.00%            
Convertible note issued $ 60,000,000            
Debt instrument conversion price $ 4.10            
Debt instrument premium percentage 35.00%            
Closing stock price per share             $ 3.04
Minimum percentage of number of shares of common stock owned by conversion of debt instrument 4.985%            
Minimum percentage of change in ownership percentage entitling lender to demand repayment of all outstanding debt 50.00%