XML 76 R61.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Stockholders' Equity - Additional Information (Detail) - USD ($) $ in Millions | 12 Months Ended |  |  |  |
--- | --- | --- | --- | --- | ---
Dec. 31, 2017 | Dec. 31, 2016 | Dec. 31, 2015 | Feb. 16, 2018 | Feb. 16, 2017 | Oct. 22, 2015 | Oct. 23, 2014
October 2014 Stock Repurchase Program [Member] |  |  |  |  |  |  |
Equity, Class of Treasury Stock [Line Items] |  |  |  |  |  |  |
Common stock repurchase program, authorized shares |  |  |  |  |  |  | 2,000,000
Number of shares repurchased by the Company |  |  | 1,134,300 |  |  |  |
Value of shares repurchased by the Company |  |  | $ 45.2 |  |  |  |
Common stock repurchase program, termination date | Oct. 22, 2015 |  |  |  |  |  |
October 2015 Stock Repurchase Program [Member] |  |  |  |  |  |  |
Equity, Class of Treasury Stock [Line Items] |  |  |  |  |  |  |
Common stock repurchase program, authorized shares |  |  |  |  |  | 3,150,000 |
Number of shares repurchased by the Company |  | 1,578,952 |  |  |  |  |
Value of shares repurchased by the Company |  | $ 53.3 |  |  |  |  |
Common stock repurchase program, termination date | Dec. 31, 2016 |  |  |  |  |  |
February 2017 Stock Repurchase Program [Member] |  |  |  |  |  |  |
Equity, Class of Treasury Stock [Line Items] |  |  |  |  |  |  |
Common stock repurchase program, authorized shares |  |  |  |  | 2,961,000 |  |
Number of shares repurchased by the Company | 0 |  |  |  |  |  |
February 2018 Stock Repurchase Program [Member] |  |  |  |  |  |  |
Equity, Class of Treasury Stock [Line Items] |  |  |  |  |  |  |
Number of shares repurchased by the Company | 0 |  |  |  |  |  |
February 2018 Stock Repurchase Program [Member] | Subsequent Event [Member] |  |  |  |  |  |  |
Equity, Class of Treasury Stock [Line Items] |  |  |  |  |  |  |
Common stock repurchase program, authorized shares |  |  |  | 2,900,000 |  |  |

X
- Definition Stock repurchase program termination date. + References No definition available. + Details
Name: | trex_StockRepurchaseProgramTerminationDate
Namespace Prefix: | trex_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

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. + References No definition available. + Details
Name: | us-gaap_EquityClassOfTreasuryStockLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of shares authorized to be repurchased by an entity's Board of Directors under a stock repurchase plan. + References No definition available. + Details
Name: | us-gaap_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchased
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of shares that have been repurchased during the period and are being held in treasury. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187085-122770 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=84159872&loc=d3e21463-112644 + Details
Name: | us-gaap_TreasuryStockSharesAcquired
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Equity impact of the cost of common and preferred stock that were repurchased during the period. Recorded using the cost method. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=84159872&loc=d3e21463-112644 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 30 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6405813&loc=d3e23239-112655 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187085-122770 + Details
Name: | us-gaap_TreasuryStockValueAcquiredCostMethod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_ShareRepurchaseProgramAxis=trex_OctoberTwoThousandFourteenStockRepurchaseProgramMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ShareRepurchaseProgramAxis=trex_OctoberTwoThousandFifteenStockRepurchaseProgramMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ShareRepurchaseProgramAxis=trex_FebruaryTwoThousandSeventeenStockRepurchaseProgramMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ShareRepurchaseProgramAxis=trex_FebruaryTwoThousandEighteenStockRepurchaseProgramMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_SubsequentEventTypeAxis=us-gaap_SubsequentEventMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |