XML 67 R55.htm IDEA: XBRL DOCUMENT v3.22.0.1
DEBT - Summary of Interest Expense (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jan. 31, 2022
Jan. 31, 2021
Jan. 31, 2022
Jan. 31, 2021
Interest Expense, Debt [Line Items]        
Debt instrument, interest expense $ 700 $ 600 $ 1,372 $ 1,178
SPHG Holdings | Interest expense related to contractual interest coupon        
Interest Expense, Debt [Line Items]        
Debt instrument, interest expense 286 287 572 573
SPHG Holdings | Interest expense related to accretion of the discount        
Interest Expense, Debt [Line Items]        
Debt instrument, interest expense $ 414 $ 313 $ 800 $ 605