LEASES - Schedule of Supplemental Balance Sheet Information (Details) - USD ($) $ in Thousands |
Mar. 31, 2024 |
Jun. 30, 2023 |
|---|---|---|
| Leases [Abstract] | ||
| Operating lease ROU assets, net | $ 87,599 | $ 95,894 |
| Finance lease ROU assets, net | 227 | 289 |
| Total leased assets | 87,826 | 96,183 |
| Current operating liabilities | 10,027 | 10,489 |
| Current finance liabilities | 85 | 83 |
| Non-current operating liabilities | 82,435 | 90,014 |
| Non-current finance liabilities | 158 | 222 |
| Total lease liabilities | $ 92,705 | $ 100,808 |
| 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 |
| 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 |