Quarterly report pursuant to Section 13 or 15(d)

Stockholders' Equity (Details)

v3.20.2
Stockholders' Equity (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 6 Months Ended
Apr. 29, 2020
USD ($)
$ / shares
shares
Apr. 28, 2020
USD ($)
Mar. 23, 2020
USD ($)
$ / shares
shares
Feb. 11, 2020
USD ($)
$ / shares
shares
Mar. 31, 2018
shares
Jun. 30, 2020
USD ($)
shares
Dec. 31, 2019
USD ($)
Class of Stock [Line Items]              
Number of shares for purchase under warrant (in shares)     8,772,000        
Warrant term (in years)           5 years  
Fair value of warrant | $ $ 5,700            
Warrant liability | $ $ 2,800         $ 7,193 $ 0
Conversion ratio           1  
Immediately              
Class of Stock [Line Items]              
Number of shares for purchase under warrant (in shares)     3,000,000        
September 23, 2020              
Class of Stock [Line Items]              
Number of shares for purchase under warrant (in shares)     1,924,000        
March 23, 2021              
Class of Stock [Line Items]              
Number of shares for purchase under warrant (in shares)     1,924,000        
June 23, 2021              
Class of Stock [Line Items]              
Number of shares for purchase under warrant (in shares)     1,924,000        
Senior note | 2020 Unsecured Note              
Class of Stock [Line Items]              
Number of shares for purchase under warrant (in shares) 20,000,000.0            
Common stock purchase price (in dollars per share) | $ / shares $ 1.542            
Warrant fair value disclosure | $ $ 16,100            
Term loan | Amended 2019 Term Loan              
Class of Stock [Line Items]              
Number of shares for purchase under warrant (in shares) 4,700,000            
Common stock purchase price (in dollars per share) | $ / shares $ 1.542            
Warrant term (in years) 5 years            
Increase of warrant fair value | $   $ 2,900       $ 2,000  
At-the-Market Program              
Class of Stock [Line Items]              
Number of shares sold in transaction (in shares)           17,512,604  
Net proceeds from sale of stock | $           $ 22,900  
Sale of stock, remaining availability for sale amount | $           $ 365,700  
Common Stock              
Class of Stock [Line Items]              
Number of shares sold in transaction (in shares)       2,114,591      
Sale of stock, price per share (in dollars per share) | $ / shares       $ 6.36      
Net proceeds from sale of stock | $       $ 13,100      
Convertible Preferred Stock              
Class of Stock [Line Items]              
Number of shares sold in transaction (in shares)         6,100,000    
Original Warrant | Term loan | Amended 2019 Term Loan              
Class of Stock [Line Items]              
Number of shares for purchase under warrant (in shares)     1,500,000        
Common stock purchase price (in dollars per share) | $ / shares     $ 10.00        
Replacement Warrant              
Class of Stock [Line Items]              
Fair value of warrant | $     $ 3,600        
Warrant liability | $     $ 2,400        
Replacement Warrant | Term loan | Amended 2019 Term Loan              
Class of Stock [Line Items]              
Number of shares for purchase under warrant (in shares)     9,000,000.0        
Common stock purchase price (in dollars per share) | $ / shares     $ 1.00        
Decrease of common stock called by warrant (in shares)           200,000  
Increase of warrant fair value | $     $ 300