| 9 . | Taxes |
| 2017 | 2016 | 2015 | ||||||||||
| Domestic operations | $ | 12,388 | $ | 12,604 | $ | 12,463 | ||||||
| Foreign operations | 846 | (285 | ) | (397 | ) | |||||||
| $ | 13,234 | $ | 12,319 | $ | 12,066 | |||||||
| 2017 | 2016 | 2015 | ||||||||||
| Current: | ||||||||||||
| Federal | $ | 4,623 | $ | 3,415 | $ | 4,237 | ||||||
| State | 552 | (10 | ) | 65 | ||||||||
| International | 178 | - | - | |||||||||
5,353 | 3,405 | 4,302 | ||||||||||
| Deferred: | ||||||||||||
| Federal | (492 | ) | 1,040 | 170 | ||||||||
| State | (58 | ) | 275 | 210 | ||||||||
| International | (85 | ) | - | - | ||||||||
(635 | ) | 1,315 | 380 | |||||||||
| Total provision for income taxes | $ | 4,718 | $ | 4,720 | $ | 4,682 | ||||||
| 2017 | 2016 | 2015 | ||||||||||
| Provision at federal statutory rates | $ | 4,632 | $ | 4,336 | $ | 4,223 | ||||||
| State income taxes, net | 321 | 171 | 179 | |||||||||
| Meals and entertainment | 135 | 122 | 135 | |||||||||
| International | (134 | ) | - | - | ||||||||
| Other | (236 | ) | 42 | 57 | ||||||||
| Excess tax basis of subsidiary | - | - | - | |||||||||
| Valuation allowances | - | 49 | 88 | |||||||||
| $ | 4,718 | $ | 4,720 | $ | 4,682 | |||||||
| 2017 | 2016 | |||||||
| Deferred tax assets: | ||||||||
| Stock compensation costs | $ | 1,939 | $ | 686 | ||||
| Reserves and accruals | 1,083 | 1,461 | ||||||
| Net operating loss carryforward | 714 | 792 | ||||||
| Credits | 529 | 624 | ||||||
| Intangible assets | - | 109 | ||||||
| Other | 214 | 91 | ||||||
4,479 | 3,763 | |||||||
| Less: valuation allowance | (709 | ) | (871 | ) | ||||
| Total deferred tax assets | 3,770 | 2,892 | ||||||
| Deferred tax liabilities: | ||||||||
| Property and equipment | (479 | ) | (500 | ) | ||||
| Intangibles | (181 | ) | - | |||||
| Other | (246 | ) | (163 | ) | ||||
| Total deferred tax liabilities | (906 | ) | (663 | ) | ||||
| Net deferred tax assets | $ | 2,864 | $ | 2,229 | ||||
| Unrecognized tax benefits balance at June 30, 2015 | $ | 289 | ||
| Gross increases for tax positions of prior years | ||||
| Gross decreases for tax positions of prior years | (1 | ) | ||
| Gross increases for tax positions of current year | - | |||
| Settlements | - | |||
| Lapse of statute of limitations | - | |||
| Unrecognized tax benefits balance at June 30, 2016 | 288 | |||
| Gross increases for tax positions of prior years | - | |||
| Gross decreases for tax positions of prior years | - | |||
| Gross increases for tax positions of current year | - | |||
| Settlements | - | |||
| Lapse of statute of limitations | - | |||
| Unrecognized tax benefits balance at June 30, 2017 | $ | 288 |