XML 38 R28.htm IDEA: XBRL DOCUMENT
v3.7.0.1

Business and Organization - Additional Information (Detail) | 3 Months Ended | 12 Months Ended
--- | --- | ---
Mar. 31, 2017 Segment | Dec. 31, 2016 Acquisition
Organization And Description Of Business [Line Items] |  |
Number of reportable segments | Segment | 2 |
Acquisitions 2016 [Member] |  |
Organization And Description Of Business [Line Items] |  |
Number of business acquisitions |  | 5
Acquisitions 2016 [Member] | Electric Power Infrastructure Services Business [Member] |  |
Organization And Description Of Business [Line Items] |  |
Number of business acquisitions |  | 4
Acquisitions 2016 [Member] | Electric Power Infrastructure Services Business [Member] | United States [Member] |  |
Organization And Description Of Business [Line Items] |  |
Number of business acquisitions |  | 1
Acquisitions 2016 [Member] | Electric Power Infrastructure Services Business [Member] | Australia [Member] |  |
Organization And Description Of Business [Line Items] |  |
Number of business acquisitions |  | 1
Acquisitions 2016 [Member] | Electric Power Infrastructure Services Business [Member] | Canada [Member] |  |
Organization And Description Of Business [Line Items] |  |
Number of business acquisitions |  | 2
Acquisitions 2016 [Member] | Oil and Gas Infrastructure Services Business [Member] | United States [Member] |  |
Organization And Description Of Business [Line Items] |  |
Number of business acquisitions |  | 1

X
- Definition Organization And Description Of Business [Line Items] + References No definition available. + Details
Name: | pwr_OrganizationAndDescriptionOfBusinessLineItems
Namespace Prefix: | pwr_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of businesses acquired by the entity during the period. + References No definition available. + Details
Name: | us-gaap_NumberOfBusinessesAcquired
Namespace Prefix: | us-gaap_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of segments reported by the entity. A reportable segment is a component of an entity for which there is an accounting requirement to report separate financial information on that component in the entity's financial statements. + References No definition available. + Details
Name: | us-gaap_NumberOfReportableSegments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=pwr_Acquisitions2016Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=pwr_ElectricPowerInfrastructureServicesBusinessMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementGeographicalAxis=country_US
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementGeographicalAxis=country_AU
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementGeographicalAxis=country_CA
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=pwr_OilAndGasInfrastructureServicesBusinessMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |