Consolidated Statements of Shareholders' Equity (Parenthetical) - $ / shares |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2025 |
Jun. 30, 2024 |
Jun. 30, 2023 |
|
| Statement of Stockholders' Equity [Abstract] | |||
| Dividends and dividend equivalents, common stock (in dollars per share) | $ 4.0763 | $ 3.8286 | $ 3.6806 |
| Dividends and dividend equivalents, preferred stock (in dollars per share) | $ 4.0763 | $ 3.8286 | $ 3.6806 |