XML 78 R63.htm IDEA: XBRL DOCUMENT v3.21.2
DEBT - Summary of the Components of Debt (Details) - USD ($)
$ in Thousands
Jul. 31, 2021
Jul. 31, 2020
Debt Instrument [Line Items]    
Less: unamortized discounts and issuance costs $ (6,136) $ (7,863)
Total debt, net 373,134 379,049
Less: current portion of debt, net (5,602) (5,527)
Total long-term debt, net $ 367,532 373,522
7.50% Convertible Senior Note    
Debt Instrument [Line Items]    
Debt instrument stated percentage 7.50%  
Convertible Notes Payable    
Debt Instrument [Line Items]    
Principal amount of long term debt $ 14,940 14,940
Cerberus Credit Facility    
Debt Instrument [Line Items]    
Principal amount of long term debt 364,330 371,972
Revolving Credit Facility    
Debt Instrument [Line Items]    
Revolving credit facility 0 0
MidCap Credit Facility    
Debt Instrument [Line Items]    
Revolving credit facility $ 0 $ 0