EMPLOYEE BENEFIT PLANS (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jul. 31, 2024 |
Jul. 31, 2023 |
Jul. 31, 2022 |
|
| Postemployment Benefits [Abstract] | |||
| Employer match and administrative fees for 401(k) plan | $ 4,840 | $ 5,179 | $ 4,848 |
| Employee deferrals and returns of investments | $ 130,218 | $ 110,043 | |