Leases - Schedule of Additional Information Related To Leases (Details) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2023 |
Jun. 30, 2022 |
Jun. 30, 2021 |
|
| Leases [Abstract] | |||
| Operating Leases, Weighted-average remaining lease term | 13 years 8 months 12 days | 11 years | |
| Operating Leases, Weighted-average incremental borrowing rate | 5.11% | 3.56% | |
| Finance Leases, Weighted-average remaining lease term | 1 year 9 months 18 days | 2 years 9 months 18 days | |
| Finance Leases, Weighted-average incremental borrowing rate | 3.64% | 3.64% | |
| Cash paid - Operating lease liabilities | $ 172 | $ 182 | $ 184 |
| Cash paid - Finance lease liabilities - principal | 24 | 27 | 30 |
| Cash paid - Finance lease liabilities - interest | 2 | 3 | 4 |
| Operating lease right-of-use assets obtained in exchange for operating lease liabilities | $ 248 | $ 72 | $ 25 |
| X | ||||||||||
- Definition Amount of interest paid on finance lease liability. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of cash outflow for principal payment on finance lease. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Weighted average discount rate for finance lease calculated at point in time. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Weighted average remaining lease term for finance lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Weighted average discount rate for operating lease calculated at point in time. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of increase in right-of-use asset obtained in exchange for operating lease liability. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|