XML 71 R57.htm IDEA: XBRL DOCUMENT v3.25.1
Share-based compensation - Schedule of Expense (Details) - USD ($)
$ in Millions
3 Months Ended 9 Months Ended
Apr. 30, 2025
Apr. 30, 2024
Apr. 30, 2025
Apr. 30, 2024
Share-Based Payment Arrangement [Abstract]        
Share-based compensation expense (within SG&A) $ 9 $ 15 $ 22 $ 39
Income tax benefit $ 2 $ 4 $ 6 $ 10