Income Taxes (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2015
Dec. 31, 2014
Dec. 31, 2013
Income (loss) before income taxes:      
Domestic $ (933) $ 7,464 $ 3,633
Foreign (451) 1,103 118
Income (loss) before income taxes (1,384) 8,567 3,751
Domestic      
Federal 154 76 64
State 45 52 53
Foreign 366 288 147
Total current tax expense 565 416 264
Domestic      
Federal 822 1,761 1,572
State 5 30 44
Foreign (296) (5) (16)
Valuation allowance (828) (1,791) (1,616)
Total deferred tax benefit (297) (5) (16)
Total income tax expense $ 268 $ 411 $ 248
Reconciliation from the U.S. statutory federal income tax rate to the effective income tax rate      
U.S. federal statutory rate (as a percent) 34.00% 34.00% 34.00%
State taxes, net of federal benefit (as a percent) (2.10%) 0.40% 1.10%
Stock-based compensation (as a percent) (80.00%) (2.10%) 22.70%
Stock warrant (as a percent)     6.40%
Research and development credits (as a percent)   (8.10%) (18.30%)
Change in valuation allowance (as a percent) 59.50% (20.60%) (42.00%)
Non-deductible acquisition costs (as percent) (21.20%)    
Return to provision adjustments (as a percent) 10.60% (0.80%) (1.60%)
Permanent items (as a percent) (9.50%) 2.90% 4.00%
Differences in foreign tax rates (as a percent) (11.90%) (0.90%) 2.20%
Other, net (as a percent) 1.20%   (1.90%)
Effective income tax rate (as a percent) (19.40%) 4.80% 6.60%
Deferred Tax Assets:      
Reserves and accruals $ 1,968 $ 1,449  
Inventories 1,469 1,063  
Net operating loss carryforwards 22,076 25,007  
Property, plant and equipment 1,609 1,831  
Intangible assets 428    
Stock-based compensation 2,727 1,540  
Research and development credit carryforwards 5,366 5,243  
Other 73    
Total deferred tax assets 35,716 36,133  
Valuation allowance (35,222) (36,050)  
Total deferred tax assets, net 494 83  
Deferred Tax Liabilities:      
Undistributed earnings of foreign subsidiaries (109) (56)  
Intangible Assets   (116)  
Property and equipment   (16)  
Total deferred tax liabilities (109) (188)  
Net deferred tax asset 385    
Net deferred tax liability   (105)  
Increase (decrease) in net valuation allowance $ (800) $ (1,800)