COMMITMENTS AND CONTINGENCIES - Receivables (Details) - USD ($) $ in Thousands  | 
3 Months Ended | |
|---|---|---|
Sep. 30, 2024  | 
Sep. 30, 2023  | 
|
| Commitments and Contingencies Disclosure [Abstract] | ||
| Receivables sold under factoring agreements | $ 45,459 | $ 45,607 | 
| Proceeds from sales of LC | $ 1,978 | $ 0 | 
| X | ||||||||||
- Definition Receivables Sold Under Factoring Agreements No definition available. 
  | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- Definition Amount of cash inflow from contractual arrangement with the lender, including but not limited to, letter of credit, standby letter of credit and revolving credit arrangements. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
  |