Income Taxes (Details) - USD ($) $ in Millions |
3 Months Ended | 9 Months Ended | |||
|---|---|---|---|---|---|
Apr. 30, 2026 |
Apr. 30, 2025 |
Apr. 30, 2026 |
Apr. 30, 2025 |
Jul. 31, 2025 |
|
| Income Tax Disclosure [Abstract] | |||||
| Tax shortfalls (benefits) on share-based compensation | $ 11 | $ 18 | $ 40 | $ 75 | |
| Effective tax rate | 24.00% | 23.00% | 23.00% | 22.00% | |
| Effective tax rate, excluding discrete tax benefits | 24.00% | 24.00% | |||
| Unrecognized tax benefits | $ 394 | ||||
| Unrecognized tax benefits that would impact effective tax rate | $ 276 | $ 276 | |||
| Long-term liability for uncertain tax positions | $ 126 | $ 126 | $ 61 | ||
| X | ||||||||||
- Definition Effective Income Tax Rate Reconciliation, Excluding Discrete Tax Benefits, Percent No definition available.
|
| X | ||||||||||
- Definition Percentage 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 difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying domestic federal statutory income tax rate to pretax income (loss) from continuing operation, attributable to expense for award under share-based payment arrangement. Excludes expense determined to be nondeductible upon grant or after for award under share-based payment arrangement. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount recognized for uncertainty in income taxes classified as noncurrent. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of unrecognized tax benefits. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition The total amount of unrecognized tax benefits that, if recognized, would affect the effective tax rate. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|