STOCK-BASED COMPENSATION PLANS - Schedule of Compensation Cost and Related Income Tax Benefit (Details) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2024 |
|
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] | |||
| Total compensation cost | $ 48 | $ 81 | $ 74 |
| Related income tax benefit | 12 | 19 | 18 |
| Income Statement Location [Axis]: us-gaap:CostOfGoodsAndServicesSold | |||
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] | |||
| Total compensation cost | 6 | 7 | 7 |
| Income Statement Location [Axis]: us-gaap:ResearchAndDevelopmentExpense | |||
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] | |||
| Total compensation cost | 2 | 4 | 4 |
| Income Statement Location [Axis]: us-gaap:SellingGeneralAndAdministrativeExpense | |||
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] | |||
| Total compensation cost | $ 40 | $ 70 | $ 63 |