Quarterly report pursuant to Section 13 or 15(d)

Basis of Presentation and Summary of Significant Accounting Policies - Narrative (Details)

v3.22.1
Basis of Presentation and Summary of Significant Accounting Policies - Narrative (Details)
shares in Thousands
3 Months Ended
Mar. 31, 2022
USD ($)
position
shares
Mar. 31, 2021
USD ($)
shares
Dec. 31, 2021
USD ($)
Dec. 31, 2020
USD ($)
Property, Plant and Equipment [Line Items]        
Deferred tax liabilities $ 39,480,000   $ 59,095,000  
Stockholders' equity 793,192,000 $ 745,840,000 821,159,000 $ 709,525,000
Revenue recognized that was previously deferred $ 3,700,000 $ 7,300,000    
Number of positions in an unrealized loss position | position 13      
Credit losses related to available-for-sale debt securities $ 0      
Additional allowance for credit losses recorded related to COVID-19 (100,000)      
Inventory $ 25,614,000   27,326,000  
Potentially dilutive shares excluded from calculation due to anti-dilutive effect (in shares) | shares 6,001 4,277    
Additional paid in capital        
Property, Plant and Equipment [Line Items]        
Stockholders' equity $ 325,368,000 $ 336,621,000 372,969,000 318,358,000
Retained earnings        
Property, Plant and Equipment [Line Items]        
Stockholders' equity $ 468,838,000 $ 410,058,000 449,090,000 $ 391,952,000
Adjustment        
Property, Plant and Equipment [Line Items]        
Stockholders' equity     (15,997,000)  
Adjustment | Additional paid in capital        
Property, Plant and Equipment [Line Items]        
Stockholders' equity     (51,130,000)  
Adjustment | Retained earnings        
Property, Plant and Equipment [Line Items]        
Stockholders' equity     35,133,000  
Adjusted Balance        
Property, Plant and Equipment [Line Items]        
Convertible notes payable     341,100,000  
Unamortized discount     2,200,000  
Accounting Standards Update 2020-06        
Property, Plant and Equipment [Line Items]        
Potentially dilutive shares excluded from calculation due to anti-dilutive effect (in shares) | shares 1,800      
Accounting Standards Update 2020-06 | Adjustment        
Property, Plant and Equipment [Line Items]        
Convertible notes payable     20,400,000  
Deferred tax liabilities     (4,400,000)  
Accounting Standards Update 2020-06 | Adjustment | Additional paid in capital        
Property, Plant and Equipment [Line Items]        
Stockholders' equity     (51,100,000)  
Accounting Standards Update 2020-06 | Adjustment | Retained earnings        
Property, Plant and Equipment [Line Items]        
Stockholders' equity     35,100,000  
Captisol        
Property, Plant and Equipment [Line Items]        
Inventory $ 21,100,000   $ 24,600,000  
Share-based Compensation        
Property, Plant and Equipment [Line Items]        
Potentially dilutive shares excluded from calculation due to anti-dilutive effect (in shares) | shares 400      
Restricted Stock Awards        
Property, Plant and Equipment [Line Items]        
Performance period for awards 3 years      
Maximum | Restricted Stock Awards        
Property, Plant and Equipment [Line Items]        
Payout range (as a percent) 200.00%      
Minimum | Restricted Stock Awards        
Property, Plant and Equipment [Line Items]        
Payout range (as a percent) 0.00%