INCOME TAXES - Schedule of Changes in Unrecognized Tax Benefit (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jul. 31, 2026 |
Jul. 31, 2025 |
Jul. 31, 2024 |
|
| Unrecognized Tax Benefits [Roll Forward] | |||
| Beginning balance | $ 20,175 | $ 10,434 | $ 13,712 |
| Tax positions related to prior years: Additions | 480 | 1,201 | 1,692 |
| Tax positions related to prior years: Reductions | (2,077) | (648) | (1,977) |
| Tax positions related to current year: Additions | 137 | 10,598 | 386 |
| Settlements | (733) | 0 | (2,133) |
| Lapses in statute of limitations | (1,219) | (1,410) | (1,246) |
| Ending balance | $ 16,763 | $ 20,175 | $ 10,434 |
| X | ||||||||||
- Definition Gross amount of unrecognized tax benefits excluding interest and penalties pertaining to uncertain tax positions. No definition available.
|
| X | ||||||||||
- Definition A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period. No definition available.
|
| X | ||||||||||
- Definition Amount of decrease in unrecognized tax benefits resulting from tax positions taken in prior period tax returns. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of decrease in unrecognized tax benefits resulting from settlements with taxing authorities. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of increase in unrecognized tax benefits resulting from tax positions that have been or will be taken in current period tax return. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of increase in unrecognized tax benefits resulting from tax positions taken in prior period tax returns. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of decrease in unrecognized tax benefits resulting from lapses of applicable statutes of limitations. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|