| Restructuring programs - Restructuring provision in the consolidated balance sheets (Details) $ in Thousands | 12 Months Ended | 
|---|---|
| Dec. 31, 2024  USD ($) | |
| Restructuring | |
| Costs incurred and charged to General and administrative expenses | $ 5,950 | 
| Restructuring Charges, Statement of Income or Comprehensive Income [Extensible Enumeration] | Selling, General and Administrative Expense | 
| Effect of foreign exchange rates | $ (39) | 
| Balance at the end | 5,911 | 
| Contract Termination [Member] | |
| Restructuring | |
| Costs incurred and charged to General and administrative expenses | 4,130 | 
| Effect of foreign exchange rates | (28) | 
| Balance at the end | 4,102 | 
| One-time Termination Benefits [Member] | |
| Restructuring | |
| Costs incurred and charged to General and administrative expenses | 1,820 | 
| Effect of foreign exchange rates | (11) | 
| Balance at the end | $ 1,809 | 
| X | ||||||||||
| 
- Definition Amount of expenses associated with exit or disposal activities pursuant to an authorized plan. Excludes expenses related to a discontinued operation or an asset retirement obligation. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 | 
| X | ||||||||||
| 
- Definition Indicates line item in statement of income or comprehensive income that includes restructuring charges. Reference 1: http://www.xbrl.org/2003/role/recommendedDisclosureRef 
 | 
| X | ||||||||||
| 
- Definition Carrying amount (including both current and noncurrent portions of the accrual) as of the balance sheet date pertaining to a specified type of cost associated with exit from or disposal of business activities or restructuring pursuant to a duly authorized plan. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 | 
| X | ||||||||||
| 
- Definition Amount of foreign currency translation gain (loss) which decreases (increases) the restructuring reserve. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 |