Quarterly Financial Data (Unaudited) (Summary of Unaudited Quarterly Financial Data) (Details) - USD ($) $ / shares in Units, $ in Thousands |
3 Months Ended | 12 Months Ended | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Dec. 31, 2016 |
Sep. 30, 2016 |
Jun. 30, 2016 |
Mar. 31, 2016 |
Dec. 31, 2015 |
Sep. 30, 2015 |
Jun. 30, 2015 |
Mar. 31, 2015 |
Dec. 31, 2016 |
Dec. 31, 2015 |
Dec. 31, 2014 |
Dec. 31, 2013 |
Dec. 31, 2012 |
|
Quarterly Financial Information Disclosure [Abstract] | |||||||||||||
Revenues | $ 77,581 | $ 62,194 | $ 36,252 | $ 15,427 | $ 9,938 | $ 9,854 | $ 7,992 | $ 9,388 | $ 191,454 | $ 37,172 | $ 25,111 | ||
Gross profit | 50,064 | 40,287 | 30,058 | 8,414 | 8,915 | 8,434 | 7,306 | 8,622 | |||||
Income (loss) from operations | 38,883 | 7,264 | (25,136) | (49,135) | (31,600) | (35,781) | (31,280) | (22,760) | (28,124) | (121,421) | (224,458) | ||
Error Corrections and Prior Period Adjustments Restatement [Line Items] | |||||||||||||
Net income (loss) | $ 35,123 | $ (11,284) | $ (34,838) | $ (59,223) | $ (41,568) | $ (45,542) | $ (41,389) | $ (33,245) | $ (70,222) | $ (161,744) | $ (261,297) | $ (238,192) | $ (145,335) |
Net loss per share, basic and diluted (in dollars per share) | $ 0.12 | $ (0.04) | $ (0.15) | $ (0.26) | $ (0.18) | $ (0.21) | $ (0.21) | $ (0.17) | $ (0.28) | $ (0.77) | $ (1.34) | $ (1.29) | $ (0.91) |
Restatement Adjustment [Member] | |||||||||||||
Error Corrections and Prior Period Adjustments Restatement [Line Items] | |||||||||||||
Net income (loss) | $ 2,200 | $ 2,100 | $ 2,100 | $ 2,000 | $ 2,000 | $ 1,900 | |||||||
Net loss per share, basic and diluted (in dollars per share) | $ 0.01 | $ 0.01 | $ 0.01 | $ 0.01 | $ 0.01 | $ 0.01 |