Segment Reporting - Summary of Financial Information for Partnership's Reportable Segments (Detail) - USD ($) $ in Thousands |
3 Months Ended | 12 Months Ended | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Dec. 31, 2016 |
Sep. 30, 2016 |
Jun. 30, 2016 |
Mar. 31, 2016 |
Dec. 31, 2015 |
Sep. 30, 2015 |
Jun. 30, 2015 |
Mar. 31, 2015 |
Dec. 31, 2016 |
Dec. 31, 2015 |
Dec. 31, 2014 |
|
| Net sales: | |||||||||||
| Net sales | $ 766,825 | $ 422,779 | $ 477,487 | $ 722,907 | $ 663,791 | $ 558,022 | $ 661,743 | $ 1,598,358 | $ 2,389,998 | $ 3,481,914 | $ 5,069,762 |
| Adjusted gross margin: | |||||||||||
| Adjusted gross margin | 259,273 | 276,002 | 244,967 | ||||||||
| Operating costs and expenses not allocated to operating segments: | |||||||||||
| Operating expenses | 65,882 | 71,468 | 62,993 | ||||||||
| Selling, general and administrative | 84,257 | 94,403 | 76,420 | ||||||||
| Depreciation and amortization | 21,237 | 20,342 | 17,625 | ||||||||
| Operating income | 39,533 | 106,777 | 157,693 | ||||||||
| Other (expense) income | (114) | 298 | (288) | ||||||||
| Interest income | 388 | 456 | 569 | ||||||||
| Interest expense | (27,533) | (27,367) | (29,651) | ||||||||
| Income tax provision | (2,108) | (1,816) | (5,509) | ||||||||
| Net income | $ (1,116) | $ (8,794) | $ (9,745) | $ 29,821 | $ 28,379 | $ 8,580 | $ (2,550) | $ 43,939 | 10,166 | 78,348 | 122,814 |
| Operating Segments | Refined products | |||||||||||
| Net sales: | |||||||||||
| Net sales | 1,988,597 | 3,063,858 | 4,650,871 | ||||||||
| Adjusted gross margin: | |||||||||||
| Adjusted gross margin | 142,581 | 170,448 | 146,021 | ||||||||
| Operating Segments | Natural gas | |||||||||||
| Net sales: | |||||||||||
| Net sales | 334,003 | 347,453 | 359,984 | ||||||||
| Adjusted gross margin: | |||||||||||
| Adjusted gross margin | 62,435 | 51,004 | 55,536 | ||||||||
| Operating Segments | Materials handling | |||||||||||
| Net sales: | |||||||||||
| Net sales | 45,734 | 45,570 | 37,776 | ||||||||
| Adjusted gross margin: | |||||||||||
| Adjusted gross margin | 45,712 | 45,564 | 37,811 | ||||||||
| Operating Segments | Other | |||||||||||
| Net sales: | |||||||||||
| Net sales | 21,664 | 25,033 | 21,131 | ||||||||
| Adjusted gross margin: | |||||||||||
| Adjusted gross margin | 8,545 | 8,986 | 5,599 | ||||||||
| Segment Reconciling Items | |||||||||||
| Reconciliation to operating income: | |||||||||||
| Add: unrealized gain (loss) on inventory derivatives | (31,304) | (2,079) | 11,070 | ||||||||
| Add: unrealized gas (loss) on prepaid forward contract derivatives | 1,552 | (2,628) | 0 | ||||||||
| Add: unrealized gain (loss) on natural gas transportation contracts | (18,612) | 21,695 | 58,694 | ||||||||
| Operating costs and expenses not allocated to operating segments: | |||||||||||
| Operating expenses | (65,882) | (71,468) | (62,993) | ||||||||
| Selling, general and administrative | (84,257) | (94,403) | (76,420) | ||||||||
| Depreciation and amortization | $ (21,237) | $ (20,342) | $ (17,625) | ||||||||