Entity Central Index Key Cover [Abstract] Entity Registrant Name Entity Registrant Name Entity Central Index Key Current Fiscal Year End Date Current Fiscal Year End Date Entity Filer Category Entity Filer Category Entity Small Business Entity Small Business Entity Emerging Growth Company Entity Emerging Growth Company Entity Shell Company Entity Shell Company Entity Common Stock, Shares Outstanding Entity Common Stock Shares Outstanding Document Type Document Type Document Period End Date Document Period End Date Amendment Flag Amendment Flag Document Fiscal Year Focus Document Fiscal Year Focus Document Fiscal Period Focus Document Fiscal Period Focus Entity Current Reporting Status Entity Current Reporting Status Entity Interactive Data Current Entity Interactive Data Current Title of 12(b) Security Security12b Title Trading Symbol Trading Symbol Security Exchange Name Security Exchange Name Entity File Number Entity File Number Entity Incorporation, State or Country Code Entity Incorporation State Country Code Entity Tax Identification Number Entity Tax Identification Number Entity Address, Address Line One Entity Address Address Line1 Entity Address, City or Town Entity Address City Or Town Entity Address, State or Province Entity Address State Or Province Entity Address, Postal Zip Code Entity Address Postal Zip Code City Area Code City Area Code Local Phone Number Local Phone Number Document Quarterly Report Document Quarterly Report Document Transition Report Document Transition Report Income Statement [Abstract] Revenue Revenue From Contract With Customer Excluding Assessed Tax Costs of revenue: Costs And Expenses [Abstract] Direct costs Direct Operating Costs Indirect costs and selling expenses Selling General And Administrative Expense Depreciation and amortization Depreciation And Amortization Total costs of revenue Costs And Expenses Income from operations Operating Income Loss Interest expense and other, net Interest Expense Income before income taxes Income Loss From Continuing Operations Before Income Taxes Extraordinary Items Noncontrolling Interest Income tax expense Income Tax Expense Benefit Net income Net Income Loss Basic earnings per share Earnings Per Share Basic Diluted earnings per share Earnings Per Share Diluted Weighted-average basic shares outstanding Weighted Average Number Of Shares Outstanding Basic Weighted-average diluted shares outstanding Weighted Average Number Of Diluted Shares Outstanding Statement Of Income And Comprehensive Income [Abstract] Net income Other comprehensive income (loss): Other Comprehensive Income Loss Net Of Tax Period Increase Decrease [Abstract] Foreign currency translation adjustment Other Comprehensive Income Foreign Currency Transaction And Translation Adjustment Net Of Tax Portion Attributable To Parent Change in fair value of interest rate swap agreements, net of tax Other Comprehensive Income Unrealized Gain Loss On Derivatives Arising During Period Net Of Tax Other comprehensive income (loss), net of tax Other Comprehensive Income Loss Net Of Tax Portion Attributable To Parent Comprehensive income Comprehensive Income Net Of Tax Statement Of Financial Position [Abstract] ASSETS Assets [Abstract] Current assets: Assets Current [Abstract] Cash and cash equivalents Cash And Cash Equivalents At Carrying Value Accounts receivable, net Accounts Receivable Net Current Prepaid expenses and other current assets Prepaid Expense And Other Assets Current Total current assets Assets Current Goodwill Goodwill Intangible assets, net Finite Lived Intangible Assets Net Property and equipment, net Property Plant And Equipment Net Operating lease right-of-use assets Operating Lease Right Of Use Asset Supplemental retirement savings plan assets Deferred Compensation Plan Assets Accounts receivable, long-term Contract With Customer Asset Net Noncurrent Other long-term assets Other Assets Noncurrent Total assets Assets LIABILITIES AND SHAREHOLDERS’ EQUITY Liabilities And Stockholders Equity [Abstract] Current liabilities: Liabilities Current [Abstract] Current portion of long-term debt Long Term Debt Current Accounts payable Accounts Payable Current Accrued compensation and benefits Employee Related Liabilities Current Other accrued expenses and current liabilities Other Accrued Liabilities Current Total current liabilities Liabilities Current Long-term debt, net of current portion Long Term Debt Noncurrent Supplemental retirement savings plan obligations, net of current portion Deferred Compensation Liability Classified Noncurrent Deferred income taxes Deferred Tax Liabilities Noncurrent Operating lease liabilities, noncurrent Operating Lease Liability Noncurrent Other long-term liabilities Other Liabilities Noncurrent Total liabilities Liabilities COMMITMENTS AND CONTINGENCIES Commitments And Contingencies Shareholders’ equity: Stockholders Equity Including Portion Attributable To Noncontrolling Interest [Abstract] Preferred stock $0.10 par value, 10,000 shares authorized, no shares issued or outstanding Preferred Stock Value Common stock $0.10 par value, 80,000 shares authorized; 42,518 shares issued and 25,086 outstanding at March 31, 2020 and 42,314 shares issued and 24,880 outstanding at June 30, 2019 Common Stock Value Additional paid-in capital Additional Paid In Capital Common Stock Retained earnings Retained Earnings Accumulated Deficit Accumulated other comprehensive loss Accumulated Other Comprehensive Income Loss Net Of Tax Treasury stock, at cost (17,432 and 17,434 shares, respectively) Treasury Stock Value Total CACI shareholders’ equity Stockholders Equity Noncontrolling interest Minority Interest Total shareholders’ equity Stockholders Equity Including Portion Attributable To Noncontrolling Interest Total liabilities and shareholders’ equity Liabilities And Stockholders Equity Preferred stock, par value (in dollars per share) Preferred Stock Par Or Stated Value Per Share Preferred stock, shares authorized Preferred Stock Shares Authorized Preferred stock, shares issued Preferred Stock Shares Issued Preferred stock, shares outstanding Preferred Stock Shares Outstanding Common stock, par value (in dollars per share) Common Stock Par Or Stated Value Per Share Common stock, shares authorized Common Stock Shares Authorized Common stock, shares issued Common Stock Shares Issued Common stock, shares outstanding Common Stock Shares Outstanding Treasury stock, shares at cost Treasury Stock Shares Non-cash lease expense. Increase decrease in operating lease liabilities. Increase decrease in long term liabilities. Tenant improvement financed by landlord. Statement Of Cash Flows [Abstract] CASH FLOWS FROM OPERATING ACTIVITIES Net Cash Provided By Used In Operating Activities [Abstract] Net income Profit Loss Reconciliation of net income to net cash provided by operating activities: Adjustments To Reconcile Net Income Loss To Cash Provided By Used In Operating Activities [Abstract] Amortization of deferred financing costs Amortization Of Financing Costs And Discounts Non-cash lease expense Non Cash Lease Expense Stock-based compensation expense Share Based Compensation Deferred income taxes Deferred Income Tax Expense Benefit Changes in operating assets and liabilities, net of effect of business acquisitions: Increase Decrease In Operating Capital [Abstract] Accounts receivable, net Increase Decrease In Accounts Receivable Prepaid expenses and other assets Increase Decrease In Prepaid Deferred Expense And Other Assets Accounts payable and other accrued expenses Increase Decrease In Accounts Payable And Accrued Liabilities Accrued compensation and benefits Increase Decrease In Accrued Salaries Income taxes payable and receivable Increase Decrease In Income Taxes Receivable Operating lease liabilities Increase Decrease In Operating Lease Liabilities Long-term liabilities Increase Decrease In Long Term Liabilities Net cash provided by operating activities Net Cash Provided By Used In Operating Activities CASH FLOWS FROM INVESTING ACTIVITIES Net Cash Provided By Used In Investing Activities [Abstract] Capital expenditures Payments To Acquire Productive Assets Cash paid for business acquisitions, net of cash acquired Payments To Acquire Businesses Net Of Cash Acquired Other Payments For Proceeds From Other Investing Activities Net cash used in investing activities Net Cash Provided By Used In Investing Activities CASH FLOWS FROM FINANCING ACTIVITIES Net Cash Provided By Used In Financing Activities [Abstract] Proceeds from borrowings under bank credit facilities Proceeds From Lines Of Credit Principal payments made under bank credit facilities Repayments Of Long Term Debt Payment of financing costs under bank credit facilities Payments Of Financing Costs Payment of contingent consideration Payment For Contingent Consideration Liability Financing Activities Proceeds from employee stock purchase plans Proceeds From Issuance Of Shares Under Incentive And Share Based Compensation Plans Repurchases of common stock Payments For Repurchase Of Common Stock Payment of taxes for equity transactions Payments Related To Tax Withholding For Share Based Compensation Net cash provided by (used in) financing activities Net Cash Provided By Used In Financing Activities Effect of exchange rate changes on cash and cash equivalents Effect Of Exchange Rate On Cash Cash Equivalents Restricted Cash And Restricted Cash Equivalents Net increase in cash and cash equivalents Cash Cash Equivalents Restricted Cash And Restricted Cash Equivalents Period Increase Decrease Including Exchange Rate Effect Cash and cash equivalents at beginning of period Cash Cash Equivalents Restricted Cash And Restricted Cash Equivalents Cash and cash equivalents at end of period SUPPLEMENTAL DISCLOSURES OF CASH FLOW INFORMATION Supplemental Cash Flow Information [Abstract] Cash paid during the period for income taxes, net of refunds Income Taxes Paid Net Cash paid during the period for interest Interest Paid Net Non-cash financing and investing activities: Cash Flow Noncash Investing And Financing Activities Disclosure [Abstract] Landlord sponsored tenant improvement Tenant Improvement Financed By Landlord Accrued capital expenditures Capital Expenditures Incurred But Not Yet Paid Stock issued during period value exercise of stock options and vesting of restricted stock units. Statement Of Stockholders Equity [Abstract] Statement [Table] Statement [Table] Equity Components Statement Equity Components [Axis] Equity Component Equity Component [Domain] Common Stock Common Stock [Member] Additional Paid-in Capital Additional Paid In Capital [Member] Retained Earnings Retained Earnings [Member] Accumulated Other Comprehensive Income (Loss) Accumulated Other Comprehensive Income [Member] Treasury Stock Treasury Stock [Member] Total CACI Shareholders' Equity Parent [Member] Noncontrolling Interest Noncontrolling Interest [Member] Statement [Line Items] Statement [Line Items] Beginning balance Beginning balance, shares Shares Issued Increase (Decrease) in Stockholders' Equity [Roll Forward] Increase Decrease In Stockholders Equity Roll Forward Cumulative effect adjustment of ASC 606, net of taxes Cumulative Effect Of New Accounting Principle In Period Of Adoption Stock-based compensation expense Adjustments To Additional Paid In Capital Sharebased Compensation Requisite Service Period Recognition Value Exercise of stock options and vesting of RSUs Stock Issued During Period Value Exercise Of Stock Options And Vesting Of Restricted Stock Units Stock issued during period shares exercise of stock options and vesting of restricted stock units. Exercise of stock options and vesting of RSUs, shares Stock Issued During Period Shares Exercise Of Stock Options And Vesting Of Restricted Stock Units Tax withholdings on restricted share vestings Restricted Stock Value Shares Issued Net Of Tax Withholdings Tax withholdings on restricted share vestings (in shares) Restricted Stock Shares Issued Net Of Shares For Tax Withholdings Change in fair value of interest rate swap agreements, net Currency translation adjustment Repurchases of common stock Treasury Stock Value Acquired Cost Method Repurchases of common stock (in shares) Treasury Stock Shares Acquired Treasury stock issued under stock purchase plans Stock Issued During Period Value Employee Stock Purchase Plan Treasury stock issued under stock purchase plans (in shares) Stock Issued During Period Shares Employee Stock Purchase Plans Ending balance Ending balance, shares Organization Consolidation And Presentation Of Financial Statements [Abstract] Basis of Presentation Organization Consolidation And Presentation Of Financial Statements Disclosure [Text Block] New Accounting Pronouncements And Changes In Accounting Principles [Abstract] Recent Accounting Pronouncements New Accounting Pronouncements And Changes In Accounting Principles [Text Block] Accounting Policies [Abstract] Summary of Significant Accounting Policies Significant Accounting Policies [Text Block] Business Combinations [Abstract] Acquisitions Business Combination Disclosure [Text Block] Finite Lived Intangible Assets Net [Abstract] Intangible Assets Intangible Assets Disclosure [Text Block] Goodwill And Intangible Assets Disclosure [Abstract] Goodwill Goodwill Disclosure [Text Block] Revenue From Contract With Customer [Abstract] Revenue Recognition Revenue From Contract With Customer [Text Block] Contract with customer asset and liability. Contract Balances Contract With Customer Asset And Liability [Text Block] Inventory Disclosure [Abstract] Inventories Inventory Disclosure [Text Block] Transfers And Servicing Of Financial Assets [Abstract] Sales of Receivables Transfers And Servicing Of Financial Assets [Text Block] Long Term Debt [Abstract] Long-term Debt Long Term Debt [Text Block] Leases [Abstract] Leases Lessee Operating Leases [Text Block] Commitments And Contingencies Disclosure [Abstract] Commitments and Contingencies Commitments And Contingencies Disclosure [Text Block] Disclosure Of Compensation Related Costs Sharebased Payments [Abstract] Stock-Based Compensation Disclosure Of Compensation Related Costs Share Based Payments [Text Block] Earnings Per Share [Abstract] Earnings Per Share Earnings Per Share [Text Block] Income Tax Disclosure [Abstract] Income Taxes Income Tax Disclosure [Text Block] Segment Reporting [Abstract] Business Segment Information Segment Reporting Disclosure [Text Block] Fair Value Disclosures [Abstract] Fair Value of Financial Instruments Fair Value Disclosures [Text Block] Basis of Presentation Basis Of Accounting Policy Policy [Text Block] Recent Accounting Pronouncements New Accounting Pronouncements Policy Policy [Text Block] Adjustments for New Accounting Pronouncements Adjustments For New Accounting Pronouncements [Axis] Type of Adoption Type Of Adoption [Member] ASU 2016-02 Accounting Standards Update201602 [Member] Impact of Adoption of ASC 842 Schedule Of New Accounting Pronouncements And Changes In Accounting Principles [Text Block] Schedule of Intangible Assets Schedule Of Finite Lived Intangible Assets Table [Text Block] Expected Amortization Expense Scheduleof Finite Lived Intangible Assets Future Amortization Expense Table [Text Block] Roll Forward of Goodwill Schedule Of Goodwill [Text Block] Disaggregation of Revenue by Contract Type, Customer Information and Prime or Subcontractor Disaggregation Of Revenue Table [Text Block] Contract Assets and Liabilities Contract With Customer Asset And Liability Table [Text Block] Components of Inventories Schedule Of Inventory Current Table [Text Block] Summary of MARPA Activity Transfer Of Financial Assets Accounted For As Sales Table [Text Block] Schedule of Long-term Debt Schedule Of Debt Table [Text Block] Aggregate Maturities of Long-term Debt Schedule Of Maturities Of Long Term Debt Table [Text Block] Cash Flow Hedges Schedule Of Derivative Instruments Gain Loss In Statement Of Financial Performance [Text Block] Summary of lease balances. Summary of Lease Balances Summary Of Lease Balances Table [Text Block] Summary of Lease Costs Lease Cost Table [Text Block] Schedule of Future Minimum Operating Lease Payments Lessee Operating Lease Liability Maturity Table [Text Block] Annual Performance-Based Awards Granted Schedule Of Nonvested Performance Based Units Activity Table [Text Block] Summary of Activity Related to RSUs Schedule Of Sharebased Compensation Restricted Stock And Restricted Stock Units Activity Table [Text Block] Calculation of basic and diluted earnings per share Schedule Of Earnings Per Share Basic And Diluted Table [Text Block] Business Segment Information [Abstract] Summarized Financial Information of Reportable Segments Schedule Of Segment Reporting Information By Segment [Text Block] Recurring Fair Value Measurements Schedule Of Fair Value Assets And Liabilities Measured On Recurring Basis Table [Text Block] Accounting Changes And Error Corrections [Abstract] New Accounting Pronouncements Or Change In Accounting Principle [Table] New Accounting Pronouncements Or Change In Accounting Principle [Table] New Accounting Pronouncements Or Change In Accounting Principle [Line Items] New Accounting Pronouncements Or Change In Accounting Principle [Line Items] Right of use assets Current lease liabilities Operating Lease Liability Current Non-current lease liabilities Schedule Of Business Acquisitions By Acquisition [Table] Schedule Of Business Acquisitions By Acquisition [Table] Business Acquisition Business Acquisition [Axis] Business Acquisition, Acquiree Business Acquisition Acquiree [Domain] LGS innovations. LGS L G S Innovations [Member] Other acquisitions. Other Acquisitions Other Acquisitions [Member] Business Acquisition [Line Items] Business Acquisition [Line Items] Purchase consideration Business Combination Consideration Transferred1 Measurement period adjustment to goodwill. Measurement period adjustment to goodwill Business Combination Provisional Information Initial Accounting Incomplete Adjustment Goodwill Number of strategic acquisitions Number Of Businesses Acquired Identifiable intangible assets Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Intangible Assets Other Than Goodwill Schedule Of Finite Lived Intangible Assets [Table] Schedule Of Finite Lived Intangible Assets [Table] Finite-Lived Intangible Assets by Major Class Finite Lived Intangible Assets By Major Class [Axis] Finite-Lived Intangible Assets, Major Class Name Finite Lived Intangible Assets Major Class Name [Domain] Represents information about customer contracts and related customer relationships. Customer contracts and related customer relationships Customer Contracts And Related Customer Relationships [Member] Acquired technologies Technology Based Intangible Assets [Member] Other Other Intangible Assets [Member] Finite Lived Intangible Assets [Line Items] Finite Lived Intangible Assets [Line Items] Intangible assets Finite Lived Intangible Assets Gross Less accumulated amortization Finite Lived Intangible Assets Accumulated Amortization Total intangible assets, net Write-Off of Fully Amortized Intangible Assets. Removal of fully amortized intangible assets Write Off Of Fully Amortized Intangible Assets Statistical Measurement Range [Axis] Statistical Measurement Range [Member] Minimum Minimum [Member] Maximum Maximum [Member] Intangible asset amortization period Finite Lived Intangible Asset Useful Life Weighted-average amortization period Acquired Finite Lived Intangible Assets Weighted Average Useful Life Weighted-average remaining amortization period Finite Lived Intangible Assets Remaining Amortization Period1 2020 (three months) Finite Lived Intangible Assets Amortization Expense Remainder Of Fiscal Year 2021 Finite Lived Intangible Assets Amortization Expense Year Two 2022 Finite Lived Intangible Assets Amortization Expense Year Three 2023 Finite Lived Intangible Assets Amortization Expense Year Four 2024 Finite Lived Intangible Assets Amortization Expense Year Five Thereafter Finite Lived Intangible Assets Amortization Expense After Year Five Schedule Of Goodwill [Table] Schedule Of Goodwill [Table] Segments Statement Business Segments [Axis] Segments Segment [Domain] Domestic operations. Domestic Domestic Operations [Member] International operations. International International Operations [Member] Goodwill [Roll Forward] Goodwill [Line Items] Goodwill [Roll Forward] Goodwill Roll Forward Balance Goodwill acquired Goodwill Purchase Accounting Adjustments Foreign currency translation Goodwill Foreign Currency Translation Gain Loss Balance Disaggregation Of Revenue [Table] Disaggregation Of Revenue [Table] Contract with Customer, Basis of Pricing Contract With Customer Basis Of Pricing [Axis] Contract with Customer, Basis of Pricing Contract With Customer Basis Of Pricing [Domain] Cost plus fee contract. Cost-plus-fee Cost Plus Fee Contract [Member] Firm fixed-price Fixed Price Contract [Member] Time and materials Time And Materials Contract [Member] Customer Major Customers [Axis] Customer Name Of Major Customer [Domain] Department of defense. Department of Defense Department Of Defense [Member] Federal civilian agencies. Federal civilian agencies Federal Civilian Agencies [Member] Commercial and other. Commercial and other Commercial And Other [Member] Contract with Customer, Sales Channel Contract With Customer Sales Channel [Axis] Contract with Customer, Sales Channel Contract With Customer Sales Channel [Domain] Prime contractor. Prime contractor Prime Contractor [Member] Subcontractor. Subcontractor Subcontractor [Member] Disaggregation Of Revenue [Line Items] Disaggregation Of Revenue [Line Items] Schedule Of Change In Accounting Estimate [Table] Schedule Of Change In Accounting Estimate [Table] Change in Accounting Estimate by Type Change In Accounting Estimate By Type [Axis] Change in Accounting Estimate, Type Change In Accounting Estimate Type [Domain] EAC Adjustments Contracts Accounted For Under Percentage Of Completion [Member] Change In Accounting Estimate [Line Items] Change In Accounting Estimate [Line Items] Income before income taxes Revenue from previously satisfied performance obligations Contract With Customer Performance Obligation Satisfied In Previous Period Remaining performance obligations Revenue Remaining Performance Obligation Remaining performance obligations. Remaining performance obligations. Remaining Performance Obligations [Table] Remaining Performance Obligations [Table] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date Revenue Remaining Performance Obligation Expected Timing Of Satisfaction Start Date [Axis] Remaining Performance Obligations [Line Items] Remaining Performance Obligations [Line Items] Remaining performance obligations, expected satisfaction, percentage Revenue Remaining Performance Obligation Percentage Remaining performance obligations, expected timing of satisfaction Revenue Remaining Performance Obligation Expected Timing Of Satisfaction Period1 Contract with customer, liability, current. Contract with customer, liability, noncurrent. Contract with customer assets (liabilities), net. Contract with Customer, Asset and Liability [Abstract] Contract With Customer Asset And Liability [Abstract] Contract assets – current: Contract With Customer Asset Net Current [Abstract] Unbilled receivables Contract With Customer Asset Net Current Costs to obtain – short-term Capitalized Contract Cost Net Current Contract assets – noncurrent: Contract With Customer Asset Net Noncurrent [Abstract] Unbilled receivables Costs to obtain – long-term Capitalized Contract Cost Net Noncurrent Contract liabilities – current: Contract With Customer Liability Current [Abstract] Deferred revenue and other contract liabilities – short-term Contract With Customer Liability Current Contract liabilities – noncurrent: Contract With Customer Liability Noncurrent [Abstract] Deferred revenue and other contract liabilities – long-term Contract With Customer Liability Noncurrent Net contract assets (liabilities) Contract With Customer Assets Liabilities Net Liability, revenue recognized Contract With Customer Liability Revenue Recognized Materials, purchased parts and supplies Inventory Raw Materials And Purchased Parts Net Of Reserves Work in process Inventory Work In Process Net Of Reserves Finished goods Inventory Finished Goods Net Of Reserves Total Inventory Net MARPA maximum commitment. MARPA maturity date. Transfer of financial assets accounted for as sales. MARPA Transfer Of Financial Assets Accounted For As Sales [Abstract] MARPA maturity date Transfers Of Financial Assets Accounted For As Sales Marpa Maturity Date MARPA maximum commitment Transfers Of Financial Assets Accounted For As Sales Marpa Maximum Commitment Amount outstanding as of the balance sheet date for sales of receivables under the MARPA Facility. Amount of cash collected and remitted to the Purchaser as of the balance sheet date for sales of receivables under the MARPA Facility. Cash collections not remitted to the Purchaser for sales of receivables under the MARPA Facility. Remaining sold receivables under the MARPA Facility. Outstanding balance sold to Purchaser Transfer Of Financial Assets Accounted For As Sales Amount Outstanding Sales of receivables Transfer Of Financial Assets Accounted For As Sales Amount Derecognized Cash collections Transfers Of Financial Assets Accounted For As Sales Cash Collected Cash collected, not remitted to Purchaser Transfers Of Financial Assets Accounted For As Sales Cash Collected Not Remitted To Purchaser Remaining sold receivables Transfer Of Financial Assets Accounted For As Sales Remaining Sold Receivables Cash provided (used) by MARPA. Cash provided (used) by MARPA Cash Provided Used By M A R P A Debt Instrument [Table] Debt Instrument [Table] Credit Facility Credit Facility [Axis] Credit Facility Credit Facility [Domain] Bank credit facility - term loans Secured Debt [Member] Bank credit facility - revolver loans Revolving Credit Facility [Member] Debt Instrument [Line Items] Debt Instrument [Line Items] Principal amount of long-term debt Debt Instrument Carrying Amount Less unamortized discounts and debt issuance costs Debt Instrument Unamortized Discount Premium And Debt Issuance Costs Net Total long-term debt Long Term Debt Less current portion Represents bank credit facility. Bank Credit Facility Bank Credit Facility [Member] Revolving Credit Facility Term loans Represent same-day swing line loan sub facility of revolving credit facility. Same-Day Swing Line Loan Revolving Credit Sub-Facility Same Day Swing Line Loan [Member] Stand-By Letters Of Credit Revolving Credit Sub-Facility Standby Letters Of Credit [Member] Derivative Instrument Derivative Instrument Risk [Axis] Derivative Contract Derivative Contract Type [Domain] Interest Rate Swap Interest Rate Swap [Member] Hedging Relationship Derivative Instruments Gain Loss By Hedging Relationship [Axis] Hedging Relationship Hedging Relationship [Domain] Cash Flow Hedging Cash Flow Hedging [Member] Credit facility maximum borrowing capacity Line Of Credit Facility Maximum Borrowing Capacity Outstanding amount under Credit Facility Term loan period Debt Instrument Term Loan maturity date Line Of Credit Facility Expiration Date1 Term loan frequency of payment Line Of Credit Facility Frequency Of Payments Term loan principal payment Line Of Credit Facility Periodic Payment Principal Outstanding borrowings interest rate Debt Instrument Interest Rate Effective Percentage 2021 Long Term Debt Maturities Repayments Of Principal In Next Rolling Twelve Months 2022 Long Term Debt Maturities Repayments Of Principal In Rolling Year Two 2023 Long Term Debt Maturities Repayments Of Principal In Rolling Year Three 2024 Long Term Debt Maturities Repayments Of Principal In Rolling Year Four 2025 Long Term Debt Maturities Repayments Of Principal In Rolling Year Five Principal amount of long-term debt Aggregate notional amount Derivative Notional Amount Gain (loss) recognized in other comprehensive income Other Comprehensive Income Loss Before Reclassifications Net Of Tax Amounts reclassified to earnings from accumulated other comprehensive loss Derivative Instruments Gain Loss Reclassified From Accumulated O C I Into Income Effective Portion Net Net current period other comprehensive income (loss) Operating lease liabilities, current Operating lease liabilities Operating Lease Liability Short-term and variable lease cost. Operating lease cost Operating Lease Cost Short-term and variable lease cost Short Term And Variable Lease Cost Sublease income Sublease Income Total lease cost Lease Cost Lessee, Operating Lease, Liability, Payment, Due [Abstract] Operating Lease Liabilities Payments Due [Abstract] 2020 (three months) Lessee Operating Lease Liability Payments Remainder Of Fiscal Year 2021 Lessee Operating Lease Liability Payments Due Year Two 2022 Lessee Operating Lease Liability Payments Due Year Three 2023 Lessee Operating Lease Liability Payments Due Year Four 2024 Lessee Operating Lease Liability Payments Due Year Five Thereafter Lessee Operating Lease Liability Payments Due After Year Five Total undiscounted lease payments Lessee Operating Lease Liability Payments Due Less: imputed interest Lessee Operating Lease Liability Undiscounted Excess Amount Total discounted lease liabilities Lessee Lease Description [Table] Lessee Lease Description [Table] Subsequent Event Type Subsequent Event Type [Axis] Subsequent Event Type Subsequent Event Type [Domain] Subsequent Event Subsequent Event [Member] Lessee, Lease, Description [Line Items] Lessee Lease Description [Line Items] Operating lease, weighted average remaining lease term Operating Lease Weighted Average Remaining Lease Term1 Operating lease, weighted average discount rate Operating Lease Weighted Average Discount Rate Percent Cash paid for operating leases Operating Lease Payments Operating lease liabilities arising from obtaining new ROU assets Right Of Use Asset Obtained In Exchange For Operating Lease Liability Annual estimated lease cost Term of contract Lessee Operating Lease Term Of Contract Schedule Of Share Based Compensation Arrangements By Share Based Payment Award [Table] Schedule Of Share Based Compensation Arrangements By Share Based Payment Award [Table] Award Type Award Type [Axis] Award Type Share Based Compensation Arrangements By Share Based Payment Award Award Type And Plan Name [Domain] Represents information about performance-based restricted stock units. PRSUs Performance Based Restricted Stock Units [Member] Plan Name Plan Name [Axis] Plan Name Plan Name [Domain] Two thousand sixteen incentive compensation plan. 2016 Plan Two Thousand Sixteen Incentive Compensation Plan [Member] RSUs Restricted Stock Units R S U [Member] Share-based Compensation Arrangement by Share-based Payment Award [Line Items] Share Based Compensation Arrangement By Share Based Payment Award [Line Items] Stock-based compensation related to restricted stock units Allocated Share Based Compensation Expense Represents information about average share price determination period. Average share price performance condition, percentage by which the average share price of the Company’s stock in years one, two and three exceeds the average share price at the grant date. Maximum earned award percentage of target award. Service vesting condition which stipulates that 50 percent of the earned award will vest after three years. Service vesting condition which stipulates that 50 percent of the earned award will vest after four years. Period to establish average share price for performance measurement Average Share Price Determination Period Average share price performance condition, percentage Average Share Price Performance Condition Percentage Maximum earned award, percentage of target award Maximum Earned Award Percentage Of Target Percentage of earned award vesting after three years Percentage Of Earned Award Vesting After Three Years Percentage of earned award vesting after four years Percentage Of Earned Award Vesting After Four Years Represents the number of additional PRSUs earned pursuant to condition. Fiscal year two thousand twenty, performance-based restricted Stock Units. FY2020 PRSUs Fiscal Year Two Thousand Twenty Performance Based Restricted Stock Units [Member] Fiscal year two thousand nineteen, performance-based restricted stock units. FY2019 PRSUs Fiscal Year Two Thousand Nineteen Performance Based Restricted Stock Units [Member] Fiscal year two thousand eighteen, performance-based restricted stock units. FY2018 PRSUs Fiscal Year Two Thousand Eighteen Performance Based Restricted Stock Units [Member] PRSUs granted Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Grants In Period Additional PRSUs earned pursuant to condition Additional Performance Based Restricted Stock Units Earned Pursuant To Condition Cumulative equity instruments awarded. Cumulative equity instruments forfeited. Number of shares authorized for grants Share Based Compensation Arrangement By Share Based Payment Award Number Of Shares Authorized Cumulative equity instruments awarded Cumulative Equity Instruments Awarded Cumulative equity instruments forfeited Cumulative Equity Instruments Forfeited Unvested at June 30, 2019 Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Nonvested Number Granted Vested Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Vested In Period Forfeited Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Forfeited In Period Unvested at March 31, 2020 Unrecognized compensation cost Employee Service Share Based Compensation Nonvested Awards Total Compensation Cost Not Yet Recognized Weighted-average period to recognize unrecognized compensation cost (in years) Employee Service Share Based Compensation Nonvested Awards Total Compensation Cost Not Yet Recognized Period For Recognition1 Weighted-average number of basic shares outstanding during the period Dilutive effect of RSUs after application of treasury stock method Incremental Common Shares Attributable To Share Based Payment Arrangements Weighted-average number of diluted shares outstanding during the period Liability for unrecognized tax benefits Unrecognized Tax Benefits Unrecognized tax benefit that would impact the company's effective tax rate Unrecognized Tax Benefits That Would Impact Effective Tax Rate Effective tax rate, percentage Effective Income Tax Rate Continuing Operations Number of reportable segments Number Of Reportable Segments Schedule Of Segment Reporting Information By Segment [Table] Schedule Of Segment Reporting Information By Segment [Table] Domestic Operations International Operations Segment Reporting Information [Line Items] Segment Reporting Information [Line Items] Revenue from external customers Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Table] Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Table] Measurement Frequency Fair Value By Measurement Frequency [Axis] Measurement Frequency Fair Value Measurement Frequency [Domain] Fair Value, Measurements, Recurring Fair Value Measurements Recurring [Member] Balance Sheet Location Balance Sheet Location [Axis] Balance Sheet Location Balance Sheet Location [Domain] Other accrued expenses and current liabilities. Other accrued expenses and current liabilities Other Accrued Expenses And Current Liabilities [Member] Other long-term assets Other Noncurrent Assets [Member] Other accrued expenses and current liabilities Other long-term liabilities Other Noncurrent Liabilities [Member] Fair Value Hierarchy and NAV Fair Value By Fair Value Hierarchy Level [Axis] Fair Value Hierarchy and NAV Fair Value Measurements Fair Value Hierarchy [Domain] Level 3 Fair Value Inputs Level3 [Member] Level 2 Fair Value Inputs Level2 [Member] Financial Instrument Financial Instrument [Axis] Financial Instruments Transfers And Servicing Of Financial Instruments Types Of Financial Instruments [Domain] Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] Contingent consideration Business Combination Contingent Consideration Liability Interest rate swap agreements Derivative Assets Interest rate swap agreements Derivative Liabilities Represents business combination contingent consideration period for achieving earnings targets. Business combination contingent consideration period Business Combination Contingent Consideration Period Increase in fair value of contingent consideration Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Liability Period Increase Decrease