Stockholders' Equity - Narrative (Details) - USD ($) $ / shares in Units, $ in Millions |
3 Months Ended | 12 Months Ended | |||
|---|---|---|---|---|---|
Jul. 31, 2026 |
Jul. 31, 2026 |
Jul. 31, 2025 |
Jul. 31, 2024 |
Nov. 30, 2023 |
|
| Stockholders' Equity Note [Abstract] | |||||
| Stock repurchase program, additional shares authorized for repurchase (in shares) | 12,000,000.0 | ||||
| Stock repurchases (in shares) | 1,400,000 | 4,900,000 | |||
| Treasury stock value acquired | $ 108.5 | $ 333.6 | $ 163.3 | ||
| Remaining number of shares authorized to be repurchased (in shares) | 4,500,000 | 4,500,000 | |||
| Dividends paid per share (in usd per share) | $ 1.22 | $ 1.11 | |||
| Cash dividend declared per common share (in usd per share) | $ 0.320 | $ 1.24 | $ 1.14 | $ 1.04 | |
| X | ||||||||||
- Definition Stock Repurchase Program, Number of Additional Shares Authorized To Be Repurchased No definition available.
|
| X | ||||||||||
- Definition Aggregate dividends paid during the period for each share of common stock outstanding. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Aggregate dividends declared during the period for each share of common stock outstanding. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Number of shares remaining authorized to be purchased under share repurchase plan. Includes, but is not limited to, repurchase of stock and unit of ownership. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Number of shares that have been repurchased during the period and are being held in treasury. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Equity impact of the cost of common and preferred stock that were repurchased during the period. Recorded using the cost method. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|