XML 63 R52.htm IDEA: XBRL DOCUMENT
v3.22.1

Stock-Based Compensation - Summary of Stock-Based Compensation Grants (Parenthetical) (Detail) - shares | 3 Months Ended | 12 Months Ended
--- | --- | ---
Mar. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019
Performance Based Restricted Stock Unit Target [Member] |  |  |  |
Stock Awards Granted | 46,651 |  |  |
Performance Based Restricted Stock Unit Adjustment [Member] |  |  |  |
Stock Awards Granted |  | 8,160 | 11,684 | 5,236

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://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(2)(iii)(1) -URI http://asc.fasb.org/extlink&oid=120381028&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_PerformanceBasedRestrictedStockTargetMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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