Summary of significant accounting policies - Recent Accounting Pronouncements (Details) - USD ($) $ in Thousands |
Mar. 31, 2022 |
Jan. 01, 2022 |
Dec. 31, 2021 |
Mar. 31, 2021 |
Dec. 31, 2020 |
| New Accounting Pronouncements or Change in Accounting Principle [Line Items] |
|
|
|
|
|
| Equity |
$ (311,981)
|
|
$ (350,924)
|
$ (197,662)
|
$ (188,031)
|
| Lease liabilities |
27,659
|
|
|
|
|
| Lease right-of-use assets |
26,701
|
|
|
|
|
| Accumulated Deficit |
|
|
|
|
|
| New Accounting Pronouncements or Change in Accounting Principle [Line Items] |
|
|
|
|
|
| Equity |
242,604
|
|
192,179
|
$ 90,881
|
$ 79,123
|
| Accounting Standards Update 2016-13 |
|
|
|
|
|
| New Accounting Pronouncements or Change in Accounting Principle [Line Items] |
|
|
|
|
|
| Allowance for credit loss |
|
$ 400
|
|
|
|
| Cumulative Effect, Period of Adoption, Adjustment |
|
|
|
|
|
| New Accounting Pronouncements or Change in Accounting Principle [Line Items] |
|
|
|
|
|
| Equity |
|
|
399
|
|
|
| Cumulative Effect, Period of Adoption, Adjustment | Accumulated Deficit |
|
|
|
|
|
| New Accounting Pronouncements or Change in Accounting Principle [Line Items] |
|
|
|
|
|
| Equity |
|
|
$ 399
|
|
|
| Cumulative Effect, Period of Adoption, Adjustment | Accounting Standards Update 2016-13 | Accumulated Deficit |
|
|
|
|
|
| New Accounting Pronouncements or Change in Accounting Principle [Line Items] |
|
|
|
|
|
| Equity |
$ 400
|
|
|
|
|
| Cumulative Effect, Period of Adoption, Adjustment | Accounting Standards Update 2016-02 |
|
|
|
|
|
| New Accounting Pronouncements or Change in Accounting Principle [Line Items] |
|
|
|
|
|
| Lease liabilities |
|
24,400
|
|
|
|
| Lease right-of-use assets |
|
$ 23,800
|
|
|
|