Net Loss per Share - Potentially Dilutive Shares (Details) - shares |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2019 |
Dec. 31, 2018 |
Dec. 31, 2017 |
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | |||
| Potentially dilutive shares not included in diluted per share calculations | 10,933 | 10,589 | 10,431 |
| Employee and non-employee stock options | |||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | |||
| Potentially dilutive shares not included in diluted per share calculations | 8,497 | 9,463 | 9,963 |
| Restricted stock units | |||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | |||
| Potentially dilutive shares not included in diluted per share calculations | 2,404 | 1,084 | 389 |
| Employee stock purchase plan | |||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | |||
| Potentially dilutive shares not included in diluted per share calculations | 32 | 42 | 79 |