Fair Value Measurements - Fair Value of Gross Position of Derivative Contracts in Consolidated Balance Sheets (Detail) - USD ($) $ in Thousands |
Mar. 31, 2018 |
Dec. 31, 2017 |
|---|---|---|
| Other current assets (accrued liabilities) | ||
| Derivatives, Fair Value [Line Items] | ||
| Net amounts | $ 675 | $ (1,893) |
| Other long-term liabilities | ||
| Derivatives, Fair Value [Line Items] | ||
| Net amounts | (2,534) | (1,334) |
| Designated as hedging instruments: | ||
| Derivatives, Fair Value [Line Items] | ||
| Gross amounts recognized | (2,733) | (2,808) |
| Gross amounts offset | 1,302 | 168 |
| Net amounts | (1,431) | (2,640) |
| Not designated as hedging instruments: | ||
| Derivatives, Fair Value [Line Items] | ||
| Gross amounts recognized | (577) | (684) |
| Gross amounts offset | 149 | 97 |
| Net amounts | $ (428) | $ (587) |