Condensed Consolidated Statement of Stockholders' Equity (Unaudited) - USD ($)
shares in Thousands, $ in Thousands
Total
Common Stock
Class A common stock
Common Stock
Class B common stock
Additional Paid-in Capital
Accumulated Other Comprehensive Loss
Accumulated Deficit
Increase (Decrease) in Stockholders' Equity [Roll Forward]            
Cumulative-effect adjustment resulting from adoption of ASU 2014-09 (Note 2) $ 2,964         $ 2,964
Beginning balance (in shares) at Dec. 31, 2017   14,879 19,102      
Beginning balance at Dec. 31, 2017 $ 85,079 $ 1 $ 3 $ 152,531 $ (209) (67,247)
Increase (Decrease) in Stockholders' Equity [Roll Forward]            
Exercise of stock options (in shares) 98 98        
Exercise of stock options $ 470     470    
Stock-based compensation 1,495     1,495    
Vesting of restricted stock units, net of shares withheld for taxes (in shares)   68        
Vesting of restricted stock units, net of shares withheld for taxes (1,650)     (1,650)    
Vesting of early exercised shares 9     9    
Conversion of Class B stock to Class A stock (in shares)   47 (47)      
Conversion of Class B stock to Class A stock 0          
Other comprehensive loss (148)       (148)  
Net income 4,320         4,320
Ending balance (in shares) at Mar. 31, 2018   15,092 19,055      
Ending balance at Mar. 31, 2018 $ 92,539 $ 1 $ 3 $ 152,855 $ (357) $ (59,963)