Quarterly report pursuant to Section 13 or 15(d)

Commitments and Contingencies - Litigation (Details)

v3.24.2.u1
Commitments and Contingencies - Litigation (Details)
$ in Thousands
3 Months Ended 6 Months Ended 12 Months Ended
Jul. 22, 2024
USD ($)
Feb. 15, 2024
USD ($)
Dec. 18, 2023
USD ($)
Mar. 20, 2023
USD ($)
Dec. 13, 2022
USD ($)
Nov. 14, 2022
USD ($)
lawsuit
May 13, 2021
USD ($)
Jun. 30, 2024
USD ($)
lawsuit
Jun. 30, 2024
USD ($)
lawsuit
Jun. 30, 2023
USD ($)
Dec. 31, 2023
USD ($)
Sep. 10, 2019
defendant
individual
Other Commitments [Line Items]                        
Pre-tax charge               $ 170,700        
Decrease in accounts receivable                 $ 39,073 $ 7,880    
Bad debt expense                 $ 171,089   $ 47  
FEMA Official                        
Other Commitments [Line Items]                        
Fine issued for indictment         $ 15              
Cobra Acquisitions                        
Other Commitments [Line Items]                        
Number of lawsuits pending | lawsuit               13 13      
Number of claims judgment issued and under appeal | lawsuit           1            
Number of other individuals indicted | individual                       2
Number of other individuals indicted, charges dismissed | defendant                       2
Cobra Acquisitions | Former President                        
Other Commitments [Line Items]                        
Fine issued for indictment         $ 25              
Puerto Rico Electric Power Authority (PREPA)                        
Other Commitments [Line Items]                        
Withheld payments revoked   $ 9,000                    
Puerto Rico Electric Power Authority (PREPA)                        
Other Commitments [Line Items]                        
Amount release on hold               $ 18,400 $ 18,400      
Puerto Rico Electric Power Authority (PREPA) | Cobra Acquisitions                        
Other Commitments [Line Items]                        
Amount release on hold               18,400 $ 18,400      
Pre-tax charge               170,700        
Decrease in accounts receivable               359,100        
Bad debt expense               89,200        
Accounts receivable, recognized, interest charge               $ 81,500        
Loss contingency, damages awarded, value       $ 8,500   $ 9,000            
Puerto Rico Electric Power Authority (PREPA) | Cobra Acquisitions | Subsequent Event                        
Other Commitments [Line Items]                        
Claim of administrative expense $ 170,000                      
Claim of administrative expense withheld FEMA funds 18,400                      
First installment of administrative expense claim pending $ 150,000                      
Period allowed for first installment 10 days                      
Second installment of administrative expense claim pending $ 20,000                      
Period allowed for second installment 7 days                      
Third installment of administrative expense claim pending $ 18,400                      
Period allowed for third installment 10 days                      
Cobra Acquisitions | Puerto Rico Electric Power Authority (PREPA)                        
Other Commitments [Line Items]                        
Unpaid debt, municipal and construction exercise taxes     $ 9,000                  
Foreman Electric Services, Inc.                        
Other Commitments [Line Items]                        
Loss contingency, damages awarded, value             $ 250,000