Annual report pursuant to Section 13 and 15(d)

Income Taxes - Income before Income Tax (Details)

v3.8.0.1
Income Taxes - Income before Income Tax (Details) - USD ($)
$ in Thousands
3 Months Ended 12 Months Ended
Dec. 31, 2017
Sep. 30, 2017
Jun. 30, 2017
Mar. 31, 2017
Dec. 31, 2016
Sep. 30, 2016
Jun. 30, 2016
Mar. 31, 2016
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Income Tax Disclosure [Abstract]                      
United States                 $ (336,278) $ (119,549) $ (9,949)
Foreign                 (25,723) (38,294) 9,444
Loss before income taxes $ (150,285) $ (48,815) $ (40,106) $ (122,795) $ (90,458) $ (30,709) $ (37,424) $ 748 $ (362,001) $ (157,843) $ (505)