v3.7.0.1
Net Loss per Share - Potentially Dilutive Shares (Details) - shares
shares in Thousands
6 Months Ended
Jun. 30, 2017
Jun. 30, 2016
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Potentially dilutive shares not included in diluted per share calculations 10,797 10,048
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 9,951 9,411
Warrants to purchase common stock    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Potentially dilutive shares not included in diluted per share calculations 377 377
Restricted stock units    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Potentially dilutive shares not included in diluted per share calculations 383 187
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 86 73