v3.26.1
GOODWILL AND INTANGIBLE ASSETS (Schedule of Intangible Assets) (Details) - USD ($)
$ in Thousands
Mar. 31, 2026
Jun. 30, 2025
Goodwill and Intangible Assets [Line Items]    
Gross Carrying Amount $ 1,037,743 $ 986,736
Accumulated Amortization (761,777) (727,324)
Net 275,966 259,412
Reacquired franchise rights    
Goodwill and Intangible Assets [Line Items]    
Gross Carrying Amount 431,555 415,700
Accumulated Amortization (254,474) (243,330)
Net 177,081 172,370
Customer relationships    
Goodwill and Intangible Assets [Line Items]    
Gross Carrying Amount 386,141 354,107
Accumulated Amortization (305,246) (287,067)
Net 80,895 67,040
Internally-developed software    
Goodwill and Intangible Assets [Line Items]    
Gross Carrying Amount 121,671 119,959
Accumulated Amortization (117,831) (117,604)
Net 3,840 2,355
Noncompete agreements    
Goodwill and Intangible Assets [Line Items]    
Gross Carrying Amount 24,476 23,070
Accumulated Amortization (20,923) (20,188)
Net 3,553 2,882
Purchased technology    
Goodwill and Intangible Assets [Line Items]    
Gross Carrying Amount 68,100 68,100
Accumulated Amortization (59,388) (55,655)
Net 8,712 12,445
Trade name    
Goodwill and Intangible Assets [Line Items]    
Gross Carrying Amount 5,800 5,800
Accumulated Amortization (3,915) (3,480)
Net $ 1,885 $ 2,320