XML 49 R41.htm IDEA: XBRL DOCUMENT
v3.23.3

Leases (Details) - Schedule of Components of Lease Expense - USD ($) $ in Thousands | 3 Months Ended | 9 Months Ended
--- | --- | ---
Oct. 31, 2023 | Oct. 31, 2022 | Oct. 31, 2023 | Oct. 31, 2022
Schedule Of Components Of Lease Expense Abstract |  |  |  |
Operating lease expense | $ 1,499 | $ 2,060 | $ 4,691 | $ 5,661
Variable lease expense | (26) | 92 | 277 | 757
Total lease expense | $ 1,473 | $ 2,152 | $ 4,968 | $ 6,418

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

X
- References No definition available. + Details
Name: | rex_VariableLeaseExpense
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of lease cost recognized by lessee for lease contract. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 53 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479589/842-20-55-53 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org//1943274/2147478964/842-20-50-4 + Details
Name: | us-gaap_LeaseCost
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of operating lease expense. Excludes sublease income. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 45 -Paragraph 4 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479041/842-20-45-4 + Details
Name: | us-gaap_OperatingLeaseExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration