Income taxes - Narrative (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | |||
|---|---|---|---|---|---|
Sep. 30, 2022 |
Sep. 30, 2021 |
Sep. 30, 2022 |
Sep. 30, 2021 |
Dec. 31, 2021 |
|
| Operating Loss Carryforwards [Line Items] | |||||
| Other Tax Expense (Benefit) | $ 100 | $ 200 | $ 200 | $ 500 | |
| Valuation Allowance, Deferred Tax Asset, Increase (Decrease), Amount | 262,700 | 262,700 | |||
| Income tax (benefit) expense | 5,960 | (270,228) | 6,019 | (280,679) | |
| Loss before income taxes | 23,530 | 41,533 | 31,793 | 37,866 | |
| Current Foreign Tax Expense (Benefit) | 5,800 | 2,000 | 7,700 | 400 | |
| Valuation Allowance, Deferred Tax Asset, Increase (Decrease), Amount | 262,700 | 262,700 | |||
| Unrecognized Tax Benefits, Decrease Resulting from Prior Period Tax Positions | (400) | ||||
| Unrecognized Tax Benefits | 22,400 | 22,400 | $ 21,300 | ||
| Unrecognized Tax Benefits that Would Impact Effective Tax Rate | 9,400 | 9,400 | |||
| Income Tax Effects Allocated Directly to Equity, Other | $ 100 | 4,700 | 1,700 | 4,700 | |
| Restructuring adjustments | $ 100 | $ 100 | $ 600 | ||
| X | ||||||||||
- Definition Amount of current foreign income tax expense (benefit) pertaining to income (loss) from continuing operations. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount of income (loss) from continuing operations, including income (loss) from equity method investments, before deduction of income tax expense (benefit), and income (loss) attributable to noncontrolling interest. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition The tax effect of items occurring during the period that have been charged or credited directly to components of shareholders' equity and are not otherwise defined. 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 the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to nondeductible restructuring charges. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| 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. No definition available.
|
| X | ||||||||||
- Definition Amount of other income tax expense (benefit). Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount of unrecognized tax benefits. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of decrease in unrecognized tax benefits resulting from tax positions taken in prior period tax returns. 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
|
| X | ||||||||||
- Definition Amount of increase (decrease) in the valuation allowance for a specified deferred tax asset. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|