v3.26.1
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