Segment Reporting and Information about Geographic Areas - Schedule of Total Revenues and Gross Margin by Reportable Segment (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 |
|
| Segment Reporting Revenue Reconciling Item [Line Items] | |||||||||||
| Net revenue | $ 2,284,631 | $ 2,298,436 | $ 1,270,017 | $ 1,147,048 | $ 1,214,379 | $ 936,789 | $ 954,976 | $ 939,880 | $ 7,000,132 | $ 4,046,025 | $ 3,198,356 |
| Gross profit | $ 435,278 | $ 636,735 | $ 274,776 | $ 252,468 | $ 218,564 | $ 231,496 | $ 213,370 | $ 260,073 | 1,599,257 | 923,503 | 881,671 |
| Automotive [Member] | |||||||||||
| Segment Reporting Revenue Reconciling Item [Line Items] | |||||||||||
| Net revenue | 6,818,738 | 4,031,548 | 3,194,148 | ||||||||
| Gross profit | 1,596,195 | 921,313 | 881,468 | ||||||||
| Energy Generation and Storage [Member] | |||||||||||
| Segment Reporting Revenue Reconciling Item [Line Items] | |||||||||||
| Net revenue | 181,394 | 14,477 | 4,208 | ||||||||
| Gross profit | $ 3,062 | $ 2,190 | $ 203 | ||||||||