INCOME TAXES - Additional Information (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jul. 31, 2024 |
Jul. 31, 2023 |
Jul. 31, 2022 |
|
| Income Tax [Line Items] | |||
| Valuation allowance | $ 11,146 | ||
| Disallowed interest carryforwards, valuation allowance | 992 | ||
| Unrecognized tax benefits that, if recognized, would affect the company's income tax rate | 8,614 | $ 11,106 | $ 14,461 |
| Total amount of interest and penalties expense recognized | 111 | $ 523 | $ 134 |
| State and Local Jurisdiction | |||
| Income Tax [Line Items] | |||
| Tax credit carry forward | 285 | ||
| Gross state tax net operating loss carry forwards | 739 | ||
| Net operating loss carry forwards, portion not expected to be realized | 323 | ||
| Net disallowed interest carryforwards | 992 | ||
| Foreign Tax Authority | |||
| Income Tax [Line Items] | |||
| Gross state tax net operating loss carry forwards | 16,303 | ||
| Net disallowed interest carryforwards | $ 12,779 | ||