XML 61 R50.htm IDEA: XBRL DOCUMENT
v3.23.1

Stock-Based Compensation - Summary of Stock-Based Compensation Grants (Detail) | 3 Months Ended
--- | ---
Mar. 31, 2023 $ / shares shares
Time Based Restricted Stock Units [Member] |
Stock Awards Granted | shares | 76,698
Weighted-Average Grant Price Per Share | $ / shares | $ 56.75
Performance Based Restricted Stock Units [Member] |
Stock Awards Granted | shares | 96,013
Weighted-Average Grant Price Per Share | $ / shares | $ 56.79
Stock Appreciation Rights [Member] |
Stock Awards Granted | shares | 51,916
Weighted-Average Grant Price Per Share | $ / shares | $ 56.8

X
- Definition Share based compensation arrangement by share based payment award non options equity instruments granted weighted average grant price. + References No definition available. + Details
Name: | trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionsEquityInstrumentsGrantedWeightedAverageGrantPrice
Namespace Prefix: | trex_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of grants made during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(2)(iii)(01) -URI https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_AwardTypeAxis=trex_TimeBasedRestrictedStockUnitsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=trex_PerformanceBasedRestrictedStockUnitsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_StockAppreciationRightsSARSMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |