XML 105 R74.htm IDEA: XBRL DOCUMENT
v3.6.0.2

Income Taxes (Details) - USD ($) $ in Thousands | 3 Months Ended | 12 Months Ended |  |  |
--- | --- | --- | --- | --- | ---
Mar. 31, 2017 | Dec. 31, 2016 | Sep. 30, 2016 | Jun. 30, 2016 | Mar. 31, 2016 | Dec. 31, 2015 | Sep. 30, 2015 | Jun. 30, 2015 | Mar. 31, 2015 | Dec. 31, 2016 | Dec. 31, 2015 | Dec. 31, 2014 | Dec. 31, 2007 | Dec. 31, 2016 | Dec. 31, 2015 | Dec. 31, 2014
Net deferred tax assets and liabilities [Abstract] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Total deferred tax assets |  |  |  |  |  |  |  |  |  |  |  |  |  | $ 636,449 | $ 791,286 |
Total deferred tax liabilities |  |  |  |  |  |  |  |  |  |  |  |  |  | (28,794) | (29,206) |
Net deferred tax asset |  |  |  |  |  |  |  |  |  |  |  |  |  | 607,655 | 762,080 |
Components of net deferred tax liability [Abstract] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Unearned premium reserves |  |  |  |  |  |  |  |  |  |  |  |  |  | 40,153 | 33,262 |
Benefit plans |  |  |  |  |  |  |  |  |  |  |  |  |  | (12,350) | (14,283) |
Federal net operating loss |  |  |  |  |  |  |  |  |  |  |  |  |  | 520,812 | 680,975 |
Loss reserves |  |  |  |  |  |  |  |  |  |  |  |  |  | 10,883 | 15,536 |
Unrealized depreciation in investments |  |  |  |  |  |  |  |  |  |  |  |  |  | 11,211 | 8,904 |
Mortgage investments |  |  |  |  |  |  |  |  |  |  |  |  |  | 17,751 | 17,386 |
Deferred compensation |  |  |  |  |  |  |  |  |  |  |  |  |  | 12,517 | 12,927 |
Other, net |  |  |  |  |  |  |  |  |  |  |  |  |  | 6,678 | 7,373 |
Net deferred tax asset |  |  |  |  |  |  |  |  |  |  |  |  |  | 607,655 | 762,080 |
Tax provision (benefit) [Abstract] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Provision for income taxes before valuation allowance |  |  |  |  |  |  |  |  |  | $ 172,197 | $ 163,497 | $ 91,607 |  |  |  |
Change in valuation allowance |  |  |  |  |  |  |  |  |  | 0 | (161,158) | (88,833) |  |  |  |
Reversal of the valuation allowance |  |  |  |  |  |  |  |  |  | 0 | (686,652) | 0 |  |  |  |
Provision for (benefit from) income taxes |  | $ 54,551 | $ 27,131 | $ 56,018 | $ 34,497 | $ 6,584 | $ (695,604) | $ 1,322 | $ 3,385 | 172,197 | (684,313) | 2,774 |  |  |  |
Valuation allowance |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 0 | $ 902,300
Change in deferred tax valuation allowance, included in other comprehensive income |  |  |  |  |  |  |  |  |  |  | (54,500) | (13,100) |  |  |  |
Net operating loss carryforwards, regular tax basis |  |  |  |  |  |  |  |  |  |  |  |  |  | 1,489,000 |  |
Net operating loss carryforwards for computing the alternative minimum tax |  |  |  |  |  |  |  |  |  |  |  |  |  | 589,000 |  |
Components of provisions for (benefit from) income taxes [Abstract] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Current Federal |  |  |  |  |  |  |  |  |  | 9,470 | 8,067 | 2,391 |  |  |  |
Deferred Federal |  |  |  |  |  |  |  |  |  | 160,657 | (686,652) | 1 |  |  |  |
Other |  |  |  |  |  |  |  |  |  | 2,070 | (5,728) | 382 |  |  |  |
Provision for (benefit from) income taxes |  | 54,551 | $ 27,131 | $ 56,018 | 34,497 | 6,584 | $ (695,604) | $ 1,322 | 3,385 | 172,197 | (684,313) | 2,774 |  |  |  |
Income taxes paid |  |  |  |  |  |  |  |  |  | $ 4,500 | $ 5,400 | $ 1,300 |  |  |  |
Reconciliation of effective income tax rate [Abstract] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Federal statutory income tax rate (in hundredths) |  |  |  |  |  |  |  |  |  | 35.00% | 35.00% | 35.00% |  |  |  |
Valuation allowance (in hundredths) |  |  |  |  |  |  |  |  |  | 0.00% | (173.80%) | (34.90%) |  |  |  |
Tax exempt municipal bond interest (in hundredths) |  |  |  |  |  |  |  |  |  | (1.90%) | (0.80%) | (0.40%) |  |  |  |
Other, net (in hundredths) |  |  |  |  |  |  |  |  |  | 0.40% | (0.70%) | 1.40% |  |  |  |
Effective income tax provision (benefit) rate (in hundredths) |  |  |  |  |  |  |  |  |  | 33.50% | (140.30%) | 1.10% |  |  |  |
Information regarding income tax examinations [Abstract] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Amount of IRS assessment for unpaid taxes and penalties related to REMIC issue |  |  |  |  |  |  |  |  |  |  |  |  |  | 197,500 |  |
Estimate of federal interest that may be due |  |  |  |  |  |  |  |  |  |  |  |  |  | 200,600 |  |
Amount of payment made related to the IRS assessment on the REMIC issue |  |  |  |  |  |  |  |  |  |  |  |  | $ 65,200 |  |  |
Amount of IRS assessment for unpaid taxes and penalties related to disallowance of carryback of 2009 net operating loss |  |  |  |  |  |  |  |  |  |  |  |  |  | 261,400 |  |
Estimate of additional state income taxes and interest that may be due |  |  |  |  |  |  |  |  |  |  |  |  |  | 50,700 |  |
Unrecognized tax benefits | $ 108,245 | 108,245 |  |  | 107,120 | 107,120 |  |  | 106,230 | $ 107,120 | $ 106,230 | $ 105,366 |  | 108,245 | 107,120 | $ 106,230
Unrecognized tax benefits [Roll Forward] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Balance at beginning of year | 108,245 |  |  |  | $ 107,120 |  |  |  | $ 106,230 | 107,120 | 106,230 | 105,366 |  |  |  |
Additions based on tax positions related to the current year |  |  |  |  |  |  |  |  |  | 0 | 0 | 0 |  |  |  |
Additions for tax positions of prior years |  |  |  |  |  |  |  |  |  | 1,125 | 890 | 864 |  |  |  |
Reductions for tax positions of prior years |  |  |  |  |  |  |  |  |  | 0 | 0 | 0 |  |  |  |
Settlements |  |  |  |  |  |  |  |  |  | 0 | 0 | 0 |  |  |  |
Balance at end of year |  | $ 108,245 |  |  |  | $ 107,120 |  |  |  | 108,245 | 107,120 | $ 106,230 |  |  |  |
Unrecognized tax benefits [Abstract] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Total amount of unrecognized tax benefits that would affect effective tax rate |  |  |  |  |  |  |  |  |  |  |  |  |  | 94,600 |  |
Interest expense recognized during period |  |  |  |  |  |  |  |  |  | $ 1,100 |  |  |  |  |  |
Unrecognized tax benefits, accrued interest |  |  |  |  |  |  |  |  |  |  |  |  |  | 28,900 | $ 27,800 |
Significant change in unrecognized tax benefits |  |  |  |  |  |  |  |  |  |  |  |  |  | 108,200 |  |
Approximate net cash outflows upon resolution of IRS matters |  |  |  |  |  |  |  |  |  |  |  |  |  | $ 52,000 |  |
Deferred Tax Asset, Changes In Current Period |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Tax provision (benefit) [Abstract] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Change in valuation allowance |  |  |  |  |  |  |  |  |  |  | 154,800 |  |  |  |  |
Deferred Tax Asset, Changes In Current Period | Other Comprehensive Income (Loss) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Tax provision (benefit) [Abstract] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Change in valuation allowance |  |  |  |  |  |  |  |  |  |  | (6,300) |  |  |  |  |
Deferred Tax Asset, Changes In Current Period | Income Tax Expense (Benefit) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Tax provision (benefit) [Abstract] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Change in valuation allowance |  |  |  |  |  |  |  |  |  |  | 161,100 |  |  |  |  |
Deferred Tax Asset, Changes In Future Periods |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Tax provision (benefit) [Abstract] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Change in valuation allowance |  |  |  |  |  |  |  |  |  |  | 747,500 |  |  |  |  |
Deferred Tax Asset, Changes In Future Periods | Other Comprehensive Income (Loss) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Tax provision (benefit) [Abstract] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Change in valuation allowance |  |  |  |  |  |  |  |  |  |  | 60,800 |  |  |  |  |
Deferred Tax Asset, Changes In Future Periods | Income Tax Expense (Benefit) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Tax provision (benefit) [Abstract] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Change in valuation allowance |  |  |  |  |  |  |  |  |  |  | $ 686,700 |  |  |  |  |
Forecast | Internal Revenue Service (IRS) | Minimum |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Information regarding income tax examinations [Abstract] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Examination, Estimate of Possible Loss | 15,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Forecast | Internal Revenue Service (IRS) | Maximum |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Information regarding income tax examinations [Abstract] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Examination, Estimate of Possible Loss | $ 25,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |

X
- Definition The amount of the IRS assessment for unpaid taxes and penalties related to the REMIC issue. + References No definition available. + Details
Name: | mtg_AmountOfIRSAssessment
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amount of the IRS assessment for unpaid taxes and penalties related to the disallowance of the carryback of the 2009 net operating loss. + References No definition available. + Details
Name: | mtg_AmountOfIRSAssessmentRelatedToDisallowanceOfCarryback
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amount of approximate net cash outflows upon resolution of IRS matters, after taking into account prior payments and the effect of net operating loss carrybacks. + References No definition available. + Details
Name: | mtg_ApproximateNetCashOutflowsUponResolutionOfIRSMatters
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The change in the deferred tax valuation allowance that was included in other comprehensive income. + References No definition available. + Details
Name: | mtg_ChangeInDeferredTaxValuationAllowanceIncludedInOtherComprehensiveIncome
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Deferred Tax Assets (Liabilities), Net, Other + References No definition available. + Details
Name: | mtg_DeferredTaxAssetsLiabilitiesNetOther
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Deferred Tax Assets (Liabilities), Net, Other Comprehensive Income + References No definition available. + Details
Name: | mtg_DeferredTaxAssetsLiabilitiesNetOtherComprehensiveIncome
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The tax effect as of the balance sheet date of the amount of the estimated future tax reductions attributable to a difference between the tax basis and the generally accepted accounting principles basis of a company's investment in mortgage related investments which will decrease future taxable income when such basis difference reverses. + References No definition available. + Details
Name: | mtg_DeferredTaxAssetsMortgageRelatedInvestments
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Deferred Tax Liabilities, Tax Deferred Expense, Compensation and Benefits, Employee Benefits + References No definition available. + Details
Name: | mtg_DeferredTaxLiabilitiesTaxDeferredExpenseCompensationandBenefitsEmployeeBenefits
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The estimate of additional state income taxes and interest that may be due upon the resolution of the REMIC issue. + References No definition available. + Details
Name: | mtg_EstimateOfAdditionalStateIncomeTaxesAndInterestThatMayBeDue
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The estimate of federal interest that may be due upon the resolution of the REMIC issue. + References No definition available. + Details
Name: | mtg_EstimateOfFederalInterestThatMayBeDue
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The sum of the current income tax expense or benefit and the deferred income tax expense or benefit, excluding the change in the deferred tax valuation allowance, pertaining to pretax income or loss from continuing operations. + References No definition available. + Details
Name: | mtg_IncomeTaxExpenseBenefitExcludingChangeInDeferredTaxValuationAllowance
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Income Tax Expense (Benefit), Reversal Of Valuation Allowance + References No definition available. + Details
Name: | mtg_IncomeTaxExpenseBenefitReversalOfValuationAllowance
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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

X
- Definition For entities that net deferred tax assets and tax liabilities, represents the unclassified net amount of deferred tax assets and liabilities as of the balance sheet date, which result from applying the applicable enacted tax rate to net temporary differences and carryforwards pertaining to assets or liabilities before deduction of the related valuation allowance. + References No definition available. + Details
Name: | mtg_NetDeferredTaxAssetBeforeValuationAllowance
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The sum of domestic, foreign and state and local operating loss carryforwards, before tax effects, available to reduce future taxable income under enacted tax laws and used for computing the alternative minimum tax. + References No definition available. + Details
Name: | mtg_OperatingLossCarryforwardsAlternativeMinimumTax
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of the payment made to the United States Department of Treasury related to the IRS assessment on the REMIC issue. + References No definition available. + Details
Name: | mtg_PaymentOnIrsAssessmentRelatedToRemicIssue
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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

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

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

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

X
- Definition Amount of current income tax expense (benefit) pertaining to taxable income (loss) from continuing operations. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 9 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32639-109319 Reference 2: 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.(h)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Current Tax Expense (or Benefit) -URI http://asc.fasb.org/extlink&oid=6509736 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB TOPIC 6.I.7) -URI http://asc.fasb.org/extlink&oid=34349781&loc=d3e330036-122817 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Staff Accounting Bulletin (SAB) -Number Topic 6 -Section I -Subsection 7 + Details
Name: | us-gaap_CurrentIncomeTaxExpenseBenefit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of deferred income tax expense (benefit) pertaining to income (loss) from continuing operations. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=56944662&loc=d3e3602-108585 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Deferred Tax Expense (or Benefit) -URI http://asc.fasb.org/extlink&oid=6510177 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 9 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32639-109319 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.(h)) -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 740 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB TOPIC 6.I.7) -URI http://asc.fasb.org/extlink&oid=34349781&loc=d3e330036-122817 Reference 6: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Staff Accounting Bulletin (SAB) -Number Topic 6 -Section I -Subsection 7 + Details
Name: | us-gaap_DeferredIncomeTaxExpenseBenefit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of deferred tax liability attributable to taxable temporary differences. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Deferred Tax Liability -URI http://asc.fasb.org/extlink&oid=6510232 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32537-109319 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 03 -Paragraph 15 -Subparagraph b(2) -Article 7 + Details
Name: | us-gaap_DeferredIncomeTaxLiabilities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32537-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Deferred Tax Asset -URI http://asc.fasb.org/extlink&oid=6510090 + Details
Name: | us-gaap_DeferredTaxAssetsGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, after allocation of valuation allowances and deferred tax liability, of deferred tax asset attributable to deductible differences and carryforwards, before jurisdictional netting. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32537-109319 + Details
Name: | us-gaap_DeferredTaxAssetsLiabilitiesNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible domestic operating loss carryforwards. Excludes state and local operating loss carryforwards. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32621-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 25 -Paragraph 20 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=51675352&loc=d3e28680-109314 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32632-109319 + Details
Name: | us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsDomestic
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from compensation and benefits costs. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 25 -Paragraph 20 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=51675352&loc=d3e28680-109314 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32621-109319 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32632-109319 + Details
Name: | us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from loss reserves other than estimated credit losses. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32621-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32632-109319 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 25 -Paragraph 20 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=51675352&loc=d3e28680-109314 + Details
Name: | us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from the unearned premiums reserve. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32632-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 25 -Paragraph 20 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=51675352&loc=d3e28680-109314 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32621-109319 + Details
Name: | us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsUnearnedPremiumsReserve
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32537-109319 + Details
Name: | us-gaap_DeferredTaxAssetsValuationAllowance
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Percentage of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 13 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32698-109319 Reference 2: 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.(h)(2)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 12 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32687-109319 + Details
Name: | us-gaap_EffectiveIncomeTaxRateContinuingOperations
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition Percentage of domestic federal statutory tax rate applicable to pretax income (loss). + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 12 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32687-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -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 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 13 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32698-109319 + Details
Name: | us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to changes in the valuation allowance for deferred tax assets. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 13 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32698-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 12 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32687-109319 Reference 3: http://www.xbrl.org/2003/role/presentationRef -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 + Details
Name: | us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to other adjustments. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 12 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32687-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -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 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 13 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32698-109319 + Details
Name: | us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to income (loss) exempt from income taxes. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 12 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32687-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -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 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 13 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32698-109319 + Details
Name: | us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Estimated amount of loss resulting from an adverse tax position. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 15 -Subparagraph (d)(3) -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32718-109319 + Details
Name: | us-gaap_IncomeTaxExaminationEstimateOfPossibleLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 9 -Subparagraph (a),(b) -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32639-109319 Reference 2: 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.(h)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Income Tax Expense (or Benefit) -URI http://asc.fasb.org/extlink&oid=6515339 + Details
Name: | us-gaap_IncomeTaxExpenseBenefit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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

X
- Definition The amount of cash paid during the current period to foreign, federal, state, and local authorities as taxes on income. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6367179&loc=d3e4297-108586 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 25 -Subparagraph (f) -URI http://asc.fasb.org/extlink&oid=56944662&loc=d3e3536-108585 + Details
Name: | us-gaap_IncomeTaxesPaid
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of operating loss carryforward, before tax effects, available to reduce future taxable income under enacted tax laws. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32559-109319 + Details
Name: | us-gaap_OperatingLossCarryforwards
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of other income tax expense (benefit). + 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.(h)(1)) -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 740 -SubTopic 10 -Section 50 -Paragraph 9 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32639-109319 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 10 -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32672-109319 + Details
Name: | us-gaap_OtherTaxExpenseBenefit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period. + References No definition available. + Details
Name: | us-gaap_ReconciliationOfUnrecognizedTaxBenefitsExcludingAmountsPertainingToExaminedTaxReturnsRollForward
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of the unrecognized tax benefit of a position taken for which it is reasonably possible that the total amount thereof will significantly increase or decrease within twelve months of the balance sheet date. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 15 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32718-109319 + Details
Name: | us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleAmountOfUnrecordedBenefit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of unrecognized tax benefits pertaining to uncertain tax positions taken in tax returns. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 15A -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6907707&loc=SL6600010-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Unrecognized Tax Benefit -URI http://asc.fasb.org/extlink&oid=6527854 + Details
Name: | us-gaap_UnrecognizedTaxBenefits
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of decrease in unrecognized tax benefits resulting from tax positions taken in prior period tax returns. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 15A -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=6907707&loc=SL6600010-109319 + Details
Name: | us-gaap_UnrecognizedTaxBenefitsDecreasesResultingFromPriorPeriodTaxPositions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of decrease in unrecognized tax benefits resulting from settlements with taxing authorities. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 15A -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=6907707&loc=SL6600010-109319 + Details
Name: | us-gaap_UnrecognizedTaxBenefitsDecreasesResultingFromSettlementsWithTaxingAuthorities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of increase in unrecognized tax benefits resulting from tax positions that have been or will be taken in current period tax return. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 15A -Subparagraph (a)(2) -URI http://asc.fasb.org/extlink&oid=6907707&loc=SL6600010-109319 + Details
Name: | us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of increase in unrecognized tax benefits resulting from tax positions taken in prior period tax returns. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 15A -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=6907707&loc=SL6600010-109319 + Details
Name: | us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromPriorPeriodTaxPositions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of interest expense accrued for an underpayment of income taxes. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 15 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32718-109319 + Details
Name: | us-gaap_UnrecognizedTaxBenefitsInterestOnIncomeTaxesAccrued
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of interest expense for an underpayment of income taxes. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 15 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32718-109319 + Details
Name: | us-gaap_UnrecognizedTaxBenefitsInterestOnIncomeTaxesExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The total amount of unrecognized tax benefits that, if recognized, would affect the effective tax rate. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 15A -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=6907707&loc=SL6600010-109319 + Details
Name: | us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of increase (decrease) in the valuation allowance for a specified deferred tax asset. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 45 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=37586315&loc=d3e32123-109318 + Details
Name: | us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_ValuationAllowanceByDeferredTaxAssetAxis=mtg_DeferredTaxAssetChangesInCurrentPeriodMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_OtherComprehensiveIncomeLocationAxis=us-gaap_OtherComprehensiveIncomeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_ValuationAllowanceByDeferredTaxAssetAxis=mtg_DeferredTaxAssetChangesInFuturePeriodsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementScenarioAxis=us-gaap_ScenarioForecastMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeTaxAuthorityNameAxis=us-gaap_InternalRevenueServiceIRSMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RangeAxis=us-gaap_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RangeAxis=us-gaap_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |