XML 13 R37.htm IDEA: XBRL DOCUMENT v3.20.1
Long-term Debt - Additional Information (Details)
1 Months Ended 3 Months Ended
Oct. 31, 2018
USD ($)
$ / shares
shares
Mar. 31, 2020
USD ($)
day
$ / shares
Mar. 31, 2019
USD ($)
Dec. 31, 2019
USD ($)
$ / shares
shares
Nov. 30, 2018
USD ($)
Jan. 31, 2018
USD ($)
Line of Credit Facility [Line Items]            
Common stock, par value (in dollars per share) | $ / shares   $ 0.0001   $ 0.0001    
Convertible Notes            
Line of Credit Facility [Line Items]            
Convertible debt fair value   $ 169,500,000        
Interest rate of debt   9.35%        
Unamortized discount   $ 60,500,000        
Debt issuance costs   7,400,000        
Debt issuance cost, equity component   1,900,000        
Debt issuance cost, liability component   $ 5,500,000        
Debt term   5 years        
Term Loan Agreement            
Line of Credit Facility [Line Items]            
Repayments of debt   $ 88,600,000        
Credit facility, maximum borrowing capacity $ 100,000,000.0          
Upfront fee of principal amount 0.50%          
Proceeds from line of credit   80,000,000.0        
Warrants issued with debt | shares 341,578     128,932    
Exercise price | $ / shares $ 21.12     $ 34.20    
Interest expense   1,800,000 $ 1,700,000      
Write off of costs   6,600,000        
CRG Servicing LLC Amended And Restated Loan Agreement [Member]            
Line of Credit Facility [Line Items]            
Percentage of accrue interest 10.50%          
Percentage of deferred payment 3.00%          
Commitment fee percentage 2.00%          
Secured Revolving Loan Facility            
Line of Credit Facility [Line Items]            
Termination fee   500,000        
Revolving Credit Facility | Secured Revolving Loan Facility            
Line of Credit Facility [Line Items]            
Credit facility, maximum borrowing capacity         $ 20,000,000.0 $ 15,000,000.0
Long-term Line of Credit   0        
Debt Instrument, Redemption, Period One [Member] | Term Loan Agreement            
Line of Credit Facility [Line Items]            
Current borrowing capacity       $ 20,000,000.0    
Senior Notes | Convertible Notes            
Line of Credit Facility [Line Items]            
Debt instrument face amount   $ 230,000,000.0        
Debt instrument stated rate   2.625%        
Proceeds from issuance of debt   $ 222,600,000        
Common stock, par value (in dollars per share) | $ / shares   $ 0.0001        
Conversion ratio   0.0209161        
Conversion price | $ / shares   $ 47.81        
Threshold consecutive trading days | day   30        
Redemption price percentage   100.00%        
Triggering Event 1 | Senior Notes | Convertible Notes            
Line of Credit Facility [Line Items]            
Threshold trading days | day   20        
Threshold consecutive trading days | day   30        
Threshold percentage of stock price trigger   130.00%        
Triggering Event 2 | Senior Notes | Convertible Notes            
Line of Credit Facility [Line Items]            
Threshold trading days | day   5        
Threshold consecutive trading days | day   5        
Threshold percentage of stock price trigger   98.00%