v3.26.1
ACCOUNTING POLICIES AND RECENT ACCOUNTING PRONOUNCEMENTS - Foreign currency (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Intercompany Foreign Currency Balance [Line Items]      
Foreign exchange gains (losses) $ 3,228 $ (24,888) $ 1,202
Income Statement Location [Axis]: us-gaap:NonoperatingIncomeExpense      
Intercompany Foreign Currency Balance [Line Items]      
Foreign exchange gains (losses) $ 3,200 $ (24,900) $ 1,200