XML 67 R56.htm IDEA: XBRL DOCUMENT
v3.20.2

Stock-Based Compensation - Summary of Stock-Based Compensation Grants (Parenthetical) (Detail) - shares | 6 Months Ended | 12 Months Ended
--- | --- | ---
Jun. 30, 2020 | Dec. 31, 2019 | Dec. 31, 2018 | Dec. 31, 2017
Performance Based Restricted Stock Unit Target [Member] |  |  |  |
Stock Awards Granted | 26,652 |  |  |
Performance Based Restricted Stock Unit Adjustment [Member] |  |  |  |
Stock Awards Granted |  | 2,562 | 3,029 | 11,723

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: |