XML 65 R54.htm IDEA: XBRL DOCUMENT v3.22.1
DEBT - Summary of Interest Expense (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Apr. 30, 2022
Apr. 30, 2021
Apr. 30, 2022
Apr. 30, 2021
Interest Expense, Debt [Line Items]        
Debt instrument, interest expense $ 706 $ 600 $ 2,078 $ 1,503
SPHG Holdings | Interest expense related to contractual interest coupon        
Interest Expense, Debt [Line Items]        
Debt instrument, interest expense 277 287 849 573
SPHG Holdings | Interest expense related to accretion of the discount        
Interest Expense, Debt [Line Items]        
Debt instrument, interest expense $ 429 $ 313 $ 1,229 $ 930