2.4.0.82416403 - Disclosure - Stock-based compensation Fair value assumptions (Details)truefalsefalse1falsefalsefalseD2013Q2YTD_us-gaap_RangeAxis_us-gaap_MinimumMemberhttp://www.sec.gov/CIK0000914122duration2013-02-01T00:00:002013-07-31T00:00:00ratioStandardhttp://www.xbrl.org/2003/instancepurexbrli02falsefalsefalseD2012Q2YTD_us-gaap_RangeAxis_us-gaap_MinimumMemberhttp://www.sec.gov/CIK0000914122duration2012-02-01T00:00:002012-07-31T00:00:00ratioStandardhttp://www.xbrl.org/2003/instancepurexbrli01false0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse1falsetruefalseD2013Q2YTD_us-gaap_RangeAxis_us-gaap_MinimumMemberhttp://www.sec.gov/CIK0000914122duration2013-02-01T00:00:002013-07-31T00:00:00falsefalseMinimum [Member]us-gaap_RangeAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_MinimumMemberus-gaap_RangeAxisexplicitMemberratioStandardhttp://www.xbrl.org/2003/instancepurexbrli0nanafalse02true3us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse03false4us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truetruefalse0.51780.5178falsefalsefalse2truetruefalse0.57020.5702falsefalsefalsenum:percentItemTypepureThe estimated measure of the percentage by which a share price is expected to fluctuate during a period. Volatility also may be defined as a probability-weighted measure of the dispersion of returns about the mean. The volatility of a share price is the standard deviation of the continuously compounded rates of return on the share over a specified period. That is the same as the standard deviation of the differences in the natural logarithms of the stock prices plus dividends, if any, over the period.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)(2)(ii)
-URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901
false04false4us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truetruefalse0.00740.0074falsefalsefalse2truetruefalse0.00740.0074falsefalsefalsenum:percentItemTypepureThe risk-free interest rate assumption that is used in valuing an option on its own shares.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)(2)(iv)
-URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901
false05false4us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRateus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truetruefalse0.00000.0000falsefalsefalse2truetruefalse0.00000.0000falsefalsefalsenum:percentItemTypepureThe estimated dividend rate (a percentage of the share price) to be paid (expected dividends) to holders of the underlying shares over the option's term.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)(2)(iii)
-URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901
false06false4us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1us-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse004 years 10 months 24 daysfalsefalsefalse2falsefalsefalse004 years 10 months 24 daysfalsefalsefalsexbrli:durationItemTypenaExpected term of share-based compensation awards, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 718
-SubTopic 10
-Section S99
-Paragraph 1
-Subparagraph (SAB TOPIC 14.D.2)
-URI http://asc.fasb.org/extlink&oid=27013229&loc=d3e301413-122809
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 718
-SubTopic 10
-Section 50
-Paragraph 2
-Subparagraph (f)(2)(i)
-URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Staff Accounting Bulletin (SAB)
-Number Topic 14
-Section D
-Subsection 2
false07false0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsetruefalseD2013Q2YTD_us-gaap_RangeAxis_us-gaap_MaximumMemberhttp://www.sec.gov/CIK0000914122duration2013-02-01T00:00:002013-07-31T00:00:00falsefalseMaximum [Member]us-gaap_RangeAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_MaximumMemberus-gaap_RangeAxisexplicitMemberratioStandardhttp://www.xbrl.org/2003/instancepurexbrli0nanafalse08true3us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse09false4us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truetruefalse0.65540.6554falsefalsefalse2truetruefalse0.66820.6682falsefalsefalsenum:percentItemTypepureThe estimated measure of the percentage by which a share price is expected to fluctuate during a period. Volatility also may be defined as a probability-weighted measure of the dispersion of returns about the mean. The volatility of a share price is the standard deviation of the continuously compounded rates of return on the share over a specified period. That is the same as the standard deviation of the differences in the natural logarithms of the stock prices plus dividends, if any, over the period.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)(2)(ii)
-URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901
false010false4us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truetruefalse0.02820.0282falsefalsefalse2truetruefalse0.03570.0357falsefalsefalsenum:percentItemTypepureThe risk-free interest rate assumption that is used in valuing an option on its own shares.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)(2)(iv)
-URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901
false011false4us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRateus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truetruefalse0.00000.0000falsefalsefalse2truetruefalse0.00000.0000falsefalsefalsenum:percentItemTypepureThe estimated dividend rate (a percentage of the share price) to be paid (expected dividends) to holders of the underlying shares over the option's term.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)(2)(iii)
-URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901
false012false4us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1us-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse005 years 8 months 12 daysfalsefalsefalse2falsefalsefalse005 years 8 months 12 daysfalsefalsefalsexbrli:durationItemTypenaExpected term of share-based compensation awards, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 718
-SubTopic 10
-Section S99
-Paragraph 1
-Subparagraph (SAB TOPIC 14.D.2)
-URI http://asc.fasb.org/extlink&oid=27013229&loc=d3e301413-122809
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 718
-SubTopic 10
-Section 50
-Paragraph 2
-Subparagraph (f)(2)(i)
-URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Staff Accounting Bulletin (SAB)
-Number Topic 14
-Section D
-Subsection 2
false0falseStock-based compensation Fair value assumptions (Details)UnKnownUnKnownUnKnownUnKnowntruefalsefalseSheethttp://www.mfri.com/role/StockBasedCompensationFairValueAssumptionsDetails212