v3.26.3
DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES - Schedule of Derivative Instruments in Statement of Financial Position, Fair Value (Details) - USD ($)
$ in Thousands
Aug. 31, 2026
Aug. 31, 2025
Derivative [Line Items]    
Fair value, liabilities, current $ (19,425) $ (551)
Derivative liability, noncurrent (10,074) (6,196)
Derivative asset, noncurrent 179 701
Cash Flow Hedging | Designated as Hedging Instrument    
Derivative [Line Items]    
Net fair value of derivatives designated as hedging instruments (26,609) (5,495)
Net Tax Effect 9,313 1,934
Net OCI (17,296) (3,561)
Cross-currency interest rate swaps | Cash Flow Hedging | Designated as Hedging Instrument    
Derivative [Line Items]    
Fair value, liabilities, current (12,260) 0
Net Tax Effect 4,291 0
Net OCI $ (7,969) $ 0
Derivative Liability, Current, Statement of Financial Position [Extensible Enumeration] Other accrued expenses and other current liabilities (includes $19,425 and $551 as of August 31, 2026 and August 31, 2025, respectively, for the fair value of derivative instruments) Other accrued expenses and other current liabilities (includes $19,425 and $551 as of August 31, 2026 and August 31, 2025, respectively, for the fair value of derivative instruments)
Cross-currency interest rate swaps | Cash Flow Hedging | Designated as Hedging Instrument    
Derivative [Line Items]    
Derivative liability, noncurrent $ (9,463) $ (5,381)
Net Tax Effect 3,312 1,884
Net OCI $ (6,151) $ (3,497)
Derivative Liability, Noncurrent, Statement of Financial Position [Extensible Enumeration] Other long-term liabilities (includes $10,074 and $6,196 for the fair value of derivative instruments and $14,879 and $13,628 for post-employment plans as of August 31, 2026 and August 31, 2025, respectively) Other long-term liabilities (includes $10,074 and $6,196 for the fair value of derivative instruments and $14,879 and $13,628 for post-employment plans as of August 31, 2026 and August 31, 2025, respectively)
Cross-currency swaps | Cash Flow Hedging | Designated as Hedging Instrument    
Derivative [Line Items]    
Fair value, liabilities, current $ (113) $ 0
Net Tax Effect 28 0
Net OCI $ (85) $ 0
Derivative Liability, Current, Statement of Financial Position [Extensible Enumeration] Other accrued expenses and other current liabilities (includes $19,425 and $551 as of August 31, 2026 and August 31, 2025, respectively, for the fair value of derivative instruments) Other accrued expenses and other current liabilities (includes $19,425 and $551 as of August 31, 2026 and August 31, 2025, respectively, for the fair value of derivative instruments)
Cross-currency swaps | Cash Flow Hedging | Designated as Hedging Instrument    
Derivative [Line Items]    
Derivative liability, noncurrent $ (425) $ 0
Net Tax Effect 106 0
Net OCI $ (319) $ 0
Derivative Liability, Noncurrent, Statement of Financial Position [Extensible Enumeration] Other long-term liabilities (includes $10,074 and $6,196 for the fair value of derivative instruments and $14,879 and $13,628 for post-employment plans as of August 31, 2026 and August 31, 2025, respectively) Other long-term liabilities (includes $10,074 and $6,196 for the fair value of derivative instruments and $14,879 and $13,628 for post-employment plans as of August 31, 2026 and August 31, 2025, respectively)
Interest rate swaps | Cash Flow Hedging | Designated as Hedging Instrument    
Derivative [Line Items]    
Fair value of asset, current $ 307 $ 0
Net Tax Effect (68) 0
Net OCI $ 239 $ 0
Derivative Asset, Current, Statement of Financial Position [Extensible Enumeration] Prepaid Expense and Other Assets, Current Prepaid Expense and Other Assets, Current
Interest rate swaps | Cash Flow Hedging | Designated as Hedging Instrument    
Derivative [Line Items]    
Derivative asset, noncurrent $ 179 $ 701
Net Tax Effect (40) (157)
Net OCI $ 139 $ 544
Derivative Asset, Noncurrent, Statement of Financial Position [Extensible Enumeration] Other non-current assets (includes $179 and $701 as of August 31, 2026 and August 31, 2025, respectively, for the fair value of derivative instruments) Other non-current assets (includes $179 and $701 as of August 31, 2026 and August 31, 2025, respectively, for the fair value of derivative instruments)
Interest rate swaps | Cash Flow Hedging | Designated as Hedging Instrument    
Derivative [Line Items]    
Fair value, liabilities, current $ (75) $ 0
Net Tax Effect 21 0
Net OCI $ (54) $ 0
Derivative Liability, Current, Statement of Financial Position [Extensible Enumeration] Other accrued expenses and other current liabilities (includes $19,425 and $551 as of August 31, 2026 and August 31, 2025, respectively, for the fair value of derivative instruments) Other accrued expenses and other current liabilities (includes $19,425 and $551 as of August 31, 2026 and August 31, 2025, respectively, for the fair value of derivative instruments)
Interest rate swaps | Cash Flow Hedging | Designated as Hedging Instrument    
Derivative [Line Items]    
Derivative liability, noncurrent $ (32) $ (815)
Net Tax Effect 9 207
Net OCI $ (23) $ (608)
Derivative Liability, Noncurrent, Statement of Financial Position [Extensible Enumeration] Other long-term liabilities (includes $10,074 and $6,196 for the fair value of derivative instruments and $14,879 and $13,628 for post-employment plans as of August 31, 2026 and August 31, 2025, respectively) Other long-term liabilities (includes $10,074 and $6,196 for the fair value of derivative instruments and $14,879 and $13,628 for post-employment plans as of August 31, 2026 and August 31, 2025, respectively)
Non-deliverable forward foreign-exchange contracts | Cash Flow Hedging | Designated as Hedging Instrument    
Derivative [Line Items]    
Fair value of asset, current $ 216 $ 0
Net Tax Effect (76) 0
Net OCI $ 140 $ 0
Derivative Asset, Current, Statement of Financial Position [Extensible Enumeration] Prepaid Expense and Other Assets, Current Prepaid Expense and Other Assets, Current
Non-deliverable forward foreign-exchange contracts | Cash Flow Hedging | Designated as Hedging Instrument    
Derivative [Line Items]    
Fair value, liabilities, current $ (4,943) $ 0
Net Tax Effect 1,730 0
Net OCI $ (3,213) $ 0
Derivative Liability, Current, Statement of Financial Position [Extensible Enumeration] Other accrued expenses and other current liabilities (includes $19,425 and $551 as of August 31, 2026 and August 31, 2025, respectively, for the fair value of derivative instruments) Other accrued expenses and other current liabilities (includes $19,425 and $551 as of August 31, 2026 and August 31, 2025, respectively, for the fair value of derivative instruments)