XML 62 R49.htm IDEA: XBRL DOCUMENT v3.21.1
DEBT - Summary of Interest Expense (Detail) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Apr. 30, 2021
Apr. 30, 2020
Apr. 30, 2021
Apr. 30, 2020
Interest Expense, Debt [Line Items]        
Debt instrument, interest expense $ 602 $ 690 $ 1,780 $ 2,080
SPHG Holdings | Interest expense related to contractual interest coupon        
Interest Expense, Debt [Line Items]        
Debt instrument, interest expense 277 280 850 840
SPHG Holdings | Interest expense related to accretion of the discount        
Interest Expense, Debt [Line Items]        
Debt instrument, interest expense $ 325 $ 410 $ 930 $ 1,240