Stockholders' Equity (Deficit) - Equity Incentive Plans - Additional Information (Details) - USD ($) $ / shares in Units, $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2018 |
Dec. 31, 2017 |
Dec. 31, 2016 |
|
| Class Of Stock [Line Items] | |||
| Stock options expiration term | 10 years | ||
| 2008 Plan | |||
| Class Of Stock [Line Items] | |||
| Percentage Of Voting Rights | 10.00% | ||
| Stock option vesting period | 4 years | ||
| Stock options expiration term | 10 years | ||
| 2008 Plan | Minimum | 10% Shareholder | |||
| Class Of Stock [Line Items] | |||
| Stock option fair market value at the date of grant, percent | 110.00% | ||
| 2017 Plan | |||
| Class Of Stock [Line Items] | |||
| Stock option vesting period | 4 years | ||
| Stock options expiration term | 10 years | ||
| Equity Incentive Plan | |||
| Class Of Stock [Line Items] | |||
| Weighted average grant-date fair value of options granted | $ 22.96 | $ 3.73 | $ 2.71 |
| Intrinsic value of share based options exercised | $ 445.9 | $ 20.4 | $ 0.4 |