INCOME TAXES - Additional Information (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jul. 31, 2026 |
Jul. 31, 2025 |
Jul. 31, 2024 |
|
| Income Tax [Line Items] | |||
| Valuation allowance | $ 11,664 | ||
| Disallowed interest carryforwards, valuation allowance | 2,330 | ||
| Unrecognized tax benefits that, if recognized, would affect the company's income tax rate | 6,955 | $ 8,027 | $ 8,614 |
| Total amount of interest and penalties expense recognized | (120) | $ 1,552 | $ 111 |
| Foreign Tax Authority | |||
| Income Tax [Line Items] | |||
| Gross state tax net operating loss carry forwards | 13,528 | ||
| Net disallowed interest carryforwards | 20,526 | ||
| Income Tax Jurisdiction, Domestic State and Local | |||
| Income Tax [Line Items] | |||
| Gross state tax net operating loss carry forwards | 1,753 | ||
| Valuation allowance | 722 | ||
| Net operating loss carry forwards, portion not expected to be realized | 763 | ||
| Net disallowed interest carryforwards | $ 2,330 | ||