Derivative instruments and hedging activities - Schedule of Pre-tax Gains (Losses) Associated with Cash Flow Hedges (Details) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jul. 31, 2026 |
Jul. 31, 2025 |
Jul. 31, 2026 |
Jul. 31, 2025 |
|
| Derivative Instruments and Hedging Activities Disclosure [Abstract] | ||||
| (Loss) gain recognized in accumulated other comprehensive loss into income (included in assessment of effectiveness) | $ (161) | $ (40) | $ (169) | $ 347 |
| Gains reclassified from accumulated other comprehensive loss into income (effective portion) | 124 | (159) | 51 | (139) |
| Tax effect reclassified from accumulated other comprehensive loss into income (effective portion) | $ 0 | $ 0 | $ 0 | $ 0 |