STOCKHOLDERS' EQUITY - Common Stock Reserved for Future Issuance (Details) - shares |
Jun. 30, 2017 |
Dec. 31, 2016 |
|---|---|---|
| Class of Stock [Line Items] | ||
| Total reserved shares of common stock for future issuance | 19,054,869 | |
| Employee Stock Options and Restricted Stock Units | ||
| Class of Stock [Line Items] | ||
| Options and Restricted Stock Units issued and outstanding | 10,396,671 | |
| 2014 Equity Incentive Plan | ||
| Class of Stock [Line Items] | ||
| Shares reserved for issuance under share-based compensation plan | 6,645,767 | 5,116,753 |
| Employee Stock Purchase Plan | ||
| Class of Stock [Line Items] | ||
| Shares reserved for issuance under share-based compensation plan | 2,012,431 |