XML 85 R71.htm IDEA: XBRL DOCUMENT
v3.22.4

Debt Obligations - Senior Credit Facility (Details) |  |  |  |  | 10 Months Ended | 12 Months Ended
--- | --- | --- | --- | --- | --- | ---
Aug. 23, 2022 | Aug. 22, 2022 | Oct. 07, 2021 | Sep. 22, 2020 | Aug. 22, 2022 | Dec. 31, 2022 USD ($) unit | Dec. 31, 2021 USD ($) | Dec. 31, 2020 USD ($)
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Borrowings under senior credit facility |  |  |  |  |  | $ 786,910,000 | $ 1,199,841,000 |
Amortization expense related to capitalized debt issuance costs |  |  |  |  |  | 12,712,000 | 8,405,000 | $ 5,126,000
Senior Credit Facility |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Option to increase revolving commitments under the credit agreement |  |  |  |  |  | 400,000,000 |  |
Reduction in Quanta's funded indebtedness reduced by cash and cash equivalents in excess of this amount |  |  |  |  |  | 25,000,000 |  |
Credit facility available for revolving loans or issuing new letters of credit |  |  |  |  |  | 2,000,000,000 |  |
Senior Credit Facility | Canadian Dollars |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Borrowings under senior credit facility |  |  |  |  |  | $ 36,900,000 |  |
Senior Credit Facility | Excess of Federal Funds Rate |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate | 0.50% |  | 0.50% |  |  |  |  |
Senior Credit Facility | Excess of Euro Currency Rate |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate |  |  | 1.00% |  |  |  |  |
Senior Credit Facility | Minimum |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Commitment fee | 0.10% |  | 0.275% | 0.20% | 0.10% |  |  |
Senior Credit Facility | Minimum | Excess of Eurocurrency Rate Applicable to Domestic Borrowings Only |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate |  |  | 1.125% |  |  |  |  |
Senior Credit Facility | Minimum | Excess of Base Rate Domestic Borrowings Only |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate |  |  | 0.125% |  |  |  |  |
Senior Credit Facility | Minimum | Excess of Euro Currency Rate of Credit Agreement for Foreign Borrowings |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate |  |  | 1.125% |  |  |  |  |
Senior Credit Facility | Maximum |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Commitment fee | 0.275% |  | 0.425% | 0.40% | 0.275% |  |  |
Senior Credit Facility | Maximum | Excess of Eurocurrency Rate Applicable to Domestic Borrowings Only |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate |  |  | 2.00% |  |  |  |  |
Senior Credit Facility | Maximum | Excess of Base Rate Domestic Borrowings Only |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate |  |  | 1.00% |  |  |  |  |
Senior Credit Facility | Maximum | Excess of Euro Currency Rate of Credit Agreement for Foreign Borrowings |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate |  |  | 2.00% |  |  |  |  |
Senior Credit Facility | Line of Credit |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Maximum consolidated leverage ratio |  |  |  |  |  | 3.5 |  |
Acquisition threshold for leverage ratio |  |  |  |  |  | $ 200,000,000 |  |
Maximum consolidated leverage ratio permissible under credit agreement |  |  |  |  |  | 4.0 |  |
Number of fiscal quarters applicable to updated acquisition ratio | unit |  |  |  |  |  | 4 |  |
Minimum consolidated interest coverage ratio |  |  |  |  |  | 3.0 |  |
Amount of availability under the credit agreement and/or cash and cash equivalents on hand that must be present to allow for cash payments of dividends and stock repurchases |  |  |  |  |  | $ 100,000,000 |  |
Cross default provisions with debt instruments exceeding this amount |  |  |  |  |  | 300,000,000 |  |
Borrowings under senior credit facility |  |  |  |  |  | 36,900,000 |  |
Deferred financing costs |  |  |  |  |  | 8,300,000 | $ 10,100,000 |
Senior Credit Facility | Term Loan | Payments Due First Business Day Of Quarter In 2023 And 2024 |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Quarterly principal payments |  |  |  |  |  | 4,700,000 |  |
Senior Credit Facility | Term Loan | Payments Due First Business Day Of Quarter In 2025 |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Quarterly principal payments |  |  |  |  |  | 9,400,000 |  |
Senior Credit Facility | Term Loan | Payments Due First Business Day Of Quarter In 2026 |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Quarterly principal payments |  |  |  |  |  | 18,800,000 |  |
Senior Credit Facility | Term Loan | Line of Credit |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Senior secured revolving credit facility |  |  |  |  |  | 750,000,000 |  |
Borrowings under senior credit facility |  |  |  |  |  | 750,000,000 |  |
Interest rate floor | 1.00% |  |  |  |  |  |  |
Senior Credit Facility | Term Loan | Line of Credit | Secured Overnight Financing Rate (SOFR) |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate | 1.00% |  |  |  |  |  |  |
Senior Credit Facility | Term Loan | Line of Credit | Fed Funds Effective Rate Overnight Index Swap Rate |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate |  | 0.50% |  |  |  |  |  |
Senior Credit Facility | Term Loan | Line of Credit | London Interbank Offered Rate (LIBOR) |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate |  | 1.00% |  |  |  |  |  |
Senior Credit Facility | Term Loan | Line of Credit | Minimum | Secured Overnight Financing Rate (SOFR) |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate | 1.00% |  |  |  |  |  |  |
Senior Credit Facility | Term Loan | Line of Credit | Minimum | Base Rate |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate | 0.00% | 0.00% |  |  |  |  |  |
Senior Credit Facility | Term Loan | Line of Credit | Minimum | London Interbank Offered Rate (LIBOR) |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate |  | 1.00% |  |  |  |  |  |
Senior Credit Facility | Term Loan | Line of Credit | Maximum | Secured Overnight Financing Rate (SOFR) |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate | 1.625% |  |  |  |  |  |  |
Senior Credit Facility | Term Loan | Line of Credit | Maximum | Base Rate |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate | 0.625% | 0.625% |  |  |  |  |  |
Senior Credit Facility | Term Loan | Line of Credit | Maximum | London Interbank Offered Rate (LIBOR) |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate |  | 1.625% |  |  |  |  |  |
Senior Credit Facility | Revolving Credit Facility | Line of Credit |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Senior secured revolving credit facility |  |  |  |  |  | 2,640,000,000 |  |
Senior Credit Facility | Revolving Credit Facility | Line of Credit | Minimum | Secured Overnight Financing Rate (SOFR) |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate | 1.125% |  |  |  |  |  |  |
Senior Credit Facility | Revolving Credit Facility | Line of Credit | Minimum | Base Rate |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate | 0.125% |  |  |  | 0.125% |  |  |
Senior Credit Facility | Revolving Credit Facility | Line of Credit | Minimum | London Interbank Offered Rate (LIBOR) |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate |  |  |  |  | 1.125% |  |  |
Senior Credit Facility | Revolving Credit Facility | Line of Credit | Minimum | Alternative Currency Term Rate |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate | 1.125% |  |  |  | 1.125% |  |  |
Senior Credit Facility | Revolving Credit Facility | Line of Credit | Maximum | Secured Overnight Financing Rate (SOFR) |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate | 1.75% |  |  |  |  |  |  |
Senior Credit Facility | Revolving Credit Facility | Line of Credit | Maximum | Base Rate |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate | 0.75% |  |  |  | 0.75% |  |  |
Senior Credit Facility | Revolving Credit Facility | Line of Credit | Maximum | London Interbank Offered Rate (LIBOR) |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate |  |  |  |  | 1.75% |  |  |
Senior Credit Facility | Revolving Credit Facility | Line of Credit | Maximum | Alternative Currency Term Rate |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate | 1.75% |  |  |  | 1.75% |  |  |
Senior Credit Facility | Standby Letters of Credit | Minimum |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate | 1.125% |  | 1.125% |  | 1.125% |  |  |
Senior Credit Facility | Standby Letters of Credit | Maximum |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate | 1.75% |  | 2.00% |  | 1.75% |  |  |
Senior Credit Facility | Performance Letters of Credit | Minimum |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate | 0.675% |  | 0.675% |  | 0.675% |  |  |
Senior Credit Facility | Performance Letters of Credit | Maximum |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Debt instrument basis spread on variable rate | 1.125% |  | 1.15% |  | 1.125% |  |  |
Senior Credit Facility | Letters of Credit |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Letters of credit and bank guarantees under the credit facility |  |  |  |  |  | 227,800,000 |  |
Senior Credit Facility | Letters of Credit and Bank Guarantees | Canadian Dollars |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Letters of credit and bank guarantees under the credit facility |  |  |  |  |  | 99,300,000 |  |
Senior Credit Facility | Letters of Credit and Bank Guarantees | U.S. Dollars |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Letters of credit and bank guarantees under the credit facility |  |  |  |  |  | 128,500,000 |  |
Surety-Backed Letters Of Credit |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |
Limit on surety-backed line of credit |  |  |  |  |  | 300,000,000 |  |
Letters of credit and bank guarantees under the credit facility |  |  |  |  |  | $ 189,900,000 |  |

X
- Definition Cross-default provisions. + References No definition available. + Details
Name: | pwr_CrossDefaultProvisions
Namespace Prefix: | pwr_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Debt Instrument, Covenant, Acquisition Threshold For Leverage Ratio + References No definition available. + Details
Name: | pwr_DebtInstrumentCovenantAcquisitionThresholdForLeverageRatio
Namespace Prefix: | pwr_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Debt Instrument, Covenant, Interest Coverage Ratio, Minimum + References No definition available. + Details
Name: | pwr_DebtInstrumentCovenantInterestCoverageRatioMinimum
Namespace Prefix: | pwr_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Covenant, Leverage Ratio, Maximum + References No definition available. + Details
Name: | pwr_DebtInstrumentCovenantLeverageRatioMaximum
Namespace Prefix: | pwr_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | instant

X
- Definition Debt Instrument, Covenant, Number Of Fiscal Quarters Applicable To Updated Acquisition Ratio + References No definition available. + Details
Name: | pwr_DebtInstrumentCovenantNumberOfFiscalQuartersApplicableToUpdatedAcquisitionRatio
Namespace Prefix: | pwr_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition Debt Instrument, Variable Rate Floor + References No definition available. + Details
Name: | pwr_DebtInstrumentVariableRateFloor
Namespace Prefix: | pwr_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of availability under the credit agreement and/or cash and cash equivalents on hand that must be present to allow for cash payments of dividends and stock repurchases. + References No definition available. + Details
Name: | pwr_LineOfCreditAvailabilityAmountToAllowDividendsAndStockRepurchases
Namespace Prefix: | pwr_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Line of Credit, Debt Covenant, Maximum Amount Outstanding + References No definition available. + Details
Name: | pwr_LineOfCreditDebtCovenantMaximumAmountOutstanding
Namespace Prefix: | pwr_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Line Of Credit Facility, Covenant, Maximum Leverage Ratio + References No definition available. + Details
Name: | pwr_LineOfCreditFacilityCovenantMaximumLeverageRatio
Namespace Prefix: | pwr_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line Of Credit Facility, Option To Increase, Amount + References No definition available. + Details
Name: | pwr_LineOfCreditFacilityOptionToIncreaseAmount
Namespace Prefix: | pwr_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Reduction in Quanta's maximum funded debt and maximum senior debt by all cash and cash equivalents in excess of amount. + References No definition available. + Details
Name: | pwr_ReductionInCompanyMaximumFundedDebtAndMaximumSeniorDebtByAllCashAndCashEquivalentsInExcessOfAmount
Namespace Prefix: | pwr_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of amortization expense attributable to debt issuance costs. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(8)) -URI https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 1F -Subparagraph (b)(2) -URI https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=124435984&loc=d3e28555-108399 + Details
Name: | us-gaap_AmortizationOfFinancingCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Percentage points added to the reference rate to compute the variable rate on the debt instrument. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentBasisSpreadOnVariableRate1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of the required periodic payments including both interest and principal payments. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=123599511&loc=d3e64711-112823 + Details
Name: | us-gaap_DebtInstrumentPeriodicPayment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount, after accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 1D -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=124435984&loc=d3e28555-108399 + Details
Name: | us-gaap_DeferredFinanceCostsNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The total amount of the contingent obligation under letters of credit outstanding as of the reporting date. + References No definition available. + Details
Name: | us-gaap_LettersOfCreditOutstandingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(16)) -URI https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910 + Details
Name: | us-gaap_LineOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_LineOfCreditFacilityLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of borrowing capacity currently available under the credit facility (current borrowing capacity less the amount of borrowings outstanding). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The fee, expressed as a percentage of the line of credit facility, for available but unused credit capacity under the credit facility. + References No definition available. + Details
Name: | us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_DebtInstrumentAxis=pwr_SeniorCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CurrencyAxis=currency_CAD
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=pwr_ExcessOfFederalFundsRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=pwr_ExcessOfEuroCurrencyRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=pwr_ExcessOfEurocurrencyRateApplicableToDomesticBorrowingsOnlyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=pwr_ExcessOfBaseRateDomesticBorrowingsOnlyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=pwr_ExcessOfEuroCurrencyRateOfCreditAgreementForForeignBorrowingsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_LineOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=pwr_TermLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | pwr_DebtInstrumentPaymentDueDateAxis=pwr_PaymentsDueFirstBusinessDayOfQuarterIn2023And2024Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | pwr_DebtInstrumentPaymentDueDateAxis=pwr_PaymentsDueFirstBusinessDayOfQuarterIn2025Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | pwr_DebtInstrumentPaymentDueDateAxis=pwr_PaymentsDueFirstBusinessDayOfQuarterIn2026Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=pwr_SecuredOvernightFinancingRateSOFRMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_FederalFundsEffectiveSwapRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_LondonInterbankOfferedRateLIBORMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_BaseRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_RevolvingCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=pwr_AlternativeCurrencyTermRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_StandbyLettersOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=pwr_PerformanceLettersOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_LetterOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=pwr_LettersOfCreditAndBankGuaranteesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CurrencyAxis=currency_USD
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=pwr_SuretyBackedLettersOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |