RELATED-PARTY TRANSACTIONS AND PARTY-IN-INTEREST TRANSACTIONS (Details) - EBP 002 - USD ($) |
12 Months Ended | |
|---|---|---|
Dec. 31, 2025 |
Dec. 31, 2024 |
|
| EBP, Related Party and Party-in-Interest Transactions [Line Items] | ||
| Administrative expenses | $ 1,057,576 | |
| Investments, at fair value | $ 887,825,471 | $ 710,029,515 |
| MasTec, Inc. common stock | ||
| EBP, Related Party and Party-in-Interest Transactions [Line Items] | ||
| Number of shares (in shares) | 1,112,226 | 1,134,486 |
| Net realized gains on sales | $ 87,938,512 | $ 5,334,259 |
| Net unrealized appreciation in value on securities | 5,778,538 | 65,162,850 |
| Investment acquired, excluding plan interest in master trust, cost | 29,791,477 | |
| Investment sold, excluding plan interest in master trust, cost | 182,870,389 | |
| Investments, at fair value | 241,764,546 | $ 154,448,893 |
| EBP, Trustee | ||
| EBP, Related Party and Party-in-Interest Transactions [Line Items] | ||
| Administrative expenses | $ 1,057,576 | |
| X | ||||||||||
- Definition Amount of decrease in net asset available for benefit from administrative expense incurred by employee stock purchase, saving, or similar plan (employee benefit plan (EBP)). Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of increase (decrease) in net asset available for benefit from realized gain (loss) on investment held by employee stock purchase, saving, or similar plan (employee benefit plan (EBP)). Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount of increase (decrease) in net asset available for benefit from unrealized gain (loss) on investment held by employee stock purchase, saving, or similar plan (employee benefit plan (EBP)). Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Cost of investment, excluding plan interest in master trust, acquired by employee stock purchase, saving, or similar plan (employee benefit plan (EBP)). Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Fair value of investment, excluding plan interest in master trust, held by employee stock purchase, saving, or similar plan (employee benefit plan (EBP)). Includes, but is not limited to, derivative, investment measured at net asset value per share as practical expedient, and insurance contract not meeting fully-benefit responsive investment criteria. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Number of shares or units of investment held by employee stock purchase, saving, or similar plan (employee benefit plan (EBP)). Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of selling price for investment, excluding plan interest in master trust, sold by employee stock purchase, saving, or similar plan (employee benefit plan (EBP)). Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|