Quarterly report pursuant to Section 13 or 15(d)

Derivative Instruments and Hedging Activities - Locations and Amounts of Designated and Non-Designated Derivative's Gains and Losses (Details)

v3.10.0.1
Derivative Instruments and Hedging Activities - Locations and Amounts of Designated and Non-Designated Derivative's Gains and Losses (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Dec. 31, 2018
Dec. 31, 2017
Dec. 31, 2018
Dec. 31, 2017
Derivative Instruments
Revenues $ 1,119,898 $ 975,822 $ 2,213,158 $ 1,945,403
Costs of revenues 408,260 347,002 789,647 700,119
Interest expense 26,538 27,372 52,900 57,948
Other expense (income), net (9,228) (7,824) (19,253) (12207)
Amount of gains (losses) reclassified from accumulated OCI to earnings 1,736 2,773
Amount of gains (losses) reclassified from accumulated OCI to earnings 963 3,081
Revenues
Derivative Instruments
Amount of gains (losses) reclassified from accumulated OCI to earnings as a result that a forecasted transaction is no longer probable of occurring 0 0
Costs of revenues
Derivative Instruments
Amount of gains (losses) reclassified from accumulated OCI to earnings as a result that a forecasted transaction is no longer probable of occurring 0 0
Interest expense
Derivative Instruments
Amount of gains (losses) reclassified from accumulated OCI to earnings as a result that a forecasted transaction is no longer probable of occurring 0 0
Other expense (income), net
Derivative Instruments
Amount of gains (losses) reclassified from accumulated OCI to earnings as a result that a forecasted transaction is no longer probable of occurring 0 0
Rate lock contracts | Revenues
Derivative Instruments
Amount of gains (losses) reclassified from accumulated OCI to earnings 0 0
Amount of gains (losses) reclassified from accumulated OCI to earnings as a result that a forecasted transaction is no longer probable of occurring 0 0
Rate lock contracts | Costs of revenues
Derivative Instruments
Amount of gains (losses) reclassified from accumulated OCI to earnings 0 0
Amount of gains (losses) reclassified from accumulated OCI to earnings as a result that a forecasted transaction is no longer probable of occurring 0 0
Rate lock contracts | Interest expense
Derivative Instruments
Amount of gains (losses) reclassified from accumulated OCI to earnings 189 377
Amount of gains (losses) reclassified from accumulated OCI to earnings as a result that a forecasted transaction is no longer probable of occurring 0 0
Rate lock contracts | Other expense (income), net
Derivative Instruments
Amount of gains (losses) reclassified from accumulated OCI to earnings 0 0
Amount of gains (losses) reclassified from accumulated OCI to earnings as a result that a forecasted transaction is no longer probable of occurring (108) 4
Foreign exchange contracts | Revenues
Derivative Instruments
Amount of gains (losses) reclassified from accumulated OCI to earnings 1,705 2,688
Amount of gains (losses) reclassified from accumulated OCI to earnings 397 1,365
Amount excluded from the assessment of effectiveness recognized in earnings based on an amortization approach 80 80
Amount excluded from the assessment of effectiveness recognized in earnings based on an amortization approach 0 0
Amount excluded from the assessment of effectiveness 0 0 0 0
Amount of gains (losses) recognized in earnings 0 0
Foreign exchange contracts | Costs of revenues
Derivative Instruments
Amount of gains (losses) reclassified from accumulated OCI to earnings (158) (292)
Amount of gains (losses) reclassified from accumulated OCI to earnings 377 1,338
Amount excluded from the assessment of effectiveness recognized in earnings based on an amortization approach (8) (8)
Amount excluded from the assessment of effectiveness recognized in earnings based on an amortization approach 0 0
Amount excluded from the assessment of effectiveness 0 0 0 0
Amount of gains (losses) recognized in earnings 0 0
Foreign exchange contracts | Interest expense
Derivative Instruments
Amount of gains (losses) reclassified from accumulated OCI to earnings 0 0
Amount of gains (losses) reclassified from accumulated OCI to earnings 189 378
Amount excluded from the assessment of effectiveness recognized in earnings based on an amortization approach 0 0
Amount excluded from the assessment of effectiveness recognized in earnings based on an amortization approach 0 0
Amount excluded from the assessment of effectiveness 0 0 0 0
Amount of gains (losses) recognized in earnings 0 0
Foreign exchange contracts | Other expense (income), net
Derivative Instruments
Amount of gains (losses) reclassified from accumulated OCI to earnings (3) (18)
Amount of gains (losses) reclassified from accumulated OCI to earnings 0 0
Amount excluded from the assessment of effectiveness recognized in earnings based on an amortization approach 0 0
Amount excluded from the assessment of effectiveness recognized in earnings based on an amortization approach 0 0
Amount excluded from the assessment of effectiveness (220) (158) (88) (229)
Amount of gains (losses) recognized in earnings $ (3,700) $ 63
Derivatives designated as hedging instruments | Rate lock contracts | Revenues
Derivative Instruments
Amount of gains (losses) reclassified from accumulated OCI to earnings 0 0
Derivatives designated as hedging instruments | Rate lock contracts | Costs of revenues
Derivative Instruments
Amount of gains (losses) reclassified from accumulated OCI to earnings 0 0
Derivatives designated as hedging instruments | Rate lock contracts | Interest expense
Derivative Instruments
Amount of gains (losses) reclassified from accumulated OCI to earnings 0 0
Derivatives designated as hedging instruments | Rate lock contracts | Other expense (income), net
Derivative Instruments
Amount of gains (losses) reclassified from accumulated OCI to earnings 0 0
Derivatives not designated as hedging instruments | Foreign exchange contracts | Revenues
Derivative Instruments
Amount of gains (losses) recognized in earnings 0 0
Derivatives not designated as hedging instruments | Foreign exchange contracts | Costs of revenues
Derivative Instruments
Amount of gains (losses) recognized in earnings 0 0
Derivatives not designated as hedging instruments | Foreign exchange contracts | Interest expense
Derivative Instruments
Amount of gains (losses) recognized in earnings 0 0
Derivatives not designated as hedging instruments | Foreign exchange contracts | Other expense (income), net
Derivative Instruments
Amount of gains (losses) recognized in earnings $ 3,237 $ 3,676
Baidu