SEGMENT REPORTING AND GEOGRAPHIC INFORMATION - Long-lived Assets by Geographic Region (Details) - USD ($) $ in Thousands  | 
Jun. 30, 2021  | 
Jun. 30, 2020  | 
|---|---|---|
| Revenues from External Customers and Long-Lived Assets [Line Items] | ||
| Long-lived assets | $ 663,027 | $ 519,824 | 
| United States | ||
| Revenues from External Customers and Long-Lived Assets [Line Items] | ||
| Long-lived assets | 447,359 | 329,558 | 
| Singapore | ||
| Revenues from External Customers and Long-Lived Assets [Line Items] | ||
| Long-lived assets | 76,882 | 54,946 | 
| Israel | ||
| Revenues from External Customers and Long-Lived Assets [Line Items] | ||
| Long-lived assets | 57,403 | 59,162 | 
| Europe | ||
| Revenues from External Customers and Long-Lived Assets [Line Items] | ||
| Long-lived assets | 56,895 | 58,065 | 
| Rest of Asia | ||
| Revenues from External Customers and Long-Lived Assets [Line Items] | ||
| Long-lived assets | $ 24,488 | $ 18,093 | 
| X | ||||||||||
- Definition Long-lived assets other than financial instruments, long-term customer relationships of a financial institution, mortgage and other servicing rights, deferred policy acquisition costs, and deferred tax assets. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. No definition available. 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  |