v3.26.1
Business Combinations and Divestitures - Narrative (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 01, 2026
Jun. 30, 2026
May 31, 2026
Jun. 30, 2025
Disposal Group, Including Discontinued Operations [Line Items]        
Goodwill (note 5)   $ 2,909,575   $ 3,046,680
Noctrix Health, LLC        
Disposal Group, Including Discontinued Operations [Line Items]        
Equity ownership percentage     3.00%  
Discontinued operations, held-for-sale | MatrixCare Business        
Disposal Group, Including Discontinued Operations [Line Items]        
All-cash transaction   490,000    
Goodwill   327,240    
Goodwill (note 5)   416,000    
Estimated fair value   457,000    
Incurred expenses   7,000    
Noctrix Health, LLC        
Disposal Group, Including Discontinued Operations [Line Items]        
Percentage of business acquired 100.00%      
Purchase price $ 335,000      
Acquisition-date fair value 7,000      
Gain on previously held equity investment   $ 4,000    
Business Combination, Achieved in Stages, Preacquisition Equity Interest in Acquiree, Remeasurement, Gain, Statement of Income or Comprehensive Income [Extensible Enumeration]   Other, net    
Acquisition and portfolio review related expenses   $ 3,000    
Goodwill (note 5) $ 202,024