XML 71 R51.htm IDEA: XBRL DOCUMENT v3.20.4
Long-Term Debt - Additional Information (Details)
1 Months Ended 3 Months Ended 12 Months Ended
Mar. 31, 2020
USD ($)
Oct. 31, 2018
USD ($)
$ / shares
shares
Jun. 30, 2020
USD ($)
Dec. 31, 2020
USD ($)
day
$ / shares
Dec. 31, 2019
USD ($)
$ / shares
Dec. 31, 2018
USD ($)
Jun. 30, 2019
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        
Equity component of convertible notes, net     $ 58,543,000            
Share price | $ / shares       $ 66.88          
Debt instrument, convertible, if-converted value in excess of principal       $ 91,700,000          
Interest expense       15,400,000          
Interest expense       15,408,000 $ 8,487,000 $ 7,431,000      
Term Loan Agreement                  
Line of Credit Facility [Line Items]                  
Repayments of debt $ 88,600,000                
Line of credit facility, maximum borrowing capacity   $ 100,000,000.0              
Percentage of accrue interest   10.50%              
Percentage of deferred payment   3.00%              
Upfront debt fee, percentage   0.50%              
Percentage payment up on repayment of principal amount   2.00%              
Proceeds from lines of credit       80,000,000.0          
Warrants issued with debt | shares   341,578         128,932    
Exercise price of warrants (in dollars per share) | $ / shares   $ 21.12     $ 34.20        
Interest expense         $ 8,500,000 $ 7,400,000      
Write off of deferred debt issuance cost       6,600,000          
Secured Revolving Loan Facility                  
Line of Credit Facility [Line Items]                  
Extinguishment of debt, termination fee       500,000          
Convertible Senior Notes Due 2025                  
Line of Credit Facility [Line Items]                  
Convertible debt, fair value       $ 169,500,000          
Debt conversion, original debt interest rate       9.35%          
Debt unamortized discount       $ 60,500,000          
Debt issuance costs, net       7,400,000          
Equity component of convertible notes, net       58,500,000          
Equity component       1,900,000          
Liability component       $ 5,500,000          
Debt term       5 years          
Convertible Senior Notes Due 2025 | Senior Notes                  
Line of Credit Facility [Line Items]                  
Debt instrument, face amount $ 230,000,000.0                
Debt stated rate 2.625%     2.625%          
Proceeds from issuance of debt $ 222,600,000                
Debt instrument conversion ratio       20.9161          
Common stock, par value (in dollars per share) | $ / shares       $ 0.0001          
Conversion price (in dollars per share) | $ / shares       $ 47.81          
Threshold consecutive trading days | day       30          
Percentage of redemption fee       100.00%          
Convertible Senior Notes Due 2025 | Senior Notes | Convertible Debt Triggering Event 1                  
Line of Credit Facility [Line Items]                  
Threshold trading days | day       20          
Threshold consecutive trading days | day       30          
Percentage of stock price trigger       130.00%          
Convertible Senior Notes Due 2025 | Senior Notes | Convertible Debt Triggering Event 2                  
Line of Credit Facility [Line Items]                  
Threshold trading days | day       5          
Threshold consecutive trading days | day       5          
Percentage of stock price trigger       98.00%          
Revolving Credit Facility | Secured Revolving Loan Facility                  
Line of Credit Facility [Line Items]                  
Line of credit facility, maximum borrowing capacity               $ 20,000,000.0 $ 15,000,000.0
Credit facility, outstanding       $ 0          
Debt Instrument, Redemption, Period One | Term Loan Agreement                  
Line of Credit Facility [Line Items]                  
Current borrowing capacity     $ 20,000,000.0