Commitments and Contingencies (Tables)
   | 
12 Months Ended | 
Dec. 31, 2016  | 
| Commitments and Contingencies Disclosure [Abstract] | 
 
 | 
| Future Minimum Payments Under Operating Leases | 
As of December 31, 2016, future minimum payments under non-cancelable operating leases, other obligations and inventory purchase obligations are as follows:
 
 |  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
   | 
Operating Leases  | 
   | 
Inventory Purchase Obligations  | 
   | 
Other Obligations  | 
   | 
Total  | 
 
   | 
(in thousands)  | 
   | 
   | 
 
2017  | 
$  | 
8,123  | 
 
  | 
   | 
$  | 
30,464  | 
 
  | 
   | 
$  | 
4,939  | 
 
  | 
   | 
$  | 
43,526  | 
 
  | 
 
2018  | 
6,268  | 
 
  | 
   | 
—  | 
 
  | 
   | 
910  | 
 
  | 
   | 
7,178  | 
 
  | 
 
2019  | 
6,961  | 
 
  | 
   | 
—  | 
 
  | 
   | 
14  | 
 
  | 
   | 
6,975  | 
 
  | 
 
2020  | 
6,357  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
6,357  | 
 
  | 
 
2021  | 
6,300  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
6,300  | 
 
  | 
 
Thereafter  | 
1,592  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
1,592  | 
 
  | 
 
Total minimum payments  | 
$  | 
35,601  | 
 
  | 
   | 
$  | 
30,464  | 
 
  | 
   | 
$  | 
5,863  | 
 
  | 
   | 
$  | 
71,928  | 
 
  | 
 
  
 
 |  
 | 
 | 
 | 
 | 
 | 
 
   | 
   | 
Amount  | 
 
   | 
   | 
(in thousands)  | 
 
2017  | 
   | 
$  | 
2,144  | 
 
  | 
 
2018  | 
   | 
2,362  | 
 
  | 
 
2019  | 
   | 
2,927  | 
 
  | 
 
2020  | 
   | 
3,392  | 
 
  | 
 
2021  | 
   | 
3,511  | 
 
  | 
 
Thereafter  | 
   | 
293  | 
 
  | 
 
Total minimum rental income  | 
   | 
$  | 
14,629  | 
 
  | 
 
  
 | 
| Future Minimum Payments Under Other Obligations | 
As of December 31, 2016, future minimum payments under non-cancelable operating leases, other obligations and inventory purchase obligations are as follows:
 
 |  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
   | 
Operating Leases  | 
   | 
Inventory Purchase Obligations  | 
   | 
Other Obligations  | 
   | 
Total  | 
 
   | 
(in thousands)  | 
   | 
   | 
 
2017  | 
$  | 
8,123  | 
 
  | 
   | 
$  | 
30,464  | 
 
  | 
   | 
$  | 
4,939  | 
 
  | 
   | 
$  | 
43,526  | 
 
  | 
 
2018  | 
6,268  | 
 
  | 
   | 
—  | 
 
  | 
   | 
910  | 
 
  | 
   | 
7,178  | 
 
  | 
 
2019  | 
6,961  | 
 
  | 
   | 
—  | 
 
  | 
   | 
14  | 
 
  | 
   | 
6,975  | 
 
  | 
 
2020  | 
6,357  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
6,357  | 
 
  | 
 
2021  | 
6,300  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
6,300  | 
 
  | 
 
Thereafter  | 
1,592  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
1,592  | 
 
  | 
 
Total minimum payments  | 
$  | 
35,601  | 
 
  | 
   | 
$  | 
30,464  | 
 
  | 
   | 
$  | 
5,863  | 
 
  | 
   | 
$  | 
71,928  | 
 
  | 
 
  
 
 | 
| Future Minimum Payments Under Inventory Purchase Obligations | 
As of December 31, 2016, future minimum payments under non-cancelable operating leases, other obligations and inventory purchase obligations are as follows:
 
 |  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
   | 
Operating Leases  | 
   | 
Inventory Purchase Obligations  | 
   | 
Other Obligations  | 
   | 
Total  | 
 
   | 
(in thousands)  | 
   | 
   | 
 
2017  | 
$  | 
8,123  | 
 
  | 
   | 
$  | 
30,464  | 
 
  | 
   | 
$  | 
4,939  | 
 
  | 
   | 
$  | 
43,526  | 
 
  | 
 
2018  | 
6,268  | 
 
  | 
   | 
—  | 
 
  | 
   | 
910  | 
 
  | 
   | 
7,178  | 
 
  | 
 
2019  | 
6,961  | 
 
  | 
   | 
—  | 
 
  | 
   | 
14  | 
 
  | 
   | 
6,975  | 
 
  | 
 
2020  | 
6,357  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
6,357  | 
 
  | 
 
2021  | 
6,300  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
6,300  | 
 
  | 
 
Thereafter  | 
1,592  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
1,592  | 
 
  | 
 
Total minimum payments  | 
$  | 
35,601  | 
 
  | 
   | 
$  | 
30,464  | 
 
  | 
   | 
$  | 
5,863  | 
 
  | 
   | 
$  | 
71,928  | 
 
  | 
 
  
 
 |