EQUITY (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 12 Months Ended
Oct. 31, 2016
USD ($)
$ / shares
shares
Jan. 31, 2016
USD ($)
$ / shares
shares
May 31, 2015
USD ($)
$ / shares
shares
Apr. 30, 2015
Mar. 31, 2015
USD ($)
shares
Dec. 31, 2016
USD ($)
$ / shares
shares
Dec. 31, 2015
USD ($)
$ / shares
shares
Dec. 31, 2014
shares
Equity                
Authorized common stock (in shares)           100,000,000 100,000,000  
Par value of common stock (in dollars per share) | $ / shares           $ 0.001 $ 0.001  
Common stock issued (in shares)           29,364,100 20,739,351  
Net proceeds from public offering | $           $ 137,340 $ 72,029  
Common stock outstanding (in shares)           29,364,100 20,739,351  
Authorized preferred stock (in shares)               54,481,000
Common stock split ratio       0.1449        
Common stock reserved for future issuance (in shares)           3,714 2,844  
Employee stock purchase plan                
Equity                
Common stock reserved for future issuance (in shares)           364 200  
Initial public offering                
Equity                
Public offering of common stock, net of issuance costs, shares 5,750,000 2,750,000 6,670,000          
Issue price (in dollars per share) | $ / shares $ 16.00 $ 20.00 $ 12.00          
Net proceeds from IPO | $ $ 86,166 $ 51,174 $ 72,029          
Conversion into common stock     12,591,463          
Underwriters over-allotment option                
Equity                
Public offering of common stock, net of issuance costs, shares     870,000          
Employee stock options                
Equity                
Common stock reserved for future issuance (in shares)           3,348 2,642  
Warrants                
Equity                
Common stock reserved for future issuance (in shares)           2 2  
Series A convertible redeemable preferred stock                
Equity                
Preferred stock issued (in shares)               9,232,334
Preferred stock outstanding (in shares)               9,232,334
Series B convertible redeemable preferred stock                
Equity                
Preferred stock issued (in shares)               27,324,237
Preferred stock outstanding (in shares)               27,324,237
Series C convertible redeemable preferred stock                
Equity                
Preferred stock issued (in shares)               8,658,008
Preferred stock outstanding (in shares)               8,658,008
Series D convertible redeemable preferred stock                
Equity                
Aggregate consideration | $         $ 50,000   $ 44,807  
Proceeds from Issuance of Convertible Preferred Stock | $         $ 45,000      
Conversion into bridge notes         5,000,000      
Public offering of common stock, net of issuance costs, shares         4,166,667