Business, Basis of Presentation and Significant Accounting Policies - Summary of Consolidated Statement of Operations Line Items, which Reflect Adoption of New Revenue Recognition Guidance (Detail) - USD ($) $ / shares in Units, $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jun. 30, 2018 |
Jun. 30, 2017 |
Jun. 30, 2018 |
Jun. 30, 2017 |
|
| Revenue, Initial Application Period Cumulative Effect Transition [Line Items] | ||||
| Net sales | $ 199,685 | $ 166,685 | $ 365,504 | $ 328,395 |
| Cost of sales | 145,831 | 120,023 | 267,069 | 240,163 |
| Gross profit | 53,854 | 46,662 | 98,435 | 88,232 |
| Operating income | 13,914 | 9,742 | 21,293 | 16,109 |
| Income (loss) before income tax expenses | (19,984) | (7,521) | (16,231) | 37,070 |
| Net income (loss) | $ (21,505) | $ (8,059) | $ (18,742) | $ 35,679 |
| Earnings (loss) per common share- | ||||
| Basic | $ (0.62) | $ (0.24) | $ (0.55) | $ 1.06 |
| Diluted | $ (0.62) | $ (0.24) | $ (0.55) | $ 0.87 |
| Adjustments [Member] | Accounting Standards Update 2014-09 [Member] | ||||
| Revenue, Initial Application Period Cumulative Effect Transition [Line Items] | ||||
| Net sales | $ (1,526) | $ (887) | ||
| Cost of sales | (2,070) | (2,010) | ||
| Gross profit | 544 | 1,123 | ||
| Operating income | 544 | 1,123 | ||
| Income (loss) before income tax expenses | 544 | 1,123 | ||
| Net income (loss) | $ 544 | $ 1,123 | ||
| Earnings (loss) per common share- | ||||
| Basic | $ 0.02 | $ 0.03 | ||
| Diluted | $ 0.02 | $ 0.03 | ||
| Amounts Without Adoption of the New Revenue Standard [Member] | Accounting Standards Update 2014-09 [Member] | ||||
| Revenue, Initial Application Period Cumulative Effect Transition [Line Items] | ||||
| Net sales | $ 201,211 | $ 366,391 | ||
| Cost of sales | 147,901 | 269,079 | ||
| Gross profit | 53,310 | 97,312 | ||
| Operating income | 13,370 | 20,170 | ||
| Income (loss) before income tax expenses | (20,528) | (17,354) | ||
| Net income (loss) | $ (22,049) | $ (19,865) | ||
| Earnings (loss) per common share- | ||||
| Basic | $ (0.64) | $ (0.58) | ||
| Diluted | $ (0.64) | $ (0.58) | ||