| 16 . | INCOME TAXES: |
| Year Ended December 31, | ||||||||||||
| 201 7 | 201 6 | 201 5 | ||||||||||
| Current : | ||||||||||||
| Federa l | $ | (454 | ) | $ | (740 | ) | $ | (5,076 | ) | |||
| Stat e | 49 | (102 | ) | 35 | ||||||||
| Total current income tax benefi t | (405 | ) | (842 | ) | (5,041 | ) | ||||||
| Deferred : | ||||||||||||
| Federa l | (766 | ) | (2,883 | ) | (5,524 | ) | ||||||
| Stat e | 71 | (373 | ) | 2,042 | ||||||||
| Total deferred income tax benefi t | (695 | ) | (3,256 | ) | (3,482 | ) | ||||||
| $ | (1,100 | ) | $ | (4,098 | ) | $ | (8,523 | ) | ||||
| Year Ended December 31, | ||||||||||||
| 201 7 | 201 6 | 201 5 | ||||||||||
| Income tax benefit at federal statutory rate of 35 % | $ | (3,322 | ) | $ | (3,755 | ) | $ | (9,133 | ) | |||
| State benefit, net of federal income tax effec t | (472 | ) | (286 | ) | (440 | ) | ||||||
| Federal and state income tax credit s | 36 | (154 | ) | (5,060 | ) | |||||||
| Disallowed domestic manufacturing deductio n | - | - | 630 | |||||||||
| Change in valuation allowanc e | 1,570 | 585 | 2,059 | |||||||||
| Excess income tax shortfall on share-based compensatio n | 765 | - | - | |||||||||
| Effect of Tax Cuts and Jobs Act of 201 7 | 874 | - | - | |||||||||
| Uncertain income tax position s | (562 | ) | (4 | ) | 1,275 | |||||||
| Goodwill impairment (nondeductible ) | - | - | 1,849 | |||||||||
| Nondeductible expense s | 63 | 63 | 91 | |||||||||
| Nontaxable adjustment to contingent consideratio n | - | (580 | ) | 103 | ||||||||
| Othe r | (52 | ) | 33 | 103 | ||||||||
| Income tax benefi t | $ | (1,100 | ) | $ | (4,098 | ) | $ | (8,523 | ) | |||
| Effective income tax rat e | (11.6 | )% | (37.8 | )% | (32.4 | )% | ||||||
| December 31 , | ||||||||
| 201 7 | 201 6 | |||||||
| Deferred income tax assets : | ||||||||
| Costs and estimated earnings in excess of billings on uncompleted contracts, ne t | $ | - | $ | 1,270 | ||||
| Accrued employee benefit s | 2,806 | 5,025 | ||||||
| Inventorie s | 296 | 563 | ||||||
| Trade receivable, ne t | 105 | 199 | ||||||
| Net operating loss carryforward s | 9,850 | 15,637 | ||||||
| Tax credit carryforward s | 5,478 | 5,069 | ||||||
| Other asset s | 1,201 | 1,830 | ||||||
| Othe r | 81 | 1,018 | ||||||
19,817 | 30,611 | |||||||
| Valuation allowanc e | (10,413 | ) | (8,217 | ) | ||||
9,404 | 22,394 | |||||||
| Deferred income tax liabilities : | ||||||||
| Costs and estimated earnings in excess of billings on uncompleted contracts, ne t | (110 | ) | - | |||||
| Property and equipmen t | (9,524 | ) | (22,380 | ) | ||||
| Intangible asset s | (433 | ) | (819 | ) | ||||
| Prepaid expense s | (278 | ) | (477 | ) | ||||
(10,345 | ) | (23,676 | ) | |||||
| Net deferred income tax liabilitie s | $ | (941 | ) | $ | (1,282 | ) | ||
| Year Ended December 31, | ||||||||||||
| 201 7 | 201 6 | 201 5 | ||||||||||
| Unrecognized income tax benefits, beginning of yea r | $ | 4,874 | $ | 4,874 | $ | 2,313 | ||||||
| Decreases for lapse in statute of limitation s | (520 | ) | - | (1,199 | ) | |||||||
| Increases for positions taken in prior year s | - | - | 3,716 | |||||||||
| Decreases for positions taken in prior years | (238 | ) | - | - | ||||||||
| Increases for positions taken in the current yea r | - | - | 44 | |||||||||
| Unrecognized income tax benefits, end of yea r | $ | 4,116 | $ | 4,874 | $ | 4,874 | ||||||