Commitment and Contingencies - Leases (Details) $ in Thousands |
12 Months Ended |
|
Dec. 31, 2016
USD ($)
item
|
Dec. 31, 2015
USD ($)
item
|
Dec. 31, 2014
USD ($)
|
| As Lessor |
|
|
|
| 2016 |
$ 16,872
|
|
|
| 2017 |
16,872
|
|
|
| 2018 |
16,872
|
|
|
| 2019 |
15,715
|
|
|
| 2020 |
11,480
|
|
|
| Thereafter |
2,872
|
|
|
| Total future minimum lease payments |
80,683
|
|
|
| As Lessee |
|
|
|
| 2016 |
12,350
|
|
|
| 2017 |
12,125
|
|
|
| 2018 |
10,936
|
|
|
| 2019 |
9,802
|
|
|
| 2020 |
5,535
|
|
|
| Thereafter |
759
|
|
|
| Total future minimum lease payments |
51,507
|
|
|
| Rental expense for all operating lease |
13,200
|
$ 6,200
|
$ 1,500
|
| Prepaid Rent And Security Deposit |
11,800
|
12,100
|
|
| Capital Leases, Future Minimum Payments, Net Present Value [Abstract] |
|
|
|
| 2017 |
16,313
|
|
|
| 2018 |
10,665
|
|
|
| 2019 |
3,436
|
|
|
| 2020 |
3,436
|
|
|
| 2021 |
3,436
|
|
|
| Thereafter |
1,689
|
|
|
| Total future minimum payments: Total Payments |
38,975
|
|
|
| 2017 |
4,205
|
|
|
| 2018 |
2,064
|
|
|
| 2019 |
1,435
|
|
|
| 2020 |
1,083
|
|
|
| 2021 |
674
|
|
|
| Thereafter |
151
|
|
|
| Total future imputed interest |
9,612
|
|
|
| 2017 |
12,108
|
|
|
| 2018 |
8,601
|
|
|
| 2019 |
2,001
|
|
|
| 2020 |
2,353
|
|
|
| 2021 |
2,762
|
|
|
| Thereafter |
1,538
|
|
|
| Total future minimum payments: Net Present Value |
29,363
|
|
|
| Cash received for future services |
12,800
|
15,100
|
|
| Cash held in escrow deposit |
53,600
|
|
|
| Letter of credit with Silicon Valley Bank |
1,000
|
|
|
| Prepaid and Other Current Assets |
|
|
|
| As Lessee |
|
|
|
| Prepaid Rent And Security Deposit |
1,900
|
2,000
|
|
| Other Assets. |
|
|
|
| As Lessee |
|
|
|
| Prepaid Rent And Security Deposit |
9,900
|
10,100
|
|
| Latham, New York |
|
|
|
| Capital Leases, Future Minimum Payments, Net Present Value [Abstract] |
|
|
|
| Total future minimum payments: Net Present Value |
$ 2,400
|
$ 2,500
|
|
| Accounts receivable. | Credit risk | Customers |
|
|
|
| Capital Leases, Future Minimum Payments, Net Present Value [Abstract] |
|
|
|
| Number of customers | item |
2
|
2
|
|
| Concentration risk (as a percent) |
59.90%
|
50.90%
|
|
| Accounts receivable. | Credit risk | Customer one |
|
|
|
| Capital Leases, Future Minimum Payments, Net Present Value [Abstract] |
|
|
|
| Concentration risk (as a percent) |
40.00%
|
38.50%
|
|
| Accounts receivable. | Credit risk | Customer two |
|
|
|
| Capital Leases, Future Minimum Payments, Net Present Value [Abstract] |
|
|
|
| Concentration risk (as a percent) |
19.90%
|
|
|
| Accounts receivable. | Credit risk | Customer four |
|
|
|
| Capital Leases, Future Minimum Payments, Net Present Value [Abstract] |
|
|
|
| Concentration risk (as a percent) |
|
12.40%
|
|
| Revenues. | Customer concentration | Customers |
|
|
|
| Capital Leases, Future Minimum Payments, Net Present Value [Abstract] |
|
|
|
| Concentration risk (as a percent) |
|
|
37.20%
|
| Revenues. | Customer concentration | Walmart |
|
|
|
| Capital Leases, Future Minimum Payments, Net Present Value [Abstract] |
|
|
|
| Concentration risk (as a percent) |
34.10%
|
56.70%
|
24.10%
|
| Revenues. | Customer concentration | Volkswagen |
|
|
|
| Capital Leases, Future Minimum Payments, Net Present Value [Abstract] |
|
|
|
| Concentration risk (as a percent) |
|
|
13.10%
|