v3.6.0.2
INCOME TAXES - Effective Income Tax Rate Reconciliation (Details) - USD ($)
$ 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
Income Tax Disclosure [Abstract]                      
U.S. federal taxes at statutory tax rate                 $ (12,458) $ (14,915) $ (9,723)
State taxes, net of federal benefit                 15 (26) 61
Change in valuation allowance                 8,618 11,637 6,146
Foreign tax rate differential                 3,334 2,752 2,509
Warrant revaluation                 0 0 (31)
Stock-based compensation                 1,805 1,775 2,025
Tax credits                 (947) (785) (627)
Other                 (98) (86) 81
Total income tax provision $ (29) $ 85 $ 68 $ 145 $ (70) $ 215 $ 99 $ 108 $ 269 $ 352 $ 441