Income Taxes - Changes in the valuation allowance for deferred tax assets (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2023 |
Dec. 31, 2022 |
Dec. 31, 2021 |
|
| Income Taxes | |||
| Valuation allowance at the beginning of the year | $ (96,366) | $ (102,874) | |
| Decreases recorded as a benefit to income tax provision | $ 96,366 | 6,508 | |
| Increases due to Zynerba Acquisition | $ (3,875) | ||
| Increases recorded to income tax provision | (1,575) | ||
| Valuation allowance at the end of the year | $ (5,450) | $ (96,366) | |