XML 111 R58.htm IDEA: XBRL DOCUMENT v3.20.4
Long Term Debt and Convertible Notes - Convertible Notes Narrative (Details) - USD ($)
1 Months Ended 12 Months Ended
Oct. 05, 2020
Jun. 01, 2017
Apr. 30, 2020
Apr. 30, 2019
Jan. 31, 2019
May 31, 2017
Dec. 31, 2020
Dec. 31, 2019
Dec. 31, 2018
Dec. 31, 2017
Oct. 04, 2020
Jul. 01, 2018
Debt Instrument [Line Items]                        
Proceeds from convertible debt             $ 32,950,000 $ 6,000,000 $ 12,000,000      
Conversion of convertible note into Series G-1 convertible preferred stock             0 25,133,000 0      
Debt issuance costs             162,000 0 0      
Embedded derivative liability     $ 3,900,000                  
Accrued interest             869,000          
Amortization of debt discount and debt issuance costs             968,000 $ 28,000 36,000      
2020 Notes Derivative Liability                        
Debt Instrument [Line Items]                        
Increase (decrease) in fair value of derivative             3,900,000          
2020 Notes Agreement                        
Debt Instrument [Line Items]                        
Convertible debt $ 33,000,000.0                      
Accrued interest 800,000                      
Convertible Debt | Second Lien Loan And Security Agreement                        
Debt Instrument [Line Items]                        
Maximum borrowing capacity           $ 30,000,000.0            
Stated interest rate                       8.96%
Prepayment conversion, amount divided by fully-diluted shares upon conversion           230,000,000            
Proceeds from convertible debt         $ 6,000,000.0       12,000,000.0 $ 6,000,000.0    
Conversion of convertible note into Series G-1 convertible preferred stock       $ 25,100,000                
Gain on extinguishment of debt, less than       $ 100,000                
Debt issuance costs           $ 100,000            
Interest expense                 $ 800,000      
Effective interest rate                 7.47%      
Convertible Debt | Second Lien Loan And Security Agreement | Right Of First Negotiation Period                        
Debt Instrument [Line Items]                        
Exercise period   5 days       10 days            
Convertible Debt | Second Lien Loan And Security Agreement | Exclusive Negotiation Period                        
Debt Instrument [Line Items]                        
Exercise period   45 days       75 days            
Convertible Debt | Second Lien Loan And Security Agreement | Right Of First Negotiation For Subsequent Notices                        
Debt Instrument [Line Items]                        
Exercise period           10 days            
Convertible Debt | Second Lien Loan And Security Agreement | Exclusive Negotiation Period For Subsequent Notices                        
Debt Instrument [Line Items]                        
Exercise period           75 days            
Convertible Debt | Second Lien Loan And Security Agreement | Series G-1                        
Debt Instrument [Line Items]                        
Shares issued upon conversion of debt (in shares)       1,903,935                
Conversion price per share (in dollars per share)       $ 13.20                
Convertible Debt | 2020 Notes Agreement                        
Debt Instrument [Line Items]                        
Maximum borrowing capacity     66,000,000.0                  
Debt issuance costs     100,000                  
Interest expense             1,600,000          
Effective interest rate                     12.33%  
Remaining borrowing capacity             33,000,000.0          
Threshold stock proceeds for conversion     $ 30,000,000.0                  
Accrued interest $ 800,000                      
Contractual interest expense             800,000          
Amortization of debt discount and debt issuance costs             $ 800,000          
Convertible Debt | 2020 Notes Agreement | Prime Rate                        
Debt Instrument [Line Items]                        
Basis spread on variable rate     2.00%                  
Convertible Debt | 2020 Notes Agreement | Common Stock                        
Debt Instrument [Line Items]                        
Shares issued upon conversion of debt (in shares) 2,561,484                      
Conversion price per share (in dollars per share) $ 13.20                      
Convertible Debt | 2020 Notes Agreement | Debt Instrument, Convertible, Conversion Feature, Scenario Two                        
Debt Instrument [Line Items]                        
Conversion price per share (in dollars per share)     $ 13.20                  
Convertible Debt | 2020 Notes Agreement | Debt Instrument, Convertible, Conversion Feature, Scenario Two | Series G-1                        
Debt Instrument [Line Items]                        
Conversion price per share (in dollars per share)     $ 13.20                  
Convertible Debt | 2020 Notes Agreement | Debt Instrument, Convertible, Conversion Feature, Non-Qualified Financing Scenario                        
Debt Instrument [Line Items]                        
Threshold stock proceeds from non-significant holders for conversion     $ 10,000,000.0                  
Threshold of debt for Significant Holder     $ 20,000,000                  
Convertible Debt | 2020 Notes Agreement | Debt Instrument, Conversion Feature, Non-Qualified Financing, Scenario One                        
Debt Instrument [Line Items]                        
Percentage of stock price     75.00%                  
Convertible Debt | 2020 Notes Agreement | Debt Instrument, Convertible, Conversion Feature, Non-Qualified Financing, Scenario Two                        
Debt Instrument [Line Items]                        
Percentage of stock price     75.00%                  
Convertible Debt | 2020 Notes Agreement | Debt Instrument, Convertible, Conversion Feature, Non-Qualified Financing, Scenario Two | Series G-1                        
Debt Instrument [Line Items]                        
Conversion price per share (in dollars per share)     $ 13.20                  
Convertible Debt | 2020 Notes Agreement | Debt Instrument, Convertible, Conversion Feature, Qualified IPO Scenario                        
Debt Instrument [Line Items]                        
Stock proceeds threshold for conversion     $ 30,000,000.0                  
Convertible Debt | 2020 Notes Agreement | Debt Instrument, Convertible, Conversion Feature, Qualified IPO, Scenario Two                        
Debt Instrument [Line Items]                        
Conversion price per share (in dollars per share)     $ 13.20                  
Convertible Debt | 2020 Notes Agreement | Debt Instrument, Convertible, Conversion Feature, Non-Qualified IPO, Scenario One                        
Debt Instrument [Line Items]                        
Percentage of stock price     75.00%                  
Convertible Debt | 2020 Notes Agreement | Debt Instrument, Convertible, Conversion Feature, Non-Qualified IPO, Scenario Two                        
Debt Instrument [Line Items]                        
Percentage of stock price     75.00%                  
Convertible Debt | 2020 Notes Agreement | Debt Instrument, Convertible, Conversion Feature, Non-Qualified IPO, Scenario Two | Series G-1                        
Debt Instrument [Line Items]                        
Conversion price per share (in dollars per share)     $ 13.20                  
Convertible Debt | 2020 Notes Agreement | Debt Instrument, Convertible, Conversion Feature, Default Scenario                        
Debt Instrument [Line Items]                        
Percentage of stock price     75.00%                  
Convertible Debt | 2020 Notes Agreement | Debt Covenant, Eighteen Months After Initial Closing | Debt Instrument, Convertible, Conversion Feature, Scenario One                        
Debt Instrument [Line Items]                        
Percentage of stock price     85.00%                  
Convertible Debt | 2020 Notes Agreement | Debt Covenant, Eighteen Months After Initial Closing | Debt Instrument, Convertible, Conversion Feature, Qualified IPO, Scenario One                        
Debt Instrument [Line Items]                        
Percentage of stock price     85.00%                  
Convertible Debt | 2020 Notes Agreement | Debt Covenant, Eighteen Months After Initial Closing, Thereafter | Debt Instrument, Convertible, Conversion Feature, Scenario One                        
Debt Instrument [Line Items]                        
Percentage of stock price     80.00%                  
Convertible Debt | 2020 Notes Agreement | Debt Covenant, Eighteen Months After Initial Closing, Thereafter | Debt Instrument, Convertible, Conversion Feature, Qualified IPO, Scenario Two                        
Debt Instrument [Line Items]                        
Percentage of stock price     80.00%                  
Convertible Debt | 2020 Notes Agreement, Tranche One                        
Debt Instrument [Line Items]                        
Proceeds from convertible debt     $ 33,000,000.0                  
Convertible Debt | 2020 Notes Agreement, Tranche Two | Maximum                        
Debt Instrument [Line Items]                        
Remaining borrowing capacity     33,000,000.0                  
Convertible Debt | 2020 Notes Agreement Over Allotment Option                        
Debt Instrument [Line Items]                        
Maximum draw amount     $ 5,000,000.0