<DefinitionAndReference>
  <Element Id="us-gaap_LongTermDebtCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PaymentsToAcquirePropertyPlantAndEquipment">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherComprehensiveIncomeReclassificationAdjustmentOnDerivativesIncludedInNetIncomeNetOfTax">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_EntityCommonStockSharesOutstanding">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_RetainedEarningsAccumulatedDeficit">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DeferredTaxAssetsLiabilitiesNetCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherComprehensiveIncomeReclassificationAdjustmentOnDerivativesIncludedInNetIncomeTax">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PaymentsOfDividendsMinorityInterest">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherInterestAndDividendIncome">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherLiabilitiesNoncurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="eme_ProceedsFromReturnOfCapitalLoanRepaymentsAndSaleOfAssets">
    <definition>Proceeds from return of capital and loan repayments (includes distributions received from unconsolidated subsidiaries that constitute a return of investment or loan repayment) and sale of assets (cash inflow from sale of other property, plant and equipment used to produce goods or deliver services, and not otherwise defined in taxonomy)</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_EntityPublicFloat">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_NetCashProvidedByUsedInFinancingActivities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DueToAffiliateCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecrease">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="eme_IncomeLossFromEquityMethodInvestmentsCashFlowImpact">
    <definition>This item represents the entity's proportionate share for the period of the undistributed net income (loss) of its investee (such as unconsolidated subsidiaries and joint ventures) to which the equity method of accounting is applied.  Such amount typically reflects adjustments similar to those made in preparing consolidated statements, including adjustments to eliminate intercompany gains and losses and to amortize, if appropriate, any difference between cost and underlying equity in net assets of the investee at the date of investment.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="eme_IncreaseInRentPaymentsInExcessOfLevelizedRentExpense">
    <definition>The net change during the reporting period in the aggregate value of rent payments in excess of levelized rent expense under plant operating leases.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ElectricalGenerationRevenue">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherComprehensiveIncomeDefinedBenefitPlanNetPriorServiceCostsCreditArisingDuringPeriodNetOfTax">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_EntityCentralIndexKey">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PropertyPlantAndEquipmentTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="eme_CompensationAndBenefitPlansDisclosureTextBlock">
    <definition>Description containing the entire pension and other postretirement benefits disclosure as a single block of text. Also includes disclosure of compensation-related costs for share-based compensation which may include disclosure of policies, compensation plan details, allocation of stock compensation, incentive distributions, share-based arrangements to obtain goods and services, deferred compensation arrangements, employee stock ownership plan details and employee stock purchase plan details.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_GainLossOnContractTermination">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_InterestPayableCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DeferredIncomeTaxesAndTaxCredits">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherAssetsNoncurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_MinorityInterest">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherComprehensiveIncomeReclassificationOfDefinedBenefitPlansNetGainLossRecognizedInNetPeriodicBenefitCostNetOfTax">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DerivativeAssetsNoncurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncreaseDecreaseInOtherOperatingAssets">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="eme_TotalOtherAssetsNoncurrent">
    <definition>Sum of the carrying amounts as of the balance sheet date of all other assets that are expected to be realized in cash, sold or consumed after one year or beyond the normal operating cycle, if longer.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DividendsCommonStockCash">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_EntityRegistrantName">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ComprehensiveIncomeNoteTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PaymentsToAcquireInterestInSubsidiariesAndAffiliates">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_RepaymentsOfLongTermDebt">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_NetIncomeLoss">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="eme_GainLossOnContractTerminationAssetImpairmentAndOtherChargesCreditsNet">
    <definition>This element represents the income received from or payment made to a third party in connection with the termination of a contract between the parties. The termination may be due to many causes including early termination of a lease by a lessee, a breach of contract by one or the other party, a failure to perform. This element also includes charges against earnings resulting from the write down of long lived assets other than goodwill due to the difference between the carrying value and lower fair value, and various other charges and credits not specifically identified in the taxonomy.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DerivativeLiabilitiesNoncurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CommonStockSharesIssued">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_FuelCosts">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_NetCashProvidedByUsedInInvestingActivities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_SaleLeasebackTransactionRentExpense">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncreaseDecreaseInReceivables">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_EntityWellKnownSeasonedIssuer">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_EquityMethodInvestmentDividendsOrDistributions">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncreaseDecreaseInInventories">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="eme_RentPaymentsInExcessOfLevelizedRentExpenseUnderPlantOperatingLeases">
    <definition>Represents prepaid rent, which is the excess of cash rent payments over the amount of rent expense levelized over the term of each plant operating lease. To the extent that cash rent payments are less than the amount levelized, prepaid rent is reduced.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_EntityVoluntaryFilers">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CommonStockSharesOutstanding">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DeferredRevenueAndCreditsNoncurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DeferredFinanceCostsNoncurrentNet">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CommonStockValue">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="eme_AcquisitionsAndScheduleOfVariableInterestEntitiesTextBlock">
    <definition>Description of a business combination (or series of individually immaterial business combinations) completed during the period, including background, timing, and recognized assets and liabilities. This element may be used as a single block of text to encapsulate the entire disclosure (including data and tables) regarding business combinations, including leverage buyout transactions (as applicable). This disclosure also includes disclosures of variable interest entities (VIE), including, but not limited to the nature, purpose, size, and activities of the VIE, the carrying amount and classification of consolidated assets that are collateral for the VIE's obligations, lack of recourse if creditors (or beneficial interest holders) of a consolidated VIE have no recourse to the general credit of the primary beneficiary. An enterprise that holds a significant variable interest in a VIE but is not the primary beneficiary may disclose the nature of its involvement with the VIE and when that involvement began, the nature, purpose, size, and activities of the VIE and the enterprise's maximum exposure to loss as a result of its involvement with the VIE.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncomeLossFromContinuingOperations">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_NetIncomeLossAttributableToNoncontrollingInterest">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CashAndCashEquivalentsAtCarryingValue">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="eme_IncomeFromContinuingOperationsBeforeIncomeTaxes">
    <definition>Sum of operating profit and non operating income (expense) before income taxes and noncontrolling interest.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="eme_PaymentsToParentForStockPurchasesRelatedToStockBasedCompensation">
    <definition>Represents adjustments to retained earnings due to payments made to parent for stock purchases, related to stock-based compensation.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DerivativeAssetsCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_MinorityInterestIncreaseFromStockIssuance">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_RestructuringAndRelatedActivitiesDisclosureTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_LongTermDebtNoncurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_Liabilities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_NetCashProvidedByUsedInOperatingActivities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncreaseDecreaseInRestrictedCash">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_LiabilitiesCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncomeTaxDisclosureTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_StockholdersEquity">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CommonStockSharesAuthorized">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="eme_PrepaidExpensesAndOtherCurrentAssets">
    <definition>Sum of the amounts paid in advance for capitalized costs that will be expensed with the passage of time or the occurrence of a triggering event, and will be charged against earnings within one year or the normal operating cycle, if longer, combined with the aggregate carrying amount, as of the balance sheet date, of current assets not separately disclosed in the balance sheet due to materiality considerations. Current assets are expected to be realized or consumed within one year (or the normal operating cycle, if longer).</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_StockholdersEquityOther">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ComprehensiveIncomeNetOfTax">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncreaseDecreaseInRestrictedCashForOperatingActivities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ProceedsFromContributionsFromParent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncreaseDecreaseInOtherOperatingLiabilities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncreaseDecreaseInMarginDepositsOutstanding">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_SignificantAccountingPoliciesTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_QuarterlyFinancialInformationTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ProfitLoss">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncomeLossFromEquityMethodInvestments">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="eme_PremiumPaidOnExtinguishmentOfDebtAndFinancingCosts">
    <definition>Amount represents the difference between the fair value of the payments made and the carrying amount of the debt at the time of its extinguishment, and the write-off of amounts previously capitalized as debt issuance cost in an extinguishment of debt.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherCostAndExpenseOperating">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CommitmentsAndContingencies2009">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="eme_InvestmentsInUnconsolidatedAffiliatesTextBlock">
    <definition>This element may be used as a single block of text to include the entire equity and cost method investments disclosure, including data and tables.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherNonoperatingIncomeExpense">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AccountsReceivableNetCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CostsAndExpenses">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CashFlowSupplementalDisclosuresTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CumulativeEffectOfInitialAdoptionOfFIN48">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="eme_DepreciationAndAmortizationCashFlowImpact">
    <definition>The cash flow impact of the current period expense charged against earnings on long-lived, physical assets used in the normal conduct of business and not intended for resale to allocate or recognize the cost of assets over their useful lives; or to record the reduction in book value of an intangible asset over the benefit period of such asset. Examples include buildings, production equipment and customer lists, deferred financing costs, and accretion of discounted liabilities.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncreaseDecreaseInInterestPayableNet">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_GoodFaithAndMarginDepositsWithBrokerDealers">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_EntityFilerCategory">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DeferredTaxAssetsLiabilitiesNetNoncurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_CurrentFiscalYearEndDate">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PaymentsToAcquireHeldToMaturitySecurities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncreaseDecreaseInCommodityContractAssetsAndLiabilities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_RelatedPartyTransactionsDisclosureTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DueFromAffiliateCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodTax">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PropertyPlantAndEquipmentGross">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ExcessTaxBenefitFromShareBasedCompensationFinancingActivities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="eme_PaymentsToAffiliatesShareBasedCompensation">
    <definition>Represents cash used by parent company to settle stock options exercised by employees of affiliates.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PaymentsForProceedsFromOtherInvestingActivities">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_NonoperatingIncomeExpense">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_RestrictedCashAndInvestmentsNoncurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodTax">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DepreciationDepletionAndAmortization">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AdditionalPaidInCapitalCommonStock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_Assets">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ProceedsFromIssuanceOfLongTermDebt">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_DocumentType">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="eme_CashContributionsFromNoncontrollingInterests">
    <definition>The amount contributed by noncontrolling shareholders.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_AmendmentFlag">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CommitmentsAndContingenciesDisclosureTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ProceedsFromMinorityShareholders">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DebtDisclosureTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_InvestmentIncomeInterest">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PaymentsOfDividendsCommonStock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_IncomeTaxExpenseBenefit">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_EntityCurrentReportingStatus">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_GeneralAndAdministrativeExpense">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_InventoryNet">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_PropertyPlantAndEquipmentNet">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AccruedLiabilitiesCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AssetsCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_FairValueDisclosuresTextBlock">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_OperatingIncomeLoss">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="eme_ProceedsFromSaleOfMembershipInterest">
    <definition>Proceeds From Sale Of Membership Interest</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_LiabilitiesAndStockholdersEquity">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_DerivativeLiabilitiesCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_GainsLossesOnExtinguishmentOfDebt">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_AccountsPayableCurrent">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_CommonStockParOrStatedValuePerShare">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="dei_DocumentPeriodEndDate">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
  <Element Id="us-gaap_InterestExpense">
    <definition>No authoritative reference available.</definition>
    <reference>No authoritative reference available.</reference>
  </Element>
</DefinitionAndReference>
