Annual report pursuant to Section 13 and 15(d)

Net Income (Loss) Per Share - Schedule of Shares Excluded From Computation of Diluted Net Income (Loss) Per Share (Details)

v3.8.0.1
Net Income (Loss) Per Share - Schedule of Shares Excluded From Computation of Diluted Net Income (Loss) Per Share (Details) - shares
shares in Thousands
12 Months Ended
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of net loss per share 16,505 11,796 14,560
Warrants      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of net loss per share 1,251 1,251 1,251
Outstanding stock options      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of net loss per share 13,803 8,981 12,631
Unvested restricted stock units      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of net loss per share 1,451 1,564 599
ESPP      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of net loss per share 0 0 79