COMMITMENTS AND CONTINGENCIES - Receivables (Details) - USD ($) $ in Thousands  | 
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Dec. 31, 2024  | 
Dec. 31, 2023  | 
Dec. 31, 2024  | 
Dec. 31, 2023  | 
|
| Commitments and Contingencies Disclosure [Abstract] | ||||
| Receivables sold under factoring agreements | $ 38,246 | $ 49,072 | $ 83,705 | $ 94,679 | 
| Proceeds from sales of LC | $ 33,359 | $ 13,900 | $ 35,337 | $ 13,900 | 
| 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 
  |