{
 "version": "2.2",
 "instance": {
  "mgee-20231231.htm": {
   "nsprefix": "mgee",
   "nsuri": "http://www.mge.com/20231231",
   "dts": {
    "inline": {
     "local": [
      "mgee-20231231.htm"
     ]
    },
    "schema": {
     "local": [
      "mgee-20231231.xsd"
     ],
     "remote": [
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://www.xbrl.org/dtr/type/2022-03-31/types.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-roles-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-types-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-roles-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-types-2023.xsd",
      "https://xbrl.sec.gov/country/2023/country-2023.xsd",
      "https://xbrl.sec.gov/dei/2023/dei-2023.xsd"
     ]
    }
   },
   "keyStandard": 499,
   "keyCustom": 103,
   "axisStandard": 41,
   "axisCustom": 1,
   "memberStandard": 49,
   "memberCustom": 119,
   "hidden": {
    "total": 140,
    "http://www.mge.com/20231231": 51,
    "http://fasb.org/us-gaap/2023": 85,
    "http://xbrl.sec.gov/dei/2023": 4
   },
   "contextCount": 706,
   "entityCount": 1,
   "segmentCount": 173,
   "elementCount": 1280,
   "unitCount": 9,
   "baseTaxonomies": {
    "http://fasb.org/us-gaap/2023": 2583,
    "http://xbrl.sec.gov/dei/2023": 64,
    "http://fasb.org/srt/2023": 2
   },
   "report": {
    "R1": {
     "role": "http://www.mge.com/20231231/taxonomy/role/DocumentCover",
     "longName": "100000 - Document - Cover",
     "shortName": "Cover",
     "isDefault": "true",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "dei:EntityRegistrantName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "dei:EntityRegistrantName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R2": {
     "role": "http://www.mge.com/20231231/taxonomy/role/DocumentAuditInformation",
     "longName": "100010 - Document - Audit Information",
     "shortName": "Audit Information",
     "isDefault": "false",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "2",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "dei:AuditorName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "dei:AuditorName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R3": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
     "longName": "100050 - Statement - Consolidated Statements of Income",
     "shortName": "Consolidated Statements of Income",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "3",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:RegulatedOperatingRevenueElectricNonNuclear",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:RegulatedOperatingRevenueElectricNonNuclear",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R4": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
     "longName": "100060 - Statement - Consolidated Statements of Cash Flows",
     "shortName": "Consolidated Statements of Cash Flows",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "4",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ProfitLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:DeferredIncomeTaxExpenseBenefit",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R5": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
     "longName": "100070 - Statement - Consolidated Balance Sheets",
     "shortName": "Consolidated Balance Sheets",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "5",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:AccountsReceivableNetCurrent",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R6": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals",
     "longName": "100080 - Statement - Consolidated Balance Sheets (Parentheticals)",
     "shortName": "Consolidated Balance Sheets (Parentheticals)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "6",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:AllowanceForDoubtfulAccountsReceivableCurrent",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:AllowanceForDoubtfulAccountsReceivableCurrent",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R7": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
     "longName": "100090 - Statement - MGE Energy Inc Consolidated Statements of Common Equity",
     "shortName": "MGE Energy Inc Consolidated Statements of Common Equity",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "7",
     "firstAnchor": {
      "contextRef": "C_31926237-62a5-452f-87fb-9eeeceb87b67",
      "name": "us-gaap:SharesIssued",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_31926237-62a5-452f-87fb-9eeeceb87b67",
      "name": "us-gaap:StockholdersEquity",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R8": {
     "role": "http://www.mge.com/20231231/taxonomy/role/StatementMgeEnergyIncConsolidatedStatementsOfCommonEquityParentheticals",
     "longName": "100100 - Statement - MGE Energy Inc - Consolidated Statements of Common Equity (Parentheticals)",
     "shortName": "MGE Energy Inc - Consolidated Statements of Common Equity (Parentheticals)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "8",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:CommonStockDividendsPerShareCashPaid",
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R9": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity",
     "longName": "100110 - Statement - Madison Gas and Electric Company Consolidated Statements of Equity",
     "shortName": "Madison Gas and Electric Company Consolidated Statements of Equity",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "9",
     "firstAnchor": {
      "contextRef": "C_31926237-62a5-452f-87fb-9eeeceb87b67",
      "name": "us-gaap:SharesIssued",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_7c44cd7e-9bfe-4e98-849b-fdc605ab7b33",
      "name": "us-gaap:SharesIssued",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R10": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPolicies",
     "longName": "100120 - Disclosure - Summary of Significant Accounting Policies",
     "shortName": "Summary of Significant Accounting Policies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "10",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R11": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandards",
     "longName": "100130 - Disclosure - New Accounting Standards",
     "shortName": "New Accounting Standards",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "11",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R12": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntities",
     "longName": "100140 - Disclosure - Variable Interest Entities",
     "shortName": "Variable Interest Entities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "12",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "mgee:VariableInterestEntitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "mgee:VariableInterestEntitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R13": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipment",
     "longName": "100150 - Disclosure - Property, Plant, and Equipment",
     "shortName": "Property, Plant, and Equipment",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "13",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R14": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_Leases",
     "longName": "100160 - Disclosure - Leases",
     "shortName": "Leases",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "14",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "mgee:LeasesOfLesseeDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "mgee:LeasesOfLesseeDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R15": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnership",
     "longName": "100170 - Disclosure - Joint Plant Ownership",
     "shortName": "Joint Plant Ownership",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "15",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "mgee:JointlyOwnedUtilityPlantInterestsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "mgee:JointlyOwnedUtilityPlantInterestsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R16": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_Investments",
     "longName": "100180 - Disclosure - Investments",
     "shortName": "Investments",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "16",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "mgee:InvestmentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "mgee:InvestmentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R17": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_RegulatoryAssetsAndLiabilities",
     "longName": "100200 - Disclosure - Regulatory Assets and Liabilities",
     "shortName": "Regulatory Assets and Liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "17",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R18": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMatters",
     "longName": "100210 - Disclosure - Rate Matters",
     "shortName": "Rate Matters",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "18",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:PublicUtilitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:PublicUtilitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R19": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxes",
     "longName": "100220 - Disclosure - Income Taxes",
     "shortName": "Income Taxes",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "19",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R20": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefits",
     "longName": "100230 - Disclosure - Pension Plans and Other Postretirement Benefits",
     "shortName": "Pension Plans and Other Postretirement Benefits",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "20",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R21": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_ShareBasedCompensation",
     "longName": "100240 - Disclosure - Share-Based Compensation",
     "shortName": "Share-Based Compensation",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "21",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R22": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCredit",
     "longName": "100250 - Disclosure - Notes Payable to Banks, Commercial Paper, and Lines of Credit",
     "shortName": "Notes Payable to Banks, Commercial Paper, and Lines of Credit",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "22",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ShortTermDebtTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ShortTermDebtTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R23": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebt",
     "longName": "100260 - Disclosure - Long-Term Debt",
     "shortName": "Long-Term Debt",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "23",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:LongTermDebtTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:LongTermDebtTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R24": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquity",
     "longName": "100270 - Disclosure - Common Equity",
     "shortName": "Common Equity",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "24",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R25": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingencies",
     "longName": "100280 - Disclosure - Commitments and Contingencies",
     "shortName": "Commitments and Contingencies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "25",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:CommitmentsContingenciesAndGuaranteesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:CommitmentsContingenciesAndGuaranteesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R26": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligations",
     "longName": "100290 - Disclosure - Asset Retirement Obligations",
     "shortName": "Asset Retirement Obligations",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "26",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:AssetRetirementObligationDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:AssetRetirementObligationDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R27": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstruments",
     "longName": "100300 - Disclosure - Derivative and Hedging Instruments",
     "shortName": "Derivative and Hedging Instruments",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "27",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R28": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstruments",
     "longName": "100310 - Disclosure - Fair Value of Financial Instruments",
     "shortName": "Fair Value of Financial Instruments",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "28",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R29": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_Revenue",
     "longName": "100320 - Disclosure - Revenue",
     "shortName": "Revenue",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "29",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:RevenueFromContractWithCustomerTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:RevenueFromContractWithCustomerTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R30": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterest",
     "longName": "100330 - Disclosure - Noncontrolling Interest",
     "shortName": "Noncontrolling Interest",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "30",
     "firstAnchor": {
      "contextRef": "C_bbf7796d-3802-4ce6-9d2b-cabc25aea1dd",
      "name": "us-gaap:MinorityInterestDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_bbf7796d-3802-4ce6-9d2b-cabc25aea1dd",
      "name": "us-gaap:MinorityInterestDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R31": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_DisclosureSegmentInformation",
     "longName": "100340 - Disclosure - Segment Information",
     "shortName": "Segment Information",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "31",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R32": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_DisclosureCondensedParentCompanyFinancialStatements",
     "longName": "100360 - Disclosure - Condensed Parent Company Financial Statements",
     "shortName": "Condensed Parent Company Financial Statements",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Notes",
     "order": "32",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R33": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_DisclosureValuationAndQualifyingAccounts",
     "longName": "100380 - Disclosure - Valuation and Qualifying Accounts",
     "shortName": "Valuation and Qualifying Accounts",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "33",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "srt:ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "srt:ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R34": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies",
     "longName": "100390 - Disclosure - Significant Accounting Policies (Policies)",
     "shortName": "Significant Accounting Policies (Policies)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "policies",
     "menuCat": "Policies",
     "order": "34",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R35": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesTables",
     "longName": "100400 - Disclosure - Summary of Significant Accounting Policies (Tables)",
     "shortName": "Summary of Significant Accounting Policies (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "35",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "mgee:Cashcashequivalentsandrestrictedcashtabletextblock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "mgee:Cashcashequivalentsandrestrictedcashtabletextblock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R36": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesTables",
     "longName": "100410 - Disclosure - Variable Interest Entities (Tables)",
     "shortName": "Variable Interest Entities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "36",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfVariableInterestEntitiesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfVariableInterestEntitiesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R37": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentTables",
     "longName": "100420 - Disclosure - Property, Plant, and Equipment (Tables)",
     "shortName": "Property, Plant, and Equipment (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "37",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R38": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesTables",
     "longName": "100430 - Disclosure - Leases (Tables)",
     "shortName": "Leases (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "38",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:LeaseCostTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:LeaseCostTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R39": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipTables",
     "longName": "100440 - Disclosure - Joint Plant Ownership (Tables)",
     "shortName": "Joint Plant Ownership (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "39",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfJointlyOwnedUtilityPlantsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfJointlyOwnedUtilityPlantsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R40": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsTables",
     "longName": "100450 - Disclosure - Investments (Tables)",
     "shortName": "Investments (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "40",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "mgee:EquityMethodAndOtherInvestmentsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "mgee:EquityMethodAndOtherInvestmentsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R41": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_RegulatoryAssetsAndLiabilitiesTables",
     "longName": "100460 - Disclosure - Regulatory Assets and Liabilities (Tables)",
     "shortName": "Regulatory Assets and Liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "41",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "mgee:ScheduleOfRegulatoryAssetsAndLiabilitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "mgee:ScheduleOfRegulatoryAssetsAndLiabilitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R42": {
     "role": "http://www.mge.com/20231231/taxonomy/role/DisclosureRateMattersTables",
     "longName": "100470 - Disclosure - Rate Matters (Tables)",
     "shortName": "Rate Matters (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "42",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:PublicUtilitiesGeneralDisclosuresTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:PublicUtilitiesGeneralDisclosuresTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R43": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesTables",
     "longName": "100480 - Disclosure - Income Taxes (Tables)",
     "shortName": "Income Taxes (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "43",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R44": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables",
     "longName": "100490 - Disclosure - Pension Plans and Other Postretirement Benefits (Tables)",
     "shortName": "Pension Plans and Other Postretirement Benefits (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "44",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ChangesInProjectedBenefitObligationsFairValueOfPlanAssetsAndFundedStatusOfPlanTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ChangesInProjectedBenefitObligationsFairValueOfPlanAssetsAndFundedStatusOfPlanTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R45": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_ShareBasedCompensationTables",
     "longName": "100500 - Disclosure - Share-Based Compensation (Tables)",
     "shortName": "Share-Based Compensation (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "45",
     "firstAnchor": {
      "contextRef": "C_6f1fc936-051b-4b06-8bb0-58a9987d71ca",
      "name": "us-gaap:DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_6f1fc936-051b-4b06-8bb0-58a9987d71ca",
      "name": "us-gaap:DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R46": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditTables",
     "longName": "100510 - Disclosure - Notes Payable to Banks, Commercial Paper, and Lines of Credit (Tables)",
     "shortName": "Notes Payable to Banks, Commercial Paper, and Lines of Credit (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "46",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfShortTermDebtTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfShortTermDebtTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R47": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtTables",
     "longName": "100520 - Disclosure - Long-Term Debt (Tables)",
     "shortName": "Long-Term Debt (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "47",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R48": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesTables",
     "longName": "100530 - Disclosure - Commitments and Contingencies (Tables)",
     "shortName": "Commitments and Contingencies (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "48",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "srt:ContractualObligationFiscalYearMaturityScheduleTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "srt:ContractualObligationFiscalYearMaturityScheduleTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R49": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsTables",
     "longName": "100540 - Disclosure - Asset Retirement Obligations (Tables)",
     "shortName": "Asset Retirement Obligations (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "49",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfChangeInAssetRetirementObligationTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfChangeInAssetRetirementObligationTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R50": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsTables",
     "longName": "100550 - Disclosure - Derivative and Hedging Instruments (Tables)",
     "shortName": "Derivative and Hedging Instruments (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "50",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R51": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsTables",
     "longName": "100560 - Disclosure - Fair Value of Financial Instruments (Tables)",
     "shortName": "Fair Value of Financial Instruments (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "51",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R52": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueTables",
     "longName": "100570 - Disclosure - Revenue (Tables)",
     "shortName": "Revenue (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "52",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:DisaggregationOfRevenueTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:DisaggregationOfRevenueTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R53": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestTables",
     "longName": "100580 - Disclosure - Noncontrolling Interest (Tables)",
     "shortName": "Noncontrolling Interest (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "53",
     "firstAnchor": {
      "contextRef": "C_bbf7796d-3802-4ce6-9d2b-cabc25aea1dd",
      "name": "mgee:NoncontrollingInterestBalanceSheetTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_bbf7796d-3802-4ce6-9d2b-cabc25aea1dd",
      "name": "mgee:NoncontrollingInterestBalanceSheetTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R54": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationTables",
     "longName": "100590 - Disclosure - Segment Information (Tables)",
     "shortName": "Segment Information (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "54",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R55": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
     "longName": "100600 - Disclosure - Summary of Significant Accounting Policies (Details-1)",
     "shortName": "Summary of Significant Accounting Policies (Details-1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "55",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "mgee:AccountsReceivableLatePaymentChargeOnUnpaidReceivables",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "mgee:AccountsReceivableLatePaymentChargeOnUnpaidReceivables",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R56": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2",
     "longName": "100610 - Disclosure - Summary of Significant Accounting Policies (Details-2)",
     "shortName": "Summary of Significant Accounting Policies (Details-2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "56",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:RestrictedCashAndCashEquivalentsAtCarryingValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:Cashcashequivalentsandrestrictedcashtabletextblock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R57": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails",
     "longName": "100630 - Disclosure - Variable Interest Entities (Details)",
     "shortName": "Variable Interest Entities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "57",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "mgee:PropertyPlantAndEquipmentNetBeforeConstructionInProgress",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ecb6e4c8-1d02-4253-9845-ca7432656974",
      "name": "mgee:PropertyPlantAndEquipmentNetBeforeConstructionInProgress",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfVariableInterestEntitiesTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R58": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
     "longName": "100640 - Disclosure - Property, Plant, and Equipment (Details)",
     "shortName": "Property, Plant, and Equipment (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "58",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:PublicUtilitiesPropertyPlantAndEquipmentPresentValueOfRegulatedAssetForPlantAbandonment",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_bf00f600-0849-4cdf-98f7-cdb309b64214",
      "name": "us-gaap:PublicUtilitiesPropertyPlantAndEquipmentAmountOfLossRecoveryOnPlantAbandonment",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "div",
       "ix:continuation",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R59": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails1",
     "longName": "100650 - Disclosure - Leases (Details-1)",
     "shortName": "Leases (Details-1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "59",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:FinanceLeaseRightOfUseAssetAmortization",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LeaseCostTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:FinanceLeaseRightOfUseAssetAmortization",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LeaseCostTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R60": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2",
     "longName": "100660 - Disclosure - Leases (Details-2)",
     "shortName": "Leases (Details-2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "60",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:FinanceLeaseRightOfUseAsset",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:LeaseBalanceSheetTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:FinanceLeaseRightOfUseAsset",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:LeaseBalanceSheetTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R61": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails3",
     "longName": "100670 - Disclosure - Leases (Details-3)",
     "shortName": "Leases (Details-3)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "61",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:FinanceLeasePrincipalPayments",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:OtherFinancialInformationTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:FinanceLeasePrincipalPayments",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:OtherFinancialInformationTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R62": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails4",
     "longName": "100680 - Disclosure - Leases (Details-4)",
     "shortName": "Leases (Details-4)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "62",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:FinanceLeaseWeightedAverageRemainingLeaseTerm1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:WeightedAverageAndDiscountRateTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:FinanceLeaseWeightedAverageRemainingLeaseTerm1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:WeightedAverageAndDiscountRateTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R63": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5",
     "longName": "100690 - Disclosure - Leases (Details-5)",
     "shortName": "Leases (Details-5)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "63",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:FinanceLeaseLiabilityPaymentsDueNextTwelveMonths",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "us-gaap:FinanceLeaseLiabilityMaturityTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:FinanceLeaseLiabilityPaymentsDueNextTwelveMonths",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "us-gaap:FinanceLeaseLiabilityMaturityTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R64": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
     "longName": "100700 - Disclosure - Joint Plant Ownership (Details)",
     "shortName": "Joint Plant Ownership (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "64",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:PublicUtilitiesPropertyPlantAndEquipmentPresentValueOfRegulatedAssetForPlantAbandonment",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1ef95951-3f1b-4989-a278-7a9ac2b8a613",
      "name": "us-gaap:JointlyOwnedUtilityPlantGrossOwnershipAmountOfPlantInService",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfJointlyOwnedUtilityPlantsTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R65": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1",
     "longName": "100710 - Disclosure - Investments (Details-1)",
     "shortName": "Investments (Details-1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "65",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:EquitySecuritiesFvNiAndWithoutReadilyDeterminableFairValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:EquityMethodAndOtherInvestmentsTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:EquitySecuritiesFvNiAndWithoutReadilyDeterminableFairValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:EquityMethodAndOtherInvestmentsTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R66": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
     "longName": "100720 - Disclosure - Investments (Details-2)",
     "shortName": "Investments (Details-2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "66",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:IncomeLossFromEquityMethodInvestments",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_26a51080-6937-47ea-9edf-bee6ebe44cf4",
      "name": "us-gaap:IncomeLossFromEquityMethodInvestments",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R67": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3",
     "longName": "100730 - Disclosure - Investments (Details-3)",
     "shortName": "Investments (Details-3)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "67",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:AssetsCurrent",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_857d74a3-6b6c-4f08-8df2-929203240c97",
      "name": "us-gaap:Revenues",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R68": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails4",
     "longName": "100740 - Disclosure - Investments (Details-4)",
     "shortName": "Investments (Details-4)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "68",
     "firstAnchor": {
      "contextRef": "C_eecf4105-8696-44d9-968e-04840319f85a",
      "name": "us-gaap:OperatingCostsAndExpenses",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "ix:continuation",
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eecf4105-8696-44d9-968e-04840319f85a",
      "name": "us-gaap:OperatingCostsAndExpenses",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "ix:continuation",
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R69": {
     "role": "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
     "longName": "100750 - Disclosure - Regulatory Assets and Liabilities - Regulatory Assets (Details-1)",
     "shortName": "Regulatory Assets and Liabilities - Regulatory Assets (Details-1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "69",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:RegulatoryAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:ScheduleOfRegulatoryAssetsAndLiabilitiesTableTextBlock",
       "div",
       "us-gaap:ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:RegulatoryAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:ScheduleOfRegulatoryAssetsAndLiabilitiesTableTextBlock",
       "div",
       "us-gaap:ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R70": {
     "role": "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2",
     "longName": "100760 - Disclosure - Regulatory Assets and Liabilities - Regulatory Liabilities (Details-2)",
     "shortName": "Regulatory Assets and Liabilities - Regulatory Liabilities (Details-2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "70",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:RegulatoryLiabilities",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:ScheduleOfRegulatoryAssetsAndLiabilitiesTableTextBlock",
       "div",
       "us-gaap:ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:RegulatoryLiabilities",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:ScheduleOfRegulatoryAssetsAndLiabilitiesTableTextBlock",
       "div",
       "us-gaap:ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R71": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
     "longName": "100770 - Disclosure - Rate Matters (Details)",
     "shortName": "Rate Matters (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "71",
     "firstAnchor": {
      "contextRef": "C_8c387fc4-dafb-4559-a158-9c583ea63e9f",
      "name": "mgee:PublicUtilitiesReturnOfFuelRulesCredit",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_8c387fc4-dafb-4559-a158-9c583ea63e9f",
      "name": "mgee:PublicUtilitiesReturnOfFuelRulesCredit",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R72": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails",
     "longName": "100780 - Disclosure - Income Taxes (Details)",
     "shortName": "Income Taxes (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "72",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:CurrentFederalTaxExpenseBenefit",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:CurrentFederalTaxExpenseBenefit",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R73": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
     "longName": "100790 - Disclosure - Pension Plans and Other Postretirement Benefits (Details-1)",
     "shortName": "Pension Plans and Other Postretirement Benefits (Details-1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "73",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:DefinedContributionPlanCostRecognized",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:DefinedContributionPlanCostRecognized",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R74": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2",
     "longName": "100800 - Disclosure - Pension Plans and Other Postretirement Benefits (Details-2)",
     "shortName": "Pension Plans and Other Postretirement Benefits (Details-2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "74",
     "firstAnchor": {
      "contextRef": "C_96e62f10-a2cb-44a5-b144-34a969435d7a",
      "name": "us-gaap:DefinedBenefitPlanServiceCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ChangesInProjectedBenefitObligationsFairValueOfPlanAssetsAndFundedStatusOfPlanTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_96e62f10-a2cb-44a5-b144-34a969435d7a",
      "name": "us-gaap:DefinedBenefitPlanExpectedReturnOnPlanAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R75": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3",
     "longName": "100810 - Disclosure - Pension Plans and Other Postretirement Benefits (Details-3)",
     "shortName": "Pension Plans and Other Postretirement Benefits (Details-3)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "75",
     "firstAnchor": {
      "contextRef": "C_cc307f31-57fa-4c1d-a332-a8714307d9ce",
      "name": "us-gaap:DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAssumptionsUsedTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_cc307f31-57fa-4c1d-a332-a8714307d9ce",
      "name": "us-gaap:DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAssumptionsUsedTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R76": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
     "longName": "100820 - Disclosure - Pension Plans and Other Postretirement Benefits (Details-4)",
     "shortName": "Pension Plans and Other Postretirement Benefits (Details-4)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "76",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:DefinedBenefitPlanFairValueOfPlanAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_cc307f31-57fa-4c1d-a332-a8714307d9ce",
      "name": "us-gaap:DefinedBenefitPlanPlanAssetsTargetAllocationPercentage",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAllocationOfPlanAssetsTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R77": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5",
     "longName": "100830 - Disclosure - Pension Plans and Other Postretirement Benefits (Details-5)",
     "shortName": "Pension Plans and Other Postretirement Benefits (Details-5)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "77",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:DefinedBenefitPlanFairValueOfPlanAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_e1fa647f-9d43-4d19-820d-e2818cb17532",
      "name": "us-gaap:DefinedBenefitPlanFairValueOfPlanAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R78": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6",
     "longName": "100840 - Disclosure - Pension Plans and Other Postretirement Benefits (Details-6)",
     "shortName": "Pension Plans and Other Postretirement Benefits (Details-6)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "78",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R79": {
     "role": "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
     "longName": "100850 - Disclosure - Share-Based Compensation (Details)",
     "shortName": "Share-Based Compensation (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "79",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R80": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
     "longName": "100860 - Disclosure - Notes Payable to Banks, Commercial Paper, and Lines of Credit (Details)",
     "shortName": "Notes Payable to Banks, Commercial Paper, and Lines of Credit (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "80",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:LineOfCredit",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "us-gaap:ScheduleOfShortTermDebtTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:LettersOfCreditOutstandingAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShortTermDebtTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R81": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
     "longName": "100870 - Disclosure - Long-Term Debt (Details-1)",
     "shortName": "Long-Term Debt (Details-1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "81",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:LongTermDebtCurrent",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_929b3d9e-ad38-4f91-956e-74e5dae91415",
      "name": "us-gaap:DebtInstrumentCarryingAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R82": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails2",
     "longName": "100880 - Disclosure - Long-Term Debt (Details-2)",
     "shortName": "Long-Term Debt (Details-2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "82",
     "firstAnchor": {
      "contextRef": "C_00abf9ca-1491-45b5-ba2b-4923c2732f9d",
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_00abf9ca-1491-45b5-ba2b-4923c2732f9d",
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R83": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquityDetails",
     "longName": "100890 - Disclosure - Common Equity (Details)",
     "shortName": "Common Equity (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "83",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:DividendsCommonStockCash",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "mgee:StockIssuedDuringPeriodUnderTheStockPlan",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R84": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
     "longName": "100900 - Disclosure - Commitments and Contingencies (Details-1)",
     "shortName": "Commitments and Contingencies (Details-1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "84",
     "firstAnchor": {
      "contextRef": "C_1ef95951-3f1b-4989-a278-7a9ac2b8a613",
      "name": "mgee:ProjectedCostsForEnvironmentalRegulation",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1ef95951-3f1b-4989-a278-7a9ac2b8a613",
      "name": "mgee:ProjectedCostsForEnvironmentalRegulation",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R85": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2",
     "longName": "100910 - Disclosure - Commitments and Contingencies (Details-2)",
     "shortName": "Commitments and Contingencies (Details-2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "85",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:PurchaseObligationDueInNextTwelveMonths",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "srt:ContractualObligationFiscalYearMaturityScheduleTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:PurchaseObligationDueInNextTwelveMonths",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "srt:ContractualObligationFiscalYearMaturityScheduleTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R86": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3",
     "longName": "100920 - Disclosure - Commitments and Contingencies (Details-3)",
     "shortName": "Commitments and Contingencies (Details-3)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "86",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:OtherCommitmentDueInNextTwelveMonths",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:OtherCommitmentsTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:OtherCommitmentDueInNextTwelveMonths",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:OtherCommitmentsTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R87": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
     "longName": "100930 - Disclosure - Asset Retirement Obligations (Details)",
     "shortName": "Asset Retirement Obligations (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "87",
     "firstAnchor": {
      "contextRef": "C_00abf9ca-1491-45b5-ba2b-4923c2732f9d",
      "name": "us-gaap:AssetRetirementObligation",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfChangeInAssetRetirementObligationTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_2991dcdd-06a4-4652-8644-a1ad4aaa8b83",
      "name": "us-gaap:AssetRetirementObligation",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfChangeInAssetRetirementObligationTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R88": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
     "longName": "100940 - Disclosure - Derivative and Hedging Instruments (Details-1)",
     "shortName": "Derivative and Hedging Instruments (Details-1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "88",
     "firstAnchor": {
      "contextRef": "C_0e3a74aa-d1ab-4e4e-b470-2b90eb2d77db",
      "name": "us-gaap:DerivativeFairValueOfDerivativeNet",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPositionTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_26eda558-3d5f-4f1a-8bc7-4c6c4451d000",
      "name": "us-gaap:DerivativeFairValueOfDerivativeNet",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R89": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
     "longName": "100950 - Disclosure - Derivative and Hedging Instruments (Details-2)",
     "shortName": "Derivative and Hedging Instruments (Details-2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "89",
     "firstAnchor": {
      "contextRef": "C_243113e7-5dcf-49cf-85c6-53c4a3bb655e",
      "name": "us-gaap:DerivativeFairValueOfDerivativeAsset",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:OffsettingAssetsTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_243113e7-5dcf-49cf-85c6-53c4a3bb655e",
      "name": "us-gaap:DerivativeAssetFairValueGrossLiability",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:OffsettingAssetsTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R90": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
     "longName": "100960 - Disclosure - Derivative and Hedging Instruments (Details-3)",
     "shortName": "Derivative and Hedging Instruments (Details-3)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "90",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:DerivativeLiabilityCollateralRightToReclaimCashOffset",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_243113e7-5dcf-49cf-85c6-53c4a3bb655e",
      "name": "us-gaap:DerivativeLiabilityFairValueGrossAsset",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:OffsettingLiabilitiesTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R91": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4",
     "longName": "100970 - Disclosure - Derivative and Hedging Instruments (Details-4)",
     "shortName": "Derivative and Hedging Instruments (Details-4)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "91",
     "firstAnchor": {
      "contextRef": "C_ef387fd7-caba-4ce7-b171-c79ada8f6f4a",
      "name": "us-gaap:DerivativeFairValueOfDerivativeNet",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPositionTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_76510e22-7faa-4c4c-89d1-aa826745ec66",
      "name": "us-gaap:DerivativeFairValueOfDerivativeNet",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPositionTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R92": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5",
     "longName": "100980 - Disclosure - Derivative and Hedging Instruments (Details-5)",
     "shortName": "Derivative and Hedging Instruments (Details-5)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "92",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:DerivativeNetLiabilityPositionAggregateFairValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:DerivativeNetLiabilityPositionAggregateFairValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R93": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1",
     "longName": "100990 - Disclosure - Fair Value of Financial Instruments (Details-1)",
     "shortName": "Fair Value of Financial Instruments (Details-1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "93",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d565d435-a80c-48a1-b9ec-15bab2459174",
      "name": "us-gaap:LongTermDebtFairValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R94": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2",
     "longName": "101000 - Disclosure - Fair Value of Financial Instruments (Details-2)",
     "shortName": "Fair Value of Financial Instruments (Details-2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "94",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:DerivativeLiabilityCollateralRightToReclaimCashOffset",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9ac02bf7-996d-4c81-8c16-ea6eb4856bc6",
      "name": "us-gaap:DerivativeAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R95": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3",
     "longName": "101010 - Disclosure - Fair Value of Financial Instruments (Details-3)",
     "shortName": "Fair Value of Financial Instruments (Details-3)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "95",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "mgee:DeferredCompensationArrangementWithIndividualInvestmentInterestCalculationInvestmentMaturityPeriod",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "mgee:DeferredCompensationArrangementWithIndividualInvestmentInterestCalculationInvestmentMaturityPeriod",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R96": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4",
     "longName": "101020 - Disclosure - Fair Value of Financial Instruments (Details-4)",
     "shortName": "Fair Value of Financial Instruments (Details-4)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "96",
     "firstAnchor": {
      "contextRef": "C_00abf9ca-1491-45b5-ba2b-4923c2732f9d",
      "name": "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_c5be608e-4c51-4b22-a512-3bf2864ffe5d",
      "name": "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R97": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5",
     "longName": "101030 - Disclosure - Fair Value of Financial Instruments (Details-5)",
     "shortName": "Fair Value of Financial Instruments (Details-5)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "97",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R98": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1",
     "longName": "101040 - Disclosure - Revenue (Details-1)",
     "shortName": "Revenue (Details-1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "98",
     "firstAnchor": {
      "contextRef": "C_5e8107c8-c75e-4a42-b8d4-c88a63d75928",
      "name": "us-gaap:RevenueFromContractWithCustomerIncludingAssessedTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:DisaggregationOfRevenueTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_5e8107c8-c75e-4a42-b8d4-c88a63d75928",
      "name": "us-gaap:RevenueFromContractWithCustomerIncludingAssessedTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:DisaggregationOfRevenueTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R99": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
     "longName": "101050 - Disclosure - Noncontrolling Interest (Details)",
     "shortName": "Noncontrolling Interest (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "99",
     "firstAnchor": {
      "contextRef": "C_69bf259b-3afb-418a-9008-86e60001a9ac",
      "name": "us-gaap:MinorityInterestOwnershipPercentageByParent",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "mgee:NoncontrollingInterestNetIncomeTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_69bf259b-3afb-418a-9008-86e60001a9ac",
      "name": "us-gaap:MinorityInterestOwnershipPercentageByParent",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "mgee:NoncontrollingInterestNetIncomeTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R100": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails",
     "longName": "101060 - Disclosure - Segment Information (Details)",
     "shortName": "Segment Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "100",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:RegulatedAndUnregulatedOperatingRevenue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:SegmentExpenditureAdditionToLongLivedAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R101": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
     "longName": "101080 - Disclosure - Schedule I - Condensed Parent Company Finanical Statements (Details-Comprehensive Income Statement)",
     "shortName": "Schedule I - Condensed Parent Company Finanical Statements (Details-Comprehensive Income Statement)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "101",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:UtilitiesOperatingExpenseMaintenanceAndOperations",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ac5cdbab-8fa4-4dd8-bf1b-d5a35f582c93",
      "name": "us-gaap:UtilitiesOperatingExpenseMaintenanceAndOperations",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R102": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement",
     "longName": "101100 - Disclosure - Schedule I - Condensed Parent Company Finanical Statements (Details-Cash Flow Statement)",
     "shortName": "Schedule I - Condensed Parent Company Finanical Statements (Details-Cash Flow Statement)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "102",
     "firstAnchor": {
      "contextRef": "C_0296d845-017f-4735-a126-e2733bfa0bfe",
      "name": "us-gaap:NetCashProvidedByUsedInOperatingActivities",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ac5cdbab-8fa4-4dd8-bf1b-d5a35f582c93",
      "name": "us-gaap:NetCashProvidedByUsedInOperatingActivities",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R103": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet",
     "longName": "101110 - Disclosure - Schedule I - Condensed Parent Company Finanical Statements (Details-Balance Sheet)",
     "shortName": "Schedule I - Condensed Parent Company Finanical Statements (Details-Balance Sheet)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "103",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_33cd80f3-cec1-40a9-9f8d-016530819c20",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    },
    "R104": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1",
     "longName": "101120 - Disclosure - Schedule I - Condensed Parent Company Finanical Statements (Details-Notes 1)",
     "shortName": "Schedule I - Condensed Parent Company Finanical Statements (Details-Notes 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "104",
     "firstAnchor": {
      "contextRef": "C_1f6af710-9163-4a13-836e-9ca324c78104",
      "name": "us-gaap:LineOfCredit",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "us-gaap:ScheduleOfShortTermDebtTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R105": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
     "longName": "101130 - Disclosure - Schedule I - Condensed Parent Company Finanical Statements (Details-Notes 2)",
     "shortName": "Schedule I - Condensed Parent Company Finanical Statements (Details-Notes 2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "105",
     "firstAnchor": {
      "contextRef": "C_ac5cdbab-8fa4-4dd8-bf1b-d5a35f582c93",
      "name": "us-gaap:CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ac5cdbab-8fa4-4dd8-bf1b-d5a35f582c93",
      "name": "us-gaap:CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R106": {
     "role": "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails",
     "longName": "101140 - Disclosure - Schedule II - Valuation and Qualifying Accounts (Details)",
     "shortName": "Schedule II - Valuation and Qualifying Accounts (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "106",
     "firstAnchor": {
      "contextRef": "C_00abf9ca-1491-45b5-ba2b-4923c2732f9d",
      "name": "us-gaap:ValuationAllowancesAndReservesBalance",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "srt:ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_c5be608e-4c51-4b22-a512-3bf2864ffe5d",
      "name": "us-gaap:ValuationAllowancesAndReservesBalance",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "srt:ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mgee-20231231.htm",
      "unique": true
     }
    }
   },
   "tag": {
    "us-gaap_AccountingChangesAndErrorCorrectionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountingChangesAndErrorCorrectionsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Changes and Error Corrections [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountingPoliciesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_AccountingPoliciesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "AccountingPoliciesLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_AccountingPoliciesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "AccountingPoliciesTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountingStandardsUpdate201602Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountingStandardsUpdate201602Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update 2016-02 [Member]",
        "documentation": "Accounting Standards Update 2016-02 Leases (Topic 842)."
       }
      }
     },
     "auth_ref": [
      "r830"
     ]
    },
    "mgee_Accountingstandardsupdate201707memberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Accountingstandardsupdate201707memberMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update 2017-07 - Compensation - Retirement Benefits [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountsPayableAndAccruedLiabilitiesNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountsPayableAndAccruedLiabilitiesNoncurrent",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts payable to affiliates",
        "label": "Accounts Payable and Accrued Liabilities, Noncurrent",
        "totalLabel": "Accounts Payable and Accrued Liabilities, Noncurrent, Total",
        "documentation": "Sum of the carrying values as of the balance sheet date of obligations incurred through that date and due after one year (or beyond the operating cycle if longer), including liabilities for compensation costs, fringe benefits other than pension and postretirement obligations, rent, contractual rights and obligations, and statutory obligations."
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "us-gaap_AccountsPayableCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountsPayableCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Accounts payable to affiliates, current",
        "terseLabel": "Accounts payable",
        "totalLabel": "Accounts Payable, Current, Total",
        "label": "Accounts Payable, Current",
        "documentation": "Carrying value as of the balance sheet date of liabilities incurred (and for which invoices have typically been received) and payable to vendors for goods and services received that are used in an entity's business. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer)."
       }
      }
     },
     "auth_ref": [
      "r43",
      "r1159"
     ]
    },
    "mgee_AccountsReceivableLatePaymentChargeOnUnpaidReceivables": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "AccountsReceivableLatePaymentChargeOnUnpaidReceivables",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Late payment charge recorded on all receivables that remain unpaid after due date.",
        "terseLabel": "Late payment charge on upaid receivables",
        "label": "Accounts Receivable, Late Payment Charge on Unpaid Receivables"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_AccountsReceivableLatePaymentChargeOnUnpaidReceivablesSuspended": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "AccountsReceivableLatePaymentChargeOnUnpaidReceivablesSuspended",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts Receivable, Late Payment Charge on Unpaid Receivables Suspended",
        "terseLabel": "Late payment charge on unpaid receivables - suspended",
        "documentation": "Late payment charge recorded on all receivables that remain unpaid after due date, suspended in response to PSCW's COVID-19 Order."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountsReceivableNetCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountsReceivableNetCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Accounts Receivable, after Allowance for Credit Loss, Current, Total",
        "label": "Accounts Receivable, after Allowance for Credit Loss, Current",
        "terseLabel": "Accounts receivable, less reserves",
        "documentation": "Amount, after allowance for credit loss, of right to consideration from customer for product sold and service rendered in normal course of business, classified as current."
       }
      }
     },
     "auth_ref": [
      "r430",
      "r431"
     ]
    },
    "us-gaap_AccruedIncomeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccruedIncomeTaxes",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Accrued Income Taxes, Total",
        "label": "Accrued Income Taxes",
        "documentation": "Carrying amount as of the balance sheet date of the unpaid sum of the known and estimated amounts payable to satisfy all domestic and foreign income tax obligations due. This amount is the total of current and noncurrent accrued income taxes."
       }
      }
     },
     "auth_ref": [
      "r172",
      "r174",
      "r220",
      "r235",
      "r932"
     ]
    },
    "mgee_AccruedInterestAndTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "AccruedInterestAndTaxes",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued interest and accrued (prepaid) taxes",
        "documentation": "Carrying value as of the balance sheet date of accrued interest and accrued taxes.",
        "label": "Accrued interest and taxes"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccumulatedDeferredInvestmentTaxCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedDeferredInvestmentTaxCredit",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Deferred Investment Tax Credit",
        "terseLabel": "Investment tax credit - deferred",
        "documentation": "The noncurrent portion of the reserve for accumulated deferred investment tax credits as of the balance sheet date. This is the remaining investment credit, which will reduce the cost of services collected from ratepayers by a ratable portion over the investment's regulatory life."
       }
      }
     },
     "auth_ref": [
      "r53",
      "r1314"
     ]
    },
    "us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails": {
       "parentTag": "mgee_PropertyPlantAndEquipmentNetBeforeConstructionInProgress",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Ending Balance",
        "periodStartLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Beginning Balance",
        "totalLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Total",
        "label": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment",
        "terseLabel": "Less: Accumulated depreciation and amortization",
        "documentation": "Amount of accumulated depreciation, depletion and amortization for physical assets used in the normal conduct of business to produce goods and services."
       }
      }
     },
     "auth_ref": [
      "r86",
      "r301",
      "r940"
     ]
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AOCI Attributable to Parent [Member]",
        "terseLabel": "Accumulated Other Comprehensive (Loss)/ Income [Member]",
        "documentation": "Accumulated increase (decrease) in equity from transactions and other events and circumstances from non-owner sources, attributable to the parent. Excludes net income (loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners."
       }
      }
     },
     "auth_ref": [
      "r6",
      "r26",
      "r57",
      "r769",
      "r772",
      "r857",
      "r971",
      "r972",
      "r1226",
      "r1227",
      "r1228",
      "r1239",
      "r1240",
      "r1241"
     ]
    },
    "us-gaap_AdditionalPaidInCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdditionalPaidInCapital",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Additional Paid in Capital, Ending Balance",
        "periodStartLabel": "Additional Paid in Capital, Beginning Balance",
        "totalLabel": "Additional Paid in Capital, Total",
        "label": "Additional paid-in capital",
        "documentation": "Amount of excess of issue price over par or stated value of stock and from other transaction involving stock or stockholder. Includes, but is not limited to, additional paid-in capital (APIC) for common and preferred stock."
       }
      }
     },
     "auth_ref": [
      "r179",
      "r1159",
      "r1358"
     ]
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdditionalPaidInCapitalMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Paid-in Capital [Member]",
        "documentation": "Excess of issue price over par or stated value of the entity's capital stock and amounts received from other transactions involving the entity's stock or stockholders."
       }
      }
     },
     "auth_ref": [
      "r706",
      "r707",
      "r708",
      "r999",
      "r1239",
      "r1240",
      "r1241",
      "r1327",
      "r1359"
     ]
    },
    "us-gaap_AdjustmentForAmortizationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdjustmentForAmortizationAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortization [Abstract]",
        "terseLabel": "Amortization of:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AdjustmentsForNewAccountingPronouncementsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdjustmentsForNewAccountingPronouncementsAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update [Axis]",
        "documentation": "Information by amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r363",
      "r364",
      "r365",
      "r367",
      "r378",
      "r433",
      "r434",
      "r471",
      "r472",
      "r473",
      "r474",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r510",
      "r706",
      "r707",
      "r708",
      "r734",
      "r735",
      "r736",
      "r737",
      "r750",
      "r751",
      "r752",
      "r764",
      "r765",
      "r766",
      "r767",
      "r768",
      "r769",
      "r770",
      "r771",
      "r772",
      "r774",
      "r775",
      "r778",
      "r779",
      "r780",
      "r781",
      "r782",
      "r783",
      "r784",
      "r786",
      "r787",
      "r788",
      "r789",
      "r790",
      "r806",
      "r807",
      "r812",
      "r813",
      "r814",
      "r815",
      "r827",
      "r828",
      "r831",
      "r832",
      "r833",
      "r834",
      "r853",
      "r854",
      "r855",
      "r856",
      "r857",
      "r907",
      "r908",
      "r909",
      "r969",
      "r970",
      "r971",
      "r972",
      "r973",
      "r974",
      "r975",
      "r976",
      "r977",
      "r978",
      "r979",
      "r980"
     ]
    },
    "us-gaap_AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments, Noncash Items, to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "Items not affecting cash:"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_AdjustmentsToRevenuesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "AdjustmentsToRevenuesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments To Revenues [Member]",
        "documentation": "Adjustments to operating revenue."
       }
      }
     },
     "auth_ref": []
    },
    "srt_AffiliatedEntityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "AffiliatedEntityMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Affiliated Entity [Member]",
        "documentation": "An affiliate is a party that, directly or indirectly through one or more intermediaries, controls, is controlled by, or is under common control with the entity."
       }
      }
     },
     "auth_ref": [
      "r277",
      "r1041",
      "r1107",
      "r1165",
      "r1281",
      "r1338",
      "r1339",
      "r1340"
     ]
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllocatedShareBasedCompensationExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement, Expense",
        "terseLabel": "Compensation expense",
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized."
       }
      }
     },
     "auth_ref": [
      "r702",
      "r713"
     ]
    },
    "us-gaap_AllowanceForDoubtfulAccountsPremiumsAndOtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllowanceForDoubtfulAccountsPremiumsAndOtherReceivables",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Allowance for Doubtful Accounts, Premiums and Other Receivables",
        "terseLabel": "Reserve for uncollectible other accounts receivable",
        "documentation": "The valuation allowance as of the balance sheet date to reduce the gross amount of receivables to estimated net realizable value, which would be presented in parentheses on the face of the balance sheet."
       }
      }
     },
     "auth_ref": [
      "r1248"
     ]
    },
    "us-gaap_AllowanceForDoubtfulAccountsReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllowanceForDoubtfulAccountsReceivable",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Accounts Receivable, Allowance for Credit Loss, Ending Balance",
        "periodStartLabel": "Accounts Receivable, Allowance for Credit Loss, Beginning Balance",
        "label": "Accounts Receivable, Allowance for Credit Loss",
        "terseLabel": "Accounts receivable, allowance for credit loss",
        "documentation": "Amount of allowance for credit loss on accounts receivable."
       }
      }
     },
     "auth_ref": [
      "r311",
      "r432",
      "r483",
      "r486",
      "r489",
      "r1354"
     ]
    },
    "us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllowanceForDoubtfulAccountsReceivableCurrent",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts Receivable, Allowance for Credit Loss, Current",
        "terseLabel": "Reserve for uncollectible accounts receivable",
        "documentation": "Amount of allowance for credit loss on accounts receivable, classified as current."
       }
      }
     },
     "auth_ref": [
      "r311",
      "r432",
      "r483"
     ]
    },
    "us-gaap_AllowanceForDoubtfulAccountsReceivablePeriodIncreaseDecrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllowanceForDoubtfulAccountsReceivablePeriodIncreaseDecrease",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Accounts Receivable, Allowance for Credit Loss, Period Increase (Decrease), Total",
        "label": "Accounts Receivable, Allowance for Credit Loss, Period Increase (Decrease)",
        "terseLabel": "Accounts receivable, allowance for credit loss, period increase",
        "documentation": "Amount of increase (decrease) in allowance for credit loss on accounts receivable."
       }
      }
     },
     "auth_ref": [
      "r1262"
     ]
    },
    "us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllowanceForDoubtfulAccountsReceivableWriteOffs",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts Receivable, Allowance for Credit Loss, Writeoff",
        "terseLabel": "Accounts receivable, allowance for credit loss, writeoff",
        "documentation": "Amount of direct write-downs of accounts receivable charged against the allowance."
       }
      }
     },
     "auth_ref": [
      "r488"
     ]
    },
    "us-gaap_AllowanceForFundsUsedDuringConstructionPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllowanceForFundsUsedDuringConstructionPolicy",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Allowance for Funds Used During Construction",
        "label": "Allowance for Funds Used During Construction, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for AFUDC (for example, component of PPE, credit to income statement), information regarding the inclusion in rates (only capitalized if its inclusion in rates is probable) and description of AFUDC (for example, represents the cost of capital used during construction)."
       }
      }
     },
     "auth_ref": [
      "r158"
     ]
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Amountavailablefordividendpaymentswithoutregulatoryapproval": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Amountavailablefordividendpaymentswithoutregulatoryapproval",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amount Available for Dividend Payments without Regulatory Approval",
        "documentation": "This is the amount available for dividend payments without PSCW regulatory approval.",
        "terseLabel": "Amount available for dividend payments without regulatory approval"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetRetirementObligation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetRetirementObligation",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Asset Retirement Obligation, Total",
        "label": "Asset Retirement Obligation",
        "periodStartLabel": "Asset retirement obligation, beginning balance",
        "periodEndLabel": "Asset retirement obligation, ending balance",
        "documentation": "The carrying amount of a liability for an asset retirement obligation. An asset retirement obligation is a legal obligation associated with the disposal or retirement of a tangible long-lived asset that results from the acquisition, construction or development, or the normal operations of a long-lived asset, except for certain obligations of lessees."
       }
      }
     },
     "auth_ref": [
      "r512",
      "r515"
     ]
    },
    "us-gaap_AssetRetirementObligationAccretionExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetRetirementObligationAccretionExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset Retirement Obligation, Accretion Expense",
        "terseLabel": "Accretion expense",
        "negatedLabel": "Accretion expense",
        "documentation": "Amount of accretion expense recognized during the period that is associated with an asset retirement obligation. Accretion expense measures and incorporates changes due to the passage of time into the carrying amount of the liability."
       }
      }
     },
     "auth_ref": [
      "r513",
      "r518"
     ]
    },
    "us-gaap_AssetRetirementObligationCostsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetRetirementObligationCostsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset Retirement Obligation Costs [Member]",
        "terseLabel": "Asset Retirement Obligation [Member]",
        "documentation": "Rate action of a regulator resulting in capitalization or accrual of costs for the retirement of long-lived assets."
       }
      }
     },
     "auth_ref": [
      "r244",
      "r249"
     ]
    },
    "us-gaap_AssetRetirementObligationDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetRetirementObligationDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset Retirement Obligation Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetRetirementObligationDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetRetirementObligationDisclosureTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset Retirement Obligation Disclosure [Text Block]",
        "documentation": "The entire disclosure for an asset retirement obligation and the associated long-lived asset. An asset retirement obligation is a legal obligation associated with the disposal or retirement from service of a tangible long-lived asset that results from the acquisition, construction or development, or the normal operations of a long-lived asset, except for certain obligations of lessees."
       }
      }
     },
     "auth_ref": [
      "r262",
      "r511",
      "r514"
     ]
    },
    "us-gaap_AssetRetirementObligationLiabilitiesIncurred": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetRetirementObligationLiabilitiesIncurred",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset Retirement Obligation, Liabilities Incurred",
        "terseLabel": "Liabilities incurred",
        "negatedLabel": "Liabilities incurred",
        "documentation": "Amount of asset retirement obligations incurred during the period."
       }
      }
     },
     "auth_ref": [
      "r516"
     ]
    },
    "us-gaap_AssetRetirementObligationLiabilitiesSettled": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetRetirementObligationLiabilitiesSettled",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Liabilities settled",
        "label": "Asset Retirement Obligation, Liabilities Settled",
        "documentation": "Amount of asset retirement obligations settled, or otherwise disposed of, during the period. This may include asset retirement obligations transferred to third parties associated with the sale of a long-lived asset."
       }
      }
     },
     "auth_ref": [
      "r517"
     ]
    },
    "us-gaap_AssetRetirementObligationRevisionOfEstimate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetRetirementObligationRevisionOfEstimate",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Revisions in estimated cash flows",
        "label": "Asset Retirement Obligation, Revision of Estimate",
        "terseLabel": "Revisions in estimated cash flows",
        "documentation": "Amount of increase (decrease) in the asset retirement obligation from changes in the amount or timing of the estimated cash flows associated with the settlement of the obligation."
       }
      }
     },
     "auth_ref": [
      "r519"
     ]
    },
    "us-gaap_AssetRetirementObligationRollForwardAnalysisRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetRetirementObligationRollForwardAnalysisRollForward",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset Retirement Obligation, Roll Forward Analysis [Roll Forward]",
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetRetirementObligationsNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetRetirementObligationsNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset Retirement Obligations",
        "totalLabel": "Asset Retirement Obligations, Noncurrent, Total",
        "documentation": "Noncurrent portion of the carrying amount of a liability for an asset retirement obligation. An asset retirement obligation is a legal obligation associated with the disposal or retirement of a tangible long-lived asset that results from the acquisition, construction or development, or the normal operations of a long-lived asset, except for certain obligations of lessees."
       }
      }
     },
     "auth_ref": [
      "r1264"
     ]
    },
    "us-gaap_AssetRetirementObligationsPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetRetirementObligationsPolicy",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Asset Retirement Obligations",
        "label": "Asset Retirement Obligation [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for legal obligation associated with retirement of long-lived asset that results from acquisition, construction, or development or from normal operation of long-lived asset. Excludes environmental remediation liability from improper or other-than-normal operation of long-lived asset, obligation arising in connection with leased property that meets definition of lease payments or variable lease payments and from plan to sell or otherwise dispose of a long-lived asset."
       }
      }
     },
     "auth_ref": [
      "r511"
     ]
    },
    "us-gaap_Assets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Assets",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets",
        "totalLabel": "Total Assets",
        "terseLabel": "Assets",
        "documentation": "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."
       }
      }
     },
     "auth_ref": [
      "r232",
      "r303",
      "r342",
      "r395",
      "r416",
      "r422",
      "r470",
      "r527",
      "r528",
      "r530",
      "r531",
      "r532",
      "r534",
      "r536",
      "r538",
      "r539",
      "r754",
      "r758",
      "r811",
      "r931",
      "r1034",
      "r1159",
      "r1175",
      "r1270",
      "r1271",
      "r1341"
     ]
    },
    "us-gaap_AssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets [Abstract]",
        "terseLabel": "Equity method investment summarized assets [Abstract]",
        "verboseLabel": "ASSETS"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets, Current",
        "totalLabel": "Total Current Assets",
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are expected to be realized in cash, sold, or consumed within one year (or the normal operating cycle, if longer). Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events."
       }
      }
     },
     "auth_ref": [
      "r297",
      "r314",
      "r342",
      "r470",
      "r527",
      "r528",
      "r530",
      "r531",
      "r532",
      "r534",
      "r536",
      "r538",
      "r539",
      "r754",
      "r758",
      "r811",
      "r1159",
      "r1270",
      "r1271",
      "r1341"
     ]
    },
    "us-gaap_AssetsCurrentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsCurrentAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets, Current [Abstract]",
        "terseLabel": "Current Assets:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets, Fair Value Disclosure",
        "terseLabel": "Total Assets",
        "totalLabel": "Assets, Fair Value Disclosure, Total",
        "documentation": "Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events."
       }
      }
     },
     "auth_ref": [
      "r139"
     ]
    },
    "us-gaap_AssetsFairValueDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsFairValueDisclosureAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets, Fair Value Disclosure [Abstract]",
        "terseLabel": "Assets:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetsHeldForSaleNotPartOfDisposalGroupCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsHeldForSaleNotPartOfDisposalGroupCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Assets Held-for-sale, Not Part of Disposal Group, Current, Total",
        "label": "Asset, Held-for-Sale, Not Part of Disposal Group, Current",
        "terseLabel": "Assets held for sale",
        "documentation": "Amount of assets held-for-sale that are not part of a disposal group, expected to be sold within a year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r203",
      "r1159"
     ]
    },
    "us-gaap_AssetsNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsNoncurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets, Noncurrent",
        "totalLabel": "Total Noncurrent Assets",
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are expected to be realized in cash, sold or consumed after one year or beyond the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r342",
      "r470",
      "r527",
      "r528",
      "r530",
      "r531",
      "r532",
      "r534",
      "r536",
      "r538",
      "r539",
      "r754",
      "r758",
      "r811",
      "r1270",
      "r1271",
      "r1341"
     ]
    },
    "mgee_AssetsNotAllocatedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "AssetsNotAllocatedMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Assets not allocated member.",
        "label": "Assets Not Allocated [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repurchase Agreements and Similar Transactions, Maturity Periods [Domain]",
        "documentation": "Maturity period remaining for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements. Element name and standard label in Maturity [numeric lower end] to [numeric higher end] [date measure] [Member] or Maturity Greater Than [low end numeric value] [date measure] [Member] or Maturity Less Than [high end numeric value] [date measure] [Member] formats."
       }
      }
     },
     "auth_ref": [
      "r345",
      "r888"
     ]
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodsAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repurchase Agreements and Similar Transactions, Maturity Periods [Axis]",
        "documentation": "Information by maturity period remaining for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements. Element name and standard label in Maturity [numeric lower end] to [numeric higher end] [date measure] [Member] or Maturity Greater Than [low end numeric value] [date measure] [Member] or Maturity Less Than [high end numeric value] [date measure] [Member] formats."
       }
      }
     },
     "auth_ref": [
      "r345",
      "r888"
     ]
    },
    "mgee_AtcandatcholdcoequitymethodinvesteeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "AtcandatcholdcoequitymethodinvesteeMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ATC and ATC Holdco [Member]",
        "documentation": "ATC and ATC Holdco."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_AtcequitymethodinvesteememberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "AtcequitymethodinvesteememberMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ATC [Member]",
        "documentation": "ATC."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_AtcholdcoequitymethodinvesteeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "AtcholdcoequitymethodinvesteeMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ATC Holdco [Member]",
        "documentation": "ATC Holdco."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_AuditInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "AuditInformationAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Audit Information [Abstract]",
        "label": "Audit Information [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AuditorFirmId": {
     "xbrltype": "nonemptySequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorFirmId",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentAuditInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Firm ID",
        "documentation": "PCAOB issued Audit Firm Identifier"
       }
      }
     },
     "auth_ref": [
      "r1180",
      "r1181",
      "r1182"
     ]
    },
    "dei_AuditorLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentAuditInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AuditorLocation": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorLocation",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentAuditInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Location"
       }
      }
     },
     "auth_ref": [
      "r1180",
      "r1181",
      "r1182"
     ]
    },
    "dei_AuditorName": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorName",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentAuditInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Name"
       }
      }
     },
     "auth_ref": [
      "r1180",
      "r1181",
      "r1182"
     ]
    },
    "mgee_Availableforsalesecuritiesgrossunrealizedgainaccumulatedininvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Availableforsalesecuritiesgrossunrealizedgainaccumulatedininvestments",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available-for-sale Securities, Gross Unrealized Gain, Accumulated in Investments",
        "documentation": "Amount of accumulated pre-tax unrealized gains before deducting pre-tax unrealized losses on investments in available-for-sale securities impacting investments.",
        "negatedLabel": "Gross unrealized gains",
        "terseLabel": "Gross unrealized gains"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Availableforsalesecuritiesgrossunrealizedlossaccumulatedininvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Availableforsalesecuritiesgrossunrealizedlossaccumulatedininvestments",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available-for-sale Securities, Gross Unrealized Loss, Accumulated in Investments",
        "documentation": "Amount of accumulated pre-tax unrealized loss before deducting pre-tax unrealized gain on investments in available-for-sale securities impacting investments.",
        "negatedTerseLabel": "Gross unrealized losses",
        "terseLabel": "Gross unrealized losses"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AwardTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AwardTypeAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Award Type",
        "label": "Award Type [Axis]",
        "documentation": "Information by type of award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r673",
      "r674",
      "r675",
      "r677",
      "r678",
      "r679",
      "r680",
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r689",
      "r690",
      "r691",
      "r692",
      "r693",
      "r694",
      "r697",
      "r698",
      "r699",
      "r700",
      "r701"
     ]
    },
    "mgee_BadgerHollowIIUnitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "BadgerHollowIIUnitsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Badger Hollow II Units [Member]",
        "documentation": "Badger Hollow II units."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_BadgerHollowIUnitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "BadgerHollowIUnitsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Badger Hollow I Units [Member]",
        "documentation": "Badger Hollow I units."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_BadgerHollowIandIIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "BadgerHollowIandIIMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Badger Hollow I and II [Member]",
        "documentation": "Badger Hollow I and II solar farm."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_BadgerHollowMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "BadgerHollowMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Badger Hollow [Member]",
        "documentation": "Badger Hollow [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BalanceSheetLocationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BalanceSheetLocationAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Balance Sheet Location [Axis]",
        "documentation": "Information by location on balance sheet (statement of financial position)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BalanceSheetLocationDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Balance Sheet Location [Domain]",
        "documentation": "Location in the balance sheet (statement of financial position)."
       }
      }
     },
     "auth_ref": [
      "r125",
      "r130"
     ]
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basis of Accounting, Policy [Policy Text Block]",
        "terseLabel": "Basis of Presentation",
        "documentation": "Disclosure of accounting policy for basis of accounting, or basis of presentation, used to prepare the financial statements (for example, US Generally Accepted Accounting Principles, Other Comprehensive Basis of Accounting, IFRS)."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_CNGVehicleFuelServicing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CNGVehicleFuelServicing",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CNG Vehicle Fuel Servicing",
        "terseLabel": "CNG Vehicle Fuel Servicing Revenue",
        "documentation": "Revenue from CNG fuel servicing."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CapitalAdditionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalAdditionsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Renewable energy [Member]",
        "label": "Capital Addition Purchase Commitments [Member]",
        "documentation": "Contractual obligation to increase property, plant and equipment either through construction or future purchases."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CapitalExpendituresIncurredButNotYetPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalExpendituresIncurredButNotYetPaid",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital Expenditures Incurred but Not yet Paid",
        "terseLabel": "Accrued capital expenditures",
        "documentation": "Future cash outflow to pay for purchases of fixed assets that have occurred."
       }
      }
     },
     "auth_ref": [
      "r67",
      "r68",
      "r69"
     ]
    },
    "us-gaap_CapitalizationLongtermDebtAndEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalizationLongtermDebtAndEquity",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalization, Long-Term Debt and Equity",
        "totalLabel": "Total Capitalization",
        "documentation": "This element represents the total consolidated (as applicable) capitalization of the entity which is comprised of its long-term debt and equity instruments. The table may be detailed by subsidiary (legal entity) and include information by type of debt or equity detailed by instrument."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CapitalizationLongtermDebtAndEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalizationLongtermDebtAndEquityAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalization, Long-Term Debt and Equity [Abstract]",
        "terseLabel": "Shareholders' Equity",
        "verboseLabel": "Capitalization:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CapitalizedComputerSoftwareAccumulatedAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalizedComputerSoftwareAccumulatedAmortization",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalized Computer Software, Accumulated Amortization",
        "terseLabel": "Capitalized software - accumulated amortization",
        "documentation": "For each balance sheet presented, the amount of accumulated amortization for capitalized computer software costs."
       }
      }
     },
     "auth_ref": [
      "r1363"
     ]
    },
    "us-gaap_CapitalizedComputerSoftwareAmortization1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalizedComputerSoftwareAmortization1",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalized Computer Software, Amortization",
        "terseLabel": "Capitalized software - amortization",
        "documentation": "Amount of expense for amortization of capitalized computer software costs."
       }
      }
     },
     "auth_ref": [
      "r22",
      "r252"
     ]
    },
    "mgee_CapitalizedComputerSoftwareHostingAgreementAccumulatedAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CapitalizedComputerSoftwareHostingAgreementAccumulatedAmortization",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalized Computer Software Hosting Agreement Accumulated Amortization",
        "documentation": "The carrying amount of accumulated ammortization of capitalized computer software costs in a hosting arrangement as of the balance sheet date.",
        "terseLabel": "Capitalized software hosting agreement - accumulated amortization"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_CapitalizedComputerSoftwareHostingAgreementAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CapitalizedComputerSoftwareHostingAgreementAmortization",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalized Computer Software Hosting Agreement Amortization",
        "documentation": "For each income statement presented, the amount charged to expense for amortization of capitalized computer software costs in a hosting arrangement.",
        "terseLabel": "Capitalized software hosting agreement - amortization expense"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_CapitalizedComputerSoftwareHostingAgreementNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CapitalizedComputerSoftwareHostingAgreementNet",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalized Computer Software Hosting Agreement Net",
        "terseLabel": "Capitalized software hosting agreement",
        "documentation": "The carrying amount of capitalized computer software costs in a hosting arrangement as of the balance sheet date."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_CapitalizedComputerSoftwareHostingAgreementUsefulLife": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CapitalizedComputerSoftwareHostingAgreementUsefulLife",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalized Computer Software Hosting Agreement Useful Life",
        "terseLabel": "Capitalized software hosting agreement, useful life",
        "verboseLabel": "Capitalized Software Assets Hosting Agreements",
        "documentation": "Useful life of capitalized software assets in hosting agreements"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_CapitalizedComputerSoftwareHostingAgreementnetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CapitalizedComputerSoftwareHostingAgreementnetAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalized Computer Software Hosting Agreement Net [Abstract]",
        "terseLabel": "Capitalized Software Hosting Agreement Costs"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CapitalizedComputerSoftwareNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalizedComputerSoftwareNet",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Capitalized Computer Software, Net, Ending Balance",
        "periodStartLabel": "Capitalized Computer Software, Net, Beginning Balance",
        "totalLabel": "Capitalized Computer Software, Net, Total",
        "label": "Capitalized Computer Software, Net",
        "terseLabel": "Capitalized software",
        "documentation": "The carrying amount of capitalized computer software costs net of accumulated amortization as of the balance sheet date."
       }
      }
     },
     "auth_ref": [
      "r1110"
     ]
    },
    "us-gaap_CapitalizedComputerSoftwareNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalizedComputerSoftwareNetAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Capitalized Software Costs",
        "label": "Capitalized Computer Software, Net [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_CapitalizedSoftwareAssetsHostingArrangementsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CapitalizedSoftwareAssetsHostingArrangementsPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Capitalized Software Assets Hosting Arrangements",
        "documentation": "Disclosure of accounting policy for capitalized software assets in a hosting arragement.",
        "label": "Capitalized Software Assets Hosting Arrangements Policy [Text Block]",
        "verboseLabel": "Capitalized Software Assets Hosting Agreements"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CarryingReportedAmountFairValueDisclosureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CarryingReportedAmountFairValueDisclosureMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reported Value Measurement [Member]",
        "terseLabel": "Carrying Value [Member]",
        "documentation": "Measured as reported on the statement of financial position (balance sheet)."
       }
      }
     },
     "auth_ref": [
      "r142",
      "r143"
     ]
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Cash and Cash Equivalents, at Carrying Value, Total",
        "periodStartLabel": "Cash and cash equivalents at beginning of period",
        "periodEndLabel": "Cash and cash equivalents at end of period",
        "label": "Cash and Cash Equivalents, at Carrying Value",
        "terseLabel": "Cash and cash equivalents",
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes 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. Excludes cash and cash equivalents within disposal group and discontinued operation."
       }
      }
     },
     "auth_ref": [
      "r64",
      "r300",
      "r1113"
     ]
    },
    "us-gaap_CashAndCashEquivalentsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndCashEquivalentsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents, Fair Value Disclosure",
        "terseLabel": "Cash and cash equivalents",
        "documentation": "Fair value portion of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes 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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashAndCashEquivalentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndCashEquivalentsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents [Member]",
        "documentation": "Currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes 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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashAndCashEquivalentsRestrictedCashAndCashEquivalentsPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndCashEquivalentsRestrictedCashAndCashEquivalentsPolicy",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents, Restricted Cash and Cash Equivalents, Policy [Policy Text Block]",
        "terseLabel": "Restricted Cash",
        "documentation": "Entity's cash and cash equivalents accounting policy with respect to restricted balances. Restrictions may include legally restricted deposits held as compensating balances against short-term borrowing arrangements, contracts entered into with others, or company statements of intention with regard to particular deposits; however, time deposits and short-term certificates of deposit are not generally included in legally restricted deposits."
       }
      }
     },
     "auth_ref": [
      "r65",
      "r230"
     ]
    },
    "us-gaap_CashAndCashEquivalentsUnrestrictedCashAndCashEquivalentsPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndCashEquivalentsUnrestrictedCashAndCashEquivalentsPolicy",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash Equivalents",
        "label": "Cash and Cash Equivalents, Unrestricted Cash and Cash Equivalents, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for cash and cash equivalents with respect to unrestricted balances."
       }
      }
     },
     "auth_ref": [
      "r65"
     ]
    },
    "mgee_CashCashEquivalentsAndRestrictedCashAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CashCashEquivalentsAndRestrictedCashAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash, Cash Equivalents, And Restricted Cash [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_CashCashEquivalentsAndRestrictedCashTableTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CashCashEquivalentsAndRestrictedCashTableTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Cash Equivalents And Restricted Cash Table [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_CashCashEquivalentsAndRestrictedcCashLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CashCashEquivalentsAndRestrictedcCashLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Cash Equivalents And Restricted Cash [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Cash, cash equivalents, and restricted cash",
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Including Disposal Group and Discontinued Operations",
        "periodStartLabel": "Cash, cash equivalents, and restricted cash at beginning of period",
        "periodEndLabel": "Cash, cash equivalents, and restricted cash at end of period",
        "terseLabel": "Cash, cash equivalents, and restricted cash",
        "documentation": "Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including, but not limited to, disposal group and discontinued operations. 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."
       }
      }
     },
     "auth_ref": [
      "r64",
      "r196",
      "r339"
     ]
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect",
        "totalLabel": "Change in cash, cash equivalents, and restricted cash:",
        "terseLabel": "Change in cash, cash equivalents, and restricted cash",
        "documentation": "Amount of increase (decrease) in cash, cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including 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."
       }
      }
     },
     "auth_ref": [
      "r5",
      "r196"
     ]
    },
    "us-gaap_CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash dividends paid to parent by MGE",
        "label": "SEC Schedule, 12-04, Cash Dividends Paid to Registrant, Consolidated Subsidiaries",
        "negatedLabel": "Cash dividends paid to parent by MGE",
        "documentation": "This element represents disclosure of the aggregate cash dividends paid to the entity by consolidated subsidiaries."
       }
      }
     },
     "auth_ref": [
      "r350"
     ]
    },
    "us-gaap_CashFlowHedgingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashFlowHedgingMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Flow Hedging [Member]",
        "documentation": "Hedge of the exposure to variability in the cash flows of a recognized asset or liability, or of a forecasted transaction, that is attributable to a particular risk."
       }
      }
     },
     "auth_ref": [
      "r123"
     ]
    },
    "us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Flow, Noncash Investing and Financing Activities Disclosure [Abstract]",
        "terseLabel": "Significant noncash investing activities:"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Cashcashequivalentsandrestrictedcashtabletextblock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Cashcashequivalentsandrestrictedcashtabletextblock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash, Cash Equivalents, and Restricted Cash [Table Text Block]",
        "terseLabel": "Cash, Cash Equivalents, and Restricted Cash",
        "documentation": "Tabular disclosure of the components of cash and cash equivalents, including restricted amounts."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ChangeInDerivativeFairValueRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ChangeInDerivativeFairValueRollForward",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Change In Derivative Fair Value [Roll Forward]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Changeinfuelrulesmonitoredcosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Changeinfuelrulesmonitoredcosts",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Change in fuel rules monitored costs",
        "documentation": "This amount represents the change in fuel rules monitored costs approved by the PSCW.",
        "terseLabel": "Change in fuel rules monitored costs"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ChangesInProjectedBenefitObligationsFairValueOfPlanAssetsAndFundedStatusOfPlanTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ChangesInProjectedBenefitObligationsFairValueOfPlanAssetsAndFundedStatusOfPlanTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Changes in Projected Benefit Obligations, Fair Value of Plan Assets, and Funded Status of Plan [Table Text Block]",
        "terseLabel": "Schedule of Benefit Obligations and Change in Plan Assets",
        "documentation": "Tabular disclosure of the change in the benefit obligation, fair value of plan assets, and funded status of pension plans or other employee benefit plans."
       }
      }
     },
     "auth_ref": [
      "r36"
     ]
    },
    "dei_CityAreaCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CityAreaCode",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "City Area Code",
        "documentation": "Area code of city"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ClassOfStockLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ClassOfStockLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Stock [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r307",
      "r308",
      "r309",
      "r390",
      "r561",
      "r562",
      "r563",
      "r565",
      "r568",
      "r573",
      "r575",
      "r988",
      "r989",
      "r990",
      "r991",
      "r1135",
      "r1187",
      "r1232"
     ]
    },
    "us-gaap_CollateralAlreadyPostedAggregateFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CollateralAlreadyPostedAggregateFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateral Already Posted, Aggregate Fair Value",
        "documentation": "The aggregate fair value of assets that are already posted, at the end of the reporting period, as collateral for derivative instruments with credit-risk-related contingent features."
       }
      }
     },
     "auth_ref": [
      "r134"
     ]
    },
    "mgee_ColumbiaEnvironmentalProjectSCRMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ColumbiaEnvironmentalProjectSCRMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Columbia Environmental Project, SCR [Member]",
        "documentation": "Columbia Environmental Project, SCR"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ColumbiaUnitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ColumbiaUnitsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Columbia units.",
        "label": "Columbia Units [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ColumbiaenvironmentalprojectsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ColumbiaenvironmentalprojectsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Columbia Environmental Projects [Member]",
        "documentation": "Columbia Environmental Projects"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_CommercialMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CommercialMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commercial operating revenue.",
        "label": "Commercial [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommercialPaper": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommercialPaper",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commercial Paper",
        "documentation": "Carrying value as of the balance sheet date of short-term borrowings using unsecured obligations issued by banks, corporations and other borrowers to investors. The maturities of these money market securities generally do not exceed 270 days."
       }
      }
     },
     "auth_ref": [
      "r169",
      "r233",
      "r1352"
     ]
    },
    "mgee_CommercialandindustrialMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CommercialandindustrialMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commercial And Industrial [Member]",
        "terseLabel": "Commercial/Industrial [Member]",
        "documentation": "Commercial and Industrial operating revenue."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommitmentsAndContingencies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommitmentsAndContingencies",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies",
        "terseLabel": "Commitments and contingencies (see Footnote 3)",
        "verboseLabel": "Commitments and contingencies (see Footnote 16)",
        "documentation": "Represents the caption on the face of the balance sheet to indicate that the entity has entered into (1) purchase or supply arrangements that will require expending a portion of its resources to meet the terms thereof, and (2) is exposed to potential losses or, less frequently, gains, arising from (a) possible claims against a company's resources due to future performance under contract terms, and (b) possible losses or likely gains from uncertainties that will ultimately be resolved when one or more future events that are deemed likely to occur do occur or fail to occur."
       }
      }
     },
     "auth_ref": [
      "r52",
      "r152",
      "r934",
      "r1019"
     ]
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Abstract]",
        "terseLabel": "Commitments and Contingencies"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommitmentsContingenciesAndGuaranteesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommitmentsContingenciesAndGuaranteesTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingencies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments Contingencies and Guarantees [Text Block]",
        "documentation": "The entire disclosure for commitments, contingencies, and guarantees."
       }
      }
     },
     "auth_ref": [
      "r207",
      "r208",
      "r1266"
     ]
    },
    "us-gaap_CommodityContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommodityContractMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commodity Derivative Contracts [Member]",
        "label": "Commodity Contract [Member]",
        "documentation": "Derivative instrument whose primary underlying risk is tied to commodity prices."
       }
      }
     },
     "auth_ref": [
      "r1143",
      "r1157"
     ]
    },
    "mgee_CommodityContractsAndFinancialTransimissionRightsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CommodityContractsAndFinancialTransimissionRightsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commodity Contracts and Financial Transimission Rights [Member]",
        "label": "Commodity Contracts And Financial Transimission Rights [Member]",
        "terseLabel": "Exchange Traded Derivatives and FTRs [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_CommonEquityRatio": {
     "xbrltype": "pureItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CommonEquityRatio",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The common equity ratio, calculated on a thirteen month rolling average.",
        "label": "Common equity ratio"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_CommonEquityRatioDividendRestrictionThreshold": {
     "xbrltype": "pureItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CommonEquityRatioDividendRestrictionThreshold",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The minimum common equity ratio required to avoid dividend payment restirctions to the parent company.",
        "terseLabel": "Dividend restrictions, common equity ratio",
        "label": "Common Equity Ratio, Dividend Restriction Threshold"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommonStockCapitalSharesReservedForFutureIssuance": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockCapitalSharesReservedForFutureIssuance",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Capital Shares Reserved for Future Issuance",
        "terseLabel": "Common stock to be issued with plan",
        "documentation": "Aggregate number of common shares reserved for future issuance."
       }
      }
     },
     "auth_ref": [
      "r54"
     ]
    },
    "us-gaap_CommonStockDividendsPerShareCashPaid": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockDividendsPerShareCashPaid",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/StatementMgeEnergyIncConsolidatedStatementsOfCommonEquityParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Dividends, Per Share, Cash Paid",
        "terseLabel": "Dividends per share of common stock",
        "verboseLabel": "Common stock dividends declared (in dollars per share)",
        "documentation": "Aggregate dividends paid during the period for each share of common stock outstanding."
       }
      }
     },
     "auth_ref": [
      "r213"
     ]
    },
    "us-gaap_CommonStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock [Member]",
        "documentation": "Stock that is subordinate to all other stock of the issuer."
       }
      }
     },
     "auth_ref": [
      "r1162",
      "r1163",
      "r1164",
      "r1166",
      "r1167",
      "r1168",
      "r1169",
      "r1239",
      "r1240",
      "r1327",
      "r1356",
      "r1359"
     ]
    },
    "us-gaap_CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Number of Shares, Par Value and Other Disclosure [Abstract]",
        "terseLabel": "Common shareholders' equity"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockParOrStatedValuePerShare",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Par or Stated Value Per Share",
        "terseLabel": "Common stock, par value",
        "documentation": "Face amount or stated value per share of common stock."
       }
      }
     },
     "auth_ref": [
      "r178"
     ]
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockSharesAuthorized",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Shares Authorized",
        "terseLabel": "Common stock, shares authorized",
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws."
       }
      }
     },
     "auth_ref": [
      "r178",
      "r1020"
     ]
    },
    "us-gaap_CommonStockSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockSharesIssued",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock, shares issued",
        "totalLabel": "Common Stock, Shares, Issued, Total",
        "label": "Common Stock, Shares, Issued",
        "documentation": "Total number of common shares of an entity that have been sold or granted to shareholders (includes common shares that were issued, repurchased and remain in the treasury). These shares represent capital invested by the firm's shareholders and owners, and may be all or only a portion of the number of shares authorized. Shares issued include shares outstanding and shares held in the treasury."
       }
      }
     },
     "auth_ref": [
      "r178"
     ]
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockSharesOutstanding",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Common Stock, Shares, Outstanding, Ending Balance",
        "periodStartLabel": "Common Stock, Shares, Outstanding, Beginning Balance",
        "label": "Common Stock, Shares, Outstanding",
        "terseLabel": "Common stock, shares outstanding",
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation."
       }
      }
     },
     "auth_ref": [
      "r27",
      "r178",
      "r1020",
      "r1040",
      "r1359",
      "r1360"
     ]
    },
    "us-gaap_CommonStockValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockValue",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Common Stock, Value, Issued, Ending Balance",
        "periodStartLabel": "Common Stock, Value, Issued, Beginning Balance",
        "totalLabel": "Common Stock, Value, Issued, Total",
        "label": "Common Stock, Value, Issued",
        "terseLabel": "Common stock",
        "documentation": "Aggregate par or stated value of issued nonredeemable common stock (or common stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable common shares, par value and other disclosure concepts are in another section within stockholders' equity."
       }
      }
     },
     "auth_ref": [
      "r178",
      "r935",
      "r1159"
     ]
    },
    "us-gaap_CommonStocksIncludingAdditionalPaidInCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStocksIncludingAdditionalPaidInCapital",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Common Stocks, Including Additional Paid in Capital, Ending Balance",
        "periodStartLabel": "Common Stocks, Including Additional Paid in Capital, Beginning Balance",
        "totalLabel": "Common Stocks, Including Additional Paid in Capital, Total",
        "label": "Common Stocks, Including Additional Paid in Capital",
        "terseLabel": "Common shareholders' equity",
        "documentation": "Amount of par value plus amounts in excess of par value or issuance value for common stock issued."
       }
      }
     },
     "auth_ref": [
      "r178",
      "r179",
      "r213"
     ]
    },
    "us-gaap_CompensationAndRetirementDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CompensationAndRetirementDisclosureAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pension Plans and Other Postretirement Benefits",
        "label": "Retirement Benefits [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ComponentsOfDeferredTaxAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ComponentsOfDeferredTaxAssetsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of Deferred Tax Assets [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of Deferred Tax Assets and Liabilities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ComponentsOfDeferredTaxLiabilitiesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of Deferred Tax Liabilities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ConcentrationRiskBenchmarkDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConcentrationRiskBenchmarkDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Concentration Risk Benchmark [Domain]",
        "documentation": "The denominator in a calculation of a disclosed concentration risk percentage."
       }
      }
     },
     "auth_ref": [
      "r74",
      "r76",
      "r144",
      "r145",
      "r429",
      "r1106"
     ]
    },
    "us-gaap_ConcentrationRiskByBenchmarkAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConcentrationRiskByBenchmarkAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Concentration Risk Benchmark [Axis]",
        "documentation": "Information by benchmark of concentration risk."
       }
      }
     },
     "auth_ref": [
      "r74",
      "r76",
      "r144",
      "r145",
      "r429",
      "r981",
      "r1106"
     ]
    },
    "us-gaap_ConcentrationRiskByTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConcentrationRiskByTypeAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Concentration Risk Type [Axis]",
        "documentation": "Information by type of concentration risk, for example, but not limited to, asset, liability, net assets, geographic, customer, employees, supplier, lender."
       }
      }
     },
     "auth_ref": [
      "r74",
      "r76",
      "r144",
      "r145",
      "r429",
      "r1106",
      "r1197"
     ]
    },
    "mgee_ConcentrationRiskNumberOfSignificantConcentrations": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ConcentrationRiskNumberOfSignificantConcentrations",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Concentration Risk, Number of Significant Concentrations",
        "documentation": "When disclosing a particular concentration risk, the number of significant concentrations that exist as of the balance sheet date.",
        "terseLabel": "Concentration risk, number of significant concentrations"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ConcentrationRiskPercentage1": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConcentrationRiskPercentage1",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Concentration Risk, Percentage",
        "terseLabel": "Concentration risk, percentage",
        "documentation": "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."
       }
      }
     },
     "auth_ref": [
      "r74",
      "r76",
      "r144",
      "r145",
      "r429"
     ]
    },
    "us-gaap_ConcentrationRiskTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConcentrationRiskTypeDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Concentration Risk Type [Domain]",
        "documentation": "For an entity that discloses a concentration risk as a percentage of some financial balance or benchmark, identifies the type (for example, asset, liability, net assets, geographic, customer, employees, supplier, lender) of the concentration."
       }
      }
     },
     "auth_ref": [
      "r74",
      "r76",
      "r144",
      "r145",
      "r429",
      "r1106"
     ]
    },
    "srt_CondensedBalanceSheetStatementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CondensedBalanceSheetStatementTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Balance Sheet Statement [Table]",
        "documentation": "Disclosure of information about condensed balance sheet, including, but not limited to, balance sheets of consolidated entities and consolidation eliminations."
       }
      }
     },
     "auth_ref": [
      "r274",
      "r349",
      "r1189"
     ]
    },
    "srt_CondensedBalanceSheetStatementsCaptionsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CondensedBalanceSheetStatementsCaptionsLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Balance Sheet Statements, Captions [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r275",
      "r349",
      "r1189"
     ]
    },
    "srt_CondensedCashFlowStatementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CondensedCashFlowStatementTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Cash Flow Statement [Table]",
        "documentation": "Disclosure of information about condensed cash flow statement, including, but not limited to, cash flow statements of consolidated entities and consolidation eliminations."
       }
      }
     },
     "auth_ref": [
      "r275",
      "r349",
      "r1189"
     ]
    },
    "srt_CondensedCashFlowStatementsCaptionsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CondensedCashFlowStatementsCaptionsLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Cash Flow Statements, Captions [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r275",
      "r349",
      "r1189"
     ]
    },
    "srt_CondensedFinancialInformationOfParentCompanyOnlyDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CondensedFinancialInformationOfParentCompanyOnlyDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Financial Information Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DisclosureCondensedParentCompanyFinancialStatements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Financial Information of Parent Company Only Disclosure [Text Block]",
        "documentation": "The entire disclosure for condensed financial information, including the financial position, cash flows, and the results of operations of the registrant (parent company) as of the same dates or for the same periods for which audited consolidated financial statements are being presented. Alternatively, the details of this disclosure can be reported by the specific parent company taxonomy elements, indicating the appropriate date and period contexts in an instance document."
       }
      }
     },
     "auth_ref": [
      "r294",
      "r349",
      "r1189"
     ]
    },
    "srt_CondensedIncomeStatementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CondensedIncomeStatementTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatementParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Income Statement [Table]",
        "documentation": "Disclosure of information about condensed income statement including, but not limited to, income statements of consolidated entities and consolidation eliminations."
       }
      }
     },
     "auth_ref": [
      "r275",
      "r349",
      "r1189"
     ]
    },
    "srt_CondensedIncomeStatementsCaptionsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CondensedIncomeStatementsCaptionsLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatementParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Income Statements, Captions [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r275",
      "r349",
      "r1189"
     ]
    },
    "srt_ConsolidatedEntitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ConsolidatedEntitiesAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatementParentheticals",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Entities [Axis]",
        "documentation": "Information by consolidated entity or group of entities."
       }
      }
     },
     "auth_ref": [
      "r277",
      "r349",
      "r754",
      "r755",
      "r758",
      "r759",
      "r866",
      "r1107",
      "r1213",
      "r1216",
      "r1217",
      "r1269",
      "r1272",
      "r1273"
     ]
    },
    "srt_ConsolidatedEntitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ConsolidatedEntitiesDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatementParentheticals",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Entities [Domain]",
        "documentation": "Entity or group of entities consolidated into reporting entity."
       }
      }
     },
     "auth_ref": [
      "r277",
      "r349",
      "r754",
      "r755",
      "r758",
      "r759",
      "r866",
      "r1107",
      "r1213",
      "r1216",
      "r1217",
      "r1269",
      "r1272",
      "r1273"
     ]
    },
    "srt_ConsolidationItemsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ConsolidationItemsAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidation Items [Axis]",
        "documentation": "Information by components, eliminations, non-segment corporate-level activity and reconciling items used in consolidating a parent entity and its subsidiaries or its operating segments."
       }
      }
     },
     "auth_ref": [
      "r278",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r284",
      "r285",
      "r286",
      "r349",
      "r397",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r420",
      "r424",
      "r527",
      "r528",
      "r529",
      "r530",
      "r532",
      "r533",
      "r535",
      "r537",
      "r538",
      "r1214",
      "r1215",
      "r1270",
      "r1271"
     ]
    },
    "srt_ConsolidationItemsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ConsolidationItemsDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidation Items [Domain]",
        "documentation": "Components, elimination, non-segment corporate-level activity and reconciling items used in consolidating a parent entity and its subsidiaries or its operating segments."
       }
      }
     },
     "auth_ref": [
      "r278",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r284",
      "r285",
      "r286",
      "r349",
      "r397",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r420",
      "r424",
      "r527",
      "r528",
      "r529",
      "r530",
      "r532",
      "r533",
      "r535",
      "r537",
      "r538",
      "r1214",
      "r1215",
      "r1270",
      "r1271"
     ]
    },
    "us-gaap_ConsolidationPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConsolidationPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidation, Policy [Policy Text Block]",
        "terseLabel": "Principles of Consolidation",
        "documentation": "Disclosure of accounting policy regarding (1) the principles it follows in consolidating or combining the separate financial statements, including the principles followed in determining the inclusion or exclusion of subsidiaries or other entities in the consolidated or combined financial statements and (2) its treatment of interests (for example, common stock, a partnership interest or other means of exerting influence) in other entities, for example consolidation or use of the equity or cost methods of accounting. The accounting policy may also address the accounting treatment for intercompany accounts and transactions, noncontrolling interest, and the income statement treatment in consolidation for issuances of stock by a subsidiary."
       }
      }
     },
     "auth_ref": [
      "r111",
      "r1119"
     ]
    },
    "us-gaap_ConstructionInProgressGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConstructionInProgressGross",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Construction in Progress, Gross",
        "terseLabel": "Total incurred costs to date",
        "verboseLabel": "Construction work in progress",
        "documentation": "Amount of structure or a modification to a structure under construction. Includes recently completed structures or modifications to structures that have not been placed into service."
       }
      }
     },
     "auth_ref": [
      "r204"
     ]
    },
    "mgee_ConstructionProjectAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ConstructionProjectAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Construction Project [Axis]",
        "documentation": "Identifies type of construction project."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ConstructionProjectDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ConstructionProjectDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Construction Project [Domain]",
        "documentation": "Type of construction project."
       }
      }
     },
     "auth_ref": []
    },
    "srt_ContractualObligationFiscalYearMaturityScheduleTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ContractualObligationFiscalYearMaturityScheduleTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contractual Obligation, Fiscal Year Maturity [Table Text Block]",
        "terseLabel": "Contractual Obligation, Fiscal Year Maturity Schedule",
        "documentation": "Tabular disclosure of contractual obligation by timing of payment due. Includes, but is not limited to, long-term debt obligation, lease obligation, and purchase obligation."
       }
      }
     },
     "auth_ref": [
      "r1236"
     ]
    },
    "mgee_Contributionstoaffiliates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Contributionstoaffiliates",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contributions to affiliates",
        "negatedLabel": "Contributions to affiliates"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Contributionstootherinvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Contributionstootherinvestments",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ContributionsToOtherInvestments",
        "negatedLabel": "Contributions to other Investments"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CorporateAndOtherMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CorporateAndOtherMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Corporate and Other [Member]",
        "terseLabel": "All Others [Members]",
        "documentation": "Component of an entity that provides financial and operational oversight and administrative support for other segments and other segments not separately reported due to size or nature of business activities. Excludes intersegment elimination and reconciling items."
       }
      }
     },
     "auth_ref": [
      "r1246"
     ]
    },
    "mgee_CostOfGasSoldExpenseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CostOfGasSoldExpenseMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cost Of Gas Sold Expense [Member]",
        "documentation": "Cost of gas sold expense."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CostOfRevenue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CostOfRevenue",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "parentTag": "mgee_EquityMethodInvestmentSummarizedFinancialInformationNetIncomeLossBeforeTaxes",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Cost of Revenue, Total",
        "negatedLabel": "Operating expenses",
        "label": "Cost of Revenue",
        "documentation": "The aggregate cost of goods produced and sold and services rendered during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r191",
      "r342",
      "r470",
      "r527",
      "r528",
      "r530",
      "r531",
      "r532",
      "r534",
      "r536",
      "r538",
      "r539",
      "r811",
      "r1270"
     ]
    },
    "mgee_CounterpartiesInDefault": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CounterpartiesInDefault",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Counterparties In Default",
        "documentation": "Number of counterparites in default as of the balance sheet date.",
        "terseLabel": "Number of counterparties in default"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_CounterpartiesInNetLiabilityPositionOrDefaultAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CounterpartiesInNetLiabilityPositionOrDefaultAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Counterparties In Net Liability Position Or Default [Abstract]",
        "terseLabel": "Counterparties in net liability position or default [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_CounterpartyNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CounterpartyNameAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Counterparty Name [Axis]",
        "documentation": "Information by name of counterparty. A counterparty is the other party that participates in a financial transaction. Examples include, but not limited to, the name of the financial institution."
       }
      }
     },
     "auth_ref": [
      "r287",
      "r346",
      "r347",
      "r543",
      "r563",
      "r864",
      "r1115",
      "r1118"
     ]
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CoverAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cover [Abstract]",
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "srt_CumulativeEffectPeriodOfAdoptionAdjustedBalanceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CumulativeEffectPeriodOfAdoptionAdjustedBalanceMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption, Adjusted Balance [Member]",
        "documentation": "Represents amount after cumulative-effect adjustment to financial statements in period of adoption of amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r1198",
      "r1218",
      "r1242",
      "r1258",
      "r1261",
      "r1311",
      "r1312",
      "r1313",
      "r1320",
      "r1321",
      "r1326",
      "r1327",
      "r1328",
      "r1335"
     ]
    },
    "srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CumulativeEffectPeriodOfAdoptionAdjustmentMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption, Adjustment [Member]",
        "documentation": "Increase (decrease) to financial statements for cumulative-effect adjustment in period of adoption of amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r290",
      "r360",
      "r371",
      "r378",
      "r474",
      "r482",
      "r706",
      "r707",
      "r708",
      "r736",
      "r737",
      "r767",
      "r769",
      "r770",
      "r772",
      "r774",
      "r775",
      "r781",
      "r784",
      "r787",
      "r788",
      "r855"
     ]
    },
    "srt_CumulativeEffectPeriodOfAdoptionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CumulativeEffectPeriodOfAdoptionAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption [Axis]",
        "documentation": "Information by cumulative-effect adjustment to financial statements in period of adoption of amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r290",
      "r360",
      "r371",
      "r378",
      "r474",
      "r482",
      "r706",
      "r707",
      "r708",
      "r736",
      "r737",
      "r767",
      "r769",
      "r770",
      "r772",
      "r774",
      "r775",
      "r781",
      "r784",
      "r787",
      "r788",
      "r855"
     ]
    },
    "srt_CumulativeEffectPeriodOfAdoptionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CumulativeEffectPeriodOfAdoptionDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption [Domain]",
        "documentation": "Cumulative-effect adjustment to financial statements in period of adoption of amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r290",
      "r360",
      "r371",
      "r378",
      "r474",
      "r482",
      "r706",
      "r707",
      "r708",
      "r736",
      "r737",
      "r767",
      "r769",
      "r770",
      "r772",
      "r774",
      "r775",
      "r781",
      "r784",
      "r787",
      "r788",
      "r855"
     ]
    },
    "us-gaap_CurrentFederalTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CurrentFederalTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Federal Tax Expense (Benefit)",
        "terseLabel": "Current payable: Federal",
        "documentation": "Amount of current federal tax expense (benefit) attributable to income (loss) from continuing operations. Includes, but is not limited to, current national tax expense (benefit) for non-US (United States of America) jurisdiction."
       }
      }
     },
     "auth_ref": [
      "r1204",
      "r1235",
      "r1322"
     ]
    },
    "dei_CurrentFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CurrentFiscalYearEndDate",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Fiscal Year End Date",
        "documentation": "End date of current fiscal year in the format --MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CurrentStateAndLocalTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CurrentStateAndLocalTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current State and Local Tax Expense (Benefit)",
        "terseLabel": "Current payable: State",
        "documentation": "Amount of current state and local tax expense (benefit) attributable to income (loss) from continuing operations. Includes, but is not limited to, current regional, territorial, and provincial tax expense (benefit) for non-US (United States of America) jurisdiction."
       }
      }
     },
     "auth_ref": [
      "r1204",
      "r1235",
      "r1322"
     ]
    },
    "mgee_CurrentassetsmemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "CurrentassetsmemberMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Assets [Member]",
        "documentation": "Primary financial statement caption encompassing current assets.",
        "terseLabel": "Current assets [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DaneCountyAndObrienMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DaneCountyAndObrienMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MGE recorded an obligation for the fair value of its legal liability for AROs associated with Dane County and O'Brien (other completed renewable projects).",
        "label": "Dane County and OBrien [Member]",
        "terseLabel": "Other completed renewable projects"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DarienUnitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DarienUnitsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Darien Units [Member]",
        "documentation": "Darien Solar Energy Center is a solar power generation facility in Walworth and Rock Counties, Wisconsin. MGE has a 10% ownership interest in Darien for a total of 32.5 MW."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument [Axis]",
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities."
       }
      }
     },
     "auth_ref": [
      "r41",
      "r171",
      "r172",
      "r234",
      "r237",
      "r349",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554",
      "r555",
      "r829",
      "r1130",
      "r1131",
      "r1132",
      "r1133",
      "r1134",
      "r1233"
     ]
    },
    "us-gaap_DebtInstrumentCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentCarryingAmount",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1": {
       "parentTag": "us-gaap_LongTermDebtNoncurrent",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Gross",
        "terseLabel": "Long-term debt, gross",
        "verboseLabel": "Total Long-Term Debt",
        "totalLabel": "Long-term debt, gross",
        "documentation": "Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt."
       }
      }
     },
     "auth_ref": [
      "r41",
      "r237",
      "r557"
     ]
    },
    "mgee_DebtInstrumentCovenantTermsAllowableAmountAvailableForDividendPayment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DebtInstrumentCovenantTermsAllowableAmountAvailableForDividendPayment",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total amount of dividends available under covenant terms",
        "terseLabel": "Debt covenant, allowable amount available for payment of dividends",
        "label": "Debt Instrument, Covenant Terms, Allowable Amount Available for Dividend Payment"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DebtInstrumentCovenantTermsOwnershipInterestByOutsidePartyResultingInRepurchaseOfNotesAtParValue": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DebtInstrumentCovenantTermsOwnershipInterestByOutsidePartyResultingInRepurchaseOfNotesAtParValue",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt covenant, ownership interest by outside party resulting in repurchase of notes at par value",
        "documentation": "Disallowable percent ownership of trading stock by an outside party that would result in repurchase of notes at par value.",
        "label": "Debt Instrument, Covenant Terms, Ownership Interest by Outside Party Resulting in Repurchase of Notes at Par Value"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DebtInstrumentCovenantTermsRequiredParentCompanyOwnershipOfOutstandingVotingEquityInterestInSubsidiary": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DebtInstrumentCovenantTermsRequiredParentCompanyOwnershipOfOutstandingVotingEquityInterestInSubsidiary",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Required parent company percent ownership of subsidiary outstanding voting equity interest. Failure to maintain this percentage ownership would result in repurchase of notes at par value.",
        "terseLabel": "Debt covenant, required parent company ownership of MGE",
        "label": "Debt Instrument, Covenant Terms, Required Parent Company Ownership of Outstanding Voting Equity Interest in Subsidiary"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentFaceAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentFaceAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Face amount",
        "label": "Debt Instrument, Face Amount",
        "documentation": "Face (par) amount of debt instrument at time of issuance."
       }
      }
     },
     "auth_ref": [
      "r147",
      "r149",
      "r540",
      "r829",
      "r1131",
      "r1132"
     ]
    },
    "us-gaap_DebtInstrumentInterestRateStatedPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentInterestRateStatedPercentage",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Interest Rate, Stated Percentage",
        "terseLabel": "Interest rate",
        "documentation": "Contractual interest rate for funds borrowed, under the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r49",
      "r541"
     ]
    },
    "us-gaap_DebtInstrumentLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r349",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554",
      "r555",
      "r556",
      "r829",
      "r1130",
      "r1131",
      "r1132",
      "r1133",
      "r1134",
      "r1233"
     ]
    },
    "us-gaap_DebtInstrumentMaturityDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentMaturityDate",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Maturity Date",
        "documentation": "Date when the debt instrument is scheduled to be fully repaid, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r269",
      "r1130",
      "r1330"
     ]
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentNameDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Name [Domain]",
        "documentation": "The name for the particular debt instrument or borrowing that distinguishes it from other debt instruments or borrowings, including draws against credit facilities."
       }
      }
     },
     "auth_ref": [
      "r50",
      "r349",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554",
      "r555",
      "r829",
      "r1130",
      "r1131",
      "r1132",
      "r1133",
      "r1134",
      "r1233"
     ]
    },
    "us-gaap_DebtInstrumentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Long-Term Debt Instruments [Table]",
        "documentation": "A table or schedule providing information pertaining to long-term debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer."
       }
      }
     },
     "auth_ref": [
      "r50",
      "r91",
      "r94",
      "r146",
      "r147",
      "r149",
      "r153",
      "r211",
      "r212",
      "r349",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554",
      "r555",
      "r556",
      "r829",
      "r1130",
      "r1131",
      "r1132",
      "r1133",
      "r1134",
      "r1233"
     ]
    },
    "us-gaap_DebtInstrumentTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentTerm",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Term",
        "terseLabel": "Term",
        "documentation": "Period of time between issuance and maturity of debt instrument, in PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1": {
       "parentTag": "us-gaap_LongTermDebtNoncurrent",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unamortized discount and debt issuance costs",
        "totalLabel": "Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net, Total",
        "label": "Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net",
        "negatedLabel": "Unamortized discount and debt issuance costs",
        "documentation": "Amount of unamortized debt discount (premium) and debt issuance costs."
       }
      }
     },
     "auth_ref": [
      "r148",
      "r546",
      "r558",
      "r1131",
      "r1132"
     ]
    },
    "us-gaap_DebtPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt, Policy [Policy Text Block]",
        "terseLabel": "Debt Issuance Costs",
        "documentation": "Disclosure of accounting policy related to debt. Includes, but is not limited to, debt issuance costs, the effects of refinancings, method of amortizing debt issuance costs and original issue discount, and classifications of debt."
       }
      }
     },
     "auth_ref": [
      "r17"
     ]
    },
    "mgee_DebtRelatedCostsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DebtRelatedCostsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Related Costs [Member]",
        "documentation": "Regulatory Asset costs related to debt."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DebtServiceCoverageRatio": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DebtServiceCoverageRatio",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt service coverage ratio",
        "documentation": "Debt service covereage ratio that must be maintained for a trailing 12-month period.",
        "label": "Debt Service Coverage Ratio"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DeferredBadDebtExpenseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredBadDebtExpenseMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Bad Debt Expense [Member]",
        "documentation": "Deferred bad debt expense"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DeferredCOVIDNineteenCostsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredCOVIDNineteenCostsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred COVID Nineteen Costs [Member]",
        "terseLabel": "COVID-19 Costs [Member]",
        "documentation": "Deferral of expenditures incurred to ensure the provision of safe, reliable, and affordable access to utility services during the COVID-19 pandemic and late payment charges."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DeferredCompensationArrangementWithIndividualInvestmentInterestCalculationInvestmentMaturityPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredCompensationArrangementWithIndividualInvestmentInterestCalculationInvestmentMaturityPeriod",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment maturity period used in deferred compensation interest calculation.",
        "terseLabel": "Investment interest calculation, investment maturity period (26 weeks)",
        "label": "Deferred Compensation Arrangement With Individual, Investment Interest Calculation, Investment Maturity Period"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DeferredCompensationArrangementWithIndividualInvestmentInterestCalculationMinimumAnnualRateCompoundedMonthly": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredCompensationArrangementWithIndividualInvestmentInterestCalculationMinimumAnnualRateCompoundedMonthly",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Minimum annual rate compounded monthly used in deferred compensation interest calculation.",
        "terseLabel": "Investment interest calculation, minimum annual rate compounded monthly",
        "label": "Deferred Compensation Arrangement With Individual Investment Interest Calculation, Minimum Annual Rate Compounded Monthly"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DeferredCompensationArrangementWithIndividualInvestmentInterestCalculationMonthlyCompoundingRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredCompensationArrangementWithIndividualInvestmentInterestCalculationMonthlyCompoundingRate",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage increase compounded monthly used in deferred compensation interest calculation.",
        "terseLabel": "Investment interest calculation, monthly compounding rate",
        "label": "Deferred Compensation Arrangement With Individual, Investment Interest Calculation, Monthly Compounding Rate"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredCompensationArrangementsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredCompensationArrangementsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred compensation plan [Abstract]",
        "label": "Deferred Compensation Arrangements [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DeferredCompensationFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredCompensationFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the portion of the balance sheet assertion valued at fair value by the entity whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission. This item represents deferred compensation obligations meeting the definition of a liability which should be reported as of the balance sheet date.",
        "terseLabel": "Deferred compensation",
        "label": "Deferred Compensation Fair Value Disclosure"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredDerivativeGainLossMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredDerivativeGainLossMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Derivative Gain (Loss) [Member]",
        "terseLabel": "Derivatives [Member]",
        "documentation": "Rate action of a regulator resulting in capitalization or accrual of gain (loss) on derivative contracts."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DeferredExpendituresMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredExpendituresMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Expenditures [Member]",
        "documentation": "MGE has requested recovery of incremental uncollectible costs deferred from the periods 2020 through 2023."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredFederalIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredFederalIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Federal Income Tax Expense (Benefit)",
        "negatedLabel": "Income tax provision",
        "totalLabel": "Total income tax provision",
        "negatedTerseLabel": "Income tax (provision) benefit",
        "terseLabel": "Income tax provision",
        "verboseLabel": "Net-deferred: Federal",
        "documentation": "Amount of deferred federal tax expense (benefit) attributable to income (loss) from continuing operations. Includes, but is not limited to, deferred national tax expense (benefit) for non-US (United States of America) jurisdiction."
       }
      }
     },
     "auth_ref": [
      "r1235",
      "r1319",
      "r1322"
     ]
    },
    "us-gaap_DeferredFuelCostsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredFuelCostsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Fuel Costs [Member]",
        "documentation": "Rate action of a regulator resulting in capitalization or accrual of fuel costs incurred."
       }
      }
     },
     "auth_ref": [
      "r244"
     ]
    },
    "mgee_DeferredFuelRulesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredFuelRulesTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRateMattersTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of deferred electric fuel-related costs.",
        "label": "Deferred Fuel Rules [Table Text Block]",
        "terseLabel": "Deferred Fuel Rules"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DeferredFuelSavingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredFuelSavingsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Fuel Savings [Member]",
        "documentation": "Fuel costs saved. These costs are included in allowable costs for rate making purposes and will be returned to customers, subject for approval by the PSCW."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredIncomeTaxChargesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredIncomeTaxChargesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Income Tax Charge [Member]",
        "terseLabel": "Income Taxes",
        "documentation": "Rate action of a regulator resulting in capitalization or accrual of income taxes."
       }
      }
     },
     "auth_ref": [
      "r244",
      "r248",
      "r250",
      "r251"
     ]
    },
    "us-gaap_DeferredIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Deferred Income Tax Expense (Benefit), Total",
        "label": "Deferred Income Tax Expense (Benefit)",
        "terseLabel": "Deferred income taxes",
        "documentation": "Amount of deferred income tax expense (benefit) pertaining to income (loss) from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r223",
      "r265",
      "r743",
      "r744",
      "r1235"
     ]
    },
    "mgee_DeferredIncomeTaxExpenseTaxCutsAndJobsAct": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredIncomeTaxExpenseTaxCutsAndJobsAct",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Deferred Income Tax Benefit Tax Cuts And Jobs Act",
        "documentation": "The tax effect of the amount of the revaluation of deferred income tax expense from the Tax Cuts and Jobs Act.",
        "negatedLabel": "Income tax provision",
        "totalLabel": "Total income tax provision",
        "negatedTerseLabel": "Income tax (provision) benefit",
        "terseLabel": "Income tax provision"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredIncomeTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredIncomeTaxLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredTaxLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Gross deferred income tax liabilities",
        "label": "Deferred Tax Liabilities, Gross",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences."
       }
      }
     },
     "auth_ref": [
      "r175",
      "r176",
      "r236",
      "r728"
     ]
    },
    "us-gaap_DeferredIncomeTaxLiabilitiesNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredIncomeTaxLiabilitiesNet",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Deferred Income Tax Liabilities, Net, Total",
        "label": "Deferred Income Tax Liabilities, Net",
        "terseLabel": "Deferred income taxes",
        "documentation": "Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences with jurisdictional netting."
       }
      }
     },
     "auth_ref": [
      "r718",
      "r719",
      "r933"
     ]
    },
    "mgee_DeferredPensionAndOtherPostretirementCostsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredPensionAndOtherPostretirementCostsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "In August 2019, the PSCW approved MGE's request to defer the difference between estimated pension and other postretirement costs included in the 2019 and 2020 rate settlement and actual expense incurred. Deferred costs for employee benefit plans were factored into future rate actions starting in 2021.",
        "label": "Deferred Pension And Other Postretirement Costs [Member]",
        "terseLabel": "Deferred Pension And Other Postretirement Costs"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DeferredSavingsFromCurrentYearEmployeeBenefitCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredSavingsFromCurrentYearEmployeeBenefitCosts",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MGE deferred savings from employee benefit plan costs and recorded as a regulatory liability.",
        "label": "Deferred Savings From Current Year Employee Benefit Costs",
        "terseLabel": "Deferred savings from current year employee benefit costs"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredStateAndLocalIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred State and Local Income Tax Expense (Benefit)",
        "terseLabel": "Net-deferred: State",
        "documentation": "Amount of deferred state and local tax expense (benefit) attributable to income (loss) from continuing operations. Includes, but is not limited to, deferred regional, territorial, and provincial tax expense (benefit) for non-US (United States of America) jurisdiction."
       }
      }
     },
     "auth_ref": [
      "r1235",
      "r1319",
      "r1322"
     ]
    },
    "mgee_DeferredTaxAssetsAccruedExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredTaxAssetsAccruedExpenses",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued expenses",
        "negatedLabel": "Accrued expenses",
        "documentation": "The tax effect as of the balance sheet date of the amount of the estimated future tax deductions attributable to the difference between the tax basis and the generally accepted accounting principles basis of a company's accrued expenses which will decrease future taxable income when such difference reverses.",
        "label": "Deferred Tax Assets Accrued Expenses"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxAssetsDerivativeInstruments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsDerivativeInstruments",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Derivative Instruments",
        "negatedLabel": "Derivatives",
        "terseLabel": "Derivatives",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from derivative instruments."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r1318"
     ]
    },
    "us-gaap_DeferredTaxAssetsEquityMethodInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsEquityMethodInvestments",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Equity Method Investments",
        "negatedTerseLabel": "Investment in ATC",
        "terseLabel": "Investment in ATC",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from equity method investments."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r1318"
     ]
    },
    "us-gaap_DeferredTaxAssetsGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsGross",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Gross",
        "negatedTotalLabel": "Gross deferred income tax assets",
        "totalLabel": "Gross deferred income tax assets",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards."
       }
      }
     },
     "auth_ref": [
      "r729"
     ]
    },
    "mgee_DeferredTaxAssetsLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredTaxAssetsLeases",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets Leases",
        "negatedLabel": "Leases",
        "documentation": "The tax effect as of the balance sheet date of the amount of the estimated future tax deductions attributable to the difference between the tax basis and the generally accepted accounting principles basis of a company's leases which will decrease future taxable income when such difference reverses.",
        "terseLabel": "Leases"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DeferredTaxAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredTaxAssetsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets [Member]",
        "documentation": "Primary financial statement caption encompassing deferred tax assets.",
        "terseLabel": "Deferred tax assets [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxAssetsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsNet",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredTaxLiabilities",
       "weight": -1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Net of Valuation Allowance",
        "negatedTotalLabel": "Net deferred income tax assets",
        "totalLabel": "Net deferred income tax assets",
        "documentation": "Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards."
       }
      }
     },
     "auth_ref": [
      "r1317"
     ]
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwards": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsOperatingLossCarryforwards",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Deferred Tax Assets, Operating Loss Carryforwards, Total",
        "label": "Deferred Tax Assets, Operating Loss Carryforwards",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r1318"
     ]
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsComponentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsComponentsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Operating Loss Carryforwards, Components [Abstract]",
        "terseLabel": "Operating loss deductions and tax credit carryforwards [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsStateAndLocal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsStateAndLocal",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Operating Loss Carryforwards, State and Local",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible state and local operating loss carryforwards."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r1318"
     ]
    },
    "us-gaap_DeferredTaxAssetsOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsOther",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Other deferred tax assets",
        "label": "Deferred Tax Assets, Other",
        "terseLabel": "Other deferred tax assets",
        "documentation": "Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences, classified as other."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r1318"
     ]
    },
    "us-gaap_DeferredTaxAssetsRegulatoryAssetsAndLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsRegulatoryAssetsAndLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Regulatory Assets and Liabilities",
        "negatedLabel": "Deferred tax regulatory account",
        "terseLabel": "Deferred tax regulatory account",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences derived regulatory assets and liabilities."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r1318"
     ]
    },
    "us-gaap_DeferredTaxAssetsTaxCreditCarryforwards": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsTaxCreditCarryforwards",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Deferred Tax Assets, Tax Credit Carryforwards, Total",
        "label": "Deferred Tax Assets, Tax Credit Carryforwards",
        "documentation": "Amount, before allocation of a valuation allowances, of deferred tax assets attributable to deductible tax credit carryforwards including, but not limited to, research, foreign, general business, alternative minimum tax, and other deductible tax credit carryforwards."
       }
      }
     },
     "auth_ref": [
      "r106",
      "r107",
      "r1318"
     ]
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Deferred Tax Assets, Tax Deferred Expense, Compensation and Benefits, Total",
        "negatedLabel": "Pension and other postretirement benefits",
        "label": "Deferred Tax Assets, Tax Deferred Expense, Compensation and Benefits",
        "terseLabel": "Pension and other postretirement benefits",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from compensation and benefits costs."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r1318"
     ]
    },
    "us-gaap_DeferredTaxAssetsValuationAllowance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsValuationAllowance",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Deferred Tax Assets, Valuation Allowance, Total",
        "label": "Deferred Tax Assets, Valuation Allowance",
        "negatedLabel": "Less valuation allowance",
        "documentation": "Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized."
       }
      }
     },
     "auth_ref": [
      "r730"
     ]
    },
    "us-gaap_DeferredTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Deferred income taxes, net",
        "terseLabel": "Deferred income taxes",
        "label": "Deferred Tax Liabilities, Net",
        "negatedTotalLabel": "Deferred income taxes",
        "verboseLabel": "Deferred income tax asset - current",
        "documentation": "Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences without jurisdictional netting."
       }
      }
     },
     "auth_ref": [
      "r102",
      "r1317"
     ]
    },
    "mgee_DeferredTaxLiabilitiesDeductiblePrepayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredTaxLiabilitiesDeductiblePrepayments",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tax effect as of the balance sheet date of the amount of the estimated future tax reductions attributable to the difference between the tax basis and the generally accepted accounting principles basis of a company's tax deductible prepayments which will increase future taxable income when such difference reverses.",
        "terseLabel": "Tax deductible prepayments",
        "label": "Deferred Tax Liabilities Deductible Prepayments"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxLiabilitiesDeferredExpenseDeferredFinancingCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesDeferredExpenseDeferredFinancingCosts",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Deferred Expense, Debt Issuance Costs",
        "terseLabel": "Bond transactions",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from debt issuance costs."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r1318"
     ]
    },
    "us-gaap_DeferredTaxLiabilitiesDerivatives": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesDerivatives",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivatives",
        "label": "Deferred Tax Liabilities, Derivatives",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from derivatives."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r1318"
     ]
    },
    "mgee_DeferredTaxLiabilitiesEquityMethodInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredTaxLiabilitiesEquityMethodInvestments",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment in ATC",
        "documentation": "The tax effect as of the balance sheet date of the amount of the estimated future tax reductions attributable to the difference between the tax basis and the generally accepted accounting principles basis of a company's equity method investment which will increase future taxable income when such difference reverses.",
        "label": "Deferred Tax Liabilities Equity Method Investments"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DeferredTaxLiabilitiesLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredTaxLiabilitiesLeases",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities Leases",
        "terseLabel": "Leases",
        "documentation": "The tax effect as of the balance sheet date of the amount of the estimated future tax reductions attributable to the difference between the tax basis and the generally accepted accounting principles basis of a company's leases which will increase future taxable income when such difference reverses."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxLiabilitiesOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesOther",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Other",
        "terseLabel": "Other deferred tax liabilities",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences classified as other."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r1318"
     ]
    },
    "mgee_DeferredTaxLiabilitiesPensionAndOtherPostretirementBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredTaxLiabilitiesPensionAndOtherPostretirementBenefits",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Pension and Other Postretirement Benefits",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences related to pension and other postretirement benefits.",
        "terseLabel": "Pension and other postretirement benefits"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesPropertyPlantAndEquipment",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Property, Plant and Equipment",
        "terseLabel": "Property-related",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from property, plant, and equipment."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r1318"
     ]
    },
    "mgee_Deferredfuelrulesmonitoredcosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Deferredfuelrulesmonitoredcosts",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred fuel rules monitored costs",
        "documentation": "The amount of electric fuel rules monitored costs which have been deferred outside the symmetrical cost tolerance band authorized by a regulatory agency.",
        "label": "Deferred fuel rules monitored costs",
        "negatedLabel": "Deferred fuel rules monitored costs"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DeferredliabilitiesmemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeferredliabilitiesmemberMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Liabilities [Member]",
        "documentation": "Primary financial statement caption encompassing deferred liabilities.",
        "terseLabel": "Deferred tax liabilities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DeficientDeferredTaxesTaxCutsAndJobsActMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DeficientDeferredTaxesTaxCutsAndJobsActMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deficient Deferred Taxes, Tax Cuts And Jobs Act [Member]",
        "label": "Deficient Deferred Taxes, Tax Cuts And Jobs Act [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAccumulatedBenefitObligation",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated benefit obligation, end of year",
        "label": "Defined Benefit Plan, Accumulated Benefit Obligation",
        "verboseLabel": "Accumulated benefit obligation",
        "documentation": "Amount of actuarial present value of benefits attributed to employee service rendered, excluding assumptions about future compensation level."
       }
      }
     },
     "auth_ref": [
      "r622"
     ]
    },
    "us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanActualReturnOnPlanAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Increase (Decrease) for Actual Return (Loss)",
        "terseLabel": "Actual return in plan assets",
        "documentation": "Amount of increase (decrease) in plan assets of defined benefit plan from actual return (loss) determined by change in fair value of plan assets adjusted for contributions, benefit payments, and other expenses."
       }
      }
     },
     "auth_ref": [
      "r604",
      "r1145"
     ]
    },
    "us-gaap_DefinedBenefitPlanActuarialGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanActuarialGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Actuarial loss (gain)",
        "label": "Defined Benefit Plan, Benefit Obligation, Actuarial Gain (Loss)",
        "documentation": "Amount of gain (loss) from change in actuarial assumptions which (increases) decreases benefit obligation of defined benefit plan. Assumptions include, but are not limited to, interest, mortality, employee turnover, salary, and temporary deviation from substantive plan."
       }
      }
     },
     "auth_ref": [
      "r597"
     ]
    },
    "mgee_DefinedBenefitPlanAlternativeInvestmentsFairValueOfPlanAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DefinedBenefitPlanAlternativeInvestmentsFairValueOfPlanAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan Alternative Investments Fair Value Of Plan Assets",
        "terseLabel": "NAV of plan assets",
        "documentation": "Net asset value of plan assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAmortizationOfGainsLosses",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2": {
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Actuarial loss",
        "negatedLabel": "Actuarial loss",
        "label": "Defined Benefit Plan, Amortization of Gain (Loss)",
        "documentation": "Amount of gain (loss) recognized in net periodic benefit (cost) credit of defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r591",
      "r629",
      "r654",
      "r1145",
      "r1146"
     ]
    },
    "us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAmortizationOfPriorServiceCostCredit",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2": {
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prior service (credit) cost",
        "label": "Defined Benefit Plan, Amortization of Prior Service Cost (Credit)",
        "documentation": "Amount of prior service cost (credit) recognized in net periodic benefit cost (credit) of defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r591",
      "r630",
      "r655",
      "r1145",
      "r1146"
     ]
    },
    "us-gaap_DefinedBenefitPlanAmortizationOfTransitionAssetObligation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAmortizationOfTransitionAssetObligation",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2": {
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Amortization of Transition Asset (Obligation)",
        "negatedLabel": "Transition obligation",
        "documentation": "Amount of transition asset (obligation) recognized in net periodic benefit (cost) credit of defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r591",
      "r631",
      "r656"
     ]
    },
    "us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAmountsRecognizedInBalanceSheetAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Amounts for Asset (Liability) Recognized in Statement of Financial Position [Abstract]",
        "terseLabel": "Amounts recognized in the consolidated balance sheets to reflect funded status of plans [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1": {
       "parentTag": "us-gaap_DefinedBenefitPlanFundedStatusOfPlan",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 4.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets for Plan Benefits, Defined Benefit Plan",
        "terseLabel": "Pension and other postretirement benefit asset",
        "verboseLabel": "Long-term asset",
        "documentation": "Amount of asset, recognized in statement of financial position, for overfunded defined benefit pension and other postretirement plans."
       }
      }
     },
     "auth_ref": [
      "r231",
      "r589",
      "r590",
      "r612",
      "r1033",
      "r1145",
      "r1351"
     ]
    },
    "us-gaap_DefinedBenefitPlanAssumedHealthCareCostTrendRatesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAssumedHealthCareCostTrendRatesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Assumed Health Care Cost Trend Rates [Abstract]",
        "terseLabel": "Assumed health care cost trend rates:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Assumptions Used Calculating Benefit Obligation, Discount Rate",
        "terseLabel": "Discount rate",
        "documentation": "Weighted average rate for present value of future retirement benefits cash flows, used to determine benefit obligation of defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r636"
     ]
    },
    "us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Assumptions Used Calculating Benefit Obligation, Rate of Compensation Increase",
        "terseLabel": "Rate of compensation increase",
        "documentation": "Weighted average rate increase of compensation, used to determine benefit obligation of defined benefit plan. Plan includes, but is not limited to, pay-related defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r637"
     ]
    },
    "us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Assumptions Used Calculating Net Periodic Benefit Cost, Discount Rate",
        "terseLabel": "Discount rate",
        "documentation": "Weighted average rate for present value of future retirement benefits cash flows, used to determine net periodic benefit cost of defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r636"
     ]
    },
    "us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Assumptions Used Calculating Net Periodic Benefit Cost, Expected Long-Term Rate of Return on Plan Assets",
        "terseLabel": "Long-term rate of return",
        "documentation": "Weighted average rate of return on plan assets, reflecting average rate of earnings expected on existing plan assets and expected contributions, used to determine net periodic benefit cost of defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r638",
      "r659"
     ]
    },
    "us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Assumptions Used Calculating Net Periodic Benefit Cost, Rate of Compensation Increase",
        "terseLabel": "Rate of compensation increase",
        "documentation": "Weighted average rate of compensation increase used to determine net periodic benefit cost of defined benefit plan. Plan includes, but is not limited to, pay-related defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r637"
     ]
    },
    "us-gaap_DefinedBenefitPlanBenefitObligation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanBenefitObligation",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Projected benefit obligation, end of year",
        "periodEndLabel": "Benefit obligation as of December 31",
        "periodStartLabel": "Net benefit obligation as of January 1",
        "label": "Defined Benefit Plan, Benefit Obligation",
        "documentation": "Amount of actuarial present value of benefits attributed to service rendered by employee for defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r592"
     ]
    },
    "us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanBenefitObligationBenefitsPaid",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Benefit Obligation, Benefits Paid",
        "negatedLabel": "Gross benefits paid",
        "documentation": "Amount of payment to participant of defined benefit plan which decreases benefit obligation. For pension plan, payment includes, but is not limited to, pension benefits and death benefits. For other postretirement plan, payment includes, but is not limited to, prescription drug benefits, health care benefits, life insurance benefits, and legal, educational and advisory services."
       }
      }
     },
     "auth_ref": [
      "r599",
      "r662"
     ]
    },
    "us-gaap_DefinedBenefitPlanBenefitObligationContributionsByPlanParticipant": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanBenefitObligationContributionsByPlanParticipant",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Benefit Obligation, Contributions by Plan Participant",
        "negatedLabel": "Plan participants' contributions",
        "terseLabel": "Plan participants' contributions",
        "documentation": "Amount of contributions received by defined benefit plan from participant which increase benefit obligation."
       }
      }
     },
     "auth_ref": [
      "r596"
     ]
    },
    "us-gaap_DefinedBenefitPlanBenefitObligationPrescriptionDrugSubsidyReceipt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanBenefitObligationPrescriptionDrugSubsidyReceipt",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Less: federal subsidy on benefits paid",
        "label": "Defined Benefit Plan, Benefit Obligation, Prescription Drug Subsidy Receipt",
        "terseLabel": "Less: federal subsidy on benefits paid",
        "documentation": "Amount, before benefit payment, of receipt from prescription drug subsidy which increases benefit obligation of defined benefit postretirement plan."
       }
      }
     },
     "auth_ref": [
      "r592",
      "r662"
     ]
    },
    "us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanByPlanAssetCategoriesAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Category [Axis]",
        "documentation": "Information by defined benefit plan asset investment."
       }
      }
     },
     "auth_ref": [
      "r613",
      "r614",
      "r616",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r641",
      "r1143",
      "r1144",
      "r1145"
     ]
    },
    "us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanChangeInBenefitObligationRollForward",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Change in Benefit Obligation [Roll Forward]",
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Change in Fair Value of Plan Assets [Roll Forward]",
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanContributionsByEmployer": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanContributionsByEmployer",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Contributions by Employer",
        "terseLabel": "Employer contributions",
        "documentation": "Amount of contribution received by defined benefit plan from employer which increases plan assets."
       }
      }
     },
     "auth_ref": [
      "r606",
      "r616",
      "r658",
      "r1143",
      "r1144",
      "r1145",
      "r1146"
     ]
    },
    "mgee_DefinedBenefitPlanDeferredNetPeriodicBenefitCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DefinedBenefitPlanDeferredNetPeriodicBenefitCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan Deferred Net Periodic Benefit Cost",
        "terseLabel": "Deferred (recognized) pension and OPEB costs",
        "documentation": "Amount of net periodic benefit cost for pension and postretirement deferred (recognized prior year deferral) for the difference between estimated costs included in the rate settlement and actual costs incurred"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DefinedBenefitPlanDeferredPensionAndOtherPostretirementBenefitPlanCostsRecoveredAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DefinedBenefitPlanDeferredPensionAndOtherPostretirementBenefitPlanCostsRecoveredAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred Pension and OPRB Costs",
        "label": "Defined Benefit Plan, Deferred Pension and Other Postretirement Benefit Plan Costs Recovered [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanDisclosureLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan Disclosure [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanEffectOfOnePercentagePointChangeInAssumedHealthCareCostTrendRatesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanEffectOfOnePercentagePointChangeInAssumedHealthCareCostTrendRatesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Effect of One-Percentage-Point Change in Assumed Health Care Cost Trend Rate [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanEffectOfOnePercentagePointDecreaseOnAccumulatedPostretirementBenefitObligation1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanEffectOfOnePercentagePointDecreaseOnAccumulatedPostretirementBenefitObligation1",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Effect on other postretirement benefit obligation - 1% decrease",
        "label": "Defined Benefit Plan, Effect of One-Percentage-Point Decrease on Accumulated Postretirement Benefit Obligation",
        "documentation": "Amount of decrease in accumulated postretirement benefit obligation from one-percentage-point decrease in assumed health care cost trend rate."
       }
      }
     },
     "auth_ref": [
      "r1278"
     ]
    },
    "us-gaap_DefinedBenefitPlanEffectOfOnePercentagePointDecreaseOnServiceAndInterestCostComponents1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanEffectOfOnePercentagePointDecreaseOnServiceAndInterestCostComponents1",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Effect on total service and interest cost components - 1% decrease",
        "terseLabel": "Effect on total service and interest cost components - 1% decrease",
        "label": "Defined Benefit Plan, Effect of One-Percentage-Point Decrease on Service and Interest Cost Components",
        "documentation": "Amount of decrease in service and interest cost components of net periodic postretirement benefit cost from one-percentage-point decrease in assumed health care cost trend rate."
       }
      }
     },
     "auth_ref": [
      "r1278"
     ]
    },
    "us-gaap_DefinedBenefitPlanEffectOfOnePercentagePointIncreaseOnAccumulatedPostretirementBenefitObligation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanEffectOfOnePercentagePointIncreaseOnAccumulatedPostretirementBenefitObligation",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Effect of One-Percentage-Point Increase on Accumulated Postretirement Benefit Obligation",
        "documentation": "Amount of increase in accumulated postretirement benefit obligation from one-percentage-point increase in assumed health care cost trend rate."
       }
      }
     },
     "auth_ref": [
      "r1278"
     ]
    },
    "us-gaap_DefinedBenefitPlanEffectOfOnePercentagePointIncreaseOnServiceAndInterestCostComponents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanEffectOfOnePercentagePointIncreaseOnServiceAndInterestCostComponents",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Effect of One-Percentage-Point Increase on Service and Interest Cost Components",
        "terseLabel": "Effect on total service and interest cost components - 1% increase",
        "documentation": "Amount of increase in service and interest cost components of net periodic postretirement benefit cost from one-percentage-point increase in assumed health care cost trend rate."
       }
      }
     },
     "auth_ref": [
      "r1278"
     ]
    },
    "us-gaap_DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Expected Future Benefit Payment [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanEstimatedFutureEmployerContributionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanEstimatedFutureEmployerContributionsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Expected Future Employer Contributions [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Defined benefit plan expected future benefit payments, 2029-2033",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, after Year Five for Next Five Years",
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in five fiscal years after fifth fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r623"
     ]
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Defined benefit plan expected future benefit payments, 2024",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, Year One",
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in next fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r623"
     ]
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Defined benefit plan expected future benefit payments, 2028",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, Year Five",
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in fifth fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r623"
     ]
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Defined benefit plan expected future benefit payments, 2027",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, Year Four",
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in fourth fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r623"
     ]
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Defined benefit plan expected future benefit payments, 2026",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, Year Three",
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in third fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r623"
     ]
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Defined benefit plan expected future benefit payments, 2025",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, Year Two",
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in second fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r623"
     ]
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expected employer contributions, 2024",
        "label": "Defined Benefit Plan, Expected Future Employer Contributions, Next Fiscal Year",
        "documentation": "Amount of contribution expected to be received by defined benefit plan from employer in next fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r624",
      "r1146"
     ]
    },
    "us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanExpectedReturnOnPlanAssets",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2": {
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Expected return on assets",
        "label": "Defined Benefit Plan, Expected Return (Loss) on Plan Assets",
        "documentation": "Amount of expected return (loss) recognized in net periodic benefit (cost) credit, calculated based on expected long-term rate of return and market-related value of plan assets of defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r591",
      "r628",
      "r653",
      "r1145",
      "r1146"
     ]
    },
    "us-gaap_DefinedBenefitPlanFairValueOfPlanAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanFairValueOfPlanAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value of plan assets",
        "label": "Defined Benefit Plan, Plan Assets, Amount",
        "periodEndLabel": "Fair value of plan assets as of December 31",
        "periodStartLabel": "Fair value of plan assets as of January 1",
        "totalLabel": "Fair value of plan assets",
        "documentation": "Amount of asset segregated and restricted to provide benefit under defined benefit plan. Asset includes, but is not limited to, stock, bond, other investment, earning from investment, and contribution by employer and employee."
       }
      }
     },
     "auth_ref": [
      "r603",
      "r614",
      "r616",
      "r617",
      "r1143",
      "r1144",
      "r1145"
     ]
    },
    "us-gaap_DefinedBenefitPlanFundedStatusOfPlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanFundedStatusOfPlan",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Funded (Unfunded) Status of Plan",
        "terseLabel": "Funded Status as of December 31",
        "totalLabel": "Net asset (liability)",
        "documentation": "Amount of funded (unfunded) status of defined benefit plan, measured as difference between fair value of plan assets and benefit obligation. Includes, but is not limited to, overfunded (underfunded) status."
       }
      }
     },
     "auth_ref": [
      "r589",
      "r612",
      "r1145"
     ]
    },
    "us-gaap_DefinedBenefitPlanHealthCareCostTrendRateAssumedNextFiscalYear": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanHealthCareCostTrendRateAssumedNextFiscalYear",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Health Care Cost Trend Rate Assumed, Next Fiscal Year",
        "terseLabel": "Health care cost trend rate assumed for next year",
        "documentation": "Assumed rate, for next fiscal year, based on annual change in cost of health care cost benefits used to measure expected cost of benefits covered by defined benefit postretirement plan. Factors include, but are not limited to, estimate of health care inflation, change in health care utilization or delivery pattern, technological advances, and change in health status of participant. Excludes factors for change in composition of plan population by age and dependency status."
       }
      }
     },
     "auth_ref": [
      "r640"
     ]
    },
    "us-gaap_DefinedBenefitPlanInformationAboutPlanAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanInformationAboutPlanAssetsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Information about Plan Assets [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanInterestCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanInterestCost",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2": {
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Interest Cost",
        "terseLabel": "Interest cost",
        "documentation": "Amount of cost recognized for passage of time related to defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r591",
      "r595",
      "r627",
      "r652",
      "r1145",
      "r1146"
     ]
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCost",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net periodic benefit cost (credit)",
        "label": "Defined Benefit Plan, Net Periodic Benefit Cost (Credit)",
        "documentation": "Amount of net periodic benefit cost (credit) for defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r625",
      "r650",
      "r1145",
      "r1146"
     ]
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCostAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Net Periodic Benefit Cost (Credit) [Abstract]",
        "terseLabel": "Components of Net Periodic Benefit Cost [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationOfGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationOfGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleList",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Net Periodic Benefit (Cost) Credit, Amortization of Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of income or comprehensive income that includes amortization of gain (loss) component of net periodic benefit (cost) credit for defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r625",
      "r650"
     ]
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationOfPriorServiceCostCreditStatementOfIncomeOrComprehensiveIncomeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationOfPriorServiceCostCreditStatementOfIncomeOrComprehensiveIncomeExtensibleList",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Net Periodic Benefit Cost (Credit), Amortization of Prior Service Cost (Credit), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of income or comprehensive income that includes amortization of prior service cost (credit) component of net periodic benefit cost (credit) for defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r625",
      "r650"
     ]
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationOfTransitionAssetObligationStatementOfIncomeOrComprehensiveIncomeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationOfTransitionAssetObligationStatementOfIncomeOrComprehensiveIncomeExtensibleList",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Net Periodic Benefit (Cost) Credit, Amortization of Transition Asset (Obligation), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of income or comprehensive income that includes amortization of transition asset (obligation) component of net periodic benefit (cost) credit for defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r625",
      "r650"
     ]
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditExpectedReturnLossStatementOfIncomeOrComprehensiveIncomeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCostCreditExpectedReturnLossStatementOfIncomeOrComprehensiveIncomeExtensibleList",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Net Periodic Benefit (Cost) Credit, Expected Return (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of income or comprehensive income that includes expected return (loss) on plan asset component of net periodic benefit (cost) credit for defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r625",
      "r650"
     ]
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditInterestCostStatementOfIncomeOrComprehensiveIncomeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCostCreditInterestCostStatementOfIncomeOrComprehensiveIncomeExtensibleList",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Net Periodic Benefit Cost (Credit), Interest Cost, Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of income or comprehensive income that includes interest cost component of net periodic benefit cost (credit) for defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r625",
      "r650"
     ]
    },
    "us-gaap_DefinedBenefitPlanPensionPlanWithProjectedBenefitObligationInExcessOfPlanAssetsPlanAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanPensionPlanWithProjectedBenefitObligationInExcessOfPlanAssetsPlanAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Pension Plan with Projected Benefit Obligation in Excess of Plan Assets, Plan Assets",
        "terseLabel": "Fair value of plan assets with projected benefit obligation in excess of plan assets, end of year",
        "documentation": "Amount of plan asset for defined benefit pension plan with projected benefit obligation in excess of plan assets."
       }
      }
     },
     "auth_ref": [
      "r648",
      "r1145"
     ]
    },
    "us-gaap_DefinedBenefitPlanPensionPlanWithProjectedBenefitObligationInExcessOfPlanAssetsProjectedBenefitObligation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanPensionPlanWithProjectedBenefitObligationInExcessOfPlanAssetsProjectedBenefitObligation",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Pension Plan with Projected Benefit Obligation in Excess of Plan Assets, Projected Benefit Obligation",
        "terseLabel": "Projected benefit obligation with projected benefit obligation in excess of plan assets, end of year",
        "documentation": "Amount of projected benefit obligation for defined benefit pension plan with projected benefit obligation in excess of plan assets."
       }
      }
     },
     "auth_ref": [
      "r648",
      "r1145"
     ]
    },
    "us-gaap_DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan with Accumulated Benefit Obligation in Excess of Plan Assets [Abstract]",
        "terseLabel": "Accumulated benefit obligation in excess of plan assets [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAggregateAccumulatedBenefitObligation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAggregateAccumulatedBenefitObligation",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan with Accumulated Benefit Obligation in Excess of Plan Assets, Accumulated Benefit Obligation",
        "terseLabel": "Accumulated benefit obligation with accumulated benefit obligation in excess of plan assets, end of year",
        "documentation": "Amount of accumulated benefit obligation for defined benefit plan with accumulated benefit obligation in excess of plan assets."
       }
      }
     },
     "auth_ref": [
      "r648",
      "r649",
      "r1145"
     ]
    },
    "us-gaap_DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAggregateFairValueOfPlanAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAggregateFairValueOfPlanAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan with Accumulated Benefit Obligation in Excess of Plan Assets, Plan Assets",
        "terseLabel": "Fair value of plan assets with accumulated benefit obligation in excess of plan assets, end of year",
        "documentation": "Amount of plan asset for defined benefit plan with accumulated benefit obligation in excess of plan assets."
       }
      }
     },
     "auth_ref": [
      "r648",
      "r649",
      "r1145"
     ]
    },
    "us-gaap_DefinedBenefitPlanPlanAmendments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanPlanAmendments",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Benefit Obligation, Increase (Decrease) for Plan Amendment",
        "documentation": "Amount of increase (decrease) in benefit obligation of defined benefit plan from change in terms of existing plan or initiation of new plan."
       }
      }
     },
     "auth_ref": [
      "r600"
     ]
    },
    "us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanPlanAssetsBenefitsPaid",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Benefits Paid",
        "negatedLabel": "DefinedBenefitPlanBenefitObligationBenefitsPaid",
        "negatedTerseLabel": "Gross benefits paid",
        "documentation": "Amount of payment to participant under defined benefit plan which decreases plan assets. For pension plan, payment includes, but is not limited to, pension benefits and death benefits. For other postretirement plan, payment includes, but is not limited to, prescription drug benefits, health care benefits, life insurance benefits, and legal, educational and advisory services."
       }
      }
     },
     "auth_ref": [
      "r608",
      "r1284"
     ]
    },
    "us-gaap_DefinedBenefitPlanPlanAssetsContributionsByPlanParticipant": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanPlanAssetsContributionsByPlanParticipant",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Contributions by Plan Participant",
        "negatedLabel": "Plan participants' contributions",
        "terseLabel": "Plan participants' contributions",
        "documentation": "Amount of contributions received by defined benefit plan from participant which increases plan assets."
       }
      }
     },
     "auth_ref": [
      "r607"
     ]
    },
    "us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanPlanAssetsTargetAllocationPercentage",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Target Allocation, Percentage",
        "terseLabel": "Target Plan Asset Allocation",
        "documentation": "Percentage of target investment allocation to total plan assets. Includes, but is not limited to, percentage on weighted-average basis if more than one plan."
       }
      }
     },
     "auth_ref": [
      "r613",
      "r1145"
     ]
    },
    "us-gaap_DefinedBenefitPlanPlansWithBenefitObligationsInExcessOfPlanAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanPlansWithBenefitObligationsInExcessOfPlanAssetsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Pension Plan with Project Benefit Obligation in Excess of Plan Assets [Abstract]",
        "terseLabel": "Projected benefit obligation in excess of plan assets [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanServiceCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanServiceCost",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2": {
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Service Cost",
        "terseLabel": "Service cost",
        "documentation": "Amount of cost for actuarial present value of benefits attributed to service rendered by employee for defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r593",
      "r626",
      "r651",
      "r1145",
      "r1146"
     ]
    },
    "us-gaap_DefinedBenefitPlanSpecialTerminationBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanSpecialTerminationBenefits",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2": {
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Special termination benefits",
        "label": "Defined Benefit Plan, Benefit Obligation, Special and Contractual Termination Benefits",
        "documentation": "Amount of increase in benefit obligation for benefits provided to employees payable from defined benefit plan or payable upon retirement."
       }
      }
     },
     "auth_ref": [
      "r594"
     ]
    },
    "us-gaap_DefinedBenefitPlanUltimateHealthCareCostTrendRate1": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanUltimateHealthCareCostTrendRate1",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Ultimate Health Care Cost Trend Rate",
        "terseLabel": "Rate to which the cost trend rate is assumed to decline (the ultimate trend rate)",
        "documentation": "Ultimate trend rate for health care cost for defined benefit postretirement plan."
       }
      }
     },
     "auth_ref": [
      "r640"
     ]
    },
    "us-gaap_DefinedBenefitPlanWeightedAverageAssetAllocations": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanWeightedAverageAssetAllocations",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Actual Allocation, Percentage",
        "totalLabel": "Total",
        "terseLabel": "Actual Plan Asset Allocation",
        "documentation": "Percentage of actual investment allocation to total plan assets. Includes, but is not limited to, percentage on weighted-average basis if more than one plan."
       }
      }
     },
     "auth_ref": [
      "r1279"
     ]
    },
    "us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingBenefitObligationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingBenefitObligationAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Weighted Average Assumptions Used in Calculating Benefit Obligation [Abstract]",
        "terseLabel": "Weighted-average assumptions used to determine benefit obligations:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Weighted Average Assumptions Used in Calculating Net Periodic Benefit Cost [Abstract]",
        "terseLabel": "Weighted-average assumptions used to determine periodic cost:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanYearHealthCareCostTrendRateReachesUltimateTrendRate": {
     "xbrltype": "gYearListItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanYearHealthCareCostTrendRateReachesUltimateTrendRate",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Year Health Care Cost Trend Rate Reaches Ultimate Trend Rate",
        "terseLabel": "Year that the rate reaches the ultimate trend rate",
        "documentation": "Year ultimate health care cost trend rate is expected to be reached, in YYYY format."
       }
      }
     },
     "auth_ref": [
      "r640"
     ]
    },
    "us-gaap_DefinedContributionPlanCostRecognized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedContributionPlanCostRecognized",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Contribution Plan, Cost",
        "terseLabel": "Defined contribution costs",
        "documentation": "Amount of cost for defined contribution plan."
       }
      }
     },
     "auth_ref": [
      "r663"
     ]
    },
    "mgee_Definedbenefitplanestimatednetfuturebenefitpaymentsabstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Definedbenefitplanestimatednetfuturebenefitpaymentsabstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Benefit Payments, Net"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Definedbenefitplanexpectednetfuturebenefitpaymentsfivefiscalyearsthereafter": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Definedbenefitplanexpectednetfuturebenefitpaymentsfivefiscalyearsthereafter",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined benefit plan expected net future benefit payments, 2029-2033",
        "documentation": "The amount of the benefits expected to be paid, net of the prescription drug subsidy receipts expected to be received in the five fiscal years thereafter (the aggregate net amount of benefits expected to be paid in years 6 through 10 after the date of the latest statement of financial position)."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Definedbenefitplanexpectednetfuturebenefitpaymentsnexttwelvemonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Definedbenefitplanexpectednetfuturebenefitpaymentsnexttwelvemonths",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined benefit plan expected net future benefit payments, 2024",
        "documentation": "The amount of the benefits expected to be paid, net of the prescription drug subsidy receipts expected to be received in Year 1 after the balance sheet date."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Definedbenefitplanexpectednetfuturebenefitpaymentsyearfive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Definedbenefitplanexpectednetfuturebenefitpaymentsyearfive",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined benefit plan expected net future benefit payments, 2028",
        "documentation": "The amount of the benefits expected to be paid, net of the prescription drug subsidy receipts expected to be received in Year 5 after the balance sheet date."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Definedbenefitplanexpectednetfuturebenefitpaymentsyearfour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Definedbenefitplanexpectednetfuturebenefitpaymentsyearfour",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined benefit plan expected net future benefit payments, 2027",
        "documentation": "The amount of the benefits expected to be paid, net of the prescription drug subsidy receipts expected to be received in Year 4 after the balance sheet date."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Definedbenefitplanexpectednetfuturebenefitpaymentsyearthree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Definedbenefitplanexpectednetfuturebenefitpaymentsyearthree",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined benefit plan expected net future benefit payments, 2026",
        "documentation": "The amount of the benefits expected to be paid, net of the prescription drug subsidy receipts expected to be received in Year 3 after the balance sheet date."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Definedbenefitplanexpectednetfuturebenefitpaymentsyeartwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Definedbenefitplanexpectednetfuturebenefitpaymentsyeartwo",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined benefit plan expected net future benefit payments, 2025",
        "documentation": "The amount of the benefits expected to be paid, net of the prescription drug subsidy receipts expected to be received in Year 2 after the balance sheet date."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DepreciationRatesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DepreciationRatesTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of composite straight-line depreciation rates by segment.",
        "terseLabel": "Straight-Line Depreciation Rates",
        "label": "Depreciation Rates Table [Text Block]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeAssetCollateralObligationToReturnCashOffset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeAssetCollateralObligationToReturnCashOffset",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2": {
       "parentTag": "us-gaap_DerivativeAssets",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Asset, Subject to Master Netting Arrangement, Collateral, Obligation to Return Cash, Offset Against Derivative Asset",
        "negatedLabel": "Collateral posted against derivative positions",
        "terseLabel": "Collateral posted against derivative positions",
        "verboseLabel": "Derivative asset, collateral offset",
        "documentation": "Amount of obligation to return cash collateral under master netting arrangements offset against derivative assets."
       }
      }
     },
     "auth_ref": [
      "r15",
      "r33"
     ]
    },
    "us-gaap_DerivativeAssetFairValueGrossLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeAssetFairValueGrossLiability",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2": {
       "parentTag": "us-gaap_DerivativeAssets",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Gross amounts offset in balance sheet",
        "label": "Derivative Asset, Subject to Master Netting Arrangement, Liability Offset",
        "documentation": "Fair value of liability associated with financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset."
       }
      }
     },
     "auth_ref": [
      "r33",
      "r39",
      "r128",
      "r1091",
      "r1092"
     ]
    },
    "us-gaap_DerivativeAssetStatementOfFinancialPositionExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeAssetStatementOfFinancialPositionExtensibleEnumeration",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Asset, Statement of Financial Position [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of financial position that includes derivative asset."
       }
      }
     },
     "auth_ref": [
      "r760"
     ]
    },
    "us-gaap_DerivativeAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Asset",
        "totalLabel": "Net amount presented in balance sheet",
        "terseLabel": "Derivative assets, net",
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets not subject to a master netting arrangement and not elected to be offset."
       }
      }
     },
     "auth_ref": [
      "r316",
      "r319",
      "r810",
      "r1001",
      "r1002",
      "r1003",
      "r1005",
      "r1006",
      "r1007",
      "r1008",
      "r1009",
      "r1011",
      "r1012",
      "r1026",
      "r1027",
      "r1085",
      "r1088",
      "r1090",
      "r1091",
      "r1093",
      "r1094",
      "r1118",
      "r1164",
      "r1357"
     ]
    },
    "mgee_DerivativeCollateralRequiredToPostAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DerivativeCollateralRequiredToPostAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Collateral Required To Post [Abstract]",
        "terseLabel": "Derivative collateral required to be posted for ten-year PPA [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DerivativeCollateralRequiredToPostMaximum": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DerivativeCollateralRequiredToPostMaximum",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Collateral Required To Post, Maximum",
        "terseLabel": "Maximum collateral that may be required to be posted",
        "documentation": "Maximum collateral that may be required to be posted."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DerivativeCollateralRequiredToPostMinimum": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DerivativeCollateralRequiredToPostMinimum",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Collateral Required To Post, Minimum",
        "terseLabel": "Minimum collateral that may be required to be posted",
        "documentation": "Minimum collateral that may be required to be posted."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeCollateralRightToReclaimCash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeCollateralRightToReclaimCash",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Liability, Subject to Master Netting Arrangement, Collateral, Right to Reclaim Cash Not Offset",
        "terseLabel": "Derivative, right to reclaim collateral (receivable)",
        "documentation": "Amount of right to receive cash collateral under master netting arrangements that have not been offset against derivative liabilities."
       }
      }
     },
     "auth_ref": [
      "r37",
      "r136",
      "r317",
      "r1116"
     ]
    },
    "us-gaap_DerivativeContractTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeContractTypeDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Contract [Domain]",
        "documentation": "Financial instrument or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset."
       }
      }
     },
     "auth_ref": [
      "r1009",
      "r1012",
      "r1025",
      "r1026",
      "r1027",
      "r1029",
      "r1030",
      "r1031",
      "r1032",
      "r1035",
      "r1036",
      "r1037",
      "r1038",
      "r1053",
      "r1054",
      "r1055",
      "r1056",
      "r1059",
      "r1060",
      "r1061",
      "r1062",
      "r1085",
      "r1086",
      "r1090",
      "r1093",
      "r1162",
      "r1164"
     ]
    },
    "us-gaap_DerivativeFairValueOfDerivativeAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeFairValueOfDerivativeAsset",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2": {
       "parentTag": "us-gaap_DerivativeAssets",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Derivative Asset, Fair Value, Gross Asset, Total",
        "label": "Derivative Asset, Subject to Master Netting Arrangement, before Offset",
        "terseLabel": "Asset Derivatives, fair value, gross basis",
        "verboseLabel": "Gross amounts",
        "documentation": "Fair value, before effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets elected not to be offset. Excludes assets not subject to a master netting arrangement."
       }
      }
     },
     "auth_ref": [
      "r34",
      "r128",
      "r186",
      "r315",
      "r1118"
     ]
    },
    "us-gaap_DerivativeFairValueOfDerivativeLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeFairValueOfDerivativeLiability",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3": {
       "parentTag": "us-gaap_DerivativeLiabilities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Derivative Liability, Fair Value, Gross Liability, Total",
        "label": "Derivative Liability, Subject to Master Netting Arrangement, before Offset",
        "terseLabel": "Liability Derivatives, fair value, gross basis",
        "verboseLabel": "Gross amounts",
        "documentation": "Fair value, before effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities elected not to be offset. Excludes liabilities not subject to a master netting arrangement."
       }
      }
     },
     "auth_ref": [
      "r34",
      "r128",
      "r186",
      "r315",
      "r1118"
     ]
    },
    "us-gaap_DerivativeFairValueOfDerivativeNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeFairValueOfDerivativeNet",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Derivative, Fair Value, Net, Total",
        "label": "Derivative, Fair Value, Net",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "terseLabel": "Derivative fair value, net",
        "documentation": "Fair value of the assets less the liabilities of a derivative or group of derivatives."
       }
      }
     },
     "auth_ref": [
      "r810"
     ]
    },
    "us-gaap_DerivativeFairValueOfDerivativeNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeFairValueOfDerivativeNetAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Fair Value, Net [Abstract]",
        "terseLabel": "Derivative Fair Values [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeGainLossOnDerivativeNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeGainLossOnDerivativeNet",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Derivative, Gain (Loss) on Derivative, Net, Total",
        "label": "Derivative, Gain (Loss) on Derivative, Net",
        "terseLabel": "Realized losses (gains) on income statement",
        "negatedLabel": "Realized (loss) gain reclassified to income statement",
        "negatedTerseLabel": "Realized losses (gains) on income statement",
        "documentation": "Amount of increase (decrease) in the fair value of derivatives recognized in the income statement."
       }
      }
     },
     "auth_ref": [
      "r1324"
     ]
    },
    "us-gaap_DerivativeGainLossOnDerivativeNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeGainLossOnDerivativeNetAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Gain (Loss) on Derivative, Net [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of income or comprehensive income that includes gain (loss) from derivative."
       }
      }
     },
     "auth_ref": [
      "r1324"
     ]
    },
    "us-gaap_DerivativeInstrumentRiskAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeInstrumentRiskAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instrument [Axis]",
        "documentation": "Information by type of derivative contract."
       }
      }
     },
     "auth_ref": [
      "r126",
      "r129",
      "r131",
      "r132",
      "r1009",
      "r1012",
      "r1025",
      "r1026",
      "r1027",
      "r1029",
      "r1030",
      "r1031",
      "r1032",
      "r1035",
      "r1036",
      "r1037",
      "r1038",
      "r1053",
      "r1054",
      "r1055",
      "r1056",
      "r1059",
      "r1060",
      "r1061",
      "r1062",
      "r1085",
      "r1086",
      "r1090",
      "r1093",
      "r1118",
      "r1162",
      "r1164"
     ]
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative and Hedging Instruments",
        "label": "Derivative Instruments and Hedging Activities Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstruments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments and Hedging Activities Disclosure [Text Block]",
        "documentation": "The entire disclosure for derivative instruments and hedging activities including, but not limited to, risk management strategies, non-hedging derivative instruments, assets, liabilities, revenue and expenses, and methodologies and assumptions used in determining the amounts."
       }
      }
     },
     "auth_ref": [
      "r227",
      "r763",
      "r776"
     ]
    },
    "us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeInstrumentsGainLossByHedgingRelationshipAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedging Relationship [Axis]",
        "documentation": "Information by type of hedging relationship."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r126",
      "r131"
     ]
    },
    "us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments, Gain (Loss) [Table]",
        "documentation": "Disclosure of information about the location and amount of derivative instruments and nonderivative instruments designated as hedging instruments reported before netting adjustments, and the amount of gain (loss) on derivative instruments and nonderivative instruments designated and qualified as hedging instruments."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r126",
      "r131",
      "r132",
      "r137",
      "r138",
      "r761"
     ]
    },
    "us-gaap_DerivativeInstrumentsGainLossLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeInstrumentsGainLossLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments, Gain (Loss) [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r761"
     ]
    },
    "us-gaap_DerivativeLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Liability",
        "totalLabel": "Net amount presented in the balance sheet",
        "terseLabel": "Derivative liabilities, net",
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities not subject to a master netting arrangement and not elected to be offset."
       }
      }
     },
     "auth_ref": [
      "r316",
      "r319",
      "r810",
      "r1001",
      "r1002",
      "r1003",
      "r1005",
      "r1007",
      "r1008",
      "r1009",
      "r1011",
      "r1012",
      "r1035",
      "r1037",
      "r1038",
      "r1086",
      "r1087",
      "r1088",
      "r1090",
      "r1091",
      "r1093",
      "r1094",
      "r1118",
      "r1357"
     ]
    },
    "us-gaap_DerivativeLiabilitiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeLiabilitiesCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Liability, Current",
        "terseLabel": "Other current liabilities",
        "verboseLabel": "Derivative liabilities",
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled within one year or normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset."
       }
      }
     },
     "auth_ref": [
      "r316"
     ]
    },
    "us-gaap_DerivativeLiabilitiesNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeLiabilitiesNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Derivative liabilities",
        "terseLabel": "Other deferred liabilities",
        "label": "Derivative Liability, Noncurrent",
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled after one year or the normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset."
       }
      }
     },
     "auth_ref": [
      "r316"
     ]
    },
    "us-gaap_DerivativeLiabilityCollateralRightToReclaimCashOffset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeLiabilityCollateralRightToReclaimCashOffset",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3": {
       "parentTag": "us-gaap_DerivativeLiabilities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Liability, Subject to Master Netting Arrangement, Collateral, Right to Reclaim Cash Offset",
        "verboseLabel": "Collateral posted against derivative positions",
        "negatedLabel": "Collateral posted against derivative positions",
        "terseLabel": "Derivative, right to reclaim collateral",
        "documentation": "Amount of right to receive cash collateral under master netting arrangements offset against derivative liabilities."
       }
      }
     },
     "auth_ref": [
      "r15",
      "r33"
     ]
    },
    "us-gaap_DerivativeLiabilityFairValueGrossAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeLiabilityFairValueGrossAsset",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3": {
       "parentTag": "us-gaap_DerivativeLiabilities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Liability, Subject to Master Netting Arrangement, Asset Offset",
        "negatedLabel": "Gross amounts offset in balance sheet",
        "documentation": "Fair value of asset associated with financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset."
       }
      }
     },
     "auth_ref": [
      "r33",
      "r39",
      "r128",
      "r1091",
      "r1092",
      "r1116"
     ]
    },
    "us-gaap_DerivativeLiabilityStatementOfFinancialPositionExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeLiabilityStatementOfFinancialPositionExtensibleEnumeration",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Liability, Statement of Financial Position [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of financial position that includes derivative liability."
       }
      }
     },
     "auth_ref": [
      "r760"
     ]
    },
    "mgee_DerivativeMaximumTermOfHedgingContract": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DerivativeMaximumTermOfHedgingContract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Maximum Term Of Hedging Contract",
        "documentation": "Maximum term of derivative hedging contract.",
        "terseLabel": "Maximum term of derivative hedging contract"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeNetLiabilityPositionAggregateFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeNetLiabilityPositionAggregateFairValue",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Net Liability Position, Aggregate Fair Value",
        "verboseLabel": "Derivative, net liability position of counterparties",
        "documentation": "The aggregate fair value amounts of derivative instruments that contain credit-risk-related contingent features that are in a net liability position at the end of the reporting period. For nonderivative instruments that are designated and qualify as hedging instruments, the fair value amounts are the carrying value of the nonderivative hedging instrument, including the adjustment for the foreign currency transaction gain (loss) on that instrument."
       }
      }
     },
     "auth_ref": [
      "r133"
     ]
    },
    "mgee_DerivativeNonmonetaryNotionalAmountDecathermMeasure": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DerivativeNonmonetaryNotionalAmountDecathermMeasure",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nominal decatherm measure used to calculate payments on a derivative instrument.",
        "terseLabel": "Notional amount, decatherm measure (in Dth)",
        "label": "Derivative, Nonmonetary Notional Amount, Decatherm Measure"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeNonmonetaryNotionalAmountEnergyMeasure": {
     "xbrltype": "energyItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeNonmonetaryNotionalAmountEnergyMeasure",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Nonmonetary Notional Amount, Energy Measure",
        "terseLabel": "Notional amount, energy measure (in MWh)",
        "documentation": "Nominal energy measure used to calculate payments on a derivative instrument."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DerivativeNonmonetaryNotionalAmountPowerMeasure": {
     "xbrltype": "powerItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DerivativeNonmonetaryNotionalAmountPowerMeasure",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Nonmonetary Notional Amount, Power Measure",
        "documentation": "Nominal power measure used to calculate payments on a derivative instrument.",
        "terseLabel": "Notional amount, power measure (in MW)"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DerivativeRealizedGainLossDeferred": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DerivativeRealizedGainLossDeferred",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Change in realized derivative gains and losses deferred.",
        "negatedLabel": "Realized (loss) gain reclassified to a deferred account",
        "label": "Derivative, Realized Gain (Loss), Deferred"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DerivativeUnrealizedRealizedGainsLossesOnBalanceSheetLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DerivativeUnrealizedRealizedGainsLossesOnBalanceSheetLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrealized and realized gains (losses) on balance sheet [Line Items]",
        "label": "Derivative Unrealized Realized Gains Losses On Balance Sheet [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativesFairValueLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativesFairValueLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivatives, Fair Value [Line Items]",
        "terseLabel": "Derivative instruments at fair value on the balance sheet [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativesMethodsOfAccountingHedgingDerivatives": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativesMethodsOfAccountingHedgingDerivatives",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivatives, Methods of Accounting, Hedging Derivatives [Policy Text Block]",
        "terseLabel": "Derivative Hedging",
        "documentation": "Disclosure of accounting policy for derivatives used in hedging relationships, which may include how gains or losses are recognized and presented in the financial statements, and amortization policies for deferred amounts."
       }
      }
     },
     "auth_ref": [
      "r762",
      "r1325"
     ]
    },
    "us-gaap_DerivativesOffsettingFairValueAmountsPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativesOffsettingFairValueAmountsPolicy",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivatives, Offsetting Fair Value Amounts, Policy [Policy Text Block]",
        "terseLabel": "Derivative Netting",
        "documentation": "Disclosure of accounting policy for offsetting or not offsetting fair value amounts recognized for derivative instruments against such amounts recognized for the right to reclaim cash collateral (a receivable) or the obligation to return cash collateral (a payable) arising from derivative instruments recognized at fair value."
       }
      }
     },
     "auth_ref": [
      "r135"
     ]
    },
    "us-gaap_DerivativesPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativesPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivatives, Policy [Policy Text Block]",
        "terseLabel": "Derivative and Hedging Instruments",
        "documentation": "Disclosure of accounting policy for its derivative instruments and hedging activities."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r120",
      "r121",
      "r124",
      "r135",
      "r348"
     ]
    },
    "mgee_DirectorIncentiveAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DirectorIncentiveAgreementMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Director Incentive Agreement [Member]",
        "documentation": "Plan for Director Incentive Agreement as described in our report.",
        "terseLabel": "2013 Director Incentive Agreement [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DisaggregationOfRevenueLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisaggregationOfRevenueLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disaggregation of Revenue [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r586",
      "r1136",
      "r1137",
      "r1138",
      "r1139",
      "r1140",
      "r1141",
      "r1142"
     ]
    },
    "us-gaap_DisaggregationOfRevenueTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisaggregationOfRevenueTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disaggregation of Revenue [Table]",
        "documentation": "Disclosure of information about disaggregation of revenue into categories depicting how nature, amount, timing, and uncertainty of revenue and cash flows are affected by economic factor."
       }
      }
     },
     "auth_ref": [
      "r586",
      "r1136",
      "r1137",
      "r1138",
      "r1139",
      "r1140",
      "r1141",
      "r1142"
     ]
    },
    "us-gaap_DisaggregationOfRevenueTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisaggregationOfRevenueTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disaggregation of Revenue [Table Text Block]",
        "terseLabel": "Disaggregation of Revenue",
        "documentation": "Tabular disclosure of disaggregation of revenue into categories depicting how nature, amount, timing, and uncertainty of revenue and cash flows are affected by economic factor."
       }
      }
     },
     "auth_ref": [
      "r1276"
     ]
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ShareBasedCompensation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement [Text Block]",
        "documentation": "The entire disclosure for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r669",
      "r672",
      "r703",
      "r704",
      "r705",
      "r1154"
     ]
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DisclosureOfExpectedGrossPrescriptionDrugSubsidyReceiptsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisclosureOfExpectedGrossPrescriptionDrugSubsidyReceiptsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Expected Future Prescription Drug Subsidy Receipt [Abstract]",
        "terseLabel": "Medicare Part D Subsidies"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Share-Based Compensation Arrangements by Share-Based Payment Award [Table Text Block]",
        "terseLabel": "Performance Unit Graded Vesting Schedule",
        "documentation": "Tabular disclosure of share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r101"
     ]
    },
    "mgee_DividendRestrictionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DividendRestrictionsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividend Restrictions",
        "label": "Dividend Restrictions [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DividendsCommonStockCash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DividendsCommonStockCash",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends, Common Stock, Cash",
        "negatedLabel": "Common stock dividends declared",
        "terseLabel": "Common stock dividends declared",
        "documentation": "Amount of paid and unpaid common stock dividends declared with the form of settlement in cash."
       }
      }
     },
     "auth_ref": [
      "r213"
     ]
    },
    "mgee_DividendsFromAffiliatesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DividendsFromAffiliatesLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Dividends from Affiliates [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DividendsFromAffiliatesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DividendsFromAffiliatesTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends From Affiliates [Table]",
        "documentation": "A table or schedule providing information pertaining to dividends from affiliates."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DividendsPaidinkind": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DividendsPaidinkind",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Dividends, Paid-in-kind, Total",
        "label": "Dividends, Paid-in-kind",
        "terseLabel": "Dividend in kind to parent",
        "negatedTerseLabel": "Dividend in kind to parent",
        "verboseLabel": "Dividend in kind from affiliate",
        "documentation": "Amount of paid and unpaid paid-in-kind dividends (PIK) declared for classes of stock, for example, but not limited to, common and preferred."
       }
      }
     },
     "auth_ref": [
      "r10",
      "r213"
     ]
    },
    "us-gaap_DividendsReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DividendsReceivable",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends Receivable",
        "terseLabel": "Dividend receivable from ATC",
        "documentation": "Carrying amount as of the balance sheet date of dividends declared but not received."
       }
      }
     },
     "auth_ref": [
      "r1223",
      "r1361"
     ]
    },
    "mgee_DocumentAndEntityInformationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DocumentAndEntityInformationLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document And Entity Information [Line Items]",
        "terseLabel": "Cover [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DocumentAndEntityInformationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DocumentAndEntityInformationTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document and Entity Information [Table]",
        "documentation": "Container to support the formal attachment of each official or unofficial, public or private document as part of a submission package and to assemble all relevant information about each entity associated with the document instance."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentAnnualReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentAnnualReport",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Annual Report",
        "documentation": "Boolean flag that is true only for a form used as an annual report."
       }
      }
     },
     "auth_ref": [
      "r1180",
      "r1181",
      "r1182"
     ]
    },
    "dei_DocumentFinStmtErrorCorrectionFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFinStmtErrorCorrectionFlag",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Financial Statement Error Correction [Flag]",
        "documentation": "Indicates whether any of the financial statement period in the filing include a restatement due to error correction."
       }
      }
     },
     "auth_ref": [
      "r1180",
      "r1181",
      "r1182",
      "r1184"
     ]
    },
    "dei_DocumentFiscalPeriodFocus": {
     "xbrltype": "fiscalPeriodItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFiscalPeriodFocus",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Period Focus",
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3.  1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentFiscalYearFocus": {
     "xbrltype": "gYearItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFiscalYearFocus",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Year Focus",
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentInformationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentInformationTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentAuditInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Information [Table]",
        "documentation": "Container to support the formal attachment of each official or unofficial, public or private document as part of a submission package."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentPeriodEndDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Period End Date",
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period.  The format of the date is YYYY-MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentTransitionReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentTransitionReport",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Transition Report",
        "documentation": "Boolean flag that is true only for a form used as a transition report."
       }
      }
     },
     "auth_ref": [
      "r1183"
     ]
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentType",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Type",
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentsIncorporatedByReferenceTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentsIncorporatedByReferenceTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Documents Incorporated By Reference",
        "label": "Documents Incorporated by Reference [Text Block]",
        "documentation": "Documents incorporated by reference."
       }
      }
     },
     "auth_ref": [
      "r1178"
     ]
    },
    "us-gaap_DomesticCountryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DomesticCountryMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Domestic Tax Authority [Member]",
        "terseLabel": "Federal",
        "documentation": "Designated tax department of the government that is entitled to levy and collect income taxes from the entity in its country of domicile."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DomesticLargeCapEquitySecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DomesticLargeCapEquitySecuritiesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Domestic Large Cap Equity Securities [Member]",
        "terseLabel": "U.S. Large Cap [Member]",
        "documentation": "Domestic Large Cap Equity Securities"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DomesticMidCapEquitySecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DomesticMidCapEquitySecuritiesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Domestic Mid Cap Equity Securities [Member]",
        "documentation": "Domestic Mid Cap Equity Securities",
        "terseLabel": "U.S. Mid Cap [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_DomesticSmallCapEquitySecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "DomesticSmallCapEquitySecuritiesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Domestic Small Cap Equity Securities [Member]",
        "terseLabel": "U.S. Small Cap [Member]",
        "documentation": "Domestic Small Cap Equity Securities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareBasic": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareBasic",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Basic",
        "totalLabel": "Earnings Per Share, Basic, Total",
        "terseLabel": "Earnings Per Share of Common Stock, Basic",
        "documentation": "The amount of net income (loss) for the period per each share of common stock or unit outstanding during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r331",
      "r368",
      "r369",
      "r371",
      "r372",
      "r374",
      "r380",
      "r382",
      "r384",
      "r385",
      "r386",
      "r387",
      "r788",
      "r789",
      "r926",
      "r948",
      "r1122"
     ]
    },
    "us-gaap_EarningsPerShareDiluted": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareDiluted",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Diluted",
        "totalLabel": "Earnings Per Share, Diluted, Total",
        "terseLabel": "Earnings Per Share of Common Stock, Diluted",
        "documentation": "The amount of net income (loss) for the period available to each share of common stock or common unit outstanding during the reporting period and to each share or unit that would have been outstanding assuming the issuance of common shares or units for all dilutive potential common shares or units outstanding during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r331",
      "r368",
      "r369",
      "r371",
      "r372",
      "r374",
      "r382",
      "r384",
      "r385",
      "r386",
      "r387",
      "r788",
      "r789",
      "r926",
      "r948",
      "r1122"
     ]
    },
    "us-gaap_EffectiveIncomeTaxRateContinuingOperations": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectiveIncomeTaxRateContinuingOperations",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, Percent",
        "terseLabel": "Effective income tax rate",
        "totalLabel": "Effective income tax rate",
        "documentation": "Percentage of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations."
       }
      }
     },
     "auth_ref": [
      "r721"
     ]
    },
    "us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, Percent [Abstract]",
        "terseLabel": "Effective Income Tax Rate [Line Items]",
        "verboseLabel": "Reconciliation of tax provision to statutory federal income tax rate [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, at Federal Statutory Income Tax Rate, Percent",
        "terseLabel": "Statutory federal income tax rate",
        "documentation": "Percentage of domestic federal statutory tax rate applicable to pretax income (loss)."
       }
      }
     },
     "auth_ref": [
      "r344",
      "r721",
      "r746"
     ]
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": -1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, Change in Enacted Tax Rate, Percent",
        "negatedLabel": "Amortization of utility excess deferred tax",
        "terseLabel": "Amortization of utility excess deferred tax",
        "documentation": "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 income tax rates."
       }
      }
     },
     "auth_ref": [
      "r746",
      "r1315"
     ]
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationDeductionsOther": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectiveIncomeTaxRateReconciliationDeductionsOther",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "AFUDC equity, net",
        "label": "Effective Income Tax Rate Reconciliation, Deduction, Other, Percent",
        "terseLabel": "AFUDC equity, net",
        "documentation": "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 deductions."
       }
      }
     },
     "auth_ref": [
      "r1315",
      "r1323"
     ]
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Effective Income Tax Rate Reconciliation, Other Reconciling Items, Percent, Total",
        "label": "Effective Income Tax Rate Reconciliation, Other Reconciling Items, Percent",
        "negatedLabel": "Other, net, individually significant",
        "terseLabel": "Other, net, individually insignificant",
        "documentation": "Percentage of the difference, between reported income tax expense (benefit) and the expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations, that is attributable to tax exempt income, equity in earnings (loss) of an unconsolidated subsidiary, minority interest income (expense), tax holiday, disposition of a business, disposition of an asset, repatriation of foreign earnings, repatriation of foreign earnings jobs creation act of 2004, change in enacted tax rate, prior year income taxes, change in deferred tax asset valuation allowance, and other adjustments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationPriorYearIncomeTaxes": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectiveIncomeTaxRateReconciliationPriorYearIncomeTaxes",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, Prior Year Income Taxes, Percent",
        "negatedLabel": "Federal income tax rate reduction",
        "documentation": "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 revisions of previously reported income tax expense."
       }
      }
     },
     "auth_ref": [
      "r1315",
      "r1323"
     ]
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, State and Local Income Taxes, Percent",
        "terseLabel": "State income taxes, net of federal benefit",
        "documentation": "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 applicable to state and local income tax expense (benefit), net of federal tax expense (benefit)."
       }
      }
     },
     "auth_ref": [
      "r1315",
      "r1323"
     ]
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Amortized investment tax credits",
        "label": "Effective Income Tax Rate Reconciliation, Tax Credit, Investment, Percent",
        "terseLabel": "Amortized investment tax credits",
        "documentation": "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 investment tax credit."
       }
      }
     },
     "auth_ref": [
      "r1315",
      "r1323"
     ]
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsOther": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectiveIncomeTaxRateReconciliationTaxCreditsOther",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Credit for electricity from wind energy",
        "label": "Effective Income Tax Rate Reconciliation, Tax Credit, Other, Percent",
        "terseLabel": "Credit for electricity from wind energy",
        "documentation": "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 tax credits."
       }
      }
     },
     "auth_ref": [
      "r1315",
      "r1323"
     ]
    },
    "mgee_EffectsOfTheTaxCutsAndJobsActAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "EffectsOfTheTaxCutsAndJobsActAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial statement tax effects of the Tax Cuts and Jobs Act.",
        "label": "Effects Of The Tax Cuts And Jobs Act [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ElectricMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ElectricMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Corporate And Other Member",
        "documentation": "Electric member.",
        "label": "Electric [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ElectricRateProceedingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ElectricRateProceedingMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Electric Rate Proceeding [Member]",
        "label": "Electric Rate Proceeding [Member]",
        "documentation": "Electric Rate Proceeding"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ElectricTransmissionCostsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ElectricTransmissionCostsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Electric Transmission Costs [Member]",
        "documentation": "Electric Transmission Costs [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Electricfuelcredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Electricfuelcredit",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Electric fuel credit",
        "documentation": "The amount of fuel savings approved by the PSCW for an electric fuel credit to be returned to customers via a bill credit.",
        "terseLabel": "Electric fuel credit ($)"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Electricfuelcreditperkwh": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Electricfuelcreditperkwh",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Electric fuel credit per kWh",
        "documentation": "The approved amount ($/kWh) for an electric fuel credit to be returned to customers via a bill credit.",
        "terseLabel": "Electric fuel credit (per kWh)"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Electricfuelmonitoredcosts2016Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Electricfuelmonitoredcosts2016Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Electric Fuel Monitored Costs, 2016 [Member]",
        "terseLabel": "Electric Fuel Monitored Costs, 2016"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ElectricfuelmonitoredcostsyearAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ElectricfuelmonitoredcostsyearAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Electric Fuel Monitored Costs Year [Axis]",
        "documentation": "Electric Fuel Monitored Costs Year"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ElectricfuelmonitoredcostsyearDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ElectricfuelmonitoredcostsyearDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Electric Fuel Monitored Costs Year [Domain]",
        "documentation": "Electric Fuel Monitored Costs Year"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ElectricityGenerationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ElectricityGenerationMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Electricity, Generation [Member]",
        "documentation": "Process of producing electric energy by transforming other forms of energy, including, but not limited to, nuclear, fossil fuel, solar, geothermal, hydro and wind."
       }
      }
     },
     "auth_ref": [
      "r1277"
     ]
    },
    "us-gaap_ElectricityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ElectricityMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Electricity [Member]",
        "documentation": "Generation, transmission and distribution of electric energy."
       }
      }
     },
     "auth_ref": [
      "r1277"
     ]
    },
    "mgee_ElmRoadRegulatoryLiabilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ElmRoadRegulatoryLiabilityMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Elm Road [Member]",
        "documentation": "Any difference between the expected start date and the actual start date of the lease payments will be returned to customers. Also, MGE has deferred payments made to MGE Power Elm Road for carrying costs during construction of the facility, management fees, community impact mitigation, and transition costs.",
        "label": "Elm Road Regulatory Liability [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ElmRoadUnit1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ElmRoadUnit1Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Elm Road Unit 1 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ElmRoadUnit2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ElmRoadUnit2Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Elm Road Unit 2 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ElmRoadUnitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ElmRoadUnitsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Elm Road, a coal-fired generating facility.",
        "label": "Elm Road Units [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EmployeeRelatedLiabilitiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EmployeeRelatedLiabilitiesCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Employee-related Liabilities, Current, Total",
        "label": "Employee-related Liabilities, Current",
        "terseLabel": "Accrued payroll related items",
        "documentation": "Total of the carrying values as of the balance sheet date of obligations incurred through that date and payable for obligations related to services received from employees, such as accrued salaries and bonuses, payroll taxes and fringe benefits. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer)."
       }
      }
     },
     "auth_ref": [
      "r47"
     ]
    },
    "mgee_EnergyRelatedCommodityContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "EnergyRelatedCommodityContractMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Energy Related Commodity Contract [Member]",
        "label": "Energy Related Commodity Contract [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EnergyRelatedInventoryGasStoredUnderground": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EnergyRelatedInventoryGasStoredUnderground",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Energy Related Inventory, Gas Stored Underground",
        "terseLabel": "Stored natural gas, at average cost",
        "documentation": "Carrying amount as of the balance sheet date of natural gas stored underground in depleted gas reservoirs, aquifers, or salt caverns to meet seasonal and peak load demands, and also as insurance against unforeseen supply disruptions, and deemed to be a current asset because it is expected to be used within twelve months or in the normal operating cycle."
       }
      }
     },
     "auth_ref": [
      "r1225"
     ]
    },
    "us-gaap_EnergyRelatedInventoryOtherFossilFuel": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EnergyRelatedInventoryOtherFossilFuel",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 4.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Energy Related Inventory, Other Fossil Fuel",
        "terseLabel": "Fuel for electric generation, at average cost",
        "documentation": "Amount of fossil fuel included in inventory classified as other."
       }
      }
     },
     "auth_ref": [
      "r1225"
     ]
    },
    "dei_EntityAddressAddressLine1": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressAddressLine1",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line One",
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCityOrTown": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressCityOrTown",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, City or Town",
        "documentation": "Name of the City or Town"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCountry": {
     "xbrltype": "countryCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressCountry",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Country",
        "documentation": "ISO 3166-1 alpha-2 country code."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressPostalZipCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressPostalZipCode",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Postal Zip Code",
        "documentation": "Code for the postal or zip code"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressStateOrProvince": {
     "xbrltype": "stateOrProvinceItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressStateOrProvince",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, State or Province",
        "documentation": "Name of the state or province."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Central Index Key",
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK."
       }
      }
     },
     "auth_ref": [
      "r1177"
     ]
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCommonStockSharesOutstanding",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Common Stock, Shares Outstanding",
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCurrentReportingStatus": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCurrentReportingStatus",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Current Reporting Status",
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/DocumentAuditInformation",
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterest",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestTables",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesTables",
      "http://www.mge.com/20231231/taxonomy/role/StatementMgeEnergyIncConsolidatedStatementsOfCommonEquityParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity [Domain]",
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityEmergingGrowthCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityEmergingGrowthCompany",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Emerging Growth Company",
        "documentation": "Indicate if registrant meets the emerging growth company criteria."
       }
      }
     },
     "auth_ref": [
      "r1177"
     ]
    },
    "dei_EntityFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityFileNumber",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Securities Act File Number",
        "documentation": "Commission file number. The field allows up to 17 characters. The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityFilerCategory": {
     "xbrltype": "filerCategoryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityFilerCategory",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Filer Category",
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": [
      "r1177"
     ]
    },
    "dei_EntityIncorporationStateCountryCode": {
     "xbrltype": "edgarStateCountryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityIncorporationStateCountryCode",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Incorporation, State or Country Code",
        "documentation": "Two-character EDGAR code representing the state or country of incorporation."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityInteractiveDataCurrent": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityInteractiveDataCurrent",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Interactive Data Current",
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files)."
       }
      }
     },
     "auth_ref": [
      "r1185"
     ]
    },
    "dei_EntityPublicFloat": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityPublicFloat",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Public Float",
        "documentation": "The aggregate market value of the voting and non-voting common equity held by non-affiliates computed by reference to the price at which the common equity was last sold, or the average bid and asked price of such common equity, as of the last business day of the registrant's most recently completed second fiscal quarter."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Registrant Name",
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC."
       }
      }
     },
     "auth_ref": [
      "r1177"
     ]
    },
    "dei_EntityShellCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityShellCompany",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Shell Company",
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r1177"
     ]
    },
    "dei_EntitySmallBusiness": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntitySmallBusiness",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Small Business",
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC)."
       }
      }
     },
     "auth_ref": [
      "r1177"
     ]
    },
    "dei_EntityTaxIdentificationNumber": {
     "xbrltype": "employerIdItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityTaxIdentificationNumber",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Tax Identification Number",
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS."
       }
      }
     },
     "auth_ref": [
      "r1177"
     ]
    },
    "dei_EntityVoluntaryFilers": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityVoluntaryFilers",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Voluntary Filers",
        "documentation": "Indicate 'Yes' or 'No' if the registrant is not required to file reports pursuant to Section 13 or Section 15(d) of the Act."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityWellKnownSeasonedIssuer": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityWellKnownSeasonedIssuer",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Well-known Seasoned Issuer",
        "documentation": "Indicate 'Yes' or 'No' if the registrant is a well-known seasoned issuer, as defined in Rule 405 of the Securities Act. Is used on Form Type: 10-K, 10-Q, 8-K, 20-F, 6-K, 10-K/A, 10-Q/A, 20-F/A, 6-K/A, N-CSR, N-Q, N-1A."
       }
      }
     },
     "auth_ref": [
      "r1186"
     ]
    },
    "us-gaap_EquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity [Abstract]",
        "terseLabel": "Common Equity"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityComponentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityComponentDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Component [Domain]",
        "documentation": "Components of equity are the parts of the total Equity balance including that which is allocated to common, preferred, treasury stock, retained earnings, etc."
       }
      }
     },
     "auth_ref": [
      "r27",
      "r290",
      "r326",
      "r327",
      "r328",
      "r357",
      "r358",
      "r359",
      "r364",
      "r375",
      "r377",
      "r389",
      "r474",
      "r482",
      "r576",
      "r706",
      "r707",
      "r708",
      "r736",
      "r737",
      "r767",
      "r769",
      "r770",
      "r771",
      "r772",
      "r775",
      "r787",
      "r819",
      "r821",
      "r822",
      "r823",
      "r824",
      "r825",
      "r857",
      "r971",
      "r972",
      "r973",
      "r999",
      "r1065"
     ]
    },
    "mgee_EquityMethodAndOtherInvestmentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "EquityMethodAndOtherInvestmentsTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method and Other Investments Table [Text Block]",
        "terseLabel": "Equity Method and Other Investments",
        "documentation": "Tabular disclosure of equity method investments in common stock and other investments. The equity method investments disclosure may include: (a) the name of each investee or group of investments for which combined disclosure is appropriate, (2) the percentage ownership of common stock, (3) the difference, if any, between the carrying amount of an investment and the value of the underlying equity in the net assets and the accounting treatment of difference, if any, and (4) the aggregate value of each identified investment based on its quoted market price, if available."
       }
      }
     },
     "auth_ref": []
    },
    "srt_EquityMethodInvesteeNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "EquityMethodInvesteeNameDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Name [Domain]",
        "documentation": "Name of investment including named security. Excludes entity that is consolidated."
       }
      }
     },
     "auth_ref": [
      "r467",
      "r468",
      "r469"
     ]
    },
    "us-gaap_EquityMethodInvestmentDividendsOrDistributions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityMethodInvestmentDividendsOrDistributions",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 17.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Equity Method Investment, Distribution",
        "verboseLabel": "Dividends received from ATC",
        "terseLabel": "Dividends from investments",
        "documentation": "Amount of distribution received from equity method investee for return on investment, classified as operating activities. Excludes distribution for return of investment, classified as investing activities."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r14",
      "r187",
      "r942"
     ]
    },
    "us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityMethodInvestmentNonconsolidatedInvesteeAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investment, Nonconsolidated Investee [Axis]",
        "documentation": "Information by nonconsolidated equity method investee. Excludes information consolidated by reporting entity."
       }
      }
     },
     "auth_ref": [
      "r296",
      "r342",
      "r470",
      "r811"
     ]
    },
    "us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityMethodInvestmentNonconsolidatedInvesteeDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investment, Nonconsolidated Investee [Domain]",
        "documentation": "Nonconsolidated equity method investee. Excludes information consolidated by reporting entity."
       }
      }
     },
     "auth_ref": [
      "r296",
      "r342",
      "r470",
      "r811"
     ]
    },
    "us-gaap_EquityMethodInvestmentOwnershipPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityMethodInvestmentOwnershipPercentage",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investment, Ownership Percentage",
        "terseLabel": "Ownership interest in equity-method investee",
        "documentation": "The percentage of ownership of common stock or equity participation in the investee accounted for under the equity method of accounting."
       }
      }
     },
     "auth_ref": [
      "r467"
     ]
    },
    "us-gaap_EquityMethodInvestmentSummarizedFinancialInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityMethodInvestmentSummarizedFinancialInformationAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investment, Summarized Financial Information [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_EquityMethodInvestmentSummarizedFinancialInformationInterestIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "EquityMethodInvestmentSummarizedFinancialInformationInterestIncomeExpense",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "parentTag": "mgee_EquityMethodInvestmentSummarizedFinancialInformationNetIncomeLossBeforeTaxes",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of interest reported by an equity method investment of the entity.",
        "terseLabel": "Interest expense, net",
        "label": "Equity Method Investment, Summarized Financial Information, Interest Income (Expense)"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_EquityMethodInvestmentSummarizedFinancialInformationLongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "EquityMethodInvestmentSummarizedFinancialInformationLongTermDebt",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-term debt",
        "documentation": "The amount of long-term debt reported by an equity method investment of the entity.",
        "label": "Equity Method Investment Summarized Financial Information Long Term Debt"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_EquityMethodInvestmentSummarizedFinancialInformationNetIncomeLossBeforeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "EquityMethodInvestmentSummarizedFinancialInformationNetIncomeLossBeforeTaxes",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income or net loss before taxes reported by an equity method investment of the entity.",
        "totalLabel": "Earnings before members' income taxes",
        "label": "Equity Method Investment, Summarized Financial Information, Net Income (Loss) Before Taxes"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_EquityMethodInvestmentSummarizedFinancialInformationOtherIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "EquityMethodInvestmentSummarizedFinancialInformationOtherIncomeExpense",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "parentTag": "mgee_EquityMethodInvestmentSummarizedFinancialInformationNetIncomeLossBeforeTaxes",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other income, net",
        "documentation": "The amount of other income or expenses reported by an equity method investment of the entity.",
        "label": "Equity Method Investment, Summarized Financial Information, Other Income (Expense)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityMethodInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityMethodInvestments",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/DisclosureInvestmentsDetails12": {
       "parentTag": "us-gaap_Investments",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1": {
       "parentTag": "us-gaap_Investments",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investments",
        "terseLabel": "Equity method investments",
        "verboseLabel": "Decrease in Investment ATC Tax Cuts and Jobs Act",
        "documentation": "This item represents the carrying amount on the entity's balance sheet of its investment in common stock of an equity method investee. This is not an indicator of the fair value of the investment, rather it is the initial cost adjusted for the entity's share of earnings and losses of the investee, adjusted for any distributions (dividends) and other than temporary impairment (OTTI) losses recognized."
       }
      }
     },
     "auth_ref": [
      "r405",
      "r465",
      "r1219",
      "r1256"
     ]
    },
    "mgee_EquityMethodInvestmentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "EquityMethodInvestmentsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity method investments: [Abstract]",
        "label": "Equity method investments [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityMethodInvestmentsAndJointVenturesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityMethodInvestmentsAndJointVenturesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investments and Joint Ventures [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_EquityMethodInvestmentsAndOtherInvestmentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "EquityMethodInvestmentsAndOtherInvestmentsLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investments and Other Investments [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityMethodInvestmentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityMethodInvestmentsTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investments [Table Text Block]",
        "terseLabel": "Equity Method Investments Summarized Financial Data",
        "documentation": "Tabular disclosure of equity method investments including, but not limited to, name of each investee or group of investments, percentage ownership, difference between recorded amount of an investment and the value of the underlying equity in the net assets, and summarized financial information."
       }
      }
     },
     "auth_ref": [
      "r466"
     ]
    },
    "mgee_EquitySecuritiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "EquitySecuritiesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Securities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquitySecuritiesByInvestmentObjectiveAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquitySecuritiesByInvestmentObjectiveAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Objective [Axis]",
        "documentation": "Information by investment objective."
       }
      }
     },
     "auth_ref": [
      "r613",
      "r1145"
     ]
    },
    "mgee_EquitySecuritiesDomesticMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "EquitySecuritiesDomesticMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Securities, Domestic [Member]",
        "documentation": "Equity Securities, Domestic",
        "terseLabel": "United States Equity Securities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_EquitySecuritiesForeignMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "EquitySecuritiesForeignMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Securities, Foreign [Member]",
        "documentation": "Equity Securities, Foreign",
        "terseLabel": "Non-United States Equity Securities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquitySecuritiesFvNiAndWithoutReadilyDeterminableFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquitySecuritiesFvNiAndWithoutReadilyDeterminableFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity securities",
        "label": "Equity Securities, FV-NI and without Readily Determinable Fair Value",
        "totalLabel": "Equity Securities, Fair Value Recognized in Net Income and without Readily Determinable Fair Value, Total",
        "documentation": "Amount of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI) and investment in equity security without readily determinable fair value."
       }
      }
     },
     "auth_ref": [
      "r808"
     ]
    },
    "us-gaap_EquitySecuritiesFvNiCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquitySecuritiesFvNiCurrentAndNoncurrent",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exchange-traded investments",
        "label": "Equity Securities, FV-NI",
        "totalLabel": "Equity Securities, FV-NI, Total",
        "documentation": "Amount of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI)."
       }
      }
     },
     "auth_ref": [
      "r304",
      "r808",
      "r929"
     ]
    },
    "us-gaap_EquitySecuritiesInvestmentObjectiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquitySecuritiesInvestmentObjectiveMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Objective [Domain]",
        "documentation": "Objective of investment."
       }
      }
     },
     "auth_ref": [
      "r613",
      "r1145"
     ]
    },
    "us-gaap_EquitySecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquitySecuritiesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Securities [Member]",
        "documentation": "Ownership interest or right to acquire or dispose of ownership interest in corporations and other legal entities for which ownership interest is represented by shares of common or preferred stock, convertible securities, stock rights, or stock warrants."
       }
      }
     },
     "auth_ref": [
      "r83",
      "r1170",
      "r1171",
      "r1172",
      "r1362"
     ]
    },
    "us-gaap_EstimateOfFairValueFairValueDisclosureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EstimateOfFairValueFairValueDisclosureMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimate of Fair Value Measurement [Member]",
        "terseLabel": "Fair Value [Member]",
        "documentation": "Measured as an estimate of fair value."
       }
      }
     },
     "auth_ref": [
      "r548",
      "r810",
      "r1131",
      "r1132"
     ]
    },
    "mgee_EstimatedPayoutPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "EstimatedPayoutPercentage",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimated Payout Percentage",
        "terseLabel": "Estimated payout % based on performance criteria",
        "documentation": "Awards related to the 2020 Performance Unit Plan are subject to vesting provisions providing for 100% vesting at the end of the performance period, in the case of performance units, and at the end of the defined time period in the case of restricted units."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ExcessDeferredTaxIncomeStatementEffect": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ExcessDeferredTaxIncomeStatementEffect",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Excess Deferred Tax Income Statement Effect",
        "terseLabel": "Excess deferred tax - Income statement effect",
        "documentation": "Included are impacts of the Tax Cuts and Jobs Act for the regulated utility for excess deferred taxes recognized using a normalization method of accounting. The amount and timing of the cash impacts will depend on the period over which certain income tax benefits are provided to customers, determined by the PSCW."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ExcessDeferredTaxesTaxCutsAndJobsActMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ExcessDeferredTaxesTaxCutsAndJobsActMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Excess Deferred Taxes, Tax Cuts And Jobs Act [Member]",
        "documentation": "Deferred tax effects of the Tax Cuts and Jobs Act (excess)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ExciseAndSalesTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ExciseAndSalesTaxes",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Excise and Sales Taxes",
        "terseLabel": "License fee tax expense",
        "documentation": "The amount of excise and sales taxes included in sales and revenues, which are then deducted as a cost of sales. Includes excise taxes, which are applied to specific types of transactions or items (such as gasoline or alcohol); and sales, use and value added taxes, which are applied to a broad class of revenue-producing transactions involving a wide range of goods and services."
       }
      }
     },
     "auth_ref": [
      "r329"
     ]
    },
    "mgee_ExciseTaxesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ExciseTaxesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Excise taxes",
        "label": "Excise taxes [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r796",
      "r797",
      "r803"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Recurring and Nonrecurring [Table]",
        "documentation": "Disclosure of information about asset and liability measured at fair value on recurring and nonrecurring basis."
       }
      }
     },
     "auth_ref": [
      "r796",
      "r797",
      "r803"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Table]",
        "documentation": "Disclosure of information about input and valuation technique used to measure fair value and change in valuation approach and technique for each separate class of asset and liability measured on recurring and nonrecurring basis."
       }
      }
     },
     "auth_ref": [
      "r29"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Table Text Block]",
        "terseLabel": "Significant Unobservable Inputs",
        "documentation": "Tabular disclosure of input and valuation technique used to measure fair value and change in valuation approach and technique for each separate class of asset and liability measured on recurring and nonrecurring basis."
       }
      }
     },
     "auth_ref": [
      "r29"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measured on Recurring Basis, Gain (Loss) Included in Earnings [Table Text Block]",
        "terseLabel": "Gains and Losses Included in Income for Level 3 Assets and Liabilities Measured at Fair Value on a Recurring Basis",
        "documentation": "Tabular disclosure of the amount of gains or losses for the period included in earnings or resulted in a change to net assets, have arisen from the use of significant unobservable inputs (level 3) to measure the fair value of assets, liabilities, and financial instruments classified in shareholders' equity."
       }
      }
     },
     "auth_ref": [
      "r228",
      "r229"
     ]
    },
    "mgee_FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of changes in Level 3 assets and liabilities measured at fair value on a recurring basis.",
        "terseLabel": "Changes in Level 3 Assets and Liabilities Measured at Fair Value on a Recurring Basis",
        "label": "Fair Value, Assets And Liabilities Measured On Recurring Basis, Unobservable Input Reconciliation [Table Text Block]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]",
        "terseLabel": "Fair value and carrying value of financial instruments [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueByBalanceSheetGroupingTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByBalanceSheetGroupingTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, by Balance Sheet Grouping [Table]",
        "documentation": "Disclosure of information about the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities."
       }
      }
     },
     "auth_ref": [
      "r139",
      "r142",
      "r143"
     ]
    },
    "us-gaap_FairValueByBalanceSheetGroupingTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByBalanceSheetGroupingTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, by Balance Sheet Grouping [Table Text Block]",
        "terseLabel": "Estimated Fair Market Value of Financial Instruments",
        "documentation": "Tabular disclosure of the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities."
       }
      }
     },
     "auth_ref": [
      "r139",
      "r142"
     ]
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Hierarchy and NAV [Axis]",
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient."
       }
      }
     },
     "auth_ref": [
      "r548",
      "r616",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r797",
      "r873",
      "r874",
      "r875",
      "r1131",
      "r1132",
      "r1143",
      "r1144",
      "r1145"
     ]
    },
    "us-gaap_FairValueByMeasurementBasisAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByMeasurementBasisAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Basis [Axis]",
        "documentation": "Information by measurement basis."
       }
      }
     },
     "auth_ref": [
      "r35",
      "r139",
      "r548",
      "r1131",
      "r1132"
     ]
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByMeasurementFrequencyAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Frequency [Axis]",
        "documentation": "Information by measurement frequency."
       }
      }
     },
     "auth_ref": [
      "r796",
      "r797",
      "r798",
      "r799",
      "r805"
     ]
    },
    "us-gaap_FairValueDisclosureItemAmountsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueDisclosureItemAmountsDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measurement [Domain]",
        "documentation": "Measurement basis, for example, but not limited to, reported value, fair value, portion at fair value, portion at other than fair value."
       }
      }
     },
     "auth_ref": [
      "r548",
      "r1131",
      "r1132"
     ]
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueDisclosuresAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value of Financial Instruments",
        "label": "Fair Value Disclosures [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueDisclosuresTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstruments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Text Block]",
        "documentation": "The entire disclosure for the fair value of financial instruments (as defined), including financial assets and financial liabilities (collectively, as defined), and the measurements of those instruments as well as disclosures related to the fair value of non-financial assets and liabilities. Such disclosures about the financial instruments, assets, and liabilities would include: (1) the fair value of the required items together with their carrying amounts (as appropriate); (2) for items for which it is not practicable to estimate fair value, disclosure would include: (a) information pertinent to estimating fair value (including, carrying amount, effective interest rate, and maturity, and (b) the reasons why it is not practicable to estimate fair value; (3) significant concentrations of credit risk including: (a) information about the activity, region, or economic characteristics identifying a concentration, (b) the maximum amount of loss the entity is exposed to based on the gross fair value of the related item, (c) policy for requiring collateral or other security and information as to accessing such collateral or security, and (d) the nature and brief description of such collateral or security; (4) quantitative information about market risks and how such risks are managed; (5) for items measured on both a recurring and nonrecurring basis information regarding the inputs used to develop the fair value measurement; and (6) for items presented in the financial statement for which fair value measurement is elected: (a) information necessary to understand the reasons for the election, (b) discussion of the effect of fair value changes on earnings, (c) a description of [similar groups] items for which the election is made and the relation thereof to the balance sheet, the aggregate carrying value of items included in the balance sheet that are not eligible for the election; (7) all other required (as defined) and desired information."
       }
      }
     },
     "auth_ref": [
      "r795"
     ]
    },
    "mgee_FairValueInputsBasisAdjustmentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FairValueInputsBasisAdjustmentAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Inputs, Basis Adjustment [Abstract]",
        "terseLabel": "Basis adjustment:"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FairValueInputsCounterpartyFuelMixAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FairValueInputsCounterpartyFuelMixAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Inputs Counterparty Fuel Mix [Abstract]",
        "terseLabel": "Counterparty fuel mix:"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FairValueInputsCounterpartyFuelMixInternalGeneration": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FairValueInputsCounterpartyFuelMixInternalGeneration",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Inputs Counterparty Fuel Mix Internal Generation",
        "terseLabel": "Internal generation",
        "documentation": "Estimate of counterparty's internal generation as a portion of their fuel mix, used as an input to measure fair value."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FairValueInputsCounterpartyFuelMixPurchasedPower": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FairValueInputsCounterpartyFuelMixPurchasedPower",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Inputs Counterparty Fuel Mix Purchased Power",
        "terseLabel": "Purchased power",
        "documentation": "Estimate of counterparty's purchased power as a portion of their fuel mix, used as an input to measure fair value."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FairValueInputsDeliveryPointsBasisAdjustmentOffPeak": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FairValueInputsDeliveryPointsBasisAdjustmentOffPeak",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Inputs Delivery Points Basis Adjustment Off Peak",
        "terseLabel": "Basis adjustment - off peak",
        "documentation": "Basis adjustment between delivery points for off peak electric future prices. Used as an input to measure fair value."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FairValueInputsDeliveryPointsBasisAdjustmentOnPeak": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FairValueInputsDeliveryPointsBasisAdjustmentOnPeak",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Inputs Delivery Points Basis Adjustment On Peak",
        "terseLabel": "Basis adjustment - on peak",
        "documentation": "Basis adjustment between delivery points for on peak electric future prices. Used as an input to measure fair value."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueInputsLevel1Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Inputs, Level 1 [Member]",
        "terseLabel": "Level 1 [Member]",
        "documentation": "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date."
       }
      }
     },
     "auth_ref": [
      "r548",
      "r616",
      "r621",
      "r797",
      "r873",
      "r1143",
      "r1144",
      "r1145"
     ]
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueInputsLevel2Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Inputs, Level 2 [Member]",
        "terseLabel": "Level 2 [Member]",
        "documentation": "Inputs other than quoted prices included within level 1 that are observable for an asset or liability, either directly or indirectly, including, but not limited to, quoted prices for similar assets or liabilities in active markets, or quoted prices for identical or similar assets or liabilities in inactive markets."
       }
      }
     },
     "auth_ref": [
      "r548",
      "r616",
      "r621",
      "r797",
      "r874",
      "r1131",
      "r1132",
      "r1143",
      "r1144",
      "r1145"
     ]
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueInputsLevel3Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "terseLabel": "Level 3 [Member]",
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r548",
      "r616",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r797",
      "r875",
      "r1131",
      "r1132",
      "r1143",
      "r1144",
      "r1145"
     ]
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table]",
        "documentation": "Schedule of information required and determined to be provided for purposes of reconciling beginning and ending balances of fair value measurements of liabilities using significant unobservable inputs (level 3). Separately presenting changes during the period, attributable to: (1) total gains or losses for the period (realized and unrealized) and location reported in the statement of income (or activities); (2) purchases, sales, issuances, and settlements (net); (3) transfers in and/or out of Level 3."
       }
      }
     },
     "auth_ref": [
      "r30",
      "r141"
     ]
    },
    "us-gaap_FairValueMeasuredAtNetAssetValuePerShareMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasuredAtNetAssetValuePerShareMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measured at Net Asset Value Per Share [Member]",
        "terseLabel": "Fair Value Measured At Net Asset Value",
        "documentation": "Fair value measured at net asset value per share as practical expedient."
       }
      }
     },
     "auth_ref": [
      "r616",
      "r794",
      "r805"
     ]
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementFrequencyDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Frequency [Domain]",
        "documentation": "Measurement frequency."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueMeasurementPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementPolicyPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value of Pension and Other Postretirement Benefit Plan Assets",
        "label": "Fair Value Measurement, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for fair value measurements of financial and non-financial assets, liabilities and instruments classified in shareholders' equity. Disclosures include, but are not limited to, how an entity that manages a group of financial assets and liabilities on the basis of its net exposure measures the fair value of those assets and liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Hierarchy and NAV [Domain]",
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value."
       }
      }
     },
     "auth_ref": [
      "r548",
      "r616",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r873",
      "r874",
      "r875",
      "r1131",
      "r1132",
      "r1143",
      "r1144",
      "r1145"
     ]
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementsRecurringMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Recurring [Member]",
        "terseLabel": "Recurring [Member]",
        "documentation": "Frequent fair value measurement. Includes, but is not limited to, fair value adjustment for impairment of asset, liability or equity, frequently measured at fair value."
       }
      }
     },
     "auth_ref": [
      "r795",
      "r805"
     ]
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisChangeInUnrealizedGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Net Derivative Asset (Liability), Recurring Basis, Still Held, Unrealized Gain (Loss)",
        "terseLabel": "Total gains (losses) included in earnings attributed to the change in unrealized gains (losses) related to assets and liabilities",
        "documentation": "Amount of unrealized gain (loss) recognized in income for derivative asset (liability) after deduction of derivative liability (asset), measured at fair value using unobservable input (level 3) and still held."
       }
      }
     },
     "auth_ref": [
      "r802"
     ]
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]",
        "terseLabel": "Realized and unrealized gains (losses) included in income for level 3 instruments [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Input Reconciliation [Roll Forward]",
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Realized and unrealized gains (losses):",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Gain (Loss) [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInCurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInCurrentAssets",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Included in current assets",
        "documentation": "This element represents total gains or losses for the period (realized and unrealized), arising from assets measured at fair value on a recurring basis using unobservable inputs (Level 3), which are included in current assets.",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Gain (Loss) Included In Current Assets",
        "negatedLabel": "Included in current assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInEarnings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInEarnings",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Included in earnings",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Gain (Loss) Included in Earnings",
        "negatedLabel": "Included in earnings",
        "documentation": "Amount of gain (loss) recognized in income from derivative asset (liability) after deduction of derivative liability (asset), measured at fair value on recurring basis using unobservable input (level 3)."
       }
      }
     },
     "auth_ref": [
      "r800",
      "r804"
     ]
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInOtherComprehensiveIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInOtherComprehensiveIncomeLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Included in other comprehensive income",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Gain (Loss) Included in Other Comprehensive Income (Loss)",
        "negatedLabel": "Included in other comprehensive income",
        "documentation": "Amount of gain (loss) recognized in other comprehensive income from derivative asset (liability) after deduction of derivative liability (asset), measured at fair value on recurring basis using unobservable input (level 3)."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r801"
     ]
    },
    "mgee_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInRegulatoryAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInRegulatoryAssets",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Included in regulatory assets",
        "documentation": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Gain (Loss) Included In Regulatory Assets",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Gain (Loss) Included In Regulatory Assets",
        "negatedLabel": "Included in regulatory assets"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInRegulatoryLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInRegulatoryLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Included in regulatory liability",
        "documentation": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Gain (Loss) Included In Regulatory Liabilities",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Gain (Loss) Included In Regulatory Liabilities",
        "negatedLabel": "Included in regulatory liability"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationIssues": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationIssues",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Issuances",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Issues",
        "documentation": "Amount of issuances of financial instrument classified as a derivative asset (liability) after deduction of derivative liability (asset), measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r140"
     ]
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationPurchases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationPurchases",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchases",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Purchases",
        "documentation": "Amount of purchases of financial instrument classified as a derivative asset (liability) after deduction of derivative liability (asset), measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r140"
     ]
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationSales": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationSales",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Sales",
        "negatedLabel": "Sales",
        "documentation": "Amount of sales of financial instrument classified as a derivative asset (liability) after deduction of derivative liability (asset), measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r140"
     ]
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationSettlements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationSettlements",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Settlements",
        "negatedLabel": "Settlements",
        "documentation": "Amount of settlements of financial instrument classified as a derivative asset (liability) after deduction of derivative liability, measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r140"
     ]
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationTransfersNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationTransfersNet",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Transfers, Net, Total",
        "terseLabel": "Transfers in and/or out of Level 3",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Transfers, Net",
        "documentation": "Amount of transfers of financial instrument classified as a derivative asset (liability) after deduction of derivative liability (asset) into (out of) level 3 of the fair value hierarchy."
       }
      }
     },
     "auth_ref": [
      "r1331"
     ]
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis with Unobservable Inputs",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "documentation": "Fair value of financial instrument classified as derivative asset (liability) after deduction of derivative liability (asset), measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r139"
     ]
    },
    "us-gaap_FairValueOfFinancialInstrumentsPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueOfFinancialInstrumentsPolicy",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value of Financial Instruments, Policy [Policy Text Block]",
        "terseLabel": "Recurring Fair Value Measurements",
        "documentation": "Disclosure of accounting policy for determining the fair value of financial instruments."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r40"
     ]
    },
    "mgee_FairValueOfNonvestedAward": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FairValueOfNonvestedAward",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Of Nonvested Award",
        "terseLabel": "Fair Value of each nonvested award",
        "documentation": "Fair Value of each nonvested performance unit aware under the 2020 Peformance Unit Plan."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueRecurringBasisUnobservableInputReconciliationNetDerivativeAssetLiabilityGainLossStatementOfIncomeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueRecurringBasisUnobservableInputReconciliationNetDerivativeAssetLiabilityGainLossStatementOfIncomeExtensibleList",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Net Derivative Asset (Liability), Recurring Basis, Unobservable Input Reconciliation, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement in which net income is reported that includes gain (loss) from derivative asset (liability) after deduction of derivative liability (asset), measured at fair value using unobservable input (level 3)."
       }
      }
     },
     "auth_ref": [
      "r800"
     ]
    },
    "us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Values Derivatives, Balance Sheet Location, by Derivative Contract Type [Table]",
        "documentation": "Schedule that discloses the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position."
       }
      }
     },
     "auth_ref": [
      "r125",
      "r127",
      "r137"
     ]
    },
    "us-gaap_FinanceLeaseInterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseInterestExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails1": {
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Interest Expense",
        "terseLabel": "Interest on lease liabilities, Interest expense, net",
        "documentation": "Amount of interest expense on finance lease liability."
       }
      }
     },
     "auth_ref": [
      "r840",
      "r846",
      "r1158"
     ]
    },
    "us-gaap_FinanceLeaseInterestPaymentOnLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseInterestPaymentOnLiability",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Interest Payment on Liability",
        "terseLabel": "Finance leases - operating cash flows",
        "documentation": "Amount of interest paid on finance lease liability."
       }
      }
     },
     "auth_ref": [
      "r842",
      "r848"
     ]
    },
    "us-gaap_FinanceLeaseLiabilitiesPaymentsDueAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilitiesPaymentsDueAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Liability, to be Paid, Fiscal Year Maturity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinanceLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiability",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Finance lease liability",
        "label": "Finance Lease, Liability",
        "terseLabel": "Finance lease liability",
        "documentation": "Present value of lessee's discounted obligation for lease payments from finance lease."
       }
      }
     },
     "auth_ref": [
      "r838",
      "r852"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2": {
       "parentTag": "mgee_LeaseLiability",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Less: current portion",
        "terseLabel": "Finance lease liabilities - current",
        "verboseLabel": "Less: current portion",
        "label": "Finance Lease, Liability, Current",
        "documentation": "Present value of lessee's discounted obligation for lease payments from finance lease, classified as current."
       }
      }
     },
     "auth_ref": [
      "r838"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Liability, Current, Statement of Financial Position [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of financial position that includes current finance lease liability."
       }
      }
     },
     "auth_ref": [
      "r839"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityMaturityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityMaturityTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Liability, to be Paid, Maturity [Table Text Block]",
        "terseLabel": "Lessee Finance Lease Liability Maturity",
        "documentation": "Tabular disclosure of undiscounted cash flows of finance lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to finance lease liability recognized in statement of financial position."
       }
      }
     },
     "auth_ref": [
      "r1334"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2": {
       "parentTag": "mgee_LeaseLiability",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Finance lease liabilities",
        "verboseLabel": "Finance lease liabilities - long-term",
        "totalLabel": "Noncurrent lease liability",
        "label": "Finance Lease, Liability, Noncurrent",
        "documentation": "Present value of lessee's discounted obligation for lease payments from finance lease, classified as noncurrent."
       }
      }
     },
     "auth_ref": [
      "r838"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityNoncurrentStatementOfFinancialPositionExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityNoncurrentStatementOfFinancialPositionExtensibleList",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Liability, Noncurrent, Statement of Financial Position [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of financial position that includes noncurrent finance lease liability."
       }
      }
     },
     "auth_ref": [
      "r839"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityPaymentsDue",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Undiscounted finance lease liability",
        "label": "Finance Lease, Liability, to be Paid",
        "terseLabel": "Undiscounted finance lease liability",
        "documentation": "Amount of lessee's undiscounted obligation for lease payments for finance lease."
       }
      }
     },
     "auth_ref": [
      "r852"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityPaymentsDueAfterYearFive",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Liability, to be Paid, after Year Five",
        "terseLabel": "Thereafter",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance lease to be paid after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r852"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityPaymentsDueNextTwelveMonths",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2024",
        "label": "Finance Lease, Liability, to be Paid, Year One",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance lease to be paid in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r852"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityPaymentsDueYearFive",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2028",
        "label": "Finance Lease, Liability, to be Paid, Year Five",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance lease to be paid in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r852"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityPaymentsDueYearFour",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2027",
        "label": "Finance Lease, Liability, to be Paid, Year Four",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance lease to be paid in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r852"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityPaymentsDueYearThree",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2026",
        "label": "Finance Lease, Liability, to be Paid, Year Three",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance lease to be paid in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r852"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityPaymentsDueYearTwo",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2025",
        "label": "Finance Lease, Liability, to be Paid, Year Two",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance lease to be paid in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r852"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityUndiscountedExcessAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Liability, Undiscounted Excess Amount",
        "negatedLabel": "Less: present value discount",
        "documentation": "Amount of lessee's undiscounted obligation for lease payments in excess of discounted obligation for lease payments for finance lease."
       }
      }
     },
     "auth_ref": [
      "r852"
     ]
    },
    "us-gaap_FinanceLeasePrincipalPayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeasePrincipalPayments",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Principal Payments",
        "terseLabel": "Finance leases - financing cash flows",
        "documentation": "Amount of cash outflow for principal payment on finance lease."
       }
      }
     },
     "auth_ref": [
      "r841",
      "r848"
     ]
    },
    "us-gaap_FinanceLeaseRightOfUseAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseRightOfUseAsset",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2": {
       "parentTag": "mgee_LeaseRightOfUseAsset",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Finance Lease, Right-of-Use Asset, after Accumulated Amortization, Total",
        "label": "Finance Lease, Right-of-Use Asset, after Accumulated Amortization",
        "terseLabel": "Finance lease assets, net",
        "verboseLabel": "Finance lease assets, net",
        "documentation": "Amount, after accumulated amortization, of right-of-use asset from finance lease."
       }
      }
     },
     "auth_ref": [
      "r837"
     ]
    },
    "us-gaap_FinanceLeaseRightOfUseAssetAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseRightOfUseAssetAmortization",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails1": {
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Right-of-Use Asset, Amortization",
        "terseLabel": "Amortization of leased assets, Depreciation and amortization",
        "documentation": "Amount of amortization expense attributable to right-of-use asset from finance lease."
       }
      }
     },
     "auth_ref": [
      "r840",
      "r846",
      "r1158"
     ]
    },
    "us-gaap_FinanceLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Right-of-Use Asset, Statement of Financial Position [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of financial position that includes finance lease right-of-use asset."
       }
      }
     },
     "auth_ref": [
      "r839"
     ]
    },
    "us-gaap_FinanceLeaseWeightedAverageDiscountRatePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseWeightedAverageDiscountRatePercent",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted average discount rate finance leases",
        "label": "Finance Lease, Weighted Average Discount Rate, Percent",
        "documentation": "Weighted average discount rate for finance lease calculated at point in time."
       }
      }
     },
     "auth_ref": [
      "r851",
      "r1158"
     ]
    },
    "us-gaap_FinanceLeaseWeightedAverageRemainingLeaseTerm1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseWeightedAverageRemainingLeaseTerm1",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Weighted Average Remaining Lease Term",
        "terseLabel": "Weighted average remaining lease term (years) finance leases",
        "documentation": "Weighted average remaining lease term for finance lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r850",
      "r1158"
     ]
    },
    "us-gaap_FinancialInstrumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialInstrumentAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instrument [Axis]",
        "documentation": "Information by type of financial instrument."
       }
      }
     },
     "auth_ref": [
      "r435",
      "r436",
      "r437",
      "r438",
      "r439",
      "r440",
      "r441",
      "r442",
      "r443",
      "r444",
      "r445",
      "r446",
      "r447",
      "r448",
      "r449",
      "r450",
      "r451",
      "r452",
      "r453",
      "r454",
      "r455",
      "r456",
      "r457",
      "r458",
      "r459",
      "r460",
      "r461",
      "r462",
      "r463",
      "r464",
      "r484",
      "r485",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r556",
      "r573",
      "r776",
      "r870",
      "r871",
      "r872",
      "r873",
      "r874",
      "r875",
      "r876",
      "r877",
      "r878",
      "r879",
      "r880",
      "r881",
      "r882",
      "r883",
      "r887",
      "r889",
      "r890",
      "r891",
      "r892",
      "r893",
      "r894",
      "r895",
      "r896",
      "r897",
      "r898",
      "r899",
      "r900",
      "r901",
      "r902",
      "r903",
      "r947",
      "r1127",
      "r1205",
      "r1206",
      "r1207",
      "r1208",
      "r1209",
      "r1210",
      "r1211",
      "r1252",
      "r1253",
      "r1254",
      "r1255"
     ]
    },
    "us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instruments, Financial Assets, Balance Sheet Groupings [Abstract]",
        "terseLabel": "Assets:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instruments, Financial Liabilities, Balance Sheet Groupings [Abstract]",
        "terseLabel": "Liabilities:"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FinancialTransmissionRightsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FinancialTransmissionRightsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial transmission rights.",
        "label": "Financial Transmission Rights [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FirstMortgageBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FirstMortgageBondsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Secured first mortgage bonds.",
        "terseLabel": "7.70%, 2028 Series [Member]",
        "label": "First Mortgage Bonds [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FivePointFiftyThreeSeniorNotesDue2035Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FivePointFiftyThreeSeniorNotesDue2035Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Five Point Fifty Three Senior Notes Due 2035",
        "label": "Five Point Fifty Three Senior Notes Due 2035 [Member]",
        "terseLabel": "5.53% due 2035"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FivePointFortyThreeSeniorNotesDue2033Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FivePointFortyThreeSeniorNotesDue2033Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Five Point Forty Three Senior Notes Due 2033",
        "label": "Five Point Forty Three Senior Notes Due 2033 [Member]",
        "terseLabel": "5.43% due 2033"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FivePointFourThreePercentNotesDue2032Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FivePointFourThreePercentNotesDue2032Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Five Point Four Three Percent Notes Due 2032 [Member]",
        "label": "Five Point Four Three Percent Notes Due 2032 [Member]",
        "terseLabel": "5.43% due 2032"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FivePointNineOnePercentNotesDue2053Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FivePointNineOnePercentNotesDue2053Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "5.91%, due 2053",
        "label": "Five Point Nine One Percent Notes due 2053 [Member]",
        "documentation": "Five Point Nine One Percent Notes due 2053 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FivePointOneNinePercentNotesDue2033Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FivePointOneNinePercentNotesDue2033Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Five Point One Nine Percent Notes due 2033 [Member]",
        "terseLabel": "5.19%, due 2033"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FivePointSixEightPercentNotesDue2033Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FivePointSixEightPercentNotesDue2033Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Five Point Six Eight Percent Notes Due2033 Member",
        "label": "Five Point Six Eight Percent Notes due 2033 [Member]",
        "terseLabel": "5.68%, due 2033"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FivePointSixOnePercentNotesDue2034Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FivePointSixOnePercentNotesDue2034Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "5.61%, due 2034",
        "label": "Five Point Six One Percent Notes due 2034 [Member]",
        "documentation": "Five Point Six One Percent Notes due 2034 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FivePointTwoSixPercentNotesDue2040Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FivePointTwoSixPercentNotesDue2040Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Five Point Two Six Percent Notes due 2040 [Member]",
        "terseLabel": "5.26%, due 2040"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FivePointZeroFourPercentNotesDue2040Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FivePointZeroFourPercentNotesDue2040Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "5.04%, due 2040",
        "label": "Five Point Zero Four Percent Notes due 2040 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FixedIncomeSecuritiesByInvestmentObjectiveAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FixedIncomeSecuritiesByInvestmentObjectiveAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fixed Income Securities by Investment Objective [Axis]",
        "documentation": "Information by investment objective of fixed income securities."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FixedIncomeSecuritiesInvestmentObjectiveDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FixedIncomeSecuritiesInvestmentObjectiveDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fixed Income Securities Investment Objective [Domain]",
        "documentation": "Fixed income securities segregated by investment objective."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FixedIncomeSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FixedIncomeSecuritiesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fixed Income Securities [Member]",
        "documentation": "Investment that provides a return in the form of fixed periodic payments and eventual return of principal at maturity."
       }
      }
     },
     "auth_ref": [
      "r1145",
      "r1162",
      "r1163",
      "r1280"
     ]
    },
    "mgee_FixedRateFundMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FixedRateFundMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fixed Rate Fund [Member]",
        "documentation": "Fixed Rate Fund [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ForwardWindAggregatePurchasePrice": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ForwardWindAggregatePurchasePrice",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forward Wind Aggregate Purchase Price",
        "documentation": "The aggregate purchase price for the Forward Wind site."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ForwardWindMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ForwardWindMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forward Wind [Member]",
        "documentation": "Forward Wind Energy Center - a wind farm in Wisconsin."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ForwardWindNumberOfOperatingTurbines": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ForwardWindNumberOfOperatingTurbines",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forward Wind Number Of Operating Turbines",
        "terseLabel": "Forward Wind Turbines",
        "documentation": "The total operating turbines on the Forward Wind windfarm."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Forwardwindproportionatepurchaseprice": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Forwardwindproportionatepurchaseprice",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forward Wind Proportionate Purchase Price",
        "documentation": "MGE's portion of the purchase price for the Forward Wind site."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Forwardwindpurchasepowerenergyoutput": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Forwardwindpurchasepowerenergyoutput",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forward Wind Purchase Power Energy Output",
        "terseLabel": "Jointly owned utility plant, energy output",
        "documentation": "MGE's purchase power energy output with Forward Wind."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FourPointFourSevenPercentNotesDue2048Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FourPointFourSevenPercentNotesDue2048Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Four Point Four Seven Percent Notes Due 2048 [Member]",
        "terseLabel": "4.47%, due 2048"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FourPointFourTwoPercentNotesDue2043Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FourPointFourTwoPercentNotesDue2043Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Four Point Four Two Percent Notes Due 2043 [Member]",
        "terseLabel": "4.42%, due 2043"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FourPointNineteenSeniorNotesDue2048Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FourPointNineteenSeniorNotesDue2048Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "FourPointNineteenSeniorNotesDue2048 [Member]",
        "terseLabel": "4.19% due 2048"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FourPointSevenFourPercentNotesDue2041Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FourPointSevenFourPercentNotesDue2041Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Four Point Seven Four Percent Notes due 2041 [Member]",
        "terseLabel": "4.74%, due 2041"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FourPointThirtyFourSeniorNotesDue2058Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FourPointThirtyFourSeniorNotesDue2058Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "FourPointThirtyFourSeniorNotesDue2058 [Member]",
        "terseLabel": "4.34% due 2058"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FourPointThreeEightPercentSeniorNotesDue2042Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FourPointThreeEightPercentSeniorNotesDue2042Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Four Point Three Eight Percent Senior Notes due 2042 [Member]",
        "terseLabel": "4.38%, due 2042"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FourPointTwentyFourSeniorNotesDue2053Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FourPointTwentyFourSeniorNotesDue2053Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "FourPointTwentyFourSeniorNotesDue2053 [Member]",
        "terseLabel": "4.24% due 2053"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FuelForElectricGenerationPurchasedPowerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FuelForElectricGenerationPurchasedPowerMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fuel For Electric Generation Purchased Power [Member]",
        "documentation": "Fuel for electric generation"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FuelRulesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FuelRulesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fuel Rules [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FuelRulesBandwidth": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FuelRulesBandwidth",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fuel rules, bandwidth",
        "documentation": "Pursuant to the provisions of the rate order, the fuel rules bandwidth will be plus or minus this percentage.",
        "label": "Fuel Rules, Bandwidth"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FuelRulesCreditYearAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FuelRulesCreditYearAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fuel Rules Credit Year [Axis]",
        "terseLabel": "Fuel Rules Credit Year [Axis]",
        "documentation": "Fuel Rules Credit Year"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FuelRulesCreditYearDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FuelRulesCreditYearDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fuel Rules Credit Year [Domain]",
        "documentation": "Fuel Rules Credit Year",
        "terseLabel": "Fuel Rules Credit Year [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FuelRulesElectricFuelCostsDeferralLowerThreshold": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FuelRulesElectricFuelCostsDeferralLowerThreshold",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fuel rules, electric fuel costs, deferral, lower threshold",
        "documentation": "Under fuel rules, the amount in which an entity is required to defer the benefit of lower costs if actual electric fuel costs were less than the allowed electric fuel costs in latest rate order.",
        "label": "Fuel Rules, Electric Fuel Costs, Deferral, Lower Threshold"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FuelRulesElectricFuelCostsDeferralUpperThreshold": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FuelRulesElectricFuelCostsDeferralUpperThreshold",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fuel rules, electric fuel costs, deferral, upper threshold",
        "documentation": "Under fuel rules, the amount in which an entity would defer if actual electric fuel costs exceeded allowed electric fuel costs in latest rate order.",
        "label": "Fuel Rules, Electric Fuel Costs, Deferral, Upper Threshold"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FuelRulesElectricFuelDeferredCostsLowerThreshold": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FuelRulesElectricFuelDeferredCostsLowerThreshold",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Under fuel rules, the amount in which MGE is required to defer the benefit of lower costs if actual electric fuel costs were less than the allowed electric fuel costs in latest rate order.",
        "terseLabel": "Fuel rules, electric fuel deferred costs lower threshold",
        "label": "Fuel Rules, Electric Fuel Deferred Costs, Lower Threshold"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FuelRulesElectricFuelDeferredCostsUpperThreshold": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FuelRulesElectricFuelDeferredCostsUpperThreshold",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fuel Rules, Electric Fuel Deferred Costs, Upper Threshold",
        "documentation": "Under fuel rules, the amount in which MGE would defer if actual electric fuel costs exceeded allowed electric fuel costs in latest rate order.",
        "terseLabel": "Fuel rules, electric fuel deferred costs upper threshold"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FuelRulesRefund2018Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FuelRulesRefund2018Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fuel Rules Refund 2018 [Member]",
        "terseLabel": "Fuel Rules Refund, 2018 [Member]",
        "documentation": "Fuel Rules Refund approved by the PSCW for 2018 electric fuel savings to be returned over a one-month period."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FuelRulesRefund2019Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FuelRulesRefund2019Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fuel Rules Refund 2019 [Member]",
        "terseLabel": "Fuel Rules Refund, 2019 [Member]",
        "documentation": "Fuel Rules Refund approved by the PSCW for 2019 electric fuel savings to be returned over time in rates."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_FuelRulesRefund2020Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "FuelRulesRefund2020Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fuel Rules refund 2020 [Member]",
        "label": "Fuel Rules refund 2020 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Fuelrulesrefund2017memberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Fuelrulesrefund2017memberMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fuel Rules Refund 2017 [Member]",
        "terseLabel": "Fuel Rules Refund, 2017 [Member]",
        "documentation": "Fuel Rules Refund approved by the PSCW for 2017 electric fuel savings to be returned over a one-month period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GainLossOnSaleOfInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GainLossOnSaleOfInvestments",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Gain (Loss) on Sale of Investments, Total",
        "label": "Gain (Loss) on Sale of Investments",
        "negatedLabel": "Gain on sale of investments",
        "terseLabel": "Gain (loss) on sale of investments",
        "documentation": "The net realized gain (loss) on investments sold during the period, not including gains (losses) on securities separately or otherwise categorized as trading, available-for-sale, or held-to-maturity, which, for cash flow reporting, is a component of proceeds from investing activities."
       }
      }
     },
     "auth_ref": [
      "r14"
     ]
    },
    "us-gaap_GainLossOnSaleOfPropertyPlantEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GainLossOnSaleOfPropertyPlantEquipment",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Gain (Loss) on Disposition of Property Plant Equipment, Total",
        "label": "Gain (Loss) on Disposition of Property Plant Equipment",
        "negatedLabel": "Loss (gain) on sale of property",
        "documentation": "Amount of gain (loss) on sale or disposal of property, plant and equipment assets, including oil and gas property and timber property."
       }
      }
     },
     "auth_ref": [
      "r14"
     ]
    },
    "mgee_GasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "GasMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gas member.",
        "label": "Gas [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_GasRateProceedingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "GasRateProceedingMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gas Rate Proceeding [Member]",
        "label": "Gas Rate Proceeding [Member]",
        "documentation": "Gas Rate Proceeding"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_GasTransportationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "GasTransportationMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gas Transportation [Member]",
        "documentation": "Gas transportation operating revenue."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_HedgingRelationshipDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HedgingRelationshipDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedging Relationship [Domain]",
        "documentation": "Nature or intent of a hedge."
       }
      }
     },
     "auth_ref": [
      "r28"
     ]
    },
    "mgee_HighYieldBondFixedIncomeSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "HighYieldBondFixedIncomeSecuritiesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "High-Yield Bond Fixed Income Securities [Member]",
        "documentation": "High-Yield Bond Fixed Income Securities",
        "terseLabel": "High Yield Bond [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_IcfrAuditorAttestationFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "IcfrAuditorAttestationFlag",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ICFR Auditor Attestation Flag"
       }
      }
     },
     "auth_ref": [
      "r1180",
      "r1181",
      "r1182"
     ]
    },
    "mgee_ImmaterialErrorCorrectionAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ImmaterialErrorCorrectionAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ImmaterialErrorCorrectionAmount",
        "terseLabel": "Revision to classification of prior year cash flow item",
        "documentation": "The amount of a error correction made to prior period financial statement amounts."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ImpairmentOfLongLivedAssetsHeldForUse": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairmentOfLongLivedAssetsHeldForUse",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Impairment, Long-Lived Asset, Held-for-Use, Total",
        "label": "Impairment, Long-Lived Asset, Held-for-Use",
        "documentation": "The aggregate amount of write-downs for impairments recognized during the period for long lived assets held for use (including those held for disposal by means other than sale)."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r85",
      "r205"
     ]
    },
    "us-gaap_ImpairmentOrDisposalOfLongLivedAssetsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairmentOrDisposalOfLongLivedAssetsPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Impairment of Long-Lived Assets",
        "label": "Impairment or Disposal of Long-Lived Assets, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for recognizing and measuring the impairment of long-lived assets. An entity also may disclose its accounting policy for long-lived assets to be sold. This policy excludes goodwill and intangible assets."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r206"
     ]
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_ProfitLoss",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income (Loss) from Continuing Operations before Income Taxes, Domestic",
        "totalLabel": "Income before income taxes",
        "documentation": "The portion of earnings or loss from continuing operations before income taxes that is attributable to domestic operations."
       }
      }
     },
     "auth_ref": [
      "r343",
      "r745"
     ]
    },
    "us-gaap_IncomeLossFromEquityMethodInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeLossFromEquityMethodInvestments",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Income (Loss) from Equity Method Investments, Total",
        "label": "Income (Loss) from Equity Method Investments",
        "negatedLabel": "Equity earnings in investments",
        "terseLabel": "Equity earnings in MGE Transco",
        "verboseLabel": "Equity earnings of investments",
        "negatedTerseLabel": "Equity earnings in MGE Transco",
        "documentation": "Amount of income (loss) for proportionate share of equity method investee's income (loss)."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r187",
      "r240",
      "r402",
      "r465",
      "r942"
     ]
    },
    "us-gaap_IncomeStatementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeStatementAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]",
        "terseLabel": "Equity method investment summarized income statement [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeStatementLocationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeStatementLocationAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement Location [Axis]",
        "documentation": "Information by location in the income statement."
       }
      }
     },
     "auth_ref": [
      "r508",
      "r520",
      "r1049"
     ]
    },
    "us-gaap_IncomeStatementLocationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeStatementLocationDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement Location [Domain]",
        "documentation": "Location in the income statement."
       }
      }
     },
     "auth_ref": [
      "r520",
      "r1049"
     ]
    },
    "us-gaap_IncomeTaxAuthorityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxAuthorityAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Authority [Axis]",
        "documentation": "Information by tax jurisdiction."
       }
      }
     },
     "auth_ref": [
      "r23"
     ]
    },
    "us-gaap_IncomeTaxAuthorityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxAuthorityDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Authority [Domain]",
        "documentation": "Agency, division or body classification that levies income taxes, examines tax returns for compliance, or grants exemptions from or makes other decisions pertaining to income taxes."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxDisclosureAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income Taxes",
        "label": "Income Tax Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_IncomeTaxDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "IncomeTaxDisclosureLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Income Tax Disclosure [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_IncomeTaxDisclosureTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "IncomeTaxDisclosureTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Disclosure [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxDisclosureTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxes"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Disclosure [Text Block]",
        "documentation": "The entire disclosure for income taxes. Disclosures may include net deferred tax liability or asset recognized in an enterprise's statement of financial position, net change during the year in the total valuation allowance, approximate tax effect of each type of temporary difference and carryforward that gives rise to a significant portion of deferred tax liabilities and deferred tax assets, utilization of a tax carryback, and tax uncertainties information."
       }
      }
     },
     "auth_ref": [
      "r344",
      "r714",
      "r722",
      "r726",
      "r732",
      "r741",
      "r747",
      "r748",
      "r749",
      "r993"
     ]
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_ProfitLoss",
       "weight": -1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Expense (Benefit)",
        "negatedLabel": "Income tax provision",
        "totalLabel": "Total income tax provision",
        "negatedTerseLabel": "Income tax (provision) benefit",
        "terseLabel": "Income tax provision",
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations."
       }
      }
     },
     "auth_ref": [
      "r255",
      "r268",
      "r376",
      "r377",
      "r403",
      "r720",
      "r742",
      "r950"
     ]
    },
    "us-gaap_IncomeTaxExpenseBenefitContinuingOperationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxExpenseBenefitContinuingOperationsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Expense (Benefit), Continuing Operations [Abstract]",
        "terseLabel": "Income tax provision components [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax, Policy [Policy Text Block]",
        "terseLabel": "Income Taxes and Excise Taxes",
        "documentation": "Disclosure of accounting policy for income taxes, which may include its accounting policies for recognizing and measuring deferred tax assets and liabilities and related valuation allowances, recognizing investment tax credits, operating loss carryforwards, tax credit carryforwards, and other carryforwards, methodologies for determining its effective income tax rate and the characterization of interest and penalties in the financial statements."
       }
      }
     },
     "auth_ref": [
      "r325",
      "r716",
      "r717",
      "r726",
      "r727",
      "r731",
      "r733",
      "r987"
     ]
    },
    "us-gaap_IncomeTaxUncertaintiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxUncertaintiesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrecognized Tax Benefits",
        "label": "Income Tax Uncertainties [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxUncertaintiesPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxUncertaintiesPolicy",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounting for Uncertainty in Income Taxes",
        "label": "Income Tax Uncertainties, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for tax positions taken in the tax return filed or to be filed for which it is more likely than not that the tax position will not be sustained upon examination by taxing authorities and other types of contingencies related to income taxes."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxesPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxesPaid",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income taxes paid",
        "documentation": "The amount of cash paid during the current period to foreign, federal, state, and local authorities as taxes on income."
       }
      }
     },
     "auth_ref": [
      "r63",
      "r66"
     ]
    },
    "us-gaap_IncomeTaxesPaidNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxesPaidNet",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income taxes paid, net",
        "label": "Income Taxes Paid, Net",
        "totalLabel": "Income Taxes Paid, Net, Total",
        "documentation": "The amount of cash paid during the current period to foreign, federal, state, and local authorities as taxes on income, net of any cash received during the current period as refunds for the overpayment of taxes."
       }
      }
     },
     "auth_ref": [
      "r66"
     ]
    },
    "us-gaap_IncreaseDecreaseInAccountsAndOtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInAccountsAndOtherReceivables",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 9.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other receivables (change)",
        "negatedLabel": "Accounts receivable and unbilled revenues",
        "documentation": "The increase (decrease) during the reporting period in the amount due from customers for the credit sale of goods and services; includes accounts receivable and other types of receivables."
       }
      }
     },
     "auth_ref": [
      "r13"
     ]
    },
    "us-gaap_IncreaseDecreaseInAccountsPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInAccountsPayable",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 4.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Increase (Decrease) in Accounts Payable, Total",
        "label": "Increase (Decrease) in Accounts Payable",
        "terseLabel": "Accounts payable",
        "documentation": "The increase (decrease) during the reporting period in the aggregate amount of liabilities incurred (and for which invoices have typically been received) and payable to vendors for goods and services received that are used in an entity's business."
       }
      }
     },
     "auth_ref": [
      "r13"
     ]
    },
    "mgee_IncreaseDecreaseInAccruedInterestAndTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "IncreaseDecreaseInAccruedInterestAndTaxes",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the amount of accrued interest and taxes.",
        "label": "Increase Decrease In Accrued Interest And Taxes",
        "terseLabel": "Accrued interest and taxes"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncreaseDecreaseInInventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInInventories",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 8.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Increase (Decrease) in Inventories, Total",
        "label": "Increase (Decrease) in Inventories",
        "negatedLabel": "Inventories",
        "documentation": "The increase (decrease) during the reporting period in the aggregate value of all inventory held by the reporting entity, associated with underlying transactions that are classified as operating activities."
       }
      }
     },
     "auth_ref": [
      "r13"
     ]
    },
    "us-gaap_IncreaseDecreaseInMarginDepositsOutstanding": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInMarginDepositsOutstanding",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Margin Deposits Outstanding",
        "negatedLabel": "Receivable - margin account (change)",
        "documentation": "The increase (decrease) during the reporting period in money or securities placed with a broker or counterparty as security for a trading or derivative position."
       }
      }
     },
     "auth_ref": [
      "r13"
     ]
    },
    "us-gaap_IncreaseDecreaseInOperatingCapitalAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInOperatingCapitalAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Operating Capital [Abstract]",
        "terseLabel": "Changes in working capital items:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncreaseDecreaseInOtherCurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInOtherCurrentAssets",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 5.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Other Current Assets",
        "negatedLabel": "Other current assets",
        "documentation": "Amount of increase (decrease) in current assets classified as other."
       }
      }
     },
     "auth_ref": [
      "r1231"
     ]
    },
    "us-gaap_IncreaseDecreaseInOtherCurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInOtherCurrentLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Other Current Liabilities",
        "terseLabel": "Other current liabilities",
        "documentation": "Amount of increase (decrease) in current liabilities classified as other."
       }
      }
     },
     "auth_ref": [
      "r1231"
     ]
    },
    "us-gaap_IncreaseDecreaseInOtherNoncurrentAssetsAndLiabilitiesNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInOtherNoncurrentAssetsAndLiabilitiesNet",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 20.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Other Noncurrent Assets and Liabilities, Net",
        "negatedLabel": "Other noncurrent items, net",
        "documentation": "Amount of increase (decrease) in noncurrent operating assets after deduction of noncurrent operating liabilities classified as other."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncreaseDecreaseInPrepaidTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInPrepaidTaxes",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 6.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Prepaid Taxes",
        "negatedLabel": "Prepaid taxes",
        "documentation": "Amount of increase (decrease) of consideration paid in advance for income and other taxes that provide economic benefits in future periods."
       }
      }
     },
     "auth_ref": [
      "r13"
     ]
    },
    "us-gaap_IncreaseDecreaseInStockholdersEquityRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInStockholdersEquityRollForward",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Stockholders' Equity [Roll Forward]",
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncreaseDecreaseInUnbilledReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInUnbilledReceivables",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 7.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Unbilled Receivables",
        "negatedLabel": "Unbilled revenues (change)",
        "documentation": "The increase (decrease) during the reporting period of the amount of revenue for work performed for which billing has not occurred, net of uncollectible accounts."
       }
      }
     },
     "auth_ref": [
      "r253"
     ]
    },
    "mgee_IndustrialMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "IndustrialMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Industrial [Member]",
        "documentation": "Industrial operating revenue."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_InsuranceContinuanceFundMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "InsuranceContinuanceFundMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Insurance Continuance Fund [Member]",
        "documentation": "Insurance continuance fund member."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestIncomeExpenseNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeExpenseNet",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Interest Income (Expense), Net, Total",
        "label": "Interest Income (Expense), Net",
        "negatedTotalLabel": "Net Interest Expense",
        "terseLabel": "Interest (expense) income, net",
        "documentation": "The net amount of operating interest income (expense)."
       }
      }
     },
     "auth_ref": [
      "r242"
     ]
    },
    "mgee_InterestIncomeExpenseOtherNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "InterestIncomeExpenseOtherNet",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Other interest, net",
        "verboseLabel": "Interest income, net",
        "documentation": "Interest income or expense on all other items not previously classified.",
        "terseLabel": "Other interest, net",
        "label": "Interest Income (Expense), Other, Net"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestPaidNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestPaidNet",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Paid, Excluding Capitalized Interest, Operating Activities",
        "terseLabel": "Interest paid",
        "documentation": "Amount of cash paid for interest, excluding capitalized interest, classified as operating activity. Includes, but is not limited to, payment to settle zero-coupon bond for accreted interest of debt discount and debt instrument with insignificant coupon interest rate in relation to effective interest rate of borrowing attributable to accreted interest of debt discount."
       }
      }
     },
     "auth_ref": [
      "r334",
      "r337",
      "r338"
     ]
    },
    "mgee_InternalUseSoftwareMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "InternalUseSoftwareMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Internal Use Software [Member]",
        "documentation": "Internal Use Software [Member]",
        "terseLabel": "Capitalized Software [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InternalUseSoftwarePolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InternalUseSoftwarePolicy",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Internal Use Software, Policy [Policy Text Block]",
        "terseLabel": "Capitalized Software Costs",
        "documentation": "Disclosure of accounting policy for costs incurred when both (1) the software is acquired, internally developed, or modified solely to meet the entity's internal needs, and (2) during the software's development or modification, no substantive plan exists or is being developed to market the software externally."
       }
      }
     },
     "auth_ref": [
      "r3",
      "r4"
     ]
    },
    "mgee_InternationalBlendMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "InternationalBlendMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "International Blend [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IntersegmentEliminationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IntersegmentEliminationMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consolidation Elimination Entries [Member]",
        "label": "Intersegment Eliminations [Member]",
        "documentation": "Eliminating entries used in operating segment consolidation."
       }
      }
     },
     "auth_ref": [
      "r397",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r420",
      "r424"
     ]
    },
    "us-gaap_InventoryDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InventoryDisclosureAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory Disclosure [Abstract]",
        "terseLabel": "Inventories"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InventoryPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InventoryPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory, Policy [Policy Text Block]",
        "terseLabel": "Inventories",
        "documentation": "Disclosure of inventory accounting policy for inventory classes, including, but not limited to, basis for determining inventory amounts, methods by which amounts are added and removed from inventory classes, loss recognition on impairment of inventories, and situations in which inventories are stated above cost."
       }
      }
     },
     "auth_ref": [
      "r256",
      "r299",
      "r312",
      "r496",
      "r497",
      "r498",
      "r905",
      "r1120"
     ]
    },
    "us-gaap_InvestmentPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Policy [Policy Text Block]",
        "terseLabel": "Investments",
        "documentation": "Disclosure of accounting policy for investment in financial asset."
       }
      }
     },
     "auth_ref": [
      "r949",
      "r983",
      "r984",
      "r985",
      "r986",
      "r1077",
      "r1078"
     ]
    },
    "us-gaap_InvestmentTaxCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentTaxCredit",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amortized investment tax credits",
        "label": "Investment Tax Credit",
        "negatedTerseLabel": "Amortized investment tax credits",
        "documentation": "The amount deducted from an entities' taxes, reflecting a percentage of an amount invested in certain assets spread over the useful life of those assets; includes deferred investment tax credits."
       }
      }
     },
     "auth_ref": [
      "r198"
     ]
    },
    "us-gaap_InvestmentTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentTypeAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Type [Axis]",
        "documentation": "Information by type of investments."
       }
      }
     },
     "auth_ref": [
      "r1002",
      "r1004",
      "r1005",
      "r1007",
      "r1010",
      "r1074",
      "r1076",
      "r1080",
      "r1083",
      "r1084",
      "r1095",
      "r1096",
      "r1098",
      "r1099",
      "r1100",
      "r1101",
      "r1102",
      "r1164"
     ]
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentTypeCategorizationMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments [Domain]",
        "documentation": "Asset obtained to generate income or appreciate in value."
       }
      }
     },
     "auth_ref": [
      "r1002",
      "r1004",
      "r1005",
      "r1007",
      "r1010",
      "r1074",
      "r1076",
      "r1080",
      "r1083",
      "r1084",
      "r1095",
      "r1096",
      "r1098",
      "r1099",
      "r1100",
      "r1101",
      "r1102",
      "r1164"
     ]
    },
    "us-gaap_Investments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Investments",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 7.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.mge.com/20231231/taxonomy/role/DisclosureInvestmentsDetails12": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments",
        "totalLabel": "Total investments",
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all investments."
       }
      }
     },
     "auth_ref": [
      "r930"
     ]
    },
    "us-gaap_InvestmentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments [Abstract]",
        "terseLabel": "Investments:"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_InvestmentsDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "InvestmentsDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments in affiliates",
        "label": "Investments in and Advance to Affiliates, Subsidiaries, Associates, and Joint Ventures",
        "totalLabel": "Investments in and Advance to Affiliates, Subsidiaries, Associates, and Joint Ventures, Total",
        "documentation": "Amount of investment in equity method investee and investment in and advance to affiliate."
       }
      }
     },
     "auth_ref": [
      "r1222"
     ]
    },
    "mgee_InvestmentsInNonPublicEntitiesCapitalInfusionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "InvestmentsInNonPublicEntitiesCapitalInfusionsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in Non Public Entities, Capital Infusions [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_InvestmentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "InvestmentsTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_Investments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments",
        "documentation": "Disclosure of available-for-sale, equity method, and other investments.",
        "label": "Investments [Text Block]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_JointlyOwnedUtilityPlantAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "JointlyOwnedUtilityPlantAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Jointly Owned Utility Plant [Axis]",
        "documentation": "Information by type of jointly owned utility plant."
       }
      }
     },
     "auth_ref": [
      "r246"
     ]
    },
    "us-gaap_JointlyOwnedUtilityPlantDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "JointlyOwnedUtilityPlantDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Jointly Owned Utility Plant [Domain]",
        "documentation": "Types of a jointly owned utility plant."
       }
      }
     },
     "auth_ref": [
      "r161"
     ]
    },
    "mgee_JointlyOwnedUtilityPlantFuelOperatingAndMaintenanceExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "JointlyOwnedUtilityPlantFuelOperatingAndMaintenanceExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Discloses entity portion of the fuel, operating, and maintenance expenses for the period.",
        "terseLabel": "Jointly owned utility plant, fuel, operating, and maintenance expense",
        "label": "Jointly Owned Utility Plant, Fuel, Operating, and Maintenance Expense"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_JointlyOwnedUtilityPlantGrossOwnershipAmountOfPlantInService": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "JointlyOwnedUtilityPlantGrossOwnershipAmountOfPlantInService",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails": {
       "parentTag": "mgee_JointlyOwnedUtilityPlantNetOwnershipAmountBeforeConstructionWorkInProgress",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Jointly Owned Utility Plant, Gross Ownership Amount of Plant in Service, Total",
        "label": "Jointly Owned Utility Plant, Gross Ownership Amount of Plant in Service",
        "terseLabel": "Plant",
        "documentation": "The period end amount owned by the reporting utility of a jointly owned utility plant in service."
       }
      }
     },
     "auth_ref": [
      "r246"
     ]
    },
    "us-gaap_JointlyOwnedUtilityPlantInterestsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "JointlyOwnedUtilityPlantInterestsLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Jointly Owned Utility Plant Interests [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_JointlyOwnedUtilityPlantInterestsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "JointlyOwnedUtilityPlantInterestsTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Jointly Owned Utility Plant Interests [Table]",
        "documentation": "Detailed information about jointly owned utility plants."
       }
      }
     },
     "auth_ref": [
      "r246"
     ]
    },
    "mgee_JointlyOwnedUtilityPlantInterestsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "JointlyOwnedUtilityPlantInterestsTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnership"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Elm Road",
        "terseLabel": "Columbia Environmental Project Construction",
        "documentation": "Describes significant information about our ongoing solar generation projects: Two Creeks and Bager Hollow I and II.",
        "label": "Joint Plant Ownership"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_JointlyOwnedUtilityPlantNetOwnershipAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "JointlyOwnedUtilityPlantNetOwnershipAmount",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Jointly Owned Utility Plant, Net Ownership Amount",
        "totalLabel": "Total property, plant, and equipment",
        "documentation": "The total period end amount of plant in service and construction in progress net of accumulated depreciation for the utility's share of jointly owned electricity generation plant."
       }
      }
     },
     "auth_ref": [
      "r246"
     ]
    },
    "us-gaap_JointlyOwnedUtilityPlantNetOwnershipAmountAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "JointlyOwnedUtilityPlantNetOwnershipAmountAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Jointly Owned Utility Plant, Net Ownership Amount [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_JointlyOwnedUtilityPlantNetOwnershipAmountBeforeConstructionWorkInProgress": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "JointlyOwnedUtilityPlantNetOwnershipAmountBeforeConstructionWorkInProgress",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails": {
       "parentTag": "us-gaap_JointlyOwnedUtilityPlantNetOwnershipAmount",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total period end amount of plant in service net of accumulated depreciation for the utility's share of jointly owned electricity generation plant.",
        "totalLabel": "Property, plant, and equipment, net",
        "label": "Jointly Owned Utility Plant, Net Ownership Amount Before Construction Work in Progress"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_JointlyOwnedUtilityPlantOwnershipAmountOfConstructionWorkInProgress": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "JointlyOwnedUtilityPlantOwnershipAmountOfConstructionWorkInProgress",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails": {
       "parentTag": "us-gaap_JointlyOwnedUtilityPlantNetOwnershipAmount",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Jointly Owned Utility Plant, Ownership Amount of Construction Work in Progress, Total",
        "label": "Jointly Owned Utility Plant, Ownership Amount of Construction Work in Progress",
        "terseLabel": "Construction work in progress",
        "documentation": "The period end amount of construction work in progress at a jointly owned electricity generation plant."
       }
      }
     },
     "auth_ref": [
      "r246"
     ]
    },
    "us-gaap_JointlyOwnedUtilityPlantOwnershipAmountOfPlantAccumulatedDepreciation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "JointlyOwnedUtilityPlantOwnershipAmountOfPlantAccumulatedDepreciation",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails": {
       "parentTag": "mgee_JointlyOwnedUtilityPlantNetOwnershipAmountBeforeConstructionWorkInProgress",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Jointly Owned Utility Plant, Ownership Amount of Plant Accumulated Depreciation, Total",
        "label": "Jointly Owned Utility Plant, Ownership Amount of Plant Accumulated Depreciation",
        "negatedLabel": "Accumulated depreciation",
        "documentation": "The period end amount of accumulated depreciation in a jointly owned electricity generation plant."
       }
      }
     },
     "auth_ref": [
      "r246"
     ]
    },
    "mgee_JointlyOwnedUtilityPlantPlantCapacity": {
     "xbrltype": "powerItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "JointlyOwnedUtilityPlantPlantCapacity",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Jointly owned utility plant, plant capacity (in MW)",
        "documentation": "The total operating capacity of each of the units in the jointly owned utility plant.",
        "terseLabel": "Plant capacity (in MW)",
        "label": "Jointly Owned Utility Plant, Plant Capacity"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_JointlyOwnedUtilityPlantProportionOfTotalNetSummerGeneratingCapability": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "JointlyOwnedUtilityPlantProportionOfTotalNetSummerGeneratingCapability",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A jointly owned utility plant's share of MGE's net generating capability.",
        "terseLabel": "Jointly owned utility plant, proportion of total net summer generating capability",
        "label": "Jointly Owned Utility Plant, Proportion of Total Net Summer Generating Capability"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_JointlyOwnedUtilityPlantProportionOfTotalNetSummerGeneratingCapabilityPlantCapacity": {
     "xbrltype": "powerItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "JointlyOwnedUtilityPlantProportionOfTotalNetSummerGeneratingCapabilityPlantCapacity",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Jointly Owned Utility Plant, Proportion of Total Net Summer Generating Capability, Plant Capacity",
        "terseLabel": "Jointly owned utility plant, proportion of total net summer generating capability, plant capacity (in MW)",
        "documentation": "A jointly owned utility plant's share of MGE's net generating capability capacity."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_JointlyOwnedUtilityPlantProportionateOwnershipShare": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "JointlyOwnedUtilityPlantProportionateOwnershipShare",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Jointly Owned Utility Plant, Proportionate Ownership Share",
        "terseLabel": "Jointly owned utility plant, ownership interest",
        "documentation": "The proportionate share of interest (percent) in a jointly owned utility plant."
       }
      }
     },
     "auth_ref": [
      "r246"
     ]
    },
    "mgee_JointlyOwnedUtiliytPlantNumberOfOperatingUnits": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "JointlyOwnedUtiliytPlantNumberOfOperatingUnits",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Jointly Owned Utiliyt Plant, Number of Operating Units",
        "documentation": "Number of operating units in the jointly owned utility plant.",
        "terseLabel": "Jointly owned utility plant, number of operating units"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_JointownersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "JointownersMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Joint Owners [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_LeaseBalanceSheetTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "LeaseBalanceSheetTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease Balance Sheet [Table Text Block]",
        "terseLabel": "Lease Balance Sheet",
        "documentation": "Tabular disclosure of lessee's finance and operating lease assets and finance and operating lease liabilities along with their respective locations on the balance sheet."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LeaseCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LeaseCost",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails1": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease, Cost",
        "totalLabel": "Total lease expense",
        "documentation": "Amount of lease cost recognized by lessee for lease contract."
       }
      }
     },
     "auth_ref": [
      "r845",
      "r1158"
     ]
    },
    "us-gaap_LeaseCostAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LeaseCostAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease, Cost [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LeaseCostTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LeaseCostTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease, Cost [Table Text Block]",
        "terseLabel": "Lease Cost",
        "documentation": "Tabular disclosure of lessee's lease cost. Includes, but is not limited to, interest expense for finance lease, amortization of right-of-use asset for finance lease, operating lease cost, short-term lease cost, variable lease cost and sublease income."
       }
      }
     },
     "auth_ref": [
      "r1333"
     ]
    },
    "mgee_LeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "LeaseLiability",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease Liability",
        "totalLabel": "Total lease liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_LeaseRegulatoryAssetMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "LeaseRegulatoryAssetMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease Regulatory Asset [Member]",
        "documentation": "Regulatory Asset costs related to leases.",
        "terseLabel": "Leases [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_LeaseRightOfUseAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "LeaseRightOfUseAsset",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease Right Of Use Asset",
        "totalLabel": "Total lease assets",
        "documentation": "Total of finance and operating right of use assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LeasesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LeasesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Leases [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_LeasesOfLesseeDisclosuresTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "LeasesOfLesseeDisclosuresTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_Leases"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lease",
        "label": "Leases of Lessee Disclosures [Text Block]",
        "documentation": "The entire disclosure for lessee entity's leasing arrangements including, but not limited to, all of the following: (a.) The basis on which contingent rental payments are determined, (b.) The existence and terms of renewal or purchase options and escalation clauses, (c.) Restrictions imposed by lease agreements, such as those concerning dividends, additional debt, and further leasing."
       }
      }
     },
     "auth_ref": []
    },
    "dei_LegalEntityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "LegalEntityAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/DocumentAuditInformation",
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterest",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestTables",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesTables",
      "http://www.mge.com/20231231/taxonomy/role/StatementMgeEnergyIncConsolidatedStatementsOfCommonEquityParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal Entity [Axis]",
        "documentation": "The set of legal entities associated with a report."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LesseeDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_LesseeDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "LesseeDisclosureLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee Disclosure [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LesseeLeasesPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeLeasesPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Leases [Policy Text Block]",
        "terseLabel": "Leases",
        "documentation": "Disclosure of accounting policy for leasing arrangement entered into by lessee."
       }
      }
     },
     "auth_ref": [
      "r844"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, to be Paid, Maturity [Table Text Block]",
        "terseLabel": "Lessee Operating Lease Liability Maturity",
        "documentation": "Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position."
       }
      }
     },
     "auth_ref": [
      "r1334"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDue",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Undiscounted operating lease liability",
        "label": "Lessee, Operating Lease, Liability, to be Paid",
        "terseLabel": "Undiscounted operating lease liability",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease."
       }
      }
     },
     "auth_ref": [
      "r852"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, to be Paid, after Year Five",
        "terseLabel": "Thereafter",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease due after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r852"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2024",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year One",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r852"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFive",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2028",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Five",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r852"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFour",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2027",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Four",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r852"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearThree",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2026",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Three",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r852"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearTwo",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2025",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Two",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r852"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityUndiscountedExcessAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, Undiscounted Excess Amount",
        "negatedLabel": "Less: present value discount",
        "documentation": "Amount of lessee's undiscounted obligation for lease payments in excess of discounted obligation for lease payments for operating lease."
       }
      }
     },
     "auth_ref": [
      "r852"
     ]
    },
    "us-gaap_LettersOfCreditOutstandingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LettersOfCreditOutstandingAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Letters of Credit Outstanding, Amount",
        "terseLabel": "Letters of credit issued inside credit facilities",
        "documentation": "The total amount of the contingent obligation under letters of credit outstanding as of the reporting date."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesAndStockholdersEquity",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities and Equity",
        "totalLabel": "Total Liabilities and Capitalization",
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any."
       }
      }
     },
     "auth_ref": [
      "r183",
      "r239",
      "r938",
      "r1159",
      "r1234",
      "r1257",
      "r1332"
     ]
    },
    "us-gaap_LiabilitiesAndStockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesAndStockholdersEquityAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities and Equity [Abstract]",
        "terseLabel": "Equity method investment summarized liabilities and equity [Abstract]",
        "verboseLabel": "LIABILITIES AND CAPITALIZATION"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LiabilitiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities, Current",
        "totalLabel": "Total Current Liabilities",
        "documentation": "Total obligations incurred as part of normal operations that are expected to be paid during the following twelve months or within one business cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r48",
      "r298",
      "r342",
      "r470",
      "r527",
      "r528",
      "r530",
      "r531",
      "r532",
      "r534",
      "r536",
      "r538",
      "r539",
      "r755",
      "r758",
      "r759",
      "r811",
      "r1159",
      "r1270",
      "r1341",
      "r1342"
     ]
    },
    "us-gaap_LiabilitiesCurrentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesCurrentAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities, Current [Abstract]",
        "terseLabel": "Current Liabilities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LiabilitiesFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total Liabilities",
        "label": "Liabilities, Fair Value Disclosure",
        "terseLabel": "Total Liabilities",
        "documentation": "Fair value of financial and nonfinancial obligations."
       }
      }
     },
     "auth_ref": [
      "r139"
     ]
    },
    "us-gaap_LiabilitiesFairValueDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesFairValueDisclosureAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities, Fair Value Disclosure [Abstract]",
        "terseLabel": "Liabilities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LiabilitiesNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities, Noncurrent",
        "totalLabel": "Total Other Credits",
        "documentation": "Amount of obligation due after one year or beyond the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r41",
      "r166",
      "r167",
      "r168",
      "r173",
      "r342",
      "r470",
      "r527",
      "r528",
      "r530",
      "r531",
      "r532",
      "r534",
      "r536",
      "r538",
      "r539",
      "r755",
      "r758",
      "r759",
      "r811",
      "r1270",
      "r1341",
      "r1342"
     ]
    },
    "us-gaap_LiabilitiesNoncurrentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesNoncurrentAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities, Noncurrent [Abstract]",
        "terseLabel": "Other Credits:"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_LicenseFeeTaxRateElectricResaleByPurchaser": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "LicenseFeeTaxRateElectricResaleByPurchaser",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "License fee tax rate, electric, resale by purchaser",
        "documentation": "Electric license fee tax rate for resale by purchaser.",
        "label": "License Fee Tax Rate, Electric, Resale by Purchaser"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_LicenseFeeTaxRateElectricRetailSales": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "LicenseFeeTaxRateElectricRetailSales",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "License fee tax rate, electric, retail sales",
        "documentation": "Electric license fee tax rate for retail sales.",
        "label": "License Fee Tax Rate, Electric, Retail Sales"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_LicenseFeeTaxRateNaturalGas": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "LicenseFeeTaxRateNaturalGas",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "License fee tax rate, natural gas",
        "documentation": "Natural gas license fee tax rate.",
        "label": "License Fee Tax Rate, Natural Gas"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LineOfCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCredit",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Long-term Line of Credit, Total",
        "label": "Long-Term Line of Credit",
        "terseLabel": "Line of credit, borrowings outstanding",
        "documentation": "The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement."
       }
      }
     },
     "auth_ref": [
      "r41",
      "r237",
      "r1353"
     ]
    },
    "us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCreditFacilityCurrentBorrowingCapacity",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility, Current Borrowing Capacity",
        "terseLabel": "Available capacity under line of credit",
        "documentation": "Amount of current borrowing capacity under the credit facility considering any current restrictions on the amount that could be borrowed (for example, borrowings may be limited by the amount of current assets), but without considering any amounts currently outstanding under the facility."
       }
      }
     },
     "auth_ref": [
      "r45"
     ]
    },
    "us-gaap_LineOfCreditFacilityLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCreditFacilityLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r1233"
     ]
    },
    "us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCreditFacilityMaximumBorrowingCapacity",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility, Maximum Borrowing Capacity",
        "terseLabel": "Line of credit",
        "documentation": "Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility."
       }
      }
     },
     "auth_ref": [
      "r45"
     ]
    },
    "us-gaap_LineOfCreditFacilityTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCreditFacilityTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility [Table]",
        "documentation": "A table or schedule providing information pertaining to short-term or long-term contractual arrangements with lenders, including letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line."
       }
      }
     },
     "auth_ref": [
      "r45",
      "r1233"
     ]
    },
    "us-gaap_LineOfCreditMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCreditMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit [Member]",
        "documentation": "A contractual arrangement with a lender under which borrowings can be made up to a specific amount at any point in time, and under which borrowings outstanding may be either short-term or long-term, depending upon the particulars."
       }
      }
     },
     "auth_ref": []
    },
    "dei_LocalPhoneNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "LocalPhoneNumber",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Local Phone Number",
        "documentation": "Local phone number for entity."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_LongDurationBondFixedIncomeSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "LongDurationBondFixedIncomeSecuritiesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Duration Bond Fixed Income Securities [Member]",
        "documentation": "Long Duration Bond Fixed Income Securities",
        "terseLabel": "Long Duration Bond [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebt",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-term debt",
        "label": "Long-Term Debt",
        "verboseLabel": "Total Long-Term Debt",
        "totalLabel": "Total",
        "documentation": "Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation."
       }
      }
     },
     "auth_ref": [
      "r41",
      "r237",
      "r547",
      "r559",
      "r1131",
      "r1132",
      "r1353"
     ]
    },
    "us-gaap_LongTermDebtCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1": {
       "parentTag": "us-gaap_LongTermDebtNoncurrent",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Long-term Debt, Current Maturities, Total",
        "label": "Long-Term Debt, Current Maturities",
        "negatedLabel": "Long-term debt due within one year",
        "terseLabel": "Long-term debt due within one year",
        "documentation": "Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt classified as current. Excludes lease obligation."
       }
      }
     },
     "auth_ref": [
      "r305"
     ]
    },
    "us-gaap_LongTermDebtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtFairValue",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Fair Value",
        "terseLabel": "Long-term debt",
        "documentation": "The fair value amount of long-term debt whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long term debt maturities in future years",
        "label": "Long-Term Debt, Maturity, after Year Five",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r17",
      "r349",
      "r1275"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long term debt maturities in 2024",
        "label": "Long-Term Debt, Maturity, Year One",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r17",
      "r349",
      "r551"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long term debt maturities in 2028",
        "label": "Long-Term Debt, Maturity, Year Five",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r17",
      "r349",
      "r551"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long term debt maturities in 2027",
        "label": "Long-Term Debt, Maturity, Year Four",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r17",
      "r349",
      "r551"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long term debt maturities in 2026",
        "label": "Long-Term Debt, Maturity, Year Three",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r17",
      "r349",
      "r551"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long term debt maturities in 2025",
        "label": "Long-Term Debt, Maturity, Year Two",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r17",
      "r349",
      "r551"
     ]
    },
    "us-gaap_LongTermDebtNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_CapitalizationLongtermDebtAndEquity",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_CapitalizationLongtermDebtAndEquity",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Excluding Current Maturities",
        "totalLabel": "Total Long-Term Debt",
        "terseLabel": "Total Long-Term Debt",
        "verboseLabel": "Long-term debt",
        "documentation": "Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt classified as noncurrent. Excludes lease obligation."
       }
      }
     },
     "auth_ref": [
      "r306"
     ]
    },
    "us-gaap_LongTermDebtTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebt"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-Term Debt",
        "label": "Long-Term Debt [Text Block]",
        "documentation": "The entire disclosure for long-term debt."
       }
      }
     },
     "auth_ref": [
      "r209"
     ]
    },
    "mgee_LongTermIncentivePlan2021Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "LongTermIncentivePlan2021Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Incentive Plan 2021 [Member]",
        "terseLabel": "2021 Long Term Incentive Plan [Member]",
        "documentation": "Plan for 2021 Long Term Incentive Plan as decribed in our report."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermPurchaseCommitmentAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermPurchaseCommitmentAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Purchase Commitment, Amount",
        "terseLabel": "Minimum future capital commitments",
        "documentation": "The minimum amount the entity agreed to spend under the long-term purchase commitment."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Category of Item Purchased [Axis]",
        "documentation": "Information by category of items purchased under a long-term purchase commitment."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Purchase Commitment, Category of Item Purchased [Domain]",
        "documentation": "General description of the goods or services to be purchased from the counterparty to the long-term purchase commitment."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermPurchaseCommitmentLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermPurchaseCommitmentLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Purchase Commitment [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_LongTermPurchaseCommitmentMinimumPowerRequired": {
     "xbrltype": "powerItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "LongTermPurchaseCommitmentMinimumPowerRequired",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Power that must be purchased within the specified time period of the agreement to avoid penalties or unfavorable effects on pricing, among other adverse consequences.",
        "terseLabel": "Long-term purchase commitment, minimum power required (in MW)",
        "label": "Long Term Purchase Commitment, Minimum Power Required"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermPurchaseCommitmentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermPurchaseCommitmentTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Purchase Commitment [Table]",
        "documentation": "Schedule setting forth key provisions of an arrangement under which the entity has agreed to purchase goods or services over a period of time greater than one year or the normal operating cycle, if longer, including the item for which expenditures will be made, minimum quantities, milestones, time period and committed amount."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongtermDebtTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongtermDebtTypeAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Type [Axis]",
        "documentation": "Information by type of long-term debt."
       }
      }
     },
     "auth_ref": [
      "r50"
     ]
    },
    "us-gaap_LongtermDebtTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongtermDebtTypeDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Type [Domain]",
        "documentation": "Type of long-term debt arrangement, such as notes, line of credit, commercial paper, asset-based financing, project financing, letter of credit financing. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer."
       }
      }
     },
     "auth_ref": [
      "r50",
      "r87"
     ]
    },
    "us-gaap_MarginDepositAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MarginDepositAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Margin Deposit Assets",
        "terseLabel": "Receivable, margin account balance, net of collateral posted against derivative positions",
        "verboseLabel": "Receivable - margin account",
        "documentation": "The amount of cash or securities placed with a broker or counterparty as security for a trading or derivatives securities position which was partially obtained with funds provided by the broker dealer."
       }
      }
     },
     "auth_ref": [
      "r1011",
      "r1221"
     ]
    },
    "mgee_Margindepositassetspolicytextblock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Margindepositassetspolicytextblock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Margin Deposit Assets Policy [Text Block]",
        "terseLabel": "Receivable Margin Account",
        "documentation": "Disclosure of accounting policy for restricted receivable margin account."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MaturitiesOfLongTermDebtAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MaturitiesOfLongTermDebtAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturities of Long-Term Debt [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_MaturityfourtofiveyearsmemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "MaturityfourtofiveyearsmemberMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity Four To Five Years [Member]",
        "documentation": "Maturity period that is more than four years but less than five years from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "terseLabel": "2024 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_MaturityonetotwoyearsmemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "MaturityonetotwoyearsmemberMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity One To Two Years [Member]",
        "documentation": "Maturity period that is more than one year but less than two years from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "terseLabel": "2021 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_MaturityoverfiveyearsmemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "MaturityoverfiveyearsmemberMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity Over Five Years [Member]",
        "documentation": "Maturity period of over five years from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "terseLabel": "Thereafter [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_MaturitythreetofouryearsmemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "MaturitythreetofouryearsmemberMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity Three To Four Years [Member]",
        "documentation": "Maturity period that is more than three years but less than four years from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "terseLabel": "2023 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_MaturitytwotothreeyearsmemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "MaturitytwotothreeyearsmemberMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity Two To Three Years [Member]",
        "documentation": "Maturity period that is more than two years but less than three years from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "terseLabel": "2022 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_MaturityuptooneyearmemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "MaturityuptooneyearmemberMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity Up To One Year [Member]",
        "documentation": "Maturity period of up to one year from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "terseLabel": "2020 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_MaximumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "MaximumMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maximum [Member]",
        "documentation": "Upper limit of the provided range."
       }
      }
     },
     "auth_ref": [
      "r523",
      "r524",
      "r525",
      "r526",
      "r666",
      "r904",
      "r968",
      "r1011",
      "r1012",
      "r1075",
      "r1079",
      "r1081",
      "r1082",
      "r1097",
      "r1108",
      "r1109",
      "r1126",
      "r1135",
      "r1153",
      "r1161",
      "r1274",
      "r1343",
      "r1344",
      "r1345",
      "r1346",
      "r1347",
      "r1348"
     ]
    },
    "us-gaap_MediumTermNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MediumTermNotesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "5.26%, due 2017 [Member]",
        "label": "Medium-term Notes [Member]",
        "documentation": "Debt instruments with maturities ranging from five to ten years."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_MgeEnergyUnsecuredCommittedRevolvingLineOfCreditMemberTotalingFiftyMillionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "MgeEnergyUnsecuredCommittedRevolvingLineOfCreditMemberTotalingFiftyMillionMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "MGE Energy Unsecured Committed Revolving Line of Credit Totaling Fifty million [Member]",
        "terseLabel": "MGE Energy unsecured committed revolving line of credit totaling $50 million [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_MgeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "MgeMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/DocumentAuditInformation",
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterest",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestTables",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2",
      "http://www.mge.com/20231231/taxonomy/role/StatementMgeEnergyIncConsolidatedStatementsOfCommonEquityParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The set of legal entities associated with a report",
        "label": "MGE [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_MgePowerElmRoadMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "MgePowerElmRoadMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MGE Power Elm Road.",
        "label": "MGE Power Elm Road [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_MgePowerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "MgePowerMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MGE Power.",
        "label": "MGE Power [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_MgePowerWestCampusMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "MgePowerWestCampusMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MGE Power West Campus.",
        "label": "MGE Power West Campus [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_MgeTranscoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "MgeTranscoMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MGE Transco",
        "label": "MGE Transco [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_MgeUnsecuredCommittedRevolvingLinesOfCreditMemberTotalingOneHundredMillionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "MgeUnsecuredCommittedRevolvingLinesOfCreditMemberTotalingOneHundredMillionMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "MGE Unsecured Committed Revolving Lines of Credit Totaling One Hundred Million [Member]",
        "terseLabel": "MGE unsecured committed revolving lines of credit totaling $100 million [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_MgeetranscoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "MgeetranscoMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "MGEE Transco [Member]",
        "documentation": "MGEE Transco."
       }
      }
     },
     "auth_ref": []
    },
    "srt_MinimumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "MinimumMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minimum [Member]",
        "documentation": "Lower limit of the provided range."
       }
      }
     },
     "auth_ref": [
      "r523",
      "r524",
      "r525",
      "r526",
      "r666",
      "r904",
      "r968",
      "r1011",
      "r1012",
      "r1075",
      "r1079",
      "r1081",
      "r1082",
      "r1097",
      "r1108",
      "r1109",
      "r1126",
      "r1135",
      "r1153",
      "r1161",
      "r1274",
      "r1343",
      "r1344",
      "r1345",
      "r1346",
      "r1347",
      "r1348"
     ]
    },
    "us-gaap_MinorityInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MinorityInterest",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Stockholders' Equity Attributable to Noncontrolling Interest, Ending Balance",
        "periodStartLabel": "Stockholders' Equity Attributable to Noncontrolling Interest, Beginning Balance",
        "totalLabel": "Stockholders' Equity Attributable to Noncontrolling Interest, Total",
        "label": "Equity, Attributable to Noncontrolling Interest",
        "terseLabel": "Noncontrolling interest on balance sheet",
        "verboseLabel": "Noncontrolling interest",
        "documentation": "Amount of equity (deficit) attributable to noncontrolling interest. Excludes temporary equity."
       }
      }
     },
     "auth_ref": [
      "r56",
      "r238",
      "r342",
      "r470",
      "r527",
      "r530",
      "r531",
      "r532",
      "r538",
      "r539",
      "r811",
      "r937",
      "r1022"
     ]
    },
    "us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncontrolling Interest, Decrease from Distributions to Noncontrolling Interest Holders",
        "negatedLabel": "Distributions to parent from noncontrolling interest",
        "documentation": "Decrease in noncontrolling interest balance from payment of dividends or other distributions by the non-wholly owned subsidiary or partially owned entity, included in the consolidation of the parent entity, to the noncontrolling interest holders."
       }
      }
     },
     "auth_ref": [
      "r213"
     ]
    },
    "us-gaap_MinorityInterestDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MinorityInterestDisclosureTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterest"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncontrolling Interest Disclosure [Text Block]",
        "documentation": "The entire disclosure for noncontrolling interest in consolidated subsidiaries, which could include the name of the subsidiary, the ownership percentage held by the parent, the ownership percentage held by the noncontrolling owners, the amount of the noncontrolling interest, the location of this amount on the balance sheet (when not reported separately), an explanation of the increase or decrease in the amount of the noncontrolling interest, the noncontrolling interest share of the net Income or Loss of the subsidiary, the location of this amount on the income statement (when not reported separately), the nature of the noncontrolling interest such as background information and terms, the amount of the noncontrolling interest represented by preferred stock, a description of the preferred stock, and the dividend requirements of the preferred stock."
       }
      }
     },
     "auth_ref": [
      "r224"
     ]
    },
    "us-gaap_MinorityInterestLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MinorityInterestLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterest",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncontrolling Interest [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MinorityInterestOwnershipPercentageByParent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MinorityInterestOwnershipPercentageByParent",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsidiary, Ownership Percentage, Parent",
        "terseLabel": "Ownership percentage by parent",
        "documentation": "The parent entity's interest in net assets of the subsidiary, expressed as a percentage."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MinorityInterestTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MinorityInterestTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterest",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncontrolling Interest [Table]",
        "documentation": "Schedule of noncontrolling interest disclosure which includes the name of the subsidiary, the ownership percentage held by the parent, the ownership percentage held by the noncontrolling owners, the amount of the noncontrolling interest, the location of this amount on the balance sheet (when not reported separately), an explanation of the increase or decrease in the amount of the noncontrolling interest, the noncontrolling interest share of the net Income or Loss of the subsidiary, the location of this amount on the income statement (when not reported separately), the nature of the noncontrolling interest such as background information and terms, the amount of the noncontrolling interest represented by preferred stock, a description of the preferred stock, and the dividend requirements of the preferred stock."
       }
      }
     },
     "auth_ref": [
      "r56",
      "r110",
      "r112",
      "r189"
     ]
    },
    "us-gaap_MovementInValuationAllowancesAndReservesRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MovementInValuationAllowancesAndReservesRollForward",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward]",
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NaturalGasUsRegulatedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NaturalGasUsRegulatedMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Natural Gas, US Regulated [Member]",
        "documentation": "Generation, transmission and distribution of flammable gas occurring naturally underground regulated by government or agency in United States."
       }
      }
     },
     "auth_ref": [
      "r1277"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Cash (Used for) Provided by Financing Activities",
        "label": "Net Cash Provided by (Used in) Financing Activities",
        "documentation": "Amount of cash inflow (outflow) from financing activities, including discontinued operations. Financing activity cash flows include obtaining resources from owners and providing them with a return on, and a return of, their investment; borrowing money and repaying amounts borrowed, or settling the obligation; and obtaining and paying for other resources obtained from creditors on long-term credit."
       }
      }
     },
     "auth_ref": [
      "r336"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Financing Activities [Abstract]",
        "terseLabel": "Financing Activities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Investing Activities",
        "totalLabel": "Cash Used for Investing Activities",
        "terseLabel": "Cash used for investing activities",
        "documentation": "Amount of cash inflow (outflow) from investing activities, including discontinued operations. Investing activity cash flows include making and collecting loans and acquiring and disposing of debt or equity instruments and property, plant, and equipment and other productive assets."
       }
      }
     },
     "auth_ref": [
      "r336"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInInvestingActivitiesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Investing Activities [Abstract]",
        "terseLabel": "Investing Activities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Operating Activities",
        "totalLabel": "Cash Provided by Operating Activities",
        "terseLabel": "Cash provided by operating activities",
        "documentation": "Amount of cash inflow (outflow) from operating activities, including discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities."
       }
      }
     },
     "auth_ref": [
      "r196",
      "r197",
      "r198"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "Operating Activities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetIncomeLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net Income (Loss)",
        "label": "Net Income (Loss)",
        "totalLabel": "Net Income",
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent."
       }
      }
     },
     "auth_ref": [
      "r188",
      "r198",
      "r241",
      "r296",
      "r321",
      "r323",
      "r328",
      "r342",
      "r363",
      "r368",
      "r369",
      "r371",
      "r372",
      "r376",
      "r377",
      "r383",
      "r395",
      "r415",
      "r421",
      "r424",
      "r470",
      "r527",
      "r528",
      "r530",
      "r531",
      "r532",
      "r534",
      "r536",
      "r538",
      "r539",
      "r789",
      "r811",
      "r945",
      "r1042",
      "r1063",
      "r1064",
      "r1123",
      "r1173",
      "r1270"
     ]
    },
    "us-gaap_NetIncomeLossAttributableToNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetIncomeLossAttributableToNoncontrollingInterest",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net Income (Loss) Attributable to Noncontrolling Interest, Total",
        "label": "Net Income (Loss) Attributable to Noncontrolling Interest",
        "negatedLabel": "Less Net Income Attributable to Noncontrolling Interest, net of tax",
        "terseLabel": "Net income attributable to noncontrolling interest, net of tax",
        "documentation": "Amount of Net Income (Loss) attributable to noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r119",
      "r226",
      "r321",
      "r323",
      "r376",
      "r377",
      "r944",
      "r1228"
     ]
    },
    "us-gaap_NewAccountingPronouncementsAndChangesInAccountingPrinciplesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NewAccountingPronouncementsAndChangesInAccountingPrinciplesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Adoption of Accounting Principles and Recently Issued Accounting Pronouncements",
        "label": "Accounting Standards Update and Change in Accounting Principle [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandards"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "New Accounting Pronouncements",
        "label": "Accounting Standards Update and Change in Accounting Principle [Text Block]",
        "documentation": "The entire disclosure for change in accounting principle. Includes, but is not limited to, nature, reason, and method of adopting amendment to accounting standards or other change in accounting principle."
       }
      }
     },
     "auth_ref": [
      "r266",
      "r267",
      "r270",
      "r293",
      "r361",
      "r362",
      "r365",
      "r366",
      "r378",
      "r379",
      "r475",
      "r476",
      "r738",
      "r739",
      "r740",
      "r773",
      "r785",
      "r791",
      "r792",
      "r793",
      "r816",
      "r817",
      "r818",
      "r835",
      "r836",
      "r858",
      "r910",
      "r911",
      "r912",
      "r975",
      "r976",
      "r977",
      "r978",
      "r980"
     ]
    },
    "us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New Accounting Pronouncements or Change in Accounting Principle [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r360",
      "r363",
      "r364",
      "r365",
      "r367",
      "r371",
      "r378",
      "r387",
      "r433",
      "r434",
      "r471",
      "r472",
      "r473",
      "r474",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r510",
      "r706",
      "r707",
      "r708",
      "r734",
      "r735",
      "r736",
      "r737",
      "r750",
      "r751",
      "r752",
      "r764",
      "r765",
      "r766",
      "r767",
      "r768",
      "r769",
      "r770",
      "r771",
      "r772",
      "r774",
      "r775",
      "r778",
      "r779",
      "r780",
      "r781",
      "r782",
      "r783",
      "r784",
      "r786",
      "r787",
      "r788",
      "r789",
      "r790",
      "r806",
      "r807",
      "r812",
      "r813",
      "r814",
      "r815",
      "r827",
      "r828",
      "r831",
      "r832",
      "r833",
      "r834",
      "r853",
      "r854",
      "r855",
      "r856",
      "r857",
      "r907",
      "r908",
      "r909",
      "r969",
      "r970",
      "r971",
      "r972",
      "r973",
      "r974",
      "r975",
      "r976",
      "r977",
      "r978",
      "r979",
      "r980",
      "r982"
     ]
    },
    "us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NewAccountingPronouncementsOrChangeInAccountingPrincipleTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update and Change in Accounting Principle [Table]",
        "documentation": "Summarization of the changes in an accounting principle or a new accounting pronouncement, including the line items affected by the change and the financial effects of the change on those particular line items."
       }
      }
     },
     "auth_ref": [
      "r70",
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r360",
      "r363",
      "r364",
      "r365",
      "r367",
      "r371",
      "r378",
      "r387",
      "r433",
      "r434",
      "r471",
      "r472",
      "r473",
      "r474",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r510",
      "r706",
      "r707",
      "r708",
      "r734",
      "r735",
      "r736",
      "r737",
      "r750",
      "r751",
      "r752",
      "r764",
      "r765",
      "r766",
      "r767",
      "r768",
      "r769",
      "r770",
      "r771",
      "r772",
      "r774",
      "r775",
      "r778",
      "r779",
      "r780",
      "r781",
      "r782",
      "r783",
      "r784",
      "r786",
      "r787",
      "r788",
      "r789",
      "r790",
      "r806",
      "r807",
      "r812",
      "r813",
      "r814",
      "r815",
      "r827",
      "r828",
      "r831",
      "r832",
      "r833",
      "r834",
      "r853",
      "r854",
      "r855",
      "r856",
      "r857",
      "r907",
      "r908",
      "r909",
      "r969",
      "r970",
      "r971",
      "r972",
      "r973",
      "r974",
      "r975",
      "r976",
      "r977",
      "r978",
      "r979",
      "r980",
      "r982"
     ]
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New Accounting Pronouncements, Policy [Policy Text Block]",
        "terseLabel": "New Accounting Pronouncements",
        "documentation": "Disclosure of accounting policy pertaining to new accounting pronouncements that may impact the entity's financial reporting. Includes, but is not limited to, quantification of the expected or actual impact."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_NgvfuelingservicesmemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "NgvfuelingservicesmemberMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "NGV Fueling Services [Member]",
        "documentation": "NGV Fueling Services."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_NonAssetRetirementObligationRemovalCostMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "NonAssetRetirementObligationRemovalCostMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "In connection with accounting for asset retirement obligations, companies are required to reclassify cumulative collections for non-ARO removal costs as a regulatory liability, with an offsetting entry to accumulated depreciation. Under the current rate structure, these removal costs are being recovered as a component of depreciation expense.",
        "terseLabel": "Non-ARO Removal Cost [Member]",
        "label": "Non Asset Retirement Obligation Removal Cost [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_NonRegulatedEnergyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "NonRegulatedEnergyMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Non-regulated energy member.",
        "label": "Non Regulated Energy [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoncontrollingInterestAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoncontrollingInterestAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncontrolling Interest [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_NoncontrollingInterestBalanceSheetTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "NoncontrollingInterestBalanceSheetTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncontrolling Interest Balance Sheet Table [Text Block]",
        "terseLabel": "Noncontrolling Interest in Balance Sheet",
        "documentation": "Tabular disclosure of noncontrolling interest included in balance sheet."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoncontrollingInterestDecreaseFromDeconsolidation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoncontrollingInterestDecreaseFromDeconsolidation",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncontrolling Interest, Decrease from Deconsolidation",
        "negatedLabel": "Deconsolidation of noncontrolling interest",
        "documentation": "The amount of the reduction or elimination during the period of a noncontrolling interest resulting from the parent's loss of control and deconsolidation of the entity in which one or more outside parties had a noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r95"
     ]
    },
    "us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncontrolling Interest, Increase from Subsidiary Equity Issuance",
        "terseLabel": "Equity contribution received by noncontrolling interest",
        "documentation": "Amount of increase in noncontrolling interest from subsidiary issuance of equity interests to noncontrolling interest holders."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r95",
      "r225"
     ]
    },
    "us-gaap_NoncontrollingInterestMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoncontrollingInterestMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncontrolling Interest [Member]",
        "documentation": "This element represents that portion of equity (net assets) in a subsidiary not attributable, directly or indirectly, to the parent. A noncontrolling interest is sometimes called a minority interest."
       }
      }
     },
     "auth_ref": [
      "r109",
      "r576",
      "r1239",
      "r1240",
      "r1241",
      "r1359"
     ]
    },
    "mgee_NoncontrollingInterestNetIncomeTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "NoncontrollingInterestNetIncomeTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncontrolling Interest Net Income Table [Text Block]",
        "terseLabel": "Net Income Attributable to Noncontrolling Interest, Net of Tax",
        "documentation": "Tabular disclosure of net income attributable to noncontrolling interest, net of tax."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NonoperatingIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NonoperatingIncomeExpense",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total Other Income and Deductions",
        "terseLabel": "Other income, net",
        "label": "Nonoperating Income (Expense)",
        "verboseLabel": "Other (deductions) income, net",
        "documentation": "The aggregate amount of income or expense from ancillary business-related activities (that is to say, excluding major activities considered part of the normal operations of the business)."
       }
      }
     },
     "auth_ref": [
      "r192"
     ]
    },
    "us-gaap_NontaxableMunicipalBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NontaxableMunicipalBondsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nontaxable Municipal Bonds [Member]",
        "documentation": "Long-term debt securities issued by state, city or local governments or the agencies operated by state, city or local governments that are not taxable."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NotesAndLoansReceivableNetNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NotesAndLoansReceivableNetNoncurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Financing Receivable, after Allowance for Credit Loss, Noncurrent, Total",
        "label": "Financing Receivable, after Allowance for Credit Loss, Noncurrent",
        "terseLabel": "Other long-term receivables",
        "documentation": "Amount, after allowance for credit loss, of financing receivable, classified as noncurrent."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NotionalAmountOfDerivativesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NotionalAmountOfDerivativesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Notional Disclosures [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OffsettingAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OffsettingAssetsLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Offsetting Assets [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OffsettingAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OffsettingAssetsTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Offsetting Assets [Table]",
        "documentation": "Disclosure of information about derivative and financial assets that are subject to offsetting, including enforceable master netting arrangements."
       }
      }
     },
     "auth_ref": [
      "r184",
      "r185"
     ]
    },
    "us-gaap_OffsettingAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OffsettingAssetsTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Offsetting Assets [Table Text Block]",
        "terseLabel": "Offsetting Assets",
        "documentation": "Tabular disclosure of derivative and other financial assets that are subject to offsetting, including master netting arrangements."
       }
      }
     },
     "auth_ref": [
      "r184",
      "r318"
     ]
    },
    "us-gaap_OffsettingLiabilitiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OffsettingLiabilitiesLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Offsetting Liabilities [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OffsettingLiabilitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OffsettingLiabilitiesTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Offsetting Liabilities [Table]",
        "documentation": "Disclosure of information about derivative and financial liabilities that are subject to offsetting, including enforceable master netting arrangements."
       }
      }
     },
     "auth_ref": [
      "r184",
      "r185"
     ]
    },
    "us-gaap_OffsettingLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OffsettingLiabilitiesTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Offsetting Liabilities [Table Text Block]",
        "terseLabel": "Offsetting Liabilities",
        "documentation": "Tabular disclosure of derivative and other financial liabilities that are subject to offsetting, including master netting arrangements."
       }
      }
     },
     "auth_ref": [
      "r184",
      "r318"
     ]
    },
    "us-gaap_OilAndGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OilAndGasMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oil and Gas [Member]",
        "documentation": "Viscous liquid derived from petroleum and flammable gas occurring naturally underground."
       }
      }
     },
     "auth_ref": [
      "r1277"
     ]
    },
    "us-gaap_OperatingCostsAndExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingCostsAndExpenses",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Costs and Expenses",
        "totalLabel": "Operating Costs and Expenses, Total",
        "documentation": "Generally recurring costs associated with normal operations except for the portion of these expenses which can be clearly related to production and included in cost of sales or services. Excludes Selling, General and Administrative Expense."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingCostsAndExpensesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingCostsAndExpensesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Costs and Expenses [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingIncomeLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Income (Loss)",
        "totalLabel": "Operating Income",
        "terseLabel": "Operating Income (Loss)",
        "documentation": "The net result for the period of deducting operating expenses from operating revenues."
       }
      }
     },
     "auth_ref": [
      "r395",
      "r415",
      "r421",
      "r424",
      "r1123"
     ]
    },
    "us-gaap_OperatingLeaseCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseCost",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails1": {
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Cost",
        "terseLabel": "Operating lease expense, Other operations and maintenance",
        "documentation": "Amount of single lease cost, calculated by allocation of remaining cost of lease over remaining lease term. Includes, but is not limited to, single lease cost, after impairment of right-of-use asset, calculated by amortization of remaining right-of-use asset and accretion of lease liability."
       }
      }
     },
     "auth_ref": [
      "r847",
      "r1158"
     ]
    },
    "us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseLiabilitiesPaymentsDueAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, to be Paid, Fiscal Year Maturity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingLeaseLiabilityCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseLiabilityCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2": {
       "parentTag": "mgee_LeaseLiability",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Less: current portion",
        "terseLabel": "Operating lease liabilities - current",
        "label": "Operating Lease, Liability, Current",
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease, classified as current."
       }
      }
     },
     "auth_ref": [
      "r838"
     ]
    },
    "mgee_OperatingLeaseLiabilityCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "OperatingLeaseLiabilityCurrentAndNoncurrent",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Operating Lease Liability Current And Noncurrent, Total",
        "label": "Operating Lease Liability Current And Noncurrent",
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating leases on the balance sheet (current and noncurrent).",
        "terseLabel": "Operating lease liability"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other current liabilities",
        "label": "Operating Lease, Liability, Current, Statement of Financial Position [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of financial position that includes current operating lease liability."
       }
      }
     },
     "auth_ref": [
      "r839"
     ]
    },
    "us-gaap_OperatingLeaseLiabilityNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseLiabilityNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2": {
       "parentTag": "mgee_LeaseLiability",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operating lease liabilities - long-term",
        "label": "Operating Lease, Liability, Noncurrent",
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease, classified as noncurrent."
       }
      }
     },
     "auth_ref": [
      "r838"
     ]
    },
    "us-gaap_OperatingLeaseLiabilityNoncurrentStatementOfFinancialPositionExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseLiabilityNoncurrentStatementOfFinancialPositionExtensibleList",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Liability, Noncurrent, Statement of Financial Position [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of financial position that includes noncurrent operating lease liability."
       }
      }
     },
     "auth_ref": [
      "r839"
     ]
    },
    "us-gaap_OperatingLeasePayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeasePayments",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Payments",
        "terseLabel": "Operating leases - operating cash flows",
        "documentation": "Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use."
       }
      }
     },
     "auth_ref": [
      "r843",
      "r848"
     ]
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseRightOfUseAsset",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2": {
       "parentTag": "mgee_LeaseRightOfUseAsset",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Right-of-Use Asset",
        "terseLabel": "Operating lease assets",
        "documentation": "Amount of lessee's right to use underlying asset under operating lease."
       }
      }
     },
     "auth_ref": [
      "r837"
     ]
    },
    "us-gaap_OperatingLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Right-of-Use Asset, Statement of Financial Position [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of financial position that includes operating lease right-of-use asset."
       }
      }
     },
     "auth_ref": [
      "r839"
     ]
    },
    "us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseWeightedAverageDiscountRatePercent",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted average discount rate operating leases",
        "label": "Operating Lease, Weighted Average Discount Rate, Percent",
        "documentation": "Weighted average discount rate for operating lease calculated at point in time."
       }
      }
     },
     "auth_ref": [
      "r851",
      "r1158"
     ]
    },
    "us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseWeightedAverageRemainingLeaseTerm1",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Weighted Average Remaining Lease Term",
        "terseLabel": "Weighted average remaining lease term (years) operating leases",
        "documentation": "Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r850",
      "r1158"
     ]
    },
    "us-gaap_OperatingLossCarryforwards": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLossCarryforwards",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Operating Loss Carryforwards, Total",
        "label": "Operating Loss Carryforwards",
        "terseLabel": "State net operating losses",
        "documentation": "Amount of operating loss carryforward, before tax effects, available to reduce future taxable income under enacted tax laws."
       }
      }
     },
     "auth_ref": [
      "r106"
     ]
    },
    "us-gaap_OperatingLossCarryforwardsValuationAllowance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLossCarryforwardsValuationAllowance",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Operating Loss Carryforwards, Valuation Allowance, Total",
        "label": "Operating Loss Carryforwards, Valuation Allowance",
        "negatedLabel": "Valuation allowances for state net operating losses",
        "documentation": "The portion of the valuation allowance pertaining to the deferred tax asset representing potential future taxable deductions from net operating loss carryforwards for which it is more likely than not that a tax benefit will not be realized."
       }
      }
     },
     "auth_ref": [
      "r104"
     ]
    },
    "us-gaap_OperatingSegmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingSegmentsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Segments [Member]",
        "documentation": "Identifies components of an entity that engage in business activities from which they may earn revenue and incur expenses, including transactions with other components of the same entity."
       }
      }
     },
     "auth_ref": [
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r424"
     ]
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization, Consolidation and Presentation of Financial Statements [Abstract]",
        "terseLabel": "Principles of Consolidation"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherAssetsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherAssetsCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other current assets",
        "documentation": "Amount of current assets classified as other."
       }
      }
     },
     "auth_ref": [
      "r313",
      "r1159"
     ]
    },
    "us-gaap_OtherAssetsNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherAssetsNoncurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Other Assets, Noncurrent, Total",
        "label": "Other Assets, Noncurrent",
        "terseLabel": "Other deferred assets and other",
        "documentation": "Amount of noncurrent assets classified as other."
       }
      }
     },
     "auth_ref": [
      "r302"
     ]
    },
    "us-gaap_OtherAssetsNoncurrentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherAssetsNoncurrentAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Assets, Noncurrent [Abstract]",
        "terseLabel": "Other deferred assets and other"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherCommitment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCommitment",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Other Commitment, Total",
        "label": "Other Commitment",
        "terseLabel": "Other commitments, total as of balance sheet date",
        "documentation": "Minimum amount of other commitment not otherwise specified in the taxonomy. Excludes commitments explicitly modeled in the taxonomy, including but not limited to, long-term and short-term purchase commitments, recorded and unrecorded purchase obligations, supply commitments, registration payment arrangements, leases, debt, product warranties, guarantees, environmental remediation obligations, and pensions."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_OtherCommitmentContractTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "OtherCommitmentContractTerm",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Commitment, Contract Term",
        "documentation": "Other Commitment, Contract Term",
        "terseLabel": "Other commitment, contract term, expiring in 2025"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherCommitmentDueAfterFifthYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCommitmentDueAfterFifthYear",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Thereafter",
        "label": "Other Commitment, to be Paid, after Year Five",
        "documentation": "Amount of commitment classified as other to be paid after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherCommitmentDueInFifthYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCommitmentDueInFifthYear",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2028",
        "label": "Other Commitment, to be Paid, Year Five",
        "documentation": "Amount of commitment classified as other to be paid in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherCommitmentDueInFourthYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCommitmentDueInFourthYear",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2027",
        "label": "Other Commitment, to be Paid, Year Four",
        "documentation": "Amount of commitment classified as other to be paid in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherCommitmentDueInNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCommitmentDueInNextTwelveMonths",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2024",
        "label": "Other Commitment, to be Paid, Year One",
        "documentation": "Amount of commitment classified as other to be paid in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherCommitmentDueInSecondYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCommitmentDueInSecondYear",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2025",
        "label": "Other Commitment, to be Paid, Year Two",
        "documentation": "Amount of commitment classified as other to be paid in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherCommitmentDueInThirdYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCommitmentDueInThirdYear",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2026",
        "label": "Other Commitment, to be Paid, Year Three",
        "documentation": "Amount of commitment classified as other to be paid in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_OtherCommitmentInitialAgreedUponCommitmentTotal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "OtherCommitmentInitialAgreedUponCommitmentTotal",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other commitment, initial agreed upon commitment total",
        "documentation": "Amount the company has committed to contribute toward an investment.",
        "label": "Other Commitment, Initial Agreed Upon Commitment Total"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherCommitmentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCommitmentsAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Commitments [Axis]",
        "documentation": "Information by type of other commitment."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherCommitmentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCommitmentsDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Commitments [Domain]",
        "documentation": "Other future obligation."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherCommitmentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCommitmentsLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Commitments [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherCommitmentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCommitmentsTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Commitments [Table]",
        "documentation": "Disclosure of information about obligations resulting from other commitments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherCommitmentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCommitmentsTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Commitments [Table Text Block]",
        "terseLabel": "Other Commitments",
        "documentation": "Tabular disclosure of information about obligations resulting from other commitments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossNetOfTax",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Net of Tax",
        "totalLabel": "Total comprehensive income",
        "documentation": "Amount after tax and reclassification adjustments of other comprehensive income (loss)."
       }
      }
     },
     "auth_ref": [
      "r27",
      "r38",
      "r322",
      "r324",
      "r330",
      "r819",
      "r820",
      "r825",
      "r925",
      "r946",
      "r1226",
      "r1227"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatementParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Tax, Total",
        "label": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Tax",
        "terseLabel": "Reclassification of realized gain on available-for-sale securities, taxes",
        "documentation": "Amount of tax expense (benefit) of reclassification adjustment from accumulated other comprehensive income for unrealized gain (loss) realized upon the sale of available-for-sale securities."
       }
      }
     },
     "auth_ref": [
      "r7"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatementParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "OCI, Debt Securities, Available-for-Sale, Unrealized Holding Gain (Loss), before Adjustment, Tax",
        "terseLabel": "Unrealized gain (loss) on available-for-sale securities, taxes expense (benefit)",
        "documentation": "Amount, before adjustment, of tax expense (benefit) for unrealized holding gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). Excludes tax expense (benefit) for unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale."
       }
      }
     },
     "auth_ref": [
      "r7",
      "r320"
     ]
    },
    "us-gaap_OtherCurrentAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCurrentAssetsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Current Assets [Member]",
        "terseLabel": "Current assets [Member]",
        "documentation": "Primary financial statement caption encompassing other current assets."
       }
      }
     },
     "auth_ref": [
      "r125",
      "r137"
     ]
    },
    "us-gaap_OtherCurrentLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCurrentLiabilitiesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Current Liabilities [Member]",
        "documentation": "Primary financial statement caption encompassing other current liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_OtherEquityMethodInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "OtherEquityMethodInvestmentsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other equity method investments member.",
        "label": "Other Equity Method Investments [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_OtherFinancialInformationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "OtherFinancialInformationTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Financial Information [Table Text Block]",
        "terseLabel": "Other Financial Information",
        "documentation": "Tabular disclosure of other financial information including but not limited to cash paid for amounts included in the measurment of lease liabilities and lease assets obtained in exchange for lease liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherInventorySupplies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherInventorySupplies",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 5.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Inventory, Supplies, Gross",
        "terseLabel": "Materials and supplies, at average cost",
        "documentation": "Amount before valuation and LIFO reserves of other supplies used within the manufacturing or production process expected to be consumed within one year or operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r1224"
     ]
    },
    "us-gaap_OtherInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherInvestments",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "parentTag": "us-gaap_Investments",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1": {
       "parentTag": "us-gaap_Investments",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Other Investments, Total",
        "label": "Other Investments",
        "terseLabel": "Other investments",
        "documentation": "Amount of investments classified as other."
       }
      }
     },
     "auth_ref": [
      "r1220"
     ]
    },
    "us-gaap_OtherLiabilitiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherLiabilitiesCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Other Liabilities, Current, Total",
        "label": "Other Liabilities, Current",
        "terseLabel": "Other current liabilities",
        "documentation": "Amount of liabilities classified as other, due within one year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r47",
      "r1159"
     ]
    },
    "us-gaap_OtherLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherLiabilitiesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Liabilities [Member]",
        "documentation": "Primary financial statement caption encompassing other liabilities."
       }
      }
     },
     "auth_ref": [
      "r125",
      "r137"
     ]
    },
    "us-gaap_OtherLiabilitiesNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherLiabilitiesNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Other Liabilities, Noncurrent, Total",
        "label": "Other Liabilities, Noncurrent",
        "terseLabel": "Other deferred liabilities and other",
        "documentation": "Amount of liabilities classified as other, due after one year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "us-gaap_OtherLiabilityCurrentRelatedPartyTypeExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherLiabilityCurrentRelatedPartyTypeExtensibleEnumeration",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Liability, Current, Related Party, Type [Extensible Enumeration]",
        "documentation": "Indicates type of related party for liability classified as other and current."
       }
      }
     },
     "auth_ref": [
      "r1340"
     ]
    },
    "us-gaap_OtherLiabilityNoncurrentRelatedPartyTypeExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherLiabilityNoncurrentRelatedPartyTypeExtensibleEnumeration",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Liability, Noncurrent, Related Party, Type [Extensible Enumeration]",
        "documentation": "Indicates type of related party for liability classified as other and noncurrent."
       }
      }
     },
     "auth_ref": [
      "r1340"
     ]
    },
    "mgee_OtherLongTermDebtExpectedInFuturePeriodsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "OtherLongTermDebtExpectedInFuturePeriodsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other types of long-term debt expected to be funded in the future. Note Purchase Agreement commited to, but funding expected in August 2021 (after filing).",
        "label": "Other Long Term Debt Expected In Future Periods [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_OtherLongTermDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "OtherLongTermDebtMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Long-Term Debt [Member]",
        "documentation": "Other types of long-term debt not otherwise specified in the taxonomy"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_OtherLongTermPurchaseCommitmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "OtherLongTermPurchaseCommitmentsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual obligation to provide commitments other than those specifically stated over periods that initially exceed one year or the normal operating cycle, if longer.",
        "label": "Other Long Term Purchase Commitments [Member]",
        "terseLabel": "Other [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherNoncashIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherNoncashIncomeExpense",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 7.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Other Noncash Income (Expense), Total",
        "negatedLabel": "Other items",
        "label": "Other Noncash Income (Expense)",
        "documentation": "Amount of income (expense) included in net income that results in no cash inflow (outflow), classified as other."
       }
      }
     },
     "auth_ref": [
      "r198"
     ]
    },
    "us-gaap_OtherNoncurrentAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherNoncurrentAssetsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Noncurrent Assets [Member]",
        "terseLabel": "Other Deferred Charges [Member]",
        "verboseLabel": "Other deferred assets and other [Member]",
        "documentation": "Primary financial statement caption encompassing other noncurrent assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherNoncurrentLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherNoncurrentLiabilitiesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Noncurrent Liabilities [Member]",
        "terseLabel": "Long-term Debt [Member]",
        "verboseLabel": "Other Deferred Liabilities and Other [Member]",
        "documentation": "Primary financial statement caption encompassing other noncurrent liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherNonoperatingIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherNonoperatingIncomeExpense",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Other Nonoperating Income (Expense), Total",
        "verboseLabel": "Other income/(loss), net",
        "terseLabel": "Other income (deductions), net",
        "label": "Other Nonoperating Income (Expense)",
        "documentation": "Amount of income (expense) related to nonoperating activities, classified as other."
       }
      }
     },
     "auth_ref": [
      "r193"
     ]
    },
    "us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherPostretirementBenefitPlansDefinedBenefitMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Postretirement Benefits Plan [Member]",
        "terseLabel": "Postretirement Benefits [Member]",
        "documentation": "Plan designed to provide other postretirement benefits. Includes, but is not limited to, defined benefit and defined contribution plans. Excludes pension benefits."
       }
      }
     },
     "auth_ref": [
      "r589",
      "r592",
      "r593",
      "r594",
      "r595",
      "r596",
      "r597",
      "r598",
      "r599",
      "r600",
      "r601",
      "r602",
      "r603",
      "r604",
      "r605",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r616",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r623",
      "r624",
      "r625",
      "r626",
      "r627",
      "r628",
      "r629",
      "r630",
      "r631",
      "r632",
      "r633",
      "r634",
      "r636",
      "r638",
      "r639",
      "r641",
      "r644",
      "r647",
      "r650",
      "r651",
      "r652",
      "r653",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r663",
      "r664",
      "r665",
      "r1145",
      "r1146",
      "r1147",
      "r1148",
      "r1149"
     ]
    },
    "mgee_OtherPostretirementBenefitsDefinedBenefitPlanDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "OtherPostretirementBenefitsDefinedBenefitPlanDisclosureAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other postretirement benefits [Abstract]",
        "label": "Other Postretirement Benefits Defined Benefit Plan Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherReceivableAfterAllowanceForCreditLossRelatedPartyTypeExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherReceivableAfterAllowanceForCreditLossRelatedPartyTypeExtensibleEnumeration",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Receivable, after Allowance for Credit Loss, Related Party, Type [Extensible Enumeration]",
        "documentation": "Indicates type of related party for receivable, after allowance for credit loss, classified as other."
       }
      }
     },
     "auth_ref": [
      "r1340"
     ]
    },
    "us-gaap_OtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherReceivables",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Receivables",
        "documentation": "Amount due from parties in nontrade transactions, classified as other."
       }
      }
     },
     "auth_ref": [
      "r310",
      "r1028"
     ]
    },
    "us-gaap_OtherReceivablesNetCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherReceivablesNetCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Other Receivables, Net, Current, Total",
        "label": "Other Receivables, Net, Current",
        "terseLabel": "Other accounts receivables, less reserves",
        "documentation": "Amount, after allowance, of receivables classified as other, due within one year or the operating cycle, if longer."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_OtherRegulatoryAssetMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "OtherRegulatoryAssetMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other regulatory asset amounts.",
        "label": "Other Regulatory Asset [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_OtherRegulatoryLiabilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "OtherRegulatoryLiabilityMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Regulatory Liability [Member]",
        "documentation": "Other regulatory liabilities amount."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_OtherRetailAndMunicipalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "OtherRetailAndMunicipalMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "OtherRetailAndMunicipal [Member]",
        "terseLabel": "Other-retail/municipal [Member]",
        "documentation": "Retail and municipal operating revenue."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_OtherRevenuesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "OtherRevenuesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Revenues [Member]",
        "documentation": "Other operating revenues."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_OtherpostretirementsupplementalplansdefinedbenefitmasterpensiontrustmemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "OtherpostretirementsupplementalplansdefinedbenefitmasterpensiontrustmemberMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Master Pension Trust [Member]",
        "documentation": "Master Pension Trust"
       }
      }
     },
     "auth_ref": []
    },
    "srt_OwnershipAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "OwnershipAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ownership [Axis]",
        "documentation": "Information by name of entity in which ownership interest is disclosed. Excludes equity method investee and named security investment."
       }
      }
     },
     "auth_ref": []
    },
    "srt_OwnershipDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "OwnershipDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ownership [Domain]",
        "documentation": "Name of entity in which ownership interest is disclosed. Excludes equity method investee and named security investment."
       }
      }
     },
     "auth_ref": []
    },
    "srt_ParentCompanyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ParentCompanyMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatementParentheticals",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Parent Company [Member]",
        "terseLabel": "MGE Energy [Member]",
        "documentation": "Registrant with controlling financial interest in one or more subsidiaries. Controlling interest in subsidiary includes, but is not limited to, primary beneficiary of variable interest entity (VIE). Controlling interest in subsidiary excludes broker-dealer with controlling financial interest in subsidiary but control is likely to be temporary."
       }
      }
     },
     "auth_ref": [
      "r349"
     ]
    },
    "mgee_ParisUnitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ParisUnitsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Paris is a solar-battery park located in the Town of Paris in Kenosha County. MGE has a 10% ownership interest in Paris for a total of 31 MW.",
        "label": "Paris Units [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PaymentsForDistributionsToParentFromNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PaymentsForDistributionsToParentFromNoncontrollingInterest",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 5.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Distributions to parent from noncontrolling interest",
        "documentation": "The cash outflow for distributions to parent company from noncontrolling interest.",
        "label": "Payments for Distributions to Parent from Noncontrolling Interest"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PaymentsForProceedsFromOtherInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsForProceedsFromOtherInvestingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 3.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments for (Proceeds from) Other Investing Activities",
        "negatedLabel": "Other",
        "documentation": "Amount of cash (inflow) outflow from investing activities classified as other."
       }
      }
     },
     "auth_ref": [
      "r1191",
      "r1229"
     ]
    },
    "us-gaap_PaymentsOfDebtExtinguishmentCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsOfDebtExtinguishmentCosts",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 19.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payment for Debt Extinguishment or Debt Prepayment Cost",
        "negatedLabel": "Debt make-whole premium",
        "documentation": "Amount of cash outflow for cost from early extinguishment and prepayment of debt. Includes, but is not limited to, third-party cost, premium paid, and other fee paid to lender directly for debt extinguishment or debt prepayment. Excludes accrued interest."
       }
      }
     },
     "auth_ref": [
      "r9"
     ]
    },
    "us-gaap_PaymentsOfDistributionsToAffiliates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsOfDistributionsToAffiliates",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments of Distributions to Affiliates",
        "negatedLabel": "Cash dividends paid to parent by MGE",
        "terseLabel": "Dividends from affiliates",
        "verboseLabel": "Cash dividends paid to parent by MGE",
        "documentation": "The distributions of earnings to an entity that is affiliated with the reporting entity by means of direct or indirect ownership."
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "us-gaap_PaymentsOfDividendsCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsOfDividendsCommonStock",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments of Ordinary Dividends, Common Stock",
        "negatedLabel": "Cash dividends paid on common stock",
        "documentation": "Amount of cash outflow in the form of ordinary dividends to common shareholders of the parent entity."
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "us-gaap_PaymentsToAcquireInterestInSubsidiariesAndAffiliates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquireInterestInSubsidiariesAndAffiliates",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Payments to Acquire Interest in Subsidiaries and Affiliates, Total",
        "negatedLabel": "Capital contributions to investments",
        "label": "Payments to Acquire Interest in Subsidiaries and Affiliates",
        "negatedTerseLabel": "Capital contributions to investments",
        "terseLabel": "Capital contributions to investments",
        "documentation": "The cash outflow associated with the acquisition of or advances to an entity that is related to it but not strictly controlled (for example, an unconsolidated subsidiary, affiliate, and joint venture or equity method investment) or the acquisition of an additional interest in a subsidiary (controlled entity)."
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Payments to Acquire Property, Plant, and Equipment, Total",
        "label": "Payments to Acquire Property, Plant, and Equipment",
        "negatedLabel": "Capital expenditures",
        "terseLabel": "Capital expenditure",
        "documentation": "The cash outflow associated with the acquisition of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale; includes cash outflows to pay for construction of self-constructed assets."
       }
      }
     },
     "auth_ref": [
      "r195"
     ]
    },
    "us-gaap_PensionAndOtherPostretirementBenefitContributions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PensionAndOtherPostretirementBenefitContributions",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 18.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Payment for Pension and Other Postretirement Benefits, Total",
        "label": "Payment for Pension and Other Postretirement Benefits",
        "negatedLabel": "Cash contributions to pension and other postretirement plans",
        "documentation": "Amount of cash outflow for pension and other postretirement benefits. Includes, but is not limited to, employer contribution to fund plan asset and payment to retiree."
       }
      }
     },
     "auth_ref": [
      "r12"
     ]
    },
    "us-gaap_PensionAndOtherPostretirementBenefitExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PensionAndOtherPostretirementBenefitExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 4.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Pension and Other Postretirement Benefits Cost (Reversal of Cost), Total",
        "label": "Pension and Other Postretirement Benefits Cost (Reversal of Cost)",
        "terseLabel": "Employee benefit plan (credit) cost",
        "documentation": "Amount of cost (reversal of cost) for pension and other postretirement benefits."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PensionAndOtherPostretirementBenefitsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefits"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Benefits [Text Block]",
        "documentation": "The entire disclosure for retirement benefits."
       }
      }
     },
     "auth_ref": [
      "r588",
      "r613",
      "r615",
      "r621",
      "r640",
      "r642",
      "r643",
      "r644",
      "r645",
      "r646",
      "r660",
      "r661",
      "r663",
      "r1145"
     ]
    },
    "us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1": {
       "parentTag": "us-gaap_DefinedBenefitPlanFundedStatusOfPlan",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liability, Defined Benefit Plan, Current",
        "negatedTerseLabel": "Current liability",
        "documentation": "Amount of liability, recognized in statement of financial position, for defined benefit pension and other postretirement plans, classified as current."
       }
      }
     },
     "auth_ref": [
      "r172",
      "r589",
      "r590",
      "r612",
      "r1145"
     ]
    },
    "us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1": {
       "parentTag": "us-gaap_DefinedBenefitPlanFundedStatusOfPlan",
       "weight": -1.0,
       "order": 2.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Liability, Defined Benefit Plan, Noncurrent, Total",
        "label": "Liability, Defined Benefit Plan, Noncurrent",
        "negatedTerseLabel": "Long-term liability",
        "terseLabel": "Accrued pension and other postretirement benefits",
        "documentation": "Amount of liability, recognized in statement of financial position, for defined benefit pension and other postretirement plans, classified as noncurrent."
       }
      }
     },
     "auth_ref": [
      "r174",
      "r589",
      "r590",
      "r612",
      "r1145"
     ]
    },
    "mgee_PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amounts recognized in the consolidated balance sheets as regulatory asset [Abstract]",
        "label": "Pension And Other Postretirement Defined Benefit Plans, Regulatory Asset [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiability",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension and Other Postretirement Defined Benefit Plans, Regulatory Asset (Liability)",
        "documentation": "This represents the regulatory asset (liability) for underfunded (overfunded) plans recognized in the balance sheet that is associated with the defined benefit pension plans and other postretirement defined benefit plans.",
        "terseLabel": "Regulatory asset (liability)",
        "totalLabel": "Total"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiabilityActuarialNetGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiabilityActuarialNetGainLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1": {
       "parentTag": "mgee_PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiability",
       "weight": -1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of the regulatory asset (liability) recognized in the balance sheet attributable to the net increase or decrease of changes in the value of either the benefit obligation or the plan assets resulting from experience different from that assumed or from a change in an actuarial assumption, or the consequence of a decision to temporarily deviate from the substantive plan.",
        "label": "Pension And Other Postretirement Defined Benefit Plans, Regulatory Asset (Liability), Actuarial Net Gain (Loss)",
        "terseLabel": "Net actuarial loss (gain)",
        "negatedLabel": "Net actuarial loss (gain)"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiabilityAmortizationOfPriorServiceCostCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiabilityAmortizationOfPriorServiceCostCredit",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1": {
       "parentTag": "mgee_PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiability",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Prior service (credit) cost",
        "negatedLabel": "Prior service (credit) cost",
        "documentation": "The amount of the regulatory asset (liability) recognized in the balance sheet attributable to the prior service cost or credit relating to benefit changes attributable to plan participants' prior service pursuant to a plan amendment or a plan initiation.",
        "terseLabel": "Prior service cost",
        "label": "Pension And Other Postretirement Defined Benefit Plans, Regulatory Asset (Liability), Amortization of Prior Service Cost (Credit)"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiabilityAmortizationOfTransitionObligationAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiabilityAmortizationOfTransitionObligationAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1": {
       "parentTag": "mgee_PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiability",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Transition obligation",
        "documentation": "The amount of the regulatory asset (liability) recognized in the balance sheet attributable to the transition obligation or asset.",
        "terseLabel": "Transition obligation",
        "label": "Pension And Other Postretirement Defined Benefit Plans, Regulatory Asset (Liability), Amortization of Transition Obligation Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PensionAndOtherPostretirementPlansCostsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PensionAndOtherPostretirementPlansCostsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension and Other Postretirement Plans Costs [Member]",
        "terseLabel": "Pension and OPRB Costs [Member]",
        "documentation": "Rate action of a regulator resulting in capitalization or accrual of pension and other postretirement costs."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PensionAndPostretirementBenefitPlanAssetsTotalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PensionAndPostretirementBenefitPlanAssetsTotalMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension and Postretirement Benefit Plan Assets, Total [Member]",
        "terseLabel": "Plan Assets [Member]",
        "documentation": "Total pension and postretirement benefit plan assets, when it serves as a benchmark in a concentration of risk calculation, representing the sum of all reported plan assets as of the balance sheet date."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PensionPlansDefinedBenefitMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PensionPlansDefinedBenefitMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Pension Benefits [Member]",
        "terseLabel": "Pension Benefits [Member]",
        "label": "Pension Plan [Member]",
        "documentation": "Plan designed to provide participant with pension benefits. Includes, but is not limited to, defined benefit and defined contribution plans. Excludes other postretirement benefits."
       }
      }
     },
     "auth_ref": [
      "r589",
      "r592",
      "r593",
      "r594",
      "r595",
      "r596",
      "r597",
      "r598",
      "r599",
      "r600",
      "r601",
      "r602",
      "r603",
      "r604",
      "r605",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r616",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r622",
      "r623",
      "r624",
      "r625",
      "r626",
      "r627",
      "r628",
      "r629",
      "r630",
      "r631",
      "r632",
      "r633",
      "r634",
      "r636",
      "r638",
      "r639",
      "r641",
      "r644",
      "r647",
      "r650",
      "r651",
      "r652",
      "r653",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r663",
      "r664",
      "r668",
      "r1145",
      "r1146",
      "r1150",
      "r1151",
      "r1152"
     ]
    },
    "us-gaap_PerformanceSharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PerformanceSharesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Performance Shares [Member]",
        "documentation": "Share-based payment arrangement awarded for meeting performance target."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PerformanceUnitPlan2020Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PerformanceUnitPlan2020Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Performance Unit Plan 2020 [Member]",
        "terseLabel": "2020 Performance Unit Plan [Member]",
        "documentation": "Plan for 2020 Performance Unit Agreement as decribed in our report."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PerformanceUnitPlanAndDirectorIncentivePlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PerformanceUnitPlanAndDirectorIncentivePlanMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Performance Unit Plan And Director Incentive Plan [Member]",
        "terseLabel": "2006 Performance Unit Plan and 2013 Director Incentive Plan [Member]",
        "documentation": "In January 2020, cash payments were distributed relating to awards that were granted under the plans in 2017, for the 2013 Director Incentive Plan, and in 2015, for the 2006 Performance Unit Plan."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PerformanceUnitPlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PerformanceUnitPlanMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Performance Unit Plan [Member]",
        "terseLabel": "2006 Performance Unit Plan [Member]",
        "documentation": "Plan for 2006 Performance Unit Agreement as described in out report."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PerformanceUnitsLiabilityAwardsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PerformanceUnitsLiabilityAwardsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Performance Units Liability Awards [Member]",
        "documentation": "Performance Units Liability Awards [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PlanAssetCategoriesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PlanAssetCategoriesDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Category [Domain]",
        "documentation": "Defined benefit plan asset investment."
       }
      }
     },
     "auth_ref": [
      "r613",
      "r614",
      "r616",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r641",
      "r1143",
      "r1144",
      "r1145"
     ]
    },
    "us-gaap_PlanNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PlanNameAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Plan Name [Axis]",
        "documentation": "Information by plan name for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r1285",
      "r1286",
      "r1287",
      "r1288",
      "r1289",
      "r1290",
      "r1291",
      "r1292",
      "r1293",
      "r1294",
      "r1295",
      "r1296",
      "r1297",
      "r1298",
      "r1299",
      "r1300",
      "r1301",
      "r1302",
      "r1303",
      "r1304",
      "r1305",
      "r1306",
      "r1307",
      "r1308",
      "r1309",
      "r1310"
     ]
    },
    "us-gaap_PlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PlanNameDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Plan Name [Domain]",
        "documentation": "Plan name for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r1285",
      "r1286",
      "r1287",
      "r1288",
      "r1289",
      "r1290",
      "r1291",
      "r1292",
      "r1293",
      "r1294",
      "r1295",
      "r1296",
      "r1297",
      "r1298",
      "r1299",
      "r1300",
      "r1301",
      "r1302",
      "r1303",
      "r1304",
      "r1305",
      "r1306",
      "r1307",
      "r1308",
      "r1309",
      "r1310"
     ]
    },
    "mgee_PlantAnticipatedToBeRetiredEarlyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PlantAnticipatedToBeRetiredEarlyMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Plant Anticipated to be Retired Early [Member]",
        "documentation": "Plant anticipated to be retired early."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PortionAtFairValueFairValueDisclosureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PortionAtFairValueFairValueDisclosureMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "axisDefault": "Portion at Fair Value Measurement [Member] [Default]",
        "label": "Portion at Fair Value Measurement [Member]",
        "documentation": "Measured at fair value for financial reporting purposes."
       }
      }
     },
     "auth_ref": [
      "r809"
     ]
    },
    "mgee_PostretirementMedicalPlansWithPrescriptionDrugBenefitsSubsidyDueToEmployer": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PostretirementMedicalPlansWithPrescriptionDrugBenefitsSubsidyDueToEmployer",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Medicare subsidy due to MGE.",
        "terseLabel": "Medicare subsidy due to MGE",
        "label": "Postretirement Medical Plans with Prescription Drug Benefits, Subsidy Due to Employer"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PrepaidTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PrepaidTaxes",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prepaid taxes and other",
        "label": "Prepaid taxes",
        "documentation": "Amount of asset related to consideration paid in advance for income and other taxes that provide economic benefits within a future period of one year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r1114",
      "r1128",
      "r1263"
     ]
    },
    "us-gaap_PrescriptionDrugSubsidyReceiptsAfterYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PrescriptionDrugSubsidyReceiptsAfterYearFive",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Expected Medicare Part D Subsidies, 2029-2033",
        "label": "Defined Benefit Plan, Expected Future Prescription Drug Subsidy Receipt, after Year Five",
        "documentation": "Amount of prescription drug subsidy receipt expected after fifth fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r623",
      "r662"
     ]
    },
    "us-gaap_PrescriptionDrugSubsidyReceiptsNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PrescriptionDrugSubsidyReceiptsNextTwelveMonths",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Expected Medicare Part D Subsidies, 2024",
        "label": "Defined Benefit Plan, Expected Future Prescription Drug Subsidy Receipt, Year One",
        "documentation": "Amount of prescription drug subsidy receipt expected in next fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r623",
      "r662"
     ]
    },
    "us-gaap_PrescriptionDrugSubsidyReceiptsYearFive1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PrescriptionDrugSubsidyReceiptsYearFive1",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Expected Medicare Part D Subsidies, 2028",
        "label": "Defined Benefit Plan, Expected Future Prescription Drug Subsidy Receipt, Year Five",
        "documentation": "Amount of prescription drug subsidy receipt expected in fifth fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r623",
      "r662"
     ]
    },
    "us-gaap_PrescriptionDrugSubsidyReceiptsYearFour1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PrescriptionDrugSubsidyReceiptsYearFour1",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Expected Medicare Part D Subsidies, 2027",
        "label": "Defined Benefit Plan, Expected Future Prescription Drug Subsidy Receipt, Year Four",
        "documentation": "Amount of prescription drug subsidy receipt expected in fourth fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r623",
      "r662"
     ]
    },
    "us-gaap_PrescriptionDrugSubsidyReceiptsYearThree1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PrescriptionDrugSubsidyReceiptsYearThree1",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Expected Medicare Part D Subsidies, 2026",
        "label": "Defined Benefit Plan, Expected Future Prescription Drug Subsidy Receipt, Year Three",
        "documentation": "Amount of prescription drug subsidy receipt expected in third fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r623",
      "r662"
     ]
    },
    "us-gaap_PrescriptionDrugSubsidyReceiptsYearTwo1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PrescriptionDrugSubsidyReceiptsYearTwo1",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Expected Medicare Part D Subsidies, 2025",
        "label": "Defined Benefit Plan, Expected Future Prescription Drug Subsidy Receipt, Year Two",
        "documentation": "Amount of prescription drug subsidy receipt expected in second fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r623",
      "r662"
     ]
    },
    "mgee_PriorityDebtToAssetsRatioMax": {
     "xbrltype": "pureItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PriorityDebtToAssetsRatioMax",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Priority debt to assets ratio",
        "documentation": "Priority debt cannot be issued exceeding this percent of consolidated assets.",
        "label": "Priority Debt To Assets Ratio Max"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromContributionsFromParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromContributionsFromParent",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 4.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Contributions from Parent",
        "terseLabel": "Capital contributions from parent",
        "documentation": "The cash inflow from parent as a source of financing that is recorded as additional paid in capital."
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "us-gaap_ProceedsFromDebtNetOfIssuanceCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromDebtNetOfIssuanceCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Debt, Net of Issuance Costs",
        "documentation": "The cash inflow from additional borrowings, net of cash paid to third parties in connection with debt origination."
       }
      }
     },
     "auth_ref": [
      "r333"
     ]
    },
    "mgee_ProceedsFromDistributionsOfInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ProceedsFromDistributionsOfInvestments",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This item represents disclosure of the amount of distributions that constitute a return of investment.",
        "terseLabel": "Return of investment - affiliates",
        "label": "Proceeds From Distributions Of Investments"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromIncomeTaxRefunds": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromIncomeTaxRefunds",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Income Tax Refunds",
        "negatedLabel": "Income taxes received",
        "documentation": "The amount of cash received during the period as refunds for the overpayment of taxes."
       }
      }
     },
     "auth_ref": [
      "r66",
      "r197"
     ]
    },
    "us-gaap_ProceedsFromIssuanceOfCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromIssuanceOfCommonStock",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Issuance of Common Stock",
        "terseLabel": "Issuance of common stock, net",
        "documentation": "The cash inflow from the additional capital contribution to the entity."
       }
      }
     },
     "auth_ref": [
      "r8"
     ]
    },
    "us-gaap_ProceedsFromIssuanceOfLongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromIssuanceOfLongTermDebt",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Proceeds from Issuance of Long-term Debt, Total",
        "label": "Proceeds from Issuance of Long-Term Debt",
        "terseLabel": "Issuance of long-term debt",
        "documentation": "The cash inflow from a debt initially having maturity due after one year or beyond the operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r60",
      "r988"
     ]
    },
    "us-gaap_ProceedsFromMinorityShareholders": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromMinorityShareholders",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Noncontrolling Interests",
        "documentation": "Amount of cash inflow from a noncontrolling interest. Includes, but is not limited to, purchase of additional shares or other increase in noncontrolling interest ownership."
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "us-gaap_ProceedsFromPaymentsForOtherFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromPaymentsForOtherFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from (Payments for) Other Financing Activities",
        "terseLabel": "Other",
        "documentation": "Amount of cash inflow (outflow) from financing activities classified as other."
       }
      }
     },
     "auth_ref": [
      "r1192",
      "r1230"
     ]
    },
    "us-gaap_ProceedsFromRepaymentsOfShortTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromRepaymentsOfShortTermDebt",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "(Repayments of) proceeds from short-term debt",
        "totalLabel": "Proceeds from (Repayments of) Short-term Debt, Total",
        "label": "Proceeds from (Repayments of) Short-Term Debt",
        "documentation": "The net cash inflow or outflow for borrowing having initial term of repayment within one year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromSaleAndMaturityOfMarketableSecurities",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Proceeds from Sale and Maturity of Marketable Securities, Total",
        "label": "Proceeds from Sale and Maturity of Marketable Securities",
        "terseLabel": "Proceeds from sale of investments",
        "documentation": "The cash inflow associated with the aggregate amount received by the entity through sale or maturity of marketable securities (held-to-maturity or available-for-sale) during the period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestmentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromSaleMaturityAndCollectionsOfInvestmentsAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Sale, Maturity and Collection of Investments [Abstract]",
        "terseLabel": "Results of Investment Liquidation [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromSaleOfOtherPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromSaleOfOtherPropertyPlantAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Sale of Other Property, Plant, and Equipment",
        "documentation": "Amount of cash inflow for the sale of long-lived, physical assets used to produce goods and services and not intended for resale, classified as other."
       }
      }
     },
     "auth_ref": [
      "r194"
     ]
    },
    "us-gaap_ProductConcentrationRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProductConcentrationRiskMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Product Concentration Risk [Member]",
        "documentation": "Reflects the percentage that revenues during the period from a specified product are to a specified benchmark, such as total net revenues, segment revenues or product line revenues. May also reflect the percentage contribution the product made to operating results. Risk is materially adverse effects of a loss of sales of a significant product or line of products, which could occur upon loss of rights to sell, distribute or license others; loss of patent or copyright protection; or technological obsolescence."
       }
      }
     },
     "auth_ref": [
      "r75"
     ]
    },
    "srt_ProductOrServiceAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ProductOrServiceAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Product and Service [Axis]",
        "documentation": "Information by product and service, or group of similar products and similar services."
       }
      }
     },
     "auth_ref": [
      "r426",
      "r906",
      "r962",
      "r963",
      "r964",
      "r965",
      "r966",
      "r967",
      "r1112",
      "r1136",
      "r1160",
      "r1199",
      "r1267",
      "r1268",
      "r1276",
      "r1355"
     ]
    },
    "srt_ProductsAndServicesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ProductsAndServicesDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Product and Service [Domain]",
        "documentation": "Product or service, or a group of similar products or similar services."
       }
      }
     },
     "auth_ref": [
      "r426",
      "r906",
      "r962",
      "r963",
      "r964",
      "r965",
      "r966",
      "r967",
      "r1112",
      "r1136",
      "r1160",
      "r1199",
      "r1267",
      "r1268",
      "r1276",
      "r1355"
     ]
    },
    "us-gaap_ProfitLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProfitLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest",
        "terseLabel": "Net Income",
        "totalLabel": "Net Income Including Noncontrolling Interest",
        "documentation": "The consolidated profit or loss for the period, net of income taxes, including the portion attributable to the noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r296",
      "r321",
      "r323",
      "r335",
      "r342",
      "r363",
      "r376",
      "r377",
      "r395",
      "r415",
      "r421",
      "r424",
      "r470",
      "r527",
      "r528",
      "r530",
      "r531",
      "r532",
      "r534",
      "r536",
      "r538",
      "r539",
      "r753",
      "r756",
      "r757",
      "r789",
      "r811",
      "r927",
      "r943",
      "r998",
      "r1042",
      "r1063",
      "r1064",
      "r1123",
      "r1155",
      "r1156",
      "r1174",
      "r1228",
      "r1270"
     ]
    },
    "mgee_ProjectedCostsForEnvironmentalRegulation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ProjectedCostsForEnvironmentalRegulation",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Approximate costs of enviornmental regulations",
        "label": "Projected Costs For Environmental Regulation",
        "documentation": "Projected costs for environmental regulations."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ProjectedSolarFarmProjectCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ProjectedSolarFarmProjectCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Projected Solar Farm Project Costs",
        "documentation": "The Company's projected costs for the current solar projects."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PropertyPlantAndEquipmentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Abstract]",
        "terseLabel": "Property, Plant, and Equiptment"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PropertyPlantAndEquipmentByTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentByTypeAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Lived Tangible Asset [Axis]",
        "documentation": "Information by type of long-lived, physical assets used to produce goods and services and not intended for resale."
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentDisclosureTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment Disclosure [Text Block]",
        "terseLabel": "Property, Plant and Equipment",
        "documentation": "The entire disclosure for long-lived, physical asset used in normal conduct of business and not intended for resale. Includes, but is not limited to, work of art, historical treasure, and similar asset classified as collections."
       }
      }
     },
     "auth_ref": [
      "r202",
      "r259",
      "r263",
      "r264"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PropertyPlantAndEquipmentNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentNet",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Property, Plant and Equipment, Net, Ending Balance",
        "periodStartLabel": "Property, Plant and Equipment, Net, Beginning Balance",
        "label": "Property, Plant and Equipment, Net",
        "terseLabel": "Net plant in service, nonregulated",
        "verboseLabel": "Total property, plant, and equipment",
        "totalLabel": "Total Property, Plant, and Equipment",
        "documentation": "Amount after accumulated depreciation, depletion and amortization of physical assets used in the normal conduct of business to produce goods and services and not intended for resale. Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, and furniture and fixtures."
       }
      }
     },
     "auth_ref": [
      "r16",
      "r928",
      "r941",
      "r1159"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentNetAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment, Net [Abstract]",
        "terseLabel": "Property, Plant, and Equipment:"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PropertyPlantAndEquipmentNetBeforeConstructionInProgress": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PropertyPlantAndEquipmentNetBeforeConstructionInProgress",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "In-service utility plant, net",
        "terseLabel": "In-service utility plant, net",
        "label": "Property Plant And Equipment Net Before Construction In Progress",
        "documentation": "Amount, net of accumulated depreciation, depletion and amortization, of long-lived physical assets used in the normal conduct of business and not intended for resale. This amount does not include constrcution work in progress. Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, furniture and fixtures, and computer equipment.",
        "verboseLabel": "Property, plant and equipment, net"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PropertyPlantAndEquipmentPlannedMajorMaintenanceActivitiesPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentPlannedMajorMaintenanceActivitiesPolicy",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment, Planned Major Maintenance Activities, Policy [Policy Text Block]",
        "terseLabel": "Repairs and Maintenance Expense",
        "documentation": "Disclosure of accounting policy for planned major maintenance activities."
       }
      }
     },
     "auth_ref": [
      "r2"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment, Policy [Policy Text Block]",
        "terseLabel": "Property, Plant, and Equipment",
        "documentation": "Disclosure of accounting policy for long-lived, physical asset used in normal conduct of business and not intended for resale. Includes, but is not limited to, work of art, historical treasure, and similar asset classified as collections."
       }
      }
     },
     "auth_ref": [
      "r16",
      "r259",
      "r263",
      "r939"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Table Text Block]",
        "terseLabel": "Schedule of Property, Plant, and Equipment",
        "documentation": "Tabular disclosure of physical assets used in the normal conduct of business and not intended for resale. Includes, but is not limited to, balances by class of assets, depreciation and depletion expense and method used, including composite depreciation, and accumulated deprecation."
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentTypeDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Lived Tangible Asset [Domain]",
        "documentation": "Listing of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale. Examples include land, buildings, machinery and equipment, and other types of furniture and equipment including, but not limited to, office equipment, furniture and fixtures, and computer equipment and software."
       }
      }
     },
     "auth_ref": [
      "r204"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentUsefulLife": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentUsefulLife",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment, Useful Life",
        "terseLabel": "Property, plant, and equipment, useful life",
        "documentation": "Useful life of long lived, physical assets used in the normal conduct of business and not intended for resale, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Examples include, but not limited to, land, buildings, machinery and equipment, office equipment, furniture and fixtures, and computer equipment."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PropertyplantandequipmentnetMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PropertyplantandequipmentnetMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property Plant And Equipment Net [Member]",
        "terseLabel": "Property, plant, and equipment, net [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProvisionForDoubtfulAccounts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProvisionForDoubtfulAccounts",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts Receivable, Credit Loss Expense (Reversal)",
        "terseLabel": "Provision for doubtful receivables",
        "documentation": "Amount of expense (reversal of expense) for expected credit loss on accounts receivable."
       }
      }
     },
     "auth_ref": [
      "r332",
      "r487"
     ]
    },
    "mgee_PublicServiceCommissionOfWisconsinMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicServiceCommissionOfWisconsinMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Service Commission of Wisconsin [Member]",
        "documentation": "Public Service Commission of Wisconsin",
        "terseLabel": "PSCW [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesAllowanceForFundsUsedDuringConstructionAdditions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionAdditions",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Allowance for Funds Used During Construction, Additions",
        "negatedLabel": "AFUDC - borrowed funds",
        "terseLabel": "AFUDC - borrowed funds",
        "documentation": "Total increase in earnings in the period representing the cost of equity (based on assumed rate of return) and/or borrowed funds (based on interest rate) used to finance construction of regulated assets, which is expected to be recovered through rate adjustments."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r157",
      "r158"
     ]
    },
    "mgee_PublicUtilitiesAllowanceForFundsUsedDuringConstructionCapitalizationRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionCapitalizationRate",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rate at which AFUDC was capitalized",
        "documentation": "Rate at which AFUDC was capitalized.",
        "label": "Public Utilities, Allowance for Funds Used During Construction, Capitalization Rate"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PublicUtilitiesAllowanceForFundsUsedDuringConstructionCapitalizationRateTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionCapitalizationRateTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Public Utilities, Allowance for Funds Used During Construction, Capitalization Rate [Table Text Block]",
        "label": "Public Utilities, Allowance for Funds Used During Construction, Capitalization Rate [Table Text Block]",
        "terseLabel": "Approved AFUDC retail rates by rate case"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PublicUtilitiesAllowanceForFundsUsedDuringConstructionCapitalizedAmountsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionCapitalizedAmountsTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Public Utilities, Allowance for Funds Used During Construction, Capitalized Amounts [Table Text Block]",
        "label": "Public Utilities, Allowance for Funds Used During Construction, Capitalized Amounts [Table Text Block]",
        "terseLabel": "Approved AFUDC-debt and equity capitalized amounts"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesAllowanceForFundsUsedDuringConstructionCapitalizedCostOfEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionCapitalizedCostOfEquity",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Allowance for Funds Used During Construction, Capitalized Cost of Equity",
        "negatedLabel": "AFUDC - equity funds",
        "terseLabel": "AFUDC - equity funds",
        "documentation": "The component of the allowance for funds used during construction during the period based on an assumed rate of return on equity funds used in financing the construction of regulated assets."
       }
      }
     },
     "auth_ref": [
      "r164",
      "r165"
     ]
    },
    "us-gaap_PublicUtilitiesAllowanceForFundsUsedDuringConstructionNetIncreaseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionNetIncreaseAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Allowance for Funds Used During Construction, Net Increase [Abstract]",
        "terseLabel": "Allowance for Funds Used During Construction"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesAllowanceForFundsUsedDuringConstructionRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionRate",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Allowance for Funds Used During Construction, Rate",
        "terseLabel": "Authorized AFUDC rate",
        "documentation": "Effective rate, including composite rate, of cost of financing additions to qualifying regulated assets, commonly called allowance for funds used during construction."
       }
      }
     },
     "auth_ref": [
      "r164",
      "r165"
     ]
    },
    "mgee_PublicUtilitiesAllowanceForFundsUsedDuringConstructionRateOneHundredPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionRateOneHundredPercent",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities Allowance For Funds Used During Construction Rate One Hundred Percent",
        "terseLabel": "Authorized AFUDC rate - Signficiant projects (100%)",
        "documentation": "Effective rate, including composite rate, of cost of financing additions to qualifying regulated assets, commonly called allowance for funds used during construction on 100 percent of Construction Work in Progress. This PSCW authorized rate is on significant projects. Projects that fit this description are: Saratoga Wind, Badger Hollow I, Two Creeks, its customer information billing project, and on certain environmental costs for Columbia."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PublicUtilitiesAllowanceForFundsUsedDuringConstructionTotalCapitalizedCostOfEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionTotalCapitalizedCostOfEquity",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total capitalized cost of equity",
        "documentation": "Total capitalized cost of equity from the start of the project.",
        "label": "Public Utilities Allowance For Funds Used During Construction Total Capitalized Cost Of Equity"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PublicUtilitiesAllowanceForFundsUsedDuringConstructionTotalCapitalizedInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionTotalCapitalizedInterest",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total capitalized interest",
        "documentation": "Total capitalized interest from the start of the project.",
        "label": "Public Utilities Allowance For Funds Used During Construction Total Capitalized Interest"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PublicUtilitiesAllowanceForFundsUsedDuringConstructionTotalCarryingCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionTotalCarryingCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total carrying costs",
        "documentation": "Total capitalized interest and capitalized cost of equity from the start of the project.",
        "label": "Public Utilities Allowance For Funds Used During Construction Total Carrying Costs"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesApprovedEquityCapitalStructurePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesApprovedEquityCapitalStructurePercentage",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Approved Equity Capital Structure, Percentage",
        "terseLabel": "Approved equity capital structure, percentage",
        "documentation": "Percentage of public utility's approved equity to capital, including debt and equity."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesApprovedRateIncreaseDecreaseAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesApprovedRateIncreaseDecreaseAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Approved Rate Increase (Decrease), Amount",
        "terseLabel": "Authorized rate increase (decrease), amount",
        "documentation": "Amount of public utility's approved rate increase (decrease) by regulatory agency."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesApprovedRateIncreaseDecreasePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesApprovedRateIncreaseDecreasePercentage",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Approved Rate Increase (Decrease), Percentage",
        "terseLabel": "Authorized rate increase (decrease), percentage",
        "documentation": "Percentage of public utility's approved rate increase (decrease) by regulatory agency."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesApprovedReturnOnEquityPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesApprovedReturnOnEquityPercentage",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Approved Return on Equity, Percentage",
        "terseLabel": "Authorized return on equity, percentage",
        "documentation": "Percentage of public utility's approved return on equity."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PublicUtilitiesCarryingCostRateRecoveryPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilitiesCarryingCostRateRecoveryPeriod",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Carrying Cost Rate Recovery Period",
        "documentation": "The period in which carrying costs are to be recovered in rates.",
        "terseLabel": "Carrying cost rate recovery period"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PublicUtilitiesCollectionOfTaxCutsAndJobsActUnprotectedDeficientDeferredTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilitiesCollectionOfTaxCutsAndJobsActUnprotectedDeficientDeferredTaxes",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of deficient deferred taxes related to Tax Cuts and Jobs Act not governed by IRS normalization rules to be factored in rates.",
        "label": "Public Utilities Collection of Tax Cuts And Jobs Act Unprotected Deficient Deferred Taxes",
        "terseLabel": "Collection of unprotected of deficient deferred taxes."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesDisclosureTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMatters"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities Disclosure [Text Block]",
        "documentation": "The entire disclosure for public utilities."
       }
      }
     },
     "auth_ref": [
      "r243"
     ]
    },
    "mgee_PublicUtilitiesFuelSurchargeAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilitiesFuelSurchargeAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities Fuel Surcharge Amount",
        "terseLabel": "Fuel surcharge effect on electric revenues ($)",
        "documentation": "Amount of Public Utility's approved surcharge by regulatory agency."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PublicUtilitiesFuelSurchargePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilitiesFuelSurchargePercentage",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities Fuel Surcharge Percentage",
        "terseLabel": "Fuel surcharge effect on electric revenues (%)",
        "documentation": "Percentage of Public Utility's approved surcharge by regulatory agency."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesGeneralDisclosuresLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesGeneralDisclosuresLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, General Disclosures [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesGeneralDisclosuresTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesGeneralDisclosuresTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities General Disclosures [Table]",
        "documentation": "Disclosure of information about regulation for public utility entities, including, but not limited to, rate requests, decommissioning costs and the amount of allowance for earnings on equity capitalized for rate making purposes."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesGeneralDisclosuresTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesGeneralDisclosuresTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRateMattersTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities General Disclosures [Table Text Block]",
        "terseLabel": "Rate Proceedings",
        "documentation": "Tabular disclosure of regulation for public utility entities, including, but not limited to, rate requests, decommissioning costs and the amount of allowance for earnings on equity capitalized for rate making purposes."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesInventoryCoalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesInventoryCoalMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Coal [Member]",
        "documentation": "Combustible mineral substance consisting of carbonized vegetable matter used as fuel and in production of coal gas, water gas, and coal-tar compound."
       }
      }
     },
     "auth_ref": [
      "r1225",
      "r1277"
     ]
    },
    "us-gaap_PublicUtilitiesInventoryNaturalGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesInventoryNaturalGasMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Natural Gas [Member]",
        "label": "Public Utilities, Inventory, Natural Gas [Member]",
        "documentation": "Mixture of gases, liquefied or otherwise, used for fuel and manufacturing purposes, which is ready for sale."
       }
      }
     },
     "auth_ref": [
      "r1225"
     ]
    },
    "mgee_PublicUtilitiesInventoryRenewableEnergyCreditAllowance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilitiesInventoryRenewableEnergyCreditAllowance",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Renewable energy credit allowance included in inventory",
        "documentation": "Renewable energy credit allowance balances included in inventory and recorded based on specific identification.",
        "label": "Public Utilities, Inventory, Renewable Energy Credit Allowance"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Policy [Policy Text Block]",
        "terseLabel": "Regulatory Assets and Liabilities",
        "documentation": "Disclosure of accounting policy for public utilities. Examples include a discussion about the scope criteria and appropriateness for and extent of the application of generally accepted accounting principles related to accounting for the effects of certain types of regulation (may include identification of specific business units). Other examples of the disclosures may include: descriptions of the form and economic effects of regulation (for example, but not limited to, recording of regulatory assets and liabilities to the rate setting process); statement about periodic assessments of periodic assessments of generally accepted accounting principles related to accounting for the effects of certain types of regulation; information regarding amortization of and return on regulatory assets and liabilities, including the remaining amounts and recovery or settlement periods; accounting for changes to recovery estimates; AFUDC, plant abandonment's and plant disallowances."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "us-gaap_PublicUtilitiesPropertyPlantAndEquipmentAmountOfLossRecoveryOnPlantAbandonment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesPropertyPlantAndEquipmentAmountOfLossRecoveryOnPlantAbandonment",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Impairment of long-lived assets",
        "label": "Public Utilities, Property, Plant and Equipment, Amount of Loss (Recovery) on Plant Abandonment",
        "documentation": "Amount of loss (recovery of loss) related to a plant abandonment."
       }
      }
     },
     "auth_ref": [
      "r160",
      "r247"
     ]
    },
    "us-gaap_PublicUtilitiesPropertyPlantAndEquipmentConstructionWorkInProgress": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesPropertyPlantAndEquipmentConstructionWorkInProgress",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Property, Plant and Equipment, Construction Work in Progress",
        "terseLabel": "Saratoga Wind Project Costs",
        "documentation": "Period end amount of construction work in progress in public utility."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesPropertyPlantAndEquipmentDisclosureOfCompositeDepreciationRateForPlantsInService": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesPropertyPlantAndEquipmentDisclosureOfCompositeDepreciationRateForPlantsInService",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Property, Plant and Equipment, Disclosure of Composite Depreciation Rate for Plants in Service",
        "terseLabel": "Composite straight-line depreciation rates",
        "documentation": "Composite depreciation rate for public utility plants in service."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesPropertyPlantAndEquipmentPlantInService": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesPropertyPlantAndEquipmentPlantInService",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails": {
       "parentTag": "mgee_PropertyPlantAndEquipmentNetBeforeConstructionInProgress",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Public Utilities, Property, Plant and Equipment, Plant in Service, Total",
        "label": "Public Utilities, Property, Plant and Equipment, Plant in Service",
        "terseLabel": "In-service utility plant, gross",
        "documentation": "Period end amount of total gross PPE."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PublicUtilitiesPropertyPlantAndEquipmentPlantInServiceExcludingAFUDC": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilitiesPropertyPlantAndEquipmentPlantInServiceExcludingAFUDC",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities Property Plant And Equipment Plant In Service Excluding AFUDC",
        "terseLabel": "In-service utility plant, gross (excluding AFUDC)",
        "documentation": "Gross amount put in-service and capitalized from projects, excluding AFUDC on the projects."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesPropertyPlantAndEquipmentPresentValueOfRegulatedAssetForPlantAbandonment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesPropertyPlantAndEquipmentPresentValueOfRegulatedAssetForPlantAbandonment",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails": {
       "parentTag": "mgee_JointlyOwnedUtilityPlantNetOwnershipAmountBeforeConstructionWorkInProgress",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Plant anticipated to be retired early",
        "label": "Public Utilities, Property, Plant and Equipment, Present Value of Regulated Asset for Plant Abandonment",
        "documentation": "The present value amount of future cost recoveries that are probable and estimable related to plant abandonment's for regulated industries."
       }
      }
     },
     "auth_ref": [
      "r159"
     ]
    },
    "us-gaap_PublicUtilitiesRateMattersAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesRateMattersAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Rate Matters [Abstract]",
        "terseLabel": "Rate Proceedings [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesRegulatoryProceedingAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesRegulatoryProceedingAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Regulatory Proceeding [Axis]",
        "documentation": "Information by name of regulatory proceeding."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesRegulatoryProceedingDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesRegulatoryProceedingDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Regulatory Proceeding [Domain]",
        "documentation": "Proceeding with public utility's regulatory body."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesRequestedEquityCapitalStructurePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesRequestedEquityCapitalStructurePercentage",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proposed equity capital structure, percentage",
        "label": "Public Utilities, Requested Equity Capital Structure, Percentage",
        "documentation": "Percentage of public utility's requested equity to capital, including debt and equity."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesRequestedRateIncreaseDecreaseAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesRequestedRateIncreaseDecreaseAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Requested Rate Increase (Decrease), Amount",
        "documentation": "Amount of public utility's requested rate increase (decrease) with regulatory agency."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesRequestedRateIncreaseDecreasePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesRequestedRateIncreaseDecreasePercentage",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proposed rate increase (decrease), percentage",
        "label": "Public Utilities, Requested Rate Increase (Decrease), Percentage",
        "documentation": "Percentage of public utility's requested rate increase (decrease) with regulatory agency."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilitiesRequestedReturnOnEquityPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilitiesRequestedReturnOnEquityPercentage",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proposed return on equity, percentage",
        "label": "Public Utilities, Requested Return on Equity, Percentage",
        "documentation": "Percentage of public utility's requested return on equity."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PublicUtilitiesReturnOfFuelRulesCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilitiesReturnOfFuelRulesCredit",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Return Of Fuel Rules Credit",
        "documentation": "The amount of electric fuel-related savings that has been returned in customer bill credits.",
        "terseLabel": "Return of electric fuel credit, total",
        "negatedLabel": "Return of electric fuel credit, total"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PublicUtilitiesReturnOfNormalizedExcessDeferredTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilitiesReturnOfNormalizedExcessDeferredTaxes",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities Return Of Normalized Excess Deferred Taxes",
        "terseLabel": "Return of tax credit, total",
        "documentation": "The amount of over-collection of normalized excess deferred taxes that has been returned in customer via bill credits."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PublicUtilitiesReturnOfTaxCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilitiesReturnOfTaxCredit",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities Return Of Tax Credit",
        "terseLabel": "Return of tax credit",
        "documentation": "The amount of income tax expense over-collection approved by the PSCW for a tax credit to be returned to customers via a bill credit."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PublicUtilitiesReturnOfTaxCutsAndJobsActUnprotectedExcessDeferredTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilitiesReturnOfTaxCutsAndJobsActUnprotectedExcessDeferredTaxes",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities Return Of Tax Cuts And Jobs Act Unprotected Excess Deferred Taxes",
        "terseLabel": "Return of unprotected excess deferred taxes",
        "documentation": "The amount of excess deferred taxes related to the Tax Cuts and Jobs Act not governed by IRS normalization rules to be factored in rates."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PublicUtilityCarryingCostsRecovery": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PublicUtilityCarryingCostsRecovery",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total carrying costs incurred during construction that the PSCW has authorized recovery for.",
        "terseLabel": "Carrying costs recovered",
        "label": "Public Utility Carrying Costs Recovery"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PublicUtilityRegulatedOrUnregulatedStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PublicUtilityRegulatedOrUnregulatedStatusAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulation Status [Axis]",
        "documentation": "Information by status (regulated or unregulated) of the public utility."
       }
      }
     },
     "auth_ref": [
      "r155"
     ]
    },
    "mgee_PurchaseGasAdjustmentOverUnderCollected": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PurchaseGasAdjustmentOverUnderCollected",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchased gas adjustment, over (under) collected",
        "documentation": "Natural gas rates are subject to a fuel adjustment clause designed to recover or refund the difference between the actual cost of purchased gas and the amount included in rates. Differences between the amounts billed to customers and the actual costs recoverable are deferred and recovered or refunded in future periods by means of prospective monthly adjustments to rates.",
        "label": "Purchase Gas Adjustment, Over (Under) Collected"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PurchaseObligationDueAfterFifthYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PurchaseObligationDueAfterFifthYear",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase Obligation, to be Paid, after Year Five",
        "terseLabel": "Purchase obligation due thereafter",
        "documentation": "Amount of purchase arrangement to be paid after fifth fiscal year following current fiscal year. Includes, but is not limited to, recorded and unrecorded purchase obligations, long-term purchase commitment, and short-term purchase commitment. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PurchaseObligationDueInFifthYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PurchaseObligationDueInFifthYear",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase Obligation, to be Paid, Year Five",
        "terseLabel": "Purchase obligation due in fifth year",
        "documentation": "Amount of purchase arrangement to be paid in fifth fiscal year following current fiscal year. Includes, but is not limited to, recorded and unrecorded purchase obligations, long-term purchase commitment, and short-term purchase commitment. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PurchaseObligationDueInFourthYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PurchaseObligationDueInFourthYear",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase Obligation, to be Paid, Year Four",
        "terseLabel": "Purchase obligation due in fourth year",
        "documentation": "Amount of purchase arrangement to be paid in fourth fiscal year following current fiscal year. Includes, but is not limited to, recorded and unrecorded purchase obligations, long-term purchase commitment, and short-term purchase commitment. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PurchaseObligationDueInNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PurchaseObligationDueInNextTwelveMonths",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase Obligation, to be Paid, Year One",
        "terseLabel": "Purchase obligation due in next twelve months",
        "documentation": "Amount of purchase arrangement to be paid in next fiscal year following current fiscal year. Includes, but is not limited to, recorded and unrecorded purchase obligations, long-term purchase commitment, and short-term purchase commitment. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PurchaseObligationDueInSecondYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PurchaseObligationDueInSecondYear",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase Obligation, to be Paid, Year Two",
        "terseLabel": "Purchase obligation due in second year",
        "documentation": "Amount of purchase arrangement to be paid in second fiscal year following current fiscal year. Includes, but is not limited to, recorded and unrecorded purchase obligations, long-term purchase commitment, and short-term purchase commitment. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PurchaseObligationDueInThirdYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PurchaseObligationDueInThirdYear",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase obligation due in third year",
        "documentation": "Amount of purchase arrangement to be paid in third fiscal year following current fiscal year. Includes, but is not limited to, recorded and unrecorded purchase obligations, long-term purchase commitment, and short-term purchase commitment. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PurchaseObligationFiscalYearMaturityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PurchaseObligationFiscalYearMaturityAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase Obligation, Fiscal Year Maturity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PurchasePowerAgreementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PurchasePowerAgreementAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase Power Agreement [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PurchasePowerAgreementOsceolaWindpowerIiLlcMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PurchasePowerAgreementOsceolaWindpowerIiLlcMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchased Power [Member]",
        "label": "Purchase Power Agreement, Osceola Windpower II, LLC [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PurchasePowerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PurchasePowerMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual obligation to purchase power over periods that initially exceed one year or the normal operating cycle, if longer.",
        "label": "Purchase Power [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PurchasedGasAdjustmentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PurchasedGasAdjustmentAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchased Gas Adjustment Clause",
        "label": "Purchased gas adjustment [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PurchasedGasAdjustmentClausePolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PurchasedGasAdjustmentClausePolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for purchased gas adjustment clause.",
        "terseLabel": "Purchased Gas Adjustment Clause",
        "label": "Purchased Gas Adjustment Clause Policy [Text Block]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PurchasedGasAdjustmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PurchasedGasAdjustmentMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchased Gas Adjustment [Member]",
        "terseLabel": "Purchased Gas Adjustment [Member]",
        "documentation": "MGE's natural gas rates are subject to a fuel adjustment clause designed to recover or refund the difference between the actual cost of purchased gas and the amount included in rates. Differences between the amounts billed to customers and the actual costs recoverable are deferred and recovered or refunded in future periods by means of prospective monthly adjustments to rates."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PurchasedPowerAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PurchasedPowerAgreementMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PPA [Member]",
        "documentation": "Purchased power agreement.",
        "label": "Purchased Power Agreement [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_PurchasedPowerExpenseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "PurchasedPowerExpenseMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Purchased power expense member.",
        "label": "Purchased Power Expense [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_QuarterlyFinancialInformationDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "QuarterlyFinancialInformationDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Quarterly Financial Information Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_QuarterlyFinancialInformationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "QuarterlyFinancialInformationTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DisclosureQuarterlySummaryOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Quarterly Financial Information [Text Block]",
        "documentation": "The entire disclosure for quarterly financial data. Includes, but is not limited to, tabular presentation of financial information for fiscal quarters, effect of year-end adjustments, and an explanation of matters or transactions that affect comparability of the information."
       }
      }
     },
     "auth_ref": [
      "r200",
      "r388"
     ]
    },
    "srt_RangeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RangeAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Axis]",
        "documentation": "Information by statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median."
       }
      }
     },
     "auth_ref": [
      "r523",
      "r524",
      "r525",
      "r526",
      "r613",
      "r666",
      "r698",
      "r699",
      "r700",
      "r876",
      "r904",
      "r968",
      "r1011",
      "r1012",
      "r1075",
      "r1079",
      "r1081",
      "r1082",
      "r1097",
      "r1108",
      "r1109",
      "r1126",
      "r1135",
      "r1153",
      "r1161",
      "r1164",
      "r1265",
      "r1274",
      "r1344",
      "r1345",
      "r1346",
      "r1347",
      "r1348"
     ]
    },
    "srt_RangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RangeMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Domain]",
        "documentation": "Statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median."
       }
      }
     },
     "auth_ref": [
      "r523",
      "r524",
      "r525",
      "r526",
      "r613",
      "r666",
      "r698",
      "r699",
      "r700",
      "r876",
      "r904",
      "r968",
      "r1011",
      "r1012",
      "r1075",
      "r1079",
      "r1081",
      "r1082",
      "r1097",
      "r1108",
      "r1109",
      "r1126",
      "r1135",
      "r1153",
      "r1161",
      "r1164",
      "r1265",
      "r1274",
      "r1344",
      "r1345",
      "r1346",
      "r1347",
      "r1348"
     ]
    },
    "us-gaap_RatioOfIndebtednessToNetCapital1": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RatioOfIndebtednessToNetCapital1",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ratio of Indebtedness to Net Capital",
        "terseLabel": "Debt to total capitalization ratio",
        "documentation": "Indebtedness divided by net capital."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RealEstateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RealEstateMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Real Estate [Member]",
        "documentation": "Property consisting of land, land improvement and buildings."
       }
      }
     },
     "auth_ref": [
      "r1277"
     ]
    },
    "us-gaap_ReceivablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ReceivablesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Trade Receivables, Allowance for Doubtful Accounts, and Concentration Risk",
        "label": "Receivables [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ReceivablesNetCurrentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ReceivablesNetCurrentAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivables, Net, Current [Abstract]",
        "terseLabel": "Receivables, Net"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ReceivablesPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ReceivablesPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivable [Policy Text Block]",
        "terseLabel": "Trade Receivables, Allowance for Doubtful Accounts, and Concentration Risk",
        "documentation": "Disclosure of accounting policy for receivable. Includes, but is not limited to, accounts receivable and financing receivable."
       }
      }
     },
     "auth_ref": [
      "r1247",
      "r1249",
      "r1250",
      "r1251"
     ]
    },
    "us-gaap_ReconciliationOfUnrecognizedTaxBenefitsExcludingAmountsPertainingToExaminedTaxReturnsRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ReconciliationOfUnrecognizedTaxBenefitsExcludingAmountsPertainingToExaminedTaxReturnsRollForward",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward]",
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ReconciliationOfUnrecognizedTaxBenefitsInterestRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ReconciliationOfUnrecognizedTaxBenefitsInterestRollForward",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "terseLabel": "Interest on unrecognized tax benefits [Roll Forward]",
        "label": "Reconciliation Of Unrecognized Tax Benefits Interest [Roll Forward]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_RedBarnUnitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "RedBarnUnitsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Red Barn is a wind farm located in the Towns of Wingville and Clifton in Grant County. MGE has a 10% ownership interest in Red Barn for a total of 9.16 MW.",
        "label": "Red Barn Units [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_RegionalTransmissionOrganizationReductionToSalesAndPurchasedPowerExpenseFromNetBasisReporting": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "RegionalTransmissionOrganizationReductionToSalesAndPurchasedPowerExpenseFromNetBasisReporting",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The transactions for whichan entity buys and sells power within the same hour to meet electric energy delivery requirements are reported on a net basis. The treatment results in a reduction to sales to the market and purchased power expense.",
        "terseLabel": "Reduction to sales and purchased power expense from reporting RTO transactions from net basis reporting",
        "label": "Regional Transmission Organization, Reduction to Sales and Purchased Power Expense From Net Basis Reporting"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_RegionalTransmissionOrganizationsDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "RegionalTransmissionOrganizationsDisclosureAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Regional Transmission Organizations",
        "label": "Regional Transmission Organizations Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_RegionalTransmissionOrganizationsPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "RegionalTransmissionOrganizationsPolicyPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Regional Transmission Organizations",
        "label": "Regional Transmission Organizations, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for regional transmission organization transactions on the MISO market."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RegulatedAndUnregulatedOperatingRevenue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatedAndUnregulatedOperatingRevenue",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulated and Unregulated Operating Revenue",
        "totalLabel": "Total Operating Revenues",
        "terseLabel": "Operating revenues",
        "documentation": "The total amount of operating revenues recognized during the period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatedAndUnregulatedOperatingRevenueAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulated and Unregulated Operating Revenue [Abstract]",
        "terseLabel": "Operating Revenues:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RegulatedAndUnregulatedOperationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatedAndUnregulatedOperationDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulated and Unregulated Operation [Domain]",
        "documentation": "Operations of companies, both regulated and unregulated."
       }
      }
     },
     "auth_ref": [
      "r155"
     ]
    },
    "mgee_RegulatedGasRevenuesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "RegulatedGasRevenuesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulated Gas Revenues [Member]",
        "documentation": "Regulated gas revenues."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RegulatedOperatingRevenueElectricNonNuclear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatedOperatingRevenueElectricNonNuclear",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_RegulatedAndUnregulatedOperatingRevenue",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Regulated Operating Revenue, Electric, Non-Nuclear, Total",
        "label": "Regulated Operating Revenue, Electric, Non-Nuclear",
        "terseLabel": "Electric revenues",
        "documentation": "The amount of regulated power revenues recognized during the period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RegulatedOperatingRevenueGas": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatedOperatingRevenueGas",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_RegulatedAndUnregulatedOperatingRevenue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulated Operating Revenue, Gas",
        "terseLabel": "Gas revenue",
        "documentation": "The amount of regulated gas operating revenues recognized during the period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RegulatedOperationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatedOperationMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulated Operation [Member]",
        "documentation": "Operation of entities that are regulated by governmental organizations for example, but not limited to, local, state, county, country, or other regulatory organizations."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RegulatedOperationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatedOperationsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulated Operations [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RegulatoryAgencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatoryAgencyAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulatory Agency [Axis]",
        "documentation": "Information by name of regulatory agency."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RegulatoryAgencyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatoryAgencyDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulatory Agency [Domain]",
        "documentation": "Organization that establishes and ensures compliance with rules or regulations."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RegulatoryAssetAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatoryAssetAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulatory Asset [Axis]",
        "documentation": "Information by type of regulatory asset."
       }
      }
     },
     "auth_ref": [
      "r156",
      "r163",
      "r245"
     ]
    },
    "us-gaap_RegulatoryAssetDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatoryAssetDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulatory Asset [Domain]",
        "documentation": "Rate action of a regulator resulting in capitalization of costs incurred."
       }
      }
     },
     "auth_ref": [
      "r245"
     ]
    },
    "us-gaap_RegulatoryAssetLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatoryAssetLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulatory Asset [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_RegulatoryAssetMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "RegulatoryAssetMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current and Long-Term Regulatory Asset [Member]",
        "documentation": "Regulatory asset.",
        "label": "Regulatory Asset [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RegulatoryAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatoryAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Regulatory Assets, Total",
        "terseLabel": "Regulatory assets",
        "label": "Regulatory Asset",
        "documentation": "The amount for the individual regulatory asset as itemized in a table of regulatory assets as of the end of the period."
       }
      }
     },
     "auth_ref": [
      "r245"
     ]
    },
    "us-gaap_RegulatoryAssetsAndLiabilitiesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatoryAssetsAndLiabilitiesDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulatory Assets and Liabilities Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RegulatoryAssetsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatoryAssetsCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulatory asset - current",
        "documentation": "Carrying amount as of the balance sheet date of capitalized costs of regulated entities that are expected to be recovered through revenue sources within one year or the normal operating cycle, if longer. Such costs are capitalized if they meet both of the following criteria: a. It is probable that future revenue in an amount at least equal to the capitalized cost will result from inclusion of that cost in allowable costs for rate-making purposes. b. Based on available evidence, the future revenue will be provided to permit recovery of the previously incurred cost rather than to provide for expected levels of similar future costs. If the revenue will be provided through an automatic rate-adjustment clause, this criterion requires that the regulator's intent clearly be to permit recovery of the previously incurred cost."
       }
      }
     },
     "auth_ref": [
      "r245"
     ]
    },
    "us-gaap_RegulatoryAssetsNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatoryAssetsNoncurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulatory Asset, Noncurrent",
        "terseLabel": "Regulatory assets",
        "documentation": "Carrying amount as of the balance sheet date of capitalized costs of regulated entities that are not expected to be recovered through revenue sources within one year or the normal operating cycle if longer."
       }
      }
     },
     "auth_ref": [
      "r245"
     ]
    },
    "us-gaap_RegulatoryLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatoryLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Regulatory Liabilities, Total",
        "label": "Regulatory Liability",
        "terseLabel": "Increase in Regulatory Liability Tax Cuts and Jobs Act",
        "documentation": "The amount for the individual regulatory liability as itemized in a table of regulatory liabilities as of the end of the period."
       }
      }
     },
     "auth_ref": [
      "r248"
     ]
    },
    "us-gaap_RegulatoryLiabilitiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatoryLiabilitiesLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulatory Liability [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RegulatoryLiabilityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatoryLiabilityAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulatory Liability [Axis]",
        "documentation": "Information by type of regulatory liability."
       }
      }
     },
     "auth_ref": [
      "r248"
     ]
    },
    "us-gaap_RegulatoryLiabilityCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatoryLiabilityCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Regulatory Liability, Current, Total",
        "label": "Regulatory Liability, Current",
        "terseLabel": "Regulatory liabilities - current",
        "documentation": "The amount for the individual regulatory current liability as itemized in a table of regulatory current liabilities as of the end of the period."
       }
      }
     },
     "auth_ref": [
      "r248"
     ]
    },
    "us-gaap_RegulatoryLiabilityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatoryLiabilityDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulatory Liability [Domain]",
        "documentation": "Rate action of a regulator resulting in accrual of costs or expenses."
       }
      }
     },
     "auth_ref": [
      "r248"
     ]
    },
    "us-gaap_RegulatoryLiabilityNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatoryLiabilityNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Regulatory Liability, Noncurrent, Total",
        "label": "Regulatory Liability, Noncurrent",
        "terseLabel": "Regulatory liabilities",
        "documentation": "The amount for the individual regulatory noncurrent liability as itemized in a table of regulatory noncurrent liabilities as of the end of the period."
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "us-gaap_RelatedPartyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party, Type [Domain]",
        "documentation": "Related parties include affiliates; other entities for which investments are accounted for by the equity method by the entity; trusts for benefit of employees; and principal owners, management, and members of immediate families. It also may include other parties with which the entity may control or can significantly influence the management or operating policies of the other to an extent that one of the transacting parties might be prevented from fully pursuing its own separate interests."
       }
      }
     },
     "auth_ref": [
      "r641",
      "r862",
      "r863",
      "r1014",
      "r1015",
      "r1016",
      "r1017",
      "r1018",
      "r1039",
      "r1041",
      "r1073"
     ]
    },
    "us-gaap_RelatedPartyTransactionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyTransactionsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transactions [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RelatedPartyTransactionsByRelatedPartyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyTransactionsByRelatedPartyAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party, Type [Axis]",
        "documentation": "Information by type of related party. Related parties include, but not limited to, affiliates; other entities for which investments are accounted for by the equity method by the entity; trusts for benefit of employees; and principal owners, management, and members of immediate families. It also may include other parties with which the entity may control or can significantly influence the management or operating policies of the other to an extent that one of the transacting parties might be prevented from fully pursuing its own separate interests."
       }
      }
     },
     "auth_ref": [
      "r641",
      "r862",
      "r863",
      "r913",
      "r914",
      "r915",
      "r916",
      "r917",
      "r918",
      "r919",
      "r920",
      "r921",
      "r922",
      "r923",
      "r924",
      "r1014",
      "r1015",
      "r1016",
      "r1017",
      "r1018",
      "r1039",
      "r1041",
      "r1073",
      "r1340"
     ]
    },
    "us-gaap_RelatedPartyTransactionsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyTransactionsDisclosureTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DisclosureRelatedPartyTransactions"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transactions Disclosure [Text Block]",
        "documentation": "The entire disclosure for related party transactions. Examples of related party transactions include transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners; and (d) affiliates."
       }
      }
     },
     "auth_ref": [
      "r859",
      "r860",
      "r861",
      "r863",
      "r865",
      "r994",
      "r995",
      "r996",
      "r1047",
      "r1048",
      "r1049",
      "r1070",
      "r1072"
     ]
    },
    "mgee_RenewableEnergyCreditsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "RenewableEnergyCreditsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MGE receives renewable energy credits from certain purchase power. The value of the credits are recorded as inventory and expensed when the credit is redeemed or expired. A regulatory liability has been established for the value of its renewable energy credits included in inventory. In Wisconsin, renewable energy credits expire four years after the year of acquisition. This benefit will be returned to customers in the year the credit is redeemed or expired.",
        "label": "Renewable Energy Credits [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RepaymentsOfLongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RepaymentsOfLongTermDebt",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 3.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Repayments of Long-term Debt, Total",
        "label": "Repayments of Long-Term Debt",
        "negatedLabel": "Repayment of long-term debt",
        "documentation": "The cash outflow for debt initially having maturity due after one year or beyond the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r62",
      "r991"
     ]
    },
    "srt_RepurchaseAgreementCounterpartyNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RepurchaseAgreementCounterpartyNameDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Counterparty Name [Domain]",
        "documentation": "Named other party that participates in a financial transaction. Examples include, but not limited to, the name of the financial institution."
       }
      }
     },
     "auth_ref": [
      "r346",
      "r347",
      "r543",
      "r563",
      "r864",
      "r1117",
      "r1118"
     ]
    },
    "us-gaap_RepurchaseAgreementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RepurchaseAgreementsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repurchase Agreements [Member]",
        "documentation": "Investments represented by an agreement between the entity and another party for the sale and repurchase of identical or substantially the same securities at a date certain for a specified price. Such agreements are generally short-term in nature."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ResidentialMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ResidentialMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Residential [Member]",
        "documentation": "Residential operating revenue."
       }
      }
     },
     "auth_ref": []
    },
    "srt_RestatementAdjustmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RestatementAdjustmentMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision of Prior Period, Adjustment [Member]",
        "documentation": "Cumulative increase (decrease) for adjustment to previously issued financial statements. Includes, but is not limited to, adjustment for retrospective application of amendment to accounting standards, other change in accounting principle, correction of error, and other revision."
       }
      }
     },
     "auth_ref": [
      "r357",
      "r358",
      "r359",
      "r374",
      "r375",
      "r387",
      "r787",
      "r788",
      "r1193",
      "r1194",
      "r1195",
      "r1196",
      "r1198",
      "r1202",
      "r1203"
     ]
    },
    "srt_RestatementAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RestatementAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision of Prior Period [Axis]",
        "documentation": "Information by adjustment to previously issued financial statements. Includes, but is not limited to, adjustment for retrospective application of amendment to accounting standards, other change in accounting principle, correction of error, and other revision."
       }
      }
     },
     "auth_ref": [
      "r291",
      "r357",
      "r358",
      "r359",
      "r363",
      "r364",
      "r368",
      "r369",
      "r370",
      "r371",
      "r373",
      "r374",
      "r375",
      "r376",
      "r377",
      "r378",
      "r387",
      "r477",
      "r478",
      "r737",
      "r782",
      "r787",
      "r788",
      "r789",
      "r834",
      "r856",
      "r857",
      "r971",
      "r972",
      "r973",
      "r974",
      "r975",
      "r976",
      "r977",
      "r978",
      "r979",
      "r980",
      "r982"
     ]
    },
    "srt_RestatementDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RestatementDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision of Prior Period [Domain]",
        "documentation": "Adjustment to previously issued financial statements. Includes, but is not limited to, adjustment for retrospective application of amendment to accounting standards, other change in accounting principle, correction of error, and other revision."
       }
      }
     },
     "auth_ref": [
      "r291",
      "r357",
      "r358",
      "r359",
      "r363",
      "r364",
      "r368",
      "r369",
      "r370",
      "r371",
      "r373",
      "r374",
      "r375",
      "r376",
      "r377",
      "r378",
      "r387",
      "r477",
      "r478",
      "r737",
      "r782",
      "r787",
      "r788",
      "r789",
      "r834",
      "r856",
      "r857",
      "r971",
      "r972",
      "r973",
      "r974",
      "r975",
      "r976",
      "r977",
      "r978",
      "r979",
      "r980",
      "r982"
     ]
    },
    "us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RestrictedCashAndCashEquivalentsAtCarryingValue",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Restricted Cash and Cash Equivalents, Current, Total",
        "label": "Restricted Cash and Cash Equivalents, Current",
        "terseLabel": "Restricted cash",
        "documentation": "Amount of cash and cash equivalents restricted as to withdrawal or usage, classified as current. 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."
       }
      }
     },
     "auth_ref": [
      "r64",
      "r300",
      "r339"
     ]
    },
    "mgee_RestrictedStockUnitsEquityAwardsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "RestrictedStockUnitsEquityAwardsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restricted Stock Units Equity Awards [Member]",
        "documentation": "Restricted stock units equity awards [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_RestrictedStockUnitsLiabilityAwardsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "RestrictedStockUnitsLiabilityAwardsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restricted Stock Units Liability Awards [Member]",
        "documentation": "Restricted stock units liability awards [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RestrictedStockUnitsRSUMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RestrictedStockUnitsRSUMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restricted Stock Units (RSUs) [Member]",
        "terseLabel": "Restricted Stock Units [Member]",
        "documentation": "Share instrument which is convertible to stock or an equivalent amount of cash, after a specified period of time or when specified performance conditions are met."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetainedEarningsAccumulatedDeficit",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Retained Earnings (Accumulated Deficit), Ending Balance",
        "periodStartLabel": "Retained Earnings (Accumulated Deficit), Beginning Balance",
        "totalLabel": "Retained Earnings (Accumulated Deficit), Total",
        "label": "Retained Earnings (Accumulated Deficit)",
        "terseLabel": "Retained earnings",
        "documentation": "Amount of accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r180",
      "r213",
      "r936",
      "r975",
      "r980",
      "r992",
      "r1021",
      "r1159"
     ]
    },
    "us-gaap_RetainedEarningsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetainedEarningsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retained Earnings [Member]",
        "documentation": "Accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r290",
      "r357",
      "r358",
      "r359",
      "r364",
      "r375",
      "r377",
      "r474",
      "r482",
      "r706",
      "r707",
      "r708",
      "r736",
      "r737",
      "r767",
      "r770",
      "r771",
      "r775",
      "r787",
      "r971",
      "r973",
      "r999",
      "r1359"
     ]
    },
    "us-gaap_RetirementPlanTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetirementPlanTypeAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Plan Type [Axis]",
        "documentation": "Information by type of retirement benefit plan. Includes, but is not limited to, retirement benefit arrangement for defined benefit pension and other postretirement plans, retirement benefit arrangement for defined contribution pension and other postretirement plans, and special and contractual termination benefits payable upon retirement."
       }
      }
     },
     "auth_ref": [
      "r589",
      "r592",
      "r593",
      "r594",
      "r595",
      "r596",
      "r597",
      "r598",
      "r599",
      "r600",
      "r601",
      "r602",
      "r603",
      "r604",
      "r605",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r616",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r622",
      "r623",
      "r624",
      "r625",
      "r626",
      "r627",
      "r628",
      "r629",
      "r630",
      "r631",
      "r632",
      "r633",
      "r634",
      "r636",
      "r638",
      "r639",
      "r641",
      "r644",
      "r647",
      "r650",
      "r651",
      "r652",
      "r653",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r663",
      "r664",
      "r665",
      "r668",
      "r1145",
      "r1146",
      "r1147",
      "r1148",
      "r1149",
      "r1150",
      "r1151",
      "r1152"
     ]
    },
    "us-gaap_RetirementPlanTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetirementPlanTypeDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Plan Type [Domain]",
        "documentation": "Type of plan designed to provide participants with retirement benefits. Includes, but is not limited to, retirement benefit arrangement for defined benefit pension and other postretirement plans, retirement benefit arrangement for defined contribution pension and other postretirement plans, and special and contractual termination benefits payable upon retirement."
       }
      }
     },
     "auth_ref": [
      "r589",
      "r592",
      "r593",
      "r594",
      "r595",
      "r596",
      "r597",
      "r598",
      "r599",
      "r600",
      "r601",
      "r602",
      "r603",
      "r604",
      "r605",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r616",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r622",
      "r623",
      "r624",
      "r625",
      "r626",
      "r627",
      "r628",
      "r629",
      "r630",
      "r631",
      "r632",
      "r633",
      "r634",
      "r636",
      "r638",
      "r639",
      "r641",
      "r644",
      "r647",
      "r650",
      "r651",
      "r652",
      "r653",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r663",
      "r664",
      "r665",
      "r668",
      "r1145",
      "r1146",
      "r1147",
      "r1148",
      "r1149",
      "r1150",
      "r1151",
      "r1152"
     ]
    },
    "mgee_ReturnedSavingsFromPriorYearEmployeeBenefitCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ReturnedSavingsFromPriorYearEmployeeBenefitCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "During 2022, MGE returned savings from 2021 employee benefit plan costs.",
        "label": "Returned Savings From Prior Year Employee Benefit Costs",
        "terseLabel": "Return savings from prior year employee benefit costs"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RevenueFromContractWithCustomerAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RevenueFromContractWithCustomerAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from Contract with Customer [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RevenueFromContractWithCustomerIncludingAssessedTax",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from Contract with Customer, Including Assessed Tax",
        "terseLabel": "Revenues recognized from contracts with customers",
        "documentation": "Amount, including tax collected from customer, of revenue from satisfaction of performance obligation by transferring promised good or service to customer. Tax collected from customer is tax assessed by governmental authority that is both imposed on and concurrent with specific revenue-producing transaction, including, but not limited to, sales, use, value-added and excise."
       }
      }
     },
     "auth_ref": [
      "r396",
      "r397",
      "r414",
      "r419",
      "r420",
      "r426",
      "r428",
      "r429",
      "r585",
      "r586",
      "r906"
     ]
    },
    "us-gaap_RevenueFromContractWithCustomerTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RevenueFromContractWithCustomerTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_Revenue"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revenue from Contract with Customer [Text Block]",
        "label": "Revenue from Contract with Customer [Text Block]",
        "documentation": "The entire disclosure of revenue from contract with customer to transfer good or service and to transfer nonfinancial asset. Includes, but is not limited to, disaggregation of revenue, credit loss recognized from contract with customer, judgment and change in judgment related to contract with customer, and asset recognized from cost incurred to obtain or fulfill contract with customer. Excludes insurance and lease contracts."
       }
      }
     },
     "auth_ref": [
      "r271",
      "r577",
      "r578",
      "r579",
      "r580",
      "r581",
      "r582",
      "r583",
      "r584",
      "r587"
     ]
    },
    "us-gaap_RevenueRecognitionPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RevenueRecognitionPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue [Policy Text Block]",
        "terseLabel": "Revenue Recognition",
        "documentation": "Disclosure of accounting policy for revenue. Includes revenue from contract with customer and from other sources."
       }
      }
     },
     "auth_ref": [
      "r1043",
      "r1111",
      "r1121"
     ]
    },
    "us-gaap_RevenueSubjectToRefundMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RevenueSubjectToRefundMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue Subject to Refund [Member]",
        "terseLabel": "Revenue Subject to Refund [Member]",
        "documentation": "Rate action of a regulator resulting in capitalization or accrual of revenue subject to refund."
       }
      }
     },
     "auth_ref": [
      "r162"
     ]
    },
    "us-gaap_Revenues": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Revenues",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "parentTag": "mgee_EquityMethodInvestmentSummarizedFinancialInformationNetIncomeLossBeforeTaxes",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Revenues, Total",
        "label": "Revenues",
        "terseLabel": "Operating revenues",
        "documentation": "Amount of revenue recognized from goods sold, services rendered, insurance premiums, or other activities that constitute an earning process. Includes, but is not limited to, investment and interest income before deduction of interest expense when recognized as a component of revenue, and sales and trading gain (loss)."
       }
      }
     },
     "auth_ref": [
      "r329",
      "r342",
      "r396",
      "r397",
      "r414",
      "r419",
      "r420",
      "r426",
      "r428",
      "r429",
      "r470",
      "r527",
      "r528",
      "r530",
      "r531",
      "r532",
      "r534",
      "r536",
      "r538",
      "r539",
      "r811",
      "r927",
      "r1270"
     ]
    },
    "mgee_RevisionToCashFlowStatementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "RevisionToCashFlowStatementAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision To Cash Flow Statement [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-Use Asset Obtained in Exchange for Finance Lease Liability",
        "terseLabel": "Lease assets obtained in exchange for lease liabilities - finance leases",
        "documentation": "Amount of increase in right-of-use asset obtained in exchange for finance lease liability."
       }
      }
     },
     "auth_ref": [
      "r849",
      "r1158"
     ]
    },
    "us-gaap_RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-Use Asset Obtained in Exchange for Operating Lease Liability",
        "terseLabel": "Lease assets obtained in exchange for lease liabilities - operating leases",
        "documentation": "Amount of increase in right-of-use asset obtained in exchange for operating lease liability."
       }
      }
     },
     "auth_ref": [
      "r849",
      "r1158"
     ]
    },
    "us-gaap_RisksAndUncertaintiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RisksAndUncertaintiesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risks and Uncertainties [Abstract]",
        "terseLabel": "Concentration of Credit Risk [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_SalestothemarketMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "SalestothemarketMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sales To The Market [Member]",
        "documentation": "Sales to the market operating revenue"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_SaratogaWindAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "SaratogaWindAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Saratoga Wind [Abstract]",
        "terseLabel": "Saratoga Wind"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_SaratogaWindFarmMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "SaratogaWindFarmMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Saratoga Wind Farm [Member]",
        "documentation": "Saratoga Wind Farm project. Constructed in 2018 and operational in early 2019."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_SaratogaWindMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "SaratogaWindMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Solar Project in Saratoga, IA approved in 2017.",
        "label": "Saratoga Wind [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_SaratogawindprojectMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "SaratogawindprojectMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Saratoga Wind Project [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_ScenarioForecastMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ScenarioForecastMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rate Matters For Future Periods [Member]",
        "label": "Forecast [Member]",
        "documentation": "Information reported for future period. Excludes information expected to be reported in future period for effect on historical fact."
       }
      }
     },
     "auth_ref": [
      "r667",
      "r1212",
      "r1244"
     ]
    },
    "srt_ScenarioPreviouslyReportedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ScenarioPreviouslyReportedMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Previously Reported [Member]",
        "documentation": "Represents amount as previously reported before adjustment for retrospective application of amendment to accounting standards, other change in accounting principle, correction of error, and other revision."
       }
      }
     },
     "auth_ref": [
      "r291",
      "r357",
      "r359",
      "r363",
      "r364",
      "r368",
      "r369",
      "r377",
      "r387",
      "r737",
      "r782",
      "r787",
      "r788",
      "r834",
      "r971",
      "r972",
      "r973",
      "r974",
      "r975",
      "r976",
      "r977",
      "r978",
      "r979",
      "r980",
      "r982",
      "r1198",
      "r1200",
      "r1201",
      "r1202",
      "r1243",
      "r1259",
      "r1260",
      "r1329",
      "r1336",
      "r1337"
     ]
    },
    "srt_ScenarioUnspecifiedDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ScenarioUnspecifiedDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Scenario [Domain]",
        "documentation": "Scenario reported, distinguishing information from actual fact. Includes, but is not limited to, pro forma and forecast. Excludes actual facts."
       }
      }
     },
     "auth_ref": [
      "r378",
      "r667",
      "r1188",
      "r1244"
     ]
    },
    "us-gaap_ScheduleOfAccumulatedBenefitObligationsInExcessOfFairValueOfPlanAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAccumulatedBenefitObligationsInExcessOfFairValueOfPlanAssetsTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan with Accumulated Benefit Obligation in Excess of Plan Assets [Table Text Block]",
        "terseLabel": "Schedule of Accumulated Benefit Obligations in Excess of Plan Assets",
        "documentation": "Tabular disclosure of benefit obligation and plan assets of defined benefit plan with accumulated benefit obligation in excess of plan assets."
       }
      }
     },
     "auth_ref": [
      "r1145",
      "r1282",
      "r1283"
     ]
    },
    "us-gaap_ScheduleOfAllocationOfPlanAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAllocationOfPlanAssetsTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Allocation of Plan Assets [Table Text Block]",
        "terseLabel": "Fair Value of Plan Assets by Asset Category",
        "documentation": "Tabular disclosure of the major categories of plan assets of pension plans and/or other employee benefit plans. This information may include, but is not limited to, the target allocation of plan assets, the fair value of each major category of plan assets, and the level within the fair value hierarchy in which the fair value measurements fall."
       }
      }
     },
     "auth_ref": [
      "r214"
     ]
    },
    "us-gaap_ScheduleOfAmountsRecognizedInBalanceSheetTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAmountsRecognizedInBalanceSheetTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Amounts Recognized in Balance Sheet [Table Text Block]",
        "terseLabel": "Schedule of Amounts Recognized in the Consolidated Balance Sheet",
        "documentation": "Tabular disclosure of the amounts that are recognized in the balance sheet (or statement of financial position) for pension plans and/or other employee benefit plans, showing separately the assets and current and noncurrent liabilities (if applicable) recognized."
       }
      }
     },
     "auth_ref": [
      "r96"
     ]
    },
    "us-gaap_ScheduleOfAssumptionsUsedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAssumptionsUsedTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Assumptions [Table Text Block]",
        "terseLabel": "Plan Assumptions",
        "documentation": "Tabular disclosure of assumption used to determine benefit obligation and net periodic benefit cost of defined benefit plan. Includes, but is not limited to, discount rate, rate of compensation increase, expected long-term rate of return on plan assets and interest crediting rate."
       }
      }
     },
     "auth_ref": [
      "r635"
     ]
    },
    "us-gaap_ScheduleOfBenefitObligationsInExcessOfFairValueOfPlanAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfBenefitObligationsInExcessOfFairValueOfPlanAssetsTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan with Projected Benefit Obligation in Excess of Plan Assets [Table Text Block]",
        "terseLabel": "Schedule of Projected Benefit Obligations in Excess of Plan Assets",
        "documentation": "Tabular disclosure of benefit obligation and plan assets for defined benefit pension plan with projected benefit obligation in excess of plan assets."
       }
      }
     },
     "auth_ref": [
      "r1145",
      "r1282"
     ]
    },
    "us-gaap_ScheduleOfChangeInAssetRetirementObligationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfChangeInAssetRetirementObligationTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Change in Asset Retirement Obligation [Table Text Block]",
        "terseLabel": "Change in Asset Retirement Obligations",
        "documentation": "Tabular disclosure of the changes in carrying amount of a liability for asset retirement obligations, for changes such as new obligations, changes in estimates of existing obligations, spending on existing obligations, property dispositions, and foreign currency translation."
       }
      }
     },
     "auth_ref": [
      "r1264"
     ]
    },
    "us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Components of Income Tax Expense (Benefit) [Table Text Block]",
        "terseLabel": "Income Tax Provision",
        "documentation": "Tabular disclosure of the components of income tax expense attributable to continuing operations for each year presented including, but not limited to: current tax expense (benefit), deferred tax expense (benefit), investment tax credits, government grants, the benefits of operating loss carryforwards, tax expense that results from allocating certain tax benefits either directly to contributed capital or to reduce goodwill or other noncurrent intangible assets of an acquired entity, adjustments of a deferred tax liability or asset for enacted changes in tax laws or rates or a change in the tax status of the entity, and adjustments of the beginning-of-the-year balances of a valuation allowance because of a change in circumstances that causes a change in judgment about the realizability of the related deferred tax asset in future years."
       }
      }
     },
     "auth_ref": [
      "r219"
     ]
    },
    "us-gaap_ScheduleOfDebtInstrumentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDebtInstrumentsTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Long-Term Debt Instruments [Table Text Block]",
        "terseLabel": "Schedule of Long-Term Debt",
        "documentation": "Tabular disclosure of long-debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the entity, if longer."
       }
      }
     },
     "auth_ref": [
      "r50",
      "r91",
      "r94",
      "r146",
      "r147",
      "r149",
      "r153",
      "r211",
      "r212",
      "r1131",
      "r1133",
      "r1237"
     ]
    },
    "us-gaap_ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Deferred Tax Assets and Liabilities [Table Text Block]",
        "terseLabel": "Deferred Tax Liabilities (Assets)",
        "documentation": "Tabular disclosure of the components of net deferred tax asset or liability recognized in an entity's statement of financial position, including the following: the total of all deferred tax liabilities, the total of all deferred tax assets, the total valuation allowance recognized for deferred tax assets."
       }
      }
     },
     "auth_ref": [
      "r218"
     ]
    },
    "us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDefinedBenefitPlansDisclosuresTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Defined Benefit Plans Disclosures [Table]",
        "documentation": "Disclosures about an individual defined benefit pension plan or an other postretirement defined benefit plan. It may be appropriate to group certain similar plans. Also includes schedule for fair value of plan assets by major categories of plan assets by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets or liabilities (Level 1), Significant other observable inputs (Level 2), and significant unobservable inputs (Level 3)."
       }
      }
     },
     "auth_ref": [
      "r21",
      "r97",
      "r98",
      "r99",
      "r100"
     ]
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments, Gain (Loss) [Table Text Block]",
        "terseLabel": "Derivative Gains and Losses in Income Statement",
        "documentation": "Tabular disclosure of the location and amount of derivative instruments and nonderivative instruments designated as hedging instruments reported before netting adjustments, and the amount of gain (loss) on derivative instruments and nonderivative instruments designated and qualified as hedging instruments."
       }
      }
     },
     "auth_ref": [
      "r126",
      "r131",
      "r761"
     ]
    },
    "mgee_ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPositionTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPositionTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclsoure of the location and amount of gains and losses reported in the statement of financial position on derivative instruments designated and qualifying as hedging instruments.",
        "terseLabel": "Derivative Gains and Losses in Balance Sheet",
        "label": "Schedule Of Derivative Instruments, Gain (Loss) in Statement of Financial Position [Table Text Block]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Derivative Instruments in Statement of Financial Position, Fair Value [Table Text Block]",
        "terseLabel": "Fair Value of Derivative Instruments on the Balance Sheet",
        "documentation": "Tabular disclosure of the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position."
       }
      }
     },
     "auth_ref": [
      "r127"
     ]
    },
    "us-gaap_ScheduleOfEffectOfOnePercentagePointChangeInAssumedHealthCareCostTrendRatesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfEffectOfOnePercentagePointChangeInAssumedHealthCareCostTrendRatesTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Effect of One-Percentage-Point Change in Assumed Health Care Cost Trend Rates [Table Text Block]",
        "documentation": "Tabular disclosure of the effect of a one-percentage-point increase and the effect of a one-percentage-point decrease in the assumed health care cost trend rates on the aggregate of the service and interest cost components of net periodic postretirement health care benefit costs and the accumulated postretirement benefit obligation for health care benefits."
       }
      }
     },
     "auth_ref": [
      "r1278"
     ]
    },
    "us-gaap_ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Effective Income Tax Rate Reconciliation [Table Text Block]",
        "terseLabel": "Effective Tax Rate Reconciliation",
        "documentation": "Tabular disclosure of the reconciliation using percentage or dollar amounts of the reported amount of income tax expense attributable to continuing operations for the year to the amount of income tax expense that would result from applying domestic federal statutory tax rates to pretax income from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r217"
     ]
    },
    "srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Name [Axis]",
        "documentation": "Information by name of investment including named security. Excludes entity that is consolidated."
       }
      }
     },
     "auth_ref": [
      "r467",
      "r468",
      "r469"
     ]
    },
    "mgee_ScheduleOfEquityMethodInvestmentsAvailableForSaleSecuritiesAndOtherInvestmentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ScheduleOfEquityMethodInvestmentsAvailableForSaleSecuritiesAndOtherInvestmentsTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Equity Method Investments, Available for Sale Securities, and Other Investments [Table]",
        "documentation": "Summarization of information required and determined to be disclosed concerning equity method investments in common stock, available for sale securities and other investments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfEquityMethodInvestmentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfEquityMethodInvestmentsLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Equity Method Investments [Line Items]",
        "terseLabel": "Equity method investments [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r342",
      "r467",
      "r468",
      "r469",
      "r470",
      "r811"
     ]
    },
    "us-gaap_ScheduleOfEquityMethodInvestmentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfEquityMethodInvestmentsTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Equity Method Investments [Table]",
        "documentation": "Summarization of information required and determined to be disclosed concerning equity method investments in common stock. The summarized information includes: (a) the name of each investee or group of investees for which combined disclosure is appropriate, (2) the percentage ownership of common stock, (3) the difference, if any, between the carrying amount of an investment and the value of the underlying equity in the net assets and the accounting treatment of difference, if any, and (4) the aggregate value of each identified investment based on its quoted market price, if available."
       }
      }
     },
     "auth_ref": [
      "r296",
      "r342",
      "r467",
      "r468",
      "r469",
      "r470",
      "r811"
     ]
    },
    "us-gaap_ScheduleOfExpectedBenefitPaymentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfExpectedBenefitPaymentsTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Expected Benefit Payments [Table Text Block]",
        "terseLabel": "Benefit Payments, Fiscal Year Maturity",
        "documentation": "Tabular disclosure of benefits expected to be paid by pension plans and/or other employee benefit plans in each of the next five fiscal years and in the aggregate for the five fiscal years thereafter."
       }
      }
     },
     "auth_ref": [
      "r215"
     ]
    },
    "us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Table Text Block]",
        "terseLabel": "Assets and Liabilities Measured at Fair Value on a Recurring Basis",
        "documentation": "Tabular disclosure of assets and liabilities, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, that are measured at fair value on a recurring basis. The disclosures contemplated herein include the fair value measurements at the reporting date by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets (Level 1), significant other observable inputs (Level 2), and significant unobservable inputs (Level 3)."
       }
      }
     },
     "auth_ref": [
      "r796",
      "r797"
     ]
    },
    "us-gaap_ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Future Minimum Rental Payments for Operating Leases [Table Text Block]",
        "terseLabel": "Operating Leases, Future Minimum Rental Payments",
        "documentation": "Tabular disclosure of future minimum payments required in the aggregate and for each of the five succeeding fiscal years for operating leases having initial or remaining noncancelable lease terms in excess of one year and the total minimum rentals to be received in the future under noncancelable subleases as of the balance sheet date."
       }
      }
     },
     "auth_ref": [
      "r254"
     ]
    },
    "us-gaap_ScheduleOfJointlyOwnedUtilityPlantsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfJointlyOwnedUtilityPlantsTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Jointly Owned Utility Plants [Table Text Block]",
        "terseLabel": "Schedule of Joint Plant Ownership",
        "documentation": "Tabular disclosure of proportionate interests in jointly owned utility plants. Includes the amount of plants in service, the accumulated provision for depreciation (if available), the amount of plants under construction, and the proportionate share. The amounts presented may be further subdivided to show amounts applicable to plant subcategories (for example, production, transmission, distribution). Includes statements that the amounts represent the utility's share in each joint plant and that it must provide its own financing. Information concerning two or more generating plants on the same site may be combined. States that the utility's share of direct expenses of the joint plants is included in the corresponding operating expenses on its income statement (for example, fuel, maintenance of plant, other operating expense). If the share of direct expenses is charged to purchased power, then disclose the amount so charged and the proportionate amounts charged to specific operating expenses on the records maintained for the joint plants."
       }
      }
     },
     "auth_ref": [
      "r246"
     ]
    },
    "us-gaap_ScheduleOfMaturitiesOfLongTermDebtTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Maturities of Long-Term Debt [Table Text Block]",
        "terseLabel": "Schedule of Long-Term Debt Maturities",
        "documentation": "Tabular disclosure of maturity and sinking fund requirement for long-term debt."
       }
      }
     },
     "auth_ref": [
      "r17"
     ]
    },
    "us-gaap_ScheduleOfNetBenefitCostsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfNetBenefitCostsTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Net Benefit Costs [Table Text Block]",
        "terseLabel": "Net Periodic Benefit Costs",
        "documentation": "Tabular disclosure of the components of net benefit costs for pension plans and/or other employee benefit plans including service cost, interest cost, expected return on plan assets, gain (loss), prior service cost or credit, transition asset or obligation, and gain (loss) recognized due to settlements or curtailments."
       }
      }
     },
     "auth_ref": [
      "r216"
     ]
    },
    "mgee_ScheduleOfNetPeriodicBenefitCostNotYetRecognizedRegulatoryAssetTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ScheduleOfNetPeriodicBenefitCostNotYetRecognizedRegulatoryAssetTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the amounts related to pension plans and/or other employee benefit plans in regulatory assets that have not yet been recognized as components of net periodic benefit cost, such as the net gain (loss), net prior service cost or credit, and net transition asset or obligation.",
        "terseLabel": "Amounts Recognized in Regulatory Asset",
        "label": "Schedule Of Net Periodic Benefit Cost Not Yet Recognized Regulatory Asset Table [Text Block]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfNewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfNewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update and Change in Accounting Principle [Table Text Block]",
        "terseLabel": "Retrospective Adjustments to Cash Flows",
        "documentation": "Tabular disclosure of changes in accounting principles, including adoption of new accounting pronouncements, that describes the new methods, amount and effects on financial statement line items."
       }
      }
     },
     "auth_ref": [
      "r70",
      "r71",
      "r72",
      "r73"
     ]
    },
    "us-gaap_ScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Notional Amounts of Outstanding Derivative Positions [Table Text Block]",
        "terseLabel": "Gross Notional Volume of Open Derivatives",
        "documentation": "Tabular disclosure of the notional amounts of outstanding derivative positions."
       }
      }
     },
     "auth_ref": [
      "r122"
     ]
    },
    "us-gaap_ScheduleOfPropertyPlantAndEquipmentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfPropertyPlantAndEquipmentTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Table]",
        "documentation": "Disclosure of information about physical assets used in the normal conduct of business and not intended for resale. Includes, but is not limited to, balances by class of assets, depreciation and depletion expense and method used, including composite depreciation, and accumulated deprecation."
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "mgee_ScheduleOfRegulatoryAssetsAndLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ScheduleOfRegulatoryAssetsAndLiabilitiesTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RegulatoryAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of regulatory assets and liabilities. Assets are created when regulatory agencies permit public utilities to defer certain costs included in rate-setting to the balance sheet. Liabillities are the result of rate actions a regulator can impose on a regulated enterprise resulting in a regulatory liability.",
        "label": "Schedule Of Regulatory Assets And Liabilities Table [Text Block]",
        "terseLabel": "Regulatory Assets and Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RegulatoryAssetsAndLiabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Regulatory Assets and Liabilities [Text Block]",
        "documentation": "The entire disclosure for detailed information about regulatory assets and liabilities, including current and noncurrent assets created when regulatory agencies permit the deferral of costs to the balance sheet that would otherwise be required to appear on the company's income statement and would be charged against current expenses or revenues, as well as current and noncurrent liabilities created when regulatory agencies permit."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfRegulatoryAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfRegulatoryAssetsTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Regulatory Assets [Table]",
        "documentation": "A table of assets that are created when regulatory agencies permit public utilities to defer certain costs that are included in rate-setting to the balance sheet."
       }
      }
     },
     "auth_ref": [
      "r156",
      "r163",
      "r245"
     ]
    },
    "us-gaap_ScheduleOfRegulatoryLiabilitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfRegulatoryLiabilitiesTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Regulatory Liabilities [Table]",
        "documentation": "A table of liabilities that are created when regulatory agencies permit public utilities to defer recognition of certain revenues included in rate-setting."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfRelatedPartyTransactionsByRelatedPartyTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Related Party Transactions, by Related Party [Table]",
        "documentation": "Schedule of quantitative and qualitative information pertaining to related party transactions. Examples of related party transactions include transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners; and (d) affiliates."
       }
      }
     },
     "auth_ref": [
      "r150",
      "r151",
      "r1045",
      "r1046",
      "r1049"
     ]
    },
    "us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfSegmentReportingInformationBySegmentTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Segment Reporting Information, by Segment [Table]",
        "documentation": "A table disclosing the profit or loss and total assets for each reportable segment of the entity. An entity discloses certain information on each reportable segment if the amounts (a) are included in the measure of segment profit or loss reviewed by the chief operating decision maker or (b) are otherwise regularly provided to the chief operating decision maker, even if not included in that measure of segment profit or loss."
       }
      }
     },
     "auth_ref": [
      "r80",
      "r81",
      "r82",
      "r84"
     ]
    },
    "us-gaap_ScheduleOfSegmentReportingInformationBySegmentTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfSegmentReportingInformationBySegmentTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Segment Reporting Information, by Segment [Table Text Block]",
        "terseLabel": "Segment Information",
        "documentation": "Tabular disclosure of the profit or loss and total assets for each reportable segment. An entity discloses certain information on each reportable segment if the amounts (a) are included in the measure of segment profit or loss reviewed by the chief operating decision maker or (b) are otherwise regularly provided to the chief operating decision maker, even if not included in that measure of segment profit or loss."
       }
      }
     },
     "auth_ref": [
      "r80",
      "r81",
      "r82",
      "r84"
     ]
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Share-Based Compensation Arrangements by Share-Based Payment Award [Table]",
        "documentation": "Disclosure of information about share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r670",
      "r671",
      "r673",
      "r674",
      "r675",
      "r677",
      "r678",
      "r679",
      "r680",
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r689",
      "r690",
      "r691",
      "r692",
      "r693",
      "r694",
      "r697",
      "r698",
      "r699",
      "r700",
      "r701"
     ]
    },
    "us-gaap_ScheduleOfShortTermDebtTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfShortTermDebtTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Short-Term Debt [Table]",
        "documentation": "A table or schedule providing information pertaining to borrowings under which repayment was required in less than twelve months (or normal operating cycle, if longer) after its issuance. It may include: (1) description of the short-term debt arrangement; (2) identification of the lender or type of lender; (3) repayment terms; (4) weighted average interest rate; (5) carrying amount of funds borrowed under the specified short-term debt arrangement as of the balance sheet date and measures of the maximum and average amount outstanding during the period; (6) description of the refinancing of a short-term obligation when that obligation is excluded from current liabilities in the balance sheet; and (7) amount of a short-term obligation that has been excluded from current liabilities in the balance sheet because of a refinancing of the obligation."
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "us-gaap_ScheduleOfShortTermDebtTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfShortTermDebtTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Short-Term Debt [Table Text Block]",
        "terseLabel": "Schedule of Short-Term Borrowings",
        "documentation": "Tabular disclosure of short-term debt arrangements (having initial terms of repayment within one year or the normal operating cycle, if longer) including: (1) description of the short-term debt arrangement; (2) identification of the lender or type of lender; (3) repayment terms; (4) weighted average interest rate; (5) carrying amount of funds borrowed under the specified short-term debt arrangement as of the balance sheet date; (6) description of the refinancing of a short-term obligation when that obligation is excluded from current liabilities in the balance sheet; and (7) amount of a short-term obligation that has been excluded from current liabilities in the balance sheet because of a refinancing of the obligation."
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "us-gaap_ScheduleOfStockByClassTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfStockByClassTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Stock by Class [Table]",
        "documentation": "Schedule detailing information related to equity by class of stock. Class of stock includes common, convertible, and preferred stocks which are not redeemable or redeemable solely at the option of the issuer. It also includes preferred stock with redemption features that are solely within the control of the issuer and mandatorily redeemable stock if redemption is required to occur only upon liquidation or termination of the reporting entity."
       }
      }
     },
     "auth_ref": [
      "r88",
      "r89",
      "r90",
      "r91",
      "r92",
      "r93",
      "r94",
      "r211",
      "r212",
      "r213",
      "r307",
      "r308",
      "r309",
      "r390",
      "r561",
      "r562",
      "r563",
      "r565",
      "r568",
      "r573",
      "r575",
      "r988",
      "r989",
      "r990",
      "r991",
      "r1135",
      "r1187",
      "r1232"
     ]
    },
    "srt_ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DisclosureValuationAndQualifyingAccounts"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SEC Schedule, 12-09, Schedule of Valuation and Qualifying Accounts Disclosure [Text Block]",
        "documentation": "The entire disclosure for valuation and qualifying accounts and reserves."
       }
      }
     },
     "auth_ref": [
      "r276",
      "r356"
     ]
    },
    "us-gaap_ScheduleOfVariableInterestEntitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfVariableInterestEntitiesTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Variable Interest Entities [Table]",
        "documentation": "Tabular disclosure of qualitative and quantitative information related to variable interests the entity holds, whether or not such variable interest entity (VIE) is included in the reporting entity's consolidated financial statements. Includes, but is not limited to, description of the significant judgments and assumptions made in determining whether a variable interest (as defined) held by the entity requires the variable interest entity (VIE) (as defined) to be consolidated and (or) disclose information about its involvement with the VIE, individually or in aggregate (as applicable); the nature of restrictions, if any, on the consolidated VIE's assets and on the settlement of its liabilities reported by an entity in its statement of financial position, including the carrying amounts of such assets and liabilities; the nature of, and changes in, the risks associated with involvement in the VIE; how involvement with the VIE affects the entity's financial position, financial performance, and cash flows; the lack of recourse if creditors (or beneficial interest holders) of the consolidated VIE have no recourse to the general credit of the primary beneficiary (if applicable); the terms of arrangements, giving consideration to both explicit arrangements and implicit variable interests, if any, that could require the entity to provide financial support to the VIE, including events or circumstances that could expose the entity to a loss; the methodology used by the entity for determining whether or not it is the primary beneficiary of the variable interest entity; the significant factors considered and judgments made in determining that the power to direct the activities of a VIE that most significantly impact the VIE's economic performance are shared (as defined); the carrying amounts and classification of assets and liabilities of the VIE included in the statement of financial position; the entity's maximum exposure to loss, if any, as a result of its involvement with the VIE, including how the maximum exposure is determined and significant sources of the entity's exposure to the VIE; a tabular comparison of the carrying amounts of the assets and liabilities and the entity's maximum exposure to loss; information about any liquidity arrangements, guarantees, and (or) other commitments by third parties that may affect the fair value or risk of the entity's variable interest in the VIE; whether or not the entity has provided financial support or other support (explicitly or implicitly) to the VIE that it was not previously contractually required to provide or whether the entity intends to provide that support, including the type and amount of the support and the primary reasons for providing the support; and supplemental information the entity determines necessary to provide."
       }
      }
     },
     "auth_ref": [
      "r113",
      "r114",
      "r115",
      "r116",
      "r117",
      "r754",
      "r755",
      "r758",
      "r759",
      "r884",
      "r885",
      "r886"
     ]
    },
    "us-gaap_ScheduleOfVariableInterestEntitiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfVariableInterestEntitiesTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Variable Interest Entities [Table Text Block]",
        "terseLabel": "Variable interest entities significant balance sheet accounts",
        "documentation": "Tabular disclosure of the significant judgments and assumptions made in determining whether a variable interest (as defined) held by the entity requires the variable interest entity (VIE) (as defined) to be consolidated and (or) disclose information about its involvement with the VIE, individually or in aggregate (as applicable); the nature of restrictions, if any, on the consolidated VIE's assets and on the settlement of its liabilities reported by an entity in its statement of financial position, including the carrying amounts of such assets and liabilities; the nature of, and changes in, the risks associated with involvement in the VIE; how involvement with the VIE affects the entity's financial position, financial performance, and cash flows; the lack of recourse if creditors (or beneficial interest holders) of the consolidated VIE have no recourse to the general credit of the primary beneficiary (if applicable); the terms of arrangements, giving consideration to both explicit arrangements and implicit variable interests, if any, that could require the entity to provide financial support to the VIE, including events or circumstances that could expose the entity to a loss; the methodology used by the entity for determining whether or not it is the primary beneficiary of the variable interest entity; the significant factors considered and judgments made in determining that the power to direct the activities of a VIE that most significantly impact the VIE's economic performance are shared (as defined); the carrying amounts and classification of assets and liabilities of the VIE included in the statement of financial position; the entity's maximum exposure to loss, if any, as a result of its involvement with the VIE, including how the maximum exposure is determined and significant sources of the entity's exposure to the VIE; a comparison of the carrying amounts of the assets and liabilities and the entity's maximum exposure to loss; information about any liquidity arrangements, guarantees, and (or) other commitments by third parties that may affect the fair value or risk of the entity's variable interest in the VIE; whether or not the entity has provided financial support or other support (explicitly or implicitly) to the VIE that it was not previously contractually required to provide or whether the entity intends to provide that support, including the type and amount of the support and the primary reasons for providing the support; and supplemental information the entity determines necessary to provide."
       }
      }
     },
     "auth_ref": [
      "r113",
      "r114",
      "r115",
      "r116",
      "r117"
     ]
    },
    "mgee_Scheduleofremeasurementsofdeferredincometaxesduetotaxreformtabletextblock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Scheduleofremeasurementsofdeferredincometaxesduetotaxreformtabletextblock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule Of Remeasurements Of Deferred Income Taxes Due To Tax Reform [Table Text Block]",
        "documentation": "Tabular disclosure of the financial statement effects of the Tax Cuts and Jobs Act to MGEE Energy and MGE."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGrossIncludingNotSubjectToMasterNettingArrangement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseGrossIncludingNotSubjectToMasterNettingArrangement",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Securities Sold under Agreements to Repurchase, Gross Including Not Subject to Master Netting Arrangement, Total",
        "label": "Securities Sold under Agreements to Repurchase, Gross Including Not Subject to Master Netting Arrangement",
        "documentation": "Amount, before effects of master netting arrangements, of funds outstanding borrowed in the form of a security repurchase agreement between the entity and another party for the sale and repurchase of identical or substantially the same securities at a date certain for a specified price. Includes liabilities not subject to a master netting arrangement and elected not to be offset."
       }
      }
     },
     "auth_ref": [
      "r315"
     ]
    },
    "mgee_SecuritiesSoldUnderAgreementsToRepurchaseMaximumExposure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseMaximumExposure",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Securities Sold Under Agreements To Repurchase Maximum Exposure",
        "documentation": "Maximum potential amount of future payments (undiscounted) the guarantor could be required to make under the repurchase agreement with recourse.",
        "terseLabel": "Repurchase agreement, maximum exposure"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_SecuritiesSoldUnderAgreementsToRepurchaseTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseTerm",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Securities Sold Under Agreements To Repurchase, Term",
        "documentation": "Describes the approximate term of the repurchase agreement.",
        "terseLabel": "MGE guarantee to the financial institution, term"
       }
      }
     },
     "auth_ref": []
    },
    "dei_Security12bTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "Security12bTitle",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title of 12(b) Security",
        "terseLabel": "Security 12(b) Title",
        "documentation": "Title of a 12(b) registered security."
       }
      }
     },
     "auth_ref": [
      "r1176"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Exchange Name",
        "documentation": "Name of the Exchange on which a security is registered."
       }
      }
     },
     "auth_ref": [
      "r1179"
     ]
    },
    "us-gaap_SegmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SegmentDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segments [Domain]",
        "documentation": "Components of an entity that engage in business activities from which they may earn revenue and incur expenses, including transactions with other components of the same entity."
       }
      }
     },
     "auth_ref": [
      "r392",
      "r395",
      "r396",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r406",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r419",
      "r420",
      "r421",
      "r422",
      "r424",
      "r429",
      "r499",
      "r500",
      "r501",
      "r502",
      "r503",
      "r504",
      "r505",
      "r506",
      "r507",
      "r521",
      "r522",
      "r951",
      "r952",
      "r953",
      "r954",
      "r955",
      "r956",
      "r957",
      "r958",
      "r959",
      "r960",
      "r961",
      "r1129",
      "r1199",
      "r1355"
     ]
    },
    "us-gaap_SegmentExpenditureAdditionToLongLivedAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SegmentExpenditureAdditionToLongLivedAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment, Expenditure, Addition to Long-Lived Assets",
        "documentation": "Amount of expenditure for addition to long-lived assets included in determination of segment assets by chief operating decision maker (CODM) or otherwise regularly provided to CODM. Excludes expenditure for addition to financial instrument, long-term customer relationship of financial institution, mortgage and other servicing rights, deferred policy acquisition cost, and deferred tax assets."
       }
      }
     },
     "auth_ref": [
      "r406",
      "r1125"
     ]
    },
    "us-gaap_SegmentReportingAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SegmentReportingAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Segment Information",
        "label": "Segment Reporting [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SegmentReportingDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SegmentReportingDisclosureTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DisclosureSegmentInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting Disclosure [Text Block]",
        "documentation": "The entire disclosure for reporting segments including data and tables. Reportable segments include those that meet any of the following quantitative thresholds a) it's reported revenue, including sales to external customers and intersegment sales or transfers is 10 percent or more of the combined revenue, internal and external, of all operating segments b) the absolute amount of its reported profit or loss is 10 percent or more of the greater, in absolute amount of 1) the combined reported profit of all operating segments that did not report a loss or 2) the combined reported loss of all operating segments that did report a loss c) its assets are 10 percent or more of the combined assets of all operating segments."
       }
      }
     },
     "auth_ref": [
      "r391",
      "r392",
      "r393",
      "r394",
      "r395",
      "r407",
      "r418",
      "r422",
      "r423",
      "r424",
      "r425",
      "r426",
      "r427",
      "r429"
     ]
    },
    "mgee_SegmentReportingInformationAssetsAndCapitalExpendituresAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "SegmentReportingInformationAssetsAndCapitalExpendituresAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting Information Assets And Capital Expenditures [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SegmentReportingInformationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SegmentReportingInformationLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting Information [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SegmentReportingPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SegmentReportingPolicyPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting, Policy [Policy Text Block]",
        "terseLabel": "Segment Information",
        "documentation": "Disclosure of accounting policy for segment reporting."
       }
      }
     },
     "auth_ref": [
      "r408",
      "r409",
      "r410",
      "r411",
      "r412",
      "r413",
      "r428",
      "r1124"
     ]
    },
    "mgee_SevenPointOneTwoPercentMediumTermNotesDue2032Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "SevenPointOneTwoPercentMediumTermNotesDue2032Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Seven Point One Two Percent Medium Term Notes due 2032 [Member]",
        "terseLabel": "7.12%, due 2032"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_SevenPointSevenZeroPercentFirstMortgageBondsDue2028Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "SevenPointSevenZeroPercentFirstMortgageBondsDue2028Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Seven Point Seven Zero Percent First Mortgage Bonds due 2028 [Member]",
        "terseLabel": "7.70%, 2028 Series [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAcceleratedCompensationCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAcceleratedCompensationCost",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement, Accelerated Cost",
        "documentation": "Amount of additional cost recognized for award under share-based payment arrangement from occurrence of event accelerating recognition of cost."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Award Vesting Period",
        "terseLabel": "Award vesting period",
        "documentation": "Period over which grantee's right to exercise award under share-based payment arrangement is no longer contingent on satisfaction of service or performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, combination of market, performance or service condition."
       }
      }
     },
     "auth_ref": [
      "r1154"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Forfeited in Period",
        "negatedLabel": "Forfeited",
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r690"
     ]
    },
    "mgee_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresInPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresInPeriod",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeitures in Period",
        "documentation": "The value of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period.",
        "terseLabel": "Awards forfeited during period, value"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period",
        "terseLabel": "Granted",
        "documentation": "The number of grants made during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan)."
       }
      }
     },
     "auth_ref": [
      "r688"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Granted, weighted average grant date fair value",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value",
        "documentation": "The weighted average fair value at grant date for nonvested equity-based awards issued during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan)."
       }
      }
     },
     "auth_ref": [
      "r688"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number",
        "periodStartLabel": "Nonvested awards January 1,",
        "periodEndLabel": "Nonvested awards December 31,",
        "documentation": "The number of non-vested equity-based payment instruments, excluding stock (or unit) options, that validly exist and are outstanding as of the balance sheet date."
       }
      }
     },
     "auth_ref": [
      "r685",
      "r686"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward]",
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Unvested, weighted average grant date fair value per share, ending balance",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value",
        "periodStartLabel": "Unvested, weighted average grant date fair value per share, beginning balance",
        "documentation": "Per share or unit weighted-average fair value of nonvested award under share-based payment arrangement. Excludes share and unit options."
       }
      }
     },
     "auth_ref": [
      "r685",
      "r686"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsShareBasedLiabilitiesPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsShareBasedLiabilitiesPaid",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Share-Based Liabilities Paid",
        "terseLabel": "Cash payments distributed related to awards previously granted and now payable",
        "documentation": "Amount of cash paid to settle liability for award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r692"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period",
        "negatedLabel": "Vested",
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that vested during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r689"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period, Fair Value",
        "documentation": "Fair value of share-based awards for which the grantee gained the right by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash."
       }
      }
     },
     "auth_ref": [
      "r692"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Vested, weighted average grant date fair value",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period, Weighted Average Grant Date Fair Value",
        "documentation": "The weighted average fair value as of grant date pertaining to an equity-based award plan other than a stock (or unit) option plan for which the grantee gained the right during the reporting period, by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash in accordance with the terms of the arrangement."
       }
      }
     },
     "auth_ref": [
      "r689"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r670",
      "r671",
      "r673",
      "r674",
      "r675",
      "r677",
      "r678",
      "r679",
      "r680",
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r689",
      "r690",
      "r691",
      "r692",
      "r693",
      "r694",
      "r697",
      "r698",
      "r699",
      "r700",
      "r701"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Non-Option Equity Instruments, Forfeitures",
        "documentation": "Number of shares under non-option equity instrument agreements that were cancelled as a result of occurrence of a terminating event."
       }
      }
     },
     "auth_ref": [
      "r31"
     ]
    },
    "mgee_ShareBasedCompensationArrangementByShareBasedPaymentAwardPayoutRatio": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardPayoutRatio",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Payout Ratio",
        "documentation": "Payout percentage applied to the number of outstanding performance units to determine the final payout under an equity-based compensation plan."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "All Award Types",
        "label": "All Award Types",
        "documentation": "Award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r673",
      "r674",
      "r675",
      "r677",
      "r678",
      "r679",
      "r680",
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r689",
      "r690",
      "r691",
      "r692",
      "r693",
      "r694",
      "r697",
      "r698",
      "r699",
      "r700",
      "r701"
     ]
    },
    "us-gaap_ShareBasedCompensationOptionAndIncentivePlansPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationOptionAndIncentivePlansPolicy",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement [Policy Text Block]",
        "terseLabel": "Share-based Compensation",
        "documentation": "Disclosure of accounting policy for award under share-based payment arrangement. Includes, but is not limited to, methodology and assumption used in measuring cost."
       }
      }
     },
     "auth_ref": [
      "r669",
      "r676",
      "r695",
      "r696",
      "r697",
      "r698",
      "r701",
      "r709",
      "r710",
      "r711",
      "r712"
     ]
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Award Vesting Rights, Percentage",
        "terseLabel": "Awards to be granted as percentage of target units",
        "documentation": "Percentage of vesting of award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r1285"
     ]
    },
    "mgee_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsUndistributedVestedawardsInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsUndistributedVestedawardsInPeriod",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Undistributed vested awards",
        "label": "ShareBased Compensation Arrangement By ShareBased Payment Award Equity Instruments OtherThan Options Undistributed Vestedawards In Period",
        "documentation": "ShareBased Compensation Arrangement By ShareBased Payment Award Equity Instruments OtherThan Options Undistributed Vestedawards In Period",
        "negatedLabel": "Undistributed vested awards"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted average fair Value of each nonvested award",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Option, Nonvested, Weighted Average Exercise Price",
        "periodEndLabel": "Share-based Compensation Arrangement by Share-based Payment Award, Option, Nonvested, Weighted Average Exercise Price, Ending Balance",
        "periodStartLabel": "Share-based Compensation Arrangement by Share-based Payment Award, Option, Nonvested, Weighted Average Exercise Price, Beginning Balance",
        "documentation": "Weighted average grant-date fair value of non-vested options outstanding."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Sharebasedcompensationarrangementbysharebasedpaymentawardequityinstrumentsotherthanoptionsundistributedvestedawardsinperiodweightedaveragegrantdatefairvalue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Sharebasedcompensationarrangementbysharebasedpaymentawardequityinstrumentsotherthanoptionsundistributedvestedawardsinperiodweightedaveragegrantdatefairvalue",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Undistributed vested awards, weighted average grant date fair value per share",
        "label": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsUndistributedVestedAwardsInPeriodWeightedAverageGrantDateFairValue",
        "documentation": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsUndistributedVestedAwardsInPeriodWeightedAverageGrantDateFairValue"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SharesIssued",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shares, Issued",
        "periodStartLabel": "Beginning balance, shares",
        "periodEndLabel": "Ending balance, shares",
        "documentation": "Number of shares of stock issued as of the balance sheet date, including shares that had been issued and were previously outstanding but which are now held in the treasury."
       }
      }
     },
     "auth_ref": [
      "r27"
     ]
    },
    "us-gaap_ShortTermBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShortTermBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Short-term Debt, Total",
        "label": "Short-Term Debt",
        "terseLabel": "Short-term debt",
        "verboseLabel": "Short-term debt outstanding",
        "documentation": "Reflects the total carrying amount as of the balance sheet date of debt having initial terms less than one year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r170",
      "r234",
      "r1159",
      "r1352"
     ]
    },
    "mgee_ShortTermDebtCommercialPaperFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ShortTermDebtCommercialPaperFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the portion of the balance sheet assertion valued at fair value by the entity whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission. This item represents short-term debt commercial paper obligations meeting the definition of a liability which should be reported as of the balance sheet date.",
        "terseLabel": "Short-term debt - commercial paper",
        "label": "Short Term Debt Commercial Paper Fair Value Disclosure"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShortTermDebtLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShortTermDebtLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-Term Debt [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShortTermDebtTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShortTermDebtTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCredit"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-Term Debt [Text Block]",
        "documentation": "The entire disclosure for short-term debt."
       }
      }
     },
     "auth_ref": [
      "r209"
     ]
    },
    "us-gaap_ShortTermDebtTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShortTermDebtTypeAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-Term Debt, Type [Axis]",
        "documentation": "Information by type of short-term debt arrangement."
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "us-gaap_ShortTermDebtTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShortTermDebtTypeDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-Term Debt, Type [Domain]",
        "documentation": "Type of short-term debt arrangement, such as notes, line of credit, commercial paper, asset-based financing, project financing, letter of credit financing."
       }
      }
     },
     "auth_ref": [
      "r43"
     ]
    },
    "us-gaap_ShortTermDebtWeightedAverageInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShortTermDebtWeightedAverageInterestRate",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-Term Debt, Weighted Average Interest Rate, at Point in Time",
        "terseLabel": "Weighted-average interest rate",
        "documentation": "Weighted average interest rate of short-term debt outstanding calculated at point in time."
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "mgee_ShortTermDebtWeightedAverageInterestRateDuringPeriod": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ShortTermDebtWeightedAverageInterestRateDuringPeriod",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reflects the calculation of the average interest rate weighted by the amount of short-term debt outstanding by type or by instrument during the period.",
        "terseLabel": "Weighted-average interest rate during the year",
        "label": "Short Term Debt Weighted Average Interest Rate During Period"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ShortTermFixedIncomeSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ShortTermFixedIncomeSecuritiesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-Term Fixed Income Securities [Member]",
        "documentation": "Short-Term Fixed Income Securities",
        "terseLabel": "Short-Term Fund [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShorttermDebtAverageOutstandingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShorttermDebtAverageOutstandingAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-Term Debt, Average Outstanding Amount",
        "terseLabel": "Average short-term borrowings",
        "documentation": "For the form of debt having an initial term of less than one year or less than the normal operating cycle, if longer, average borrowings during the period."
       }
      }
     },
     "auth_ref": [
      "r272",
      "r273",
      "r1050"
     ]
    },
    "us-gaap_ShorttermDebtMaximumAmountOutstandingDuringPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShorttermDebtMaximumAmountOutstandingDuringPeriod",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-Term Debt, Maximum Amount Outstanding During Period",
        "terseLabel": "Maximum short-term borrowings",
        "documentation": "For the form of debt having an initial term of less than one year or less than the normal operating cycle, if longer, the maximum amount borrowed at any time during the period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SignificantAccountingPoliciesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SignificantAccountingPoliciesTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Significant Accounting Policies [Text Block]",
        "documentation": "The entire disclosure for all significant accounting policies of the reporting entity."
       }
      }
     },
     "auth_ref": [
      "r199",
      "r340"
     ]
    },
    "mgee_SixPointOneTwoPercentMediumTermNotesDue2028Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "SixPointOneTwoPercentMediumTermNotesDue2028Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Six Point One Two Percent Medium Term Notes due 2028 [Member]",
        "terseLabel": "6.12%, due 2028"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_SixPointTwoFourSevenPercentMediumTermNotesDue2037Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "SixPointTwoFourSevenPercentMediumTermNotesDue2037Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Six Point Two Four Seven Percent Medium Term Notes Due 2037 [Member]",
        "terseLabel": "6.247%, due 2037"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_SolarGenerationSourceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "SolarGenerationSourceMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Solar Generation Source [Member]",
        "documentation": "Solar as a renewable energy generation source."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StateAndLocalJurisdictionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StateAndLocalJurisdictionMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "State and Local Jurisdiction [Member]",
        "terseLabel": "State",
        "documentation": "Designated tax department of a state or local government entitled to levy and collect income taxes from the entity."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementBusinessSegmentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementBusinessSegmentsAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segments [Axis]",
        "documentation": "Information by business segments."
       }
      }
     },
     "auth_ref": [
      "r295",
      "r392",
      "r395",
      "r396",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r406",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r419",
      "r420",
      "r421",
      "r422",
      "r424",
      "r429",
      "r499",
      "r500",
      "r501",
      "r502",
      "r503",
      "r504",
      "r505",
      "r506",
      "r507",
      "r509",
      "r521",
      "r522",
      "r951",
      "r952",
      "r953",
      "r954",
      "r955",
      "r956",
      "r957",
      "r958",
      "r959",
      "r960",
      "r961",
      "r1129",
      "r1199",
      "r1355"
     ]
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementEquityComponentsAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Components [Axis]",
        "documentation": "Information by component of equity."
       }
      }
     },
     "auth_ref": [
      "r27",
      "r55",
      "r290",
      "r326",
      "r327",
      "r328",
      "r357",
      "r358",
      "r359",
      "r364",
      "r375",
      "r377",
      "r389",
      "r474",
      "r482",
      "r576",
      "r706",
      "r707",
      "r708",
      "r736",
      "r737",
      "r767",
      "r769",
      "r770",
      "r771",
      "r772",
      "r775",
      "r787",
      "r819",
      "r821",
      "r822",
      "r823",
      "r824",
      "r825",
      "r857",
      "r971",
      "r972",
      "r973",
      "r999",
      "r1065"
     ]
    },
    "us-gaap_StatementLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails4",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity",
      "http://www.mge.com/20231231/taxonomy/role/StatementMgeEnergyIncConsolidatedStatementsOfCommonEquityParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r357",
      "r358",
      "r359",
      "r389",
      "r906",
      "r983",
      "r1000",
      "r1013",
      "r1014",
      "r1015",
      "r1016",
      "r1017",
      "r1018",
      "r1020",
      "r1023",
      "r1024",
      "r1025",
      "r1026",
      "r1027",
      "r1029",
      "r1030",
      "r1031",
      "r1032",
      "r1035",
      "r1036",
      "r1037",
      "r1038",
      "r1039",
      "r1041",
      "r1043",
      "r1044",
      "r1051",
      "r1052",
      "r1053",
      "r1054",
      "r1055",
      "r1056",
      "r1057",
      "r1058",
      "r1059",
      "r1060",
      "r1061",
      "r1062",
      "r1065",
      "r1165"
     ]
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementOfCashFlowsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Cash Flows [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementOfFinancialPositionAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Financial Position [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementOfStockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementOfStockholdersEquityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Stockholders' Equity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_StatementScenarioAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "StatementScenarioAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Scenario [Axis]",
        "documentation": "Information by scenario reported, distinguishing information from actual fact. Includes, but is not limited to, pro forma and forecast. Excludes actual facts."
       }
      }
     },
     "auth_ref": [
      "r378",
      "r667",
      "r1188",
      "r1190",
      "r1244"
     ]
    },
    "us-gaap_StatementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity",
      "http://www.mge.com/20231231/taxonomy/role/StatementMgeEnergyIncConsolidatedStatementsOfCommonEquityParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement [Table]",
        "documentation": "Schedule reflecting a Statement of Income, Statement of Cash Flows, Statement of Financial Position, Statement of Shareholders' Equity and Other Comprehensive Income, or other statement as needed."
       }
      }
     },
     "auth_ref": [
      "r357",
      "r358",
      "r359",
      "r389",
      "r906",
      "r983",
      "r1000",
      "r1013",
      "r1014",
      "r1015",
      "r1016",
      "r1017",
      "r1018",
      "r1020",
      "r1023",
      "r1024",
      "r1025",
      "r1026",
      "r1027",
      "r1029",
      "r1030",
      "r1031",
      "r1032",
      "r1035",
      "r1036",
      "r1037",
      "r1038",
      "r1039",
      "r1041",
      "r1043",
      "r1044",
      "r1051",
      "r1052",
      "r1053",
      "r1054",
      "r1055",
      "r1056",
      "r1057",
      "r1058",
      "r1059",
      "r1060",
      "r1061",
      "r1062",
      "r1065",
      "r1165"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesNewIssues": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodSharesNewIssues",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period, Shares, New Issues",
        "terseLabel": "Common stock issued during period",
        "documentation": "Number of new stock issued during the period."
       }
      }
     },
     "auth_ref": [
      "r27",
      "r177",
      "r178",
      "r213",
      "r988",
      "r1065",
      "r1103"
     ]
    },
    "mgee_StockIssuedDuringPeriodUnderTheStockPlan": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "StockIssuedDuringPeriodUnderTheStockPlan",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "StockIssuedDuringPeriodUnderTheStockPlan",
        "terseLabel": "Common stock issued during period under the stock plan",
        "documentation": "MGE Energy sells shares of its common stock through its Direct Stock Purchase and Dividend Reinvestment Plan (the Stock Plan)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockIssuedDuringPeriodValueNewIssues": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodValueNewIssues",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period, Value, New Issues",
        "documentation": "Equity impact of the value of new stock issued during the period. Includes shares issued in an initial public offering or a secondary public offering."
       }
      }
     },
     "auth_ref": [
      "r27",
      "r177",
      "r178",
      "r213",
      "r999",
      "r1065",
      "r1103",
      "r1174"
     ]
    },
    "us-gaap_StockholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockholdersEquity",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Beginning balance, value",
        "periodEndLabel": "Ending balance, value",
        "label": "Equity, Attributable to Parent",
        "totalLabel": "Total Common Shareholders' Equity",
        "documentation": "Amount of equity (deficit) attributable to parent. Excludes temporary equity and equity attributable to noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r178",
      "r181",
      "r182",
      "r201",
      "r1022",
      "r1040",
      "r1066",
      "r1067",
      "r1159",
      "r1175",
      "r1234",
      "r1257",
      "r1332",
      "r1359"
     ]
    },
    "us-gaap_StockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockholdersEquityAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity, Attributable to Parent [Abstract]",
        "terseLabel": "Shareholders' Equity:",
        "verboseLabel": "Common shareholders' equity:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
     "crdr": "credit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_CapitalizationLongtermDebtAndEquity",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_CapitalizationLongtermDebtAndEquity",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails3",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity, Including Portion Attributable to Noncontrolling Interest",
        "totalLabel": "Total Equity",
        "periodEndLabel": "Ending balance, value",
        "periodStartLabel": "Beginning balance, value",
        "terseLabel": "Cumulative Effect Of New Accounting Principle In Period Of Adoption",
        "documentation": "Amount of equity (deficit) attributable to parent and noncontrolling interest. Excludes temporary equity."
       }
      }
     },
     "auth_ref": [
      "r109",
      "r110",
      "r118",
      "r290",
      "r291",
      "r327",
      "r357",
      "r358",
      "r359",
      "r364",
      "r375",
      "r474",
      "r482",
      "r576",
      "r706",
      "r707",
      "r708",
      "r736",
      "r737",
      "r767",
      "r769",
      "r770",
      "r771",
      "r772",
      "r775",
      "r787",
      "r819",
      "r821",
      "r825",
      "r857",
      "r972",
      "r973",
      "r997",
      "r1022",
      "r1040",
      "r1066",
      "r1067",
      "r1104",
      "r1174",
      "r1234",
      "r1257",
      "r1332",
      "r1359"
     ]
    },
    "us-gaap_StockholdersEquityNoteDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockholdersEquityNoteDisclosureTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity [Text Block]",
        "documentation": "The entire disclosure for equity."
       }
      }
     },
     "auth_ref": [
      "r210",
      "r341",
      "r560",
      "r562",
      "r564",
      "r565",
      "r566",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r574",
      "r576",
      "r777",
      "r1068",
      "r1071",
      "r1105"
     ]
    },
    "us-gaap_StockholdersEquityNoteStockSplitConversionRatio1": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockholdersEquityNoteStockSplitConversionRatio1",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity Note, Stock Split, Conversion Ratio",
        "terseLabel": "Stock split declared December 20, 2013, ratio (3:2)",
        "documentation": "Ratio applied to the conversion of stock split, for example but not limited to, one share converted to two or two shares converted to one."
       }
      }
     },
     "auth_ref": [
      "r42"
     ]
    },
    "us-gaap_StockholdersEquityOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockholdersEquityOther",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity-based compensation plans and other",
        "label": "Stockholders' Equity, Other",
        "documentation": "This element represents movements included in the statement of changes in stockholders' equity which are not separately disclosed or provided for elsewhere in the taxonomy."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockholdersEquityPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockholdersEquityPolicyTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity, Policy [Policy Text Block]",
        "terseLabel": "Common Stock",
        "documentation": "Disclosure of accounting policy for its capital stock transactions, including dividends and accumulated other comprehensive income."
       }
      }
     },
     "auth_ref": [
      "r18",
      "r1069"
     ]
    },
    "mgee_StockholdersEquityValueCashInLieuOfFractionalSharesRelatedToStockSplit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "StockholdersEquityValueCashInLieuOfFractionalSharesRelatedToStockSplit",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity, Value, Cash in Lieu of Fractional Shares Related to Stock Split",
        "documentation": "Cash paid in lieu of fractional shares related to a stock split.",
        "negatedLabel": "Cash in lieu of fractional shares related to stock split"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubsequentEventLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubsequentEventLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SubsequentEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Event [Line Items]",
        "documentation": "Detail information of subsequent event by type. User is expected to use existing line items from elsewhere in the taxonomy as the primary line items for this disclosure, which is further associated with dimension and member elements pertaining to a subsequent event."
       }
      }
     },
     "auth_ref": [
      "r826",
      "r868"
     ]
    },
    "us-gaap_SubsequentEventMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubsequentEventMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SubsequentEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Event [Member]",
        "documentation": "Identifies event that occurred after the balance sheet date but before financial statements are issued or available to be issued."
       }
      }
     },
     "auth_ref": [
      "r826",
      "r868"
     ]
    },
    "us-gaap_SubsequentEventTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubsequentEventTable",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SubsequentEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Event [Table]",
        "documentation": "Discloses pertinent information about one or more significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued."
       }
      }
     },
     "auth_ref": [
      "r826",
      "r868"
     ]
    },
    "us-gaap_SubsequentEventTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubsequentEventTypeAxis",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SubsequentEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Event Type [Axis]",
        "documentation": "Information by event that occurred after the balance sheet date but before financial statements are issued or available to be issued."
       }
      }
     },
     "auth_ref": [
      "r826",
      "r868"
     ]
    },
    "us-gaap_SubsequentEventTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubsequentEventTypeDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SubsequentEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Event Type [Domain]",
        "documentation": "Event that occurred after the balance sheet date but before financial statements are issued or available to be issued."
       }
      }
     },
     "auth_ref": [
      "r826",
      "r868"
     ]
    },
    "us-gaap_SubsequentEventsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubsequentEventsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Events [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubsequentEventsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubsequentEventsTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DisclosureSubsequentEvents"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Events [Text Block]",
        "documentation": "The entire disclosure for significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued. Examples include: the sale of a capital stock issue, purchase of a business, settlement of litigation, catastrophic loss, significant foreign exchange rate changes, loans to insiders or affiliates, and transactions not in the ordinary course of business."
       }
      }
     },
     "auth_ref": [
      "r867",
      "r869"
     ]
    },
    "us-gaap_SummaryOfIncomeTaxContingenciesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SummaryOfIncomeTaxContingenciesTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Summary of Income Tax Contingencies [Table Text Block]",
        "terseLabel": "Unrecognized Tax Benefits and Interest",
        "documentation": "Tabular disclosure for tax positions taken in the tax returns filed or to be filed for which it is more likely than not that the tax position will not be sustained upon examination by taxing authorities and other income tax contingencies. Includes, but is not limited to, interest and penalties, reconciliation of unrecognized tax benefits, unrecognized tax benefits that would affect the effective tax rate, tax years that remain subject to examination by tax jurisdictions, and information about positions for which it is reasonably possible that amounts unrecognized will significantly change within 12 months."
       }
      }
     },
     "auth_ref": [
      "r24",
      "r221",
      "r222"
     ]
    },
    "us-gaap_SummaryOfIncomeTaxExaminationsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SummaryOfIncomeTaxExaminationsTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Summary of Income Tax Examinations [Table Text Block]",
        "terseLabel": "Tax Years that Remain Subject to Examination",
        "documentation": "Tabular disclosure of income tax examinations that an enterprise is currently subject to or that have been completed in the current period typically including a description of the examination, the jurisdiction conducting the examination, the tax year(s) under examination, the likelihood of an unfavorable settlement, the range of possible losses, the liability recorded, the increase or decrease in the liability from the prior period, and any penalties and interest that have been recorded."
       }
      }
     },
     "auth_ref": [
      "r108",
      "r220"
     ]
    },
    "us-gaap_SummaryOfTaxCreditCarryforwardsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SummaryOfTaxCreditCarryforwardsTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Summary of Tax Credit Carryforwards [Table Text Block]",
        "terseLabel": "Summary of Tax Credit Carryforwards",
        "documentation": "Tabular disclosure of tax credit carryforwards available to reduce future taxable income, including amounts, expiration dates, limitations on use and the related deferred tax assets and valuation allowances."
       }
      }
     },
     "auth_ref": [
      "r105"
     ]
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SupplementalCashFlowInformationAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental Cash Flow Information [Abstract]",
        "terseLabel": "Supplemential Disclosures of Cash Flow Information:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SupplementalEmployeeRetirementPlanDefinedBenefitMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SupplementalEmployeeRetirementPlanDefinedBenefitMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee Benefit Plan [Member]",
        "label": "Supplemental Employee Retirement Plan [Member]",
        "documentation": "Plan designed to provide limited group of employees with supplemental retirement benefits, in addition to other pension benefits. Includes, but is not limited to, defined benefit and defined contribution plans."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TangibleAssetImpairmentChargesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TangibleAssetImpairmentChargesAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tangible Asset Impairment Charges [Abstract]",
        "terseLabel": "Impairment of Long-Lived Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TaxCreditCarryforwardAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TaxCreditCarryforwardAmount",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax Credit Carryforward, Amount",
        "terseLabel": "Federal tax credits",
        "documentation": "The amount of the tax credit carryforward, before tax effects, available to reduce future taxable income under enacted tax laws."
       }
      }
     },
     "auth_ref": [
      "r106"
     ]
    },
    "mgee_TaxCutsAndJobsActMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "TaxCutsAndJobsActMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax Cuts and Jobs Act [Member]",
        "documentation": "2017 Tax reform bill signed by congress."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_TaxRecoveryAfudcEquityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "TaxRecoveryAfudcEquityMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "AFUDC equity represents the after-tax equity cost associated with utility plant construction and results in a temporary difference between the book and tax basis of such plant. It is probable, under regulation, that an entity can recover in future rates the future increase in taxes payable represented by the deferred income tax liability. The amounts will be recovered in rates over the depreciable life of the asset for which AFUDC was applied. Tax recovery related to AFUDC equity represents the revenue requirement related to recovery of these future taxes payable, calculated at current statutory tax rates",
        "label": "Tax Recovery AFUDC Equity [Member]",
        "terseLabel": "Tax Recovery Related to AFUDC Equity [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ThreePointFourFivePercentIndustrialDevelopmentRevenueBondsDue2027Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ThreePointFourFivePercentIndustrialDevelopmentRevenueBondsDue2027Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Three Point Four Five Percent Industrial Development Revenue Bonds due 2027 [Member]",
        "terseLabel": "3.45%, 2027 Series, Industrial Development Revenue Bonds"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ThreePointSeventyFiveIndustrialReveueBondDue2027Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ThreePointSeventyFiveIndustrialReveueBondDue2027Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "3.75%, 2027 Series, Industrial Development Revenue Bonds",
        "label": "Three Point Seventy Five Industrial Reveue Bond Due 2027 [Member]",
        "documentation": "Three Point Seventy Five Industrial Reveue Bond Due 2027"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ThreePointThreeEightPercentNotesDue2020Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ThreePointThreeEightPercentNotesDue2020Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Three Point Three Eight Percent Notes due 2020 [Member]",
        "terseLabel": "3.38%, retired 2020"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ThreePointTwoNinePercentNoteDue2026Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ThreePointTwoNinePercentNoteDue2026Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Three Point Two Nine Percent Note Due 2026 [Member]",
        "terseLabel": "3.29%, due 2026"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_ThreePointZeroNinePercentNotesDue2023Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "ThreePointZeroNinePercentNotesDue2023Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Three Point Zero Nine Percent Notes Due 2023 [Member]",
        "terseLabel": "3.09%, due 2023"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Threepointelevenpercentnotedue2027memberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Threepointelevenpercentnotedue2027memberMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ThreePointElevenPercentNoteDue2027Member [Member]",
        "terseLabel": "3.11% due 2027"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_Threepointsevensixpercentnotedue2052memberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "Threepointsevensixpercentnotedue2052memberMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ThreePointSevenSixPercentNoteDue2052Member [Member]",
        "terseLabel": "3.76% due 2052"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_TotalOperatingRevenueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "TotalOperatingRevenueMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Operating Revenue [Member]",
        "documentation": "Total operating revenue."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_TotalRetailMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "TotalRetailMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Retail [Member]",
        "documentation": "Total retail operating revenue."
       }
      }
     },
     "auth_ref": []
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "TradingSymbol",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DocumentCover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Symbol",
        "documentation": "Trading symbol of an instrument as listed on an exchange."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfer of Certain Financial Assets Accounted for as Secured Borrowings [Table Text Block]",
        "terseLabel": "Schedule of Remaining Contractual Maturities for Chattel Paper Agreements",
        "documentation": "Tabular disclosure of the nature and risks of short-term collateralized financing obtained through repurchase agreements, securities lending transactions and repurchase-to-maturity transactions, accounted for as secured borrowings."
       }
      }
     },
     "auth_ref": [
      "r1349"
     ]
    },
    "us-gaap_TransfersAndServicingAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TransfersAndServicingAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfers and Servicing [Abstract]",
        "terseLabel": "Transfers and Servicing"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instruments [Domain]",
        "documentation": "Instrument or contract that imposes a contractual obligation to deliver cash or another financial instrument or to exchange other financial instruments on potentially unfavorable terms and conveys a contractual right to receive cash or another financial instrument or to exchange other financial instruments on potentially favorable terms."
       }
      }
     },
     "auth_ref": [
      "r435",
      "r436",
      "r437",
      "r438",
      "r439",
      "r440",
      "r441",
      "r442",
      "r443",
      "r444",
      "r445",
      "r446",
      "r447",
      "r448",
      "r449",
      "r450",
      "r451",
      "r452",
      "r453",
      "r454",
      "r455",
      "r456",
      "r457",
      "r458",
      "r459",
      "r460",
      "r461",
      "r462",
      "r463",
      "r464",
      "r556",
      "r573",
      "r776",
      "r870",
      "r871",
      "r872",
      "r873",
      "r874",
      "r875",
      "r876",
      "r877",
      "r878",
      "r879",
      "r880",
      "r881",
      "r882",
      "r883",
      "r887",
      "r889",
      "r890",
      "r891",
      "r892",
      "r893",
      "r894",
      "r895",
      "r896",
      "r897",
      "r898",
      "r899",
      "r900",
      "r901",
      "r902",
      "r903",
      "r947",
      "r1205",
      "r1206",
      "r1207",
      "r1208",
      "r1209",
      "r1210",
      "r1211",
      "r1252",
      "r1253",
      "r1254",
      "r1255"
     ]
    },
    "mgee_TransmissionInvestmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "TransmissionInvestmentMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Transmission investment member.",
        "label": "Transmission Investment [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_TransmissioncostsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "TransmissioncostsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transmission Costs [Member]",
        "documentation": "The current accounting treatment for transmission costs allows MGE to reflect any differential between transmission costs reflected in rates and actual costs incurred in its next rate filing"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_TwoCreeksMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "TwoCreeksMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Creeks [Member]",
        "documentation": "Two Creeks solar array located in Two Creeks, WI."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_TwoCreeksUnitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "TwoCreeksUnitsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Creeks Units [Member]",
        "documentation": "Two Creeks units."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_TwoPointFiveIndustrialReveueBondDue2023Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "TwoPointFiveIndustrialReveueBondDue2023Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Point Five Industrial Reveue Bond Due 2023 [Member]",
        "terseLabel": "2.05%, 2023 Series, Industrial Development Revenue Bonds"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_TwoPointFourEightPercentNotesDue2031Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "TwoPointFourEightPercentNotesDue2031Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2.48%, due 2031",
        "label": "Two Point Four Eight Percent Notes Due 2031 [Member]",
        "documentation": "Two Point Four Eight Percent Notes Due 2031 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_TwoPointNinteyFourPercentNoteDue2029Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "TwoPointNinteyFourPercentNoteDue2029Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Point Nintey Four Percent Note Due 2029 [Member]",
        "terseLabel": "2.94% due 2029"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_TwoPointSixThreePercentNotesDue2033Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "TwoPointSixThreePercentNotesDue2033Member",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2.63%, due 2033",
        "label": "Two Point Six Three Percent Notes Due 2033 [Member]",
        "documentation": "Two Point Six Three Percent Notes Due 2033 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TypeOfAdoptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TypeOfAdoptionMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update [Domain]",
        "documentation": "Amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r363",
      "r364",
      "r365",
      "r367",
      "r378",
      "r433",
      "r434",
      "r471",
      "r472",
      "r473",
      "r474",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r510",
      "r706",
      "r707",
      "r708",
      "r734",
      "r735",
      "r736",
      "r737",
      "r750",
      "r751",
      "r752",
      "r764",
      "r765",
      "r766",
      "r767",
      "r768",
      "r769",
      "r770",
      "r771",
      "r772",
      "r774",
      "r775",
      "r778",
      "r779",
      "r780",
      "r781",
      "r782",
      "r783",
      "r784",
      "r786",
      "r787",
      "r788",
      "r789",
      "r790",
      "r806",
      "r807",
      "r812",
      "r813",
      "r814",
      "r815",
      "r827",
      "r828",
      "r831",
      "r832",
      "r833",
      "r834",
      "r853",
      "r854",
      "r855",
      "r856",
      "r857",
      "r907",
      "r908",
      "r909",
      "r969",
      "r970",
      "r971",
      "r972",
      "r973",
      "r974",
      "r975",
      "r976",
      "r977",
      "r978",
      "r979",
      "r980"
     ]
    },
    "us-gaap_USTreasuryBillSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "USTreasuryBillSecuritiesMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "US Treasury Bill Securities [Member]",
        "documentation": "This category includes information about negotiable debt securities issued by the United States Department of the Treasury which generally have maturities of one year or less, are interest bearing, and are backed by the full faith and credit of the United States government."
       }
      }
     },
     "auth_ref": [
      "r1350"
     ]
    },
    "us-gaap_UnbilledReceivablesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnbilledReceivablesCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 4.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unbilled Receivables, Current",
        "terseLabel": "Unbilled revenues",
        "documentation": "Amount received for services rendered and products shipped, but not yet billed, for non-contractual agreements due within one year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_UnfundedPensionAndOtherPostretirementPlansCostsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "UnfundedPensionAndOtherPostretirementPlansCostsMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unfunded Pension and Other Postretirement Plans Costs [Member]",
        "documentation": "Regulatory asset or liability for unfunded pension and other postretirement liability",
        "terseLabel": "Unfunded Pension and Other Postretirement Liability [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_UnitedStatesEnvironmentalProtectionAgencyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "UnitedStatesEnvironmentalProtectionAgencyMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "EPA [Member]",
        "documentation": "Environmental Protection Agency [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_UniversityOfWisconsinMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "UniversityOfWisconsinMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "University of Wisconsin [Member]",
        "terseLabel": "UW [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UnrealizedGainLossOnDerivatives": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnrealizedGainLossOnDerivatives",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unrealized Gain (Loss) on Derivatives",
        "negatedLabel": "Unrealized gain",
        "terseLabel": "Unrealized loss (gain)",
        "documentation": "The net change in the difference between the fair value and the carrying value, or in the comparative fair values, of derivative instruments, including options, swaps, futures, and forward contracts, held at each balance sheet date, that was included in earnings for the period."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r1059",
      "r1060",
      "r1061",
      "r1062",
      "r1089"
     ]
    },
    "us-gaap_UnrecognizedTaxBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnrecognizedTaxBenefits",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unrecognized Tax Benefits",
        "periodStartLabel": "Unrecognized tax benefits, beginning balance",
        "periodEndLabel": "Unrecognized tax benefits, ending balance",
        "documentation": "Amount of unrecognized tax benefits."
       }
      }
     },
     "auth_ref": [
      "r715",
      "r723"
     ]
    },
    "mgee_UnrecognizedTaxBenefitsCurrentPeriodTaxPositionsPermanentDifferences": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "UnrecognizedTaxBenefitsCurrentPeriodTaxPositionsPermanentDifferences",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unrecognized Tax Benefits Current Period Tax Positions Permanent Differences",
        "terseLabel": "Unrecognized tax benefits permanent differences",
        "documentation": "The gross amount of permanent unrecognized tax benefits resulting from tax positions that have been or will be taken in the tax return for the current period, excluding amounts pertaining to examined tax returns."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_UnrecognizedTaxBenefitsDecreaseResultingFromInterestExpenseOnUncertainTaxPositions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "UnrecognizedTaxBenefitsDecreaseResultingFromInterestExpenseOnUncertainTaxPositions",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unrecognized Tax Benefits, Decrease Resulting from Interest Expense on Uncertain Tax Positions",
        "documentation": "Amount of decrease in unrecognized tax benefits resulting from interest expense on uncertain tax positions.",
        "negatedLabel": "Reduction in interest expense on uncertain tax positions"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UnrecognizedTaxBenefitsDecreasesResultingFromCurrentPeriodTaxPositions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnrecognizedTaxBenefitsDecreasesResultingFromCurrentPeriodTaxPositions",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unrecognized Tax Benefits, Decrease Resulting from Current Period Tax Positions",
        "negatedLabel": "Reductions based on tax positions related to the current year",
        "documentation": "Amount of decrease in unrecognized tax benefits resulting from tax positions that have been or will be taken in current period tax return."
       }
      }
     },
     "auth_ref": [
      "r103"
     ]
    },
    "us-gaap_UnrecognizedTaxBenefitsDecreasesResultingFromPriorPeriodTaxPositions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnrecognizedTaxBenefitsDecreasesResultingFromPriorPeriodTaxPositions",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Reductions based on tax positions related to prior years",
        "label": "Unrecognized Tax Benefits, Decrease Resulting from Prior Period Tax Positions",
        "documentation": "Amount of decrease in unrecognized tax benefits resulting from tax positions taken in prior period tax returns."
       }
      }
     },
     "auth_ref": [
      "r724"
     ]
    },
    "us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unrecognized Tax Benefits, Increase Resulting from Current Period Tax Positions",
        "terseLabel": "Additions based on tax positions related to current year",
        "documentation": "Amount of increase in unrecognized tax benefits resulting from tax positions that have been or will be taken in current period tax return."
       }
      }
     },
     "auth_ref": [
      "r725"
     ]
    },
    "us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromPriorPeriodTaxPositions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnrecognizedTaxBenefitsIncreasesResultingFromPriorPeriodTaxPositions",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unrecognized Tax Benefits, Increase Resulting from Prior Period Tax Positions",
        "terseLabel": "Additions based on tax positions related to prior year",
        "documentation": "Amount of increase in unrecognized tax benefits resulting from tax positions taken in prior period tax returns."
       }
      }
     },
     "auth_ref": [
      "r724"
     ]
    },
    "us-gaap_UnrecognizedTaxBenefitsInterestOnIncomeTaxesAccrued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnrecognizedTaxBenefitsInterestOnIncomeTaxesAccrued",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unrecognized Tax Benefits, Interest on Income Taxes Accrued",
        "periodStartLabel": "Accrued interest on unrecognized tax benefits, beginning balance",
        "periodEndLabel": "Accrued interest on unrecognized tax benefits, ending balance",
        "documentation": "Amount of interest expense accrued for an underpayment of income taxes."
       }
      }
     },
     "auth_ref": [
      "r1316"
     ]
    },
    "us-gaap_UnrecognizedTaxBenefitsInterestOnIncomeTaxesExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnrecognizedTaxBenefitsInterestOnIncomeTaxesExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unrecognized Tax Benefits, Interest on Income Taxes Expense",
        "terseLabel": "Interest expense on uncertain tax positions",
        "documentation": "Amount of interest expense for an underpayment of income taxes."
       }
      }
     },
     "auth_ref": [
      "r1316"
     ]
    },
    "us-gaap_UnregulatedOperationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnregulatedOperationMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unregulated Operation [Member]",
        "documentation": "Operation of entity not regulated by governmental or other regulatory organizations."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UseOfEstimates": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UseOfEstimates",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Use of Estimates, Policy [Policy Text Block]",
        "terseLabel": "Use of Estimates",
        "documentation": "Disclosure of accounting policy for the use of estimates in the preparation of financial statements in conformity with generally accepted accounting principles."
       }
      }
     },
     "auth_ref": [
      "r77",
      "r78",
      "r79",
      "r257",
      "r258",
      "r260",
      "r261"
     ]
    },
    "us-gaap_UtilitiesOperatingExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UtilitiesOperatingExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement": {
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": -1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total Operating Expenses",
        "label": "Utilities Operating Expense",
        "terseLabel": "Operating expenses",
        "documentation": "Amount of operating expense of regulated operation."
       }
      }
     },
     "auth_ref": [
      "r190"
     ]
    },
    "us-gaap_UtilitiesOperatingExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UtilitiesOperatingExpenseAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Utilities Operating Expense [Abstract]",
        "terseLabel": "Operating Expenses:"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_UtilitiesOperatingExpenseCostOfGasSold": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "UtilitiesOperatingExpenseCostOfGasSold",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_UtilitiesOperatingExpense",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Utilities Operating Expense, Cost of Gas Sold",
        "terseLabel": "Cost of gas sold",
        "documentation": "The cost of gas sold charged against earnings for the period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UtilitiesOperatingExpenseDepreciationAndAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UtilitiesOperatingExpenseDepreciationAndAmortization",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_UtilitiesOperatingExpense",
       "weight": 1.0,
       "order": 4.0
      },
      "http://www.mge.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Utilities Operating Expense, Depreciation and Amortization",
        "negatedLabel": "Depreciation and amortization",
        "terseLabel": "Depreciation and amortization",
        "documentation": "Amount of operating expense for depreciation and amortization of regulated operation."
       }
      }
     },
     "auth_ref": [
      "r190"
     ]
    },
    "us-gaap_UtilitiesOperatingExpenseFuelUsed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UtilitiesOperatingExpenseFuelUsed",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_UtilitiesOperatingExpense",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Utilities Operating Expense, Fuel Used",
        "terseLabel": "Fuel for electric generation",
        "documentation": "Amount of operating expense for fuel used by regulated operation."
       }
      }
     },
     "auth_ref": [
      "r190"
     ]
    },
    "us-gaap_UtilitiesOperatingExpenseMaintenanceAndOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UtilitiesOperatingExpenseMaintenanceAndOperations",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement": {
       "parentTag": "us-gaap_UtilitiesOperatingExpense",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_UtilitiesOperatingExpense",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Utilities Operating Expense, Maintenance and Operations, Total",
        "label": "Utilities Operating Expense, Maintenance and Operations",
        "terseLabel": "Other operations and maintenance",
        "documentation": "Amount of operating expense for routine plant maintenance, repairs and operations of regulated operation."
       }
      }
     },
     "auth_ref": [
      "r190"
     ]
    },
    "us-gaap_UtilitiesOperatingExpensePurchasedPower": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UtilitiesOperatingExpensePurchasedPower",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_UtilitiesOperatingExpense",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Utilities Operating Expense, Purchased Power",
        "terseLabel": "Purchased power",
        "documentation": "Amount of operating expense for purchased power of regulated operation."
       }
      }
     },
     "auth_ref": [
      "r190"
     ]
    },
    "us-gaap_UtilitiesOperatingExpenseTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UtilitiesOperatingExpenseTaxes",
     "crdr": "debit",
     "calculation": {
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_UtilitiesOperatingExpense",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Utilities Operating Expense, Taxes",
        "terseLabel": "Income tax provision",
        "verboseLabel": "Other general taxes",
        "documentation": "Amount of operating expense for taxes other than income taxes of regulated operation."
       }
      }
     },
     "auth_ref": [
      "r190"
     ]
    },
    "mgee_UtilityPlantNumberofOperatingTurbines": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "UtilityPlantNumberofOperatingTurbines",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Saratoga Turbines",
        "terseLabel": "Saratoga Turbines",
        "documentation": "The total operating turbines on the Saratoga windfarm."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_UtilityPlantPlantCapacity": {
     "xbrltype": "powerItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "UtilityPlantPlantCapacity",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Saratoga Megawatts",
        "terseLabel": "Saratoga Capacity (MW)",
        "documentation": "The total operating capacity of the utility plant."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UtilityRevenueAndExpenseRecognitionPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UtilityRevenueAndExpenseRecognitionPolicy",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Utility, Revenue and Expense Recognition, Policy [Policy Text Block]",
        "terseLabel": "Utility Cost Recovery",
        "documentation": "Disclosure of accounting policies and anticipated effects of regulatory rulings and on rate-setting regarding revenues and expenses incurred and recovered, including billed and unbilled revenues, revenues collected subject to refund, taxes collected from customers and remitted to governmental authorities, and postretirement benefits."
       }
      }
     },
     "auth_ref": [
      "r154"
     ]
    },
    "us-gaap_ValuationAllowancesAndReservesAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ValuationAllowancesAndReservesAdjustments",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Regulatory assets",
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves, Increase (Decrease) Adjustment",
        "documentation": "Amount of increase (decrease) in valuation and qualifying accounts and reserves from adjustment."
       }
      }
     },
     "auth_ref": [
      "r1238"
     ]
    },
    "us-gaap_ValuationAllowancesAndReservesBalance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ValuationAllowancesAndReservesBalance",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Balance at end of period",
        "periodStartLabel": "Balance at beginning of period",
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves, Amount",
        "documentation": "Amount of valuation and qualifying accounts and reserves."
       }
      }
     },
     "auth_ref": [
      "r351",
      "r355"
     ]
    },
    "us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ValuationAllowancesAndReservesChargedToCostAndExpense",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Charged to costs and expenses",
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense",
        "documentation": "Amount of increase in valuation and qualifying accounts and reserves from charge to cost and expense."
       }
      }
     },
     "auth_ref": [
      "r352"
     ]
    },
    "us-gaap_ValuationAllowancesAndReservesChargedToOtherAccounts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ValuationAllowancesAndReservesChargedToOtherAccounts",
     "crdr": "credit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Charged to other accounts",
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Other Account",
        "documentation": "Amount of increase in valuation and qualifying accounts and reserves from charge to accounts other than cost and expense."
       }
      }
     },
     "auth_ref": [
      "r353"
     ]
    },
    "us-gaap_ValuationAllowancesAndReservesDeductions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ValuationAllowancesAndReservesDeductions",
     "crdr": "debit",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net accounts written off",
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction",
        "documentation": "Amount of decrease in valuation and qualifying accounts and reserves."
       }
      }
     },
     "auth_ref": [
      "r354"
     ]
    },
    "srt_ValuationAndQualifyingAccountsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ValuationAndQualifyingAccountsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "SEC Schedule, 12-09, Valuation and Qualifying Accounts [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_VariableInterestEntitiesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "VariableInterestEntitiesDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable Interest Entities Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_VariableInterestEntitiesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "VariableInterestEntitiesDisclosureTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of variable interest entities (VIE), including, but not limited to the nature, purpose, size, and activities of the VIE, the carrying amount and classification of consolidated assets that are collateral for the VIE's obligations, lack of recourse if creditors (or beneficial interest holders) of a consolidated VIE have no recourse to the general credit of the primary beneficiary. An enterprise that holds a significant variable interest in a VIE but is not the primary beneficiary may disclose the nature of its involvement with the VIE and when that involvement began, the nature, purpose, size, and activities of the VIE and the enterprise's maximum exposure to loss as a result of its involvement with the VIE.",
        "label": "Variable Interest Entities Disclosure [Text Block]",
        "terseLabel": "Variable Interest Entities"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_VariableInterestEntitiesOtherAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "VariableInterestEntitiesOtherAbstract",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable Interest Entities. Other [Abstract]",
        "terseLabel": "Other Variable Interest Entities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_VariableInterestEntityLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "VariableInterestEntityLineItems",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails",
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable Interest Entity [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r754",
      "r755",
      "r758",
      "r759",
      "r884",
      "r885",
      "r886"
     ]
    },
    "mgee_VariableInterestEntityNumberOfEntitiesOther": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "VariableInterestEntityNumberOfEntitiesOther",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable Interest Entity, Number of Entities, Other",
        "documentation": "Number of variable interest entities not otherwise specifically disclosed.",
        "terseLabel": "Number of other variable interest entities"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_VariableInterestEntityPurchasePowerAgreementPlantCapacityOther": {
     "xbrltype": "powerItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "VariableInterestEntityPurchasePowerAgreementPlantCapacityOther",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable Interest Entity, Purchase Power Agreement, Plant Capacity, Other",
        "documentation": "Amount of power being purchased from other varaible interest entities.",
        "terseLabel": "Other variable interest entities, purchase power agreement, plant capacity (in MW)"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_VentureDebtFundMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "VentureDebtFundMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Venture Debt Fund [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_WeightedAverageAndDiscountRateTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "WeightedAverageAndDiscountRateTableTextBlock",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_LeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average And Discount Rate [Table Text Block]",
        "terseLabel": "Weighted Average And Discount Rate",
        "documentation": "Tabular disclosure of weigted average remaining lease terms and discount rates."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_WeightedAverageEstimatedPayoutPercentBasedOnPerformanceCriteria": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "WeightedAverageEstimatedPayoutPercentBasedOnPerformanceCriteria",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average estimated payout percent based on performance criteria",
        "documentation": "Weighted average estimated payout percent based on performance criteria"
       }
      }
     },
     "auth_ref": []
    },
    "srt_WeightedAverageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "WeightedAverageMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average [Member]",
        "documentation": "Average of a range of values, calculated with consideration of proportional relevance."
       }
      }
     },
     "auth_ref": [
      "r1108",
      "r1109",
      "r1343",
      "r1345",
      "r1348"
     ]
    },
    "us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WeightedAverageNumberDilutedSharesOutstandingAdjustment",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommonEquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Weighted Average Number of Shares Outstanding, Diluted, Adjustment, Total",
        "label": "Weighted Average Number of Shares Outstanding, Diluted, Adjustment",
        "terseLabel": "Dilutive securities",
        "documentation": "The sum of dilutive potential common shares or units used in the calculation of the diluted per-share or per-unit computation."
       }
      }
     },
     "auth_ref": [
      "r1245"
     ]
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average Number of Shares Outstanding, Diluted",
        "totalLabel": "Weighted Average Number of Shares Outstanding, Diluted, Total",
        "terseLabel": "Weighted Average Shares Outstanding, Diluted",
        "verboseLabel": "Dilutive Securities",
        "documentation": "The average number of shares or units issued and outstanding that are used in calculating diluted EPS or earnings per unit (EPU), determined based on the timing of issuance of shares or units in the period."
       }
      }
     },
     "auth_ref": [
      "r381",
      "r386"
     ]
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average Number of Shares Outstanding, Basic",
        "totalLabel": "Weighted Average Number of Shares Outstanding, Basic, Total",
        "terseLabel": "Weighted Average Shares Outstanding, Basic",
        "documentation": "Number of [basic] shares or units, after adjustment for contingently issuable shares or units and other shares or units not deemed outstanding, determined by relating the portion of time within a reporting period that common shares or units have been outstanding to the total time in that period."
       }
      }
     },
     "auth_ref": [
      "r380",
      "r386"
     ]
    },
    "mgee_WestCampusMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "WestCampusMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "West Campus Cogeneration Facility.",
        "label": "West Campus [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mgee_WestRiversideEnergyCenterMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "WestRiversideEnergyCenterMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "West Riverside Energy Center [Member]",
        "documentation": "West Riverside Energy Center is a natural gas-fired facility located in Beloit, WI. MGE has a 3.4% ownership interest in West Riverside for a total of 25 MW."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_WindGenerationSourceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "WindGenerationSourceMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Wind Generation Source [Member]",
        "documentation": "Wind as a renewable energy generation source."
       }
      }
     },
     "auth_ref": []
    },
    "mgee_WisconsinEnergyEfficiencyAndRenewablesActMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mge.com/20231231",
     "localname": "WisconsinEnergyEfficiencyAndRenewablesActMember",
     "presentation": [
      "http://www.mge.com/20231231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Wisconsin Energy Efficiency and Renewables Act [Member]"
       }
      }
     },
     "auth_ref": []
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "05",
   "Paragraph": "1",
   "SubTopic": "10",
   "Topic": "980",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482115/980-10-05-1"
  },
  "r1": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "05",
   "Paragraph": "4",
   "SubTopic": "10",
   "Topic": "360",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482338/360-10-05-4"
  },
  "r2": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "5",
   "SubTopic": "10",
   "Topic": "360",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482251/360-10-25-5"
  },
  "r3": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "6",
   "SubTopic": "50",
   "Topic": "350",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482610/350-50-25-6"
  },
  "r4": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "30",
   "Paragraph": "1",
   "SubTopic": "40",
   "Topic": "350",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482633/350-40-30-1"
  },
  "r5": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "SubTopic": "230",
   "Topic": "830",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481877/830-230-45-1"
  },
  "r6": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-10A"
  },
  "r7": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-12"
  },
  "r8": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "14",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-14"
  },
  "r9": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "15",
   "Subparagraph": "(g)",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-15"
  },
  "r10": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "SubTopic": "405",
   "Topic": "942",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481071/942-405-45-2"
  },
  "r11": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "21D",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-21D"
  },
  "r12": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(g)",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-25"
  },
  "r13": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-28"
  },
  "r14": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-28"
  },
  "r15": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "SubTopic": "10",
   "Topic": "815",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480463/815-10-45-5"
  },
  "r16": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "10",
   "Topic": "360",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-1"
  },
  "r17": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "10",
   "Topic": "470",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481544/470-10-50-1"
  },
  "r18": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "10",
   "Topic": "505",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-1"
  },
  "r19": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "10",
   "Topic": "718",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-1"
  },
  "r20": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "10",
   "Topic": "825",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-1"
  },
  "r21": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "20",
   "Topic": "715",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r22": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "SubTopic": "20",
   "Topic": "985",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481283/985-20-50-1"
  },
  "r23": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(e)",
   "SubTopic": "10",
   "Topic": "740",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-15"
  },
  "r24": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "19",
   "SubTopic": "10",
   "Topic": "740",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-19"
  },
  "r25": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(c)(2)",
   "SubTopic": "10",
   "Topic": "810",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A"
  },
  "r26": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(c),(3)",
   "SubTopic": "10",
   "Topic": "810",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A"
  },
  "r27": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "SubTopic": "10",
   "Topic": "505",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-2"
  },
  "r28": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "SubTopic": "10",
   "Topic": "815",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-2"
  },
  "r29": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)",
   "SubTopic": "10",
   "Topic": "820",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r30": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "SubTopic": "10",
   "Topic": "820",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r31": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(3)",
   "SubTopic": "10",
   "Topic": "718",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r32": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "820",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-3"
  },
  "r33": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "SubTopic": "20",
   "Topic": "210",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483466/210-20-50-3"
  },
  "r34": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(c)(2)",
   "SubTopic": "20",
   "Topic": "860",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4D"
  },
  "r35": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "820",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-6A"
  },
  "r36": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Subparagraph": "(a)(b)(c)",
   "Paragraph": "1",
   "SubTopic": "20",
   "Topic": "715",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r37": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "13",
   "SubTopic": "20",
   "Topic": "210",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-13"
  },
  "r38": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "15",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482739/220-10-55-15"
  },
  "r39": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "8",
   "SubTopic": "20",
   "Topic": "210",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-8"
  },
  "r40": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "60",
   "Paragraph": "1",
   "SubTopic": "10",
   "Topic": "820",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482053/820-10-60-1"
  },
  "r41": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(22))",
   "SubTopic": "10",
   "Topic": "210",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r42": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SAB TOPIC 4.C)",
   "SubTopic": "10",
   "Topic": "505",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480008/505-10-S99-4"
  },
  "r43": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.19(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r44": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.19(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r45": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.19(b),22(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r46": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.19)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r47": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.20)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r48": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.21)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r49": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.22(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r50": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.22)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r51": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.24)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r52": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.25)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r53": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.26(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r54": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.29)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r55": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.29-31)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r56": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.31)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r57": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "220",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-14A"
  },
  "r58": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "13",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-13"
  },
  "r59": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-14"
  },
  "r60": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "14",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-14"
  },
  "r61": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "15",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-15"
  },
  "r62": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "15",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-15"
  },
  "r63": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-25"
  },
  "r64": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-4"
  },
  "r65": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-1"
  },
  "r66": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-2"
  },
  "r67": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-3"
  },
  "r68": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-4"
  },
  "r69": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-5"
  },
  "r70": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "250",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r71": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "250",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-3"
  },
  "r72": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "270",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482989/270-10-45-12"
  },
  "r73": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "270",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482989/270-10-45-13"
  },
  "r74": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-18"
  },
  "r75": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-18"
  },
  "r76": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "20",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-20"
  },
  "r77": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-4"
  },
  "r78": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-8"
  },
  "r79": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-9"
  },
  "r80": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "280",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "22",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r81": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "280",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "25",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-25"
  },
  "r82": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "280",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "30",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30"
  },
  "r83": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "320",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//320/tableOfContent"
  },
  "r84": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r85": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "360",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482130/360-10-45-4"
  },
  "r86": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "360",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-1"
  },
  "r87": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "470",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481544/470-10-50-5"
  },
  "r88": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "480",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(CFRR 211.02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480244/480-10-S99-1"
  },
  "r89": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481142/505-10-45-2"
  },
  "r90": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-10"
  },
  "r91": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-3"
  },
  "r92": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-4"
  },
  "r93": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-5"
  },
  "r94": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-8"
  },
  "r95": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480008/505-10-S99-1"
  },
  "r96": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "715",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r97": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "715",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-2"
  },
  "r98": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "715",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-3"
  },
  "r99": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "715",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-4"
  },
  "r100": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "715",
   "SubTopic": "20",
   "Section": "55",
   "Paragraph": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480482/715-20-55-17"
  },
  "r101": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "718",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r102": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "740",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482525/740-10-45-6"
  },
  "r103": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "740",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "15A",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-15A"
  },
  "r104": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "740",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2"
  },
  "r105": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "740",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-3"
  },
  "r106": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "740",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-3"
  },
  "r107": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "740",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-8"
  },
  "r108": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "740",
   "SubTopic": "10",
   "Section": "55",
   "Paragraph": "217",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482663/740-10-55-217"
  },
  "r109": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-15"
  },
  "r110": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "16",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-16"
  },
  "r111": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1"
  },
  "r112": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A"
  },
  "r113": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-3"
  },
  "r114": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-4"
  },
  "r115": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-5A"
  },
  "r116": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-6"
  },
  "r117": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-9"
  },
  "r118": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "55",
   "Paragraph": "4I",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481175/810-10-55-4I"
  },
  "r119": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "55",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481175/810-10-55-4J"
  },
  "r120": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-1"
  },
  "r121": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-1A"
  },
  "r122": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-1A"
  },
  "r123": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-2"
  },
  "r124": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4"
  },
  "r125": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4A"
  },
  "r126": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4A"
  },
  "r127": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4B"
  },
  "r128": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(a),(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4B"
  },
  "r129": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4B"
  },
  "r130": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4B"
  },
  "r131": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4C"
  },
  "r132": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4D"
  },
  "r133": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4H",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4H"
  },
  "r134": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4H",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4H"
  },
  "r135": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-7"
  },
  "r136": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-8"
  },
  "r137": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "55",
   "Paragraph": "182",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480401/815-10-55-182"
  },
  "r138": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "25",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480238/815-25-50-1"
  },
  "r139": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "820",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r140": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "820",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r141": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "820",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-3"
  },
  "r142": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "825",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-11"
  },
  "r143": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "825",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-12"
  },
  "r144": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "825",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "20",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-20"
  },
  "r145": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "825",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-21"
  },
  "r146": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482925/835-30-45-1A"
  },
  "r147": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482925/835-30-45-2"
  },
  "r148": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482925/835-30-45-3"
  },
  "r149": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "30",
   "Section": "55",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482949/835-30-55-8"
  },
  "r150": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "850",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r151": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "850",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-3"
  },
  "r152": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.17)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r153": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "470",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480848/942-470-50-3"
  },
  "r154": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "980",
   "SubTopic": "10",
   "Section": "05",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482115/980-10-05-3"
  },
  "r155": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "980",
   "SubTopic": "20",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481834/980-20-45-1"
  },
  "r156": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "980",
   "SubTopic": "340",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481878/980-340-50-2"
  },
  "r157": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "980",
   "SubTopic": "340",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481878/980-340-50-3"
  },
  "r158": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "980",
   "SubTopic": "360",
   "Section": "25",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481711/980-360-25-1"
  },
  "r159": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "980",
   "SubTopic": "360",
   "Section": "35",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481680/980-360-35-3"
  },
  "r160": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "980",
   "SubTopic": "360",
   "Section": "35",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481680/980-360-35-9"
  },
  "r161": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "980",
   "SubTopic": "360",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB TOPIC 10.C)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479960/980-360-S99-1"
  },
  "r162": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "980",
   "SubTopic": "605",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482040/980-605-50-1"
  },
  "r163": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "980",
   "SubTopic": "715",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481691/980-715-50-1"
  },
  "r164": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "980",
   "SubTopic": "835",
   "Section": "25",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481668/980-835-25-1"
  },
  "r165": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "980",
   "SubTopic": "835",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482064/980-835-45-1"
  },
  "r166": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 201.5-02(24))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r167": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 201.5-02(25))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r168": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 201.5-02(26))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r169": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(19)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r170": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(19)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r171": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(19))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r172": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(20))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r173": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(23))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r174": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(24))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r175": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(26)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r176": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(26)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r177": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(28))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r178": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(29))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r179": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(30)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r180": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(30)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r181": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(30))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r182": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(31))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r183": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(32))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r184": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483466/210-20-50-3"
  },
  "r185": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483466/210-20-50-4"
  },
  "r186": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-7"
  },
  "r187": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(12))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r188": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(20))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r189": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03.19)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r190": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03.2(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r191": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03.2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r192": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03.7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r193": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03.9)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r194": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-12"
  },
  "r195": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "13",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-13"
  },
  "r196": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-24"
  },
  "r197": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-25"
  },
  "r198": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-28"
  },
  "r199": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "235",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//235/tableOfContent"
  },
  "r200": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "270",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//270/tableOfContent"
  },
  "r201": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SAB Topic 4.E)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480418/310-10-S99-2"
  },
  "r202": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//360/tableOfContent"
  },
  "r203": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "15",
   "Paragraph": "4",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482309/360-10-15-4"
  },
  "r204": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-1"
  },
  "r205": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-2"
  },
  "r206": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SAB Topic 5.CC)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480091/360-10-S99-2"
  },
  "r207": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "440",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//440/tableOfContent"
  },
  "r208": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "460",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//460/tableOfContent"
  },
  "r209": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "470",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//470/tableOfContent"
  },
  "r210": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//505/tableOfContent"
  },
  "r211": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-6"
  },
  "r212": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-7"
  },
  "r213": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.3-04)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480008/505-10-S99-1"
  },
  "r214": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "715",
   "SubTopic": "20",
   "Subparagraph": "(d)(5)",
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r215": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "715",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r216": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "715",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r217": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-12"
  },
  "r218": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2"
  },
  "r219": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9"
  },
  "r220": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-15"
  },
  "r221": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-15"
  },
  "r222": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-15A"
  },
  "r223": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 6.I.7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r224": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "810",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//810/tableOfContent"
  },
  "r225": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "23",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-23"
  },
  "r226": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A"
  },
  "r227": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "815",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//815/tableOfContent"
  },
  "r228": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r229": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r230": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(1)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r231": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r232": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r233": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(13)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r234": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(13))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r235": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(15)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r236": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(15)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r237": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(16))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r238": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r239": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(23))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r240": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(13)(f))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r241": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r242": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04.10)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r243": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "980",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//980/tableOfContent"
  },
  "r244": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "980",
   "SubTopic": "340",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482000/980-340-25-1"
  },
  "r245": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "980",
   "SubTopic": "340",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481878/980-340-50-1"
  },
  "r246": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "980",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 10.C)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479960/980-360-S99-1"
  },
  "r247": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "980",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SAB Topic 10.E)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479960/980-360-S99-2"
  },
  "r248": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "980",
   "SubTopic": "405",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481854/980-405-25-1"
  },
  "r249": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "980",
   "SubTopic": "410",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481689/980-410-25-2"
  },
  "r250": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "980",
   "SubTopic": "740",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481974/980-740-25-1"
  },
  "r251": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "980",
   "SubTopic": "740",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481974/980-740-25-2"
  },
  "r252": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "985",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481283/985-20-50-2"
  },
  "r253": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-28"
  },
  "r254": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "840",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481501/840-20-50-2"
  },
  "r255": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "SubTopic": "20",
   "Topic": "740",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482659/740-20-45-2"
  },
  "r256": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "270",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482989/270-10-45-6"
  },
  "r257": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "275",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-1"
  },
  "r258": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "SubTopic": "10",
   "Topic": "275",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-1"
  },
  "r259": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "SubTopic": "360",
   "Topic": "958",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480321/958-360-50-1"
  },
  "r260": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "SubTopic": "10",
   "Topic": "275",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-11"
  },
  "r261": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "SubTopic": "10",
   "Topic": "275",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-12"
  },
  "r262": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "SubTopic": "20",
   "Topic": "410",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481850/410-20-50-2"
  },
  "r263": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "SubTopic": "360",
   "Topic": "958",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480321/958-360-50-6"
  },
  "r264": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "SubTopic": "360",
   "Topic": "958",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480321/958-360-50-7"
  },
  "r265": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "740",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9"
  },
  "r266": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(d)(1)",
   "SubTopic": "20",
   "Topic": "310",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481925/310-20-65-2"
  },
  "r267": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(d)(2)",
   "SubTopic": "20",
   "Topic": "310",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481925/310-20-65-2"
  },
  "r268": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(h))",
   "SubTopic": "10",
   "Topic": "235",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r269": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.22(a)(2))",
   "SubTopic": "10",
   "Topic": "210",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r270": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//250/tableOfContent"
  },
  "r271": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Topic": "606",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//606/tableOfContent"
  },
  "r272": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(a)",
   "Publisher": "SEC"
  },
  "r273": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(b)",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r274": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "04",
   "Paragraph": "(a)",
   "Publisher": "SEC"
  },
  "r275": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "04",
   "Paragraph": "a",
   "Publisher": "SEC"
  },
  "r276": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "09",
   "Publisher": "SEC"
  },
  "r277": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Footnote": "4",
   "Publisher": "SEC"
  },
  "r278": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "(a)",
   "Subparagraph": "(4)(i)",
   "Publisher": "SEC"
  },
  "r279": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "(a)",
   "Subparagraph": "(4)(iii)(A)",
   "Publisher": "SEC"
  },
  "r280": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "(a)",
   "Subparagraph": "(4)(iii)(B)",
   "Publisher": "SEC"
  },
  "r281": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "(a)",
   "Subparagraph": "(4)(iv)",
   "Publisher": "SEC"
  },
  "r282": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "02",
   "Paragraph": "(a)",
   "Subparagraph": "(4)(i)",
   "Publisher": "SEC"
  },
  "r283": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "02",
   "Paragraph": "(a)",
   "Subparagraph": "(4)(iii)(A)",
   "Publisher": "SEC"
  },
  "r284": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "02",
   "Paragraph": "(a)",
   "Subparagraph": "(4)(iii)(B)",
   "Publisher": "SEC"
  },
  "r285": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "02",
   "Paragraph": "(a)",
   "Subparagraph": "(4)(iii)(C)",
   "Publisher": "SEC"
  },
  "r286": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "02",
   "Paragraph": "(a)",
   "Subparagraph": "(4)(iv)",
   "Publisher": "SEC"
  },
  "r287": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "4",
   "Subsection": "08",
   "Paragraph": "(m)",
   "Subparagraph": "(1)(iii)",
   "Publisher": "SEC"
  },
  "r288": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479343/105-10-65-6"
  },
  "r289": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479343/105-10-65-6"
  },
  "r290": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479343/105-10-65-6"
  },
  "r291": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479343/105-10-65-6"
  },
  "r292": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479343/105-10-65-6"
  },
  "r293": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479343/105-10-65-6"
  },
  "r294": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.5-04(Schedule I))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480922/205-10-S99-6"
  },
  "r295": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-1"
  },
  "r296": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-7"
  },
  "r297": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483467/210-10-45-1"
  },
  "r298": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483467/210-10-45-5"
  },
  "r299": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483489/210-10-50-1"
  },
  "r300": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r301": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(14))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r302": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r303": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(18))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r304": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r305": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(20))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r306": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r307": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(27)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r308": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(28))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r309": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(29))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r310": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(3)(a)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r311": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r312": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(6)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r313": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r314": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r315": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483466/210-20-50-3"
  },
  "r316": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483466/210-20-50-3"
  },
  "r317": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483466/210-20-50-3"
  },
  "r318": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483466/210-20-50-4"
  },
  "r319": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-10"
  },
  "r320": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-10A"
  },
  "r321": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-1A"
  },
  "r322": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-1A"
  },
  "r323": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-1B"
  },
  "r324": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-1B"
  },
  "r325": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-1"
  },
  "r326": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-4"
  },
  "r327": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-5"
  },
  "r328": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-6"
  },
  "r329": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r330": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(21))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r331": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(25))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r332": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r333": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "14",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-14"
  },
  "r334": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "17",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-17"
  },
  "r335": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-2"
  },
  "r336": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-24"
  },
  "r337": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-25"
  },
  "r338": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-2"
  },
  "r339": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-8"
  },
  "r340": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483426/235-10-50-1"
  },
  "r341": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(e)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r342": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r343": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(h)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r344": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(h)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r345": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r346": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(m)(1)(iii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r347": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(m)(2)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r348": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(n))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r349": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-04(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-3"
  },
  "r350": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-04(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-3"
  },
  "r351": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SX 210.12-09(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-4"
  },
  "r352": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SX 210.12-09(Column C)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-4"
  },
  "r353": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SX 210.12-09(Column C)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-4"
  },
  "r354": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SX 210.12-09(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-4"
  },
  "r355": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SX 210.12-09(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-4"
  },
  "r356": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SX 210.12-09)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-4"
  },
  "r357": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "23",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-23"
  },
  "r358": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-24"
  },
  "r359": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-5"
  },
  "r360": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-6"
  },
  "r361": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r362": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r363": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r364": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r365": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r366": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r367": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r368": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-11"
  },
  "r369": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-11"
  },
  "r370": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-12"
  },
  "r371": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-3"
  },
  "r372": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-4"
  },
  "r373": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-7"
  },
  "r374": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-7"
  },
  "r375": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-7"
  },
  "r376": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-8"
  },
  "r377": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-9"
  },
  "r378": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SAB Topic 11.M.Q2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480530/250-10-S99-5"
  },
  "r379": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480530/250-10-S99-6"
  },
  "r380": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-10"
  },
  "r381": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "16",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-16"
  },
  "r382": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-2"
  },
  "r383": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "60B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-60B"
  },
  "r384": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "60B",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-60B"
  },
  "r385": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-7"
  },
  "r386": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482662/260-10-50-1"
  },
  "r387": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482635/260-10-55-15"
  },
  "r388": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "270",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482964/270-10-50-1B"
  },
  "r389": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "272",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483014/272-10-45-1"
  },
  "r390": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "272",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482987/272-10-50-1"
  },
  "r391": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//280/tableOfContent"
  },
  "r392": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-15"
  },
  "r393": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-21"
  },
  "r394": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-21"
  },
  "r395": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r396": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r397": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r398": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r399": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r400": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r401": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r402": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r403": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r404": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(j)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r405": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "25",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-25"
  },
  "r406": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "25",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-25"
  },
  "r407": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "26",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-26"
  },
  "r408": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-29"
  },
  "r409": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-29"
  },
  "r410": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-29"
  },
  "r411": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-29"
  },
  "r412": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-29"
  },
  "r413": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-29"
  },
  "r414": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30"
  },
  "r415": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30"
  },
  "r416": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30"
  },
  "r417": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30"
  },
  "r418": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "31",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-31"
  },
  "r419": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r420": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r421": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r422": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r423": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r424": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r425": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "34",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-34"
  },
  "r426": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "40",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-40"
  },
  "r427": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "41",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-41"
  },
  "r428": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "41",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-41"
  },
  "r429": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "42",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-42"
  },
  "r430": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481990/310-10-45-2"
  },
  "r431": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481990/310-10-45-9"
  },
  "r432": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-4"
  },
  "r433": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481925/310-20-65-2"
  },
  "r434": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481925/310-20-65-2"
  },
  "r435": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2"
  },
  "r436": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2"
  },
  "r437": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(aa)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2"
  },
  "r438": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(aaa)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2"
  },
  "r439": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2"
  },
  "r440": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2"
  },
  "r441": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2"
  },
  "r442": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-3"
  },
  "r443": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-3"
  },
  "r444": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-3"
  },
  "r445": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-3"
  },
  "r446": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-3"
  },
  "r447": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5"
  },
  "r448": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5"
  },
  "r449": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(aaa)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5"
  },
  "r450": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5"
  },
  "r451": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5"
  },
  "r452": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5"
  },
  "r453": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5"
  },
  "r454": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5"
  },
  "r455": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5"
  },
  "r456": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5"
  },
  "r457": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5A"
  },
  "r458": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5A"
  },
  "r459": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5A",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5A"
  },
  "r460": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5B"
  },
  "r461": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5B"
  },
  "r462": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5B"
  },
  "r463": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5B",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5B"
  },
  "r464": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5B",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5B"
  },
  "r465": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481664/323-10-45-1"
  },
  "r466": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3"
  },
  "r467": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3"
  },
  "r468": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3"
  },
  "r469": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3"
  },
  "r470": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3"
  },
  "r471": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r472": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r473": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r474": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r475": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(e)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r476": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r477": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r478": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(e)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r479": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-5"
  },
  "r480": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-5"
  },
  "r481": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-5"
  },
  "r482": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-5"
  },
  "r483": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479344/326-20-45-1"
  },
  "r484": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-11"
  },
  "r485": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-13"
  },
  "r486": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-13"
  },
  "r487": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-13"
  },
  "r488": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-13"
  },
  "r489": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-13"
  },
  "r490": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-14"
  },
  "r491": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "16",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-16"
  },
  "r492": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-5"
  },
  "r493": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479106/326-30-50-4"
  },
  "r494": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479106/326-30-50-7"
  },
  "r495": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479106/326-30-50-9"
  },
  "r496": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "330",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//330/tableOfContent"
  },
  "r497": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "330",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483080/330-10-50-1"
  },
  "r498": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "330",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483080/330-10-50-4"
  },
  "r499": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r500": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r501": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r502": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r503": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r504": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r505": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r506": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r507": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r508": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-3"
  },
  "r509": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-3"
  },
  "r510": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "405",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147477123/405-50-65-1"
  },
  "r511": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "410",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//410-20/tableOfContent"
  },
  "r512": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "410",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481999/410-20-25-4"
  },
  "r513": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "410",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481879/410-20-45-1"
  },
  "r514": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "410",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481850/410-20-50-1"
  },
  "r515": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "410",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481850/410-20-50-1"
  },
  "r516": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "410",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481850/410-20-50-1"
  },
  "r517": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "410",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481850/410-20-50-1"
  },
  "r518": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "410",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481850/410-20-50-1"
  },
  "r519": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "410",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481850/410-20-50-1"
  },
  "r520": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "420",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482017/420-10-50-1"
  },
  "r521": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "420",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482017/420-10-50-1"
  },
  "r522": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "420",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SAB Topic 5.P.4(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479823/420-10-S99-2"
  },
  "r523": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-4"
  },
  "r524": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-9"
  },
  "r525": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 5.Y.Q2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480102/450-20-S99-1"
  },
  "r526": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 5.Y.Q4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480102/450-20-S99-1"
  },
  "r527": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r528": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii)(A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r529": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii)(B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r530": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(iv))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r531": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r532": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B"
  },
  "r533": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(A)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B"
  },
  "r534": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B"
  },
  "r535": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(B)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B"
  },
  "r536": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B"
  },
  "r537": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B"
  },
  "r538": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(iv))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B"
  },
  "r539": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B"
  },
  "r540": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r541": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r542": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r543": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r544": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r545": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r546": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1D",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1D"
  },
  "r547": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1D",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1D"
  },
  "r548": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1D",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1D"
  },
  "r549": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1E",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1E"
  },
  "r550": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1E",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1E"
  },
  "r551": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1E",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1E"
  },
  "r552": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1F",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1F"
  },
  "r553": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1F",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1F"
  },
  "r554": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1F",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1F"
  },
  "r555": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1F",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1F"
  },
  "r556": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1I",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1I"
  },
  "r557": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-4"
  },
  "r558": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-4"
  },
  "r559": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-4"
  },
  "r560": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13"
  },
  "r561": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13"
  },
  "r562": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13"
  },
  "r563": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13"
  },
  "r564": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13"
  },
  "r565": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13"
  },
  "r566": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13"
  },
  "r567": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "14",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-14"
  },
  "r568": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "14",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-14"
  },
  "r569": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "14",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-14"
  },
  "r570": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "16",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-16"
  },
  "r571": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-18"
  },
  "r572": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-18"
  },
  "r573": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-18"
  },
  "r574": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-18"
  },
  "r575": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-2"
  },
  "r576": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.3-04)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480008/505-10-S99-1"
  },
  "r577": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-10"
  },
  "r578": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-12"
  },
  "r579": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-12"
  },
  "r580": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-12"
  },
  "r581": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-12"
  },
  "r582": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-12"
  },
  "r583": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-13"
  },
  "r584": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-15"
  },
  "r585": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-4"
  },
  "r586": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-5"
  },
  "r587": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-9"
  },
  "r588": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//715/tableOfContent"
  },
  "r589": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480535/715-20-45-2"
  },
  "r590": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480535/715-20-45-3"
  },
  "r591": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480535/715-20-45-3A"
  },
  "r592": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r593": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r594": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(10)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r595": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r596": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r597": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r598": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r599": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r600": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r601": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(8)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r602": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(9)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r603": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r604": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r605": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r606": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r607": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r608": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r609": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r610": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r611": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(8)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r612": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r613": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r614": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r615": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r616": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r617": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r618": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(02)(A)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r619": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(02)(B)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r620": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(02)(C)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r621": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r622": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r623": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r624": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r625": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r626": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r627": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r628": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r629": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r630": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r631": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r632": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r633": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r634": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(j)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r635": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(k)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r636": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(k)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r637": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(k)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r638": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(k)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r639": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(k)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r640": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(l)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r641": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(n)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r642": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(o)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r643": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(p)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r644": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(q)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r645": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(r)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r646": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(r)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r647": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-2"
  },
  "r648": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-3"
  },
  "r649": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-3"
  },
  "r650": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r651": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r652": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r653": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r654": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r655": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r656": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r657": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r658": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r659": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-8"
  },
  "r660": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480126/715-20-S99-2"
  },
  "r661": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480266/715-60-50-3"
  },
  "r662": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480266/715-60-50-4"
  },
  "r663": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "70",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480794/715-70-50-1"
  },
  "r664": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480606/715-80-35-1"
  },
  "r665": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-11"
  },
  "r666": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-5"
  },
  "r667": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-5"
  },
  "r668": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-9"
  },
  "r669": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//718/tableOfContent"
  },
  "r670": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480483/718-10-35-1D"
  },
  "r671": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480483/718-10-35-3"
  },
  "r672": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r673": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r674": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r675": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r676": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r677": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r678": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r679": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r680": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r681": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r682": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r683": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r684": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(04)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r685": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r686": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r687": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r688": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r689": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r690": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r691": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r692": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r693": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r694": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r695": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r696": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r697": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r698": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r699": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r700": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r701": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(v)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r702": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r703": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r704": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r705": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(l)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r706": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r707": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r708": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r709": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 14.C.Q3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479830/718-10-S99-1"
  },
  "r710": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 14.D.1.Q5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479830/718-10-S99-1"
  },
  "r711": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 14.D.2.Q6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479830/718-10-S99-1"
  },
  "r712": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 14.D.3.Q2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479830/718-10-S99-1"
  },
  "r713": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 14.F)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479830/718-10-S99-1"
  },
  "r714": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//740/tableOfContent"
  },
  "r715": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482525/740-10-45-10B"
  },
  "r716": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482525/740-10-45-25"
  },
  "r717": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482525/740-10-45-28"
  },
  "r718": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482525/740-10-45-4"
  },
  "r719": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482525/740-10-45-6"
  },
  "r720": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-10"
  },
  "r721": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-12"
  },
  "r722": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-14"
  },
  "r723": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-15A"
  },
  "r724": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15A",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-15A"
  },
  "r725": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15A",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-15A"
  },
  "r726": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "17",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-17"
  },
  "r727": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "19",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-19"
  },
  "r728": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2"
  },
  "r729": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2"
  },
  "r730": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2"
  },
  "r731": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "20",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-20"
  },
  "r732": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-21"
  },
  "r733": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9"
  },
  "r734": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8"
  },
  "r735": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8"
  },
  "r736": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8"
  },
  "r737": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(d)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8"
  },
  "r738": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(e)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8"
  },
  "r739": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8"
  },
  "r740": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8"
  },
  "r741": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB TOPIC 6.I.5.Q1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r742": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB TOPIC 6.I.7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r743": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 6.I.Fact.1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r744": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 6.I.Fact.2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r745": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 6.I.Fact.3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r746": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 6.I.Fact.4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r747": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SAB Topic 11.C)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-2"
  },
  "r748": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "270",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482526/740-270-50-1"
  },
  "r749": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482603/740-30-50-2"
  },
  "r750": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479845/805-20-65-3"
  },
  "r751": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479845/805-20-65-3"
  },
  "r752": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "3",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479845/805-20-65-3"
  },
  "r753": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "19",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-19"
  },
  "r754": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-25"
  },
  "r755": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-25"
  },
  "r756": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A"
  },
  "r757": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A"
  },
  "r758": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(bb)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-3"
  },
  "r759": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-3"
  },
  "r760": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4A"
  },
  "r761": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4E"
  },
  "r762": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4EEEE",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4EEEE"
  },
  "r763": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5C",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-5C"
  },
  "r764": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r765": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r766": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r767": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r768": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r769": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(h)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r770": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(h)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r771": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(h)(1)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r772": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(h)(1)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r773": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(i)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r774": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(i)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r775": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(i)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r776": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480237/815-40-50-5"
  },
  "r777": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480237/815-40-50-6"
  },
  "r778": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r779": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r780": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r781": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r782": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r783": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r784": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r785": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(e)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r786": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r787": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r788": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(e)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r789": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r790": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-2"
  },
  "r791": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-2"
  },
  "r792": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-2"
  },
  "r793": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-2"
  },
  "r794": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "54B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482134/820-10-35-54B"
  },
  "r795": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r796": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r797": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r798": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r799": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r800": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r801": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r802": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r803": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-3"
  },
  "r804": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-3"
  },
  "r805": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-6A"
  },
  "r806": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "13",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482477/820-10-65-13"
  },
  "r807": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "13",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482477/820-10-65-13"
  },
  "r808": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482736/825-10-45-1A"
  },
  "r809": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482736/825-10-45-2"
  },
  "r810": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-10"
  },
  "r811": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "28",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-28"
  },
  "r812": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482833/825-10-65-6"
  },
  "r813": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482833/825-10-65-6"
  },
  "r814": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482833/825-10-65-6"
  },
  "r815": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482833/825-10-65-6"
  },
  "r816": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(e)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482833/825-10-65-6"
  },
  "r817": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482833/825-10-65-6"
  },
  "r818": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482833/825-10-65-6"
  },
  "r819": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-17"
  },
  "r820": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-20"
  },
  "r821": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-20"
  },
  "r822": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-20"
  },
  "r823": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-20"
  },
  "r824": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-20"
  },
  "r825": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481674/830-30-50-1"
  },
  "r826": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481674/830-30-50-2"
  },
  "r827": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "832",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483482/832-10-65-1"
  },
  "r828": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "832",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483482/832-10-65-1"
  },
  "r829": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482900/835-30-50-1"
  },
  "r830": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479832/842-10-65-1"
  },
  "r831": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479832/842-10-65-5"
  },
  "r832": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479832/842-10-65-5"
  },
  "r833": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479832/842-10-65-5"
  },
  "r834": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479832/842-10-65-5"
  },
  "r835": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479832/842-10-65-5"
  },
  "r836": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(f)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479832/842-10-65-5"
  },
  "r837": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479041/842-20-45-1"
  },
  "r838": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479041/842-20-45-1"
  },
  "r839": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479041/842-20-45-2"
  },
  "r840": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479041/842-20-45-4"
  },
  "r841": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479041/842-20-45-5"
  },
  "r842": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479041/842-20-45-5"
  },
  "r843": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479041/842-20-45-5"
  },
  "r844": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-1"
  },
  "r845": {
   "role": "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"
  },
  "r846": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-4"
  },
  "r847": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-4"
  },
  "r848": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(g)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-4"
  },
  "r849": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(g)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-4"
  },
  "r850": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(g)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-4"
  },
  "r851": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(g)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-4"
  },
  "r852": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-6"
  },
  "r853": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r854": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r855": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r856": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)(iii)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r857": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)(iii)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r858": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r859": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//850/tableOfContent"
  },
  "r860": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r861": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r862": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r863": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r864": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-3"
  },
  "r865": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-6"
  },
  "r866": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "852",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481435/852-10-45-14"
  },
  "r867": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "855",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//855/tableOfContent"
  },
  "r868": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "855",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483399/855-10-50-2"
  },
  "r869": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "855",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483399/855-10-50-2"
  },
  "r870": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r871": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r872": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r873": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(bb)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r874": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(bb)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r875": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(bb)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r876": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r877": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r878": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r879": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4"
  },
  "r880": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4"
  },
  "r881": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4"
  },
  "r882": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4"
  },
  "r883": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481444/860-30-45-1"
  },
  "r884": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(b)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-1A"
  },
  "r885": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(b)(1)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-1A"
  },
  "r886": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-1A"
  },
  "r887": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-7"
  },
  "r888": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-7"
  },
  "r889": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-3"
  },
  "r890": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-3"
  },
  "r891": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-3"
  },
  "r892": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(4)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-3"
  },
  "r893": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4"
  },
  "r894": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4"
  },
  "r895": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4"
  },
  "r896": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4"
  },
  "r897": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4"
  },
  "r898": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4"
  },
  "r899": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4"
  },
  "r900": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4"
  },
  "r901": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(e)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4"
  },
  "r902": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4"
  },
  "r903": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4"
  },
  "r904": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "910",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482546/910-10-50-6"
  },
  "r905": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "912",
   "SubTopic": "330",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482105/912-330-50-1"
  },
  "r906": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "924",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 11.L)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479941/924-10-S99-1"
  },
  "r907": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "926",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483194/926-20-65-2"
  },
  "r908": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "926",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483194/926-20-65-2"
  },
  "r909": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "926",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483194/926-20-65-2"
  },
  "r910": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "926",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483194/926-20-65-2"
  },
  "r911": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "926",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483194/926-20-65-2"
  },
  "r912": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "926",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(f)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483194/926-20-65-2"
  },
  "r913": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-15"
  },
  "r914": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-15"
  },
  "r915": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "20",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-20"
  },
  "r916": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "20",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-20"
  },
  "r917": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "28",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-28"
  },
  "r918": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "28",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-28"
  },
  "r919": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "33",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-33"
  },
  "r920": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "33",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-33"
  },
  "r921": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "35A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-35A"
  },
  "r922": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "35A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-35A"
  },
  "r923": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-8"
  },
  "r924": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-8"
  },
  "r925": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(23))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r926": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(27))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r927": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-05(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479557/942-235-S99-1"
  },
  "r928": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480842/942-360-50-1"
  },
  "r929": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(1)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r930": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(1)(h))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r931": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(12))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r932": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(15)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r933": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(15)(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r934": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(19))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r935": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r936": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r937": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(24))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r938": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(25))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r939": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(8)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r940": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(8)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r941": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r942": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r943": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(16))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r944": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r945": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(18))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r946": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(19))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r947": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(2)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r948": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(23))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r949": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(3)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r950": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r951": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r952": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r953": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r954": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r955": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r956": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r957": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column G))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r958": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column H))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r959": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column I))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r960": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column J))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r961": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column K))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r962": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r963": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r964": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r965": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r966": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r967": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r968": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480081/944-40-50-7A"
  },
  "r969": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r970": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r971": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r972": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r973": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r974": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r975": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r976": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r977": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r978": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r979": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(h)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r980": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(h)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r981": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "825",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479383/944-825-50-1B"
  },
  "r982": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480424/946-10-50-3"
  },
  "r983": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r984": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(f)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r985": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(f)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r986": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(f)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r987": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(h)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r988": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(i)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r989": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(i)(2)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r990": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(i)(2)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r991": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(i)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r992": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-11"
  },
  "r993": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-13"
  },
  "r994": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-2"
  },
  "r995": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-5"
  },
  "r996": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-6"
  },
  "r997": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480767/946-205-45-3"
  },
  "r998": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480767/946-205-45-3"
  },
  "r999": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480767/946-205-45-4"
  },
  "r1000": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480555/946-210-45-4"
  },
  "r1001": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r1002": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r1003": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r1004": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r1005": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r1006": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-12"
  },
  "r1007": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r1008": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r1009": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r1010": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r1011": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r1012": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r1013": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1014": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(12)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1015": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(12)(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1016": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(12)(b)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1017": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(13)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1018": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(13)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1019": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1020": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(16)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1021": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1022": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(19))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1023": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(2)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1024": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(2)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1025": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(3)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1026": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(3)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1027": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(3)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1028": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(5)(a)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1029": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1030": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1031": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1032": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1033": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(7)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1034": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1035": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1036": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1037": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1038": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1039": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.6-05(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-2"
  },
  "r1040": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.6-05(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-2"
  },
  "r1041": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483581/946-220-45-3"
  },
  "r1042": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483581/946-220-45-7"
  },
  "r1043": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1044": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1045": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(c)(2)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1046": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(c)(2)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1047": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1048": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1049": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(g)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1050": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1051": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1052": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1053": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1054": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1055": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1056": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1057": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1058": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1059": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1060": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1061": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1062": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1063": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1064": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(1)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r1065": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(4)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r1066": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r1067": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r1068": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481062/946-235-50-2"
  },
  "r1069": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481062/946-235-50-2"
  },
  "r1070": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481062/946-235-50-2"
  },
  "r1071": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481062/946-235-50-2"
  },
  "r1072": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481062/946-235-50-2"
  },
  "r1073": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480833/946-310-45-1"
  },
  "r1074": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r1075": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r1076": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r1077": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "12",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-12"
  },
  "r1078": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "19",
   "Subparagraph": "(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-19"
  },
  "r1079": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2"
  },
  "r1080": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column C)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2"
  },
  "r1081": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 4)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r1082": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 4)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r1083": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r1084": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r1085": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column A)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5"
  },
  "r1086": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column G)(Footnote 8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5"
  },
  "r1087": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column G))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5"
  },
  "r1088": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5A",
   "Subparagraph": "(SX 210.12-13A(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5A"
  },
  "r1089": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5A",
   "Subparagraph": "(SX 210.12-13A(Column F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5A"
  },
  "r1090": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column E)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5B"
  },
  "r1091": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5B"
  },
  "r1092": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5C"
  },
  "r1093": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column H)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5C"
  },
  "r1094": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column H))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5C"
  },
  "r1095": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5D",
   "Subparagraph": "(SX 210.12-13D(Column B)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5D"
  },
  "r1096": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5D",
   "Subparagraph": "(SX 210.12-13D(Column C)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5D"
  },
  "r1097": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1098": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column F)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1099": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r1100": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r1101": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r1102": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r1103": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481004/946-505-50-2"
  },
  "r1104": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481004/946-505-50-3"
  },
  "r1105": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481004/946-505-50-6"
  },
  "r1106": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "954",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481027/954-310-50-2"
  },
  "r1107": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r1108": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "976",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482856/976-310-50-1"
  },
  "r1109": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "978",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482707/978-310-50-1"
  },
  "r1110": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "985",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481283/985-20-50-1"
  },
  "r1111": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(e)",
   "SubTopic": "10",
   "Topic": "235",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483426/235-10-50-4"
  },
  "r1112": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "13H",
   "Subparagraph": "(a)",
   "SubTopic": "40",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480046/944-40-55-13H"
  },
  "r1113": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483467/210-10-45-1"
  },
  "r1114": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(g)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483467/210-10-45-1"
  },
  "r1115": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "16",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-16"
  },
  "r1116": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "20",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-20"
  },
  "r1117": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-21"
  },
  "r1118": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "22",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-22"
  },
  "r1119": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483426/235-10-50-4"
  },
  "r1120": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483426/235-10-50-4"
  },
  "r1121": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483426/235-10-50-4"
  },
  "r1122": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "52",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482635/260-10-55-52"
  },
  "r1123": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "31",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-31"
  },
  "r1124": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "47",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482785/280-10-55-47"
  },
  "r1125": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "48",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482785/280-10-55-48"
  },
  "r1126": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481933/310-10-55-12A"
  },
  "r1127": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479081/326-30-55-8"
  },
  "r1128": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "340",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "05",
   "Paragraph": "5",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482955/340-10-05-5"
  },
  "r1129": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482548/350-20-55-24"
  },
  "r1130": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r1131": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "69B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481568/470-20-55-69B"
  },
  "r1132": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "69C",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481568/470-20-55-69C"
  },
  "r1133": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "69E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481568/470-20-55-69E"
  },
  "r1134": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "69F",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481568/470-20-55-69F"
  },
  "r1135": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13"
  },
  "r1136": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r1137": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r1138": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r1139": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r1140": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r1141": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r1142": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r1143": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1144": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1145": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480482/715-20-55-17"
  },
  "r1146": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480482/715-20-55-18"
  },
  "r1147": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-11"
  },
  "r1148": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-11"
  },
  "r1149": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-11"
  },
  "r1150": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-6"
  },
  "r1151": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-6"
  },
  "r1152": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-6"
  },
  "r1153": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480547/715-80-55-8"
  },
  "r1154": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1155": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481175/810-10-55-4J"
  },
  "r1156": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481175/810-10-55-4K"
  },
  "r1157": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4D"
  },
  "r1158": {
   "role": "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"
  },
  "r1159": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "852",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481372/852-10-55-10"
  },
  "r1160": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479401/944-30-55-2"
  },
  "r1161": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "29F",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480046/944-40-55-29F"
  },
  "r1162": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r1163": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r1164": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480493/946-210-55-1"
  },
  "r1165": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480833/946-310-45-1"
  },
  "r1166": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r1167": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2"
  },
  "r1168": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 1)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r1169": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1170": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r1171": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r1172": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r1173": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480167/946-830-55-10"
  },
  "r1174": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480167/946-830-55-11"
  },
  "r1175": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480167/946-830-55-12"
  },
  "r1176": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b"
  },
  "r1177": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r1178": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-23"
  },
  "r1179": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r1180": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-K",
   "Number": "249",
   "Section": "310"
  },
  "r1181": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Number": "249",
   "Section": "220",
   "Subsection": "f"
  },
  "r1182": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Number": "249",
   "Section": "240",
   "Subsection": "f"
  },
  "r1183": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Section": "13",
   "Subsection": "a-1"
  },
  "r1184": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w"
  },
  "r1185": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "405"
  },
  "r1186": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "405"
  },
  "r1187": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "272",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483014/272-10-45-3"
  },
  "r1188": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-10"
  },
  "r1189": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-11"
  },
  "r1190": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "855",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483399/855-10-50-3"
  },
  "r1191": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-12"
  },
  "r1192": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "15",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-15"
  },
  "r1193": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r1194": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(3)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r1195": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-11"
  },
  "r1196": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-11"
  },
  "r1197": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "SubTopic": "825",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479383/944-825-50-1B"
  },
  "r1198": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-3"
  },
  "r1199": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4H",
   "SubTopic": "40",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480081/944-40-50-4H"
  },
  "r1200": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-7"
  },
  "r1201": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-7"
  },
  "r1202": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-8"
  },
  "r1203": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-9"
  },
  "r1204": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "740",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9"
  },
  "r1205": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(a)",
   "Publisher": "SEC"
  },
  "r1206": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(b)",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r1207": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(b)",
   "Subparagraph": "(2)",
   "Publisher": "SEC"
  },
  "r1208": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(b)",
   "Subparagraph": "(3)",
   "Publisher": "SEC"
  },
  "r1209": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(c)",
   "Subparagraph": "(2)(i)",
   "Publisher": "SEC"
  },
  "r1210": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(c)",
   "Subparagraph": "(2)(ii)",
   "Publisher": "SEC"
  },
  "r1211": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(c)",
   "Subparagraph": "(2)(iii)",
   "Publisher": "SEC"
  },
  "r1212": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "11",
   "Subsection": "03",
   "Publisher": "SEC"
  },
  "r1213": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "(a)",
   "Subparagraph": "(4)(i)",
   "Publisher": "SEC"
  },
  "r1214": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "(a)",
   "Subparagraph": "(4)(ii)",
   "Publisher": "SEC"
  },
  "r1215": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "(a)",
   "Subparagraph": "(4)(iii)",
   "Publisher": "SEC"
  },
  "r1216": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "(a)",
   "Subparagraph": "(4)(iv)",
   "Publisher": "SEC"
  },
  "r1217": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "02",
   "Paragraph": "(a)",
   "Subparagraph": "(4)(iv)",
   "Publisher": "SEC"
  },
  "r1218": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479343/105-10-65-6"
  },
  "r1219": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r1220": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(12))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r1221": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r1222": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(18))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r1223": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(3)(a)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r1224": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(6)(a)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r1225": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(6)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r1226": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-4"
  },
  "r1227": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-5"
  },
  "r1228": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-6"
  },
  "r1229": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-13"
  },
  "r1230": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-14"
  },
  "r1231": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-28"
  },
  "r1232": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r1233": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(f))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r1234": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r1235": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(h)(1)(Note 1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r1236": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(S-X 210.12-04)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-3"
  },
  "r1237": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-04(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-3"
  },
  "r1238": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SX 210.12-09)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-4"
  },
  "r1239": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "23",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-23"
  },
  "r1240": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-24"
  },
  "r1241": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-5"
  },
  "r1242": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-6"
  },
  "r1243": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-12"
  },
  "r1244": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-4"
  },
  "r1245": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482662/260-10-50-1"
  },
  "r1246": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-15"
  },
  "r1247": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-2"
  },
  "r1248": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-4"
  },
  "r1249": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481569/310-20-50-1"
  },
  "r1250": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481569/310-20-50-2"
  },
  "r1251": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481569/310-20-50-4"
  },
  "r1252": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-9"
  },
  "r1253": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "321",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479536/321-10-50-3"
  },
  "r1254": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "321",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479536/321-10-50-3"
  },
  "r1255": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "321",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479536/321-10-50-3"
  },
  "r1256": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3"
  },
  "r1257": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3"
  },
  "r1258": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r1259": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r1260": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(e)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r1261": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-5"
  },
  "r1262": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-13"
  },
  "r1263": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "340",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483032/340-10-45-1"
  },
  "r1264": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "410",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481850/410-20-50-1"
  },
  "r1265": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481931/410-30-50-10"
  },
  "r1266": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//450/tableOfContent"
  },
  "r1267": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-9"
  },
  "r1268": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 5.Y.Q2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480102/450-20-S99-1"
  },
  "r1269": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r1270": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r1271": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r1272": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(iv))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r1273": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(iv))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B"
  },
  "r1274": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r1275": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1E",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1E"
  },
  "r1276": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-5"
  },
  "r1277": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r1278": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1279": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1280": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1281": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(n)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1282": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-3"
  },
  "r1283": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-3"
  },
  "r1284": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480266/715-60-50-4"
  },
  "r1285": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1286": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1287": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1288": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1289": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1290": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1291": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1292": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1293": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1294": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1295": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(04)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1296": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1297": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1298": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1299": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1300": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1301": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1302": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1303": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1304": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1305": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1306": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1307": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1308": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1309": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1310": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(v)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1311": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r1312": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r1313": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r1314": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "27",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482525/740-10-45-27"
  },
  "r1315": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-12"
  },
  "r1316": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-15"
  },
  "r1317": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2"
  },
  "r1318": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-6"
  },
  "r1319": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9"
  },
  "r1320": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8"
  },
  "r1321": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(d)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8"
  },
  "r1322": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 6.I.7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r1323": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 6.I.Fact.4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r1324": {
   "role": "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"
  },
  "r1325": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "25",
   "Name": "Accounting Standards Codification",
   "Section": "40",
   "Paragraph": "8A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480270/815-25-40-8A"
  },
  "r1326": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r1327": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r1328": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(e)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r1329": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r1330": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r1331": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-3"
  },
  "r1332": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "28",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-28"
  },
  "r1333": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1334": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-6"
  },
  "r1335": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r1336": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)(iii)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r1337": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)(iii)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r1338": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r1339": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r1340": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-3"
  },
  "r1341": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "852",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481404/852-10-50-7"
  },
  "r1342": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "852",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481404/852-10-50-7"
  },
  "r1343": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r1344": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r1345": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r1346": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4"
  },
  "r1347": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4"
  },
  "r1348": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4"
  },
  "r1349": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-7"
  },
  "r1350": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-2"
  },
  "r1351": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r1352": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(16)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r1353": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(16)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r1354": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r1355": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479432/944-30-50-2B"
  },
  "r1356": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480767/946-205-45-4"
  },
  "r1357": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r1358": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(18))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1359": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(4)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r1360": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r1361": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480833/946-310-45-1"
  },
  "r1362": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r1363": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "985",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481283/985-20-50-1"
  }
 }
}
