Earnings Per Share and Cash Dividends - Additional Information (Details) - USD ($) $ / shares in Units, $ in Thousands, shares in Millions |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jul. 31, 2026 |
Jul. 31, 2025 |
Jul. 31, 2026 |
Jul. 31, 2025 |
|
| Dividends Payable [Line Items] | ||||
| Dilutive common stock equivalents were excluded from the computation of diluted earnings per share | 0.2 | 1.0 | 0.3 | 1.3 |
| Cash dividend declared and payable | $ 0.4 | $ 0.35 | $ 0.75 | $ 0.7 |
| Dividends paid | $ 8,899 | $ 7,774 | $ 16,642 | $ 15,557 |
| Quarterly Cash Dividend Q2 2026 | ||||
| Dividends Payable [Line Items] | ||||
| Cash dividend declared and payable | $ 0.35 | |||
| Dividends paid | $ 15,600 | |||
| Quarterly Cash Dividend Q1 2027 | ||||
| Dividends Payable [Line Items] | ||||
| Cash dividend declared and payable | $ 0.35 | |||
| Quarterly Cash Dividend Q2 2027 | ||||
| Dividends Payable [Line Items] | ||||
| Cash dividend declared and payable | $ 0.4 | |||
| Dividends paid | $ 16,600 | |||