Income Taxes (Details) - USD ($) $ in Thousands |
12 Months Ended |
Dec. 31, 2016 |
Dec. 31, 2015 |
Dec. 31, 2014 |
| Income (loss) before income taxes: |
|
|
|
| Domestic |
$ 6,179
|
$ (933)
|
$ 7,464
|
| Foreign |
(2,009)
|
(451)
|
1,103
|
| Income (loss) before income taxes |
4,170
|
(1,384)
|
8,567
|
| Domestic |
|
|
|
| Federal |
400
|
154
|
76
|
| State |
232
|
45
|
52
|
| Foreign |
522
|
366
|
288
|
| Total current tax expense |
1,154
|
565
|
416
|
| Domestic |
|
|
|
| Federal |
2,679
|
822
|
1,761
|
| State |
(299)
|
5
|
30
|
| Foreign |
(939)
|
(296)
|
(5)
|
| Valuation allowance |
(11,379)
|
(828)
|
(1,791)
|
| Total deferred tax benefit |
(9,938)
|
(297)
|
(5)
|
| Total income tax expense (benefit) |
$ (8,784)
|
$ 268
|
$ 411
|
| Reconciliation from the U.S. statutory federal income tax rate to the effective income tax rate |
|
|
|
| U.S. federal statutory rate (as a percent) |
35.00%
|
34.00%
|
34.00%
|
| State taxes, net of federal benefit (as a percent) |
(18.40%)
|
(2.10%)
|
0.40%
|
| Stock-based compensation (as a percent) |
21.80%
|
(80.00%)
|
(2.10%)
|
| Research and development credits (as a percent) |
(0.90%)
|
|
(8.10%)
|
| Change in valuation allowance (as a percent) |
(247.10%)
|
59.50%
|
(20.60%)
|
| Non-deductible acquisition costs (as percent) |
3.30%
|
(21.20%)
|
|
| Return to provision adjustments (as a percent) |
(5.50%)
|
10.60%
|
(0.80%)
|
| Permanent items (as a percent) |
2.80%
|
(9.50%)
|
2.90%
|
| Differences in foreign tax rates (as a percent) |
(0.50%)
|
(11.90%)
|
(0.90%)
|
| Other, net (as a percent) |
(1.10%)
|
1.20%
|
|
| Effective income tax rate (as a percent) |
(210.60%)
|
(19.40%)
|
4.80%
|
| Deferred tax assets: |
|
|
|
| Reserves and accruals |
$ 2,957
|
$ 1,968
|
|
| Inventories |
1,826
|
1,469
|
|
| Net operating loss carryforwards |
15,357
|
22,076
|
|
| Property, plant and equipment |
1,492
|
1,609
|
|
| Intangible assets |
|
428
|
|
| Stock-based compensation |
4,116
|
2,727
|
|
| Research and development credit carryforwards |
5,757
|
5,366
|
|
| Other |
117
|
73
|
|
| Total deferred tax assets |
31,622
|
35,716
|
|
| Valuation allowance |
(23,843)
|
(35,222)
|
|
| Total deferred tax assets, net |
7,779
|
494
|
|
| Deferred tax liabilities: |
|
|
|
| Undistributed earnings of foreign subsidiaries |
(155)
|
(109)
|
|
| Intangible assets |
(6,708)
|
|
|
| Total deferred tax liabilities |
(6,863)
|
(109)
|
|
| Net deferred tax asset |
916
|
385
|
|
| Increase (decrease) in net valuation allowance |
$ (11,400)
|
$ (800)
|
|