INCOME TAXES - Schedule of Effective Income Tax Rate Reconciliation - Prior Years (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2024 |
|
| Income Tax Disclosure [Abstract] | |||
| Canadian Federal tax | 15.00% | 26.50% | 26.50% |
| Canadian Federal tax | $ 128,832 | $ 127,749 | $ 193,263 |
| Effect of foreign tax rate differences | (9,275) | (18,338) | |
| Change in valuation allowance | (4,040) | 71,328 | |
| Effect of permanent differences | 24,908 | 11,864 | |
| Effect of changes in unrecognized tax benefits | (32,387) | (4,570) | |
| Effect of withholding taxes | 7,479 | 18,680 | |
| Effect of tax credits | (55,656) | (84,244) | |
| Effect of accrual for undistributed earnings | 4,072 | (12,421) | |
| Effect of U.S. BEAT | 0 | 17,927 | |
| Difference in tax filing positions from provision | 6,450 | (37,053) | (2,661) |
| Impact of internal reorganizations | 5,037 | 59,761 | |
| Other items | (23,430) | 15,171 | 13,423 |
| Provision for income taxes | $ 215,614 | $ 46,005 | $ 264,012 |
| X | ||||||||||
- Definition Effective Income Tax Rate Reconciliation, Difference In Tax Filing Positions, Amount No definition available.
|
| X | ||||||||||
- Definition Effective Income Tax Rate Reconciliation, Effect of Accrual for Undistributed Earnings No definition available.
|
| X | ||||||||||
- Definition Effective Income Tax Rate Reconciliation, Internal Reorganization, Amount No definition available.
|
| X | ||||||||||
- Definition Effective Income Tax Rate Reconciliation, Tax Expense (Benefit), Withholding Taxes No definition available.
|
| X | ||||||||||
- Definition Income Tax Reconciliation, Change In Unrecognized Tax Benefits, Amount No definition available.
|
| X | ||||||||||
- Definition Percentage of domestic federal statutory tax rate applicable to pretax income (loss). Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of reported income tax expense from difference to expected income tax expense (benefit) computed by applying domestic federal statutory income tax rate to pretax income (loss) from continuing operations, attributable to base erosion and anti-abuse tax (BEAT). Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to increase (decrease) in the valuation allowance for deferred tax assets. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to foreign income tax expense (benefit). Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition The amount of income tax expense or benefit for the period computed by applying the domestic federal statutory tax rates to pretax income from continuing operations. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to nondeductible expenses. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to other adjustments. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to tax credits. Including, but not limited to, research credit, foreign tax credit, investment tax credit, and other tax credits. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|