XML 45 R33.htm IDEA: XBRL DOCUMENT v3.10.0.1
Description of Business and Basis of Presentation (Details)
3 Months Ended 9 Months Ended
Sep. 30, 2018
USD ($)
product
Jun. 30, 2018
USD ($)
Mar. 31, 2018
USD ($)
Sep. 30, 2017
USD ($)
Sep. 30, 2018
USD ($)
product
Sep. 30, 2017
USD ($)
Nov. 08, 2018
USD ($)
Dec. 31, 2017
USD ($)
Debt Instrument [Line Items]                
Number of commercial products | product 2       2      
Net income (loss) $ 24,808,000 $ 31,262,000 $ 32,828,000 $ 49,744,000 $ 88,898,000 $ 102,142,000    
Cash used to fund operating activities         46,257,000 $ 39,104,000    
Convertible Notes                
Debt Instrument [Line Items]                
Principal amount of convertible notes $ 302,500,000       $ 302,500,000      
Debt instrument, stated interest rate percentage 2.00%       2.00%      
Loan aggregate amount $ 324,998,000       $ 324,998,000     $ 324,998,000
Note payable under term loan $ 331,498,000       $ 331,498,000      
Bridge Credit Agreement | Subsequent Event | Secured Debt                
Debt Instrument [Line Items]                
Loan aggregate amount             $ 72,500,000  
Intercompany Loan                
Debt Instrument [Line Items]                
Debt instrument, stated interest rate percentage 8.00%       8.00%      
Note payable under term loan $ 36,800,000       $ 36,800,000      
Intercompany Loan | Subsequent Event                
Debt Instrument [Line Items]                
Debt instrument, stated interest rate percentage             8.50%  
Note payable under term loan             $ 3,500,000