Revenue from Contracts with Customers - Schedule of Cumulative Catch-Up Adjustment (Details) - UNITED STATES - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jun. 30, 2024 |
Jun. 30, 2023 |
Jun. 30, 2024 |
Jun. 30, 2023 |
|
| Cumulative Catch-Up Adjustment [Line Items] | ||||
| Change in total estimated cost or anticipated contract value | $ 20,178 | $ 3,700 | $ 31,105 | $ 12,575 |
| United States Electrical Construction And Facilities Services [Member] | ||||
| Cumulative Catch-Up Adjustment [Line Items] | ||||
| Change in total estimated cost or anticipated contract value | 12,292 | 2,616 | 16,485 | 8,345 |
| United States Mechanical Construction And Facilities Services [Member] | ||||
| Cumulative Catch-Up Adjustment [Line Items] | ||||
| Change in total estimated cost or anticipated contract value | 7,886 | 0 | 14,620 | 2,686 |
| United States Building Services [Member] | ||||
| Cumulative Catch-Up Adjustment [Line Items] | ||||
| Change in total estimated cost or anticipated contract value | $ 0 | $ 1,084 | $ 0 | $ 1,544 |