Income taxes (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | |||
|---|---|---|---|---|---|
Oct. 31, 2023 |
Oct. 31, 2022 |
Oct. 31, 2023 |
Oct. 31, 2022 |
Jan. 31, 2023 |
|
| Income Tax Disclosure [Abstract] | |||||
| Income tax provision (benefit) | $ 6,414 | $ (4,539) | $ 15,975 | $ (12,170) | |
| Effective tax rate (as a percent) | 30.40% | 73.40% | 35.20% | 31.90% | |
| Gross unrecognized tax benefits | $ 13,800 | $ 13,800 | $ 8,700 | ||
| Unrecognized tax benefits that would impact the effective tax rate | $ 10,300 | $ 10,300 | |||
| X | ||||||||||
- Definition Percentage of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of unrecognized tax benefits. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition The total amount of unrecognized tax benefits that, if recognized, would affect the effective tax rate. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|