LEASES -Schedule of Supplemental Balance Sheet Information (Details) - USD ($) $ in Thousands |
Jul. 31, 2026 |
Jul. 31, 2025 |
|---|---|---|
| Operating leases: | ||
| Operating lease right-of-use assets | $ 39,862 | $ 41,755 |
| Operating Lease, Right-of-Use Asset, Statement of Financial Position [Extensible Enumeration] | Property, Plant, and Equipment and Finance and Operating Lease Right-of-Use Asset, after Accumulated Depreciation and Amortization | Property, Plant, and Equipment and Finance and Operating Lease Right-of-Use Asset, after Accumulated Depreciation and Amortization |
| Other current liabilities | $ 10,588 | $ 12,108 |
| Operating Lease, Liability, Current, Statement of Financial Position [Extensible List] | Other | Other |
| Other long-term liabilities | $ 30,530 | $ 30,081 |
| Operating Lease, Liability, Noncurrent, Statement of Financial Position [Extensible List] | Other liabilities | Other liabilities |
| Total operating lease liabilities | $ 41,118 | $ 42,189 |
| Finance leases: | ||
| Finance lease right-of-use assets | $ 408 | $ 4,026 |
| Finance Lease, Right-of-Use Asset, Statement of Financial Position [Extensible Enumeration] | Property, Plant, and Equipment and Finance and Operating Lease Right-of-Use Asset, after Accumulated Depreciation and Amortization | Property, Plant, and Equipment and Finance and Operating Lease Right-of-Use Asset, after Accumulated Depreciation and Amortization |
| Other current liabilities | $ 855 | $ 968 |
| Finance Lease, Liability, Current, Statement of Financial Position [Extensible List] | Other | Other |
| Other long-term liabilities | $ 43 | $ 898 |
| Finance Lease, Liability, Noncurrent, Statement of Financial Position [Extensible List] | Other liabilities | Other liabilities |
| Total finance lease liabilities | $ 898 | $ 1,866 |
| Weighted-average remaining lease term | ||
| Operating leases (in years) | 10 years 4 months 24 days | 8 years 9 months 18 days |
| Financing leases (in years) | 10 months 24 days | 1 year 9 months 18 days |
| Weighted-average discount rate | ||
| Operating leases (as percent) | 5.00% | 4.80% |
| Finance leases (as percent) | 9.70% | 9.70% |