v3.25.2
Restructuring - Summary of Restructuring Charges by Segment (Details) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2025
May 31, 2024
Restructuring Cost and Reserve [Line Items]    
Restructuring Charges, Statement of Income or Comprehensive Income [Extensible Enumeration] Operating Income (Loss) Operating Income (Loss)
Restructuring charges $ 11,096 $ 3,513
Corporate    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges 1,520 1,726
Operating Segments | Food Safety    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges 2,146 402
Operating Segments | Animal Safety    
Restructuring Cost and Reserve [Line Items]    
Restructuring charges $ 7,430 $ 1,385