XML 65 R52.htm IDEA: XBRL DOCUMENT
v3.25.2

Derivative Financial Instruments - Schedule of Sales (Details) - USD ($) $ in Thousands | 3 Months Ended | 6 Months Ended
--- | --- | ---
Jul. 31, 2025 | Jul. 31, 2024 | Jul. 31, 2025 | Jul. 31, 2024
Schedule Of Sales Abstract |  |  |  |
Net sales | $ 201 | $ 429 | $ 218 | $ 436
Cost of sales | $ 317 | $ (6,180) | $ 2,285 | $ (6,116)

X
- Definition Cost of sales + References No definition available. + Details
Name: | rex_GainLossOnDerivativeInstrumentsCostOfSales
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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

X
- Definition Aggregate net gain (loss) on all derivative instruments recognized in earnings during the period, before tax effects. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4A -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-4A + Details
Name: | us-gaap_GainLossOnDerivativeInstrumentsNetPretax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration