XML 111 R59.htm IDEA: XBRL DOCUMENT v3.20.2
DEBT - Summary of the Components of Debt (Details) - USD ($)
$ in Thousands
Jul. 31, 2020
Jul. 31, 2019
Debt Instrument [Line Items]    
Revolving credit facility $ 0 $ 6,000
Less: unamortized discounts and issuance costs (7,863) (8,396)
Total debt, net 379,049 387,669
Less: current portion of debt, net (5,527) (5,732)
Total long-term debt, net 373,522 381,937
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 371,972 375,125
Revolving Credit Facility    
Debt Instrument [Line Items]    
Revolving credit facility 0 6,000
MidCap Credit Facility    
Debt Instrument [Line Items]    
Revolving credit facility $ 0 $ 0
7.50% Convertible Senior Note    
Debt Instrument [Line Items]    
Debt instrument stated percentage 7.50%