v3.7.0.1
STOCK-BASED COMPENSATION - Stock-based Compensation Expense (Details) - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2017
Mar. 31, 2016
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]    
Total stock-based compensation $ 3,553 $ 4,896
Stock Options    
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]    
Total stock-based compensation 883 1,146
Unrecognized stock-based compensation expense $ 5,000  
Period of recognition of unrecognized stock-based compensation expense 1 year 11 months 16 days  
Restricted Stock Units (RSUs)    
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]    
Total stock-based compensation $ 2,270 3,147
Unrecognized stock-based compensation expense $ 20,700  
Period of recognition of unrecognized stock-based compensation expense 2 years 4 days  
ESPP    
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]    
Total stock-based compensation $ 400 603
Unrecognized stock-based compensation expense $ 1,000  
Period of recognition of unrecognized stock-based compensation expense 8 months 1 day  
Cost of revenue    
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]    
Total stock-based compensation $ 271 272
Research and development    
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]    
Total stock-based compensation 688 1,345
Sales and marketing    
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]    
Total stock-based compensation 1,294 1,768
General and administrative    
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]    
Total stock-based compensation $ 1,300 $ 1,511