QUARTERLY RESULTS OF OPERATIONS (UNAUDITED) (Details) - USD ($) $ / shares in Units, $ in Thousands, shares in Millions |
3 Months Ended | 12 Months Ended | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Jul. 31, 2016 |
Dec. 31, 2017 |
Sep. 30, 2017 |
[2] | Jun. 30, 2017 |
[3] | Mar. 31, 2017 |
Dec. 31, 2016 |
Sep. 30, 2016 |
Jun. 30, 2016 |
Mar. 31, 2016 |
Dec. 31, 2018 |
Dec. 31, 2017 |
Dec. 31, 2016 |
Dec. 31, 2015 |
|||||||||||||||||
Quarterly results of operations [Abstract] | |||||||||||||||||||||||||||||||
Revenues | $ 65,978 | [1] | $ 61,508 | $ 62,115 | $ 55,542 | $ 54,203 | $ 57,142 | $ 48,854 | $ 52,200 | $ 245,143 | $ 212,399 | $ 241,976 | |||||||||||||||||||
Gross profit | 9,966 | [1] | 9,870 | 11,107 | 10,618 | 7,652 | 8,905 | 11,574 | 11,771 | 41,561 | 39,902 | 57,009 | |||||||||||||||||||
Net Income | $ 13,972 | [1] | $ 1,718 | $ 832 | $ 1,487 | $ (847) | $ 2,799 | $ 10,252 | $ 7,224 | $ 18,009 | $ 19,428 | $ 18,598 | |||||||||||||||||||
Basic EPS (in dollars per share) | $ 0.58 | [1],[4] | $ 0.07 | [4] | $ 0.03 | [4] | $ 0.06 | [4] | $ (0.03) | [4] | $ 0.12 | [4] | $ 0.42 | [4] | $ 0.30 | [4] | $ 0.74 | [4] | $ 0.80 | [4] | $ 0.76 | ||||||||||
Diluted EPS (in dollars per share) | $ 0.56 | [1],[4] | $ 0.07 | [4] | $ 0.03 | [4] | $ 0.06 | [4] | $ (0.03) | [4] | $ 0.11 | [4] | $ 0.41 | [4] | $ 0.29 | [4] | $ 0.72 | [4] | $ 0.78 | [4] | $ 0.74 | ||||||||||
Bargain purchase gain from acquisition | $ 11,500 | $ 0 | $ 11,549 | $ 0 | |||||||||||||||||||||||||||
Shares issued by AMAK (in shares) | 4 | ||||||||||||||||||||||||||||||
Gain from equity issuance by AMAK | $ 3,200 | $ 0 | $ 3,168 | $ 0 | |||||||||||||||||||||||||||
Income Tax Disclosure [Line Items] | |||||||||||||||||||||||||||||||
Federal statutory rate | 35.00% | 35.00% | 35.00% | ||||||||||||||||||||||||||||
Change in tax rate, income tax benefit | $ 10,300 | ||||||||||||||||||||||||||||||
Plan [Member] | |||||||||||||||||||||||||||||||
Income Tax Disclosure [Line Items] | |||||||||||||||||||||||||||||||
Federal statutory rate | 21.00% | ||||||||||||||||||||||||||||||
|