XML 64 R51.htm IDEA: XBRL DOCUMENT v3.21.2
DEBT - Additional Information (Details)
3 Months Ended
Feb. 28, 2019
USD ($)
$ / shares
Oct. 31, 2021
USD ($)
Jul. 31, 2021
USD ($)
Debt Instrument [Line Items]      
Long-term debt   $ 372,123,000 $ 373,134,000
Debt instrument, interest rate, effective percentage   27.80%  
SPHG Holdings      
Debt Instrument [Line Items]      
Conversion to common stock $ 1,000    
Conversion ratio (shares) 0.4212655    
Initial conversion price (in usd per share) | $ / shares $ 2.37    
SPHG Holdings | 7.50% Convertible Senior Note due March 1, 2024      
Debt Instrument [Line Items]      
Debt instrument, stated interest rate 7.50%    
Principal amount of note $ 14,900,000 $ 14,940,000 14,940,000
Debt instrument amortization period   28 months  
Long-term debt   $ 9,729,000 $ 9,343,000