Commitments and contingencies - Commitments (Details) $ in Thousands, € in Millions, ¥ in Millions |
3 Months Ended | 9 Months Ended | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Sep. 30, 2016
USD ($)
|
Sep. 30, 2015
USD ($)
|
Sep. 30, 2016
USD ($)
|
Sep. 30, 2016
CNY (¥)
|
Sep. 30, 2015
USD ($)
|
Sep. 30, 2016
EUR (€)
|
Sep. 30, 2016
USD ($)
|
Sep. 30, 2016
CNY (¥)
|
Dec. 31, 2015
USD ($)
|
Dec. 31, 2015
CNY (¥)
|
|
Commitments and Contingencies Disclosure [Abstract] | ||||||||||
Operating lease expenses | $ 8,300 | $ 7,100 | $ 23,300 | $ 18,700 | ||||||
Hosting costs | $ 10,600 | $ 8,300 | 30,400 | $ 21,900 | ||||||
Debt Instrument [Line Items] | ||||||||||
Amount drawn on revolving loan facility | $ 8,276 | $ 9,245 | ||||||||
Revolving credit facility | RCF | HSBC revolving loan facility | ||||||||||
Debt Instrument [Line Items] | ||||||||||
Increase in credit facility | $ 800 | ¥ 5.0 | ||||||||
Revolving credit facility, maximum borrowing capacity | 6,000 | ¥ 40.0 | ||||||||
Amount drawn on revolving loan facility | 4,500 | ¥ 30.0 | $ 3,700 | ¥ 25.0 | ||||||
Revolving credit facility | RCF | Bank syndicate RCF | ||||||||||
Debt Instrument [Line Items] | ||||||||||
Revolving credit facility, maximum borrowing capacity | € 250.0 | $ 279,000 |