INCOME TAXES - Schedule of Income Taxes Paid (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2024 |
|
| Income Tax Paid, by Individual Jurisdiction [Line Items] | |||
| Federal | $ 35,485 | ||
| Provincial | 17,996 | ||
| Total cash paid for income taxes, net | 300,062 | $ 411,570 | $ 294,769 |
| Other foreign jurisdictions | |||
| Income Tax Paid, by Individual Jurisdiction [Line Items] | |||
| Foreign | 58,151 | ||
| United Kingdom | |||
| Income Tax Paid, by Individual Jurisdiction [Line Items] | |||
| Foreign | 15,519 | ||
| United States | |||
| Income Tax Paid, by Individual Jurisdiction [Line Items] | |||
| Foreign | 134,297 | ||
| Germany | |||
| Income Tax Paid, by Individual Jurisdiction [Line Items] | |||
| Foreign | 22,363 | ||
| India | |||
| Income Tax Paid, by Individual Jurisdiction [Line Items] | |||
| Foreign | $ 16,251 | ||