v3.26.1
INCOME TAXES - Schedule of Changes in the Balance of Gross Unrecognized Tax Benefits (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward]    
Unrecognized tax benefits as of beginning of the period $ 139,791 $ 180,365
Increases on account of current year positions 2,607 0
Increases on account of prior year positions 5,609 8,024
Decreases on account of prior year positions (3,609) (2,612)
Decreases due to settlements with tax authorities (3,502) (9,569)
Decreases due to lapses of statutes of limitations (19,560) (36,417)
Unrecognized tax benefits as of end of the period $ 121,336 $ 139,791