INCOME TAXES - Schedule of Components of Total Unrecognized Tax Benefits (Details) - USD ($) $ in Thousands |
Jul. 31, 2026 |
Jul. 31, 2025 |
Jul. 31, 2024 |
Jul. 31, 2023 |
|---|---|---|---|---|
| Income Tax Disclosure [Abstract] | ||||
| Unrecognized tax benefits | $ 16,763 | $ 20,175 | $ 10,434 | $ 13,712 |
| Reduction to unrecognized tax benefits for deferred tax assets | (8,269) | (10,263) | ||
| Accrued interest and penalties | 3,441 | 3,776 | ||
| Total unrecognized tax benefits | 11,935 | 13,688 | ||
| Short-term, included in “Income and other taxes” | 1,590 | 1,513 | ||
| Long-term | $ 10,345 | $ 12,175 |