v3.26.1
Derivative financial instruments - Schedule of Fair Value Hedging Instruments (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Jul. 31, 2026
Jul. 31, 2025
Jul. 31, 2026
Jul. 31, 2025
Oct. 31, 2025
Derivative [Line Items]          
Hedged Liability, Fair Value Hedge, Cumulative Increase (Decrease) $ 884   $ 884   $ 11,486
Balance Sheet Location [Axis]: us-gaap:AccruedLiabilitiesCurrentAndNoncurrent          
Derivative [Line Items]          
Derivative Fair Value Of Derivative Liability, Both Designated and Not Designated as Hedges 9,814   9,814   16,026
Balance Sheet Location [Axis]: us-gaap:LiabilitiesOtherThanLongtermDebtNoncurrent          
Derivative [Line Items]          
Derivative Fair Value Of Derivative Liability, Both Designated and Not Designated as Hedges 60,241   60,241   61,725
Balance Sheet Location [Axis]: us-gaap:OtherAssets          
Derivative [Line Items]          
Derivative Fair Value Of Derivative Asset, Both Designated and Not Designated as Hedges 391   391   10,353
Balance Sheet Location [Axis]: us-gaap:PrepaidExpenseCurrentAndNoncurrent          
Derivative [Line Items]          
Derivative Fair Value Of Derivative Asset, Both Designated and Not Designated as Hedges 11,320   11,320   12,031
Foreign Currency Forward Contracts | Cash Flow Hedging | Location, Statement of Income, Balance [Axis]: us-gaap:InterestExpenseOperating          
Derivative [Line Items]          
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), before Reclassification and Tax 5,520 $ (3,912) 10,882 $ (8,655)  
Foreign Currency Forward Contracts | Not Designated as Hedging Instrument          
Derivative [Line Items]          
Notional Amounts of foreign currency derivative contracts 1,145,805   1,145,805   1,137,956
Gains (losses) on foreign currency forward contracts (515) (19,609) 10,407 (1,658)  
Change in unrealized gain (loss) on foreign currency derivative instruments (1,507) 16,568 (17,109) (4,251)  
Foreign Currency Forward Contracts | Not Designated as Hedging Instrument | Balance Sheet Location [Axis]: us-gaap:AccruedLiabilitiesCurrentAndNoncurrent          
Derivative [Line Items]          
Derivative Instruments Not Designated as Hedging Instruments, Asset, at Fair Value 5,117   5,117   15,350
Foreign Currency Forward Contracts | Not Designated as Hedging Instrument | Balance Sheet Location [Axis]: us-gaap:PrepaidExpenseCurrentAndNoncurrent          
Derivative [Line Items]          
Derivative Instruments Not Designated as Hedging Instruments, Asset, at Fair Value 5,134   5,134   4,961
Foreign Currency Forward Contracts | Designated as Hedging Instrument | Cash Flow Hedging          
Derivative [Line Items]          
Notional Amounts of foreign currency derivative contracts 842,598   842,598   863,904
Foreign Currency Forward Contracts | Designated as Hedging Instrument | Net Investment Hedging | Location, Statement of Income, Balance [Axis]: us-gaap:CumulativeTranslationAdjustmentNetOfTaxPeriodIncreaseDecrease          
Derivative [Line Items]          
Other Comprehensive Income (Loss), Net Investment Hedge, Gain (Loss), Effective Portion, Net 9,789 (8,919) (7,379) (35,675)  
Foreign Currency Forward Contracts | Designated as Hedging Instrument | Net Investment Hedging | Location, Statement of Income, Balance [Axis]: us-gaap:InterestExpenseOperating          
Derivative [Line Items]          
Gain (Loss) from Components Excluded from Assessment of Fair Value Hedge Effectiveness, Net 5,372 3,552 13,698 10,830  
Foreign Currency Forward Contracts | Designated as Hedging Instrument | Balance Sheet Location [Axis]: us-gaap:AccruedLiabilitiesCurrentAndNoncurrent | Cash Flow Hedging          
Derivative [Line Items]          
Derivative Instruments in Hedges, Net Investment in Foreign Operations, Assets, Fair Value 4,697   4,697   676
Foreign Currency Forward Contracts | Designated as Hedging Instrument | Balance Sheet Location [Axis]: us-gaap:LiabilitiesOtherThanLongtermDebtNoncurrent | Cash Flow Hedging          
Derivative [Line Items]          
Derivative Instruments in Hedges, Net Investment in Foreign Operations, Assets, Fair Value 60,241   60,241   61,725
Foreign Currency Forward Contracts | Designated as Hedging Instrument | Balance Sheet Location [Axis]: us-gaap:OtherAssets | Cash Flow Hedging          
Derivative [Line Items]          
Derivative Instruments in Hedges, Net Investment in Foreign Operations, Assets, Fair Value 0   0   0
Foreign Currency Forward Contracts | Designated as Hedging Instrument | Balance Sheet Location [Axis]: us-gaap:PrepaidExpenseCurrentAndNoncurrent | Cash Flow Hedging          
Derivative [Line Items]          
Derivative Instruments in Hedges, Net Investment in Foreign Operations, Assets, Fair Value 5,693   5,693   5,937
Interest Rate Swap | Cash Flow Hedging | Location, Statement of Income, Balance [Axis]: us-gaap:InterestExpenseOperating          
Derivative [Line Items]          
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), before Reclassification and Tax (5,520) $ 3,912 (10,882) $ 8,655  
Interest Rate Swap | Designated as Hedging Instrument | Cash Flow Hedging          
Derivative [Line Items]          
Notional Amounts of foreign currency derivative contracts 300,000   300,000   300,000
Interest Rate Swap | Designated as Hedging Instrument | Balance Sheet Location [Axis]: us-gaap:OtherAssets | Cash Flow Hedging          
Derivative [Line Items]          
Hedged Liability, Fair Value Hedge, Cumulative Increase (Decrease) 391   391   10,353
Interest Rate Swap | Designated as Hedging Instrument | Balance Sheet Location [Axis]: us-gaap:PrepaidExpenseCurrentAndNoncurrent | Cash Flow Hedging          
Derivative [Line Items]          
Hedged Liability, Fair Value Hedge, Cumulative Increase (Decrease) $ 493   $ 493   $ 1,133