Annual report pursuant to Section 13 and 15(d)

Commitments and Contingencies - Narrative (Details)

v3.22.0.1
Commitments and Contingencies - Narrative (Details)
1 Months Ended 3 Months Ended 12 Months Ended
Dec. 01, 2022
USD ($)
Aug. 01, 2022
USD ($)
Oct. 28, 2021
USD ($)
Sep. 21, 2021
USD ($)
Aug. 02, 2021
USD ($)
May 13, 2021
USD ($)
Mar. 25, 2020
USD ($)
Oct. 31, 2019
lawsuit
Sep. 30, 2019
lawsuit
Sep. 30, 2021
USD ($)
Mar. 31, 2021
USD ($)
Aug. 31, 2019
lawsuit
Dec. 31, 2021
USD ($)
Dec. 31, 2020
USD ($)
Dec. 31, 2019
USD ($)
May 26, 2021
USD ($)
Nov. 13, 2020
USD ($)
Jan. 21, 2020
USD ($)
Sep. 13, 2019
lawsuit
Guarantor Obligations [Line Items]                                      
Workers compensation, deductible                         $ 300,000 $ 100,000          
Workers compensation insurance aggregate stop loss                         5,400,000 5,400,000          
Accrued workers’ compensation and auto claims                         1,400,000 1,900,000          
Directors and officers liability deductible per occurrence                         1,000,000 1,000,000          
Directors and officers liability aggregate deductible limit                         10,000,000 10,000,000          
Self insurance, aggregate stop loss per claim basis                         200,000            
Self insurance, aggregate stop loss per calendar year                         5,800,000            
Self insurance, claims accrued                         1,600,000 1,300,000          
Warranty accrual                         0 0          
Product warranty expense                         0 0 $ 0        
Outstanding bid bonds                                  
Recovery amount in undisputed claims             $ 61,700,000                        
Revenues                         228,962,000 313,076,000 625,012,000        
Bad debt expense                         41,662,000 21,958,000 $ 1,434,000        
Receivables from related parties, net                         88,000 28,461,000          
Contracts amount         $ 100,000,000                            
Legal settlement, amount         $ 6,500,000               25,000,000            
Contracts receivable, claims and uncertain amounts, expected to be collected, term         10 days                            
Litigation settlement, expense                         5,400,000            
Accrued legal settlement                         18,966,000 0          
Litigation settlement interest                         500,000            
Accounts Payable and Accrued Liabilities                                      
Guarantor Obligations [Line Items]                                      
Accrued legal settlement                         19,000,000            
Capital Addition Purchase Commitments                                      
Guarantor Obligations [Line Items]                                      
Purchase obligation                         1,400,000            
Minimum                                      
Guarantor Obligations [Line Items]                                      
Litigation settlement, interest-bearing, interest rate         6.00%                            
Maximum                                      
Guarantor Obligations [Line Items]                                      
Litigation settlement, interest-bearing, interest rate         12.00%                            
Scenario, Forecast                                      
Guarantor Obligations [Line Items]                                      
Legal settlement, amount $ 9,250,000 $ 9,250,000                                  
Outstanding Bid Bond                                      
Guarantor Obligations [Line Items]                                      
Outstanding bid bonds                         600,000 1,000,000          
Puerto Rico Electric Power Authority (PREPA)                                      
Guarantor Obligations [Line Items]                                      
Interest charged on accounts receivable                         110,800,000 74,300,000          
Accounts receivable, contract costs, amount expected to be authorized                               $ 47,000,000      
Gulfport                                      
Guarantor Obligations [Line Items]                                      
Interest charged on accounts receivable                           1,400,000     $ 3,300,000    
Due from related parties                           19,400,000     46,900,000    
Litigation liability                           1,800,000     $ 1,800,000    
Unliquidated damages                     $ 46,400,000                
Revenues                     (27,100,000)                
Bad debt expense                     3,800,000                
Receivables from related parties, net                         100,000            
Gulfport | Pre-Petition Receivables                                      
Guarantor Obligations [Line Items]                                      
Receivables from related parties, net                     500,000                
Gulfport | Pre-Petition Products And Services                                      
Guarantor Obligations [Line Items]                                      
Receivables from related parties, net                     6,100,000                
Mastec Renewables Puerto Rico, LLC                                      
Guarantor Obligations [Line Items]                                      
Contracts amount                                   $ 500,000,000  
Foreman Electric Services, Inc.                                      
Guarantor Obligations [Line Items]                                      
Loss contingency, damages awarded, value           $ 250,000,000                          
Puerto Rico Electric Power Authority (PREPA)                                      
Guarantor Obligations [Line Items]                                      
Accounts receivable, related parties                         227,000,000            
Muskie and Gulfport | Gulfport                                      
Guarantor Obligations [Line Items]                                      
Bad debt expense                   $ 200,000                  
General unsecured claim       $ 3,100,000                              
Stingray Pressure Pumping | Gulfport                                      
Guarantor Obligations [Line Items]                                      
Unliquidated damages                     37,900,000                
Bad debt expense                   31,000,000 $ 2,900,000                
Other expenses                   $ 1,300,000                  
Performance And Payment Bond | Performance Guarantee                                      
Guarantor Obligations [Line Items]                                      
Guarantee                         20,300,000 $ 18,100,000          
Bid Bond | Performance Guarantee                                      
Guarantor Obligations [Line Items]                                      
Estimated costs to complete projects secured by performance and payment bonds                         $ 4,700,000            
Western District Of Oklahoma, Federal Securities Lawsuits                                      
Guarantor Obligations [Line Items]                                      
Loss contingency, damages awarded, value     $ 500,000                                
Number of new claims filed | lawsuit                 2     3              
Number of claims combined | lawsuit                                     3
Cash paid for settlement     $ 1,500,000 $ 11,000,000                              
Number of claims dismissed | lawsuit               2                      
September 2019 Derivative Lawsuits                                      
Guarantor Obligations [Line Items]                                      
Number of new claims filed | lawsuit                 4                    
District of Delaware, Federal Securities Lawsuits                                      
Guarantor Obligations [Line Items]                                      
Number of new claims filed | lawsuit                 2