Quarterly report pursuant to Section 13 or 15(d)

Borrowings - 2019 Term Loan (Details)

v3.20.2
Borrowings - 2019 Term Loan (Details) - USD ($)
Sep. 21, 2020
Apr. 28, 2020
Mar. 23, 2020
Sep. 30, 2020
Dec. 31, 2019
May 23, 2019
Debt Instrument [Line Items]            
Principal repayment obligation and other fees       $ 132,831,000 $ 144,955,000  
2019 Term Loan            
Debt Instrument [Line Items]            
Principal repayment obligation and other fees         $ 84,955,000  
2019 Term Loan | Term loan            
Debt Instrument [Line Items]            
Principal amount           $ 60,000,000.0
Deferred financing costs           2,200,000
Additional borrowing amount           $ 15,000,000.0
Debt interest rate (as a percentage)           12.00%
Paid-in-kind interest rate may add in per annum (as a percentage)           4.00%
Final payment fee (as a percentage)           20.00%
Debt required collateral amount           $ 30,000,000.0
Fourth Amendment of 2019 Term Loan            
Debt Instrument [Line Items]            
Principal repayment obligation and other fees       $ 43,331,000    
Term loan | 2019 Term Loan            
Debt Instrument [Line Items]            
Fair value adjustments of warrants     $ 300,000      
Term loan | Second Amendment of 2019 Term Loan            
Debt Instrument [Line Items]            
Principal amount     $ 75,000,000.0      
Debt interest rate (as a percentage)     16.00%      
Paid-in-kind interest rate may add in per annum (as a percentage)     8.00%      
Required principal payment     $ 3,000,000.0      
Debt required collateral amount     12,000,000.0      
Repayments of debt principal     $ 2,000,000.0      
Number of common stock issued for relief of debt final payment fee     11,019,298      
Increase in debt issuance discount     $ 900,000      
Term loan | Third Amendment of 2019 Term Loan            
Debt Instrument [Line Items]            
Required principal payment   $ 2,100,000        
Fair value adjustments of warrants   5,700,000        
Principal repayment obligation and other fees   $ 17,100,000        
Number of common stock to be issued related to debt amendment (in shares)   9,348,706        
Term loan | Fourth Amendment of 2019 Term Loan            
Debt Instrument [Line Items]            
Repayments of debt principal $ 12,000,000.0