Quarterly report pursuant to Section 13 or 15(d)

Restructuring Charges - Additional Information (Details)

v3.6.0.2
Restructuring Charges - Additional Information (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2016
Dec. 31, 2015
Restructuring Cost and Reserve [Line Items]
Restructuring costs $ 0 $ 1,392 $ 0 $ 8,458
Costs of revenue
Restructuring Cost and Reserve [Line Items]
Restructuring costs 500 3,300
Research and development
Restructuring Cost and Reserve [Line Items]
Restructuring costs 500 1,500
Selling general and administrative
Restructuring Cost and Reserve [Line Items]
Restructuring costs $ 400 $ 3,700
Baidu