XML 91 R74.htm IDEA: XBRL DOCUMENT v3.22.0.1
Debt - Narrative (Details)
1 Months Ended 12 Months Ended
Jul. 09, 2020
USD ($)
Apr. 22, 2020
USD ($)
Jun. 30, 2021
USD ($)
Mar. 31, 2021
USD ($)
day
$ / shares
$ / item
Dec. 31, 2021
USD ($)
$ / shares
Dec. 31, 2020
USD ($)
$ / shares
Dec. 31, 2019
USD ($)
$ / shares
Mar. 04, 2021
$ / shares
Dec. 31, 2018
$ / shares
Debt Instrument [Line Items]                  
Unamortized debt issuance costs         $ 4,007,000        
Cap price (in USD per share) | $ / item       45.5350          
Premium over stock price (percent)       75.00%          
Stock price (in dollars per share) | $ / shares         $ 41.32 $ 24.11 $ 35.81 $ 26.02 $ 17.02
Capped-call transaction term, consecutive trading days | day       40          
Purchase of capped call       $ 16,100,000 $ 16,134,000 $ 0 $ 0    
Payment of issuance costs of convertible notes         4,717,000 0 0    
Amortization of debt issuance costs         710,000 0 0    
Interest on convertible notes         2,514,000 0 0    
Gain on extinguishment of PPP loan         7,185,000 $ 0 $ 0    
Convertible Senior Notes Due 2026                  
Debt Instrument [Line Items]                  
Convertible debt, conversion ratio       0.0301427          
Convertible Senior Notes Due 2026 | Common Stock                  
Debt Instrument [Line Items]                  
Conversion price (in dollars per share) | $ / shares       $ 33.18          
Convertible Senior Notes Due 2026 | Convertible Debt                  
Debt Instrument [Line Items]                  
Debt instrument, aggregate principal amount       $ 138,300,000          
Debt instrument, interest rate       2.25%          
Proceeds from convertible notes, net of unamortized debt issuance costs       $ 133,600,000          
Unamortized debt issuance costs         4,007,000        
Redemption price, percentage       100.00%          
Required outstanding amount not subject to redemption       $ 50,000,000          
Debt fair value         201,000,000        
Payment of issuance costs of convertible notes         4,700,000        
Amortization of debt issuance costs         $ 700,000        
Effective interest rate during period         2.97%        
Interest on convertible notes         $ 3,200,000        
Convertible Senior Notes Due 2026 | Convertible Debt | Debt Instrument, Redemption, Period One                  
Debt Instrument [Line Items]                  
Redemption price, percentage       100.00%          
Incremental repurchase amount       $ 1,000          
Convertible Senior Notes Due 2026, Second Conversion Trigger | Convertible Debt                  
Debt Instrument [Line Items]                  
Conversion threshold trading days | day       5          
Threshold consecutive trading days | day       5          
Conversion threshold percentage of stock price trigger       98.00%          
Convertible Senior Notes Due 2026, First Conversion Trigger | Convertible Debt                  
Debt Instrument [Line Items]                  
Conversion threshold trading days | day       20          
Threshold consecutive trading days | day       30          
Conversion threshold percentage of stock price trigger       130.00%          
Paycheck Protection Program CARES Act                  
Debt Instrument [Line Items]                  
Debt instrument, interest rate   1.00%              
Loan proceeds   $ 7,200,000              
Gain on extinguishment of PPP loan     $ 7,200,000            
Loan and Security Agreement | Revolving Credit Facility | Silicon Valley Bank                  
Debt Instrument [Line Items]                  
Debt instrument, interest rate 5.00%                
Debt instrument term 4 years                
Maximum borrowing capacity $ 30,000,000                
Qualifying accounts receivable 80.00%                
Commitment fee amount $ 300,000                
Anniversary fee amount 300,000                
Quarterly minimum revenue $ 90,000,000                
Loan and Security Agreement | Revolving Credit Facility | Silicon Valley Bank | Prime Rate                  
Debt Instrument [Line Items]                  
Basis spread on variable rate 1.75%