INCOME TAXES - Schedule of Differences between Income Tax Expense at Federal Statutory Rate and Actual Income Taxes (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jul. 31, 2026 |
Jul. 31, 2025 |
Jul. 31, 2024 |
|
| Income Tax Disclosure [Abstract] | |||
| Provision at federal statutory rate | $ 50,131 | $ 62,200 | $ 73,257 |
| Differences between U.S. Federal statutory and foreign tax rates | (38,152) | 3,821 | |
| Foreign currency remeasurement (gains) losses | 21,522 | (7,621) | |
| U.S. state and local income taxes, net of federal benefit | 8,346 | 7,779 | 4,840 |
| Nondeductible compensation | 4,133 | 3,976 | |
| Effect of foreign tax law change | 0 | (15,314) | 0 |
| Contingent liability accrual and settlement | 0 | (7,456) | |
| Global Intangible Low-Taxed Income | 53 | 0 | 12,068 |
| Other | (2,568) | 559 | |
| Income taxes | $ 64,067 | $ 39,600 | $ 83,444 |
| Tax Jurisdiction of Domicile [Extensible Enumeration] | United States | United States | |
| X | ||||||||||
- Definition Effective Income Tax Rate Reconciliation, Contingent Liability Accrual and Settlement No definition available.
|
| X | ||||||||||
- Definition Amount of reported income tax expense from difference to expected income tax expense (benefit) computed by applying domestic federal statutory income tax rate to pretax income (loss) from continuing operation, attributable to net controlled foreign corporation (CFC) tested income (NCTI) (formerly referred to as global intangible low-taxed income (GILTI)). Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations, attributable to increase (decrease) in the income tax rates. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to foreign income tax expense (benefit). Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition The amount of income tax expense or benefit for the period computed by applying the domestic federal statutory tax rates to pretax income from continuing operations. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to nondeductible expenses. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to other adjustments. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to state and local income tax expense (benefit). Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to income (loss) exempt from income taxes. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Indicates tax jurisdiction of domicile. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|