XML 72 R58.htm IDEA: XBRL DOCUMENT v3.10.0.1
Debt (Details) - USD ($)
Jun. 30, 2018
Jun. 01, 2018
Dec. 31, 2017
Convertible Notes Payable      
Debt Instrument [Line Items]      
Face amount of the Notes $ 158,750,000   $ 143,750,000
Less unamortized discounts and debt issuance costs 28,871,000   22,773,000
Carrying amount of the Notes 129,879,000   120,977,000
Convertible Note 2019      
Debt Instrument [Line Items]      
Face amount of the Notes 68,660,000   143,750,000
Convertible Note 2019 | Convertible Notes Payable      
Debt Instrument [Line Items]      
Face amount of the Notes 68,660,000   143,750,000
Term Loan 2021      
Debt Instrument [Line Items]      
Face amount of the Notes 15,000,000 $ 25,000,000  
Term Loan 2021 | Convertible Notes Payable      
Debt Instrument [Line Items]      
Face amount of the Notes 15,000,000   0
Convertible Note 2023      
Debt Instrument [Line Items]      
Face amount of the Notes 75,090,000    
Less unamortized discounts and debt issuance costs 400,000    
Convertible Note 2023 | Convertible Notes Payable      
Debt Instrument [Line Items]      
Face amount of the Notes $ 75,090,000   $ 0