Quarterly report pursuant to Section 13 or 15(d)

Stockholders' Equity (Details)

v3.21.2
Stockholders' Equity (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 3 Months Ended 6 Months Ended
Mar. 31, 2018
shares
Mar. 31, 2021
USD ($)
shares
Jun. 30, 2021
USD ($)
shares
Jun. 30, 2020
USD ($)
Apr. 29, 2020
$ / shares
shares
Class of Stock [Line Items]          
Proceeds from warrant exercises | $     $ 8,177 $ 0  
Conversion ratio     1    
Convertible Preferred Stock          
Class of Stock [Line Items]          
Number of shares issued in transaction (in shares) | shares 6,100,000        
Common Stock Purchase Warrants, One | Term loan | 2019 Term Loan, due March 2022          
Class of Stock [Line Items]          
Number of shares for purchase under warrant (in shares) | shares   6,000,000.0      
Proceeds from warrant exercises | $   $ 8,200      
2020 Warrant | Senior note | 2020 Unsecured Note          
Class of Stock [Line Items]          
Number of shares for purchase under warrant (in shares) | shares         20,000,000.0
Common stock purchase price (in dollars per share) | $ / shares         $ 1.542
At-the-Market Program          
Class of Stock [Line Items]          
Number of shares issued in transaction (in shares) | shares     63,800,000    
Net proceeds from sale of stock | $     $ 182,400    
Sale of stock, gross remaining capacity for sale (up to) | $     $ 345,800