v3.22.2.2
CONVERTIBLE SENIOR NOTES, TERM LOAN AND CAPPED CALLS - Term Loan and Warrants (Details) - USD ($)
$ / shares in Units, shares in Millions
3 Months Ended 6 Months Ended
Aug. 10, 2022
Sep. 30, 2022
Sep. 30, 2021
Sep. 30, 2022
Sep. 30, 2021
Aug. 11, 2022
Mar. 31, 2022
Feb. 28, 2019
Debt Instrument [Line Items]                
Shares repurchase   $ 60,214,000            
Amortization of debt discount and issuance costs       $ 2,000,000 $ 8,855,000      
Fair value of the warrants at issuance   4,621,000   4,621,000        
Common Stock                
Debt Instrument [Line Items]                
Shares repurchase   11,000            
Term Loan | Loans Payable                
Debt Instrument [Line Items]                
Debt instrument, face value $ 250,000,000 250,000,000   250,000,000        
Unamortized debt discount and issuance costs 5,600,000 19,951,000   19,951,000        
Debt discount and issuance costs paid in common stock $ 2,800,000              
Debt instrument, effective interest rate 11.00%              
Interest expense   3,400,000            
Amortization of debt discount and issuance costs   400,000            
Term Loan | Common Stock | Loans Payable                
Debt Instrument [Line Items]                
Shares repurchase $ 60,000,000              
Term Loan | SOFR | Loans Payable                
Debt Instrument [Line Items]                
Debt instrument, basis spread on variable floor rate 1.00%              
Debt instrument, credit spread adjustment 0.10%              
Debt instrument, basis spread on variable rate 6.50%              
Credit Agreement | Loans Payable                
Debt Instrument [Line Items]                
Unamortized debt discount and issuance costs $ 20,000,000              
Warrant of shares (in shares) 3.1              
Expected term 5 years              
Exercise price of warrants (in dollars per share) $ 7.15              
Fair value of the warrants at issuance $ 5,900,000 4,600,000   4,600,000        
Credit Agreement | Common Stock | Loans Payable                
Debt Instrument [Line Items]                
Percentage of premium over closing price 27.50%              
Convertible Senior Notes 2024 | Convertible Debt                
Debt Instrument [Line Items]                
Debt instrument, face value $ 403,800,000 90,165,000   90,165,000     $ 500,000,000 $ 287,500,000
Unamortized debt discount and issuance costs   568,000   568,000     $ 52,548,000  
Debt instrument, effective interest rate           1.20%    
Interest expense   6,052,000 $ 4,916,000 7,508,000 9,761,000      
Amortization of debt discount and issuance costs   1,169,000 $ 4,463,000 2,000,000 $ 8,855,000      
2028 Notes                
Debt Instrument [Line Items]                
Debt instrument, effective interest rate           6.10%    
2028 Notes | Convertible Debt                
Debt Instrument [Line Items]                
Debt instrument, face value $ 201,900,000 201,914,000   201,914,000   $ 201,900,000    
Unamortized debt discount and issuance costs   4,829,000   4,829,000        
Interest expense   3,837,000   3,837,000        
Amortization of debt discount and issuance costs   $ 433,000   $ 433,000