SEGMENT INFORMATION - Long-lived Assets (Details) - USD ($) $ in Thousands |
Dec. 31, 2022 |
Jun. 30, 2022 |
|---|---|---|
| Segment Reporting Information [Line Items] | ||
| Long-lived assets | $ 396,009 | $ 412,096 |
| United States | ||
| Segment Reporting Information [Line Items] | ||
| Long-lived assets | 170,184 | 182,038 |
| United Kingdom | ||
| Segment Reporting Information [Line Items] | ||
| Long-lived assets | 132,116 | 133,213 |
| All Other | ||
| Segment Reporting Information [Line Items] | ||
| Long-lived assets | $ 93,709 | $ 96,845 |