Quarterly report pursuant to Section 13 or 15(d)

Commitments and Contingencies - Narrative (Details)

v3.22.2.2
Commitments and Contingencies - Narrative (Details) - USD ($)
1 Months Ended 2 Months Ended 3 Months Ended 9 Months Ended
Dec. 01, 2022
Aug. 01, 2022
Aug. 02, 2021
May 13, 2021
Mar. 25, 2020
Oct. 28, 2022
Dec. 01, 2022
Dec. 31, 2022
Sep. 30, 2022
Mar. 31, 2022
Sep. 30, 2021
Mar. 31, 2021
Sep. 30, 2022
Sep. 30, 2021
Dec. 31, 2021
Sep. 21, 2021
Jul. 23, 2021
May 26, 2021
Dec. 31, 2020
Nov. 13, 2020
Jan. 21, 2020
Other Commitments [Line Items]                                          
Insurance deductible                 $ 300,000       $ 300,000   $ 100,000            
Insurance aggregate stop loss                 5,400,000       5,400,000   5,400,000            
Workers' compensation liability, current                 1,400,000       1,400,000   1,400,000            
Workers compensation and auto claims insurance, directors and officers liability                 1,000,000       1,000,000   1,000,000            
Workers compensation and auto claims insurance, directors and officers liability aggregate limit                 10,000,000       10,000,000   10,000,000            
Workers compensation and auto claims insurance, aggregate stop loss per claim basis                 200,000       200,000                
Workers compensation and auto claims insurance, aggregate stop loss per calendar year                 5,800,000       5,800,000                
Insurance reserves                 1,300,000       $ 1,300,000   1,600,000            
Warranty accrual, term                         1 year                
Warranty accrual                 0       $ 0   0            
Product warranty expense                         0 $ 0              
Commitments and contingencies                                    
Recovery amount in undisputed claims         $ 61,700,000                                
Revenues                 107,202,000   $ 57,485,000   259,178,000 171,730,000              
Bad debt (recoveries) expense                         (112,000) 41,650,000              
Receivables from related parties, net                 386,000       386,000   88,000            
Contract amount     $ 100,000,000                                    
Legal settlement, amount   $ 9,250,000 $ 6,500,000                                    
Contracts receivable, claims and uncertain amounts, expected to be collected, term     10 days                                    
Accrued legal settlement                 10,201,000       $ 10,201,000   18,966,000            
Maximum annual contributions per employee, percent                         92.00%                
Employer matching contribution, percent of match                         3.00%                
Employer discretionary contribution amount                         $ 1,400,000 1,300,000              
Capital Addition Purchase Commitments                                          
Other Commitments [Line Items]                                          
Purchase obligation, to be paid, year one                 200,000       200,000                
Short-term purchase commitment, amount                         $ 22,700,000                
Short-term purchase commitment, period                         6 months                
Capital Addition Purchase Commitments | Subsequent Event                                          
Other Commitments [Line Items]                                          
Short-term purchase commitment, additional amount           $ 400,000                              
Accounts Payable and Accrued Liabilities                                          
Other Commitments [Line Items]                                          
Accrued legal settlement                 10,200,000       $ 10,200,000                
Forecast                                          
Other Commitments [Line Items]                                          
Bad debt (recoveries) expense               $ 3,500,000                          
Legal settlement, amount $ 9,250,000                                        
Cash paid for settlement             $ 1,000,000                            
Minimum                                          
Other Commitments [Line Items]                                          
Litigation settlement, interest-bearing, interest rate     6.00%                                    
Maximum                                          
Other Commitments [Line Items]                                          
Litigation settlement, interest-bearing, interest rate     12.00%                                    
Puerto Rico Electric Power Authority (PREPA)                                          
Other Commitments [Line Items]                                          
Accounts receivable from related parties                 227,000,000       227,000,000                
Interest charged on accounts receivable                 141,300,000       141,300,000   110,800,000            
Accounts receivable, contract costs, amount expected to be authorized                                   $ 47,000,000      
Staffing costs                                 $ 24,400,000 $ 24,400,000      
Gulfport                                          
Other Commitments [Line Items]                                          
Bad debt (recoveries) expense                     31,200,000     $ 41,200,000              
Gulfport | Gulfport                                          
Other Commitments [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 (recoveries) expense                       3,800,000                  
Gain from litigation settlement                   $ 300,000                      
Gulfport | Gulfport | Pre-Petition Products And Services                                          
Other Commitments [Line Items]                                          
Receivables from related parties, net                       6,100,000                  
Gulfport | Gulfport | Pre-Petition Receivables                                          
Other Commitments [Line Items]                                          
Receivables from related parties, net                       500,000                  
Gulfport | Muskie and Gulfport                                          
Other Commitments [Line Items]                                          
Bad debt (recoveries) expense                     200,000                    
General unsecured claim                               $ 3,100,000          
Gulfport | Stingray Pressure Pumping                                          
Other Commitments [Line Items]                                          
Unliquidated damages                       37,900,000                  
Bad debt (recoveries) expense                     31,000,000 $ 2,900,000                  
Other expenses                     $ 1,300,000                    
Mastec Renewables Puerto Rico, LLC                                          
Other Commitments [Line Items]                                          
Contract amount                                         $ 500,000,000
Foreman Electric Services, Inc.                                          
Other Commitments [Line Items]                                          
Loss contingency, damages awarded, value       $ 250,000,000                                  
Outstanding Bid Bond                                          
Other Commitments [Line Items]                                          
Commitments and contingencies                 100,000       100,000   600,000            
Performance And Payment Bond                                          
Other Commitments [Line Items]                                          
Commitments and contingencies                 11,700,000       11,700,000   $ 20,300,000            
Estimated cost to complete the project                 $ 2,800,000       $ 2,800,000