XML 73 R58.htm IDEA: XBRL DOCUMENT
v3.10.0.1

Stockholders' Equity - Additional Information (Detail) $ / shares in Units, $ in Millions |  | 12 Months Ended |  |  |  |
--- | --- | --- | --- | --- | --- | ---
May 02, 2018 shares | Dec. 31, 2018 $ / shares shares | Dec. 31, 2016 USD ($) shares | Feb. 16, 2018 shares | Dec. 31, 2017 shares | Feb. 16, 2017 shares | Oct. 22, 2015 shares
Equity, Class of Treasury Stock [Line Items] |  |  |  |  |  |  |
Common stock, par value | $ / shares |  | $ 0.01 |  |  |  |  |
Common stock, shares authorized | 80,000,000 | 120,000,000 |  |  | 120,000,000 |  |
Stock split | 2 |  |  |  |  |  |
October 2014 Stock Repurchase Program [Member] |  |  |  |  |  |  |
Equity, Class of Treasury Stock [Line Items] |  |  |  |  |  |  |
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, termination date |  | Dec. 31, 2016 |  |  |  |  |
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 |  |  |  |
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] |  |  |  |  |  |  |
Common stock repurchase program, authorized shares |  |  |  | 5,800,000 |  |  |
Number of shares repurchased by the Company |  | 459,321 |  |  |  |  |

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 Face amount per share of no-par value common stock. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -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 + Details
Name: | us-gaap_CommonStockNoParValue
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum number of common shares permitted to be issued by an entity's charter and bylaws. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -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 + Details
Name: | us-gaap_CommonStockSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

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 Ratio applied to the conversion of stock split, for example but not limited to, one share converted to two or two shares converted to one. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 4 -Subparagraph (SAB TOPIC 4.C) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187143-122770 + Details
Name: | us-gaap_StockholdersEquityNoteStockSplitConversionRatio1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares that have been repurchased during the period and are being held in treasury. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=109259400&loc=d3e21463-112644 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -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 3: http://fasb.org/us-gaap/role/ref/legacyRef -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 + 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://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=109259400&loc=d3e21463-112644 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -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://fasb.org/us-gaap/role/ref/legacyRef -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: |