LEASES - Supplemental Balance Sheet Information (Details) - USD ($) $ in Thousands |
Dec. 31, 2022 |
Jun. 30, 2022 |
|---|---|---|
| Leases [Abstract] | ||
| Operating lease ROU assets, net | $ 101,374 | $ 114,691 |
| Finance lease ROU assets, net | 366 | 413 |
| Total leased assets | 101,740 | 115,104 |
| Current operating liabilities | 13,448 | 13,154 |
| Current finance liabilities | 100 | 149 |
| Non-current operating liabilities | 92,587 | 107,481 |
| Non-current finance liabilities | 279 | 278 |
| Total lease liabilities | $ 106,414 | $ 121,062 |
| Operating Lease, Liability, Current, Statement of Financial Position [Extensible Enumeration] | Accrued expenses and other current liabilities | Accrued expenses and other current liabilities |
| Finance Lease, Liability, Current, Statement of Financial Position [Extensible Enumeration] | Current portion of long-term debt | Current portion of long-term debt |
| Finance Lease, Liability, Noncurrent, Statement of Financial Position [Extensible Enumeration] | Long-term debt, less current portion | Long-term debt, less current portion |
| Finance Lease, Right-of-Use Asset, Statement of Financial Position [Extensible Enumeration] | Property, Plant, and Equipment and Finance Lease Right-of-Use Asset, after Accumulated Depreciation and Amortization | Property, Plant, and Equipment and Finance Lease Right-of-Use Asset, after Accumulated Depreciation and Amortization |