XML 52 R40.htm IDEA: XBRL DOCUMENT
v3.19.1

SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) | 12 Months Ended
--- | ---
Jan. 31, 2019 USD ($) | Jan. 31, 2018 USD ($) | Jan. 31, 2017 USD ($)
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) [Line Items] |  |  |
Number Of Operating Entities | 5 |  |
Number of Reportable Segments | 2 | 2 |
Concentration Risk, Customer |  | Six |
Property, Plant and Equipment, Depreciation Methods | Depreciation is computed using the straight-line method. |  |
Depreciation | $ 24,828,000 | $ 21,462,000 | $ 19,519,000
Liabilities |  | 121,000 |
Assets | $ 471,393,000 | $ 478,864,000 |
Effective Income Tax Rate Reconciliation, at Federal Statutory Income Tax Rate, Percent | 21.00% | 33.80% | 35.00%
Cost of Sales [Member] |  |  |
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) [Line Items] |  |  |
Maximum Percentage of Equity Ownership Interest Which May be Considered for Equity Method of Accounting | 20.00% |  |
Contracts Not Accounted For Under Normal Purchases and Normal Sales |  |  |
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) [Line Items] |  |  |
Liabilities | $ 21,000 |  |
Assets |  | $ 100,000 |
Minimum [Member] |  |  |
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) [Line Items] |  |  |
Operating Lease, Right-of-Use Asset | $ 18,000,000 |  |
Minimum [Member] | Building and Building Improvements [Member] |  |  |
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) [Line Items] |  |  |
Property, Plant and Equipment, Estimated Useful Lives | 5 |  |
Minimum [Member] | Fixtures And Equipment [Member] |  |  |
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) [Line Items] |  |  |
Property, Plant and Equipment, Estimated Useful Lives | 2 |  |
Maximum [Member] |  |  |
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) [Line Items] |  |  |
Operating Lease, Right-of-Use Asset | $ 22,000,000 |  |
Maximum [Member] | Building and Building Improvements [Member] |  |  |
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) [Line Items] |  |  |
Property, Plant and Equipment, Estimated Useful Lives | 40 years |  |
Maximum [Member] | Fixtures And Equipment [Member] |  |  |
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) [Line Items] |  |  |
Property, Plant and Equipment, Estimated Useful Lives | 20 years |  |
Customer Concentration Risk [Member] |  |  |
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) [Line Items] |  |  |
Concentration Risk, Customer | Six |  | five
Concentration Risk, Percentage | 85.00% | 87.00% | 83.00%
Income Tax Examination, Penalties and Interest Accrued | $ 0.80 | $ 0.89 |
Accounting Standards Update 2016-18 [Member] |  |  |
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) [Line Items] |  |  |
Increase in Restricted Cash | 354,000 | 130,000 |
Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Period Increase (Decrease), Excluding Exchange Rate Effect |  | 224,000 | $ 76,000
Refined Coal [Member] |  |  |
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) [Line Items] |  |  |
Assets | $ 8,625,000 | $ 12,165,000 |
Refined Coal [Member] | Majority-Owned Subsidiary, Unconsolidated [Member] |  |  |
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) [Line Items] |  |  |
Number of Reportable Segments | 1 |  |
Consolidated Entities [Member] |  |  |
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) [Line Items] |  |  |
Number Of Operating Entities | 4 |  |
Equity Method Investee [Member] |  |  |
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) [Line Items] |  |  |
Number Of Operating Entities | 1 |  |

X
- Definition Maximum percentage of equity ownership interest which may be considered for equity method of accounting. + References No definition available. + Details
Name: | rex_MaximumPercentageOfEquityOwnershipInterestWhichMayBeConsideredForEquityMethodOfAccounting
Namespace Prefix: | rex_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

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

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

X
- Definition Sum of the carrying amounts as of the balance sheet date of all assets that are recognized. Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(11)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -URI http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(12)) -URI http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910 + Details
Name: | us-gaap_Assets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of increase (decrease) in cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; excluding effect from exchange rate change. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 830 -SubTopic 230 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=98513438&loc=d3e33268-110906 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 24 -URI http://asc.fasb.org/extlink&oid=109223946&loc=d3e3521-108585 + Details
Name: | us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Description of risks that arise due to the volume of business transacted with a particular customer. At a minimum, the description informs financial statement users of the general nature of the risk, but excludes "Information about Major Customers" that may be disclosed elsewhere (for instance, segment disclosures). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 275 -SubTopic 10 -Section 50 -Paragraph 18 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=99393423&loc=d3e6351-108592 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 275 -SubTopic 10 -Section 50 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=99393423&loc=d3e6404-108592 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 275 -SubTopic 10 -Section 50 -Paragraph 16 -URI http://asc.fasb.org/extlink&oid=99393423&loc=d3e6327-108592 + Details
Name: | us-gaap_ConcentrationRiskCustomer
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition For an entity that discloses a concentration risk in relation to quantitative amount, which serves as the "benchmark" (or denominator) in the equation, this concept represents the concentration percentage derived from the division. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 275 -SubTopic 10 -Section 50 -Paragraph 18 -URI http://asc.fasb.org/extlink&oid=99393423&loc=d3e6351-108592 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=109250915&loc=d3e13531-108611 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 21 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=109250915&loc=d3e13537-108611 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 275 -SubTopic 10 -Section 50 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=99393423&loc=d3e6404-108592 + Details
Name: | us-gaap_ConcentrationRiskPercentage1
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of expense recognized in the current period that reflects the allocation of the cost of tangible assets over the assets' useful lives. Includes production and non-production related depreciation. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 360 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=109223946&loc=d3e3602-108585 + Details
Name: | us-gaap_Depreciation
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Percentage of domestic federal statutory tax rate applicable to pretax income (loss). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB TOPIC 6.I) -URI http://asc.fasb.org/extlink&oid=34349781&loc=d3e330036-122817 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 12 -URI http://asc.fasb.org/extlink&oid=84230637&loc=d3e32687-109319 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 13 -URI http://asc.fasb.org/extlink&oid=84230637&loc=d3e32698-109319 + Details
Name: | us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of estimated penalties and interest accrued as of the balance sheet date arising from income tax examinations. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 15 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=84230637&loc=d3e32718-109319 + Details
Name: | us-gaap_IncomeTaxExaminationPenaltiesAndInterestAccrued
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of cash outflow associated with funds that are not available for withdrawal or use (such as funds held in escrow) and are associated with underlying transactions that are classified as investing activities. + References No definition available. + Details
Name: | us-gaap_IncreaseInRestrictedCash
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Sum of the carrying amounts as of the balance sheet date of all liabilities that are recognized. Liabilities are probable future sacrifices of economic benefits arising from present obligations of an entity to transfer assets or provide services to other entities in the future. + 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.19-26) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_Liabilities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Number of segments reported by the entity. A reportable segment is a component of an entity for which there is an accounting requirement to report separate financial information on that component in the entity's financial statements. + References No definition available. + Details
Name: | us-gaap_NumberOfReportableSegments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of lessee's right to use underlying asset under operating lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 45 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=77888419&loc=SL77918627-209977 + Details
Name: | us-gaap_OperatingLeaseRightOfUseAsset
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Description of the methodology for computing depreciation for classes of depreciable assets. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 360 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229 + Details
Name: | us-gaap_PropertyPlantAndEquipmentDepreciationMethods
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Describes the periods of time over which an entity anticipates to receive utility from its property, plant and equipment (that is, the periods of time over which an entity allocates the initial cost of its property, plant and equipment). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 360 -SubTopic 10 -Section 35 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=68071081&loc=d3e1205-110223 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=84158767&loc=d3e18780-107790 + Details
Name: | us-gaap_PropertyPlantAndEquipmentEstimatedUsefulLives
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_CostOfSalesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=rex_ContractsNotAccountedForUnderNormalPurchasesAndNormalSalesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=us-gaap_BuildingAndBuildingImprovementsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=rex_FixturesAndEquipmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByTypeAxis=us-gaap_CustomerConcentrationRiskMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AdjustmentsForNewAccountingPronouncementsAxis=us-gaap_AccountingStandardsUpdate201618Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=rex_RefinedCoalMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_OwnershipAxis=us-gaap_MajorityOwnedSubsidiaryUnconsolidatedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidationItemsAxis=us-gaap_ConsolidatedEntitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidationItemsAxis=us-gaap_EquityMethodInvesteeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |