XML 31 R20.htm IDEA: XBRL DOCUMENT v3.19.1
SIGNIFICANT ACCOUNTING POLICIES (Details 2) - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2018
Mar. 31, 2017
Dec. 31, 2017
Dec. 31, 2016
Significant Accounting Policies [Line Items]        
Net loss $ (7,239) $ (59,148)    
Balance (35,442) (68,470) $ (29,457) $ (9,957)
Accumulated Deficit [Member]        
Significant Accounting Policies [Line Items]        
Net loss (7,239) (59,148)    
Balance (303,335) $ (271,804) $ (296,096) $ (212,656)
Previously Reported [Member]        
Significant Accounting Policies [Line Items]        
Net loss (9,400)      
Balance (39,439)      
Previously Reported [Member] | Accumulated Deficit [Member]        
Significant Accounting Policies [Line Items]        
Balance (307,332)      
Restatement Adjustment [Member]        
Significant Accounting Policies [Line Items]        
Net loss 2,161      
Balance 3,997      
Restatement Adjustment [Member] | Accumulated Deficit [Member]        
Significant Accounting Policies [Line Items]        
Balance $ 3,997