Summary of Significant Accounting Policies | SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES: Principles of Consolidation The condensed consolidated financial statements of Quanta include the accounts of Quanta Services, Inc. and its wholly owned subsidiaries, which are also referred to as its operating units. The condensed consolidated financial statements also include the accounts of certain of Quanta’s investments in joint ventures, which are either consolidated or proportionately consolidated, as discussed in the following summary of significant accounting policies. Investments in affiliated entities in which Quanta does not have a controlling financial interest, but over which Quanta has significant influence, usually because Quanta holds a voting interest of between 20% and 50%, are accounted for using the equity method. All significant intercompany accounts and transactions have been eliminated in consolidation. Unless the context requires otherwise, references to Quanta include Quanta Services, Inc. and its consolidated subsidiaries. Interim Condensed Consolidated Financial Information These unaudited condensed consolidated financial statements have been prepared pursuant to the rules of the U.S. Securities and Exchange Commission (SEC). Certain information and footnote disclosures, normally included in annual financial statements prepared in accordance with generally accepted accounting principles in the United States (GAAP), have been condensed or omitted pursuant to those rules and regulations. Quanta believes that the disclosures made are adequate to make the information presented not misleading. In the opinion of management, all adjustments, consisting only of normal recurring adjustments, necessary to fairly state the financial position, results of operations, comprehensive income and cash flows with respect to the interim condensed consolidated financial statements have been included. The results of operations and comprehensive income for the interim periods are not necessarily indicative of the results for the entire fiscal year. The results of Quanta have historically been subject to significant seasonal fluctuations. Quanta recommends that these unaudited condensed consolidated financial statements be read in conjunction with the audited consolidated financial statements and notes thereto of Quanta and its consolidated subsidiaries included in Quanta’s Annual Report on Form 10-K for the year ended December 31, 2018 (2018 Annual Report), which was filed with the SEC on February 28, 2019 . Use of Estimates and Assumptions The preparation of financial statements in conformity with GAAP requires the use of estimates and assumptions by management in determining the reported amounts of assets and liabilities, disclosures of contingent assets and liabilities known to exist as of the date the financial statements are published, and the reported amounts of revenues and expenses recognized during the periods presented. Quanta reviews all significant estimates affecting its consolidated financial statements on a recurring basis and records the effect of any necessary adjustments prior to their publication. Judgments and estimates are based on Quanta’s beliefs and assumptions derived from information available at the time such judgments and estimates are made. Uncertainties with respect to such estimates and assumptions are inherent in the preparation of financial statements. Estimates are primarily used in Quanta’s assessment of the allowance for doubtful accounts, valuation of inventory, useful lives of assets, fair value assumptions in analyzing goodwill, other intangibles and long-lived asset impairments, equity and other investments, purchase price allocations, acquisition-related contingent consideration liabilities, multiemployer pension plan withdrawal liabilities, contingent liabilities associated with, among other things, legal proceedings and claims, parent guarantees and indemnity obligations, revenue recognition for construction contracts inclusive of contractual change orders and claims, estimated insurance claim recoveries, stock-based compensation, operating results of reportable segments, the provision for income taxes, and the calculation of uncertain tax positions. Revenue Recognition Contracts Quanta designs, installs, upgrades, repairs and maintains infrastructure for customers in the electric power, energy and communications industries. These services may be provided pursuant to master service agreements (MSAs), repair and maintenance contracts and fixed price and non-fixed price installation contracts. These contracts are classified into three categories based on how transaction prices are determined and revenue is recognized: unit-price contracts, cost-plus contracts and fixed price contracts. Transaction prices for unit-price contracts are determined on a per unit basis, transaction prices for cost-plus contracts are determined by applying a profit margin to costs incurred on the contracts and transaction prices for fixed price contracts are determined on a lump-sum basis. All of Quanta’s revenues are recognized from contracts with its customers. In addition to the considerations described below, revenue is not recognized unless collectability under the contract is considered probable, the contract has commercial substance and the contract has been approved. Additionally, the contract must contain payment terms, as well as the rights and commitments of both parties. Performance Obligations A performance obligation is a promise in a contract with a customer to transfer a distinct good or service. Most of Quanta’s contracts are considered to have a single performance obligation whereby Quanta is required to integrate complex activities and equipment into a deliverable for the customer. For contracts with multiple performance obligations, Quanta allocates a portion of the total transaction price to each performance obligation using its best estimate of the standalone selling price of the distinct good or service associated with each performance obligation. The standalone selling price is estimated using the expected costs plus a margin approach for each performance obligation. At June 30, 2019 , the aggregate transaction price allocated to unsatisfied or partially satisfied performance obligations was approximately $4.65 billion , of which 76.8% was expected to be recognized in the subsequent twelve months . This amount represents management’s estimate of the consolidated revenues that are expected to be realized from the remaining portion of firm orders under fixed price contracts not yet completed or for which work has not yet begun. For purposes of calculating remaining performance obligations, Quanta includes all estimated revenues attributable to consolidated joint ventures and variable interest entities, revenues from funded and unfunded portions of government contracts to the extent they are reasonably expected to be realized and revenues from change orders and claims to the extent management believes additional contract revenues will be earned and are deemed probable of collection. Excluded from remaining performance obligations are potential orders under MSAs and non-fixed price contracts expected to be completed within one year. Recognition of Revenue Upon Satisfaction of Performance Obligations A transaction price is determined for each contract, and that amount is allocated to each performance obligation within the contract and recognized as revenue when, or as, the performance obligation is satisfied. Quanta generally recognizes revenue over time as it performs its obligations because there is a continuous transfer of control of the deliverable to the customer. Under unit-price contracts with an insignificant amount of partially completed units, Quanta recognizes revenue as units are completed based on contractual pricing amounts. Under unit-price contracts with more than an insignificant amount of partially completed units and fixed price contracts, Quanta recognizes revenues as performance obligations are satisfied over time, with the percentage completion generally measured as the percentage of costs incurred to total estimated costs for such performance obligation. Under cost-plus contracts, Quanta recognizes revenue on an input basis, as labor hours are incurred, materials are utilized and services are performed. Under contracts where Quanta has a right to consideration in an amount that directly corresponds to the value of completed performance, Quanta recognizes revenue in such amount and does not include such performance as a remaining performance obligation. Also, contract consideration is not adjusted for a significant financing component if payment is expected to be collected less than one year from when the services are performed. Contract costs include all direct materials, labor and subcontract costs and indirect costs related to contract performance, such as indirect labor, supplies, tools, repairs and depreciation costs. The majority of the materials associated with Quanta’s work are owner-furnished, and therefore not included in contract revenues and costs. Additionally, Quanta may incur incremental costs to obtain certain contracts, such as selling and marketing costs, bid and proposal costs, sales commissions, and legal fees or initial set-up or mobilization costs, certain of which can be capitalized. Such costs were not material during the three and six months ended June 30, 2019 and 2018 . Contract Estimates Actual revenues and project costs can vary, sometimes substantially, from previous estimates due to changes in a variety of factors, including unforeseen or changed circumstances not included in Quanta’s cost estimates or covered by its contracts. The estimating process is based on the professional knowledge and experience of Quanta’s engineers, project managers and financial professionals. Some of the factors that may lead to changes in estimates include concealed or unknown environmental conditions; changes in the cost of equipment, commodities, materials or labor; unanticipated costs or claims due to delays caused by customers or third parties; customer failure to provide required materials or equipment; errors in engineering, specifications or designs; project modifications or contract termination; weather conditions; changes in estimates related to the length of time to complete a performance obligation; and performance and quality issues requiring rework or replacement. These factors, along with other risks inherent in performing services under fixed price contracts, are routinely evaluated by management. Any changes in estimates could result in changes to profitability or losses associated with the related performance obligations. For example, estimated costs for a performance obligation may increase from an original estimate and contractual provisions may not allow for adequate compensation or reimbursement for such additional costs. Changes in estimated revenues, costs and profit are recorded in the period they are determined to be probable and can be reasonably estimated. Contract losses are recognized in full when losses are determined to be probable and can be reasonably estimated. Changes in cost estimates on certain contracts may result in the issuance of change orders, which may be approved or unapproved by the customer, or the assertion of contract claims. Quanta determines the probability that costs associated with change orders and claims will be recovered based on, among other things, contractual entitlement, past practices with the customer, specific discussions or preliminary negotiations with the customer or verbal approvals by the customer. Quanta recognizes amounts associated with change orders and claims as revenue if it is probable that the contract price will be adjusted and the amount of any such adjustment can be reliably estimated. Most of Quanta’s change orders are for services that are not distinct from an existing contract and are accounted for as part of an existing contract on a cumulative catch-up basis. Quanta accounts for a change order as a separate contract if the additional goods or services are distinct from and increase the scope of the contract, and the price of the contract increases by an amount commensurate to Quanta’s standalone selling price for the additional goods or services. As of June 30, 2019 and December 31, 2018 , Quanta had recognized revenues of $131.7 million and $121.8 million related to change orders and claims included as contract price adjustments and that were in the process of being negotiated in the normal course of business. These aggregate amounts, which are included in “Contract assets” in the accompanying condensed consolidated balance sheets, represent management’s estimates of additional contract revenues that have been earned and are probable of collection. However, Quanta’s estimates could be incorrect, and the amount ultimately realized could be significantly higher or lower than the estimated amount. Variable consideration amounts, including performance incentives, early pay discounts and penalties, may also cause changes in contract estimates. The amount of variable consideration is estimated based on the most likely amount that is deemed probable of realization. Contract consideration is adjusted for variable consideration when it is probable that a significant reversal in the amount of cumulative revenue recognized will not occur once the uncertainty related to the variable consideration is resolved. Changes in contract estimates are recognized on a cumulative catch-up basis in the period in which the revisions to the estimates are made. Such changes in estimates can result in the recognition of revenue in a current period for performance obligations that were satisfied or partially satisfied in prior periods or the reversal of previously recognized revenue if the current estimate differs from the previous estimate. The impact of a change in estimate is measured as the difference between the revenue or gross profit recognized in the prior period as compared to the revenue or gross profit which would have been recognized had the revised estimate been used as the basis of recognition in the prior period. Quanta’s operating results for the three months ended June 30, 2019 were negatively impacted by 6.4% as a result of aggregate changes in contract estimates related to projects that were in progress at March 31, 2019 . These changes in contract estimates include the correction of $14.5 million of prior period errors related to the determination of total estimated project costs and the resulting revenue recognized on a large telecommunications project in Peru that was terminated. The prior period errors were determined to be immaterial individually and in the aggregate to the prior period financial statements. See additional discussion in Legal Proceedings in Note 11. Also negatively impacting gross profit during the three months ended June 30, 2019 related to work performed in prior periods was $13.9 million associated with continued rework and start-up delays on a processing facility project in Texas, which had a contract value of $141 million and was approximately 96% complete as of June 30, 2019 . These unfavorable changes were partially offset by an aggregate positive change in estimates on other ongoing projects. Quanta’s operating results for the six months ended June 30, 2019 were negatively impacted by 2.7% as a result of aggregate changes in contract estimates related to projects that were in progress at December 31, 2018 . Contributing to these negative impacts to gross profit were an $9.6 million correction of prior period errors referenced above and a $22.3 million increase in estimated costs associated with the processing facility construction project in Texas described above. Partially offsetting these changes was the positive impact on gross profit during the six months ended June 30, 2019 associated with work performed in prior periods of $28.2 million related to an electrical transmission project in Canada that was completed ahead of schedule during the three months ended March 31, 2019, which resulted in lower costs than previously estimated. Quanta’s operating results for the three and six months ended June 30, 2018 were impacted by less than 5% as a result of aggregate changes in contract estimates related to projects that were in progress at March 31, 2018 and December 31, 2017 , respectively. Quanta successfully executed through project procurement, winter schedule challenges and productivity risks on the electrical transmission project in Canada referenced above, resulting in reductions to the estimated total costs necessary to complete the project. These changes positively impacted gross profit related to work performed in prior periods by $16.6 million and $26.3 million during the three and six months ended June 30, 2018 . These positive changes were partially offset by an aggregate negative change in estimates on other ongoing projects. Revenues by Category The following tables present Quanta’s revenue disaggregated by geographic location and contract type for the three and six months ended June 30, 2019 and 2018 (in thousands): Three Months Ended June 30, Six Months Ended June 30, 2019 2018 2019 2018 By primary geographic location: United States $ 2,561,924 90.3 % $ 2,193,437 82.5 % $ 4,762,539 84.3 % $ 3,905,864 77.0 % Canada 202,221 7.1 % 315,173 11.9 % 687,651 12.2 % 853,531 16.8 % Australia 36,886 1.3 % 113,880 4.3 % 78,210 1.4 % 233,337 4.6 % Latin America and Other 38,168 1.3 % 33,858 1.3 % 118,058 2.1 % 81,192 1.6 % Total revenues $ 2,839,199 100.0 % $ 2,656,348 100.0 % $ 5,646,458 100.0 % $ 5,073,924 100.0 % Three Months Ended June 30, Six Months Ended June 30, 2019 2018 2019 2018 By contract type: Unit-price contracts $ 1,020,650 35.9 % $ 1,018,145 38.3 % $ 1,915,694 33.9 % $ 1,631,583 32.2 % Cost-plus contracts 1,103,135 38.9 % $ 605,212 22.8 % $ 2,061,490 36.5 % $ 1,184,261 23.3 % Fixed price contracts 715,414 25.2 % 1,032,991 38.9 % 1,669,274 29.6 % 2,258,080 44.5 % Total revenues $ 2,839,199 100.0 % $ 2,656,348 100.0 % $ 5,646,458 100.0 % $ 5,073,924 100.0 % As described above, under unit-price contracts with more than an insignificant amount of partially completed units and fixed price contracts, revenue is recognized as performance obligations are satisfied over time, with the percentage completion generally measured as the percentage of costs incurred to total estimated costs for such performance obligation. Approximately 49.1% and 54.9% of Quanta’s revenues recognized during the three months ended June 30, 2019 and 2018 were associated with this revenue recognition method, and 50.5% and 54.4% of Quanta’s revenues recognized during the six months ended June 30, 2019 and 2018 were associated with this revenue recognition method. Contract Assets and Liabilities With respect to Quanta’s contracts, interim payments are typically received as work progresses in accordance with agreed-upon contractual terms, either at periodic intervals or upon achievement of contractual milestones. As a result, under fixed price contracts, the timing of revenue recognition and contract billings results in contract assets and contract liabilities. Contract assets represent revenues recognized in excess of amounts billed for fixed price contracts and are current assets that are transferred to accounts receivable when billed or the billing rights become unconditional. Contract assets are not considered a significant financing component as they are intended to protect the customer in the event Quanta does not perform on its obligations under the contract. Conversely, contract liabilities represent billings in excess of revenues recognized for fixed price contracts. These arise under certain contracts that allow for upfront payments from the customer or contain contractual billing milestones, which result in billings that exceed the amount of revenues recognized for certain periods. Contract liabilities are current liabilities and are not considered a significant financing component, as they are used to meet working capital requirements that are generally higher in the early stages of a contract and are intended to protect Quanta from the other party failing to meet its obligations under the contract. Contract assets and liabilities are recorded on a performance obligation basis at the end of each reporting period. Contract assets and liabilities consisted of the following (in thousands): June 30, 2019 December 31, 2018 Contract assets $ 683,665 $ 576,891 Contract liabilities $ 471,214 $ 425,961 As referenced previously, contract assets and liabilities fluctuate period to period based on various factors, including, among others, changes in the number and size of projects in progress at period end and variability in billing and payment terms, such as up-front or advance billings, interim or milestone billings, or deferred billings. The increase in contract assets from December 31, 2018 to June 30, 2019 was partially due to billing process changes for certain customers that impacted Quanta’s ability to timely invoice and collect for services performed. Additionally, a contract asset impairment of $29.4 million was recognized during the six months ended June 30, 2019 in connection with the charge to earnings recognized on the large telecommunications project in Peru. Revenues were positively impacted by $10.3 million during the six months ended June 30, 2019 as a result of changes in estimates associated with performance obligations on fixed price contracts partially satisfied prior to December 31, 2018 . During the six months ended June 30, 2019 , Quanta recognized revenue of approximately $329 million related to contract liabilities outstanding at December 31, 2018 . Current and Long-Term Accounts Receivable, Notes Receivable and Allowance for Doubtful Accounts Quanta provides an allowance for doubtful accounts when collection of an account or note receivable is considered doubtful, and receivables are written off against the allowance when deemed uncollectible. Inherent in the assessment of the allowance for doubtful accounts are certain judgments and estimates regarding, among other factors, the customer’s access to capital, the customer’s willingness or ability to pay, general economic and market conditions, the ongoing relationship with the customer and uncertainties related to the resolution of disputed matters. Quanta considers accounts receivable delinquent after 30 days but does not generally include delinquent accounts in its analysis of the allowance for doubtful accounts unless the accounts receivable have been outstanding for at least 90 days. Quanta also includes accounts receivable balances that relate to customers in bankruptcy or with other known difficulties in its analysis of the allowance for doubtful accounts. Material changes to a customer’s business, cash flows or financial condition, which may be impacted by negative economic and market conditions, could affect Quanta’s ability to collect amounts due. Should anticipated recoveries relating to receivables fail to materialize, including anticipated recoveries relating to existing bankruptcies or other workout situations, Quanta could experience reduced cash flows and losses in excess of current allowances provided. As of June 30, 2019 and December 31, 2018 , Quanta had allowances for doubtful accounts on current receivables of $8.5 million and $5.8 million . See Note 11 for additional information related to the bankruptcy matter involving PG&E Corporation and its primary operating subsidiary, Pacific Gas and Electric Company (collectively PG&E), a significant customer of Quanta, which was filed in January 2019. Long-term accounts receivable are included within “Other assets, net” in the accompanying condensed consolidated balance sheets. As of June 30, 2019 and December 31, 2018 , long-term accounts receivable were $53.3 million and $25.9 million . Included in the June 30, 2019 balance was $41.2 million of pre-petition receivables due from PG&E, which were reclassified from current accounts receivable during the three months ended March 31, 2019, as further described in Note 11. Certain contracts allow customers to withhold a small percentage of billings pursuant to retainage provisions, and such amounts are generally due upon completion of the contract and acceptance by the customer. Based on Quanta’s experience with similar contracts in recent years, the majority of the retainage balances at each balance sheet date are expected to be collected within twelve months of such date. Current retainage balances as of June 30, 2019 and December 31, 2018 were $468.1 million and $337.1 million and are included in “Accounts receivable.” Retainage balances with settlement dates beyond the next twelve months are included in “Other assets, net,” and as of June 30, 2019 and December 31, 2018 were $34.3 million and $99.6 million . Quanta recognizes unbilled receivables for non-fixed price contracts within “Accounts receivable” in certain circumstances, such as when revenues have been earned and recorded but the amount cannot be billed under the terms of the contract until a later date or amounts arise from routine lags in billing (for example, work completed one month but not billed until the next month). These balances do not include revenues recognized for work performed under fixed-price contracts, as these amounts are recorded as “Contract assets.” At June 30, 2019 and December 31, 2018 , unbilled receivables included in “Accounts receivable” were $605.5 million and $434.9 million . Quanta also recognizes unearned revenues for non-fixed price contracts when cash is received prior to recognizing revenues for the related performance obligation. Unearned revenues, which are included in “Accounts payable and accrued expenses,” were $29.1 million and $40.1 million at June 30, 2019 and December 31, 2018 . Cash and Cash Equivalents Amounts related to Quanta’s cash and cash equivalents based on geographic location of the bank accounts were as follows (in thousands): June 30, 2019 December 31, 2018 Cash and cash equivalents held in domestic bank accounts $ 52,432 $ 62,495 Cash and cash equivalents held in foreign bank accounts 20,924 16,192 Total cash and cash equivalents $ 73,356 $ 78,687 Cash consisting of interest-bearing demand deposits is carried at cost, which approximates fair value. Quanta considers all highly liquid investments with an original maturity of three months or less at the time of purchase to be cash equivalents, which are carried at fair value. At June 30, 2019 and December 31, 2018 , cash equivalents were $37.5 million and $37.2 million and consisted primarily of money market investments and money market mutual funds and are discussed further in Fair Value Measurements below. Cash and cash equivalents held by joint ventures, which are either consolidated or proportionately consolidated, are available to support joint venture operations, but Quanta cannot utilize those assets to support its other operations. Quanta generally has no right to cash and cash equivalents held by a joint venture other than participating in distributions and in the event of dissolution. Amounts related to cash and cash equivalents held by joint ventures, which are included in Quanta’s total cash and cash equivalents balances, were as follows (in thousands): June 30, 2019 December 31, 2018 Cash and cash equivalents held by domestic joint ventures $ 7,927 $ 8,544 Cash and cash equivalents held by foreign joint ventures 15 441 Total cash and cash equivalents held by joint ventures 7,942 8,985 Cash and cash equivalents not held by joint ventures 65,414 69,702 Total cash and cash equivalents $ 73,356 $ 78,687 Goodwill Goodwill, net of accumulated impairment losses, represents the excess of cost over the fair market value of net tangible and identifiable intangible assets of acquired businesses and is stated at cost. Goodwill is not amortized but is tested for impairment annually, or more frequently if events or circumstances indicate that the carrying amount of goodwill may be impaired. Quanta has recorded goodwill in connection with its historical acquisitions of businesses. Upon acquisition, these businesses were either combined into one of Quanta’s existing operating units or managed on a stand-alone basis as an individual operating unit. Quanta’s operating units are organized into two divisions: the Electric Power Infrastructure Services Division and the Pipeline and Industrial Infrastructure Services Division. As most of the companies acquired by Quanta provide multiple types of services for multiple types of customers, these divisional designations are based on the predominant type of work performed by an operating unit at the point in time the divisional designation is made. Goodwill is required to be measured for impairment at the reporting unit level, which represents the operating segment level or one level below the operating segment level for which discrete financial information is available. Quanta has determined that its individual operating units represent its reporting units for the purpose of assessing goodwill impairment. An annual assessment for impairment is performed for each reporting unit that carries a balance of goodwill in the fourth quarter of the fiscal year, or more frequently if events or circumstances arise which indicate that goodwill may be impaired. The assessment can be performed by first completing a qualitative assessment on none, some or all of Quanta’s reporting units. Quanta can also bypass the qualitative assessment for any reporting unit in any period and proceed directly to a quantitative impairment test, and then resume the qualitative assessment in any subsequent period. Qualitative indicators that may trigger the need for annual or interim quantitative impairment testing include, among other things, deterioration in macroeconomic conditions, declining financial performance, deterioration in the operational environment, or an expectation of selling or disposing of a portion of a reporting unit. Additionally, a significant change in business climate, a loss of a significant customer, increased competition, a sustained decrease in share price, or a decrease in Quanta’s market capitalization below book value may trigger the need for interim impairment testing of goodwill associated with one or more of Quanta’s reporting units. If Quanta believes that, as a result of its qualitative assessment, it is more likely than not that the fair value of a reporting unit is less than its carrying amount, the quantitative impairment test is required. The quantitative test involves comparing the fair value of each of Quanta’s reporting units with its carrying amount, including goodwill. If the carrying amount of a reporting unit exceeds its fair value, an impairment loss is recorded as a reduction to goodwill with a corresponding charge to “Asset impairment charges” in the condensed consolidated statements of operations. The income tax effect associated with an impairment of tax deductible goodwill is also considered in the measurement of the goodwill impairment. A goodwill impairment for any reporting unit is limited to the total amount of goodwill allocated to such reporting unit. Quanta determines the fair value of its reporting units using a weighted combination of the income approach (discounted cash flow method) and market multiples valuation techniques (market guideline transaction method and market guideline public company method), with greater weight placed on the discounted cash flow method because management believes this method results in the most appropriate calculation of fair value and reflects an expectation of market value as determined by a “held and used” model. Under the discounted cash flow method, Quanta determines fair value based on the estimated future cash flows for each reporting unit, discounted to present value using a risk-adjusted industry weighted average cost of capital, which reflects the overall level of inherent risk for each reporting unit and the rate of return an outside investor would expect to earn. Cash flow projections are derived from budgeted amounts (typically a one-year model) and subsequent period cash flows are developed for each reporting unit using growth rates that management believes are reasonably likely to occur. A terminal value is derived from a multiple of the reporting unit’s earnings before interest, taxes, depreciation and amortization (EBITDA). The EBITDA multiples for each reporting unit are |