Income Taxes - Unrecognized tax benefits (Details) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Jul. 31, 2026 |
Jul. 31, 2025 |
Jul. 31, 2024 |
|
| Unrecognized Tax Benefits [Roll Forward] | |||
| Gross unrecognized tax benefits, beginning balance | $ 394 | $ 327 | $ 246 |
| Increases related to tax positions from prior fiscal years, including acquisitions | 17 | 11 | 36 |
| Decreases related to tax positions from prior fiscal years | 0 | (21) | (12) |
| Increases related to tax positions taken during current fiscal year | 42 | 91 | 95 |
| Settlements with tax authorities | (2) | (2) | (1) |
| Lapse of statute of limitations | (38) | (12) | (37) |
| Gross unrecognized tax benefits, ending balance | $ 413 | $ 394 | $ 327 |
| 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
|