Quarterly report pursuant to Section 13 or 15(d)

Commitments and Contingencies - Narrative (Details)

v3.21.2
Commitments and Contingencies - Narrative (Details)
1 Months Ended 3 Months Ended 6 Months Ended
Dec. 01, 2022
USD ($)
Aug. 01, 2022
USD ($)
Aug. 02, 2021
USD ($)
May 13, 2021
USD ($)
Nov. 13, 2020
USD ($)
Mar. 25, 2020
USD ($)
Oct. 31, 2019
lawsuit
Sep. 30, 2019
lawsuit
Aug. 31, 2019
lawsuit
Jun. 30, 2019
lawsuit
Jun. 30, 2021
USD ($)
Jun. 30, 2020
USD ($)
Jun. 30, 2021
USD ($)
lawsuit
Jun. 30, 2020
USD ($)
Mar. 22, 2021
USD ($)
Dec. 31, 2020
USD ($)
Jan. 21, 2020
USD ($)
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,826,000   1,826,000     1,941,000  
Workers compensation and auto claims insurance, directors and officers liability                     1,000,000.0   1,000,000.0     1,000,000.0  
Workers compensation and auto claims insurance, directors and officers liability aggregate limit                     10,000,000.0   10,000,000.0     10,000,000.0  
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,200,000   $ 1,200,000     1,300,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                     47,440,000 $ 60,109,000 114,244,000 157,492,000      
Bad debt expense                         10,201,000 1,679,000      
Receivables from related parties, net                     80,000   $ 80,000     28,461,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      
Forecast                                  
Other Commitments [Line Items]                                  
Legal settlement, amount $ 9,250,000 $ 9,250,000                              
Litigation settlement, interest-bearing, interest rate 12.00% 6.00%                              
Subsequent Event                                  
Other Commitments [Line Items]                                  
Contract amount     $ 100,000,000                            
Legal settlement, amount     $ 6,500,000                            
Contracts receivable, claims and uncertain amounts, expected to be collected, term     10 days                            
Outstanding Bid Bond                                  
Other Commitments [Line Items]                                  
Commitments and contingencies                     2,700,000   2,700,000     1,000,000.0  
Performance And Payment Bond                                  
Other Commitments [Line Items]                                  
Commitments and contingencies                     20,500,000   20,500,000     18,100,000  
Estimated cost to complete the project                     1,700,000   $ 1,700,000        
Puerto Rico Municipalities, Failure To Pay Municipal License And Construction Excise Taxes                                  
Other Commitments [Line Items]                                  
Number of new claims | lawsuit                         10        
Western District Of Oklahoma, Federal Securities Lawsuits                                  
Other Commitments [Line Items]                                  
Number of new claims | lawsuit               2 3 3              
Number of claims dismissed | lawsuit             2                    
September 2019 Derivative Lawsuits                                  
Other Commitments [Line Items]                                  
Number of new claims | lawsuit               4                  
District of Delaware, Federal Securities Lawsuits                                  
Other Commitments [Line Items]                                  
Number of new claims | lawsuit               2                  
Puerto Rico Electric Power Authority (PREPA)                                  
Other Commitments [Line Items]                                  
Accounts receivable from related parties                     227,000,000.0   $ 227,000,000.0        
Interest charged on accounts receivable                     91,900,000   91,900,000     74,300,000  
Mastec Renewables Puerto Rico, LLC                                  
Other Commitments [Line Items]                                  
Contract amount                                 $ 500,000,000
Gulfport                                  
Other Commitments [Line Items]                                  
Interest charged on accounts receivable         $ 3,300,000                     1,400,000  
Due from related parties         46,900,000                     19,400,000  
Litigation liability         1,800,000                     $ 1,800,000  
Unliquidated damages                             $ 46,400,000    
Revenues                         (27,100,000)        
Bad debt expense         $ 10,000,000.0               3,800,000        
Receivables from related parties, net                     33,000,000.0   33,000,000.0        
Gulfport | Pre-Petition Products And Services                                  
Other Commitments [Line Items]                                  
Receivables from related parties, net                     6,100,000   6,100,000        
Gulfport | Pre-Petition Receivables                                  
Other Commitments [Line Items]                                  
Receivables from related parties, net                     500,000   500,000        
Gulfport | Stingray Pressure Pumping                                  
Other Commitments [Line Items]                                  
Interest charged on accounts receivable                     1,300,000   1,300,000        
Due from related parties                     32,700,000   32,700,000        
Unliquidated damages                     $ 37,900,000   37,900,000        
Bad debt expense                         $ 2,900,000        
Foreman Electric Services, Inc.                                  
Other Commitments [Line Items]                                  
Loss Contingency, Damages Awarded, Value       $ 250,000,000