v3.26.1
Fair Value of Financial Instruments - Schedule of Remaining Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details) - USD ($)
$ in Thousands
Mar. 31, 2026
Jun. 30, 2025
Assets:    
Deferred compensation plan investments, current and non-current $ 33,981 $ 31,887
Total assets at fair value 34,147 32,582
Liabilities:    
Deferred compensation plan investments, current and non-current 33,981 31,887
Liability for contingent consideration, current and non-current 29,040 19,100
Total liabilities at fair value 63,064 51,277
Forward foreign currency exchange contracts    
Assets:    
Derivative asset 13 15
Interest rate swap agreement    
Assets:    
Derivative asset 153 680
Foreign currency hedge    
Liabilities:    
Forward foreign currency exchange contracts 43 290
Quoted prices in active markets (Level 1)    
Assets:    
Deferred compensation plan investments, current and non-current 33,981 31,887
Total assets at fair value 33,981 31,887
Liabilities:    
Deferred compensation plan investments, current and non-current 33,981 31,887
Liability for contingent consideration, current and non-current 0 0
Total liabilities at fair value 33,981 31,887
Quoted prices in active markets (Level 1) | Forward foreign currency exchange contracts    
Assets:    
Derivative asset 0 0
Quoted prices in active markets (Level 1) | Interest rate swap agreement    
Assets:    
Derivative asset 0 0
Quoted prices in active markets (Level 1) | Foreign currency hedge    
Liabilities:    
Forward foreign currency exchange contracts 0 0
Significant other observable inputs (Level 2)    
Assets:    
Deferred compensation plan investments, current and non-current 0 0
Total assets at fair value 166 695
Liabilities:    
Deferred compensation plan investments, current and non-current 0 0
Liability for contingent consideration, current and non-current 0 0
Total liabilities at fair value 43 290
Significant other observable inputs (Level 2) | Forward foreign currency exchange contracts    
Assets:    
Derivative asset 13 15
Significant other observable inputs (Level 2) | Interest rate swap agreement    
Assets:    
Derivative asset 153 680
Significant other observable inputs (Level 2) | Foreign currency hedge    
Liabilities:    
Forward foreign currency exchange contracts 43 290
Significant unobservable inputs (Level 3)    
Assets:    
Deferred compensation plan investments, current and non-current 0 0
Total assets at fair value 0 0
Liabilities:    
Deferred compensation plan investments, current and non-current 0 0
Liability for contingent consideration, current and non-current 29,040 19,100
Total liabilities at fair value 29,040 19,100
Significant unobservable inputs (Level 3) | Forward foreign currency exchange contracts    
Assets:    
Derivative asset 0 0
Significant unobservable inputs (Level 3) | Interest rate swap agreement    
Assets:    
Derivative asset 0 0
Significant unobservable inputs (Level 3) | Foreign currency hedge    
Liabilities:    
Forward foreign currency exchange contracts $ 0 $ 0