XML 64 R47.htm IDEA: XBRL DOCUMENT
v3.6.0.2

Stock-Based Compensation - Additional Information (Detail) - USD ($) |  | 12 Months Ended
--- | --- | ---
Dec. 31, 2016 | Dec. 31, 2016 | Dec. 31, 2015 | Dec. 31, 2014
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |
Approximate number of shares employees purchased under the Employee Stock Purchase Plan |  | 422,687 |  |
Stock Options Outstanding, Number | 0 | 0 | 0 |
2014 Stock Incentive Plan [Member] |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |
Total aggregate number of shares of common stock that may be issued | 6,420,000 | 6,420,000 |  |
Performance-Based Restricted Stock [Member] |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |
Vesting period |  | 3 years |  |
Unrecognized compensation cost related to unvested awards | $ 1,200,000 | $ 1,200,000 | $ 600,000 |
Compensation cost recognition period for unvested awards | 2 years |  |  |
Number of shares or rights issued |  | 44,925 | 34,638 |
Performance-Based Restricted Stock [Member] | Share-Based Compensation Award, Tranche One [Member] |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |
Stock-based Compensation vesting percentage |  | 33.33% |  |
Performance-Based Restricted Stock [Member] | Share-Based Compensation Award, Tranche Two [Member] |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |
Stock-based Compensation vesting percentage |  | 33.33% |  |
Performance-Based Restricted Stock [Member] | Share-Based Compensation Award, Tranche Three [Member] |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |
Stock-based Compensation vesting percentage |  | 33.33% |  |
Stock Appreciation Rights [Member] |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |
Unrecognized compensation cost related to unvested awards | $ 0 | $ 0 |  |
Maximum contractual term |  | 10 years |  |
Fair value assumptions method used |  | Black-Scholes option-pricing model |  |
Number of shares or rights issued |  | 0 |  |
Weighted-average fair value of grants |  |  | $ 16.26 | $ 17.78
Time-Based Restricted Stock [Member] |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |
Unrecognized compensation cost related to unvested awards | $ 1,500,000 | $ 1,500,000 |  |
Compensation cost recognition period for unvested awards | 1 year 7 months 6 days |  |  |
Total fair value of restricted shares vested |  | $ 1,700,000 | $ 9,800,000 | $ 3,900,000
Number of shares or rights issued |  | 57,874 | 57,598 | 66,511
Employee Stock Purchase Plan [Member] |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |
Total aggregate number of shares of common stock that may be issued | 600,000 | 600,000 |  |
Percentage of market price on lesser of either first day of calendar quarter or last day of calendar quarter for purchase price |  | 85.00% |  |
Percentage of gross compensation eligible employees may elect to participate in the plan | 15.00% | 15.00% |  |
Stock Options [Member] |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |
Maximum contractual term |  | 10 years |  |
Minimum [Member] | Performance-Based Restricted Stock [Member] |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |
Percentage of target number of shares that will vest |  | 0.00% |  |
Maximum [Member] | Performance-Based Restricted Stock [Member] |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |
Percentage of target number of shares that will vest |  | 200.00% | 200.00% |

X
- Definition The weighted average grant-date fair value of equity instruments other than options granted during the reporting period as calculated by applying the disclosed option pricing methodology. + References No definition available. + Details
Name: | trex_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionGrantsInPeriodWeightedAverageGrantDateFairValuePerPricingModel
Namespace Prefix: | trex_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition With respect to each vesting, the number of shares that will vest stated as a percentage of the target number of shares. + References No definition available. + Details
Name: | trex_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentageToTargetNumberOfShares
Namespace Prefix: | trex_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares issued since the plan's inception as a result of an employee stock purchase plan. + References No definition available. + Details
Name: | trex_StockIssuedSharesEmployeeStockPurchasePlan
Namespace Prefix: | trex_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Weighted average period over which unrecognized compensation is expected to be recognized for equity-based compensation plans, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (i) -URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Unrecognized cost of unvested share-based awards, other than options, awarded to employees as compensation. + References No definition available. + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Period which an employee's right to exercise an award is no longer contingent on satisfaction of either a service condition, market condition or a performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
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/presentationRef -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=6415400&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fair value of share-based awards for which the grantee gained the right by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (d)(2) -URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition For each plan, identification of the award pricing model or other valuation method used in calculating the weighted average fair values disclosed. The model is also used to calculate the compensation expense that is shown within the balance sheet, income statement, and cash flow. Examples of valuation techniques are lattice models (binomial model), closed-form models (Black-Scholes-Merton formula), and a Monte Carlo simulation technique. Fair value is the amount at which an asset or liability could be bought or incurred or sold or settled in a current transaction between willing parties, that is, other than in a forced or liquidation sale. May include disclosures about the assumptions underlying application of the method selected. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (f)(1) -URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsMethodUsed
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
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_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The highest percentage of annual salary that an employee is permitted to utilize with respect to the plan. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum number of shares (or other type of equity) originally approved (usually by shareholders and board of directors), net of any subsequent amendments and adjustments, for awards under the equity-based compensation plan. As stock or unit options and equity instruments other than options are awarded to participants, the shares or units remain authorized and become reserved for issuance under outstanding awards (not necessarily vested). + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition As of the balance sheet date, the number of shares into which fully vested and expected to vest stock options outstanding can be converted under the option plan. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (e)(1) -URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage of vesting of share-based compensation awards. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901 + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Period from grant date that an equity-based award expires, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(2) -URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901 + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Purchase price of common stock expressed as a percentage of its fair value. + References No definition available. + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_PlanNameAxis=trex_TwoThousandFourteenStockIncentivePlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_VestingAxis=us-gaap_ShareBasedCompensationAwardTrancheOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VestingAxis=us-gaap_ShareBasedCompensationAwardTrancheTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VestingAxis=us-gaap_ShareBasedCompensationAwardTrancheThreeMember
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: |

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

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

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

X
- Details
Name: | us-gaap_RangeAxis=us-gaap_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RangeAxis=us-gaap_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |