| Derivative Instruments and Hedging Activities (Tables)
 | 3 Months Ended | 
      
        | Sep. 30, 2013 | 
      
        | Derivative Instruments and Hedging Activities Disclosure [Abstract] |  | 
      
        | Schedule of Derivative Instruments, Location, Designated and Non-Designated, Gains (Losses) | 
The locations and amounts of designated and non-designated derivative instruments’ gains and losses reported in the condensed consolidated financial statements for the indicated periods were as follows: 
|  |  
|  |  |  |  |  |  |  |  |  |  
|   |   | Three months endedSeptember 30,
 |  
| (In thousands) | Location in Financial Statements | 2013 |   | 2012 |  
| Derivatives Designated as Hedging Instruments |   |   |   |   |  
| Gains in accumulated OCI on derivatives (effective portion) | Accumulated OCI | $ | (291 | ) |   | $ | (241 | ) |  
| Gains (losses) reclassified from accumulated OCI into income (effective portion): | Revenues | $ | 2,450 | 
 |   | $ | (491 | ) |  
|   | Costs of revenues | 66 | 
 |   | (601 | ) |  
|   | Total gains (losses) reclassified from accumulated OCI into income (effective portion) | $ | 2,516 | 
 |   | $ | (1,092 | ) |  
| Gains recognized in income on derivatives (ineffectiveness portion and amount excluded from effectiveness testing) | Interest income and other, net | $ | (18 | ) |   | $ | 51 | 
 |  
| Derivatives Not Designated as Hedging Instruments |   |   |   |   |  
| Gains (losses) recognized in income | Interest income and other, net | $ | 2,626 | 
 |   | $ | 673 | 
 |  | 
      
        | Schedule of Notional Amounts of Derivatives Outstanding | 
The U.S. dollar equivalent of all outstanding notional amounts of hedge contracts, with maximum maturity of 13 months, as of the dates indicated below was as follows: 
 
|  |  
|  |  |  |  |  |  |  |  |  
| (In thousands) | As of September 30, 2013
 |   | As of June 30, 2013
 |  
| Cash flow hedge contracts |   |   |   |  
| Purchase | $ | 9,000 | 
 |   | $ | 14,641 | 
 |  
| Sell | $ | 60,234 | 
 |   | $ | 35,178 | 
 |  
| Other foreign currency hedge contracts |   |   |   |  
| Purchase | $ | 111,360 | 
 |   | $ | 99,175 | 
 |  
| Sell | $ | 68,419 | 
 |   | $ | 97,901 | 
 |  | 
      
        | Schedule of Derivative Instruments, Fair Value | 
The locations and fair value amounts of the Company’s derivative instruments reported in its Condensed Consolidated Balance Sheets as of the dates indicated below were as follows: 
 
|  |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|   | Asset Derivatives |   | Liability Derivatives |  
|   | Balance Sheet Location |   | As of September 30, 2013
 |   | As of June 30, 2013
 |   | Balance Sheet Location |   | As of September 30, 2013
 |   | As of June 30, 2013
 |  
| (In thousands) |   | Fair Value |   |   |   | Fair Value |  
| Derivatives designated as hedging instruments |   |   |   |   |   |   |   |   |   |   |   |  
| Foreign exchange contracts | Other current assets |   | $ | 282 | 
 |   | $ | 362 | 
 |   | Other current liabilities |   | $ | 505 | 
 |   | $ | 384 | 
 |  
| Total derivatives designated as hedging instruments |   |   | $ | 282 | 
 |   | $ | 362 | 
 |   |   |   | $ | 505 | 
 |   | $ | 384 | 
 |  
| Derivatives not designated as hedging instruments |   |   |   |   |   |   |   |   |   |   |   |  
| Foreign exchange contracts | Other current assets |   | $ | 903 | 
 |   | $ | 3,654 | 
 |   | Other current liabilities |   | $ | 940 | 
 |   | $ | 1,789 | 
 |  
| Total derivatives not designated as hedging instruments |   |   | $ | 903 | 
 |   | $ | 3,654 | 
 |   |   |   | $ | 940 | 
 |   | $ | 1,789 | 
 |  
| Total derivatives |   |   | $ | 1,185 | 
 |   | $ | 4,016 | 
 |   |   |   | $ | 1,445 | 
 |   | $ | 2,173 | 
 |  | 
      
        | Balances and Changes in Accumulated Other Comprehensive Income Related to Derivative Instruments | 
The following table provides the balances and changes in accumulated other comprehensive income (loss), before taxes, related to derivative instruments for the indicated periods: 
|  |  
|  |  |  |  |  |  |  |  |  
|   | Three months endedSeptember 30,
 |  
| (In thousands) | 2013 |   | 2012 |  
| Beginning balance | $ | 2,484 | 
 |   | $ | (962 | ) |  
| Amount reclassified to income | (2,516 | ) |   | 1,092 | 
 |  
| Net change | (291 | ) |   | (241 | ) |  
| Ending balance | $ | (323 | ) |   | $ | (111 | ) |  | 
      
        | Offsetting of Assets and Liabilities | 
As of September 30, 2013 and June 30, 2013, information related to the offsetting arrangements was as follows (in thousands):
 
|  |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
| As of September 30, 2013 |   |   |   |   |   | Gross Amounts Not Offset in the Consolidated Balance Sheet |   |   |  
| Description |   | Gross Amounts of Recognized Assets |   | Gross Amounts Offset in the Consolidated Balance Sheets |   | Net Amount Presented in the Consolidated Balance Sheets |   | Financial Instruments |   | Cash Collateral Received |   | Net Amount |  
| Derivatives - Assets |   | $ | 1,185 | 
 |   | $ | — | 
 |   | $ | 1,185 | 
 |   | $ | (1,139 | ) |   | $ | — | 
 |   | $ | 46 | 
 |  
| Derivatives - Liabilities |   | $ | (1,445 | ) |   | $ | — | 
 |   | $ | (1,445 | ) |   | $ | 1,139 | 
 |   | $ | — | 
 |   | $ | (306 | ) | 
|  |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
| As of June 30, 2013 |   |   |   |   |   | Gross Amounts Not Offset in the Consolidated Balance Sheet |   |   |  
| Description |   | Gross Amounts of Recognized Assets |   | Gross Amounts Offset in the Consolidated Balance Sheets |   | Net Amount Presented in the Consolidated Balance Sheets |   | Financial Instruments |   | Cash Collateral Received |   | Net Amount |  
| Derivatives - Assets |   | $ | 4,016 | 
 |   | $ | — | 
 |   | $ | 4,016 | 
 |   | $ | (1,520 | ) |   | $ | — | 
 |   | $ | 2,496 | 
 |  
| Derivatives - Liabilities |   | $ | (2,173 | ) |   | $ | — | 
 |   | $ | (2,173 | ) |   | $ | 1,520 | 
 |   | $ | — | 
 |   | $ | (653 | ) |  |