v3.22.2.2
Summary of Significant Accounting Policies (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Sep. 30, 2022
Sep. 30, 2021
Jun. 30, 2022
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Allowance for doubtful accounts receivable $ 100   $ 100    
Loss on impairment of assets 0 $ 0 6,616 $ 0  
Net product sales 81,691 79,545 241,137 223,360  
Contractual obligation         $ 20,000
U.S.          
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Net product sales 30,222 25,636 81,940 70,167  
Ex-U.S.          
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Net product sales $ 51,469 $ 53,909 $ 159,197 $ 153,193  
Minimum          
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Estimated useful life     3 years    
Maximum          
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Estimated useful life     5 years