v3.24.1.1.u2
Basis of Presentation - Business Optimization (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended 12 Months Ended
May 31, 2024
May 31, 2023
May 31, 2024
May 31, 2023
Aug. 31, 2023
Basis of Presentation [Line Items]          
Total business optimization costs $ 77,420 $ 346,873 $ 332,493 $ 591,263 $ 1,100,000
North America          
Basis of Presentation [Line Items]          
Total business optimization costs (3,677) 96,349 46,941 273,329  
EMEA          
Basis of Presentation [Line Items]          
Total business optimization costs 74,937 167,205 231,302 208,165  
Growth Markets          
Basis of Presentation [Line Items]          
Total business optimization costs $ 6,160 $ 83,319 $ 54,250 $ 109,769