Annual report pursuant to Section 13 and 15(d)

STOCKHOLDERS??? EQUITY (Details)

v3.20.4
STOCKHOLDERS’ EQUITY (Details)
$ / shares in Units, shares in Thousands, $ in Thousands
1 Months Ended 12 Months Ended
Dec. 02, 2020
USD ($)
shares
Oct. 29, 2020
USD ($)
Jul. 24, 2020
$ / shares
shares
Apr. 29, 2020
USD ($)
$ / shares
shares
Apr. 28, 2020
USD ($)
Mar. 23, 2020
USD ($)
$ / shares
shares
Feb. 11, 2020
USD ($)
$ / shares
Jun. 30, 2018
USD ($)
shares
Mar. 31, 2018
shares
Dec. 31, 2017
USD ($)
shares
Dec. 31, 2020
USD ($)
numberOfAmendment
shares
Dec. 31, 2019
USD ($)
Dec. 31, 2018
USD ($)
Class of Stock [Line Items]                          
Proceeds from common stock issuances                     $ 103,664 $ 0 $ 133,800
Fees and commissions                     $ 3,989 0 $ 4,090
Option to purchase shares granted, period               30 days          
Debt instrument, number of amendments | numberOfAmendment                     4    
Warrant liability                     $ 3,774 $ 0  
Unrealized gain (loss) on warrant   $ 1,700                 $ (1,400)    
Conversion ratio                     1    
2020 Unsecured Note | Senior Notes                          
Class of Stock [Line Items]                          
Number of shares for purchase under warrant (in shares) | shares       20,000                  
Fair value of warrant       $ 16,100                  
Third Amendment Of 2019 Term Loan | Loans Payable                          
Class of Stock [Line Items]                          
Decrease of common stock called by warrant (in shares) | shares                     2,400    
Unsecured Warrant | 2020 Unsecured Note | Senior Notes                          
Class of Stock [Line Items]                          
Number of shares for purchase under warrant (in shares) | shares       20,000                  
Common stock purchase price (in dollars per share) | $ / shares       $ 1.542                  
Warrant term (in years)                     5 years    
Fair value of warrant       $ 16,100                  
Original Warrant | Second Amendment Of 2019 Term Loan | Loans Payable                          
Class of Stock [Line Items]                          
Number of shares for purchase under warrant (in shares) | shares           1,500              
Common stock purchase price (in dollars per share) | $ / shares           $ 10.00              
Replacement Warrant                          
Class of Stock [Line Items]                          
Proceeds from common stock issuances $ 1,000                        
Number of shares for purchase under warrant (in shares) | shares           6,848              
Replacement Warrant | Loans Payable                          
Class of Stock [Line Items]                          
Number of shares for purchase under warrant (in shares) | shares 1,000                        
Replacement Warrant | Second Amendment Of 2019 Term Loan | Loans Payable                          
Class of Stock [Line Items]                          
Number of shares for purchase under warrant (in shares) | shares           9,000              
Common stock purchase price (in dollars per share) | $ / shares           $ 1.00              
Fair value of warrant           $ 3,600              
Fair value adjustments of warrants           300              
Warrant liability           $ 2,400              
Accrued and other liabilities                     $ 3,800    
Replacement Warrant | Third Amendment Of 2019 Term Loan | Loans Payable                          
Class of Stock [Line Items]                          
Warrant term (in years)                     5 years    
Replacement Warrant | Warrant Vesting, Tranche One                          
Class of Stock [Line Items]                          
Number of shares for purchase under warrant (in shares) | shares           3,000              
Replacement Warrant | Warrant Vesting, Tranche Two                          
Class of Stock [Line Items]                          
Number of shares for purchase under warrant (in shares) | shares           1,924              
Replacement Warrant | Warrant Vesting, Tranche Three                          
Class of Stock [Line Items]                          
Number of shares for purchase under warrant (in shares) | shares           1,924              
Third Amendment Warrant | Third Amendment Of 2019 Term Loan | Loans Payable                          
Class of Stock [Line Items]                          
Number of shares for purchase under warrant (in shares) | shares       4,700                  
Common stock purchase price (in dollars per share) | $ / shares       $ 1.542                  
Warrant term (in years)       5 years                  
Fair value of warrant       $ 5,700                  
Fair value adjustments of warrants         $ 2,900                
Warrant liability       $ 2,800                  
Accrued and other liabilities   $ 1,100                      
Common Stock                          
Class of Stock [Line Items]                          
Number of shares issued in transaction (in shares) | shares               12,000          
Proceeds from sale of common stock, net of fees and commissions               $ 115,200          
Fees and commissions               $ 3,600          
Option to purchase shares (up to) (in shares) | shares               1,800          
Convertible preferred stock                          
Class of Stock [Line Items]                          
Number of shares issued in transaction (in shares) | shares                 6,100        
At-the-market program                          
Class of Stock [Line Items]                          
Number of shares issued in transaction (in shares) | shares                     43,700    
Proceeds from sale of common stock, net of fees and commissions                     $ 53,800    
Sale of stock, remaining capacity for sale amount                     $ 333,800    
Equity Offering In Feb 2020 | Common Stock                          
Class of Stock [Line Items]                          
Number of shares issued in transaction (in shares) | shares                     2,100    
Proceeds from sale of common stock, net of fees and commissions             $ 13,100            
Sale of stock, offering price (in USD per share) | $ / shares             $ 6.36            
Over-allotment option | Common Stock                          
Class of Stock [Line Items]                          
Number of shares issued in transaction (in shares) | shares                   1,500      
Proceeds from sale of common stock, net of fees and commissions                   $ 14,500      
Fees and commissions                   $ 500      
Equity Offering In July 2020 | Common Stock                          
Class of Stock [Line Items]                          
Number of shares issued in transaction (in shares) | shares     35,000                    
Sale of stock, offering price (in USD per share) | $ / shares     $ 1.00                    
Proceeds from common stock issuances             $ 32,800