Quarterly report pursuant to Section 13 or 15(d)

Equity Incentive Plans, Employee Stock Purchase Plan and Stock-Based Compensation - Schedule of Fair Value of ESPP Shares Using Option Pricing Model (Details)

v3.21.2
Equity Incentive Plans, Employee Stock Purchase Plan and Stock-Based Compensation - Schedule of Fair Value of ESPP Shares Using Option Pricing Model (Details)
6 Months Ended
Jun. 30, 2021
Jun. 30, 2020
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]    
Expected volatility, Minimum 84.60% 73.20%
Expected volatility, Maximum 84.90% 84.00%
2018 Employee Stock Purchase Plan    
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]    
Expected term (in years) 6 months 6 months
Expected volatility   63.00%
Expected volatility, Minimum 72.50%  
Expected volatility, Maximum 111.40%  
Risk-free interest rate 0.10% 1.90%