Commitments and Contingencies (Tables)
   | 
6 Months Ended | 
Jun. 30, 2017  | 
| Commitments and Contingencies Disclosure [Abstract] | 
 
 | 
| Future Minimum Payments Under Operating Leases | 
As of June 30, 2017, future minimum payments under non-cancelable operating leases, inventory purchase and other obligations are as follows:
 
 |  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
   | 
Operating Leases  | 
   | 
Inventory Purchase Obligations  | 
   | 
Other Obligations  | 
   | 
Total  | 
 
   | 
(in thousands)  | 
 
2017 (6 months)  | 
$  | 
8,267  | 
 
  | 
   | 
$  | 
39,740  | 
 
  | 
   | 
$  | 
4,791  | 
 
  | 
   | 
$  | 
52,798  | 
 
  | 
 
2018  | 
9,143  | 
 
  | 
   | 
—  | 
 
  | 
   | 
7,526  | 
 
  | 
   | 
16,669  | 
 
  | 
 
2019  | 
9,117  | 
 
  | 
   | 
—  | 
 
  | 
   | 
7,528  | 
 
  | 
   | 
16,645  | 
 
  | 
 
2020  | 
9,335  | 
 
  | 
   | 
—  | 
 
  | 
   | 
3,780  | 
 
  | 
   | 
13,115  | 
 
  | 
 
2021  | 
9,043  | 
 
  | 
   | 
—  | 
 
  | 
   | 
30  | 
 
  | 
   | 
9,073  | 
 
  | 
 
Thereafter  | 
5,663  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
5,663  | 
 
  | 
 
Total minimum payments  | 
$  | 
50,568  | 
 
  | 
   | 
$  | 
39,740  | 
 
  | 
   | 
$  | 
23,655  | 
 
  | 
   | 
$  | 
113,963  | 
 
  | 
 
  
 
 |  
 | 
 | 
 | 
 | 
 
   | 
Amount  | 
 
   | 
(in thousands)  | 
 
2017 (6 months)  | 
$  | 
1,099  | 
 
  | 
 
2018  | 
2,362  | 
 
  | 
 
2019  | 
2,927  | 
 
  | 
 
2020  | 
3,392  | 
 
  | 
 
2021  | 
3,511  | 
 
  | 
 
Thereafter  | 
293  | 
 
  | 
 
Total minimum rental income  | 
$  | 
13,584  | 
 
  | 
 
  
 | 
| Future Minimum Payments Under Other Obligations | 
As of June 30, 2017, future minimum payments under non-cancelable operating leases, inventory purchase and other obligations are as follows:
 
 |  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
   | 
Operating Leases  | 
   | 
Inventory Purchase Obligations  | 
   | 
Other Obligations  | 
   | 
Total  | 
 
   | 
(in thousands)  | 
 
2017 (6 months)  | 
$  | 
8,267  | 
 
  | 
   | 
$  | 
39,740  | 
 
  | 
   | 
$  | 
4,791  | 
 
  | 
   | 
$  | 
52,798  | 
 
  | 
 
2018  | 
9,143  | 
 
  | 
   | 
—  | 
 
  | 
   | 
7,526  | 
 
  | 
   | 
16,669  | 
 
  | 
 
2019  | 
9,117  | 
 
  | 
   | 
—  | 
 
  | 
   | 
7,528  | 
 
  | 
   | 
16,645  | 
 
  | 
 
2020  | 
9,335  | 
 
  | 
   | 
—  | 
 
  | 
   | 
3,780  | 
 
  | 
   | 
13,115  | 
 
  | 
 
2021  | 
9,043  | 
 
  | 
   | 
—  | 
 
  | 
   | 
30  | 
 
  | 
   | 
9,073  | 
 
  | 
 
Thereafter  | 
5,663  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
5,663  | 
 
  | 
 
Total minimum payments  | 
$  | 
50,568  | 
 
  | 
   | 
$  | 
39,740  | 
 
  | 
   | 
$  | 
23,655  | 
 
  | 
   | 
$  | 
113,963  | 
 
  | 
 
  
 
 | 
| Future Minimum Payments Under Inventory Purchase Obligations | 
As of June 30, 2017, future minimum payments under non-cancelable operating leases, inventory purchase and other obligations are as follows:
 
 |  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
   | 
Operating Leases  | 
   | 
Inventory Purchase Obligations  | 
   | 
Other Obligations  | 
   | 
Total  | 
 
   | 
(in thousands)  | 
 
2017 (6 months)  | 
$  | 
8,267  | 
 
  | 
   | 
$  | 
39,740  | 
 
  | 
   | 
$  | 
4,791  | 
 
  | 
   | 
$  | 
52,798  | 
 
  | 
 
2018  | 
9,143  | 
 
  | 
   | 
—  | 
 
  | 
   | 
7,526  | 
 
  | 
   | 
16,669  | 
 
  | 
 
2019  | 
9,117  | 
 
  | 
   | 
—  | 
 
  | 
   | 
7,528  | 
 
  | 
   | 
16,645  | 
 
  | 
 
2020  | 
9,335  | 
 
  | 
   | 
—  | 
 
  | 
   | 
3,780  | 
 
  | 
   | 
13,115  | 
 
  | 
 
2021  | 
9,043  | 
 
  | 
   | 
—  | 
 
  | 
   | 
30  | 
 
  | 
   | 
9,073  | 
 
  | 
 
Thereafter  | 
5,663  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
5,663  | 
 
  | 
 
Total minimum payments  | 
$  | 
50,568  | 
 
  | 
   | 
$  | 
39,740  | 
 
  | 
   | 
$  | 
23,655  | 
 
  | 
   | 
$  | 
113,963  | 
 
  | 
 
  
 
 |