XML 64 R52.htm IDEA: XBRL DOCUMENT v3.22.0.1
DEBT - Component of Debt and Reconciliation (Details) - USD ($)
$ in Thousands
Jan. 31, 2022
Jul. 31, 2021
Line of Credit Facility [Line Items]    
Less: unamortized discounts and issuance costs $ (5,131) $ (6,136)
Total debt, net 371,139 373,134
Less: current portion of debt, net (360,996) (5,602)
Total long-term debt, net 10,143 367,532
7.50% Convertible Senior Note due March 1, 2024    
Line of Credit Facility [Line Items]    
Principal amount of long term debt 14,940 14,940
Cerberus Term Loan due December 15, 2022    
Line of Credit Facility [Line Items]    
Principal amount of long term debt 361,330 364,330
Cerberus Revolving Facility    
Line of Credit Facility [Line Items]    
Revolving credit facility 0 0
MidCap Credit Facility    
Line of Credit Facility [Line Items]    
Revolving credit facility $ 0 $ 0