Quarterly report pursuant to Section 13 or 15(d)

Commitments and Contingencies - Narrative (Details)

v3.22.2
Commitments and Contingencies - Narrative (Details) - USD ($)
1 Months Ended 3 Months Ended 6 Months Ended
Dec. 01, 2022
Aug. 01, 2022
Aug. 02, 2021
May 13, 2021
Mar. 25, 2020
Aug. 03, 2022
Jun. 30, 2022
Mar. 31, 2022
Sep. 30, 2021
Jun. 30, 2021
Mar. 31, 2021
Jun. 30, 2022
Jun. 30, 2021
Dec. 31, 2021
Sep. 21, 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,100,000         1,100,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,500,000         $ 1,500,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             89,678,000     $ 47,440,000   151,976,000 114,244,000            
Bad debt (recoveries) expense                       (115,000) 10,201,000            
Receivables from related parties, net             193,000         193,000   88,000          
Contract amount     $ 100,000,000                                
Legal settlement, amount     $ 6,500,000                                
Contracts receivable, claims and uncertain amounts, expected to be collected, term     10 days                                
Accrued legal settlement             19,755,000         $ 19,755,000   18,966,000          
Maximum annual contributions per employee, percent                       92.00%              
Employer matching contribution, percent of match                       3.00%              
Employer discretionary contribution amount                       $ 900,000 900,000            
Subsequent Event                                      
Other Commitments [Line Items]                                      
Legal settlement, amount   $ 9,250,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                       $ 18,500,000              
Short-term purchase commitment, period                       9 months              
Capital Addition Purchase Commitments | Subsequent Event                                      
Other Commitments [Line Items]                                      
Short-term purchase commitment, additional amount           $ 300,000                          
Accounts Payable and Accrued Liabilities                                      
Other Commitments [Line Items]                                      
Accrued legal settlement             19,800,000         $ 19,800,000              
Forecast                                      
Other Commitments [Line Items]                                      
Legal settlement, amount $ 9,250,000 $ 9,250,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             130,800,000         130,800,000   110,800,000          
Accounts receivable, contract costs, amount expected to be authorized                               $ 47,000,000      
Staffing costs             24,400,000         24,400,000       $ 24,400,000      
Gulfport                                      
Other Commitments [Line Items]                                      
Bad debt (recoveries) expense                         $ 10,000,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             0         0   600,000          
Performance And Payment Bond                                      
Other Commitments [Line Items]                                      
Commitments and contingencies             12,100,000         12,100,000   $ 20,300,000          
Estimated cost to complete the project             $ 7,100,000         $ 7,100,000