v3.19.1
RECENTLY ADOPTED ACCOUNTING STANDARDS IMPACTS OF ADOPTING ASC 606 AND ASU 2016-18 ON THE CONSOLIDATED STATEMENT OF CASH FLOWS (Details) - USD ($)
$ in Thousands
3 Months Ended 12 Months Ended
Dec. 31, 2018
Sep. 30, 2018
Jun. 30, 2018
Mar. 31, 2018
Dec. 31, 2017
Sep. 30, 2017
Jun. 30, 2017
Mar. 31, 2017
Dec. 31, 2018
Dec. 31, 2017
Dec. 31, 2016
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                      
Net loss $ 7,634 $ 3,350 $ (958) $ 1,757 $ (1,636) $ (1,445) $ (5,819) $ (13,667) $ 11,783 $ (22,567) $ (64,183)
Lower of cost or net realizable value inventory adjustments 930 $ 0 $ 76 705 1,571 $ 666 $ 317 3,825 1,711 6,379 20,374
Changes in certain assets and liabilities                   (9,603) (18,776)
Net cash provided by (used in) operating activities                 64,237 16,693 (14,741)
Debt prepayment costs               (3,001) (402) (3,001) 0
Net cash used in financing activities               (15,760) (15,301) (15,760) (19,083)
Net (decrease) increase in cash, cash equivalents and restricted cash                 32,155 (6,921) (1,314)
Cash, Cash Equivalents, and Restricted Cash, beginning of period       1,549       8,470 1,549 8,470 9,784
Cash, Cash Equivalents, and Restricted Cash, end of period $ 33,704       1,549       33,704 1,549 8,470
Previously Reported [Member]                      
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                      
Net loss                   (22,910) (66,633)
Lower of cost or net realizable value inventory adjustments                   7,324  
Changes in certain assets and liabilities                   (9,681) (19,856)
Net cash provided by (used in) operating activities                   17,217 (18,271)
Debt prepayment costs                   0  
Net cash used in financing activities                   (12,759)  
Net (decrease) increase in cash, cash equivalents and restricted cash                   (3,396) (4,844)
Cash, Cash Equivalents, and Restricted Cash, beginning of period       1,068       4,464 1,068 4,464 9,308
Cash, Cash Equivalents, and Restricted Cash, end of period         1,068         1,068 4,464
Accounting Standards Update 2014-09 [Member] | Restatement Adjustment [Member]                      
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                      
Net loss                   343 2,450
Lower of cost or net realizable value inventory adjustments                   (945)  
Changes in certain assets and liabilities                   602 (2,450)
Net cash provided by (used in) operating activities                   0 0
Debt prepayment costs                   0  
Net cash used in financing activities                   0  
Net (decrease) increase in cash, cash equivalents and restricted cash                   0 0
Cash, Cash Equivalents, and Restricted Cash, beginning of period       0       0 0 0 0
Cash, Cash Equivalents, and Restricted Cash, end of period         0         0 0
Accounting Standards Update 2016-15 [Member] | Restatement Adjustment [Member]                      
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                      
Net loss                   0 0
Lower of cost or net realizable value inventory adjustments                   0  
Changes in certain assets and liabilities                   (3,001) 0
Net cash provided by (used in) operating activities                   3,001 0
Debt prepayment costs                   (3,001)  
Net cash used in financing activities                   (3,001)  
Net (decrease) increase in cash, cash equivalents and restricted cash                   0 0
Cash, Cash Equivalents, and Restricted Cash, beginning of period       0       0 0 0 0
Cash, Cash Equivalents, and Restricted Cash, end of period         0         0 0
Accounting Standards Update 2016-18 [Member] | Restatement Adjustment [Member]                      
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                      
Net loss                   0 0
Lower of cost or net realizable value inventory adjustments                   0  
Changes in certain assets and liabilities                   (3,525) 3,530
Net cash provided by (used in) operating activities                   (3,525) 3,530
Debt prepayment costs                   0  
Net cash used in financing activities                   0  
Net (decrease) increase in cash, cash equivalents and restricted cash                   3,525 3,530
Cash, Cash Equivalents, and Restricted Cash, beginning of period       $ 481       $ 4,006 $ 481 4,006 476
Cash, Cash Equivalents, and Restricted Cash, end of period         $ 481         $ 481 $ 4,006