Income Taxes - Schedule of Unrecognized Tax Benefits (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jul. 31, 2026 |
Jul. 31, 2025 |
Jul. 31, 2024 |
|
| Unrecognized Tax Benefits [Roll Forward] | |||
| Beginning balance | $ 25,226 | $ 45,725 | $ 57,445 |
| Increases related to current year tax positions | 0 | 0 | 2,955 |
| Prior year tax positions: | |||
| Increases recognized during the period | 224 | 126 | 11 |
| Decreases recognized during the period | (9,014) | (9,724) | (7,070) |
| Cash settlements during the period | (11,211) | (8,951) | (6,062) |
| Lapse of statute of limitations | (2,525) | (1,950) | (1,554) |
| Ending balance | $ 2,700 | $ 25,226 | $ 45,725 |
| X | ||||||||||
- Definition Prior Year Tax Positions Abstract 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 unrecognized tax benefits. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| 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
|