XML 62 R47.htm IDEA: XBRL DOCUMENT
v3.7.0.1

INVESTMENTS (Details) - Schedule of Financial information For Equity Method Investment - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2016 | [1] | Dec. 31, 2015 | Dec. 31, 2014
Patriot [Member] |  |  |  |
INVESTMENTS (Details) - Schedule of Financial information For Equity Method Investment [Line Items] |  |  |  |
Net sales and revenue | $ 851,434 | $ 863,554 |  | $ 1,184,505
Gross profit | 88,841 | 85,451 |  | 241,963
Income from continuing operations | 63,292 | 62,193 |  | 187,388
Net income | $ 63,292 | 62,193 |  | 187,388
Big River [Member] |  |  |  |
INVESTMENTS (Details) - Schedule of Financial information For Equity Method Investment [Line Items] |  |  |  |
Net sales and revenue |  | 115,614 | [1] | 331,260
Gross profit |  | 14,424 | [1] | 59,980
Income from continuing operations |  | 11,100 | [1] | 52,875
Net income |  | $ 11,100 | [1] | $ 52,875
[1] | For Patriot, results are for the five month period ended May 31, 2015 as the Company's equity interest in Patriot was sold June 1, 2015.

X
- References No definition available. + Details
Name: | rex_INVESTMENTSDetailsScheduleofFinancialinformationForEquityMethodInvestmentLineItems
Namespace Prefix: | rex_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of gross profit (loss) reported by an equity method investment of the entity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=64827811&loc=SL51721683-107760 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=66011266&loc=d3e33912-111571 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(g)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=66011266&loc=d3e33918-111571 + Details
Name: | us-gaap_EquityMethodInvestmentSummarizedFinancialInformationGrossProfitLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of income (loss) from continuing operations reported by an equity method investee. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(g)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=64827811&loc=SL51721683-107760 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=66011266&loc=d3e33912-111571 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=66011266&loc=d3e33918-111571 + Details
Name: | us-gaap_EquityMethodInvestmentSummarizedFinancialInformationIncomeLossFromContinuingOperationsBeforeExtraordinaryItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of net income (loss) reported by an equity method investment of the entity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=64827811&loc=SL51721683-107760 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 28 -Subparagraph (f) -URI http://asc.fasb.org/extlink&oid=75031198&loc=d3e14064-108612 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=66011266&loc=d3e33918-111571 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(g)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=66011266&loc=d3e33912-111571 + Details
Name: | us-gaap_EquityMethodInvestmentSummarizedFinancialInformationNetIncomeLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of revenue from sale of goods and services reduced by sales returns, allowances, and discounts reported by an equity method investment of the entity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 205 -SubTopic 20 -Section 50 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=64827811&loc=SL51721683-107760 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=66011266&loc=d3e33918-111571 + Details
Name: | us-gaap_EquityMethodInvestmentSummarizedFinancialInformationRevenue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis=rex_PatriotMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis=rex_BigRiverMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |