Commitments and Contingencies (Tables)
   | 
3 Months Ended | 
Mar. 31, 2018  | 
| Commitments and Contingencies Disclosure [Abstract] | 
 
 | 
| Future Minimum Payments Under Operating Leases | 
As of March 31, 2018, 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)  | 
 
2018 (9 months)  | 
$  | 
6,631  | 
 
  | 
   | 
$  | 
49,183  | 
 
  | 
   | 
$  | 
5,651  | 
 
  | 
   | 
$  | 
61,465  | 
 
  | 
 
2019  | 
9,242  | 
 
  | 
   | 
—  | 
 
  | 
   | 
7,761  | 
 
  | 
   | 
17,003  | 
 
  | 
 
2020  | 
9,444  | 
 
  | 
   | 
—  | 
 
  | 
   | 
3,781  | 
 
  | 
   | 
13,225  | 
 
  | 
 
2021  | 
9,238  | 
 
  | 
   | 
—  | 
 
  | 
   | 
30  | 
 
  | 
   | 
9,268  | 
 
  | 
 
2022  | 
5,102  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
5,102  | 
 
  | 
 
Thereafter  | 
792  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
792  | 
 
  | 
 
Total minimum payments  | 
$  | 
40,449  | 
 
  | 
   | 
$  | 
49,183  | 
 
  | 
   | 
$  | 
17,223  | 
 
  | 
   | 
$  | 
106,855  | 
 
  | 
 
  
 
 |  
 | 
 | 
 | 
 | 
 
   | 
Amount  | 
 
   | 
(in thousands)  | 
 
2018 (9 months)  | 
$  | 
2,184  | 
 
  | 
 
2019  | 
3,604  | 
 
  | 
 
2020  | 
4,088  | 
 
  | 
 
2021  | 
4,152  | 
 
  | 
 
2022  | 
879  | 
 
  | 
 
Thereafter  | 
352  | 
 
  | 
 
Total minimum rental income  | 
$  | 
15,259  | 
 
  | 
 
  
 | 
| Future Minimum Payments Under Other Obligations | 
As of March 31, 2018, 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)  | 
 
2018 (9 months)  | 
$  | 
6,631  | 
 
  | 
   | 
$  | 
49,183  | 
 
  | 
   | 
$  | 
5,651  | 
 
  | 
   | 
$  | 
61,465  | 
 
  | 
 
2019  | 
9,242  | 
 
  | 
   | 
—  | 
 
  | 
   | 
7,761  | 
 
  | 
   | 
17,003  | 
 
  | 
 
2020  | 
9,444  | 
 
  | 
   | 
—  | 
 
  | 
   | 
3,781  | 
 
  | 
   | 
13,225  | 
 
  | 
 
2021  | 
9,238  | 
 
  | 
   | 
—  | 
 
  | 
   | 
30  | 
 
  | 
   | 
9,268  | 
 
  | 
 
2022  | 
5,102  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
5,102  | 
 
  | 
 
Thereafter  | 
792  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
792  | 
 
  | 
 
Total minimum payments  | 
$  | 
40,449  | 
 
  | 
   | 
$  | 
49,183  | 
 
  | 
   | 
$  | 
17,223  | 
 
  | 
   | 
$  | 
106,855  | 
 
  | 
 
  
 
 | 
| Future Minimum Payments Under Inventory Purchase Obligations | 
As of March 31, 2018, 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)  | 
 
2018 (9 months)  | 
$  | 
6,631  | 
 
  | 
   | 
$  | 
49,183  | 
 
  | 
   | 
$  | 
5,651  | 
 
  | 
   | 
$  | 
61,465  | 
 
  | 
 
2019  | 
9,242  | 
 
  | 
   | 
—  | 
 
  | 
   | 
7,761  | 
 
  | 
   | 
17,003  | 
 
  | 
 
2020  | 
9,444  | 
 
  | 
   | 
—  | 
 
  | 
   | 
3,781  | 
 
  | 
   | 
13,225  | 
 
  | 
 
2021  | 
9,238  | 
 
  | 
   | 
—  | 
 
  | 
   | 
30  | 
 
  | 
   | 
9,268  | 
 
  | 
 
2022  | 
5,102  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
5,102  | 
 
  | 
 
Thereafter  | 
792  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
792  | 
 
  | 
 
Total minimum payments  | 
$  | 
40,449  | 
 
  | 
   | 
$  | 
49,183  | 
 
  | 
   | 
$  | 
17,223  | 
 
  | 
   | 
$  | 
106,855  | 
 
  | 
 
  
 
 |