v3.10.0.1
Net income (loss) per share attributable to common stockholders (Details) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2018
Jun. 30, 2017
Jun. 30, 2018
Jun. 30, 2017
Apr. 01, 2013
Numerator:          
Net income (loss) attributable to common stockholders, basic and diluted $ 2,115 $ (8,017) $ (1,114) $ (14,897)  
Denominator:          
Weighted average common stock, basic (in shares) 41,961,000 39,286,000 41,645,000 38,997,000  
Weighted average common stock, diluted (in shares) 45,219,000 39,286,000 41,645,000 38,997,000  
Net income (loss) per share attributable to common stockholders:          
Basic (in dollars per share) $ 0.05 $ (0.20) $ (0.03) $ (0.38)  
Diluted (in dollars per share) $ 0.05 $ (0.20) $ (0.03) $ (0.38)  
Stock repurchase program          
Remaining approved amount for repurchases $ 5,180   $ 5,180    
RSUs          
Net income (loss) per share attributable to common stockholders:          
Shares of common stock excluded from the computation of diluted net income per share that were anti-dilutive 27,000        
Stock options          
Denominator:          
Effect of dilutive (in shares) 472,000 0 0 0  
RSUs          
Denominator:          
Effect of dilutive (in shares) 2,786,000 0 0 0  
Maximum          
Stock repurchase program          
Amount of common stock approved by the entity for a stock repurchase program         $ 10,000