{
 "version": "2.2",
 "instance": {
  "main-20260331.htm": {
   "nsprefix": "main",
   "nsuri": "http://www.mainstcapital.com/20260331",
   "dts": {
    "inline": {
     "local": [
      "main-20260331.htm"
     ]
    },
    "schema": {
     "local": [
      "main-20260331.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/2006/xbrldi-2006.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/net-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/2024-01-31/types.xsd",
      "https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd",
      "https://xbrl.fasb.org/srt/2025/elts/srt-roles-2025.xsd",
      "https://xbrl.fasb.org/srt/2025/elts/srt-types-2025.xsd",
      "https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd",
      "https://xbrl.fasb.org/us-gaap/2025/elts/us-roles-2025.xsd",
      "https://xbrl.fasb.org/us-gaap/2025/elts/us-types-2025.xsd",
      "https://xbrl.sec.gov/cef/2025/cef-2025.xsd",
      "https://xbrl.sec.gov/cef/2025/cef-2025_pre.xsd",
      "https://xbrl.sec.gov/country/2025/country-2025.xsd",
      "https://xbrl.sec.gov/dei/2025/dei-2025.xsd",
      "https://xbrl.sec.gov/dei/2025/dei-2025_lab.xsd",
      "https://xbrl.sec.gov/ecd/2025/ecd-2025.xsd",
      "https://xbrl.sec.gov/stpr/2025/stpr-2025.xsd"
     ]
    },
    "calculationLink": {
     "local": [
      "main-20260331_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "main-20260331_def.xml"
     ]
    },
    "labelLink": {
     "local": [
      "main-20260331_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "main-20260331_pre.xml"
     ]
    }
   },
   "keyStandard": 255,
   "keyCustom": 106,
   "axisStandard": 36,
   "axisCustom": 2,
   "memberStandard": 47,
   "memberCustom": 283,
   "hidden": {
    "total": 11,
    "http://xbrl.sec.gov/dei/2025": 5,
    "http://fasb.org/us-gaap/2025": 2,
    "http://www.mainstcapital.com/20260331": 4
   },
   "contextCount": 3787,
   "entityCount": 1,
   "segmentCount": 342,
   "elementCount": 1124,
   "unitCount": 11,
   "baseTaxonomies": {
    "http://fasb.org/us-gaap/2025": 11240,
    "http://xbrl.sec.gov/dei/2025": 30,
    "http://xbrl.sec.gov/cef/2025": 18,
    "http://xbrl.sec.gov/ecd/2025": 4,
    "http://fasb.org/srt/2025": 3
   },
   "report": {
    "R1": {
     "role": "http://www.mainstcapital.com/role/Cover",
     "longName": "0000001 - Document - Cover",
     "shortName": "Cover",
     "isDefault": "true",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "dei:DocumentQuarterlyReport",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R2": {
     "role": "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
     "longName": "0000002 - Statement - Consolidated Balance Sheets",
     "shortName": "Consolidated Balance Sheets",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "2",
     "firstAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:InvestmentOwnedAtFairValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:DeferredIncomeTaxLiabilitiesNet",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R3": {
     "role": "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
     "longName": "0000003 - Statement - Consolidated Balance Sheets (Parenthetical)",
     "shortName": "Consolidated Balance Sheets (Parenthetical)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "3",
     "firstAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:InvestmentOwnedAtCost",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "unitRef": "usdPerShare",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R4": {
     "role": "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
     "longName": "0000004 - Statement - Consolidated Statements of Operations",
     "shortName": "Consolidated Statements of Operations",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "4",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:GrossInvestmentIncomeOperating",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InvestmentIncomeTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:SalariesWagesAndOfficersCompensation",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R5": {
     "role": "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets",
     "longName": "0000005 - Statement - Consolidated Statements of Changes in Net Assets",
     "shortName": "Consolidated Statements of Changes in Net Assets",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "5",
     "firstAnchor": {
      "contextRef": "c-10",
      "name": "us-gaap:CommonStockSharesOutstanding",
      "unitRef": "shares",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "us-gaap:CommonStockSharesIssued",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:StockIssuedDuringPeriodValueNewIssues",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R6": {
     "role": "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows",
     "longName": "0000006 - Statement - Consolidated Statements of Cash Flows",
     "shortName": "Consolidated Statements of Cash Flows",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "6",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:NetIncomeLoss",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "main:PaymentsToInvestmentsInPortfolioCompanies",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R7": {
     "role": "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments",
     "longName": "0000007 - Statement - Consolidated Schedule of Investments",
     "shortName": "Consolidated Schedule of Investments",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "7",
     "firstAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:InvestmentOwnedAtCost",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:InvestmentOwnedPercentOfNetAssets",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "3",
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R8": {
     "role": "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical",
     "longName": "0000008 - Statement - Consolidated Schedule of Investments (Parenthetical)",
     "shortName": "Consolidated Schedule of Investments (Parenthetical)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "8",
     "firstAnchor": {
      "contextRef": "c-9",
      "name": "main:InvestmentCompanyPercentageOfLoansWithVariableRateFloors",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-9",
      "name": "main:InvestmentCompanyPercentageOfLoansWithVariableRateFloors",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R9": {
     "role": "http://www.mainstcapital.com/role/ORGANIZATIONANDBASISOFPRESENTATION",
     "longName": "0000009 - Disclosure - ORGANIZATION AND BASIS OF PRESENTATION",
     "shortName": "ORGANIZATION AND BASIS OF PRESENTATION",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "9",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R10": {
     "role": "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES",
     "longName": "0000010 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES",
     "shortName": "SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "10",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R11": {
     "role": "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITION",
     "longName": "0000011 - Disclosure - FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION",
     "shortName": "FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "11",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R12": {
     "role": "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGER",
     "longName": "0000012 - Disclosure - EXTERNAL INVESTMENT MANAGER",
     "shortName": "EXTERNAL INVESTMENT MANAGER",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "12",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "main:ExternalInvestmentManagerTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "main:ExternalInvestmentManagerTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R13": {
     "role": "http://www.mainstcapital.com/role/DEBT",
     "longName": "0000013 - Disclosure - DEBT",
     "shortName": "DEBT",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "13",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R14": {
     "role": "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTS",
     "longName": "0000014 - Disclosure - FINANCIAL HIGHLIGHTS",
     "shortName": "FINANCIAL HIGHLIGHTS",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "14",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InvestmentCompanyFinancialHighlightsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InvestmentCompanyFinancialHighlightsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R15": {
     "role": "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOME",
     "longName": "0000015 - Disclosure - DIVIDENDS, DISTRIBUTIONS AND TAXABLE INCOME",
     "shortName": "DIVIDENDS, DISTRIBUTIONS AND TAXABLE INCOME",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "15",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "main:DividendDistributionsIncomeTaxDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "main:DividendDistributionsIncomeTaxDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R16": {
     "role": "http://www.mainstcapital.com/role/COMMONSTOCK",
     "longName": "0000016 - Disclosure - COMMON STOCK",
     "shortName": "COMMON STOCK",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "16",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R17": {
     "role": "http://www.mainstcapital.com/role/DIVIDENDREINVESTMENTPLAN",
     "longName": "0000017 - Disclosure - DIVIDEND REINVESTMENT PLAN",
     "shortName": "DIVIDEND REINVESTMENT PLAN",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "17",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "main:StockholdersEquityDividendReinvestmentPlanTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "main:StockholdersEquityDividendReinvestmentPlanTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R18": {
     "role": "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATION",
     "longName": "0000018 - Disclosure - SHARE-BASED COMPENSATION",
     "shortName": "SHARE-BASED COMPENSATION",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "18",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R19": {
     "role": "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIES",
     "longName": "0000019 - Disclosure - COMMITMENTS AND CONTINGENCIES",
     "shortName": "COMMITMENTS AND CONTINGENCIES",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "19",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R20": {
     "role": "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONS",
     "longName": "0000020 - Disclosure - RELATED PARTY TRANSACTIONS",
     "shortName": "RELATED PARTY TRANSACTIONS",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "20",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R21": {
     "role": "http://www.mainstcapital.com/role/SUBSEQUENTEVENTS",
     "longName": "0000021 - Disclosure - SUBSEQUENT EVENTS",
     "shortName": "SUBSEQUENT EVENTS",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "21",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R22": {
     "role": "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliates",
     "longName": "0000022 - Disclosure - Consolidated Schedule of Investments in and Advances to Affiliates",
     "shortName": "Consolidated Schedule of Investments in and Advances to Affiliates",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "22",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InvestmentsInAndAdvancesToAffiliatesScheduleOfInvestmentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:ScheduleOfInvestmentsInAndAdvancesToAffiliatesScheduleOfInvestmentsTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InvestmentsInAndAdvancesToAffiliatesScheduleOfInvestmentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:ScheduleOfInvestmentsInAndAdvancesToAffiliatesScheduleOfInvestmentsTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R23": {
     "role": "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements",
     "longName": "995445 - Disclosure - Insider Trading Arrangements",
     "shortName": "Insider Trading Arrangements",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "23",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ecd:Rule10b51ArrAdoptedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ecd:NonRule10b51ArrAdoptedFlag",
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ecd:Rule10b51ArrAdoptedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ecd:NonRule10b51ArrAdoptedFlag",
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R24": {
     "role": "http://xbrl.sec.gov/cef/role/N2",
     "longName": "995470 - Disclosure - N-2",
     "shortName": "N-2",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "24",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "dei:EntityFileNumber",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "cef:InvestmentObjectivesAndPracticesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R25": {
     "role": "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies",
     "longName": "9955511 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)",
     "shortName": "SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "policies",
     "menuCat": "Policies",
     "order": "25",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R26": {
     "role": "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables",
     "longName": "9955512 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)",
     "shortName": "SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "26",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InvestmentIncomeTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InvestmentIncomeTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R27": {
     "role": "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONTables",
     "longName": "9955513 - Disclosure - FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION (Tables)",
     "shortName": "FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "27",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R28": {
     "role": "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERTables",
     "longName": "9955514 - Disclosure - EXTERNAL INVESTMENT MANAGER (Tables)",
     "shortName": "EXTERNAL INVESTMENT MANAGER (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "28",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InvestmentCompanyNonconsolidatedSubsidiarySummarizedFinancialInformationTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InvestmentCompanyNonconsolidatedSubsidiarySummarizedFinancialInformationTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R29": {
     "role": "http://www.mainstcapital.com/role/DEBTTables",
     "longName": "9955515 - Disclosure - DEBT (Tables)",
     "shortName": "DEBT (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "29",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfDebtTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfDebtTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R30": {
     "role": "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSTables",
     "longName": "9955516 - Disclosure - FINANCIAL HIGHLIGHTS (Tables)",
     "shortName": "FINANCIAL HIGHLIGHTS (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "30",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InvestmentCompanyFinancialHighlightsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InvestmentCompanyFinancialHighlightsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R31": {
     "role": "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMETables",
     "longName": "9955517 - Disclosure - DIVIDENDS, DISTRIBUTIONS AND TAXABLE INCOME (Tables)",
     "shortName": "DIVIDENDS, DISTRIBUTIONS AND TAXABLE INCOME (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "31",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DividendsDeclaredTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DividendsDeclaredTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R32": {
     "role": "http://www.mainstcapital.com/role/DIVIDENDREINVESTMENTPLANTables",
     "longName": "9955518 - Disclosure - DIVIDEND REINVESTMENT PLAN (Tables)",
     "shortName": "DIVIDEND REINVESTMENT PLAN (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "32",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "main:ScheduleOfSummarizedDividendReinvestmentPlanInformationTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "main:ScheduleOfSummarizedDividendReinvestmentPlanInformationTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R33": {
     "role": "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONTables",
     "longName": "9955519 - Disclosure - SHARE-BASED COMPENSATION (Tables)",
     "shortName": "SHARE-BASED COMPENSATION (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "33",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R34": {
     "role": "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESTables",
     "longName": "9955520 - Disclosure - COMMITMENTS AND CONTINGENCIES (Tables)",
     "shortName": "COMMITMENTS AND CONTINGENCIES (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "34",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "main:InvestmentCompanyOutstandingCapitalCommitmentsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "main:InvestmentCompanyOutstandingCapitalCommitmentsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R35": {
     "role": "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSTables",
     "longName": "9955521 - Disclosure - RELATED PARTY TRANSACTIONS (Tables)",
     "shortName": "RELATED PARTY TRANSACTIONS (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "35",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R36": {
     "role": "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesTables",
     "longName": "9955522 - Disclosure - Consolidated Schedule of Investments in and Advances to Affiliates (Tables)",
     "shortName": "Consolidated Schedule of Investments in and Advances to Affiliates (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "36",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfInvestmentsInAndAdvancesToAffiliatesScheduleOfInvestmentsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfInvestmentsInAndAdvancesToAffiliatesScheduleOfInvestmentsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R37": {
     "role": "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails",
     "longName": "9955523 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Narrative (Details)",
     "shortName": "SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "37",
     "firstAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:MoneyMarketFundsAtCarryingValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "us-gaap:CashAndCashEquivalentsPolicyTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-10",
      "name": "us-gaap:MoneyMarketFundsAtCarryingValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "us-gaap:CashAndCashEquivalentsPolicyTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R38": {
     "role": "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofInvestmentIncomeDetails",
     "longName": "9955524 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Schedule of Investment Income (Details)",
     "shortName": "SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Schedule of Investment Income (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "38",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InvestmentIncomeInterest",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InvestmentIncomeTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InvestmentIncomeInterest",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InvestmentIncomeTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R39": {
     "role": "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
     "longName": "9955525 - Disclosure - FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION - Narrative (Details)",
     "shortName": "FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "39",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InvestmentCompanyExpenseOffsetArrangement",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "main:InvestmentCompanyAnnualizedTotalReturn",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R40": {
     "role": "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails",
     "longName": "9955526 - Disclosure - FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION - Schedule of Level\u00a03 Portfolio Investments (Details)",
     "shortName": "FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION - Schedule of Level\u00a03 Portfolio Investments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "40",
     "firstAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:InvestmentOwnedAtFairValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1693",
      "name": "us-gaap:InvestmentCompanyInvestmentOwnedFairValueMeasurementInput",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "1",
      "ancestors": [
       "span",
       "div",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R41": {
     "role": "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails",
     "longName": "9955527 - Disclosure - FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION - Schedule of Changes in Fair Value of Level\u00a03 Portfolio Investments (Details)",
     "shortName": "FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION - Schedule of Changes in Fair Value of Level\u00a03 Portfolio Investments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "41",
     "firstAnchor": {
      "contextRef": "c-1742",
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1742",
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R42": {
     "role": "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails",
     "longName": "9955528 - Disclosure - FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION - Schedule of Fair Value Hierarchy (Details)",
     "shortName": "FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION - Schedule of Fair Value Hierarchy (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "42",
     "firstAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:InvestmentOwnedAtFairValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1787",
      "name": "us-gaap:InvestmentOwnedAtFairValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R43": {
     "role": "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
     "longName": "9955529 - Disclosure - FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION - Schedule of Investments (Details)",
     "shortName": "FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION - Schedule of Investments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "43",
     "firstAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:InvestmentOwnedAtFairValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1836",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleWeightedAverageYield",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:SummaryInvestmentHoldingsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R44": {
     "role": "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails",
     "longName": "9955530 - Disclosure - FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION - Schedule of Percentage of Portfolio Investments by Type of Investment (Details)",
     "shortName": "FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION - Schedule of Percentage of Portfolio Investments by Type of Investment (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "44",
     "firstAnchor": {
      "contextRef": "c-1880",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1874",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R45": {
     "role": "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails",
     "longName": "9955531 - Disclosure - FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION - Schedule of Percentage of Portfolio Investments by Geographical Regions (Details)",
     "shortName": "FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION - Schedule of Percentage of Portfolio Investments by Geographical Regions (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "45",
     "firstAnchor": {
      "contextRef": "c-1908",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1908",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R46": {
     "role": "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails",
     "longName": "9955532 - Disclosure - FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION - Schedule of Percentage of Portfolio Investments by Industry Sector (Details)",
     "shortName": "FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION - Schedule of Percentage of Portfolio Investments by Industry Sector (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "46",
     "firstAnchor": {
      "contextRef": "c-1990",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1990",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R47": {
     "role": "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERNarrativeDetails",
     "longName": "9955533 - Disclosure - EXTERNAL INVESTMENT MANAGER - Narrative (Details)",
     "shortName": "EXTERNAL INVESTMENT MANAGER - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "47",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:NetInvestmentIncome",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2056",
      "name": "us-gaap:NetInvestmentIncome",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R48": {
     "role": "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails",
     "longName": "9955534 - Disclosure - EXTERNAL INVESTMENT MANAGER - Schedule of Balance Sheet (Details)",
     "shortName": "EXTERNAL INVESTMENT MANAGER - Schedule of Balance Sheet (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "48",
     "firstAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:Assets",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2058",
      "name": "us-gaap:AccountsReceivableNet",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InvestmentCompanyNonconsolidatedSubsidiarySummarizedFinancialInformationTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R49": {
     "role": "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails",
     "longName": "9955535 - Disclosure - EXTERNAL INVESTMENT MANAGER - Schedule of Statement of Operations (Details)",
     "shortName": "EXTERNAL INVESTMENT MANAGER - Schedule of Statement of Operations (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "49",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InvestmentIncomeInvestmentExpense",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:IncreaseDecreaseInIncentiveFeePayable",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R50": {
     "role": "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
     "longName": "9955536 - Disclosure - DEBT - Schedule of Debt (Details)",
     "shortName": "DEBT - Schedule of Debt (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "50",
     "firstAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:DebtInstrumentCarryingAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R51": {
     "role": "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
     "longName": "9955537 - Disclosure - DEBT - Schedule of Interest Expense (Details)",
     "shortName": "DEBT - Schedule of Interest Expense (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "51",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InterestExpenseDebt",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InterestExpenseDebt",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R52": {
     "role": "http://www.mainstcapital.com/role/DEBTScheduleofAverageAmountofTotalBorrowingsOutstandingandOverallWeightedAverageEffectiveInterestRateDetails",
     "longName": "9955538 - Disclosure - DEBT - Schedule of Average Amount of Total Borrowings Outstanding and Overall Weighted-Average Effective Interest Rate (Details)",
     "shortName": "DEBT - Schedule of Average Amount of Total Borrowings Outstanding and Overall Weighted-Average Effective Interest Rate (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "52",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:LongTermDebtAverageAmountOutstanding",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2089",
      "name": "us-gaap:LongTermDebtAverageAmountOutstanding",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R53": {
     "role": "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
     "longName": "9955539 - Disclosure - DEBT - Corporate Facility (Details)",
     "shortName": "DEBT - Corporate Facility (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "53",
     "firstAnchor": {
      "contextRef": "c-2092",
      "name": "us-gaap:LineOfCreditFacilityIncreaseDecreaseForPeriodNet",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "cef:LongTermDebtStructuringTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2092",
      "name": "us-gaap:LineOfCreditFacilityIncreaseDecreaseForPeriodNet",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "cef:LongTermDebtStructuringTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R54": {
     "role": "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
     "longName": "9955540 - Disclosure - DEBT - SPV Facility (Details)",
     "shortName": "DEBT - SPV Facility (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "54",
     "firstAnchor": {
      "contextRef": "c-2103",
      "name": "us-gaap:DebtInstrumentInterestRateDuringPeriod",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "3",
      "ancestors": [
       "span",
       "div",
       "cef:LongTermDebtStructuringTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2103",
      "name": "us-gaap:DebtInstrumentInterestRateDuringPeriod",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "3",
      "ancestors": [
       "span",
       "div",
       "cef:LongTermDebtStructuringTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R55": {
     "role": "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails",
     "longName": "9955541 - Disclosure - DEBT - Schedule of MSCC Funding Balance Sheet (Details)",
     "shortName": "DEBT - Schedule of MSCC Funding Balance Sheet (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "55",
     "firstAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:InvestmentOwnedAtFairValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2109",
      "name": "us-gaap:InvestmentOwnedAtFairValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "srt:ScheduleOfCondensedFinancialStatementsTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R56": {
     "role": "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails",
     "longName": "9955542 - Disclosure - DEBT - Schedule of MSCC Funding Statement of Operations (Details)",
     "shortName": "DEBT - Schedule of MSCC Funding Statement of Operations (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "56",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:GrossInvestmentIncomeOperating",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InvestmentIncomeTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2103",
      "name": "us-gaap:GrossInvestmentIncomeOperating",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R57": {
     "role": "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
     "longName": "9955543 - Disclosure - DEBT - Notes\u00a0Due and SBIC Debentures (Details)",
     "shortName": "DEBT - Notes\u00a0Due and SBIC Debentures (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "57",
     "firstAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:DebtInstrumentCarryingAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2116",
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "cef:LongTermDebtStructuringTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R58": {
     "role": "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails",
     "longName": "9955544 - Disclosure - FINANCIAL HIGHLIGHTS (Details)",
     "shortName": "FINANCIAL HIGHLIGHTS (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "58",
     "firstAnchor": {
      "contextRef": "c-10",
      "name": "us-gaap:NetAssetValuePerShare",
      "unitRef": "usdPerShare",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InvestmentCompanyInvestmentIncomeLossPerShare",
      "unitRef": "usdPerShare",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:InvestmentCompanyFinancialHighlightsTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R59": {
     "role": "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofDividendInformationDetails",
     "longName": "9955545 - Disclosure - DIVIDENDS, DISTRIBUTIONS AND TAXABLE INCOME - Schedule of Dividend Information (Details)",
     "shortName": "DIVIDENDS, DISTRIBUTIONS AND TAXABLE INCOME - Schedule of Dividend Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "59",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:CommonStockDividendsPerShareCashPaid",
      "unitRef": "usdPerShare",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:DividendsDeclaredTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:PaymentsOfDividendsCommonStock",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:DividendsDeclaredTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R60": {
     "role": "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails",
     "longName": "9955546 - Disclosure - DIVIDENDS, DISTRIBUTIONS AND TAXABLE INCOME - Schedule of Reconciliation to Taxable Income and to Total Distributions Declared to Common Stockholders (Details)",
     "shortName": "DIVIDENDS, DISTRIBUTIONS AND TAXABLE INCOME - Schedule of Reconciliation to Taxable Income and to Total Distributions Declared to Common Stockholders (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "60",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:NetIncomeLoss",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "main:InvestmentCompanyTaxBasisBookTaxDifferenceFromShareBasedCompensationExpenseIncreaseDecreaseInTaxableIncome",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FederalIncomeTaxNoteTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R61": {
     "role": "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails",
     "longName": "9955547 - Disclosure - DIVIDENDS, DISTRIBUTIONS AND TAXABLE INCOME - Schedule of Net Investment Income Related Taxes (Details)",
     "shortName": "DIVIDENDS, DISTRIBUTIONS AND TAXABLE INCOME - Schedule of Net Investment Income Related Taxes (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "61",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "main:InvestmentIncomeOperatingFederalTaxExpenseBenefitCurrent",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "main:InvestmentIncomeOperatingFederalTaxExpenseBenefitCurrent",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R62": {
     "role": "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMENarrativeDetails",
     "longName": "9955548 - Disclosure - DIVIDENDS, DISTRIBUTIONS AND TAXABLE INCOME - Narrative (Details)",
     "shortName": "DIVIDENDS, DISTRIBUTIONS AND TAXABLE INCOME - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "62",
     "firstAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:DeferredTaxLiabilities",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:DeferredTaxLiabilities",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R63": {
     "role": "http://www.mainstcapital.com/role/COMMONSTOCKDetails",
     "longName": "9955549 - Disclosure - COMMON STOCK (Details)",
     "shortName": "COMMON STOCK (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "63",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ProceedsFromIssuanceOfCommonStock",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2145",
      "name": "main:SaleOfStockSharesAuthorizedUnderAgreement",
      "unitRef": "shares",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R64": {
     "role": "http://www.mainstcapital.com/role/DIVIDENDREINVESTMENTPLANDetails",
     "longName": "9955550 - Disclosure - DIVIDEND REINVESTMENT PLAN (Details)",
     "shortName": "DIVIDEND REINVESTMENT PLAN (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "64",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:StockIssuedDuringPeriodValueDividendReinvestmentPlan",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R65": {
     "role": "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONNarrativeDetails",
     "longName": "9955551 - Disclosure - SHARE-BASED COMPENSATION - Narrative (Details)",
     "shortName": "SHARE-BASED COMPENSATION - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "65",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2156",
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R66": {
     "role": "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedStockAuthorizedandAvailableforIssuanceDetails",
     "longName": "9955552 - Disclosure - SHARE-BASED COMPENSATION - Schedule of Restricted Stock Authorized and Available for Issuance (Details)",
     "shortName": "SHARE-BASED COMPENSATION - Schedule of Restricted Stock Authorized and Available for Issuance (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "66",
     "firstAnchor": {
      "contextRef": "c-2156",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
      "unitRef": "shares",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2152",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
      "unitRef": "shares",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R67": {
     "role": "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails",
     "longName": "9955553 - Disclosure - SHARE-BASED COMPENSATION - Schedule of Restricted Share Awards (Details)",
     "shortName": "SHARE-BASED COMPENSATION - Schedule of Restricted Share Awards (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "67",
     "firstAnchor": {
      "contextRef": "c-2158",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "unitRef": "shares",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2158",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "unitRef": "shares",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R68": {
     "role": "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESDetails",
     "longName": "9955554 - Disclosure - COMMITMENTS AND CONTINGENCIES (Details)",
     "shortName": "COMMITMENTS AND CONTINGENCIES (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "68",
     "firstAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R69": {
     "role": "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails",
     "longName": "9955555 - Disclosure - RELATED PARTY TRANSACTIONS - Narrative (Details)",
     "shortName": "RELATED PARTY TRANSACTIONS - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "69",
     "firstAnchor": {
      "contextRef": "c-2252",
      "name": "srt:StockRepurchaseProgramAuthorizedAmount1",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2252",
      "name": "srt:StockRepurchaseProgramAuthorizedAmount1",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R70": {
     "role": "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSSummarizesofMainStreetsPurchasesofSharesDetails",
     "longName": "9955556 - Disclosure - RELATED PARTY TRANSACTIONS - Summarizes of Main Street\u2019s Purchases of Shares (Details)",
     "shortName": "RELATED PARTY TRANSACTIONS - Summarizes of Main Street\u2019s Purchases of Shares (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "70",
     "firstAnchor": {
      "contextRef": "c-2257",
      "name": "us-gaap:StockRepurchasedDuringPeriodShares",
      "unitRef": "shares",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2257",
      "name": "us-gaap:StockRepurchasedDuringPeriodShares",
      "unitRef": "shares",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R71": {
     "role": "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails",
     "longName": "9955557 - Disclosure - SUBSEQUENT EVENTS (Details)",
     "shortName": "SUBSEQUENT EVENTS (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "71",
     "firstAnchor": {
      "contextRef": "c-2289",
      "name": "main:IncreaseDecreaseInCommonStockDividendsDeclaredMonthly",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2289",
      "name": "main:IncreaseDecreaseInCommonStockDividendsDeclaredMonthly",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true,
      "unique": true
     }
    },
    "R72": {
     "role": "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails",
     "longName": "9955558 - Disclosure - Consolidated Schedule of Investments in and Advances to Affiliates (Details)",
     "shortName": "Consolidated Schedule of Investments in and Advances to Affiliates (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "72",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DebtAndEquitySecuritiesRealizedGainLoss",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-23",
      "name": "main:InterestFeesAndDividendIncomeSecuritiesOperating",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    },
    "R73": {
     "role": "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesFootnotesDetails",
     "longName": "9955559 - Disclosure - Consolidated Schedule of Investments in and Advances to Affiliates - Footnotes (Details)",
     "shortName": "Consolidated Schedule of Investments in and Advances to Affiliates - Footnotes (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "73",
     "firstAnchor": {
      "contextRef": "c-9",
      "name": "us-gaap:InvestmentOwnedAtFairValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2825",
      "name": "us-gaap:InvestmentOwnedAtFairValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "main-20260331.htm",
      "unique": true
     }
    }
   },
   "tag": {
    "main_AACHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AACHoldingsIncMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Victory Energy Operations, LLC",
        "label": "AAC Holdings, Inc. [Member]",
        "documentation": "AAC Holdings, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_AGSAmericanGlassServicesAcquisitionLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AGSAmericanGlassServicesAcquisitionLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "AGS American Glass Services Acquisition, LLC",
        "label": "AGS American Glass Services Acquisition, LLC [Member]",
        "documentation": "AGS American Glass Services Acquisition, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_ASCInterestsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ASCInterestsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ASC Interests, LLC",
        "label": "ASC Interests, LLC [Member]",
        "documentation": "ASC Interests, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_ATSOperatingLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ATSOperatingLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ATS Operating, LLC",
        "label": "ATS Operating, LLC [Member]",
        "documentation": "ATS Operating, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_AVEXAviationHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AVEXAviationHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "AVEX Aviation Holdings, LLC",
        "label": "AVEX Aviation Holdings, LLC [Member]",
        "documentation": "AVEX Aviation Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AccountingPoliciesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountsPayableAndOtherAccruedLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AccountsPayableAndOtherAccruedLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts payable and other liabilities",
        "verboseLabel": "Accounts payable and other liabilities to affiliates",
        "label": "Accounts Payable and Other Accrued Liabilities",
        "documentation": "Amount of liabilities incurred and payable to vendors for goods and services received, and accrued liabilities classified as other."
       }
      }
     },
     "auth_ref": [
      "r692"
     ]
    },
    "us-gaap_AccountsPayableCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AccountsPayableCurrentAndNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Accounts payable to MSCC and its subsidiaries",
        "label": "Accounts Payable",
        "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."
       }
      }
     },
     "auth_ref": [
      "r68",
      "r1365"
     ]
    },
    "us-gaap_AccountsPayableOtherCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AccountsPayableOtherCurrentAndNoncurrent",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unfunded commitments",
        "label": "Accounts Payable, Other",
        "documentation": "Amount of obligations incurred and payable classified as other."
       }
      }
     },
     "auth_ref": [
      "r68"
     ]
    },
    "us-gaap_AccountsReceivableNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AccountsReceivableNet",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Accounts receivable - advisory clients (1)",
        "label": "Accounts Receivable, after Allowance for Credit Loss",
        "documentation": "Amount, after allowance for credit loss, of right to consideration from customer for product sold and service rendered in normal course of business."
       }
      }
     },
     "auth_ref": [
      "r710",
      "r861",
      "r968",
      "r1367",
      "r1368"
     ]
    },
    "main_AccretionOfUnearnedIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AccretionOfUnearnedIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Accretion of unearned income",
        "label": "Accretion of Unearned Income",
        "documentation": "Accretion of Unearned Income"
       }
      }
     },
     "auth_ref": []
    },
    "main_AccruedIncentiveFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AccruedIncentiveFees",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued incentive fees",
        "label": "Accrued Incentive Fees",
        "documentation": "Accrued Incentive Fees"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccumulatedAmortizationDeferredFinanceCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AccumulatedAmortizationDeferredFinanceCosts",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred financing costs, accumulated amortization",
        "label": "Accumulated Amortization, Debt Issuance Costs",
        "documentation": "Amount of accumulated amortization of debt issuance costs."
       }
      }
     },
     "auth_ref": [
      "r1348",
      "r1350"
     ]
    },
    "cef_AcquiredFundFeesAndExpensesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AcquiredFundFeesAndExpensesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Fund Fees and Expenses, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1036"
     ]
    },
    "cef_AcquiredFundFeesAndExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AcquiredFundFeesAndExpensesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Fund Fees and Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1037"
     ]
    },
    "cef_AcquiredFundFeesEstimatedNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AcquiredFundFeesEstimatedNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Fund Fees Estimated, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1038"
     ]
    },
    "cef_AcquiredFundIncentiveAllocationNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AcquiredFundIncentiveAllocationNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Fund Incentive Allocation, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1039"
     ]
    },
    "cef_AcquiredFundTotalAnnualExpensesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AcquiredFundTotalAnnualExpensesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Fund Total Annual Expenses, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1040"
     ]
    },
    "main_AdamsPublishingGroupLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AdamsPublishingGroupLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Adams Publishing Group, LLC",
        "label": "Adams Publishing Group, LLC [Member]",
        "documentation": "Adams Publishing Group, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_Additional402vDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "Additional402vDisclosureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Additional 402(v) Disclosure",
        "label": "Additional 402(v) Disclosure [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1091"
     ]
    },
    "us-gaap_AdditionalPaidInCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AdditionalPaidInCapital",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Additional paid\u2011in capital",
        "verboseLabel": "Contributed capital",
        "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": [
      "r40",
      "r946",
      "r1416"
     ]
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AdditionalPaidInCapitalMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Additional Paid-In Capital",
        "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": [
      "r658",
      "r1238",
      "r1239",
      "r1240",
      "r1241",
      "r1331",
      "r1428"
     ]
    },
    "dei_AdditionalSecurities462b": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AdditionalSecurities462b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Securities. 462(b)"
       }
      }
     },
     "auth_ref": [
      "r1144"
     ]
    },
    "dei_AdditionalSecurities462bFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AdditionalSecurities462bFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Securities, 462(b), File Number"
       }
      }
     },
     "auth_ref": [
      "r1144"
     ]
    },
    "dei_AdditionalSecuritiesEffective413b": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AdditionalSecuritiesEffective413b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Securities Effective, 413(b)"
       }
      }
     },
     "auth_ref": [
      "r1143"
     ]
    },
    "dei_AddressTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AddressTypeDomain",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Address Type [Domain]",
        "documentation": "An entity may have several addresses for different purposes and this domain represents all such types."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AdjToCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AdjToCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Adjustment to Compensation, Amount",
        "label": "Adjustment to Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r1104"
     ]
    },
    "ecd_AdjToCompAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AdjToCompAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Adjustment to Compensation:",
        "label": "Adjustment to Compensation [Axis]"
       }
      }
     },
     "auth_ref": [
      "r1104"
     ]
    },
    "ecd_AdjToNonPeoNeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AdjToNonPeoNeoCompFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Adjustment to Non-PEO NEO Compensation Footnote",
        "label": "Adjustment to Non-PEO NEO Compensation Footnote [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1104"
     ]
    },
    "ecd_AdjToPeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AdjToPeoCompFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Adjustment To PEO Compensation, Footnote",
        "label": "Adjustment To PEO Compensation, Footnote [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1104"
     ]
    },
    "main_AdjustmentsToAdditionalPaidInCapitalAmortizationOfDirectorsDeferredCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AdjustmentsToAdditionalPaidInCapitalAmortizationOfDirectorsDeferredCompensation",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amortization of directors\u2019 deferred compensation",
        "label": "Adjustments To Additional Paid In Capital, Amortization Of Directors\u2019 Deferred Compensation",
        "documentation": "Adjustments To Additional Paid In Capital, Amortization Of Directors\u2019 Deferred Compensation"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share\u2011based compensation",
        "label": "APIC, Share-Based Payment Arrangement, Increase for Cost Recognition",
        "documentation": "Amount of increase to additional paid-in capital (APIC) for recognition of cost for award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r370"
     ]
    },
    "main_AdjustmentsToReconcileNetAssetsFromOperationsToCashProvidedByUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AdjustmentsToReconcileNetAssetsFromOperationsToCashProvidedByUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Adjustments to reconcile net increase in net assets resulting from operations to net cash used in operating activities:",
        "label": "Adjustments To Reconcile Net Assets From Operations To Cash Provided by (Used in) Operating Activities [Abstract]",
        "documentation": "Adjustments To Reconcile Net Assets From Operations To Cash Provided by (Used in) Operating Activities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AdministrativeServiceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AdministrativeServiceMember",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Administrative services fees",
        "label": "Administrative Service [Member]",
        "documentation": "Administrative assistance, including, but not limited to, accounting, tax, legal, regulatory filing, and share registration of managed fund and investment account of independent third party, and related and affiliated entity."
       }
      }
     },
     "auth_ref": [
      "r1284",
      "r1285"
     ]
    },
    "main_AdvisoryAgreementActiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AdvisoryAgreementActiveMember",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERNarrativeDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Advisory Agreement, Active",
        "label": "Advisory Agreement, Active [Member]",
        "documentation": "Advisory Agreement, Active"
       }
      }
     },
     "auth_ref": []
    },
    "main_AdvisoryAgreementPreviousMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AdvisoryAgreementPreviousMember",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Advisory Agreement, Previous",
        "label": "Advisory Agreement, Previous [Member]",
        "documentation": "Advisory Agreement, Previous"
       }
      }
     },
     "auth_ref": []
    },
    "main_AerospaceDefenseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AerospaceDefenseMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aerospace &amp; Defense",
        "label": "Aerospace &amp; Defense [Member]",
        "documentation": "Aerospace &amp; Defense"
       }
      }
     },
     "auth_ref": []
    },
    "srt_AffiliatedEntityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "AffiliatedEntityMember",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERNarrativeDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Affiliated Entity",
        "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": [
      "r109",
      "r868",
      "r968",
      "r1287",
      "r1352",
      "r1353",
      "r1355",
      "r1418"
     ]
    },
    "ecd_AggtChngPnsnValInSummryCompstnTblForAplblYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AggtChngPnsnValInSummryCompstnTblForAplblYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregate Change in Present Value of Accumulated Benefit for All Pension Plans Reported in Summary Compensation Table",
        "label": "Aggregate Change in Present Value of Accumulated Benefit for All Pension Plans Reported in Summary Compensation Table [Member]"
       }
      }
     },
     "auth_ref": [
      "r1137"
     ]
    },
    "ecd_AggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AggtErrCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregate Erroneous Compensation Amount",
        "label": "Aggregate Erroneous Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r990",
      "r1001",
      "r1081",
      "r1115"
     ]
    },
    "ecd_AggtErrCompNotYetDeterminedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AggtErrCompNotYetDeterminedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregate Erroneous Compensation Not Yet Determined",
        "label": "Aggregate Erroneous Compensation Not Yet Determined [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r993",
      "r1004",
      "r1084",
      "r1118"
     ]
    },
    "ecd_AggtPnsnAdjsSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AggtPnsnAdjsSvcCstMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregate Pension Adjustments Service Cost",
        "label": "Aggregate Pension Adjustments Service Cost [Member]"
       }
      }
     },
     "auth_ref": [
      "r1138"
     ]
    },
    "main_AirFreightLogisticsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AirFreightLogisticsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Air Freight &amp; Logistics",
        "label": "Air Freight &amp; Logistics [Member]",
        "documentation": "Air Freight &amp; Logistics"
       }
      }
     },
     "auth_ref": []
    },
    "main_AiroPurchaserInc.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AiroPurchaserInc.Member",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Airo Purchaser, Inc.",
        "label": "Airo Purchaser, Inc. [Member]",
        "documentation": "Airo Purchaser, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AllAdjToCompMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AllAdjToCompMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "All Adjustments to Compensation",
        "label": "All Adjustments to Compensation [Member]"
       }
      }
     },
     "auth_ref": [
      "r1104"
     ]
    },
    "cef_AllCoregistrantsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AllCoregistrantsMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Coregistrants [Member]"
       }
      }
     },
     "auth_ref": [
      "r1009"
     ]
    },
    "ecd_AllExecutiveCategoriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AllExecutiveCategoriesMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "All Executive Categories",
        "label": "All Executive Categories [Member]"
       }
      }
     },
     "auth_ref": [
      "r1111"
     ]
    },
    "ecd_AllIndividualsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AllIndividualsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure",
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure",
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements",
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "All Individuals",
        "label": "All Individuals [Member]"
       }
      }
     },
     "auth_ref": [
      "r994",
      "r1005",
      "r1085",
      "r1111",
      "r1119",
      "r1123",
      "r1131"
     ]
    },
    "cef_AllRisksMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AllRisksMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Risks:"
       }
      }
     },
     "auth_ref": [
      "r1062"
     ]
    },
    "ecd_AllTradingArrangementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AllTradingArrangementsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "All Trading Arrangements",
        "label": "All Trading Arrangements [Member]"
       }
      }
     },
     "auth_ref": [
      "r1129"
     ]
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AllocatedShareBasedCompensationExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations": {
       "parentTag": "us-gaap_InvestmentIncomeInvestmentExpense",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Share\u2011based compensation",
        "terseLabel": "Share\u2011based compensation",
        "label": "Share-Based Payment Arrangement, Expense",
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized."
       }
      }
     },
     "auth_ref": [
      "r402",
      "r408",
      "r417"
     ]
    },
    "dei_AmendmentDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AmendmentDescription",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Description",
        "documentation": "Description of changes contained within amended document."
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Flag",
        "terseLabel": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "main_AmericanHealthStaffingGroupIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AmericanHealthStaffingGroupIncMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "American Health Staffing Group, Inc.",
        "label": "American Health Staffing Group, Inc. [Member]",
        "documentation": "American Health Staffing Group, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_AmericanNutsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AmericanNutsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "American Nuts, LLC",
        "label": "American Nuts, LLC [Member]",
        "documentation": "American Nuts, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AmortizationOfFinancingCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AmortizationOfFinancingCosts",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amortization of deferred financing costs",
        "label": "Amortization of Debt Issuance Costs",
        "documentation": "Amount of amortization expense attributable to debt issuance costs."
       }
      }
     },
     "auth_ref": [
      "r50",
      "r314",
      "r1227",
      "r1349"
     ]
    },
    "main_AnalyticalSystemsKecoHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AnalyticalSystemsKecoHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Analytical Systems Keco Holdings, LLC",
        "label": "Analytical Systems Keco Holdings, LLC [Member]",
        "documentation": "Analytical Systems Keco Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "cef_AnnualCoverageReturnRatePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AnnualCoverageReturnRatePercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Coverage Return Rate [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1065"
     ]
    },
    "cef_AnnualDividendPayment": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AnnualDividendPayment",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Dividend Payment"
       }
      }
     },
     "auth_ref": [
      "r1064"
     ]
    },
    "cef_AnnualDividendPaymentCurrent": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AnnualDividendPaymentCurrent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Dividend Payment, Current"
       }
      }
     },
     "auth_ref": [
      "r1064"
     ]
    },
    "cef_AnnualDividendPaymentInitial": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AnnualDividendPaymentInitial",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Dividend Payment, Initial"
       }
      }
     },
     "auth_ref": [
      "r1064"
     ]
    },
    "cef_AnnualExpensesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AnnualExpensesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Expenses [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1044"
     ]
    },
    "cef_AnnualInterestRateCurrentPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AnnualInterestRateCurrentPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Interest Rate, Current [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1064"
     ]
    },
    "cef_AnnualInterestRateInitialPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AnnualInterestRateInitialPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Interest Rate, Initial [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1064"
     ]
    },
    "cef_AnnualInterestRatePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AnnualInterestRatePercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Interest Rate [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1064"
     ]
    },
    "dei_ApproximateDateOfCommencementOfProposedSaleToThePublic": {
     "xbrltype": "dateOrAsapItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "ApproximateDateOfCommencementOfProposedSaleToThePublic",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Approximate Date of Commencement of Proposed Sale to Public",
        "documentation": "The approximate date of a commencement of a proposed sale of securities to the public. This element is disclosed in S-1, S-3, S-4, S-11, F-1, F-3 and F-10 filings."
       }
      }
     },
     "auth_ref": []
    },
    "main_April2031NotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "April2031NotesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "April 2031 Notes",
        "label": "April 2031 Notes [Member]",
        "documentation": "April 2031 Notes"
       }
      }
     },
     "auth_ref": []
    },
    "main_ArborWorksLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ArborWorksLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ArborWorks, LLC",
        "label": "ArborWorks, LLC [Member]",
        "documentation": "ArborWorks, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Assets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "Assets",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total assets",
        "label": "Assets",
        "documentation": "Amount of asset recognized for present right to economic benefit."
       }
      }
     },
     "auth_ref": [
      "r66",
      "r77",
      "r135",
      "r155",
      "r158",
      "r159",
      "r192",
      "r202",
      "r216",
      "r217",
      "r254",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r439",
      "r441",
      "r492",
      "r592",
      "r593",
      "r599",
      "r715",
      "r898",
      "r899",
      "r913",
      "r946",
      "r961",
      "r962",
      "r979",
      "r1276",
      "r1277",
      "r1356"
     ]
    },
    "us-gaap_AssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AssetsAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ASSETS",
        "verboseLabel": "ASSETS",
        "label": "Assets [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "main_AtTheMarketOfferingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AtTheMarketOfferingsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMONSTOCKDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "At-The-Market Offerings",
        "label": "At-The-Market Offerings [Member]",
        "documentation": "At-The-Market Offerings"
       }
      }
     },
     "auth_ref": []
    },
    "main_August2028NotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "August2028NotesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "August 2028 Notes",
        "label": "August 2028 Notes [Member]",
        "documentation": "August 2028 Notes"
       }
      }
     },
     "auth_ref": []
    },
    "main_AuriaSpaceLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AuriaSpaceLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Auria Space, LLC",
        "label": "Auria Space, LLC [Member]",
        "documentation": "Auria Space, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_AutoComponentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "AutoComponentsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Auto Components",
        "label": "Auto Components [Member]",
        "documentation": "Auto Components"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AwardExrcPrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardExrcPrice",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exercise Price",
        "label": "Award Exercise Price"
       }
      }
     },
     "auth_ref": [
      "r1126"
     ]
    },
    "ecd_AwardGrantDateFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardGrantDateFairValue",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value as of Grant Date",
        "label": "Award Grant Date Fair Value"
       }
      }
     },
     "auth_ref": [
      "r1127"
     ]
    },
    "ecd_AwardTmgDiscLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgDiscLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Disclosures [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r1122"
     ]
    },
    "ecd_AwardTmgHowMnpiCnsdrdTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgHowMnpiCnsdrdTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Award Timing, How MNPI Considered",
        "label": "Award Timing, How MNPI Considered [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1122"
     ]
    },
    "ecd_AwardTmgMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgMethodTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Award Timing Method",
        "label": "Award Timing Method [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1122"
     ]
    },
    "ecd_AwardTmgMnpiCnsdrdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgMnpiCnsdrdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Award Timing MNPI Considered",
        "label": "Award Timing MNPI Considered [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1122"
     ]
    },
    "ecd_AwardTmgMnpiDiscTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgMnpiDiscTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Award Timing MNPI Disclosure",
        "label": "Award Timing MNPI Disclosure [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1122"
     ]
    },
    "ecd_AwardTmgPredtrmndFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgPredtrmndFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Award Timing Predetermined",
        "label": "Award Timing Predetermined [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1122"
     ]
    },
    "us-gaap_AwardTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AwardTypeAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONNarrativeDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedStockAuthorizedandAvailableforIssuanceDetails",
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Award Type [Axis]",
        "label": "Award Type [Axis]",
        "documentation": "Information by type of award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r373",
      "r374",
      "r375",
      "r377",
      "r378",
      "r379",
      "r380",
      "r381",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r393",
      "r394",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401"
     ]
    },
    "ecd_AwardUndrlygSecuritiesAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardUndrlygSecuritiesAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Underlying Securities",
        "label": "Award Underlying Securities Amount"
       }
      }
     },
     "auth_ref": [
      "r1125"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardsCloseToMnpiDiscIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Name",
        "label": "Awards Close in Time to MNPI Disclosures, Individual Name"
       }
      }
     },
     "auth_ref": [
      "r1124"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardsCloseToMnpiDiscTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Awards Close in Time to MNPI Disclosures",
        "label": "Awards Close in Time to MNPI Disclosures [Table]"
       }
      }
     },
     "auth_ref": [
      "r1123"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardsCloseToMnpiDiscTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Awards Close in Time to MNPI Disclosures, Table",
        "label": "Awards Close in Time to MNPI Disclosures [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1123"
     ]
    },
    "main_BDBHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BDBHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "BDB Holdings, LLC",
        "label": "BDB Holdings, LLC [Member]",
        "documentation": "BDB Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_BLIAcquisitionLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BLIAcquisitionLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "BLI Acquisition, LLC",
        "label": "BLI Acquisition, LLC [Member]",
        "documentation": "BLI Acquisition, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_BOFCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BOFCorporationMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "B-O-F Corporation",
        "label": "B-O-F Corporation [Member]",
        "documentation": "B-O-F Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "main_BPLoenbroHoldingsInc.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BPLoenbroHoldingsInc.Member",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "BP Loenbro Holdings Inc.",
        "label": "BP Loenbro Holdings Inc. [Member]",
        "documentation": "BP Loenbro Holdings Inc."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Basis of Presentation",
        "label": "Basis of Accounting, Policy [Policy Text Block]",
        "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": [
      "r1229"
     ]
    },
    "cef_BasisOfTransactionFeesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "BasisOfTransactionFeesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basis of Transaction Fees, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1042"
     ]
    },
    "main_BatjerTopCoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BatjerTopCoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Batjer TopCo, LLC",
        "label": "Batjer TopCo, LLC [Member]",
        "documentation": "Batjer TopCo, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "cef_BdcFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "BdcFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "BDC File Number"
       }
      }
     },
     "auth_ref": []
    },
    "main_BehaviorDevelopmentGroupHoldingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BehaviorDevelopmentGroupHoldingsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Behavior Development Group Holdings",
        "label": "Behavior Development Group Holdings [Member]",
        "documentation": "Behavior Development Group Holdings"
       }
      }
     },
     "auth_ref": []
    },
    "main_BerryAviationIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BerryAviationIncMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Berry Aviation, Inc.",
        "label": "Berry Aviation, Inc. [Member]",
        "documentation": "Berry Aviation, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_BettercloudIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BettercloudIncMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Bettercloud, Inc.",
        "label": "Bettercloud, Inc. [Member]",
        "documentation": "Bettercloud, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_BeveragesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BeveragesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Beverages",
        "label": "Beverages [Member]",
        "documentation": "Beverages"
       }
      }
     },
     "auth_ref": []
    },
    "main_BluestemBrandsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BluestemBrandsIncMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bluestem Brands, Inc.",
        "label": "Bluestem Brands, Inc. [Member]",
        "documentation": "Bluestem Brands, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_BoccellaPrecastProductsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BoccellaPrecastProductsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Boccella Precast Products LLC",
        "label": "Boccella Precast Products LLC [Member]",
        "documentation": "Boccella Precast Products LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_BolderPantherGroupLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BolderPantherGroupLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bolder Panther Group, LLC",
        "label": "Bolder Panther Group, LLC [Member]",
        "documentation": "Bolder Panther Group, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_BondBrandLoyaltyULCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BondBrandLoyaltyULCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bond Brand Loyalty ULC",
        "label": "Bond Brand Loyalty ULC [Member]",
        "documentation": "Bond Brand Loyalty ULC"
       }
      }
     },
     "auth_ref": []
    },
    "main_BrainworksSoftwareLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BrainworksSoftwareLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Brainworks Software, LLC",
        "label": "Brainworks Software, LLC [Member]",
        "documentation": "Brainworks Software, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_BrewerCraneHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BrewerCraneHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Brewer Crane Holdings, LLC",
        "label": "Brewer Crane Holdings, LLC [Member]",
        "documentation": "Brewer Crane Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_BridgeCapitalSolutionsCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BridgeCapitalSolutionsCorporationMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bridge Capital Solutions Corporation",
        "label": "Bridge Capital Solutions Corporation [Member]",
        "documentation": "Bridge Capital Solutions Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "main_BrightwoodCapitalFundInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BrightwoodCapitalFundInvestmentsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESDetails",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Brightwood Capital Fund Investments",
        "verboseLabel": "Brightwood Capital Fund Investments",
        "label": "Brightwood Capital Fund Investments [Member]",
        "documentation": "Brightwood Capital Fund Investments"
       }
      }
     },
     "auth_ref": []
    },
    "main_BucaCLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "BucaCLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Buca C, LLC",
        "label": "Buca C, LLC [Member]",
        "documentation": "Buca C, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "dei_BusinessContactMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "BusinessContactMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Contact [Member]",
        "documentation": "Business contact for the entity"
       }
      }
     },
     "auth_ref": [
      "r985",
      "r997"
     ]
    },
    "cef_BusinessDevelopmentCompanyFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "BusinessDevelopmentCompanyFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Development Company [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1009"
     ]
    },
    "country_CA": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2025",
     "localname": "CA",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Canada",
        "label": "CANADA"
       }
      }
     },
     "auth_ref": []
    },
    "main_CGMSParentLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CGMSParentLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "CGMS Parent LLC",
        "label": "CGMS Parent LLC [Member]",
        "documentation": "CGMS Parent LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_CQFluencyLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CQFluencyLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "CQ Fluency, LLC",
        "label": "CQ Fluency, LLC [Member]",
        "documentation": "CQ Fluency, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_CRCEvansUSABidcoInc.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CRCEvansUSABidcoInc.Member",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "CRC Evans USA Bidco, Inc.",
        "label": "CRC Evans USA Bidco, Inc. [Member]",
        "documentation": "CRC Evans USA Bidco, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_CaliforniaSplendorHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CaliforniaSplendorHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "California Splendor Holdings LLC",
        "label": "California Splendor Holdings LLC [Member]",
        "documentation": "California Splendor Holdings LLC"
       }
      }
     },
     "auth_ref": []
    },
    "cef_CapitalStockLongTermDebtAndOtherSecuritiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "CapitalStockLongTermDebtAndOtherSecuritiesAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital Stock, Long-Term Debt, and Other Securities [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r1010"
     ]
    },
    "cef_CapitalStockTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "CapitalStockTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital Stock [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1011"
     ]
    },
    "main_CareerTeamHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CareerTeamHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Career Team Holdings, LLC",
        "label": "Career Team Holdings, LLC [Member]",
        "documentation": "Career Team Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and cash equivalents",
        "netLabel": "Cash and cash equivalent, Cost",
        "verboseLabel": "Cash and cash equivalents",
        "label": "Cash and Cash Equivalent",
        "documentation": "Amount of cash and cash equivalent. Cash includes, but is not limited to, currency on hand, demand deposit with financial institution, and account with general characteristic of demand deposit. Cash equivalent includes, but is not limited to, short-term, highly liquid investment that is both readily convertible to known amount of cash and so near maturity that it presents insignificant risk of change in value because of change in interest rate."
       }
      }
     },
     "auth_ref": [
      "r12",
      "r134",
      "r881"
     ]
    },
    "us-gaap_CashAndCashEquivalentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CashAndCashEquivalentsAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and Cash Equivalents [Axis]",
        "label": "Cash and Cash Equivalents [Axis]",
        "documentation": "Information by type of cash and cash equivalent balance."
       }
      }
     },
     "auth_ref": [
      "r134"
     ]
    },
    "us-gaap_CashAndCashEquivalentsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CashAndCashEquivalentsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and cash equivalents, Fair Value",
        "label": "Cash and Cash Equivalents, Fair Value Disclosure",
        "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": [
      "r487",
      "r488",
      "r489",
      "r1333",
      "r1334"
     ]
    },
    "us-gaap_CashAndCashEquivalentsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CashAndCashEquivalentsPolicyTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and Cash Equivalents",
        "label": "Cash and Cash Equivalents, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for cash and cash equivalents, including the policy for determining which items are treated as cash equivalents. Other information that may be disclosed includes (1) the nature of any restrictions on the entity's use of its cash and cash equivalents, (2) whether the entity's cash and cash equivalents are insured or expose the entity to credit risk, (3) the classification of any negative balance accounts (overdrafts), and (4) the carrying basis of cash equivalents (for example, at cost) and whether the carrying amount of cash equivalents approximates fair value."
       }
      }
     },
     "auth_ref": [
      "r13"
     ]
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "CASH AND CASH EQUIVALENTS AS OF BEGINNING OF PERIOD",
        "periodEndLabel": "CASH AND CASH EQUIVALENTS AS OF END OF PERIOD",
        "label": "Cash, Cash Equivalent, Restricted Cash, and Restricted Cash Equivalent, Continuing Operation",
        "documentation": "Amount of cash and cash equivalent, and cash and cash equivalent restricted to withdrawal or usage; attributable to continuing operation. Cash includes, but is not limited to, currency on hand, demand deposit with financial institution, and account with general characteristic of demand deposit. Cash equivalent includes, but is not limited to, short-term, highly liquid investment that is both readily convertible to known amount of cash and so near maturity that it presents insignificant risk of change in value because of change in interest rate."
       }
      }
     },
     "auth_ref": [
      "r12",
      "r54",
      "r152"
     ]
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net increase (decrease) in cash and cash equivalents",
        "label": "Cash, Cash Equivalent, Restricted Cash, and Restricted Cash Equivalent, Period Increase (Decrease), Including Exchange Rate Effect and Discontinued Operation",
        "documentation": "Amount of increase (decrease) in cash and cash equivalent, and cash and cash equivalent restricted to withdrawal or usage; including effect from exchange rate change and including, but not limited to, discontinued operation. Cash includes, but is not limited to, currency on hand, demand deposit with financial institution, and account with general characteristic of demand deposit. Cash equivalent includes, but is not limited to, short-term, highly liquid investment that is both readily convertible to known amount of cash and so near maturity that it presents insignificant risk of change in value because of change in interest rate."
       }
      }
     },
     "auth_ref": [
      "r0",
      "r54"
     ]
    },
    "us-gaap_CashUninsuredAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CashUninsuredAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash exceeded federal deposit insurance corporation insurance protection levels",
        "label": "Cash, Uninsured Amount",
        "documentation": "The amount of cash as of the balance sheet date that is not insured by the Federal Deposit Insurance Corporation."
       }
      }
     },
     "auth_ref": []
    },
    "main_CenterPeakHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CenterPeakHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "CenterPeak Holdings, LLC",
        "label": "CenterPeak Holdings, LLC [Member]",
        "documentation": "CenterPeak Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_CentreTechnologiesHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CentreTechnologiesHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Centre Technologies Holdings, LLC",
        "label": "Centre Technologies Holdings, LLC [Member]",
        "documentation": "Centre Technologies Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_ChamberlinHoldingLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ChamberlinHoldingLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Chamberlin Holding LLC",
        "label": "Chamberlin Holding LLC [Member]",
        "documentation": "Chamberlin Holding LLC"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ChangedPeerGroupFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ChangedPeerGroupFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Changed Peer Group, Footnote",
        "label": "Changed Peer Group, Footnote [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1102"
     ]
    },
    "main_ChannelPartnersIntermediatecoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ChannelPartnersIntermediatecoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Channel Partners Intermediateco, LLC",
        "label": "Channel Partners Intermediateco, LLC [Member]",
        "documentation": "Channel Partners Intermediateco, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_CharpsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CharpsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Charps, LLC",
        "label": "Charps, LLC [Member]",
        "documentation": "Charps, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_ChemicalsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ChemicalsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Chemicals",
        "label": "Chemicals [Member]",
        "documentation": "Chemicals"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ChngInFrValAsOfVstngDtOfPrrYrEqtyAwrdsVstdInCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ChngInFrValAsOfVstngDtOfPrrYrEqtyAwrdsVstdInCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Change in Fair Value as of Vesting Date of Prior Year Equity Awards Vested in Covered Year",
        "label": "Change in Fair Value as of Vesting Date of Prior Year Equity Awards Vested in Covered Year [Member]"
       }
      }
     },
     "auth_ref": [
      "r1099"
     ]
    },
    "ecd_ChngInFrValOfOutsdngAndUnvstdEqtyAwrdsGrntdInPrrYrsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ChngInFrValOfOutsdngAndUnvstdEqtyAwrdsGrntdInPrrYrsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Year-over-Year Change in Fair Value of Equity Awards Granted in Prior Years That are Outstanding and Unvested",
        "label": "Year-over-Year Change in Fair Value of Equity Awards Granted in Prior Years That are Outstanding and Unvested [Member]"
       }
      }
     },
     "auth_ref": [
      "r1097"
     ]
    },
    "dei_CityAreaCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "CityAreaCode",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "City Area Code",
        "terseLabel": "City Area Code",
        "documentation": "Area code of city"
       }
      }
     },
     "auth_ref": []
    },
    "main_CladRexSteelLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CladRexSteelLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Clad-Rex Steel, LLC",
        "label": "Clad-Rex Steel, LLC [Member]",
        "documentation": "Clad-Rex Steel, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ClassOfStockDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ClassOfStockDomain",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share of stock differentiated by the voting rights the holder receives. Examples include, but are not limited to, common stock, redeemable preferred stock, nonredeemable preferred stock, and convertible stock."
       }
      }
     },
     "auth_ref": [
      "r87",
      "r136",
      "r137",
      "r138",
      "r155",
      "r159",
      "r184",
      "r185",
      "r187",
      "r189",
      "r194",
      "r195",
      "r254",
      "r283",
      "r285",
      "r286",
      "r287",
      "r290",
      "r291",
      "r326",
      "r327",
      "r329",
      "r330",
      "r332",
      "r334",
      "r337",
      "r338",
      "r341",
      "r344",
      "r351",
      "r492",
      "r643",
      "r644",
      "r645",
      "r646",
      "r658",
      "r662",
      "r664",
      "r666",
      "r667",
      "r668",
      "r669",
      "r670",
      "r671",
      "r672",
      "r673",
      "r674",
      "r701",
      "r725",
      "r753",
      "r850",
      "r851",
      "r852",
      "r853",
      "r854",
      "r1152",
      "r1232",
      "r1234",
      "r1242"
     ]
    },
    "ecd_CoSelectedMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CoSelectedMeasureAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Company Selected Measure Amount",
        "label": "Company Selected Measure Amount"
       }
      }
     },
     "auth_ref": [
      "r1103"
     ]
    },
    "ecd_CoSelectedMeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CoSelectedMeasureName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Company Selected Measure Name",
        "label": "Company Selected Measure Name"
       }
      }
     },
     "auth_ref": [
      "r1103"
     ]
    },
    "main_CodyPoolsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CodyPoolsIncMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cody Pools, Inc.",
        "label": "Cody Pools, Inc. [Member]",
        "documentation": "Cody Pools, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_ColonialElectricCompanyLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ColonialElectricCompanyLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Colonial Electric Company LLC",
        "label": "Colonial Electric Company LLC [Member]",
        "documentation": "Colonial Electric Company LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_CommercialServicesSuppliesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CommercialServicesSuppliesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commercial Services &amp; Supplies",
        "label": "Commercial Services &amp; Supplies [Member]",
        "documentation": "Commercial Services &amp; Supplies"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommitmentsAndContingencies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommitmentsAndContingencies",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitments and contingencies (Note K)",
        "label": "Commitments and Contingencies",
        "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": [
      "r36",
      "r70",
      "r602",
      "r700"
     ]
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommitmentsAndContingenciesDisclosureTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIES"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "COMMITMENTS AND CONTINGENCIES",
        "label": "Commitments and Contingencies Disclosure [Text Block]",
        "documentation": "The entire disclosure for commitments and contingencies."
       }
      }
     },
     "auth_ref": [
      "r59",
      "r275",
      "r276",
      "r863",
      "r1266",
      "r1271"
     ]
    },
    "us-gaap_CommonStockDividendsPerShareCashPaid": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommonStockDividendsPerShareCashPaid",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofDividendInformationDetails",
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividends paid, per share (in dollars per share)",
        "label": "Common Stock, Dividends, Per Share, Cash Paid",
        "documentation": "Aggregate dividends paid during the period for each share of common stock outstanding."
       }
      }
     },
     "auth_ref": [
      "r64"
     ]
    },
    "us-gaap_CommonStockDividendsPerShareDeclared": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommonStockDividendsPerShareDeclared",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock, dividend, per share, declared (in dollars per share)",
        "label": "Common Stock, Dividends, Per Share, Declared",
        "documentation": "Aggregate dividends declared during the period for each share of common stock outstanding."
       }
      }
     },
     "auth_ref": [
      "r64"
     ]
    },
    "us-gaap_CommonStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommonStockMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common Stock",
        "label": "Common Stock [Member]",
        "documentation": "Stock that is subordinate to all other stock of the issuer."
       }
      }
     },
     "auth_ref": [
      "r964",
      "r965",
      "r966",
      "r969",
      "r970",
      "r971",
      "r972",
      "r1238",
      "r1239",
      "r1241",
      "r1331",
      "r1406",
      "r1428"
     ]
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommonStockParOrStatedValuePerShare",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock, par value (in dollars per share)",
        "label": "Common Stock, Par or Stated Value Per Share",
        "documentation": "Face amount or stated value per share of common stock."
       }
      }
     },
     "auth_ref": [
      "r39"
     ]
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommonStockSharesAuthorized",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock, shares authorized (in shares)",
        "label": "Common Stock, Shares Authorized",
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws."
       }
      }
     },
     "auth_ref": [
      "r39",
      "r701"
     ]
    },
    "us-gaap_CommonStockSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommonStockSharesIssued",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock, shares issued (in shares)",
        "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": [
      "r39"
     ]
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommonStockSharesOutstanding",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Common stock, shares outstanding (in shares)",
        "periodStartLabel": "Balance as of beginning of period (in shares)",
        "periodEndLabel": "Balance as of ending of period (in shares)",
        "label": "Common Stock, Shares, Outstanding",
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation."
       }
      }
     },
     "auth_ref": [
      "r8",
      "r39",
      "r701",
      "r721",
      "r1428",
      "r1429"
     ]
    },
    "us-gaap_CommonStockValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommonStockValue",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock, $0.01 par value per share (150,000,000 shares authorized; 92,454,655 and 89,834,849 shares issued and outstanding as of March\u00a031, 2026 and December\u00a031, 2025, respectively)",
        "label": "Common Stock, Value, Issued",
        "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": [
      "r39",
      "r327",
      "r333",
      "r603",
      "r946"
     ]
    },
    "main_CommunicationsEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CommunicationsEquipmentMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Communications Equipment",
        "label": "Communications Equipment [Member]",
        "documentation": "Communications Equipment"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_CompActuallyPaidVsCoSelectedMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CompActuallyPaidVsCoSelectedMeasureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Compensation Actually Paid vs. Company Selected Measure",
        "label": "Compensation Actually Paid vs. Company Selected Measure [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1108"
     ]
    },
    "ecd_CompActuallyPaidVsNetIncomeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CompActuallyPaidVsNetIncomeTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Compensation Actually Paid vs. Net Income",
        "label": "Compensation Actually Paid vs. Net Income [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1107"
     ]
    },
    "ecd_CompActuallyPaidVsOtherMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CompActuallyPaidVsOtherMeasureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Compensation Actually Paid vs. Other Measure",
        "label": "Compensation Actually Paid vs. Other Measure [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1109"
     ]
    },
    "ecd_CompActuallyPaidVsTotalShareholderRtnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CompActuallyPaidVsTotalShareholderRtnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Compensation Actually Paid vs. Total Shareholder Return",
        "label": "Compensation Actually Paid vs. Total Shareholder Return [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1106"
     ]
    },
    "main_CompareNetworksTopcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CompareNetworksTopcoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "CompareNetworks Topco, LLC",
        "label": "CompareNetworks Topco, LLC [Member]",
        "documentation": "CompareNetworks Topco, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_CompassSystemsSalesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CompassSystemsSalesLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Compass Systems &amp; Sales, LLC",
        "label": "Compass Systems &amp; Sales, LLC [Member]",
        "documentation": "Compass Systems &amp; Sales, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_ComputerDataSourceLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ComputerDataSourceLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Computer Data Source, LLC",
        "label": "Computer Data Source, LLC [Member]",
        "documentation": "Computer Data Source, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_ComputersPeripheralsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ComputersPeripheralsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Computers &amp; Peripherals",
        "label": "Computers &amp; Peripherals [Member]",
        "documentation": "Computers &amp; Peripherals"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ConcentrationRiskBenchmarkDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ConcentrationRiskBenchmarkDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Concentration Risk Benchmark [Domain]",
        "label": "Concentration Risk Benchmark [Domain]",
        "documentation": "The denominator in a calculation of a disclosed concentration risk percentage."
       }
      }
     },
     "auth_ref": [
      "r197",
      "r222",
      "r634",
      "r635",
      "r862",
      "r1245",
      "r1246",
      "r1247",
      "r1248",
      "r1249"
     ]
    },
    "us-gaap_ConcentrationRiskByBenchmarkAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ConcentrationRiskByBenchmarkAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Concentration Risk Benchmark [Axis]",
        "label": "Concentration Risk Benchmark [Axis]",
        "documentation": "Information by benchmark of concentration risk."
       }
      }
     },
     "auth_ref": [
      "r197",
      "r222",
      "r634",
      "r635",
      "r862",
      "r1245",
      "r1246",
      "r1247",
      "r1248",
      "r1249"
     ]
    },
    "us-gaap_ConcentrationRiskByTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ConcentrationRiskByTypeAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Concentration Risk Type [Axis]",
        "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": [
      "r197",
      "r222",
      "r634",
      "r635",
      "r862",
      "r1245",
      "r1246",
      "r1247",
      "r1248",
      "r1249"
     ]
    },
    "us-gaap_ConcentrationRiskPercentage1": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ConcentrationRiskPercentage1",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Concentration risk (as a percent)",
        "label": "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": [
      "r197",
      "r222",
      "r1245",
      "r1246",
      "r1247",
      "r1248",
      "r1249"
     ]
    },
    "us-gaap_ConcentrationRiskTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ConcentrationRiskTypeDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Concentration Risk Type [Domain]",
        "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": [
      "r197",
      "r222",
      "r634",
      "r635",
      "r862",
      "r1245",
      "r1246",
      "r1247",
      "r1248",
      "r1249"
     ]
    },
    "srt_CondensedBalanceSheetStatementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "CondensedBalanceSheetStatementTable",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Condensed Balance Sheet Statement [Table]",
        "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": [
      "r89",
      "r156",
      "r164",
      "r596",
      "r1154"
     ]
    },
    "srt_CondensedBalanceSheetStatementsCaptionsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "CondensedBalanceSheetStatementsCaptionsLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Condensed Balance Sheet Statements, Captions [Line Items]",
        "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": [
      "r89",
      "r156",
      "r164",
      "r596",
      "r1154"
     ]
    },
    "srt_CondensedIncomeStatementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "CondensedIncomeStatementTable",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Condensed Income Statement [Table]",
        "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": [
      "r89",
      "r156",
      "r164",
      "r596",
      "r1154"
     ]
    },
    "srt_CondensedIncomeStatementsCaptionsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "CondensedIncomeStatementsCaptionsLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Condensed Income Statements, Captions [Line Items]",
        "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": [
      "r89",
      "r156",
      "r164",
      "r596",
      "r1154"
     ]
    },
    "main_ConnectTelecommunicationsSolutionsHoldingsInc.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ConnectTelecommunicationsSolutionsHoldingsInc.Member",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Boccella Precast Products LLC",
        "label": "Connect Telecommunications Solutions Holdings, Inc. [Member]",
        "documentation": "Connect Telecommunications Solutions Holdings, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ConsolidationPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ConsolidationPolicyTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Principles of Consolidation",
        "label": "Consolidation, Policy [Policy Text Block]",
        "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": [
      "r26",
      "r889"
     ]
    },
    "main_ConstructionEngineeringMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ConstructionEngineeringMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Construction &amp; Engineering",
        "label": "Construction &amp; Engineering [Member]",
        "documentation": "Construction &amp; Engineering"
       }
      }
     },
     "auth_ref": []
    },
    "dei_ContactPersonnelName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "ContactPersonnelName",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contact Personnel Name",
        "documentation": "Name of contact personnel"
       }
      }
     },
     "auth_ref": []
    },
    "main_ContainersPackagingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ContainersPackagingMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Containers &amp; Packaging",
        "label": "Containers &amp; Packaging [Member]",
        "documentation": "Containers &amp; Packaging"
       }
      }
     },
     "auth_ref": []
    },
    "main_CoreStackInc.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CoreStackInc.Member",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "CoreStack, Inc.",
        "label": "CoreStack, Inc. [Member]",
        "documentation": "CoreStack, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_CoreTransformersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CoreTransformersMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Core Transformers",
        "label": "Core Transformers [Member]",
        "documentation": "Core Transformers"
       }
      }
     },
     "auth_ref": []
    },
    "main_CoregisticsBuyerLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CoregisticsBuyerLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Coregistics Buyer LLC",
        "label": "Coregistics Buyer LLC [Member]",
        "documentation": "Coregistics Buyer LLC"
       }
      }
     },
     "auth_ref": []
    },
    "cef_CoregistrantAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "CoregistrantAxis",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Coregistrant [Axis]"
       }
      }
     },
     "auth_ref": [
      "r1009"
     ]
    },
    "main_CorporateFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CorporateFacilityMember",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Corporate Facility",
        "label": "Corporate Facility [Member]",
        "documentation": "Corporate Facility"
       }
      }
     },
     "auth_ref": []
    },
    "srt_CounterpartyNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "CounterpartyNameAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSSummarizesofMainStreetsPurchasesofSharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Counterparty Name [Axis]",
        "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": [
      "r119",
      "r120",
      "r155",
      "r162",
      "r163",
      "r296",
      "r339",
      "r515",
      "r536",
      "r598",
      "r882",
      "r883",
      "r884",
      "r1171",
      "r1172",
      "r1173",
      "r1174",
      "r1175",
      "r1176",
      "r1177",
      "r1178",
      "r1179",
      "r1326",
      "r1327",
      "r1328",
      "r1329"
     ]
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "CoverAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cover [Abstract]",
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "main_CreativeFoamCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CreativeFoamCorporationMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Creative Foam Corporation",
        "label": "Creative Foam Corporation [Member]",
        "documentation": "Creative Foam Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CreditFacilityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CreditFacilityAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Credit Facility [Axis]",
        "label": "Credit Facility [Axis]",
        "documentation": "Information by type of credit facility. Credit facilities provide capital to borrowers without the need to structure a loan for each borrowing."
       }
      }
     },
     "auth_ref": [
      "r282",
      "r1274"
     ]
    },
    "us-gaap_CreditFacilityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CreditFacilityDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Credit Facility [Domain]",
        "label": "Credit Facility [Domain]",
        "documentation": "Type of credit facility. Credit facilities provide capital to borrowers without the need to structure a loan for each borrowing."
       }
      }
     },
     "auth_ref": [
      "r282",
      "r1274"
     ]
    },
    "main_CumulativeDividendsNonCash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CumulativeDividendsNonCash",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cumulative dividends",
        "label": "Cumulative Dividends, Non-cash",
        "documentation": "Cumulative Dividends, Non-cash"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CurrentFederalStateAndLocalTaxExpenseBenefitAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CurrentFederalStateAndLocalTaxExpenseBenefitAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current tax expense:",
        "label": "Current Federal, State and Local, Tax Expense (Benefit) [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_CurrentFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "CurrentFiscalYearEndDate",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Fiscal Year End Date",
        "terseLabel": "Current Fiscal Year End Date",
        "documentation": "End date of current fiscal year in the format --MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "main_CybermediaTechnologiesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "CybermediaTechnologiesLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cybermedia Technologies, LLC",
        "label": "Cybermedia Technologies, LLC [Member]",
        "documentation": "Cybermedia Technologies, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_DMAIndustriesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DMAIndustriesLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Buca C, LLC",
        "label": "DMA Industries, LLC [Member]",
        "documentation": "DMA Industries, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_DTEEnterprisesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DTEEnterprisesLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "DTE Enterprises, LLC",
        "label": "DTE Enterprises, LLC [Member]",
        "documentation": "DTE Enterprises, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_DatacomLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DatacomLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Datacom, LLC",
        "label": "Datacom, LLC [Member]",
        "documentation": "Datacom, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtAndEquitySecuritiesRealizedGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtAndEquitySecuritiesRealizedGainLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total net realized gain (loss)",
        "negatedTerseLabel": "Net realized (gain) loss",
        "verboseLabel": "Amount of Realized Gain/(Loss)",
        "label": "Debt and Equity Securities, Realized Gain (Loss)",
        "documentation": "Amount of realized gain (loss) on investment in debt and equity securities."
       }
      }
     },
     "auth_ref": [
      "r738",
      "r739",
      "r827",
      "r828",
      "r829",
      "r1183",
      "r1184"
     ]
    },
    "main_DebtAndEquitySecuritiesRealizedGainLossMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DebtAndEquitySecuritiesRealizedGainLossMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net Changes from Unrealized to Realized",
        "label": "Debt and Equity Securities, Realized Gain (Loss) [Member]",
        "documentation": "Debt and Equity Securities, Realized Gain (Loss)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtAndEquitySecuritiesUnrealizedGainLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total net unrealized appreciation (depreciation)",
        "negatedTerseLabel": "Net unrealized (appreciation) depreciation",
        "netLabel": "Total net unrealized appreciation (depreciation)",
        "verboseLabel": "Amount of Unrealized Gain/(Loss)",
        "label": "Debt and Equity Securities, Unrealized Gain (Loss)",
        "documentation": "Amount of unrealized gain (loss) on investment in debt and equity securities."
       }
      }
     },
     "auth_ref": [
      "r744",
      "r745",
      "r830",
      "r831",
      "r832",
      "r1183",
      "r1184"
     ]
    },
    "main_DebtAndEquitySecuritiesUnrealizedGainLossMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DebtAndEquitySecuritiesUnrealizedGainLossMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net Unrealized Appreciation (Depreciation)",
        "label": "Debt and Equity Securities, Unrealized Gain (Loss) [Member]",
        "documentation": "Debt and Equity Securities, Unrealized Gain (Loss)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtDisclosureTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBT"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "DEBT",
        "label": "Debt Disclosure [Text Block]",
        "documentation": "The entire disclosure for information about short-term and long-term debt arrangements, which includes amounts of borrowings under each line of credit, note payable, commercial paper issue, bonds indenture, debenture issue, own-share lending arrangements and any other contractual agreement to repay funds, and about the underlying arrangements, rationale for a classification as long-term, including repayment terms, interest rates, collateral provided, restrictions on use of assets and activities, whether or not in compliance with debt covenants, and other matters important to users of the financial statements, such as the effects of refinancing and noncompliance with debt covenants."
       }
      }
     },
     "auth_ref": [
      "r60",
      "r155",
      "r157",
      "r268",
      "r269",
      "r270",
      "r271",
      "r272",
      "r281",
      "r282",
      "r292",
      "r298",
      "r299",
      "r300",
      "r301",
      "r302",
      "r303",
      "r308",
      "r315",
      "r316",
      "r318",
      "r447",
      "r504"
     ]
    },
    "us-gaap_DebtInstrumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument [Axis]",
        "terseLabel": "Debt Instrument [Axis]",
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities."
       }
      }
     },
     "auth_ref": [
      "r10",
      "r29",
      "r30",
      "r67",
      "r69",
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r299",
      "r304",
      "r305",
      "r306",
      "r307",
      "r309",
      "r310",
      "r311",
      "r312",
      "r313",
      "r314",
      "r908",
      "r909",
      "r910",
      "r911",
      "r912",
      "r945",
      "r1230",
      "r1231",
      "r1233",
      "r1237",
      "r1267",
      "r1268",
      "r1269",
      "r1348",
      "r1350",
      "r1364"
     ]
    },
    "us-gaap_DebtInstrumentBasisSpreadOnVariableRate1": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentBasisSpreadOnVariableRate1",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instrument, basis spread on variable rate (as a percent)",
        "label": "Debt Instrument, Basis Spread on Variable Rate",
        "documentation": "Percentage points added to the reference rate to compute the variable rate on the debt instrument."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentCarryingAmount",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Outstanding Balance",
        "verboseLabel": "Debt instrument, outstanding balance",
        "label": "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": [
      "r10",
      "r69",
      "r319"
     ]
    },
    "main_DebtInstrumentCreditSpreadAdjustment": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DebtInstrumentCreditSpreadAdjustment",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instrument, credit spread adjustment (as a percent)",
        "label": "Debt Instrument, Credit Spread Adjustment",
        "documentation": "Debt Instrument, Credit Spread Adjustment"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentFaceAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentFaceAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Debt instrument, par value",
        "terseLabel": "Face amount",
        "label": "Debt Instrument, Face Amount",
        "documentation": "Face (par) amount of debt instrument at time of issuance."
       }
      }
     },
     "auth_ref": [
      "r293",
      "r504",
      "r505",
      "r909",
      "r910",
      "r945"
     ]
    },
    "main_DebtInstrumentFaceAmountAdditionalIssuance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DebtInstrumentFaceAmountAdditionalIssuance",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Face amount, additional issuance",
        "label": "Debt Instrument, Face Amount, Additional Issuance",
        "documentation": "Debt Instrument, Face Amount, Additional Issuance"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentFairValue",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Estimated Fair Value",
        "label": "Debt Instrument, Fair Value Disclosure",
        "documentation": "Fair value portion of debt instrument payable, including, but not limited to, notes payable and loans payable."
       }
      }
     },
     "auth_ref": [
      "r306",
      "r487",
      "r488",
      "r489",
      "r490",
      "r909",
      "r910",
      "r1334",
      "r1335",
      "r1336",
      "r1337",
      "r1339"
     ]
    },
    "us-gaap_DebtInstrumentInterestRateDuringPeriod": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentInterestRateDuringPeriod",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofAverageAmountofTotalBorrowingsOutstandingandOverallWeightedAverageEffectiveInterestRateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "netLabel": "Weighted-average effective interest rate",
        "terseLabel": "Average interest rate (as a percent)",
        "label": "Debt Instrument, Interest Rate During Period",
        "documentation": "The average effective interest rate during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r311",
      "r1348"
     ]
    },
    "us-gaap_DebtInstrumentInterestRateEffectivePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentInterestRateEffectivePercentage",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate (as a percent)",
        "label": "Debt Instrument, Interest Rate, Effective Percentage",
        "documentation": "Effective interest rate for the funds borrowed under the debt agreement considering interest compounding and original issue discount or premium."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r322",
      "r504",
      "r505",
      "r945"
     ]
    },
    "us-gaap_DebtInstrumentInterestRateStatedPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentInterestRateStatedPercentage",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instrument, interest rate, stated (as a percent)",
        "label": "Debt Instrument, Interest Rate, Stated Percentage",
        "documentation": "Contractual interest rate for funds borrowed, under the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r294"
     ]
    },
    "main_DebtInstrumentInterestRateYieldToWorst": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DebtInstrumentInterestRateYieldToWorst",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Instrument, interest rate, yield-to-worst",
        "label": "Debt Instrument, Interest Rate, Yield-To-Worst",
        "documentation": "Debt Instrument, Interest Rate, Yield-To-Worst"
       }
      }
     },
     "auth_ref": []
    },
    "main_DebtInstrumentIssuancePricePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DebtInstrumentIssuancePricePercentage",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instrument, issuance price (as a percent)",
        "label": "Debt Instrument, Issuance Price, Percentage",
        "documentation": "Debt Instrument, Issuance Price, Percentage"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofAverageAmountofTotalBorrowingsOutstandingandOverallWeightedAverageEffectiveInterestRateDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Instrument [Line Items]",
        "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": [
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r299",
      "r304",
      "r305",
      "r306",
      "r307",
      "r309",
      "r310",
      "r311",
      "r312",
      "r313",
      "r314",
      "r317",
      "r447",
      "r596",
      "r908",
      "r909",
      "r910",
      "r911",
      "r912",
      "r945",
      "r1230",
      "r1231",
      "r1233",
      "r1237",
      "r1348",
      "r1350"
     ]
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentNameDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Instrument, Name [Domain]",
        "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": [
      "r10",
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r299",
      "r304",
      "r305",
      "r306",
      "r307",
      "r309",
      "r310",
      "r311",
      "r312",
      "r313",
      "r314",
      "r908",
      "r909",
      "r910",
      "r911",
      "r912",
      "r945",
      "r1230",
      "r1231",
      "r1233",
      "r1237",
      "r1267",
      "r1268",
      "r1269",
      "r1348",
      "r1350",
      "r1364"
     ]
    },
    "main_DebtInstrumentNumberOfLenders": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DebtInstrumentNumberOfLenders",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instrument, number of lenders",
        "label": "Debt Instrument, Number Of Lenders",
        "documentation": "Debt Instrument, Number Of Lenders"
       }
      }
     },
     "auth_ref": []
    },
    "main_DebtInstrumentRemainingTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DebtInstrumentRemainingTerm",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instrument, remaining term (in years)",
        "label": "Debt Instrument, Remaining Term",
        "documentation": "Debt Instrument, Remaining Term"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentTable",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofAverageAmountofTotalBorrowingsOutstandingandOverallWeightedAverageEffectiveInterestRateDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Long-Term Debt Instruments [Table]",
        "label": "Schedule of Long-Term Debt Instruments [Table]",
        "documentation": "Disclosure of information about long-term debt instrument or arrangement."
       }
      }
     },
     "auth_ref": [
      "r10",
      "r22",
      "r24",
      "r27",
      "r62",
      "r63",
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r299",
      "r304",
      "r305",
      "r306",
      "r307",
      "r309",
      "r310",
      "r311",
      "r312",
      "r313",
      "r314",
      "r317",
      "r447",
      "r596",
      "r908",
      "r909",
      "r910",
      "r911",
      "r912",
      "r945",
      "r1230",
      "r1231",
      "r1233",
      "r1237",
      "r1348",
      "r1350"
     ]
    },
    "us-gaap_DebtInstrumentTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentTerm",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instrument, term (in years)",
        "label": "Debt Instrument, 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/2025",
     "localname": "DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Unamortized Debt Issuance Costs",
        "label": "Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net",
        "documentation": "Amount of unamortized debt discount (premium) and debt issuance costs."
       }
      }
     },
     "auth_ref": [
      "r304",
      "r320",
      "r503",
      "r504",
      "r505",
      "r909",
      "r910",
      "r945"
     ]
    },
    "us-gaap_DebtPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtPolicyTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred Financing Costs",
        "label": "Debt, Policy [Policy Text Block]",
        "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": [
      "r5"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleWeightedAverageYield": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtSecuritiesAvailableForSaleWeightedAverageYield",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted-average annual effective yield (as a percent)",
        "label": "Debt Securities, Available-for-Sale, Weighted Average Yield",
        "documentation": "Weighted average yield of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r1165"
     ]
    },
    "main_DebtSecuritiesFirstLienMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DebtSecuritiesFirstLienMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "First lien debt",
        "label": "Debt Securities, First Lien [Member]",
        "documentation": "Debt Securities, First Lien"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtSecuritiesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt",
        "netLabel": "Debt investments",
        "label": "Debt Securities [Member]",
        "documentation": "Debt instrument issued by corporations, governments and governmental agencies, municipalities, and other institutions."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r966",
      "r1432"
     ]
    },
    "main_DebtSecuritiesSecondLienMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DebtSecuritiesSecondLienMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Second lien debt",
        "label": "Debt Securities, Second Lien [Member]",
        "documentation": "Debt Securities, Second Lien"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtWeightedAverageInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtWeightedAverageInterestRate",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instrument, weighted-average annual interest rate (as a percent)",
        "label": "Debt, Weighted Average Interest Rate",
        "documentation": "Weighted average interest rate of debt outstanding."
       }
      }
     },
     "auth_ref": []
    },
    "main_December2025NotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "December2025NotesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "December 2025 Notes",
        "label": "December 2025 Notes [Member]",
        "documentation": "December 2025 Notes"
       }
      }
     },
     "auth_ref": []
    },
    "main_December2025SeriesANotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "December2025SeriesANotesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "December 2025 Series A Notes",
        "label": "December 2025 Series A Notes [Member]",
        "documentation": "December 2025 Series A Notes"
       }
      }
     },
     "auth_ref": []
    },
    "main_December2025SeriesBNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "December2025SeriesBNotesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "December 2025 Series B Notes",
        "label": "December 2025 Series B Notes [Member]",
        "documentation": "December 2025 Series B Notes"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredFinanceCostsGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DeferredFinanceCostsGross",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instrument, unamortized debt issuance costs",
        "label": "Debt Issuance Costs, Gross",
        "documentation": "Amount, before accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs."
       }
      }
     },
     "auth_ref": [
      "r1348",
      "r1350"
     ]
    },
    "us-gaap_DeferredFinanceCostsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DeferredFinanceCostsNet",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Deferred financing costs (net of accumulated amortization of $18,351 and $17,601 as of March\u00a031, 2026 and December\u00a031, 2025, respectively)",
        "terseLabel": "Deferred financing costs (net of accumulated amortization of $3,684 and $3,314 as of March\u00a031, 2026 and December\u00a031, 2025, respectively)",
        "label": "Debt Issuance Costs, Net",
        "documentation": "Amount, after accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs."
       }
      }
     },
     "auth_ref": [
      "r1279",
      "r1347",
      "r1348",
      "r1350"
     ]
    },
    "us-gaap_DeferredIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DeferredIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Deferred taxes",
        "label": "Deferred Income Tax Expense (Benefit)",
        "documentation": "Amount of deferred income tax expense (benefit) pertaining to income (loss) from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r4",
      "r85",
      "r1230",
      "r1236"
     ]
    },
    "us-gaap_DeferredIncomeTaxLiabilitiesNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DeferredIncomeTaxLiabilitiesNet",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred tax liability, net",
        "label": "Deferred Income Tax Liabilities, Net",
        "documentation": "Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences with jurisdictional netting."
       }
      }
     },
     "auth_ref": [
      "r421",
      "r422",
      "r600"
     ]
    },
    "main_DeferredTaxExpenseIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DeferredTaxExpenseIncomeAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred tax expense (benefit):",
        "label": "Deferred Tax Expense (Income) [Abstract]",
        "documentation": "Deferred Tax Expense (Income)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DeferredTaxLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMENarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net deferred tax liability",
        "label": "Deferred Tax Liabilities, Net",
        "documentation": "Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences without jurisdictional netting."
       }
      }
     },
     "auth_ref": [
      "r1319"
     ]
    },
    "dei_DelayedOrContinuousOffering": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DelayedOrContinuousOffering",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Delayed or Continuous Offering"
       }
      }
     },
     "auth_ref": [
      "r1008",
      "r1009",
      "r1088"
     ]
    },
    "main_DigitalProductsHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DigitalProductsHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Digital Products Holdings LLC",
        "label": "Digital Products Holdings LLC [Member]",
        "documentation": "Digital Products Holdings LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_DirectMarketingSolutionsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DirectMarketingSolutionsIncMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Direct Marketing Solutions, Inc.",
        "label": "Direct Marketing Solutions, Inc. [Member]",
        "documentation": "Direct Marketing Solutions, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "srt_DirectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "DirectorMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedStockAuthorizedandAvailableforIssuanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Director",
        "label": "Director [Member]",
        "documentation": "Person serving on board of directors."
       }
      }
     },
     "auth_ref": [
      "r1168",
      "r1255",
      "r1415"
     ]
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATION"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SHARE-BASED COMPENSATION",
        "label": "Share-Based Payment Arrangement [Text Block]",
        "documentation": "The entire disclosure for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r368",
      "r372",
      "r403",
      "r404",
      "r406",
      "r924"
     ]
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Restricted Stock Issued",
        "label": "Disclosure of Share-Based Compensation Arrangements by Share-Based Payment Award [Table Text Block]",
        "documentation": "Tabular disclosure of share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r1289"
     ]
    },
    "cef_DistributionServicingFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "DistributionServicingFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Distribution/Servicing Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1048"
     ]
    },
    "cef_DistributionsMayReducePrincipalTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "DistributionsMayReducePrincipalTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Distributions May Reduce Principal [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1018"
     ]
    },
    "main_DistributorsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DistributorsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Distributors",
        "label": "Distributors [Member]",
        "documentation": "Distributors"
       }
      }
     },
     "auth_ref": []
    },
    "main_DiversifiedConsumerServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DiversifiedConsumerServicesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Diversified Consumer Services",
        "label": "Diversified Consumer Services [Member]",
        "documentation": "Diversified Consumer Services"
       }
      }
     },
     "auth_ref": []
    },
    "cef_DividendAndInterestExpensesOnShortSalesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "DividendAndInterestExpensesOnShortSalesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend and Interest Expenses on Short Sales [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1048"
     ]
    },
    "main_DividendDistributionsIncomeTaxDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DividendDistributionsIncomeTaxDisclosureTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOME"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "DIVIDENDS, DISTRIBUTIONS AND TAXABLE INCOME",
        "label": "Dividend, Distributions, Income Tax Disclosure [Text Block]",
        "documentation": "Dividend, Distributions, Income Tax Disclosure"
       }
      }
     },
     "auth_ref": []
    },
    "cef_DividendExpenseOnPreferredSharesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "DividendExpenseOnPreferredSharesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend Expenses on Preferred Shares [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1048"
     ]
    },
    "dei_DividendOrInterestReinvestmentPlanOnly": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DividendOrInterestReinvestmentPlanOnly",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend or Interest Reinvestment Plan Only"
       }
      }
     },
     "auth_ref": [
      "r1008",
      "r1009",
      "r1088"
     ]
    },
    "cef_DividendReinvestmentAndCashPurchaseFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "DividendReinvestmentAndCashPurchaseFees",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend Reinvestment and Cash Purchase Fees"
       }
      }
     },
     "auth_ref": [
      "r1034"
     ]
    },
    "us-gaap_DividendsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DividendsAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofDividendInformationDetails",
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividends [Axis]",
        "label": "Dividends [Axis]",
        "documentation": "Information by event wherein earnings are distributed to shareholder."
       }
      }
     },
     "auth_ref": [
      "r1281",
      "r1282"
     ]
    },
    "us-gaap_DividendsCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DividendsCommonStock",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Dividends to stockholders",
        "label": "Dividends, Common Stock",
        "documentation": "Amount of paid and unpaid common stock dividends declared with the form of settlement in cash, stock and payment-in-kind (PIK)."
       }
      }
     },
     "auth_ref": [
      "r2",
      "r64"
     ]
    },
    "main_DividendsDeclaredButNotYetPaidMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DividendsDeclaredButNotYetPaidMember",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividends Declared But Not Yet Paid",
        "label": "Dividends Declared But Not Yet Paid [Member]",
        "documentation": "Dividends Declared But Not Yet Paid"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DividendsDeclaredTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DividendsDeclaredTableTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMETables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Dividend Information",
        "label": "Dividends Declared [Table Text Block]",
        "documentation": "Tabular disclosure of information related to dividends declared, including paid and unpaid dividends."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DividendsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DividendsDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofDividendInformationDetails",
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividends [Domain]",
        "label": "Dividends [Domain]",
        "documentation": "Event wherein earnings are distributed to shareholder."
       }
      }
     },
     "auth_ref": [
      "r1281",
      "r1282"
     ]
    },
    "us-gaap_DividendsPayableCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DividendsPayableCurrentAndNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Dividend payable",
        "terseLabel": "Dividend payable to MSCC and its subsidiaries",
        "label": "Dividends Payable",
        "documentation": "Carrying value as of the balance sheet date of dividends declared but unpaid on equity securities issued by the entity and outstanding."
       }
      }
     },
     "auth_ref": [
      "r30",
      "r35",
      "r68",
      "r976",
      "r1365"
     ]
    },
    "us-gaap_DividendsPayableLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DividendsPayableLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofDividendInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividends Payable [Line Items]",
        "label": "Dividends Payable [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_DividendsPayableTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DividendsPayableTable",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofDividendInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividends Payable [Table]",
        "label": "Dividends Payable [Table]",
        "documentation": "Disclosure of information about distribution of earnings to shareholder declared but not yet paid. Includes, but is not limited to, total amount and amount per share of distribution, declaration date, and date to be paid."
       }
      }
     },
     "auth_ref": [
      "r15"
     ]
    },
    "dei_DocumentFiscalPeriodFocus": {
     "xbrltype": "fiscalPeriodItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentFiscalPeriodFocus",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Period Focus",
        "terseLabel": "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/2025",
     "localname": "DocumentFiscalYearFocus",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Year Focus",
        "terseLabel": "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_DocumentPeriodEndDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Period End Date",
        "terseLabel": "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_DocumentQuarterlyReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentQuarterlyReport",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Quarterly Report",
        "terseLabel": "Document Quarterly Report",
        "documentation": "Boolean flag that is true only for a form used as an quarterly report."
       }
      }
     },
     "auth_ref": [
      "r984"
     ]
    },
    "dei_DocumentRegistrationStatement": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentRegistrationStatement",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Registration Statement",
        "documentation": "Boolean flag that is true only for a form used as a registration statement."
       }
      }
     },
     "auth_ref": [
      "r980"
     ]
    },
    "dei_DocumentTransitionReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentTransitionReport",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Transition Report",
        "terseLabel": "Document Transition Report",
        "documentation": "Boolean flag that is true only for a form used as a transition report."
       }
      }
     },
     "auth_ref": [
      "r1089"
     ]
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentType",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Type",
        "terseLabel": "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": []
    },
    "main_DoralHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DoralHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Doral Holdings, LLC",
        "label": "Doral Holdings, LLC [Member]",
        "documentation": "Doral Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_DosRiosPartnersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DosRiosPartnersMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dos Rios Partners",
        "label": "Dos Rios Partners [Member]",
        "documentation": "Dos Rios Partners"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_DvddsOrOthrErngsPdOnEqtyAwrdsNtOthrwsRflctdInTtlCompForCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "DvddsOrOthrErngsPdOnEqtyAwrdsNtOthrwsRflctdInTtlCompForCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividends or Other Earnings Paid on Equity Awards not Otherwise Reflected in Total Compensation for Covered Year",
        "label": "Dividends or Other Earnings Paid on Equity Awards not Otherwise Reflected in Total Compensation for Covered Year [Member]"
       }
      }
     },
     "auth_ref": [
      "r1101"
     ]
    },
    "main_DynamicCommunitiesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "DynamicCommunitiesLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dynamic Communities, LLC",
        "label": "Dynamic Communities, LLC [Member]",
        "documentation": "Dynamic Communities, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareBasic": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EarningsPerShareBasic",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NET INVESTMENT INCOME PER SHARE\u2014 BASIC (in dollars per share)",
        "label": "Earnings Per Share, 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": [
      "r127",
      "r147",
      "r170",
      "r171",
      "r172",
      "r173",
      "r174",
      "r175",
      "r176",
      "r177",
      "r182",
      "r184",
      "r187",
      "r188",
      "r189",
      "r191",
      "r325",
      "r407",
      "r435",
      "r438",
      "r461",
      "r462",
      "r590",
      "r614",
      "r890"
     ]
    },
    "us-gaap_EarningsPerShareDiluted": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EarningsPerShareDiluted",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NET INVESTMENT INCOME PER SHARE\u2014 DILUTED (in dollars per share)",
        "label": "Earnings Per Share, 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": [
      "r127",
      "r147",
      "r170",
      "r171",
      "r172",
      "r173",
      "r174",
      "r175",
      "r176",
      "r177",
      "r184",
      "r187",
      "r188",
      "r189",
      "r191",
      "r325",
      "r407",
      "r435",
      "r438",
      "r461",
      "r462",
      "r590",
      "r614",
      "r890"
     ]
    },
    "us-gaap_EarningsPerSharePolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EarningsPerSharePolicyTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Earnings Per Share",
        "label": "Earnings Per Share, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for computing basic and diluted earnings or loss per share for each class of common stock and participating security. Addresses all significant policy factors, including any antidilutive items that have been excluded from the computation and takes into account stock dividends, splits and reverse splits that occur after the balance sheet date of the latest reporting period but before the issuance of the financial statements."
       }
      }
     },
     "auth_ref": [
      "r18",
      "r19",
      "r190"
     ]
    },
    "dei_EffectiveAfter60Days486a": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EffectiveAfter60Days486a",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective after 60 Days, 486(a)"
       }
      }
     },
     "auth_ref": [
      "r1148"
     ]
    },
    "dei_EffectiveOnDate486a": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EffectiveOnDate486a",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective on Date, 486(a)"
       }
      }
     },
     "auth_ref": [
      "r1148"
     ]
    },
    "dei_EffectiveOnDate486b": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EffectiveOnDate486b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective on Date, 486(b)"
       }
      }
     },
     "auth_ref": [
      "r1149"
     ]
    },
    "dei_EffectiveOnSetDate486a": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EffectiveOnSetDate486a",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective on Set Date, 486(a)"
       }
      }
     },
     "auth_ref": [
      "r1148"
     ]
    },
    "dei_EffectiveOnSetDate486b": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EffectiveOnSetDate486b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective on Set Date, 486(b)"
       }
      }
     },
     "auth_ref": [
      "r1149"
     ]
    },
    "dei_EffectiveUponFiling462e": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EffectiveUponFiling462e",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Upon Filing, 462(e)"
       }
      }
     },
     "auth_ref": [
      "r1147"
     ]
    },
    "dei_EffectiveUponFiling486b": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EffectiveUponFiling486b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective upon Filing, 486(b)"
       }
      }
     },
     "auth_ref": [
      "r1149"
     ]
    },
    "dei_EffectiveWhenDeclaredSection8c": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EffectiveWhenDeclaredSection8c",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective when Declared, Section 8(c)"
       }
      }
     },
     "auth_ref": [
      "r1151"
     ]
    },
    "cef_EffectsOfLeveragePurposeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "EffectsOfLeveragePurposeTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effects of Leverage, Purpose [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1066"
     ]
    },
    "cef_EffectsOfLeverageTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "EffectsOfLeverageTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effects of Leverage [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1066"
     ]
    },
    "cef_EffectsOfLeverageTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "EffectsOfLeverageTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effects of Leverage [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1063"
     ]
    },
    "main_ElectricalEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ElectricalEquipmentMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Electrical Equipment",
        "label": "Electrical Equipment [Member]",
        "documentation": "Electrical Equipment"
       }
      }
     },
     "auth_ref": []
    },
    "main_ElectroTechnicalIndustriesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ElectroTechnicalIndustriesLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Electro Technical Industries, LLC",
        "label": "Electro Technical Industries, LLC [Member]",
        "documentation": "Electro Technical Industries, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_ElginAcquireCoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ElginAcquireCoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Elgin AcquireCo, LLC",
        "label": "Elgin AcquireCo, LLC [Member]",
        "documentation": "Elgin AcquireCo, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share-based payment arrangement, nonvested award, cost not yet recognized, period for recognition (in years)",
        "label": "Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition",
        "documentation": "Weighted-average period over which cost not yet recognized is expected to be recognized for award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r405"
     ]
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share-based payment arrangement, nonvested award, excluding option, cost not yet recognized, amount",
        "label": "Share-Based Payment Arrangement, Nonvested Award, Excluding Option, Cost Not yet Recognized, Amount",
        "documentation": "Amount of cost to be recognized for nonvested award under share-based payment arrangement. Excludes share and unit options."
       }
      }
     },
     "auth_ref": [
      "r1317"
     ]
    },
    "us-gaap_EmployeeStockOptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EmployeeStockOptionMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee Stock Option",
        "label": "Share-Based Payment Arrangement, Option [Member]",
        "documentation": "Share-based payment arrangement granting right, subject to vesting and other restrictions, to purchase or sell certain number of shares at predetermined price for specified period of time."
       }
      }
     },
     "auth_ref": [
      "r1290",
      "r1291",
      "r1292",
      "r1293",
      "r1294",
      "r1295",
      "r1296",
      "r1297",
      "r1298",
      "r1299",
      "r1300",
      "r1302",
      "r1303",
      "r1304",
      "r1305",
      "r1306",
      "r1307",
      "r1308",
      "r1309",
      "r1310",
      "r1311",
      "r1312",
      "r1313",
      "r1314",
      "r1315",
      "r1316"
     ]
    },
    "main_EnCapEnergyFundInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "EnCapEnergyFundInvestmentsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "EnCap Energy Fund Investments",
        "label": "EnCap Energy Fund Investments [Member]",
        "documentation": "EnCap Energy Fund Investments"
       }
      }
     },
     "auth_ref": []
    },
    "main_EnergyEquipmentServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "EnergyEquipmentServicesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Energy Equipment &amp; Services",
        "label": "Energy Equipment &amp; Services [Member]",
        "documentation": "Energy Equipment &amp; Services"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine1": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressAddressLine1",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line One",
        "terseLabel": "Entity Address, Address Line One",
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine2": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressAddressLine2",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line Two",
        "terseLabel": "Entity Address, Address Line Two",
        "documentation": "Address Line 2 such as Street or Suite number"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine3": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressAddressLine3",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line Three",
        "documentation": "Address Line 3 such as an Office Park"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCityOrTown": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressCityOrTown",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, City or Town",
        "terseLabel": "Entity Address, City or Town",
        "documentation": "Name of the City or Town"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressPostalZipCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressPostalZipCode",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Postal Zip Code",
        "terseLabel": "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/2025",
     "localname": "EntityAddressStateOrProvince",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, State or Province",
        "terseLabel": "Entity Address, State or Province",
        "documentation": "Name of the state or province."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressesAddressTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressesAddressTypeAxis",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Addresses, Address Type [Axis]",
        "documentation": "The axis of a table defines the relationship between the domain members or categories in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Central Index Key",
        "terseLabel": "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": [
      "r982"
     ]
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityCommonStockSharesOutstanding",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Common Stock, Shares Outstanding",
        "terseLabel": "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/2025",
     "localname": "EntityCurrentReportingStatus",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Current Reporting Status",
        "terseLabel": "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/2025",
     "localname": "EntityDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity [Domain]",
        "terseLabel": "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/2025",
     "localname": "EntityEmergingGrowthCompany",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Emerging Growth Company",
        "terseLabel": "Entity Emerging Growth Company",
        "documentation": "Indicate if registrant meets the emerging growth company criteria."
       }
      }
     },
     "auth_ref": [
      "r982"
     ]
    },
    "dei_EntityExTransitionPeriod": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityExTransitionPeriod",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Ex Transition Period",
        "documentation": "Indicate if an emerging growth company has elected not to use the extended transition period for complying with any new or revised financial accounting standards."
       }
      }
     },
     "auth_ref": [
      "r1150"
     ]
    },
    "dei_EntityFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityFileNumber",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Securities Act File Number",
        "terseLabel": "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/2025",
     "localname": "EntityFilerCategory",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Filer Category",
        "terseLabel": "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": [
      "r982"
     ]
    },
    "dei_EntityIncorporationStateCountryCode": {
     "xbrltype": "edgarStateCountryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityIncorporationStateCountryCode",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Incorporation, State or Country Code",
        "terseLabel": "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/2025",
     "localname": "EntityInteractiveDataCurrent",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Interactive Data Current",
        "terseLabel": "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": [
      "r1141"
     ]
    },
    "dei_EntityInvCompanyType": {
     "xbrltype": "invCompanyType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityInvCompanyType",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Inv Company Type",
        "documentation": "One of: N-1A (Mutual Fund), N-1 (Open-End Separate Account with No Variable Annuities), N-2 (Closed-End Investment Company), N-3 (Separate Account Registered as Open-End Management Investment Company), N-4 (Variable Annuity UIT Separate Account), N-5 (Small Business Investment Company), N-6 (Variable Life UIT Separate Account), S-1 or S-3 (Face Amount Certificate Company), S-6 (UIT, Non-Insurance Product)."
       }
      }
     },
     "auth_ref": [
      "r1140"
     ]
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Registrant Name",
        "terseLabel": "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": [
      "r982"
     ]
    },
    "dei_EntityShellCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityShellCompany",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Shell Company",
        "terseLabel": "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": [
      "r982"
     ]
    },
    "dei_EntitySmallBusiness": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntitySmallBusiness",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Small Business",
        "terseLabel": "Entity Small Business",
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC)."
       }
      }
     },
     "auth_ref": [
      "r982"
     ]
    },
    "dei_EntityTaxIdentificationNumber": {
     "xbrltype": "employerIdItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityTaxIdentificationNumber",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Tax Identification Number",
        "terseLabel": "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": [
      "r982"
     ]
    },
    "dei_EntityWellKnownSeasonedIssuer": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityWellKnownSeasonedIssuer",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "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": [
      "r1142"
     ]
    },
    "ecd_EqtyAwrdsAdjFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "EqtyAwrdsAdjFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Awards Adjustments, Footnote",
        "label": "Equity Awards Adjustments, Footnote [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1095"
     ]
    },
    "ecd_EqtyAwrdsAdjsExclgValRprtdInSummryCompstnTblMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "EqtyAwrdsAdjsExclgValRprtdInSummryCompstnTblMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Awards Adjustments, Excluding Value Reported in Compensation Table",
        "label": "Equity Awards Adjustments, Excluding Value Reported in the Compensation Table [Member]"
       }
      }
     },
     "auth_ref": [
      "r1136"
     ]
    },
    "ecd_EqtyAwrdsAdjsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "EqtyAwrdsAdjsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Awards Adjustments",
        "label": "Equity Awards Adjustments [Member]"
       }
      }
     },
     "auth_ref": [
      "r1136"
     ]
    },
    "ecd_EqtyAwrdsInSummryCompstnTblForAplblYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "EqtyAwrdsInSummryCompstnTblForAplblYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregate Grant Date Fair Value of Equity Award Amounts Reported in Summary Compensation Table",
        "label": "Aggregate Grant Date Fair Value of Equity Award Amounts Reported in Summary Compensation Table [Member]"
       }
      }
     },
     "auth_ref": [
      "r1136"
     ]
    },
    "us-gaap_EquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EquityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityComponentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EquityComponentDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Component [Domain]",
        "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": [
      "r8",
      "r125",
      "r126",
      "r127",
      "r143",
      "r144",
      "r145",
      "r165",
      "r166",
      "r167",
      "r169",
      "r176",
      "r178",
      "r180",
      "r193",
      "r255",
      "r256",
      "r266",
      "r324",
      "r352",
      "r407",
      "r429",
      "r430",
      "r432",
      "r433",
      "r434",
      "r436",
      "r437",
      "r438",
      "r448",
      "r449",
      "r450",
      "r451",
      "r452",
      "r453",
      "r454",
      "r455",
      "r456",
      "r457",
      "r460",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r501",
      "r506",
      "r507",
      "r508",
      "r609",
      "r628",
      "r629",
      "r630",
      "r658",
      "r753"
     ]
    },
    "us-gaap_EquitySecuritiesByIndustryAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EquitySecuritiesByIndustryAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Industry Sector [Axis]",
        "label": "Industry Sector [Axis]",
        "documentation": "Information by industry sector, examples include but are not limited to, commercial, industrial, agricultural, financial services, technology, healthcare and real estate."
       }
      }
     },
     "auth_ref": [
      "r677",
      "r681",
      "r684",
      "r771",
      "r788",
      "r809",
      "r842",
      "r903",
      "r904",
      "r934",
      "r935",
      "r937",
      "r966"
     ]
    },
    "us-gaap_EquitySecuritiesIndustryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EquitySecuritiesIndustryMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Industry Sector [Domain]",
        "label": "Industry Sector [Domain]",
        "documentation": "Industry sector consisting of government, private and corporate entities engaged in business activities, including but not limited to, commercial, industrial, agricultural, financial services, technology, healthcare and real estate."
       }
      }
     },
     "auth_ref": [
      "r677",
      "r681",
      "r684",
      "r771",
      "r788",
      "r809",
      "r842",
      "r903",
      "r904",
      "r934",
      "r935",
      "r937",
      "r966"
     ]
    },
    "us-gaap_EquitySecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EquitySecuritiesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Equity investments",
        "terseLabel": "Equity",
        "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": [
      "r20",
      "r947",
      "r973",
      "r974",
      "r975",
      "r1432"
     ]
    },
    "ecd_EquityValuationAssumptionDifferenceFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "EquityValuationAssumptionDifferenceFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Valuation Assumption Difference, Footnote",
        "label": "Equity Valuation Assumption Difference, Footnote [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1105"
     ]
    },
    "main_EquityWarrantMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "EquityWarrantMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Warrant",
        "verboseLabel": "Equity warrants",
        "label": "Equity Warrant [Member]",
        "documentation": "Equity Warrant"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ErrCompAnalysisTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ErrCompAnalysisTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Erroneous Compensation Analysis",
        "label": "Erroneous Compensation Analysis [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r990",
      "r1001",
      "r1081",
      "r1115"
     ]
    },
    "ecd_ErrCompRecoveryTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ErrCompRecoveryTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Erroneously Awarded Compensation Recovery",
        "label": "Erroneously Awarded Compensation Recovery [Table]"
       }
      }
     },
     "auth_ref": [
      "r987",
      "r998",
      "r1078",
      "r1112"
     ]
    },
    "main_EscalentIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "EscalentIncMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Escalent, Inc.",
        "label": "Escalent, Inc. [Member]",
        "documentation": "Escalent, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_EventHoldcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "EventHoldcoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Event Holdco, LLC",
        "label": "Event Holdco, LLC [Member]",
        "documentation": "Event Holdco, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ExecutiveCategoryAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ExecutiveCategoryAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Executive Category:",
        "label": "Executive Category [Axis]"
       }
      }
     },
     "auth_ref": [
      "r1111"
     ]
    },
    "dei_ExhibitsOnly462d": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "ExhibitsOnly462d",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exhibits Only, 462(d)"
       }
      }
     },
     "auth_ref": [
      "r1146"
     ]
    },
    "dei_ExhibitsOnly462dFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "ExhibitsOnly462dFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exhibits Only, 462(d), File Number"
       }
      }
     },
     "auth_ref": [
      "r1146"
     ]
    },
    "cef_ExpenseExampleTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ExpenseExampleTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1034"
     ]
    },
    "cef_ExpenseExampleYear01": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ExpenseExampleYear01",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, Year 01"
       }
      }
     },
     "auth_ref": [
      "r1041"
     ]
    },
    "cef_ExpenseExampleYears1to10": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ExpenseExampleYears1to10",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, Years 1 to 10"
       }
      }
     },
     "auth_ref": [
      "r1041"
     ]
    },
    "cef_ExpenseExampleYears1to3": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ExpenseExampleYears1to3",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, Years 1 to 3"
       }
      }
     },
     "auth_ref": [
      "r1041"
     ]
    },
    "cef_ExpenseExampleYears1to5": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ExpenseExampleYears1to5",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, Years 1 to 5"
       }
      }
     },
     "auth_ref": [
      "r1041"
     ]
    },
    "main_ExternalInvestmentManagerInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ExternalInvestmentManagerInvestmentsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "External Investment Manager",
        "label": "External Investment Manager Investments [Member]",
        "documentation": "External Investment Manager Investments"
       }
      }
     },
     "auth_ref": []
    },
    "main_ExternalInvestmentManagerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ExternalInvestmentManagerMember",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERNarrativeDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "External Investment Manager",
        "label": "External Investment Manager [Member]",
        "documentation": "External Investment Manager"
       }
      }
     },
     "auth_ref": []
    },
    "main_ExternalInvestmentManagerTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ExternalInvestmentManagerTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGER"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "EXTERNAL INVESTMENT MANAGER",
        "label": "External Investment Manager [Text Block]",
        "documentation": "External Investment Manager"
       }
      }
     },
     "auth_ref": []
    },
    "main_FCCIntermediateHoldcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "FCCIntermediateHoldcoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "CGMS Parent LLC",
        "label": "FCC Intermediate Holdco, LLC [Member]",
        "documentation": "FCC Intermediate Holdco, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_FRGAcquireCoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "FRGAcquireCoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "FRG AcquireCo, LLC",
        "label": "FRG AcquireCo, LLC [Member]",
        "documentation": "FRG AcquireCo, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]",
        "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": [
      "r464",
      "r465",
      "r479",
      "r934"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value, Recurring and Nonrecurring [Table]",
        "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": [
      "r464",
      "r465",
      "r479",
      "r934"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Measurement Inputs and Valuation Techniques [Line Items]",
        "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": [
      "r466",
      "r467",
      "r468",
      "r927",
      "r929",
      "r937"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Measurement Inputs and Valuation Techniques [Table]",
        "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": [
      "r466",
      "r467",
      "r468",
      "r927",
      "r929",
      "r937"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Fair Value Measurement Inputs and Valuation Techniques",
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Table Text Block]",
        "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": [
      "r466",
      "r467",
      "r937"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Portfolio Investments by Level in the Fair Value Hierarchy",
        "label": "Fair Value, Assets Measured on Recurring Basis [Table Text Block]",
        "documentation": "Tabular disclosure of assets, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, by class 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": [
      "r1333",
      "r1334"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Asset Class [Domain]",
        "label": "Asset Class [Domain]",
        "documentation": "Class of asset."
       }
      }
     },
     "auth_ref": [
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r480",
      "r877",
      "r935",
      "r944"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]",
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [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_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]",
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [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": [
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r480",
      "r935"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table]",
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table]",
        "documentation": "Disclosure of information about financial instrument asset measured at fair value on recurring basis using unobservable input."
       }
      }
     },
     "auth_ref": [
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r480",
      "r935"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Changes in Fair Value of Main Street\u2019s Level\u00a03 Portfolio Investments",
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
        "documentation": "Tabular disclosure of the fair value measurement of assets using significant unobservable inputs (Level 3), a reconciliation of the beginning and ending balances, separately presenting changes during the period attributable to the following: (1) total gains or losses for the period (realized and unrealized), segregating those gains or losses included in earnings (or changes in net assets) and gains or losses recognized in other comprehensive income (loss), and a description of where those gains or losses included in earnings (or changes in net assets) are reported in the statement of income (or activities); (2) purchases, sales, issues, and settlements (each type disclosed separately); and (3) transfers in and transfers out of Level 3 (for example, transfers due to changes in the observability of significant inputs), by class of asset."
       }
      }
     },
     "auth_ref": [
      "r469",
      "r474",
      "r480",
      "r935"
     ]
    },
    "us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]",
        "label": "Fair Value, Balance Sheet Grouping, Financial Statement 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": [
      "r487",
      "r488",
      "r489",
      "r877",
      "r944",
      "r1345"
     ]
    },
    "us-gaap_FairValueByAssetClassAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueByAssetClassAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Asset Class [Axis]",
        "label": "Asset Class [Axis]",
        "documentation": "Information by class of asset."
       }
      }
     },
     "auth_ref": [
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r480",
      "r877",
      "r935",
      "r944"
     ]
    },
    "us-gaap_FairValueByBalanceSheetGroupingTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueByBalanceSheetGroupingTable",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value, by Balance Sheet Grouping [Table]",
        "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": [
      "r487",
      "r489",
      "r877",
      "r944",
      "r1344",
      "r1345"
     ]
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Hierarchy and NAV [Axis]",
        "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": [
      "r306",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r362",
      "r363",
      "r463",
      "r465",
      "r466",
      "r467",
      "r468",
      "r477",
      "r479",
      "r481",
      "r487",
      "r523",
      "r524",
      "r525",
      "r877",
      "r909",
      "r910",
      "r918",
      "r919",
      "r920",
      "r921",
      "r922",
      "r934",
      "r937",
      "r944"
     ]
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueByMeasurementFrequencyAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measurement Frequency [Axis]",
        "label": "Measurement Frequency [Axis]",
        "documentation": "Information by measurement frequency."
       }
      }
     },
     "auth_ref": [
      "r464",
      "r465",
      "r466",
      "r468",
      "r934",
      "r1336",
      "r1341"
     ]
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueDisclosuresAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueDisclosuresTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITION"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "FAIR VALUE HIERARCHY FOR INVESTMENTS\u2014PORTFOLIO COMPOSITION",
        "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": [
      "r466",
      "r473",
      "r475",
      "r476",
      "r477",
      "r481",
      "r482",
      "r483",
      "r484",
      "r485",
      "r588",
      "r934",
      "r938"
     ]
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueInputsLevel1Member",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Quoted Prices in Active Markets for Identical Assets (Level\u00a01)",
        "label": "Fair Value, Inputs, 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": [
      "r306",
      "r355",
      "r360",
      "r362",
      "r465",
      "r479",
      "r487",
      "r523",
      "r877",
      "r918",
      "r919",
      "r920",
      "r921",
      "r922",
      "r934",
      "r944"
     ]
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueInputsLevel2Member",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Significant Other Observable Inputs (Level\u00a02)",
        "label": "Fair Value, Inputs, 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": [
      "r306",
      "r355",
      "r360",
      "r362",
      "r364",
      "r465",
      "r466",
      "r479",
      "r487",
      "r524",
      "r877",
      "r909",
      "r910",
      "r918",
      "r919",
      "r920",
      "r921",
      "r922",
      "r934",
      "r944"
     ]
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueInputsLevel3Member",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Significant Unobservable Inputs (Level\u00a03)",
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r306",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r362",
      "r363",
      "r465",
      "r466",
      "r467",
      "r468",
      "r479",
      "r487",
      "r525",
      "r877",
      "r909",
      "r910",
      "r918",
      "r919",
      "r920",
      "r921",
      "r922",
      "r934",
      "r937",
      "r944"
     ]
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueMeasurementFrequencyDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measurement Frequency [Domain]",
        "label": "Measurement Frequency [Domain]",
        "documentation": "Measurement frequency."
       }
      }
     },
     "auth_ref": [
      "r464",
      "r465",
      "r466",
      "r468",
      "r934",
      "r1336",
      "r1341"
     ]
    },
    "us-gaap_FairValueMeasurementPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueMeasurementPolicyPolicyTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Measurement",
        "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_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gain (loss) included in earnings",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings",
        "documentation": "Amount of gain (loss) recognized in income from asset measured at fair value on recurring basis using unobservable input (level 3)."
       }
      }
     },
     "auth_ref": [
      "r470",
      "r480",
      "r935",
      "r936"
     ]
    },
    "main_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetOther",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Other",
        "documentation": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Other"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "New Investments",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Purchases",
        "documentation": "Amount of purchases of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r472",
      "r478",
      "r480",
      "r935"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Redemptions/ Repayments",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Settlements",
        "documentation": "Amount of settlement of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r472",
      "r480",
      "r935"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersNet",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transfers Into (Out of) Level\u00a03 Hierarchy",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers, Net",
        "documentation": "Amount of transfer of financial instrument classified as an asset into (out of) level 3 of the fair value hierarchy."
       }
      }
     },
     "auth_ref": [
      "r1338",
      "r1340"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Value",
        "documentation": "Fair value of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r469",
      "r480",
      "r935"
     ]
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Hierarchy and NAV [Domain]",
        "label": "Fair Value Hierarchy and NAV [Domain]",
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value."
       }
      }
     },
     "auth_ref": [
      "r306",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r362",
      "r363",
      "r463",
      "r465",
      "r466",
      "r467",
      "r468",
      "r477",
      "r479",
      "r481",
      "r487",
      "r523",
      "r524",
      "r525",
      "r877",
      "r909",
      "r910",
      "r918",
      "r919",
      "r920",
      "r921",
      "r922",
      "r934",
      "r937",
      "r944"
     ]
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueMeasurementsRecurringMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value, Recurring",
        "label": "Fair Value, 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": [
      "r934",
      "r1333",
      "r1334",
      "r1335",
      "r1336",
      "r1337",
      "r1341"
     ]
    },
    "us-gaap_FairValueOfFinancialInstrumentsPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueOfFinancialInstrumentsPolicy",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value of Financial Instruments",
        "label": "Fair Value of Financial Instruments, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for determining the fair value of financial instruments."
       }
      }
     },
     "auth_ref": [
      "r1342"
     ]
    },
    "us-gaap_FederalIncomeTaxNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FederalIncomeTaxNoteTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMETables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Taxable Income and to Total Distributions Declared to Common Stock Reconciliation",
        "label": "Federal Income Tax Note [Table Text Block]",
        "documentation": "Tabular disclosure of the federal tax basis of investment holdings. This item captures the aggregate cost of securities, aggregate gross unrealized appreciation for all securities in which there is an excess of value over tax cost, aggregate gross unrealized depreciation for all securities in which there is an excess of tax cost over value, net unrealized appreciation (depreciation), and an explanation of the differences between tax and book."
       }
      }
     },
     "auth_ref": [
      "r1401"
     ]
    },
    "us-gaap_FeeIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FeeIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofInvestmentIncomeDetails": {
       "parentTag": "us-gaap_GrossInvestmentIncomeOperating",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofInvestmentIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fee income",
        "label": "Fee Income",
        "documentation": "Amount of fee income including, but not limited to, managerial assistance, servicing of investment, and origination and commitment fees."
       }
      }
     },
     "auth_ref": [
      "r1423"
     ]
    },
    "cef_FeeTableAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "FeeTableAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fee Table [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r1034"
     ]
    },
    "cef_FinancialHighlightsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "FinancialHighlightsAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Highlights [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r1049"
     ]
    },
    "us-gaap_FinancialInstrumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FinancialInstrumentAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Instrument [Axis]",
        "label": "Financial Instrument [Axis]",
        "documentation": "Information by type of financial instrument."
       }
      }
     },
     "auth_ref": [
      "r224",
      "r225",
      "r226",
      "r227",
      "r228",
      "r229",
      "r230",
      "r231",
      "r232",
      "r233",
      "r234",
      "r235",
      "r236",
      "r237",
      "r238",
      "r239",
      "r240",
      "r241",
      "r242",
      "r243",
      "r244",
      "r245",
      "r246",
      "r247",
      "r248",
      "r249",
      "r250",
      "r251",
      "r252",
      "r253",
      "r257",
      "r258",
      "r259",
      "r260",
      "r261",
      "r262",
      "r263",
      "r264",
      "r317",
      "r349",
      "r447",
      "r458",
      "r486",
      "r491",
      "r494",
      "r520",
      "r521",
      "r522",
      "r523",
      "r524",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r597",
      "r610",
      "r905",
      "r934",
      "r935",
      "r937",
      "r938",
      "r939",
      "r940",
      "r941",
      "r942",
      "r943",
      "r947",
      "r1158",
      "r1159",
      "r1160",
      "r1161",
      "r1162",
      "r1163",
      "r1164",
      "r1258",
      "r1259",
      "r1260",
      "r1261",
      "r1332",
      "r1335",
      "r1336",
      "r1337",
      "r1339",
      "r1341",
      "r1343",
      "r1344"
     ]
    },
    "us-gaap_FinancialInstrumentPerformanceStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FinancialInstrumentPerformanceStatusAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Instrument Performance Status [Axis]",
        "label": "Financial Instrument Performance Status [Axis]",
        "documentation": "Information by category of performance or non-performance status of financial instruments."
       }
      }
     },
     "auth_ref": [
      "r1263"
     ]
    },
    "us-gaap_FinancialInstrumentPerformanceStatusDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FinancialInstrumentPerformanceStatusDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Instrument Performance Status [Domain]",
        "label": "Financial Instrument Performance Status [Domain]",
        "documentation": "Category of performance or non-performance status of financial instruments, including but not limited to, financing receivables, loans, debt, and investments."
       }
      }
     },
     "auth_ref": [
      "r1263"
     ]
    },
    "main_FlameKingHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "FlameKingHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Flame King Holdings, LLC",
        "label": "Flame King Holdings, LLC [Member]",
        "documentation": "Flame King Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_FoodProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "FoodProductsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Food Products",
        "label": "Food Products [Member]",
        "documentation": "Food Products"
       }
      }
     },
     "auth_ref": []
    },
    "main_FoodStaplesRetailingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "FoodStaplesRetailingMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Food &amp; Staples Retailing",
        "label": "Food &amp; Staples Retailing [Member]",
        "documentation": "Food &amp; Staples Retailing"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ForgoneRecoveryDueToDisqualificationOfTaxBenefitsAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ForgoneRecoveryDueToDisqualificationOfTaxBenefitsAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Forgone Recovery due to Disqualification of Tax Benefits, Amount",
        "label": "Forgone Recovery due to Disqualification of Tax Benefits, Amount"
       }
      }
     },
     "auth_ref": [
      "r994",
      "r1005",
      "r1085",
      "r1119"
     ]
    },
    "ecd_ForgoneRecoveryDueToExpenseOfEnforcementAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ForgoneRecoveryDueToExpenseOfEnforcementAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Forgone Recovery due to Expense of Enforcement, Amount",
        "label": "Forgone Recovery due to Expense of Enforcement, Amount"
       }
      }
     },
     "auth_ref": [
      "r994",
      "r1005",
      "r1085",
      "r1119"
     ]
    },
    "ecd_ForgoneRecoveryDueToViolationOfHomeCountryLawAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ForgoneRecoveryDueToViolationOfHomeCountryLawAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Forgone Recovery due to Violation of Home Country Law, Amount",
        "label": "Forgone Recovery due to Violation of Home Country Law, Amount"
       }
      }
     },
     "auth_ref": [
      "r994",
      "r1005",
      "r1085",
      "r1119"
     ]
    },
    "ecd_ForgoneRecoveryExplanationOfImpracticabilityTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ForgoneRecoveryExplanationOfImpracticabilityTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Forgone Recovery, Explanation of Impracticability",
        "label": "Forgone Recovery, Explanation of Impracticability [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r994",
      "r1005",
      "r1085",
      "r1119"
     ]
    },
    "ecd_ForgoneRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ForgoneRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Name",
        "label": "Forgone Recovery, Individual Name"
       }
      }
     },
     "auth_ref": [
      "r994",
      "r1005",
      "r1085",
      "r1119"
     ]
    },
    "ecd_FrValAsOfPrrYrEndOfEqtyAwrdsGrntdInPrrYrsFldVstngCondsDrngCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "FrValAsOfPrrYrEndOfEqtyAwrdsGrntdInPrrYrsFldVstngCondsDrngCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prior Year End Fair Value of Equity Awards Granted in Any Prior Year that Fail to Meet Applicable Vesting Conditions During Covered Year",
        "label": "Prior Year End Fair Value of Equity Awards Granted in Any Prior Year that Fail to Meet Applicable Vesting Conditions During Covered Year [Member]"
       }
      }
     },
     "auth_ref": [
      "r1100"
     ]
    },
    "main_FreeportFinancialFundsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "FreeportFinancialFundsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Freeport Financial Funds",
        "label": "Freeport Financial Funds [Member]",
        "documentation": "Freeport Financial Funds"
       }
      }
     },
     "auth_ref": []
    },
    "main_FuseLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "FuseLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fuse, LLC",
        "label": "Fuse, LLC [Member]",
        "documentation": "Fuse, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_GFGGroupLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "GFGGroupLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Connect Telecommunications Solutions Holdings, Inc.",
        "label": "GFG Group, LLC. [Member]",
        "documentation": "GFG Group, LLC."
       }
      }
     },
     "auth_ref": []
    },
    "main_GRTRubberTechnologiesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "GRTRubberTechnologiesLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gamber-Johnson Holdings, LLC",
        "label": "GRT Rubber Technologies LLC [Member]",
        "documentation": "GRT Rubber Technologies LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_GSHVAMIntermediateLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "GSHVAMIntermediateLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "GS HVAM Intermediate, LLC",
        "label": "GS HVAM Intermediate, LLC [Member]",
        "documentation": "GS HVAM Intermediate, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_GULFPACIFICACQUISITIONLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "GULFPACIFICACQUISITIONLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "GULF PACIFIC ACQUISITION, LLC",
        "label": "GULF PACIFIC ACQUISITION, LLC [Member]",
        "documentation": "GULF PACIFIC ACQUISITION, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_GamberJohnsonHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "GamberJohnsonHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gamber-Johnson Holdings, LLC",
        "label": "Gamber-Johnson Holdings, LLC [Member]",
        "documentation": "Gamber-Johnson Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_GarylineLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "GarylineLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Garyline, LLC",
        "label": "Garyline, LLC [Member]",
        "documentation": "Garyline, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GeneralAndAdministrativeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "GeneralAndAdministrativeExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations": {
       "parentTag": "us-gaap_InvestmentIncomeInvestmentExpense",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "General and administrative",
        "negatedLabel": "General and administrative",
        "label": "General and Administrative Expense",
        "documentation": "The aggregate total of expenses of managing and administering the affairs of an entity, including affiliates of the reporting entity, which are not directly or indirectly associated with the manufacture, sale or creation of a product or product line."
       }
      }
     },
     "auth_ref": [
      "r47",
      "r727"
     ]
    },
    "cef_GeneralDescriptionOfRegistrantAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "GeneralDescriptionOfRegistrantAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "General Description of Registrant [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r1060"
     ]
    },
    "us-gaap_GeographicConcentrationRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "GeographicConcentrationRiskMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Geographic Concentration Risk",
        "label": "Geographic Concentration Risk [Member]",
        "documentation": "Reflects the percentage that a specified dollar value on the balance sheet or income statement in the period from one or more specified geographic areas is to a corresponding consolidated, segment, or product line amount. Risk is the materially adverse effects of economic decline or antagonistic political actions resulting in loss of assets, sales volume, labor supply, or source of materials and supplies in a US state or a specified country, continent, or region such as EMEA (Europe, Middle East, Africa)."
       }
      }
     },
     "auth_ref": [
      "r862",
      "r1249"
     ]
    },
    "main_GradeEightCorp.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "GradeEightCorp.Member",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "GradeEight Corp.",
        "label": "GradeEight Corp. [Member]",
        "documentation": "GradeEight Corp."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GrossInvestmentIncomeOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "GrossInvestmentIncomeOperating",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations": {
       "parentTag": "us-gaap_NetInvestmentIncome",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofInvestmentIncomeDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofInvestmentIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total investment income",
        "totalLabel": "Total investment income",
        "label": "Gross Investment Income, Operating",
        "documentation": "Amount, before investment expense, of income earned from investments in securities and real estate. Includes, but is not limited to, real estate investment, policy loans, dividends, and interest. Excludes realized gain (loss) on investments."
       }
      }
     },
     "auth_ref": [
      "r611",
      "r977",
      "r1424"
     ]
    },
    "main_GulfManufacturingLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "GulfManufacturingLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "DMA Industries, LLC",
        "label": "Gulf Manufacturing, LLC [Member]",
        "documentation": "Gulf Manufacturing, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_HDCHWIntermediateHoldingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "HDCHWIntermediateHoldingsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "HDC/HW Intermediate Holdings",
        "label": "HDC/HW Intermediate Holdings [Member]",
        "documentation": "HDC/HW Intermediate Holdings"
       }
      }
     },
     "auth_ref": []
    },
    "main_HEADLANDSOPCOLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "HEADLANDSOPCOLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "HEADLANDS OP-CO LLC",
        "label": "HEADLANDS OP-CO LLC [Member]",
        "documentation": "HEADLANDS OP-CO LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_HarrisPrestonFundInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "HarrisPrestonFundInvestmentsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESDetails",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Harris Preston Fund Investments",
        "label": "Harris Preston Fund Investments [Member]",
        "documentation": "Harris Preston Fund Investments"
       }
      }
     },
     "auth_ref": []
    },
    "main_HarrisPrestonFundInvestmentsTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "HarrisPrestonFundInvestmentsTwoMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dos Rios Partners",
        "label": "Harris Preston Fund Investments Two [Member]",
        "documentation": "Harris Preston Fund Investments Two"
       }
      }
     },
     "auth_ref": []
    },
    "main_HawkRidgeSystemsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "HawkRidgeSystemsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hawk Ridge Systems, LLC",
        "label": "Hawk Ridge Systems, LLC [Member]",
        "documentation": "Hawk Ridge Systems, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_HealthCareProvidersServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "HealthCareProvidersServicesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Health Care Providers &amp; Services",
        "label": "Health Care Providers &amp; Services [Member]",
        "documentation": "Health Care Providers &amp; Services"
       }
      }
     },
     "auth_ref": []
    },
    "cef_HighestPriceOrBid": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "HighestPriceOrBid",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Highest Price or Bid"
       }
      }
     },
     "auth_ref": [
      "r1067"
     ]
    },
    "cef_HighestPriceOrBidNav": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "HighestPriceOrBidNav",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Highest Price or Bid, NAV"
       }
      }
     },
     "auth_ref": [
      "r1071"
     ]
    },
    "cef_HighestPriceOrBidPremiumDiscountToNavPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "HighestPriceOrBidPremiumDiscountToNavPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Highest Price or Bid, Premium (Discount) to NAV [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1072"
     ]
    },
    "main_HornblowerSubLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "HornblowerSubLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hornblower Sub, LLC",
        "label": "Hornblower Sub, LLC [Member]",
        "documentation": "Hornblower Sub, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_HotelsRestaurantsLeisureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "HotelsRestaurantsLeisureMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hotels, Restaurants &amp; Leisure",
        "label": "Hotels, Restaurants &amp; Leisure [Member]",
        "documentation": "Hotels, Restaurants &amp; Leisure"
       }
      }
     },
     "auth_ref": []
    },
    "main_HoustonPlatingAndCoatingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "HoustonPlatingAndCoatingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Houston Plating and Coatings, LLC",
        "label": "Houston Plating and Coatings, LLC [Member]",
        "documentation": "Houston Plating and Coatings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_IGInvestorLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "IGInvestorLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Harrison Hydra-Gen, Ltd.",
        "label": "IG Investor, LLC [Member]",
        "documentation": "IG Investor, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_IGParentCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "IGParentCorporationMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "IG Parent Corporation",
        "label": "IG Parent Corporation [Member]",
        "documentation": "IG Parent Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "main_ITAHoldingsGroupLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ITAHoldingsGroupLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ITA Holdings Group, LLC",
        "label": "ITA Holdings Group, LLC [Member]",
        "documentation": "ITA Holdings Group, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_ITServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ITServicesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "IT Services",
        "label": "IT Services [Member]",
        "documentation": "IT Services"
       }
      }
     },
     "auth_ref": []
    },
    "main_IgniteVisibilityLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "IgniteVisibilityLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ignite Visibility LLC",
        "label": "Ignite Visibility LLC [Member]",
        "documentation": "Ignite Visibility LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_ImplusFootcareLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ImplusFootcareLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Implus Footcare, LLC",
        "label": "Implus Footcare, LLC [Member]",
        "documentation": "Implus Footcare, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "cef_IncentiveAllocationMaximumPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "IncentiveAllocationMaximumPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Allocation Maximum [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1039"
     ]
    },
    "cef_IncentiveAllocationMinimumPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "IncentiveAllocationMinimumPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Allocation Minimum [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1039"
     ]
    },
    "cef_IncentiveAllocationPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "IncentiveAllocationPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Allocation [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1039"
     ]
    },
    "us-gaap_IncentiveFeePayableCapitalGainBased": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncentiveFeePayableCapitalGainBased",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Incentive fee payable, capital-gain-based",
        "label": "Incentive Fee Payable, Capital-Gain-Based",
        "documentation": "Amount of capital-gain-based incentive fee payable for performance under arrangement to manage operation, including, but not limited to, managing investment."
       }
      }
     },
     "auth_ref": [
      "r1414"
     ]
    },
    "cef_IncentiveFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "IncentiveFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1048"
     ]
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net income before taxes",
        "label": "Income (Loss) from Continuing Operations before Income Taxes, Noncontrolling Interest",
        "documentation": "Amount of income (loss) from continuing operations, including income (loss) from equity method investments, before deduction of income tax expense (benefit), and income (loss) attributable to noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r45",
      "r72",
      "r76",
      "r592",
      "r594",
      "r607",
      "r886",
      "r887",
      "r888",
      "r894",
      "r898",
      "r1244",
      "r1251",
      "r1252",
      "r1253",
      "r1254"
     ]
    },
    "us-gaap_IncomeStatementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncomeStatementAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeStatementLocationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncomeStatementLocationAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income Statement Location [Axis]",
        "label": "Statement of Income Location, Balance [Axis]",
        "documentation": "Information by location in statement of income where disaggregated amount is reported."
       }
      }
     },
     "auth_ref": [
      "r267",
      "r273",
      "r274",
      "r443",
      "r444",
      "r445",
      "r446",
      "r470",
      "r474",
      "r480",
      "r493",
      "r494",
      "r495",
      "r625",
      "r627",
      "r733",
      "r876",
      "r877",
      "r927",
      "r928",
      "r932",
      "r933",
      "r936",
      "r944",
      "r1324",
      "r1325",
      "r1372"
     ]
    },
    "us-gaap_IncomeStatementLocationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncomeStatementLocationDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income Statement Location [Domain]",
        "label": "Statement of Income Location, Balance [Domain]",
        "documentation": "Location in statement of income where disaggregated amount is reported."
       }
      }
     },
     "auth_ref": [
      "r273",
      "r274",
      "r443",
      "r444",
      "r445",
      "r446",
      "r470",
      "r474",
      "r480",
      "r493",
      "r494",
      "r495",
      "r625",
      "r627",
      "r733",
      "r876",
      "r877",
      "r927",
      "r928",
      "r932",
      "r933",
      "r936",
      "r944",
      "r1324",
      "r1325",
      "r1372"
     ]
    },
    "us-gaap_IncomeTaxDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncomeTaxDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income Tax Disclosure [Abstract]",
        "label": "Income Tax Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Tax expense",
        "label": "Income Tax Expense (Benefit)",
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations."
       }
      }
     },
     "auth_ref": [
      "r81",
      "r86",
      "r155",
      "r179",
      "r180",
      "r192",
      "r207",
      "r217",
      "r423",
      "r424",
      "r431",
      "r616",
      "r886",
      "r887",
      "r888",
      "r926"
     ]
    },
    "us-gaap_IncomeTaxPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncomeTaxPolicyTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income Taxes",
        "label": "Income Tax, Policy [Policy Text Block]",
        "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": [
      "r142",
      "r419",
      "r420",
      "r425",
      "r426",
      "r427",
      "r428",
      "r642"
     ]
    },
    "us-gaap_IncomeTaxesPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncomeTaxesPaid",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Taxes paid",
        "label": "Income Taxes Paid",
        "documentation": "Amount, before refund, of cash paid to foreign, federal, state, and local jurisdictions as income tax."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r56",
      "r1228",
      "r1320",
      "r1321"
     ]
    },
    "us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts payable and other liabilities",
        "label": "Increase (Decrease) in Accounts Payable and Other Operating Liabilities",
        "documentation": "Amount of increase (decrease) in obligations incurred but not paid, and operating obligations classified as other."
       }
      }
     },
     "auth_ref": [
      "r1226"
     ]
    },
    "main_IncreaseDecreaseInCommonStockDividendsDeclaredMonthly": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "IncreaseDecreaseInCommonStockDividendsDeclaredMonthly",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase in common stock, dividends, per share, declared, monthly (as a percent)",
        "label": "Increase (Decrease) In Common Stock, Dividends, Declared, Monthly",
        "documentation": "Increase (Decrease) In Common Stock, Dividends, Declared, Monthly"
       }
      }
     },
     "auth_ref": []
    },
    "main_IncreaseDecreaseInDeferredFeesAndOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "IncreaseDecreaseInDeferredFeesAndOther",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred fees and other",
        "label": "Increase (Decrease) In Deferred Fees and Other",
        "documentation": "Increase (Decrease) In Deferred Fees and Other"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncreaseDecreaseInIncentiveFeePayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncreaseDecreaseInIncentiveFeePayable",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase (decrease) in incentive fee payable",
        "label": "Increase (Decrease) in Incentive Fee Payable",
        "documentation": "Amount of increase (decrease) in fee payable for management of operations based on performance under arrangement, including, but not limited to, investment."
       }
      }
     },
     "auth_ref": [
      "r1430"
     ]
    },
    "main_IncreaseDecreaseInInterestAndDividendReceivableAndOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "IncreaseDecreaseInInterestAndDividendReceivableAndOtherAssets",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Interest and dividend receivable and other assets",
        "label": "Increase (Decrease) In Interest And Dividend Receivable And Other Assets",
        "documentation": "Increase (Decrease) In Interest And Dividend Receivable And Other Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncreaseDecreaseInInterestPayableNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncreaseDecreaseInInterestPayableNet",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest payable",
        "label": "Increase (Decrease) in Interest Payable, Net",
        "documentation": "The increase (decrease) during the reporting period in interest payable, which represents the amount owed to note holders, bond holders, and other parties for interest earned on loans or credit extended to the reporting entity."
       }
      }
     },
     "auth_ref": [
      "r3"
     ]
    },
    "us-gaap_IncreaseDecreaseInOperatingCapitalAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncreaseDecreaseInOperatingCapitalAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Changes in other assets and liabilities:",
        "label": "Adjustment to Reconcile Net Income to Cash Provided by (Used in) Operating Activity, Increase (Decrease) in Operating Capital [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncreaseDecreaseInStockholdersEquityRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncreaseDecreaseInStockholdersEquityRollForward",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase (Decrease) in Stockholders' Equity [Roll Forward]",
        "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": []
    },
    "ecd_IndividualAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "IndividualAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure",
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure",
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements",
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Individual:",
        "label": "Individual [Axis]"
       }
      }
     },
     "auth_ref": [
      "r994",
      "r1005",
      "r1085",
      "r1111",
      "r1119",
      "r1123",
      "r1131"
     ]
    },
    "main_IndustryConcentrationRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "IndustryConcentrationRiskMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Industry Concentration Risk",
        "label": "Industry Concentration Risk [Member]",
        "documentation": "Industry Concentration Risk"
       }
      }
     },
     "auth_ref": []
    },
    "main_InfinityX1HoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InfinityX1HoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Infinity X1 Holdings, LLC",
        "label": "Infinity X1 Holdings, LLC [Member]",
        "documentation": "Infinity X1 Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_InsiderTradingArrLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "InsiderTradingArrLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Arrangements [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r1129"
     ]
    },
    "ecd_InsiderTradingPoliciesProcLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "InsiderTradingPoliciesProcLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r986",
      "r1135"
     ]
    },
    "ecd_InsiderTrdPoliciesProcAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "InsiderTrdPoliciesProcAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Insider Trading Policies and Procedures Adopted",
        "label": "Insider Trading Policies and Procedures Adopted [Flag]"
       }
      }
     },
     "auth_ref": [
      "r986",
      "r1135"
     ]
    },
    "ecd_InsiderTrdPoliciesProcNotAdoptedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "InsiderTrdPoliciesProcNotAdoptedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Insider Trading Policies and Procedures Not Adopted",
        "label": "Insider Trading Policies and Procedures Not Adopted [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r986",
      "r1135"
     ]
    },
    "main_InsightBorrowerCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InsightBorrowerCorporationMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Insight Borrower Corporation",
        "label": "Insight Borrower Corporation [Member]",
        "documentation": "Insight Borrower Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "main_InspireAestheticsManagementLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InspireAestheticsManagementLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Inspire Aesthetics Management, LLC",
        "label": "Inspire Aesthetics Management, LLC [Member]",
        "documentation": "Inspire Aesthetics Management, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IntangibleAssetsNetExcludingGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IntangibleAssetsNetExcludingGoodwill",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Intangible asset",
        "label": "Intangible Assets, Net (Excluding Goodwill)",
        "documentation": "Sum of the carrying amounts of all intangible assets, excluding goodwill, as of the balance sheet date, net of accumulated amortization and impairment charges."
       }
      }
     },
     "auth_ref": [
      "r265",
      "r1264",
      "r1265"
     ]
    },
    "main_IntegralEnergyServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "IntegralEnergyServicesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Integral Energy Services",
        "label": "Integral Energy Services [Member]",
        "documentation": "Integral Energy Services"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestAndDebtExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InterestAndDebtExpenseAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "EXPENSES:",
        "verboseLabel": "EXPENSES:",
        "label": "Interest and Debt Expense [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "main_InterestAndDividendReceivableAndOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InterestAndDividendReceivableAndOtherAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest and dividend receivable and other assets",
        "verboseLabel": "Interest and dividend receivable and other assets",
        "label": "Interest And Dividend Receivable And Other Assets",
        "documentation": "Interest And Dividend Receivable And Other Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestExpenseDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InterestExpenseDebt",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Interest Expense",
        "label": "Interest Expense, Debt",
        "documentation": "Amount of the cost of borrowed funds accounted for as interest expense for debt."
       }
      }
     },
     "auth_ref": [
      "r50",
      "r312",
      "r323",
      "r911",
      "r912",
      "r1421"
     ]
    },
    "us-gaap_InterestExpenseOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InterestExpenseOperating",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations": {
       "parentTag": "us-gaap_InvestmentIncomeInvestmentExpense",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Interest",
        "negatedLabel": "Interest",
        "label": "Interest Expense, Operating",
        "documentation": "Amount of interest expense classified as operating."
       }
      }
     },
     "auth_ref": [
      "r206",
      "r591",
      "r887",
      "r1180"
     ]
    },
    "cef_InterestExpensesOnBorrowingsPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "InterestExpensesOnBorrowingsPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expenses on Borrowings [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1047"
     ]
    },
    "main_InterestFeesAndDividendIncomeSecuritiesOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InterestFeesAndDividendIncomeSecuritiesOperating",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amount of Interest, Fees or Dividends Credited to Income",
        "label": "Interest, Fees and Dividend Income, Securities, Operating",
        "documentation": "Interest, Fees and Dividend Income, Securities, Operating"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestIncomeAndInterestExpenseDisclosureTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Interest Expense",
        "label": "Interest Income and Interest Expense Disclosure [Table Text Block]",
        "documentation": "Tabular disclosure of interest income and expense, including, but not limited to, interest income and expense from investments, loans, and securities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestPaidNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InterestPaidNet",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest paid",
        "label": "Interest Paid, Excluding Capitalized Interest, Operating Activity",
        "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": [
      "r148",
      "r150",
      "r151"
     ]
    },
    "us-gaap_InterestPayableCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InterestPayableCurrentAndNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest payable",
        "verboseLabel": "Interest payable",
        "label": "Interest Payable",
        "documentation": "Amount of interest payable on debt, including, but not limited to, trade payables."
       }
      }
     },
     "auth_ref": [
      "r68",
      "r1365"
     ]
    },
    "us-gaap_InterestRateRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InterestRateRiskMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Rate Risk [Member]",
        "documentation": "The risk associated with changes in interest rates that effect the value of an interest-bearing asset or liability, and a servicing asset or liability."
       }
      }
     },
     "auth_ref": []
    },
    "main_InterfaceSecuritySystemsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InterfaceSecuritySystemsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interface Security Systems, L.L.C",
        "label": "Interface Security Systems, L.L.C [Member]",
        "documentation": "Interface Security Systems, L.L.C"
       }
      }
     },
     "auth_ref": []
    },
    "main_InternetCatalogRetailMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InternetCatalogRetailMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Internet &amp; Catalog Retail",
        "label": "Internet &amp; Catalog Retail [Member]",
        "documentation": "Internet &amp; Catalog Retail"
       }
      }
     },
     "auth_ref": []
    },
    "main_InternetSoftwareServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InternetSoftwareServicesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Internet Software &amp; Services",
        "label": "Internet Software &amp; Services [Member]",
        "documentation": "Internet Software &amp; Services"
       }
      }
     },
     "auth_ref": []
    },
    "cef_IntervalFundFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "IntervalFundFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interval Fund [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1009"
     ]
    },
    "main_InvestmentAccruingIncomeFixedCashRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentAccruingIncomeFixedCashRate",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment, accruing income fixed cash rate",
        "label": "Investment, Accruing Income Fixed Cash Rate",
        "documentation": "Investment, Accruing Income Fixed Cash Rate"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentAffiliatedIssuerControlledMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentAffiliatedIssuerControlledMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesFootnotesDetails",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Control investments",
        "label": "Investment, Affiliated Issuer, Controlled [Member]",
        "documentation": "Controlled affiliated issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r638",
      "r656",
      "r695",
      "r697",
      "r704",
      "r720",
      "r726",
      "r727",
      "r836"
     ]
    },
    "us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentAffiliatedIssuerNoncontrolledMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesFootnotesDetails",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Affiliate investments",
        "label": "Investment, Affiliated Issuer, Noncontrolled [Member]",
        "documentation": "Noncontrolled affiliated issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r638",
      "r656",
      "r696",
      "r698",
      "r705",
      "r720",
      "r726",
      "r727",
      "r816",
      "r827",
      "r828",
      "r830",
      "r831",
      "r835",
      "r836",
      "r840",
      "r841",
      "r842"
     ]
    },
    "us-gaap_InvestmentBasisSpreadVariableRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentBasisSpreadVariableRate",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Spread (as a percent)",
        "verboseLabel": "Spread",
        "label": "Investment, Basis Spread, Variable Rate",
        "documentation": "Percentage added to reference rate used to compute variable rate on investment."
       }
      }
     },
     "auth_ref": [
      "r766",
      "r787",
      "r791",
      "r824"
     ]
    },
    "us-gaap_InvestmentCompanyAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyAchievedTotalReturn": {
     "xbrltype": "pureItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyAchievedTotalReturn",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Achieved total return on investments (as a percent)",
        "label": "Investment Company, Achieved Total Return",
        "documentation": "Investment Company, Achieved Total Return"
       }
      }
     },
     "auth_ref": []
    },
    "dei_InvestmentCompanyActFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "InvestmentCompanyActFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Act File Number"
       }
      }
     },
     "auth_ref": [
      "r1009",
      "r1075",
      "r1076",
      "r1077"
     ]
    },
    "dei_InvestmentCompanyActRegistration": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "InvestmentCompanyActRegistration",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Act Registration"
       }
      }
     },
     "auth_ref": [
      "r1090"
     ]
    },
    "main_InvestmentCompanyAnnualizedTotalReturn": {
     "xbrltype": "pureItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyAnnualizedTotalReturn",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Annualized total return on investments (as a percent)",
        "label": "Investment Company, Annualized Total Return",
        "documentation": "Investment Company, Annualized Total Return"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyAverageEarningsBeforeInterestTaxesDepreciationAndAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyAverageEarningsBeforeInterestTaxesDepreciationAndAmortization",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average EBITDA",
        "label": "Investment Company, Average Earnings Before Interest, Taxes, Depreciation, And Amortization",
        "documentation": "Investment Company, Average Earnings Before Interest, Taxes, Depreciation, And Amortization"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyAverageFullyDilutedEquityOwnershipPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyAverageFullyDilutedEquityOwnershipPercentage",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Diluted equity ownership (as a percent)",
        "label": "Investment Company, Average Fully Diluted Equity Ownership, Percentage",
        "documentation": "Investment Company, Average Fully Diluted Equity Ownership, Percentage"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyAverageNetAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyAverageNetAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average NAV",
        "label": "Investment Company, Average Net Assets",
        "documentation": "Amount of average net assets for investment company."
       }
      }
     },
     "auth_ref": [
      "r1407",
      "r1408"
     ]
    },
    "main_InvestmentCompanyCommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyCommonStockSharesOutstanding",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Shares outstanding as of the end of the period (in shares)",
        "label": "Investment Company, Common Stock, Shares Outstanding",
        "documentation": "Investment Company, Common Stock, Shares Outstanding"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyConsultationPeriodSubsequentToInitialInvestment": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyConsultationPeriodSubsequentToInitialInvestment",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consultation period subsequent to initial investment (in months)",
        "label": "Investment Company, Consultation Period Subsequent To Initial Investment",
        "documentation": "Investment Company, Consultation Period Subsequent To Initial Investment"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyContractualAndVoluntaryFeesWaived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyContractualAndVoluntaryFeesWaived",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails": {
       "parentTag": "us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Total revenues before waivers",
        "label": "Investment Company, Contractual and Voluntary Fees Waived",
        "documentation": "Amount of fee waived contractually and voluntarily for investment company."
       }
      }
     },
     "auth_ref": [
      "r1405",
      "r1425"
     ]
    },
    "us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedCapitalLossCarryforward": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyDistributableEarningsLossAccumulatedCapitalLossCarryforward",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMENarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax credit carryforward",
        "label": "Investment Company, Distributable Earnings (Loss), Accumulated Capital Loss Carryforward",
        "documentation": "Amount of accumulated undistributed deficit from capital loss carryforward of investment company."
       }
      }
     },
     "auth_ref": [
      "r649"
     ]
    },
    "us-gaap_InvestmentCompanyDistributionToShareholdersPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyDistributionToShareholdersPerShare",
     "calculation": {
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTotalLabel": "Dividends paid (in dollars per share)",
        "label": "Investment Company, Distribution to Shareholders, Per Share",
        "documentation": "Per share or unit amount of distribution to shareholders. Includes, but is not limited to, dividend and capital gain. Excludes distribution for tax return of capital."
       }
      }
     },
     "auth_ref": [
      "r655",
      "r670"
     ]
    },
    "main_InvestmentCompanyDividendDistributionToShareholdersPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyDividendDistributionToShareholdersPerShare",
     "calculation": {
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails": {
       "parentTag": "us-gaap_InvestmentCompanyDistributionToShareholdersPerShare",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Dividends paid from net investment income (in dollars per share)",
        "label": "Investment Company, Dividend Distribution to Shareholders, Per Share",
        "documentation": "Investment Company, Dividend Distribution to Shareholders, Per Share"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyEffectOfDividendReinvestmentPlanPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyEffectOfDividendReinvestmentPlanPerShare",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accretive effect of DRIP issuance (issuing shares above NAV per share) (in dollars per share)",
        "label": "Investment Company, Effect Of Dividend Reinvestment Plan, Per Share",
        "documentation": "Investment Company, Effect Of Dividend Reinvestment Plan, Per Share"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyEffectOfStockOfferingsPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyEffectOfStockOfferingsPerShare",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accretive effect of stock offerings (issuing shares above NAV per share) (in dollars per share)",
        "label": "Investment Company, Effect of Stock Offerings, Per Share",
        "documentation": "Investment Company, Effect of Stock Offerings, Per Share"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyExciseTaxExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyExciseTaxExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations": {
       "parentTag": "us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax",
       "weight": -1.0,
       "order": 2.0
      },
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails": {
       "parentTag": "main_InvestmentIncomeOperatingTaxExpenseBenefitCurrent",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Excise tax expense",
        "terseLabel": "Excise",
        "label": "Investment Company, Excise Tax Expense",
        "documentation": "Amount of excise tax expense on excess of required distribution over distributed amount for regulated investment company."
       }
      }
     },
     "auth_ref": [
      "r1420",
      "r1426"
     ]
    },
    "us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Waiver of incentive fees",
        "label": "Investment Company, Expense, after Reduction of Fee Waiver and Reimbursement",
        "documentation": "Amount, after reimbursement and fee waiver, of expense for generation of investment income classified as operating."
       }
      }
     },
     "auth_ref": [
      "r1425"
     ]
    },
    "us-gaap_InvestmentCompanyExpenseOffsetArrangement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyExpenseOffsetArrangement",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations": {
       "parentTag": "us-gaap_InvestmentIncomeInvestmentExpense",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expenses allocated to the External Investment Manager",
        "verboseLabel": "Expenses allocated",
        "label": "Investment Company, Expense Offset Arrangement",
        "documentation": "Amount of expense reduction under arrangement in which third party explicitly reduces its fee by specified amount for service provided in exchange for use of investment company's assets."
       }
      }
     },
     "auth_ref": [
      "r647",
      "r727",
      "r728",
      "r729",
      "r730",
      "r733"
     ]
    },
    "main_InvestmentCompanyExpenseRatioIncludingIncomeTaxExpense": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyExpenseRatioIncludingIncomeTaxExpense",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ratio of total expenses, including income tax expense, to average NAV",
        "label": "Investment Company, Expense Ratio, Including Income Tax Expense",
        "documentation": "Investment Company, Expense Ratio, Including Income Tax Expense"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyFederalAndStateIncomeAndOtherTaxExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyFederalAndStateIncomeAndOtherTaxExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations": {
       "parentTag": "us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Federal and state income and other tax expenses",
        "label": "Investment Company, Federal And State Income And Other Tax Expense",
        "documentation": "Investment Company, Federal And State Income And Other Tax Expense"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Committed capital",
        "label": "Investment Company, Financial Support to Investee Contractually Required, Not Provided, Amount",
        "documentation": "Amount of financial support committed by investment company to investee that is contractually required but not provided."
       }
      }
     },
     "auth_ref": [
      "r650"
     ]
    },
    "us-gaap_InvestmentCompanyFinancialHighlightsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyFinancialHighlightsLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Company, Financial Highlights [Line Items]",
        "label": "Investment Company, Financial Highlights [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": [
      "r662",
      "r664",
      "r665",
      "r666",
      "r667",
      "r668",
      "r669",
      "r670",
      "r671",
      "r672",
      "r673"
     ]
    },
    "us-gaap_InvestmentCompanyFinancialHighlightsRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyFinancialHighlightsRollForward",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Company, Financial Highlights [Roll Forward]",
        "label": "Investment Company, Financial Highlights [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_InvestmentCompanyFinancialHighlightsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyFinancialHighlightsTable",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Company, Financial Highlights [Table]",
        "label": "Investment Company, Financial Highlights [Table]",
        "documentation": "Disclosure of information about financial highlights. Includes, but is not limited to, per share information, income and expense ratios, total return, capital commitment and fee waiver."
       }
      }
     },
     "auth_ref": [
      "r662",
      "r664",
      "r665",
      "r666",
      "r667",
      "r668",
      "r669",
      "r670",
      "r671",
      "r672",
      "r673"
     ]
    },
    "us-gaap_InvestmentCompanyFinancialHighlightsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyFinancialHighlightsTableTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Financial Highlights",
        "label": "Investment Company, Financial Highlights [Table Text Block]",
        "documentation": "Tabular disclosure of financial highlights. Includes, but is not limited to, per share information, income and expense ratios, total return, capital commitment and fee waiver."
       }
      }
     },
     "auth_ref": [
      "r660"
     ]
    },
    "us-gaap_InvestmentCompanyFinancialHighlightsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyFinancialHighlightsTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "FINANCIAL HIGHLIGHTS",
        "label": "Investment Company, Financial Highlights [Text Block]",
        "documentation": "The entire disclosure of financial highlights reported by investment company."
       }
      }
     },
     "auth_ref": [
      "r654",
      "r660",
      "r663",
      "r668"
     ]
    },
    "main_InvestmentCompanyIncomeTaxBenefitProvisionOnNetRealizedGainAndNetUnrealizedAppreciationPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyIncomeTaxBenefitProvisionOnNetRealizedGainAndNetUnrealizedAppreciationPerShare",
     "calculation": {
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails": {
       "parentTag": "us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income tax provision on net realized gain (loss) and net unrealized appreciation (in dollars per share)",
        "label": "Investment\u200b Company, Income Tax Benefit (Provision) On Net Realized Gain And Net Unrealized Appreciation, \u200b\u200bPer\u200b Share",
        "documentation": "Investment\u200b Company, Income Tax Benefit (Provision) On Net Realized Gain And Net Unrealized Appreciation, \u200b\u200bPer\u200b Share"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total income tax provision",
        "label": "Investment Company, Income Tax Expense (Benefit)",
        "documentation": "Investment Company, Income Tax Expense (Benefit)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare",
     "calculation": {
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net increase in net assets resulting from operations (in dollars per share)",
        "label": "Investment Company, Investment Income (Loss) from Operations, Per Share",
        "documentation": "Per share or unit amount of investment income (loss) and realized and unrealized gain (loss) on investment."
       }
      }
     },
     "auth_ref": [
      "r669"
     ]
    },
    "main_InvestmentCompanyInvestmentIncomeLossFromOperationsPerSharePerBasicShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyInvestmentIncomeLossFromOperationsPerSharePerBasicShare",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NET INCREASE IN NET ASSETS RESULTING FROM OPERATIONS PER SHARE\u2014BASIC (in dollars per share)",
        "label": "Investment Company, Investment Income (Loss) from Operations, Per Share, Per Basic Share",
        "documentation": "Investment Company, Investment Income (Loss) from Operations, Per Share, Per Basic Share"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyInvestmentIncomeLossFromOperationsPerSharePerDilutedShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyInvestmentIncomeLossFromOperationsPerSharePerDilutedShare",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NET INCREASE IN NET ASSETS RESULTING FROM OPERATIONS PER SHARE\u2014DILUTED (in dollars per share)",
        "label": "Investment Company, Investment Income (Loss) from Operations, Per Share, Per Diluted Share",
        "documentation": "Investment Company, Investment Income (Loss) from Operations, Per Share, Per Diluted Share"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyInvestmentIncomeLossPerShare",
     "calculation": {
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails": {
       "parentTag": "us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net investment income (in dollars per share)",
        "label": "Investment Company, Investment Income (Loss), Per Share, Basic",
        "documentation": "Per-basic-share or unit amount, after investment expense, of dividend and interest investment income (loss) from investment held by investment company."
       }
      }
     },
     "auth_ref": [
      "r667"
     ]
    },
    "us-gaap_InvestmentCompanyInvestmentIncomeLossRatio": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyInvestmentIncomeLossRatio",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Ratio of net investment income to average NAV",
        "label": "Investment Company, Investment Income (Loss) Ratio",
        "documentation": "Percentage of investment income (loss) to average net assets."
       }
      }
     },
     "auth_ref": [
      "r1407"
     ]
    },
    "us-gaap_InvestmentCompanyInvestmentOwnedFairValueMeasurementInput": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyInvestmentOwnedFairValueMeasurementInput",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measurement input",
        "label": "Investment Company, Investment Owned, Measurement Input",
        "documentation": "Value of input used to measure investment owned by investment company."
       }
      }
     },
     "auth_ref": [
      "r467",
      "r468"
     ]
    },
    "us-gaap_InvestmentCompanyMarketValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyMarketValuePerShare",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Market value as of the end of the period (in dollars per share)",
        "label": "Investment Company, Market Value, Per Share",
        "documentation": "Market value per share of investment portfolio by investment company. Includes, but is not limited to, per unit, membership interest, or other ownership interest."
       }
      }
     },
     "auth_ref": [
      "r1411"
     ]
    },
    "main_InvestmentCompanyNetRealizedGainLossOnInvestmentPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyNetRealizedGainLossOnInvestmentPerShare",
     "calculation": {
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails": {
       "parentTag": "us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net realized gain (loss) (in dollars per share)",
        "label": "Investment Company, Net Realized Gain (Loss) On Investment, Per Share",
        "documentation": "Investment Company, Net Realized Gain (Loss) On Investment, Per Share"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyNonconsolidatedSubsidiaryAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyNonconsolidatedSubsidiaryAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERNarrativeDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Company, Nonconsolidated Subsidiary [Axis]",
        "label": "Investment Company, Nonconsolidated Subsidiary [Axis]",
        "documentation": "Information by nonconsolidated subsidiary of investment company. Excludes information consolidated by reporting entity."
       }
      }
     },
     "auth_ref": [
      "r155",
      "r158",
      "r966"
     ]
    },
    "us-gaap_InvestmentCompanyNonconsolidatedSubsidiaryDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyNonconsolidatedSubsidiaryDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERNarrativeDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Company, Nonconsolidated Subsidiary [Domain]",
        "label": "Investment Company, Nonconsolidated Subsidiary [Domain]",
        "documentation": "Nonconsolidated subsidiary of investment company. Excludes information consolidated by reporting entity."
       }
      }
     },
     "auth_ref": [
      "r155",
      "r158",
      "r966"
     ]
    },
    "us-gaap_InvestmentCompanyNonconsolidatedSubsidiaryLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyNonconsolidatedSubsidiaryLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Company, Nonconsolidated Subsidiary [Line Items]",
        "label": "Investment Company, Nonconsolidated Subsidiary [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": [
      "r155",
      "r158"
     ]
    },
    "us-gaap_InvestmentCompanyNonconsolidatedSubsidiarySummarizedFinancialInformationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyNonconsolidatedSubsidiarySummarizedFinancialInformationTableTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Information from External Investment Manager",
        "label": "Investment Company, Nonconsolidated Subsidiary, Summarized Financial Information [Table Text Block]",
        "documentation": "Tabular disclosure of summarized financial information for nonconsolidated subsidiary of investment company. Excludes information consolidated by reporting entity."
       }
      }
     },
     "auth_ref": [
      "r1230",
      "r1234"
     ]
    },
    "us-gaap_InvestmentCompanyNonconsolidatedSubsidiaryTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyNonconsolidatedSubsidiaryTable",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Company, Nonconsolidated Subsidiary [Table]",
        "label": "Investment Company, Nonconsolidated Subsidiary [Table]",
        "documentation": "Disclosure of information about nonconsolidated subsidiary of investment company. Excludes information consolidated by reporting entity."
       }
      }
     },
     "auth_ref": [
      "r155",
      "r158"
     ]
    },
    "main_InvestmentCompanyNumberOfAdditionalInvestmentsCommitmentsRestrictedForFundExpensesOrFollowOnInvestmentsInExistingPortfolio": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyNumberOfAdditionalInvestmentsCommitmentsRestrictedForFundExpensesOrFollowOnInvestmentsInExistingPortfolio",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contractual obligation, number of additional investments, investment period expired with remaining commitments restricted for fund expenses or follow on investments in existing portfolio companies",
        "label": "Investment Company, Number Of Additional Investments, Commitments Restricted For Fund Expenses Or Follow On Investments In Existing Portfolio",
        "documentation": "Investment Company, Number Of Additional Investments, Commitments Restricted For Fund Expenses Or Follow On Investments In Existing Portfolio"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyNumberOfAdditionalInvestmentsInvestmentPeriodExpiredWithRemainingCommitmentsRestrictedForFundExpenses": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyNumberOfAdditionalInvestmentsInvestmentPeriodExpiredWithRemainingCommitmentsRestrictedForFundExpenses",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contractual obligation, number of additional investments, investment period expired with remaining commitments restricted for fund expenses",
        "label": "Investment Company, Number Of Additional Investments, Investment Period Expired With Remaining Commitments Restricted For Fund Expenses",
        "documentation": "Investment Company, Number Of Additional Investments, Investment Period Expired With Remaining Commitments Restricted For Fund Expenses"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyNumberOfCompaniesWithinPortfolioExcludedFromEBITDACalculation": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyNumberOfCompaniesWithinPortfolioExcludedFromEBITDACalculation",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment company, number of companies within portfolio excluded from EBITDA calculation",
        "label": "Investment Company, Number of Companies Within Portfolio Excluded From EBITDA Calculation",
        "documentation": "Investment Company, Number of Companies Within Portfolio Excluded From EBITDA Calculation"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyNumberOfPortfolioCompanies": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyNumberOfPortfolioCompanies",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of portfolio companies",
        "label": "Investment Company, Number Of Portfolio Companies",
        "documentation": "Investment Company, Number Of Portfolio Companies"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyNumberOfPortfolioCompaniesWithAnnualThirdPartyAppraisalWasObtainedReviewedAndCertified": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyNumberOfPortfolioCompaniesWithAnnualThirdPartyAppraisalWasObtainedReviewedAndCertified",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment company, number of portfolio companies with annual third-party appraisal was obtained, reviewed and certified",
        "label": "Investment Company, Number Of Portfolio Companies With Annual Third-Party Appraisal Was Obtained, Reviewed and Certified",
        "documentation": "Investment Company, Number Of Portfolio Companies With Annual Third-Party Appraisal Was Obtained, Reviewed and Certified"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyNumberOfPortfolioInvestments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyNumberOfPortfolioInvestments",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of portfolio investments",
        "label": "Investment Company, Number Of Portfolio Investments",
        "documentation": "Investment Company, Number Of Portfolio Investments"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyNumberOfPortfolioInvestmentsEntities": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyNumberOfPortfolioInvestmentsEntities",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of portfolio investments in entities",
        "label": "Investment Company, Number Of Portfolio Investments, Entities",
        "documentation": "Investment Company, Number Of Portfolio Investments, Entities"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyNumberOfPortfolioInvestmentsInvestmentManagers": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyNumberOfPortfolioInvestmentsInvestmentManagers",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of investment managers",
        "label": "Investment Company, Number Of Portfolio Investments, Investment Managers",
        "documentation": "Investment Company, Number Of Portfolio Investments, Investment Managers"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyOperatingExpenseRatioExcludingInterestExpense": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyOperatingExpenseRatioExcludingInterestExpense",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ratio of operating expenses, excluding interest expense, to average NAV",
        "label": "Investment Company, Operating Expense Ratio Excluding Interest Expense",
        "documentation": "Investment Company, Operating Expense Ratio Excluding Interest Expense"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyOperatingExpensesRatio": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyOperatingExpensesRatio",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ratio of operating expenses to average NAV",
        "label": "Investment Company, Operating Expenses Ratio",
        "documentation": "Investment Company, Operating Expenses Ratio"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyOtherPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyOtherPerShare",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other (in dollars per share)",
        "label": "Investment Company, Other, Per Share",
        "documentation": "Investment Company, Other, Per Share"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyOutstandingCapitalCommitmentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyOutstandingCapitalCommitmentsTableTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Outstanding Commitments",
        "label": "Investment Company, Outstanding Capital Commitments [Table Text Block]",
        "documentation": "Investment Company, Outstanding Capital Commitments"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyPerShareDataAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyPerShareDataAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Per Share Data:",
        "label": "Investment Company, Per Share Data [Abstract]",
        "documentation": "Investment Company, Per Share Data"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyPercentageOfLoansWithVariableRateFloors": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyPercentageOfLoansWithVariableRateFloors",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of loans with variable rate floors (as a percent)",
        "label": "Investment Company, Percentage Of Loans With Variable Rate Floors",
        "documentation": "Investment Company, Percentage Of Loans With Variable Rate Floors"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyPercentageOfPortfolioWithAnnualThirdPartyAppraisalWasObtainedReviewedAndCertified": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyPercentageOfPortfolioWithAnnualThirdPartyAppraisalWasObtainedReviewedAndCertified",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of portfolio with annual third-party appraisal was obtained, reviewed and certified (as a percent)",
        "label": "Investment Company, Percentage of Portfolio With Annual Third-Party Appraisal Was Obtained, Reviewed and Certified",
        "documentation": "Investment Company, Percentage of Portfolio With Annual Third-Party Appraisal Was Obtained, Reviewed and Certified"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyPercentageOfTotalInvestmentIncomeAttributableToInterestIncomeDebtInvestmentsNet": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyPercentageOfTotalInvestmentIncomeAttributableToInterestIncomeDebtInvestmentsNet",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of total investment income, attributable to interest income, debt investments, net (as a percent)",
        "label": "Investment Company, Percentage Of Total Investment Income, Attributable To Interest Income, Debt Investments, Net",
        "documentation": "Investment Company, Percentage Of Total Investment Income, Attributable To Interest Income, Debt Investments, Net"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyPercentageOfTotalInvestmentIncomeAttributableToNoncashCumulativeDividendIncome": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyPercentageOfTotalInvestmentIncomeAttributableToNoncashCumulativeDividendIncome",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of total investment come, attributable to noncash cumulative dividend income (as a percent)",
        "label": "Investment Company, Percentage Of Total Investment Income, Attributable To Noncash Cumulative Dividend Income",
        "documentation": "Investment Company, Percentage Of Total Investment Income, Attributable To Noncash Cumulative Dividend Income"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyPercentageOfTotalInvestmentIncomeAttributableToNoncashPaidInKindInterestIncome": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyPercentageOfTotalInvestmentIncomeAttributableToNoncashPaidInKindInterestIncome",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of total investment income, attributable to noncash paid-in-kind interest income (as a percent)",
        "label": "Investment Company, Percentage Of Total Investment Income, Attributable To Noncash Paid-in-Kind Interest Income",
        "documentation": "Investment Company, Percentage Of Total Investment Income, Attributable To Noncash Paid-in-Kind Interest Income"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyPortfolioInvestmentsLimitedConsultationWithFinancialAdvisoryServicesFirmPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyPortfolioInvestmentsLimitedConsultationWithFinancialAdvisoryServicesFirmPercentage",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of portfolio investments containing limited consultation with financial advisory services firm (as a percent)",
        "label": "Investment Company, Portfolio Investments, Limited Consultation With Financial Advisory Services Firm, Percentage",
        "documentation": "Investment Company, Portfolio Investments, Limited Consultation With Financial Advisory Services Firm, Percentage"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyPortfolioTurnover": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyPortfolioTurnover",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Portfolio turnover ratio",
        "label": "Investment Company, Portfolio Turnover",
        "documentation": "Percentage of lesser of purchase or sale of portfolio securities to average value of portfolio securities owned."
       }
      }
     },
     "auth_ref": [
      "r1410"
     ]
    },
    "main_InvestmentCompanyRatioToAverageNetAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyRatioToAverageNetAssetsAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ratios to average NAV:",
        "label": "Investment Company, Ratio To Average Net Assets [Abstract]",
        "documentation": "Investment Company, Ratio To Average Net Assets"
       }
      }
     },
     "auth_ref": []
    },
    "dei_InvestmentCompanyRegistrationAmendment": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "InvestmentCompanyRegistrationAmendment",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Registration Amendment"
       }
      }
     },
     "auth_ref": [
      "r1090"
     ]
    },
    "dei_InvestmentCompanyRegistrationAmendmentNumber": {
     "xbrltype": "sequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "InvestmentCompanyRegistrationAmendmentNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Registration Amendment Number"
       }
      }
     },
     "auth_ref": [
      "r1090"
     ]
    },
    "main_InvestmentCompanyTaxBasisBookIncomeAndTaxIncomeDifferencesIncreaseDecreaseInTaxableIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyTaxBasisBookIncomeAndTaxIncomeDifferencesIncreaseDecreaseInTaxableIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails": {
       "parentTag": "main_InvestmentCompanyTaxBasisNetIncomeLossAttributableToParentEstimated",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Book income and tax income differences, including debt origination, structuring fees, dividends, realized gains and changes in estimates",
        "label": "Investment Company, Tax Basis, Book Income and Tax Income Differences, Increase (Decrease) In Taxable Income",
        "documentation": "Investment Company, Tax Basis, Book Income and Tax Income Differences, Increase (Decrease) In Taxable Income"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyTaxBasisBookTaxDifferenceFromShareBasedCompensationExpenseIncreaseDecreaseInTaxableIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyTaxBasisBookTaxDifferenceFromShareBasedCompensationExpenseIncreaseDecreaseInTaxableIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails": {
       "parentTag": "main_InvestmentCompanyTaxBasisNetIncomeLossAttributableToParentEstimated",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Book-tax difference from share-based compensation expense",
        "label": "Investment Company, Tax Basis, Book-tax Difference From Share-based Compensation Expense, Increase (Decrease) In Taxable Income",
        "documentation": "Investment Company, Tax Basis, Book-tax Difference From Share-based Compensation Expense, Increase (Decrease) In Taxable Income"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyTaxBasisDistributionsAccruedOrPaidToCommonStockholders": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyTaxBasisDistributionsAccruedOrPaidToCommonStockholders",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total distributions accrued or paid to common stockholders",
        "label": "Investment Company, Tax Basis, Distributions Accrued Or Paid To Common Stockholders",
        "documentation": "Investment Company, Tax Basis, Distributions Accrued Or Paid To Common Stockholders"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyTaxBasisDividendsPaidOrPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyTaxBasisDividendsPaidOrPayable",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails": {
       "parentTag": "main_InvestmentCompanyTaxBasisDistributionsAccruedOrPaidToCommonStockholders",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividend payable as of period end and paid in the following period",
        "label": "Investment Company, Tax Basis, Dividends Paid Or Payable",
        "documentation": "Investment Company, Tax Basis, Dividends Paid Or Payable"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyTaxBasisIncomeTaxProvision": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyTaxBasisIncomeTaxProvision",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails": {
       "parentTag": "main_InvestmentCompanyTaxBasisNetIncomeLossAttributableToParentEstimated",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Income tax provision",
        "label": "Investment Company, Tax Basis, Income Tax Provision",
        "documentation": "Investment Company, Tax Basis, Income Tax Provision"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyTaxBasisNetIncomeLossAttributableToParentEstimated": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyTaxBasisNetIncomeLossAttributableToParentEstimated",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails": {
       "parentTag": "main_InvestmentCompanyTaxBasisDistributionsAccruedOrPaidToCommonStockholders",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Estimated taxable income",
        "label": "Investment Company, Tax Basis, Net Income (Loss) Attributable To Parent, Estimated",
        "documentation": "Investment Company, Tax Basis, Net Income (Loss) Attributable To Parent, Estimated"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyTaxBasisPreTaxBookIncomeLossNotConsolidatedForTaxPurposesIncreaseDecreaseInTaxableIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyTaxBasisPreTaxBookIncomeLossNotConsolidatedForTaxPurposesIncreaseDecreaseInTaxableIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails": {
       "parentTag": "main_InvestmentCompanyTaxBasisNetIncomeLossAttributableToParentEstimated",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pre-tax book income not consolidated for tax purposes",
        "label": "Investment Company, Tax Basis, Pre-tax Book (Income) Loss Not Consolidated For Tax purposes, Increase (Decrease) In Taxable Income",
        "documentation": "Investment Company, Tax Basis, Pre-tax Book (Income) Loss Not Consolidated For Tax purposes, Increase (Decrease) In Taxable Income"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyTaxBasisTaxableIncomeEarnedInPriorYearAndCarriedForwardForDistributionInCurrentYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyTaxBasisTaxableIncomeEarnedInPriorYearAndCarriedForwardForDistributionInCurrentYear",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails": {
       "parentTag": "main_InvestmentCompanyTaxBasisDistributionsAccruedOrPaidToCommonStockholders",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Taxable income earned in prior year and carried forward for distribution in current year",
        "label": "Investment Company, Tax Basis, Taxable Income Earned in Prior Year and Carried Forward for Distribution in Current Year",
        "documentation": "Investment Company, Tax Basis Reconciliation, Taxable Income Earned in Prior Year and Carried Forward for Distribution in Current Year"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentCompanyTaxBasisTaxableIncomeEarnedPriorToPeriodEndAndCarriedForwardForDistributionNextPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentCompanyTaxBasisTaxableIncomeEarnedPriorToPeriodEndAndCarriedForwardForDistributionNextPeriod",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails": {
       "parentTag": "main_InvestmentCompanyTaxBasisDistributionsAccruedOrPaidToCommonStockholders",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Taxable income earned prior to period end and carried forward for distribution next period",
        "label": "Investment Company, Tax Basis, Taxable Income Earned Prior To Period End and Carried Forward For Distribution Next Period",
        "documentation": "Investment Company, Tax Basis, Taxable Income Earned Prior To Period End and Carried Forward For Distribution Next Period"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyTaxBasisUnrealizedGainLossNotCurrentlyTaxableDeductible": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyTaxBasisUnrealizedGainLossNotCurrentlyTaxableDeductible",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails": {
       "parentTag": "main_InvestmentCompanyTaxBasisNetIncomeLossAttributableToParentEstimated",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net unrealized (appreciation) depreciation",
        "label": "Investment Company, Tax Basis, Unrealized (Gain) Loss, Not Currently (Taxable) Deductible",
        "documentation": "Amount of increase (decrease) in income from operation from difference between amount reported in financial statement and tax basis of investment company, attributable to unrealized loss (gain) not currently deductible (taxable) for tax purpose resulting in temporary difference."
       }
      }
     },
     "auth_ref": [
      "r1157",
      "r1322"
     ]
    },
    "us-gaap_InvestmentCompanyTotalReturn": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyTotalReturn",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total return based on change in NAV",
        "label": "Investment Company, Total Return",
        "documentation": "Percentage increase (decrease) in fund net asset value, assuming reinvestment of dividends and capital gain distributions."
       }
      }
     },
     "auth_ref": [
      "r651",
      "r661",
      "r664"
     ]
    },
    "us-gaap_InvestmentCompanyTotalReturnMarketValue": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyTotalReturnMarketValue",
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total investment return",
        "label": "Investment Company, Total Return, Market Value",
        "documentation": "Percentage increase (decrease) in portfolio market value assuming reinvestment of dividend and capital gain distribution."
       }
      }
     },
     "auth_ref": [
      "r1409"
     ]
    },
    "us-gaap_InvestmentCompanyUnrealizedGainLossOnInvestmentPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyUnrealizedGainLossOnInvestmentPerShare",
     "calculation": {
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails": {
       "parentTag": "us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net unrealized appreciation (depreciation) (in dollars per share)",
        "label": "Investment Company, Unrealized Gain (Loss) on Investment, Per Share",
        "documentation": "Per-share or unit amount of unrealized gain (loss) on investment held by investment company."
       }
      }
     },
     "auth_ref": [
      "r1412"
     ]
    },
    "us-gaap_InvestmentIdentifierAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIdentifierAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESDetails",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment, Identifier [Axis]",
        "label": "Investment, Identifier [Axis]",
        "documentation": "Identification of investment in security, including, but not limited to, name, title, and other identifying information."
       }
      }
     },
     "auth_ref": [
      "r675",
      "r676",
      "r677",
      "r682",
      "r683",
      "r684",
      "r689",
      "r690",
      "r763",
      "r764",
      "r765",
      "r766",
      "r767",
      "r768",
      "r769",
      "r770",
      "r773",
      "r774",
      "r775",
      "r776",
      "r777",
      "r779",
      "r780",
      "r781",
      "r783",
      "r785",
      "r789",
      "r790",
      "r791",
      "r792",
      "r793",
      "r794",
      "r795",
      "r797",
      "r798",
      "r799",
      "r800",
      "r801",
      "r802",
      "r803",
      "r804",
      "r806",
      "r807",
      "r808",
      "r811",
      "r812",
      "r814",
      "r815",
      "r816",
      "r817",
      "r818",
      "r819",
      "r820",
      "r821",
      "r822",
      "r823",
      "r824",
      "r825",
      "r826",
      "r828",
      "r829",
      "r831",
      "r832",
      "r833",
      "r834",
      "r836",
      "r837",
      "r838",
      "r839",
      "r841",
      "r843",
      "r844",
      "r845",
      "r966",
      "r1402",
      "r1403"
     ]
    },
    "us-gaap_InvestmentIncomeDividend": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIncomeDividend",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofInvestmentIncomeDetails": {
       "parentTag": "us-gaap_GrossInvestmentIncomeOperating",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofInvestmentIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividend income",
        "label": "Investment Income, Dividend",
        "documentation": "Amount of dividend income on nonoperating securities."
       }
      }
     },
     "auth_ref": [
      "r48"
     ]
    },
    "us-gaap_InvestmentIncomeInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIncomeInterest",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofInvestmentIncomeDetails": {
       "parentTag": "us-gaap_GrossInvestmentIncomeOperating",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofInvestmentIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest income",
        "label": "Investment Income, Interest",
        "documentation": "Amount before accretion (amortization) of purchase discount (premium) of interest income on nonoperating securities."
       }
      }
     },
     "auth_ref": [
      "r192",
      "r205",
      "r217",
      "r898",
      "r1182"
     ]
    },
    "us-gaap_InvestmentIncomeInvestmentExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIncomeInvestmentExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": -1.0,
       "order": 1.0
      },
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations": {
       "parentTag": "us-gaap_NetInvestmentIncome",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTotalLabel": "Total expenses",
        "label": "Investment Income, Investment Expense",
        "documentation": "Amount of expenses related to the generation of investment income."
       }
      }
     },
     "auth_ref": [
      "r51",
      "r977",
      "r1369"
     ]
    },
    "us-gaap_InvestmentIncomeNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIncomeNetAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "INVESTMENT INCOME:",
        "verboseLabel": "INVESTMENT INCOME:",
        "label": "Investment Income, Net [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIncomeOperatingAfterExpenseAndTax",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "NET INVESTMENT INCOME",
        "label": "Investment Income, Operating, after Expense and Tax",
        "documentation": "Amount, after expense and tax, of investment income classified as operating. Excludes realized and unrealized gain (loss) on investment."
       }
      }
     },
     "auth_ref": [
      "r657",
      "r737",
      "r751",
      "r978"
     ]
    },
    "main_InvestmentIncomeOperatingDeferredFederalTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentIncomeOperatingDeferredFederalTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails": {
       "parentTag": "main_InvestmentIncomeOperatingDeferredTaxExpenseBenefit",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal",
        "label": "Investment Income, Operating, Deferred Federal Tax Expense (Benefit)",
        "documentation": "Investment Income, Operating, Deferred Federal Tax Expense (Benefit)"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentIncomeOperatingDeferredStateAndOtherTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentIncomeOperatingDeferredStateAndOtherTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails": {
       "parentTag": "main_InvestmentIncomeOperatingDeferredTaxExpenseBenefit",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "State and other",
        "label": "Investment Income, Operating, Deferred State And Other Tax Expense (Benefit)",
        "documentation": "Investment Income, Operating, Deferred State And Other Tax Expense (Benefit)"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentIncomeOperatingDeferredTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentIncomeOperatingDeferredTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails": {
       "parentTag": "us-gaap_InvestmentIncomeOperatingTaxExpenseBenefit",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total deferred tax expense",
        "label": "Investment Income, Operating, Deferred Tax Expense (Benefit)",
        "documentation": "Investment Income, Operating, Deferred Tax Expense (Benefit)"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentIncomeOperatingFederalTaxExpenseBenefitCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentIncomeOperatingFederalTaxExpenseBenefitCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails": {
       "parentTag": "main_InvestmentIncomeOperatingTaxExpenseBenefitCurrent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal",
        "label": "Investment Income, Operating, Federal Tax Expense (Benefit), Current",
        "documentation": "Investment Income, Operating, Federal Tax Expense (Benefit), Current"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentIncomeOperatingStateAndOtherTaxExpenseBenefitCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentIncomeOperatingStateAndOtherTaxExpenseBenefitCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails": {
       "parentTag": "main_InvestmentIncomeOperatingTaxExpenseBenefitCurrent",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "State and other",
        "label": "Investment Income, Operating, State And Other Tax Expense (Benefit), Current",
        "documentation": "Investment Income, Operating, State And Other Tax Expense (Benefit), Current"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentIncomeOperatingTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIncomeOperatingTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails": {
       "parentTag": "main_InvestmentCompanyIncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total net investment income tax provision",
        "label": "Investment Income, Operating, Tax Expense (Benefit)",
        "documentation": "Amount of tax expense (benefit) on investment income classified as operating. Excludes realized and unrealized gain (loss) on investment."
       }
      }
     },
     "auth_ref": [
      "r722",
      "r724",
      "r736",
      "r1419"
     ]
    },
    "main_InvestmentIncomeOperatingTaxExpenseBenefitCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentIncomeOperatingTaxExpenseBenefitCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails": {
       "parentTag": "us-gaap_InvestmentIncomeOperatingTaxExpenseBenefit",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total current tax expense",
        "label": "Investment Income, Operating, Tax Expense (Benefit), Current",
        "documentation": "Investment Income, Operating, Tax Expense (Benefit), Current"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentIncomeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIncomeTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Investment Income",
        "label": "Investment Income [Table Text Block]",
        "documentation": "Tabular disclosure of investment income, including, but not limited to, interest and dividend income and amortization of discount (premium) derived from debt and equity securities. Excludes realized and unrealized gain (loss) on investments."
       }
      }
     },
     "auth_ref": [
      "r48",
      "r49",
      "r50",
      "r51",
      "r1370"
     ]
    },
    "main_InvestmentIndexBasedFloatingInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentIndexBasedFloatingInterestRate",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate (as a percent)",
        "label": "Investment, Index Based Floating Interest Rate",
        "documentation": "Investment, Index Based Floating Interest Rate"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentInterestRate",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total Rate",
        "terseLabel": "Interest rate (as a percent)",
        "label": "Investment Interest Rate",
        "documentation": "Rate of interest on investment."
       }
      }
     },
     "auth_ref": [
      "r765",
      "r766",
      "r786",
      "r787",
      "r791",
      "r792",
      "r823",
      "r824",
      "r966",
      "r1256",
      "r1257"
     ]
    },
    "us-gaap_InvestmentInterestRateFloor": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentInterestRateFloor",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Floor rate (as a percent)",
        "label": "Investment, Interest Rate, Floor",
        "documentation": "Minimum rate of interest on investment."
       }
      }
     },
     "auth_ref": [
      "r1433",
      "r1436",
      "r1439",
      "r1442"
     ]
    },
    "us-gaap_InvestmentInterestRatePaidInKind": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentInterestRatePaidInKind",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PIK Rate",
        "label": "Investment, Interest Rate, Paid in Kind",
        "documentation": "Rate of interest paid in kind on investment."
       }
      }
     },
     "auth_ref": [
      "r766",
      "r787",
      "r791",
      "r824"
     ]
    },
    "main_InvestmentInterestRateStated": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentInterestRateStated",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate, stated (as a percent)",
        "label": "Investment Interest Rate, Stated",
        "documentation": "Investment Interest Rate, Stated"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentIssuerAffiliationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIssuerAffiliationAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesFootnotesDetails",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment, Issuer Affiliation [Axis]",
        "label": "Investment, Issuer Affiliation [Axis]",
        "documentation": "Information by affiliation of issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r638",
      "r656",
      "r680",
      "r691",
      "r704",
      "r705",
      "r726",
      "r727",
      "r729",
      "r730",
      "r738",
      "r739",
      "r744",
      "r745",
      "r771",
      "r772",
      "r778",
      "r805",
      "r809",
      "r810",
      "r827",
      "r828",
      "r830",
      "r831",
      "r835",
      "r836",
      "r840",
      "r841",
      "r842"
     ]
    },
    "us-gaap_InvestmentIssuerAffiliationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIssuerAffiliationDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesFootnotesDetails",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment, Issuer Affiliation [Domain]",
        "label": "Investment, Issuer Affiliation [Domain]",
        "documentation": "Affiliation of issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r638",
      "r656",
      "r680",
      "r691",
      "r704",
      "r705",
      "r726",
      "r727",
      "r729",
      "r730",
      "r738",
      "r739",
      "r744",
      "r745",
      "r771",
      "r772",
      "r778",
      "r805",
      "r809",
      "r810",
      "r827",
      "r828",
      "r830",
      "r831",
      "r835",
      "r836",
      "r840",
      "r841",
      "r842"
     ]
    },
    "us-gaap_InvestmentIssuerNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIssuerNameAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESDetails",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment, Issuer Name [Axis]",
        "label": "Investment, Issuer Name [Axis]",
        "documentation": "Information by name of issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r1434",
      "r1437",
      "r1440",
      "r1443"
     ]
    },
    "us-gaap_InvestmentIssuerNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIssuerNameDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESDetails",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment, Issuer Name [Domain]",
        "label": "Investment, Issuer Name [Domain]",
        "documentation": "Name of issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r1434",
      "r1437",
      "r1440",
      "r1443"
     ]
    },
    "main_InvestmentManagementAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentManagementAgreementMember",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Management Agreement",
        "label": "Investment Management Agreement [Member]",
        "documentation": "Investment Management Agreement"
       }
      }
     },
     "auth_ref": []
    },
    "cef_InvestmentObjectivesAndPracticesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "InvestmentObjectivesAndPracticesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Objectives and Practices [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1061"
     ]
    },
    "us-gaap_InvestmentOwnedAtCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentOwnedAtCost",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Investment, cost",
        "terseLabel": "Cost",
        "label": "Investment Owned, Cost",
        "documentation": "Cost of the investment."
       }
      }
     },
     "auth_ref": [
      "r638",
      "r682",
      "r683",
      "r775",
      "r785",
      "r802",
      "r841",
      "r966",
      "r979",
      "r1413"
     ]
    },
    "main_InvestmentOwnedAtCostMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentOwnedAtCostMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Owned, At Cost",
        "label": "Investment Owned, At Cost [Member]",
        "documentation": "Investment Owned, At Cost"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentOwnedAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentOwnedAtFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesFootnotesDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments at fair value:",
        "verboseLabel": "Fair value",
        "netLabel": "Total Level 3 investments",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "label": "Investment Owned, Fair Value",
        "documentation": "Fair value of investment in security owned."
       }
      }
     },
     "auth_ref": [
      "r638",
      "r675",
      "r676",
      "r677",
      "r679",
      "r681",
      "r682",
      "r683",
      "r686",
      "r691",
      "r693",
      "r704",
      "r705",
      "r762",
      "r771",
      "r772",
      "r781",
      "r795",
      "r796",
      "r809",
      "r810",
      "r811",
      "r818",
      "r821",
      "r840",
      "r842",
      "r845",
      "r966",
      "r979",
      "r1413"
     ]
    },
    "main_InvestmentOwnedAtFairValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentOwnedAtFairValueMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Owned, At Fair Value",
        "label": "Investment Owned, At Fair Value [Member]",
        "documentation": "Investment Owned, At Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentOwnedBalancePercentOfShares": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentOwnedBalancePercentOfShares",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Units (as a percent)",
        "label": "Investment Owned, Balance, Percent Of Shares",
        "documentation": "Investment Owned, Balance, Percent Of Shares"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentOwnedBalancePrincipalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentOwnedBalancePrincipalAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Principal",
        "label": "Investment Owned, Balance, Principal Amount",
        "documentation": "Amount of principal of investment owned."
       }
      }
     },
     "auth_ref": [
      "r675",
      "r686",
      "r769",
      "r799",
      "r826",
      "r966"
     ]
    },
    "us-gaap_InvestmentOwnedBalanceShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentOwnedBalanceShares",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Units (in shares)",
        "label": "Investment Owned, Balance, Shares",
        "documentation": "Number of shares of investment owned."
       }
      }
     },
     "auth_ref": [
      "r675",
      "r686",
      "r769",
      "r799",
      "r826",
      "r966"
     ]
    },
    "us-gaap_InvestmentOwnedPercentOfNetAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentOwnedPercentOfNetAssets",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment owned, percent of net assets (as a percent)",
        "label": "Investment Owned, Net Assets, Percentage",
        "documentation": "Percentage of investment owned to net assets."
       }
      }
     },
     "auth_ref": [
      "r678",
      "r682",
      "r683",
      "r771",
      "r795",
      "r809",
      "r812",
      "r842",
      "r966",
      "r1413"
     ]
    },
    "main_InvestmentOwnedRecognizedUnrealizedAppreciationDepreciationNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentOwnedRecognizedUnrealizedAppreciationDepreciationNetAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NET UNREALIZED APPRECIATION (DEPRECIATION):",
        "verboseLabel": "NET UNREALIZED APPRECIATION (DEPRECIATION):",
        "label": "Investment Owned, Recognized Unrealized Appreciation (Depreciation), Net [Abstract]",
        "documentation": "Investment Owned, Recognized Unrealized Appreciation (Depreciation), Net"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentPolicyTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Portfolio Investment Classification and Valuation of the Investment Portfolio",
        "label": "Investment, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for investment in financial asset."
       }
      }
     },
     "auth_ref": [
      "r615",
      "r638",
      "r639",
      "r640",
      "r641",
      "r782",
      "r784"
     ]
    },
    "main_InvestmentTaxExpenseIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentTaxExpenseIncomeAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment valuation related taxes",
        "label": "Investment Tax Expense (Income) [Abstract]",
        "documentation": "Investment Tax Expense (Income)"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentTaxExpenseIncomeCurrentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentTaxExpenseIncomeCurrentAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current tax expense:",
        "label": "Investment Tax Expense (Income), Current [Abstract]",
        "documentation": "Investment Tax Expense (Income), Current"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentTaxExpenseIncomeDeferredAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentTaxExpenseIncomeDeferredAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred tax expense (benefit):",
        "label": "Investment Tax Expense (Income), Deferred [Abstract]",
        "documentation": "Investment Tax Expense (Income), Deferred"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentTerm",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment term (in years)",
        "label": "Investment, Term",
        "documentation": "Investment, Term"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentTypeAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Type [Axis]",
        "label": "Investment Type [Axis]",
        "documentation": "Information by type of investments."
       }
      }
     },
     "auth_ref": [
      "r676",
      "r678",
      "r679",
      "r682",
      "r686",
      "r762",
      "r771",
      "r788",
      "r796",
      "r809",
      "r813",
      "r842",
      "r846",
      "r847",
      "r848",
      "r849",
      "r966"
     ]
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentTypeCategorizationMember",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments [Domain]",
        "label": "Investments [Domain]",
        "documentation": "Asset obtained to generate income or appreciate in value."
       }
      }
     },
     "auth_ref": [
      "r676",
      "r678",
      "r679",
      "r682",
      "r686",
      "r762",
      "r771",
      "r788",
      "r796",
      "r809",
      "r813",
      "r842",
      "r846",
      "r847",
      "r848",
      "r849",
      "r966"
     ]
    },
    "main_InvestmentTypeConcentrationRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentTypeConcentrationRiskMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Type Concentration Risk",
        "label": "Investment Type Concentration Risk [Member]",
        "documentation": "Investment Type Concentration Risk"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentUnaffiliatedIssuerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentUnaffiliatedIssuerMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non\u2011Control/Non\u2011Affiliate investments",
        "label": "Investment, Unaffiliated Issuer [Member]",
        "documentation": "Unaffiliated issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r638",
      "r691",
      "r720",
      "r726",
      "r727",
      "r729",
      "r738",
      "r744",
      "r762",
      "r767",
      "r771",
      "r772",
      "r778",
      "r797",
      "r805",
      "r809",
      "r810"
     ]
    },
    "main_InvestmentsAnnualRevenuesPerCompany": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentsAnnualRevenuesPerCompany",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Annual revenues",
        "label": "Investments, Annual Revenues Per Company",
        "documentation": "Investments, Annual Revenues Per Company"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentsInAndAdvancesToAffiliatesAtFairValueGrossAdditions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentsInAndAdvancesToAffiliatesAtFairValueGrossAdditions",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gross Additions",
        "label": "Investments in and Advances to Affiliates, at Fair Value, Gross Additions",
        "documentation": "Gross additions to the investment in and advance to the affiliate."
       }
      }
     },
     "auth_ref": [
      "r819"
     ]
    },
    "us-gaap_InvestmentsInAndAdvancesToAffiliatesAtFairValueGrossReductions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentsInAndAdvancesToAffiliatesAtFairValueGrossReductions",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gross Reductions",
        "label": "Investments in and Advances to Affiliates, at Fair Value, Gross Reductions",
        "documentation": "Gross reductions to the investment in and advance to the affiliate."
       }
      }
     },
     "auth_ref": [
      "r820"
     ]
    },
    "us-gaap_InvestmentsInAndAdvancesToAffiliatesAtFairValueRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentsInAndAdvancesToAffiliatesAtFairValueRollForward",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments in and Advances to Affiliates, at Fair Value [Roll Forward]",
        "label": "Investments in and Advances to Affiliates, at Fair Value [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": []
    },
    "main_InvestmentsInAndAdvancesToAffiliatesPercentageOfNetAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentsInAndAdvancesToAffiliatesPercentageOfNetAssets",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesFootnotesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net assets, percentage (as a percent)",
        "label": "Investments in and Advances to Affiliates, Percentage Of Net Assets",
        "documentation": "Investments in and Advances to Affiliates, Percentage Of Net Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentsInAndAdvancesToAffiliatesScheduleOfInvestmentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentsInAndAdvancesToAffiliatesScheduleOfInvestmentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in and Advances to Affiliates, Schedule of Investments [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentsInAndAdvancesToAffiliatesScheduleOfInvestmentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentsInAndAdvancesToAffiliatesScheduleOfInvestmentsTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliates"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consolidated Schedule of Investments in and Advances to Affiliates",
        "label": "Investments in and Advances to Affiliates, Schedule of Investments [Text Block]",
        "documentation": "The entire disclosure for the information summarizing investments in and advances to majority-owned subsidiaries, other controlled companies, and other affiliates. It reflects specified information about ownership, financial results from, and financial position in such entities."
       }
      }
     },
     "auth_ref": [
      "r822",
      "r837",
      "r838"
     ]
    },
    "us-gaap_InvestmentsInAndAdvancesToAffiliatesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentsInAndAdvancesToAffiliatesTable",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesFootnotesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments in and Advances to Affiliates [Table]",
        "label": "Investments in and Advances to Affiliates [Table]",
        "documentation": "Disclosure of information about investment in and advance to affiliate."
       }
      }
     },
     "auth_ref": [
      "r817",
      "r827",
      "r828",
      "r829",
      "r830",
      "r831",
      "r832",
      "r833",
      "r834",
      "r835",
      "r836",
      "r837",
      "r838",
      "r839"
     ]
    },
    "us-gaap_InvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofChangesinFairValueofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments",
        "label": "Investments [Member]",
        "documentation": "Assets held for their financial return, rather than for the entity's operations."
       }
      }
     },
     "auth_ref": []
    },
    "main_InvestmentsPerCompany": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvestmentsPerCompany",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments",
        "label": "Investments, Per Company",
        "documentation": "Investments, Per Company"
       }
      }
     },
     "auth_ref": []
    },
    "main_InvincibleBoatCompanyLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "InvincibleBoatCompanyLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Invincible Boat Company, LLC.",
        "label": "Invincible Boat Company, LLC. [Member]",
        "documentation": "Invincible Boat Company, LLC."
       }
      }
     },
     "auth_ref": []
    },
    "main_IronMainInvestmentsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "IronMainInvestmentsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Iron-Main Investments, LLC",
        "label": "Iron-Main Investments, LLC [Member]",
        "documentation": "Iron-Main Investments, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_IsagenixInternationalLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "IsagenixInternationalLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Isagenix International, LLC",
        "label": "Isagenix International, LLC [Member]",
        "documentation": "Isagenix International, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_IslandPumpAndTankLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "IslandPumpAndTankLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Island Pump and Tank, LLC",
        "label": "Island Pump and Tank, LLC [Member]",
        "documentation": "Island Pump and Tank, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_JTIElectricalMechanicalLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "JTIElectricalMechanicalLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "JTI Electrical &amp; Mechanical, LLC",
        "label": "JTI Electrical &amp; Mechanical, LLC [Member]",
        "documentation": "JTI Electrical &amp; Mechanical, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_JackmontHospitalityIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "JackmontHospitalityIncMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Jackmont Hospitality, Inc.",
        "label": "Jackmont Hospitality, Inc. [Member]",
        "documentation": "Jackmont Hospitality, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_JensenJewelersOfIdahoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "JensenJewelersOfIdahoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Jensen Jewelers of Idaho, LLC",
        "label": "Jensen Jewelers of Idaho, LLC [Member]",
        "documentation": "Jensen Jewelers of Idaho, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_JoernsHealthcareLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "JoernsHealthcareLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Joerns Healthcare, LLC",
        "label": "Joerns Healthcare, LLC [Member]",
        "documentation": "Joerns Healthcare, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_JorVetHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "JorVetHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "JorVet Holdings, LLC",
        "label": "JorVet Holdings, LLC [Member]",
        "documentation": "JorVet Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_July2026NotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "July2026NotesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "July 2026 Notes",
        "label": "July 2026 Notes [Member]",
        "documentation": "July 2026 Notes"
       }
      }
     },
     "auth_ref": []
    },
    "main_June2027NotesAdditionalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "June2027NotesAdditionalMember",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "June 2027 Notes, Additional",
        "label": "June 2027 Notes, Additional [Member]",
        "documentation": "June 2027 Notes, Additional"
       }
      }
     },
     "auth_ref": []
    },
    "main_June2027NotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "June2027NotesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "June 2027 Notes",
        "label": "June 2027 Notes [Member]",
        "documentation": "June 2027 Notes"
       }
      }
     },
     "auth_ref": []
    },
    "main_KBKIndustriesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "KBKIndustriesLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "KBK Industries, LLC",
        "label": "KBK Industries, LLC [Member]",
        "documentation": "KBK Industries, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_KMSLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "KMSLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "KMS, LLC",
        "label": "KMS, LLC [Member]",
        "documentation": "KMS, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_KennedyFabHoldCoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "KennedyFabHoldCoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Kennedy Fab HoldCo, LLC",
        "label": "Kennedy Fab HoldCo, LLC [Member]",
        "documentation": "Kennedy Fab HoldCo, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_KickhaeferManufacturingCompanyLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "KickhaeferManufacturingCompanyLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Kickhaefer Manufacturing Company, LLC",
        "label": "Kickhaefer Manufacturing Company, LLC [Member]",
        "documentation": "Kickhaefer Manufacturing Company, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_LKCMHeadwaterInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "LKCMHeadwaterInvestmentsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "LKCM Headwater Investments",
        "label": "LKCM Headwater Investments [Member]",
        "documentation": "LKCM Headwater Investments"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LaborAndRelatedExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LaborAndRelatedExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails": {
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Salaries, share-based compensation and other personnel costs",
        "label": "Labor and Related Expense",
        "documentation": "Amount of expense for salary, wage, profit sharing; incentive and equity-based compensation; and other employee benefit."
       }
      }
     },
     "auth_ref": [
      "r589",
      "r887",
      "r1181"
     ]
    },
    "cef_LatestPremiumDiscountToNavPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LatestPremiumDiscountToNavPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Latest Premium (Discount) to NAV [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1073"
     ]
    },
    "main_LegacySwimGroupMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "LegacySwimGroupMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Legacy Swim Group",
        "label": "Legacy Swim Group [Member]",
        "documentation": "Legacy Swim Group"
       }
      }
     },
     "auth_ref": []
    },
    "dei_LegalEntityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "LegalEntityAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal Entity [Axis]",
        "terseLabel": "Legal Entity [Axis]",
        "documentation": "The set of legal entities associated with a report."
       }
      }
     },
     "auth_ref": []
    },
    "main_LeisureEquipmentProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "LeisureEquipmentProductsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Leisure Equipment &amp; Products",
        "label": "Leisure Equipment &amp; Products [Member]",
        "documentation": "Leisure Equipment &amp; Products"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Liabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "Liabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total liabilities",
        "label": "Liabilities",
        "documentation": "Amount of liability recognized for present obligation requiring transfer or otherwise providing economic benefit to others."
       }
      }
     },
     "auth_ref": [
      "r10",
      "r29",
      "r30",
      "r31",
      "r34",
      "r35",
      "r36",
      "r37",
      "r155",
      "r158",
      "r159",
      "r254",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r440",
      "r441",
      "r442",
      "r492",
      "r699",
      "r893",
      "r913",
      "r979",
      "r1276",
      "r1356",
      "r1357"
     ]
    },
    "us-gaap_LiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LiabilitiesAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "LIABILITIES",
        "verboseLabel": "LIABILITIES",
        "label": "Liabilities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LiabilitiesAndStockholdersEquity",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total liabilities and net assets",
        "label": "Liabilities and Equity",
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any."
       }
      }
     },
     "auth_ref": [
      "r44",
      "r71",
      "r605",
      "r946",
      "r961",
      "r962",
      "r1230",
      "r1235",
      "r1262",
      "r1346"
     ]
    },
    "us-gaap_LiabilitiesAndStockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LiabilitiesAndStockholdersEquityAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "LIABILITIES and NET ASSETS",
        "label": "Liabilities and Equity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LineOfCreditFacilityCommitmentFeePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LineOfCreditFacilityCommitmentFeePercentage",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitment fee (as a percentage)",
        "label": "Line of Credit Facility, Commitment Fee Percentage",
        "documentation": "The fee, expressed as a percentage of the line of credit facility, for the line of credit facility regardless of whether the facility has been used."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LineOfCreditFacilityIncreaseDecreaseForPeriodNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LineOfCreditFacilityIncreaseDecreaseForPeriodNet",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase in borrowing capacity",
        "label": "Line of Credit Facility, Increase (Decrease), Net",
        "documentation": "Amount of increase (decrease) of the credit facility."
       }
      }
     },
     "auth_ref": [
      "r1230",
      "r1233"
     ]
    },
    "us-gaap_LineOfCreditFacilityLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LineOfCreditFacilityLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Line of Credit Facility [Line Items]",
        "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": [
      "r282",
      "r1230",
      "r1233",
      "r1274"
     ]
    },
    "us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LineOfCreditFacilityMaximumBorrowingCapacity",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Line of credit facility",
        "label": "Line of Credit Facility, Maximum Borrowing Capacity",
        "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": [
      "r28",
      "r33"
     ]
    },
    "main_LineOfCreditFacilityMaximumBorrowingCapacityIncludingAccordionFeature": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "LineOfCreditFacilityMaximumBorrowingCapacityIncludingAccordionFeature",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Line of credit facility, maximum borrowing capacity including accordion feature",
        "label": "Line of Credit Facility, Maximum Borrowing Capacity Including Accordion Feature",
        "documentation": "Line of Credit Facility, Maximum Borrowing Capacity Including Accordion Feature"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LineOfCreditFacilityTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LineOfCreditFacilityTable",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Line of Credit Facility [Table]",
        "label": "Line of Credit Facility [Table]",
        "documentation": "Disclosure of information about short-term and long-term contractual arrangements with lender under which borrowing can occur up to maximum amount. Includes, but is not limited to, letter of credit, standby letter of credit, and revolving credit arrangement."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r33",
      "r282",
      "r1230",
      "r1233",
      "r1274"
     ]
    },
    "us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Line of credit facility, unused capacity, commitment fee (as a percent)",
        "label": "Line of Credit Facility, Unused Capacity, Commitment Fee Percentage",
        "documentation": "The fee, expressed as a percentage of the line of credit facility, for available but unused credit capacity under the credit facility."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LineOfCreditMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LineOfCreditMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Line of Credit",
        "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": []
    },
    "cef_LoanServicingFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LoanServicingFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loan Servicing Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1048"
     ]
    },
    "dei_LocalPhoneNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "LocalPhoneNumber",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Local Phone Number",
        "terseLabel": "Local Phone Number",
        "documentation": "Local phone number for entity."
       }
      }
     },
     "auth_ref": []
    },
    "main_LogixAcquisitionCompanyLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "LogixAcquisitionCompanyLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Logix Acquisition Company, LLC",
        "label": "Logix Acquisition Company, LLC [Member]",
        "documentation": "Logix Acquisition Company, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LongTermDebt",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Credit Facilities",
        "totalLabel": "Recorded Value",
        "netLabel": "SPV Facility",
        "terseLabel": "Recorded Value",
        "label": "Long-Term Debt",
        "documentation": "Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation."
       }
      }
     },
     "auth_ref": [
      "r10",
      "r69",
      "r156",
      "r164",
      "r305",
      "r321",
      "r596",
      "r909",
      "r910",
      "r945",
      "r1366"
     ]
    },
    "us-gaap_LongTermDebtAverageAmountOutstanding": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LongTermDebtAverageAmountOutstanding",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTScheduleofAverageAmountofTotalBorrowingsOutstandingandOverallWeightedAverageEffectiveInterestRateDetails",
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Weighted-average borrowings outstanding",
        "terseLabel": "Average outstanding debt",
        "label": "Long-Term Debt, Average Amount Outstanding",
        "documentation": "Average amount outstanding of long-term debt."
       }
      }
     },
     "auth_ref": [
      "r87",
      "r88",
      "r734"
     ]
    },
    "cef_LongTermDebtDividendsAndCovenantsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LongTermDebtDividendsAndCovenantsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Dividends and Covenants [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1025"
     ]
    },
    "cef_LongTermDebtIssuanceAndSubstitutionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LongTermDebtIssuanceAndSubstitutionTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Issuance and Substitution [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1026"
     ]
    },
    "cef_LongTermDebtPrincipal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LongTermDebtPrincipal",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Principal"
       }
      }
     },
     "auth_ref": [
      "r1023"
     ]
    },
    "cef_LongTermDebtRightsLimitedByOtherSecuritiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LongTermDebtRightsLimitedByOtherSecuritiesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Rights Limited by Other Securities [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1027"
     ]
    },
    "cef_LongTermDebtStructuringTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LongTermDebtStructuringTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Structuring [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1024"
     ]
    },
    "cef_LongTermDebtTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LongTermDebtTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1023"
     ]
    },
    "cef_LongTermDebtTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LongTermDebtTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Title [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1023"
     ]
    },
    "us-gaap_LongtermDebtTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LongtermDebtTypeAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-Term Debt, Type [Axis]",
        "label": "Long-Term Debt, Type [Axis]",
        "documentation": "Information by type of long-term debt."
       }
      }
     },
     "auth_ref": [
      "r10",
      "r1267",
      "r1268",
      "r1269"
     ]
    },
    "us-gaap_LongtermDebtTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LongtermDebtTypeDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-Term Debt, Type [Domain]",
        "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": [
      "r10",
      "r21",
      "r1267",
      "r1268",
      "r1269"
     ]
    },
    "main_LowerMiddleMarketPortfolioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "LowerMiddleMarketPortfolioMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "LMM portfolio investments",
        "label": "Lower Middle Market Portfolio [Member]",
        "documentation": "Lower Middle Market Portfolio"
       }
      }
     },
     "auth_ref": []
    },
    "cef_LowestPriceOrBid": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LowestPriceOrBid",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lowest Price or Bid"
       }
      }
     },
     "auth_ref": [
      "r1067"
     ]
    },
    "cef_LowestPriceOrBidNav": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LowestPriceOrBidNav",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lowest Price or Bid, NAV"
       }
      }
     },
     "auth_ref": [
      "r1071"
     ]
    },
    "cef_LowestPriceOrBidPremiumDiscountToNavPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LowestPriceOrBidPremiumDiscountToNavPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lowest Price or Bid, Premium (Discount) to NAV [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1072"
     ]
    },
    "main_MCTPurchasercoHoldingInc.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MCTPurchasercoHoldingInc.Member",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MCT Purchaserco Holding Inc.",
        "label": "MCT Purchaserco Holding Inc. [Member]",
        "documentation": "MCT Purchaserco Holding Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_MSCCFundingILLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MSCCFundingILLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSCC Funding I, LLC",
        "label": "MSCC Funding I, LLC [Member]",
        "documentation": "MSCC Funding I, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_MSCIncomeFundInc.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MSCIncomeFundInc.Member",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSC Income Fund, Inc.",
        "label": "MSC Income Fund, Inc. [Member]",
        "documentation": "MSC Income Fund, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_MSCIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MSCIncomeMember",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSSummarizesofMainStreetsPurchasesofSharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSC Income",
        "label": "MSC Income [Member]",
        "documentation": "MSC Income"
       }
      }
     },
     "auth_ref": []
    },
    "main_MSPrivateLoanFundIILPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MSPrivateLoanFundIILPMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Legacy Swim Group",
        "label": "MS Private Loan Fund II, LP [Member]",
        "documentation": "MS Private Loan Fund II, LP"
       }
      }
     },
     "auth_ref": []
    },
    "main_MSPrivateLoanFundILPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MSPrivateLoanFundILPMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MS Private Loan Fund I, LP",
        "label": "MS Private Loan Fund I, LP [Member]",
        "documentation": "MS Private Loan Fund I, LP"
       }
      }
     },
     "auth_ref": []
    },
    "main_MVIMSOLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MVIMSOLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MVI MSO, LLC",
        "label": "MVI MSO, LLC [Member]",
        "documentation": "MVI MSO, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_MachineryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MachineryMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Machinery",
        "label": "Machinery [Member]",
        "documentation": "Machinery"
       }
      }
     },
     "auth_ref": []
    },
    "main_MainStreetCapitalCorporation2022EquityAndIncentivePlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MainStreetCapitalCorporation2022EquityAndIncentivePlanMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONNarrativeDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedStockAuthorizedandAvailableforIssuanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Main Street Capital Corporation 2022 Equity and Incentive Plan",
        "label": "Main Street Capital Corporation 2022 Equity and Incentive Plan [Member]",
        "documentation": "Main Street Capital Corporation 2022 Equity and Incentive Plan"
       }
      }
     },
     "auth_ref": []
    },
    "main_MainStreetCapitalCorporation2022NonEmployeeDirectorRestrictedStockPlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MainStreetCapitalCorporation2022NonEmployeeDirectorRestrictedStockPlanMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedStockAuthorizedandAvailableforIssuanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Main Street Capital Corporation 2022 Non-Employee Director Restricted Stock Plan",
        "label": "Main Street Capital Corporation 2022 Non-Employee Director Restricted Stock Plan [Member]",
        "documentation": "Main Street Capital Corporation 2022 Non-Employee Director Restricted Stock Plan"
       }
      }
     },
     "auth_ref": []
    },
    "main_MainStreetCapitalIIILPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MainStreetCapitalIIILPMember",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSC III",
        "label": "Main Street Capital III, LP [Member]",
        "documentation": "Main Street Capital III, LP"
       }
      }
     },
     "auth_ref": []
    },
    "main_MainStreetMezzanineFundLPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MainStreetMezzanineFundLPMember",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSMF",
        "label": "Main Street Mezzanine Fund, LP [Member]",
        "documentation": "Main Street Mezzanine Fund, LP"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ManagementAndInvestmentAdvisoryFeesPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ManagementAndInvestmentAdvisoryFeesPolicy",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fee Income",
        "label": "Management and Investment Advisory Fees, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for the recognition of fees for investment advise, research, administrative and investment account management services provided to customers by broker dealers. This fee is generally based on the net assets of the fund or the account."
       }
      }
     },
     "auth_ref": [
      "r1404",
      "r1427"
     ]
    },
    "us-gaap_ManagementAndServiceFeesBaseRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ManagementAndServiceFeesBaseRate",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Management and service fees (as a percent)",
        "label": "Management and Service Fees, Base Rate",
        "documentation": "Base rate for management and service fees under arrangement to manage operations, including, but not limited to, investment."
       }
      }
     },
     "auth_ref": [
      "r1427"
     ]
    },
    "us-gaap_ManagementAndServiceFeesIncentiveRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ManagementAndServiceFeesIncentiveRate",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Management and service fees, incentive rate (as a percent)",
        "label": "Management and Service Fees, Incentive Rate",
        "documentation": "Rate based on performance for management and service fees under arrangement to manage operations, including, but not limited to, investment."
       }
      }
     },
     "auth_ref": [
      "r1427"
     ]
    },
    "us-gaap_ManagementAndServiceFeesRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ManagementAndServiceFeesRate",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Management and service fees, catch up feature rate (as a percent)",
        "label": "Management and Service Fees, Rate",
        "documentation": "Rate for management and service fees under arrangement to manage operations, including, but not limited to, investment."
       }
      }
     },
     "auth_ref": [
      "r731"
     ]
    },
    "us-gaap_ManagementFeeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ManagementFeeExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Management fee to MSCC",
        "label": "Management Fee Expense",
        "documentation": "Amount of expense for investment management fee, including, but not limited to, expense in connection with research, selection, supervision, and custody of investment."
       }
      }
     },
     "auth_ref": [
      "r7",
      "r727",
      "r977",
      "r1417"
     ]
    },
    "cef_ManagementFeeNotBasedOnNetAssetsNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ManagementFeeNotBasedOnNetAssetsNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Management Fee not based on Net Assets, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1046"
     ]
    },
    "cef_ManagementFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ManagementFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Management Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1045"
     ]
    },
    "us-gaap_ManagementServiceBaseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ManagementServiceBaseMember",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Management fee income",
        "label": "Management Service, Base [Member]",
        "documentation": "Contractually stipulated right to receive base compensation for operating and managing business."
       }
      }
     },
     "auth_ref": [
      "r1284",
      "r1285"
     ]
    },
    "us-gaap_ManagementServiceIncentiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ManagementServiceIncentiveMember",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Incentive fees",
        "label": "Management Service, Incentive [Member]",
        "documentation": "Contractually stipulated right to receive incentive compensation for operating and managing business."
       }
      }
     },
     "auth_ref": [
      "r1284",
      "r1285"
     ]
    },
    "main_March2029NotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "March2029NotesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "March 2029 Notes",
        "label": "March 2029 Notes [Member]",
        "documentation": "March 2029 Notes"
       }
      }
     },
     "auth_ref": []
    },
    "main_MarginEffectivePeriodAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MarginEffectivePeriodAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Margin Effective Period [Axis]",
        "label": "Margin Effective Period [Axis]",
        "documentation": "Margin Effective Period"
       }
      }
     },
     "auth_ref": []
    },
    "main_MarginEffectivePeriodDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MarginEffectivePeriodDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Margin Effective Period [Domain]",
        "label": "Margin Effective Period [Domain]",
        "documentation": "Margin Effective Period [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "main_MarginEffectivePeriodOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MarginEffectivePeriodOneMember",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Margin Effective Period One",
        "label": "Margin Effective Period One [Member]",
        "documentation": "Margin Effective Period One"
       }
      }
     },
     "auth_ref": []
    },
    "main_MarginEffectivePeriodTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MarginEffectivePeriodTwoMember",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Margin Effective Period Two",
        "label": "Margin Effective Period Two [Member]",
        "documentation": "Margin Effective Period Two"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MarketApproachValuationTechniqueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "MarketApproachValuationTechniqueMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Market approach",
        "label": "Valuation, Market Approach [Member]",
        "documentation": "Valuation approach using price and other relevant information generated by market transaction involving identical or comparable asset, liability, or group of assets and liabilities."
       }
      }
     },
     "auth_ref": [
      "r927",
      "r930",
      "r1335",
      "r1336",
      "r1337"
     ]
    },
    "srt_MaximumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "MaximumMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical",
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONNarrativeDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maximum",
        "label": "Maximum [Member]",
        "documentation": "Upper limit of the provided range."
       }
      }
     },
     "auth_ref": [
      "r90",
      "r92",
      "r94",
      "r95",
      "r97",
      "r115",
      "r117",
      "r118",
      "r123",
      "r124",
      "r201",
      "r277",
      "r278",
      "r279",
      "r280",
      "r366",
      "r398",
      "r399",
      "r400",
      "r418",
      "r468",
      "r552",
      "r624",
      "r626",
      "r633",
      "r687",
      "r688",
      "r765",
      "r786",
      "r792",
      "r793",
      "r823",
      "r856",
      "r857",
      "r859",
      "r860",
      "r874",
      "r875",
      "r902",
      "r914",
      "r923",
      "r927",
      "r929",
      "r930",
      "r937",
      "r938",
      "r942",
      "r943",
      "r957",
      "r1278",
      "r1358",
      "r1359",
      "r1360",
      "r1361",
      "r1362",
      "r1363"
     ]
    },
    "ecd_MeasureAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "MeasureAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measure:",
        "label": "Measure [Axis]"
       }
      }
     },
     "auth_ref": [
      "r1103"
     ]
    },
    "ecd_MeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "MeasureName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Name",
        "label": "Measure Name"
       }
      }
     },
     "auth_ref": [
      "r1103"
     ]
    },
    "main_MeasurementInputEBITDAMultipleOutlierMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MeasurementInputEBITDAMultipleOutlierMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "EBITDA multiple, outlier",
        "label": "Measurement Input, EBITDA Multiple, Outlier [Member]",
        "documentation": "Measurement Input, EBITDA Multiple, Outlier"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MeasurementInputEbitdaMultipleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "MeasurementInputEbitdaMultipleMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "EBITDA multiple",
        "label": "Measurement Input, EBITDA Multiple [Member]",
        "documentation": "Measurement input using earnings before interest, tax, depreciation and amortization (EBITDA) multiple."
       }
      }
     },
     "auth_ref": [
      "r927",
      "r930",
      "r937",
      "r1335",
      "r1336",
      "r1337"
     ]
    },
    "main_MeasurementInputExpectedPrincipalRecoveryPercentageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MeasurementInputExpectedPrincipalRecoveryPercentageMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expected principal recovery percentage",
        "label": "Measurement Input, Expected Principal Recovery Percentage [Member]",
        "documentation": "Measurement Input, Expected Principal Recovery Percentage"
       }
      }
     },
     "auth_ref": []
    },
    "main_MeasurementInputFeeMultipleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MeasurementInputFeeMultipleMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fee multiple",
        "label": "Measurement Input, Fee Multiple [Member]",
        "documentation": "Measurement Input, Fee Multiple"
       }
      }
     },
     "auth_ref": []
    },
    "main_MeasurementInputRiskAdjustedDiscountRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MeasurementInputRiskAdjustedDiscountRateMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Risk adjusted discount rate",
        "label": "Measurement Input, Risk Adjusted Discount Rate [Member]",
        "documentation": "Measurement Input, Risk Adjusted Discount Rate"
       }
      }
     },
     "auth_ref": []
    },
    "main_MeasurementInputRiskAdjustedDiscountRateOutlierMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MeasurementInputRiskAdjustedDiscountRateOutlierMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Risk adjusted discount rate, outlier",
        "label": "Measurement Input, Risk Adjusted Discount Rate, Outlier [Member]",
        "documentation": "Measurement Input, Risk Adjusted Discount Rate, Outlier"
       }
      }
     },
     "auth_ref": []
    },
    "main_MeasurementInputThirdPartyQuoteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MeasurementInputThirdPartyQuoteMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Third-party quote",
        "label": "Measurement Input, Third-Party Quote [Member]",
        "documentation": "Measurement Input, Third-Party Quote"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MeasurementInputTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "MeasurementInputTypeAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measurement Input Type [Axis]",
        "label": "Measurement Input Type [Axis]",
        "documentation": "Information by type of measurement input used to determine value of asset and liability."
       }
      }
     },
     "auth_ref": [
      "r396",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401",
      "r466",
      "r467",
      "r468",
      "r927",
      "r929",
      "r930",
      "r937"
     ]
    },
    "us-gaap_MeasurementInputTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "MeasurementInputTypeDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measurement Input Type [Domain]",
        "label": "Measurement Input Type [Domain]",
        "documentation": "Measurement input used to determine value of asset and liability."
       }
      }
     },
     "auth_ref": [
      "r466",
      "r467",
      "r468",
      "r927",
      "r929",
      "r930",
      "r937"
     ]
    },
    "main_MeasurementInputWeightedAverageCostOfCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MeasurementInputWeightedAverageCostOfCapitalMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "WACC",
        "label": "Measurement Input, Weighted-Average Cost Of Capital [Member]",
        "documentation": "Measurement Input, Weighted-Average Cost Of Capital"
       }
      }
     },
     "auth_ref": []
    },
    "main_MediaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MediaMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Media",
        "label": "Media [Member]",
        "documentation": "Media"
       }
      }
     },
     "auth_ref": []
    },
    "srt_MedianMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "MedianMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Median",
        "label": "Median [Member]",
        "documentation": "Middle value in data set."
       }
      }
     },
     "auth_ref": [
      "r468"
     ]
    },
    "main_MetalformingHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MetalformingHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Metalforming Holdings, LLC",
        "label": "Metalforming Holdings, LLC [Member]",
        "documentation": "Metalforming Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_MicrobeFormulasLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MicrobeFormulasLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Microbe Formulas, LLC",
        "label": "Microbe Formulas, LLC [Member]",
        "documentation": "Microbe Formulas, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_MiddleMarketPortfolioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MiddleMarketPortfolioMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Middle Market portfolio investments",
        "label": "Middle Market Portfolio [Member]",
        "documentation": "Middle Market Portfolio"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MidwestRegionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "MidwestRegionMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesFootnotesDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Midwest",
        "label": "US Midwest Region [Member]",
        "documentation": "Region of United States of America (US) designated as Midwest."
       }
      }
     },
     "auth_ref": [
      "r1431",
      "r1435",
      "r1438",
      "r1441"
     ]
    },
    "main_MillsFleetFarmGroupLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MillsFleetFarmGroupLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mills Fleet Farm Group, LLC",
        "label": "Mills Fleet Farm Group, LLC [Member]",
        "documentation": "Mills Fleet Farm Group, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_MiniMeltsOfAmericaLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MiniMeltsOfAmericaLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mini Melts of America, LLC",
        "label": "Mini Melts of America, LLC [Member]",
        "documentation": "Mini Melts of America, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "srt_MinimumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "MinimumMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical",
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONNarrativeDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Minimum",
        "label": "Minimum [Member]",
        "documentation": "Lower limit of the provided range."
       }
      }
     },
     "auth_ref": [
      "r90",
      "r92",
      "r94",
      "r95",
      "r97",
      "r115",
      "r117",
      "r118",
      "r123",
      "r124",
      "r201",
      "r277",
      "r278",
      "r279",
      "r280",
      "r366",
      "r398",
      "r399",
      "r400",
      "r418",
      "r468",
      "r552",
      "r624",
      "r626",
      "r633",
      "r687",
      "r688",
      "r765",
      "r786",
      "r792",
      "r793",
      "r823",
      "r856",
      "r857",
      "r859",
      "r860",
      "r874",
      "r875",
      "r902",
      "r914",
      "r923",
      "r927",
      "r929",
      "r930",
      "r937",
      "r938",
      "r942",
      "r957",
      "r1278",
      "r1358",
      "r1359",
      "r1360",
      "r1361",
      "r1362",
      "r1363"
     ]
    },
    "main_MissionCriticalGroupMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MissionCriticalGroupMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mission Critical Group",
        "label": "Mission Critical Group [Member]",
        "documentation": "Mission Critical Group"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_MnpiDiscTimedForCompValFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "MnpiDiscTimedForCompValFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MNPI Disclosure Timed for Compensation Value",
        "label": "MNPI Disclosure Timed for Compensation Value [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1122"
     ]
    },
    "main_MoffittHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MoffittHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Moffitt Holdings, LLC",
        "label": "Moffitt Holdings, LLC [Member]",
        "documentation": "Moffitt Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MoneyMarketFundsAtCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "MoneyMarketFundsAtCarryingValue",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash equivalents",
        "label": "Money Market Funds, at Carrying Value",
        "documentation": "Investment in short-term money-market instruments (such as commercial paper, banker's acceptances, repurchase agreements, government securities, certificates of deposit, and so forth) which are highly liquid (that is, readily convertible to known amounts of cash) and so near their maturity that they present an insignificant risk of changes in value because of changes in interest rates. Generally, only investments with original maturities of three months or less qualify as cash equivalents by definition. Original maturity means an original maturity to the entity holding the investment. For example, both a three-month US Treasury bill and a three-year Treasury note purchased three months from maturity qualify as cash equivalents. However, a Treasury note purchased three-years ago does not become a cash equivalent when its remaining maturity is three months."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MoneyMarketFundsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "MoneyMarketFundsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Money Market Funds",
        "label": "Money Market Funds [Member]",
        "documentation": "Fund that invests in short-term money-market instruments, for example, but not limited to, commercial paper, banker's acceptances, repurchase agreements, government securities, certificates of deposit, and other highly liquid securities."
       }
      }
     },
     "auth_ref": [
      "r1286",
      "r1288"
     ]
    },
    "main_MoneyThumbAcquisitionLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MoneyThumbAcquisitionLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MoneyThumb Acquisition, LLC",
        "label": "MoneyThumb Acquisition, LLC [Member]",
        "documentation": "MoneyThumb Acquisition, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_MonitorUSHoldingLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "MonitorUSHoldingLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MonitorUS Holding, LLC",
        "label": "MonitorUS Holding, LLC [Member]",
        "documentation": "MonitorUS Holding, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_MtrlTermsOfTrdArrTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "MtrlTermsOfTrdArrTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Material Terms of Trading Arrangement",
        "label": "Material Terms of Trading Arrangement [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1130"
     ]
    },
    "main_NAPCOPrecastLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "NAPCOPrecastLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NAPCO Precast, LLC",
        "label": "NAPCO Precast, LLC [Member]",
        "documentation": "NAPCO Precast, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_NRPJonesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "NRPJonesLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MVI MSO, LLC",
        "label": "NRP Jones, LLC [Member]",
        "documentation": "NRP Jones, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_NamedExecutiveOfficersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NamedExecutiveOfficersFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Named Executive Officers, Footnote",
        "label": "Named Executive Officers, Footnote [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1104"
     ]
    },
    "main_NearshoreAcquireCoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "NearshoreAcquireCoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Nearshore AcquireCo, LLC",
        "label": "Nearshore AcquireCo, LLC [Member]",
        "documentation": "Nearshore AcquireCo, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_NelloIndustriesInvestcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "NelloIndustriesInvestcoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Nello Industries Investco, LLC",
        "label": "Nello Industries Investco, LLC [Member]",
        "documentation": "Nello Industries Investco, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetAssetValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NetAssetValuePerShare",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "NAV Per Share",
        "terseLabel": "NET ASSET VALUE PER SHARE (in dollars per share)",
        "periodStartLabel": "NAV as of the beginning of the period (in dollars per share)",
        "periodEndLabel": "NAV as of the end of the period (in dollars per share)",
        "documentation": "Net asset value per share or per unit of investments in certain entities that calculate net asset value per share. Includes, but is not limited to, by unit, membership interest, or other ownership interest. Investment includes, but is not limited to, investment in certain hedge funds, venture capital funds, private equity funds, real estate partnerships or funds. Excludes fair value disclosure."
       }
      }
     },
     "auth_ref": [
      "r666",
      "r673",
      "r674",
      "r703",
      "r721",
      "r850",
      "r979"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash provided by financing activities",
        "label": "Cash Provided by (Used in) Financing Activity, Including Discontinued Operation",
        "documentation": "Amount of cash inflow (outflow) from financing activity, including, but not limited to, discontinued operation. Financing activity includes, but is not limited to, obtaining resource from owner and providing return on, and return of, their investment; borrowing money and repaying amount borrowed, or settling obligation; and obtaining and paying for other resource obtained from creditor on long-term credit."
       }
      }
     },
     "auth_ref": [
      "r149"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "CASH FLOWS FROM FINANCING ACTIVITIES",
        "label": "Cash Provided by (Used in) Financing Activity, Including Discontinued Operation [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash used in operating activities",
        "label": "Cash Provided by (Used in) Operating Activity, Including Discontinued Operation",
        "documentation": "Amount of cash inflow (outflow) from operating activity, including, but not limited to, discontinued operation. Operating activity includes, but is not limited to, transaction, adjustment, and change in value not defined as investing or financing activity."
       }
      }
     },
     "auth_ref": [
      "r54",
      "r55",
      "r57"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "CASH FLOWS FROM OPERATING ACTIVITIES",
        "label": "Cash Provided by (Used in) Operating Activity, Including Discontinued Operation [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "cef_NetExpenseOverAssetsPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "NetExpenseOverAssetsPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Expense over Assets [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1048"
     ]
    },
    "us-gaap_NetIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NetIncomeLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails": {
       "parentTag": "main_InvestmentCompanyTaxBasisNetIncomeLossAttributableToParentEstimated",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails",
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofReconciliationtoTaxableIncomeandtoTotalDistributionsDeclaredtoCommonStockholdersDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "NET INCREASE IN NET ASSETS RESULTING FROM OPERATIONS",
        "terseLabel": "Net increase in net assets resulting from operations",
        "verboseLabel": "Net increase in net assets resulting from operations",
        "label": "Net Income (Loss) Attributable to Parent",
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent."
       }
      }
     },
     "auth_ref": [
      "r46",
      "r57",
      "r73",
      "r127",
      "r133",
      "r140",
      "r141",
      "r145",
      "r155",
      "r158",
      "r159",
      "r161",
      "r168",
      "r172",
      "r173",
      "r174",
      "r175",
      "r176",
      "r179",
      "r180",
      "r186",
      "r254",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r325",
      "r328",
      "r331",
      "r335",
      "r407",
      "r435",
      "r438",
      "r462",
      "r492",
      "r608",
      "r723",
      "r750",
      "r752",
      "r886",
      "r887",
      "r888",
      "r977",
      "r1276"
     ]
    },
    "us-gaap_NetInvestmentIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NetInvestmentIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations": {
       "parentTag": "us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingStatementofOperationsDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "NET INVESTMENT INCOME BEFORE TAXES",
        "terseLabel": "Net investment income",
        "label": "Net Investment Income",
        "documentation": "Amount, after investment expense, of income earned from investments in securities and real estate. Includes, but is not limited to, real estate investment, policy loans, dividends, and interest. Excludes realized gain (loss) on investments."
       }
      }
     },
     "auth_ref": [
      "r82",
      "r612",
      "r613",
      "r735",
      "r961",
      "r962",
      "r977"
     ]
    },
    "main_NetInvestmentIncomeTaxExpenseBenefitAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "NetInvestmentIncomeTaxExpenseBenefitAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net investment income taxes",
        "label": "Net Investment Income Tax Expense (Benefit) [Abstract]",
        "documentation": "Net Investment Income Tax Expense (Benefit)"
       }
      }
     },
     "auth_ref": []
    },
    "main_NetRealizedGainsLossesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "NetRealizedGainsLossesAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NET REALIZED GAIN (LOSS):",
        "label": "Net Realized Gains (Losses) [Abstract]",
        "documentation": "Net Realized Gains (Losses)"
       }
      }
     },
     "auth_ref": []
    },
    "main_NetRealizedGainsOrLossesAndNetUnrealizedAppreciationOrDepreciationPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "NetRealizedGainsOrLossesAndNetUnrealizedAppreciationOrDepreciationPolicyTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net Realized Gains or Losses and Net Unrealized Appreciation or Depreciation",
        "label": "Net Realized Gains or Losses And Net Unrealized Appreciation or Depreciation [Policy Text Block]",
        "documentation": "Net Realized Gains or Losses And Net Unrealized Appreciation or Depreciation"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Recently Issued or Adopted Accounting Standards",
        "label": "New Accounting Pronouncements, Policy [Policy Text Block]",
        "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": []
    },
    "cef_NewCefOrBdcRegistrantFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "NewCefOrBdcRegistrantFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New CEF or BDC Registrant [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1009"
     ]
    },
    "dei_NewEffectiveDateForPreviousFiling": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "NewEffectiveDateForPreviousFiling",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New Effective Date for Previous Filing"
       }
      }
     },
     "auth_ref": [
      "r1009",
      "r1075",
      "r1076",
      "r1077"
     ]
    },
    "cef_NoPublicTradingTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "NoPublicTradingTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Public Trading [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1070"
     ]
    },
    "dei_NoSubstantiveChanges462c": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "NoSubstantiveChanges462c",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Substantive Changes, 462(c)"
       }
      }
     },
     "auth_ref": [
      "r1145"
     ]
    },
    "dei_NoSubstantiveChanges462cFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "NoSubstantiveChanges462cFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Substantive Changes, 462(c), File Number"
       }
      }
     },
     "auth_ref": [
      "r1145"
     ]
    },
    "cef_NoTradingHistoryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "NoTradingHistoryTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Trading History [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1074"
     ]
    },
    "ecd_NonGaapMeasureDescriptionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonGaapMeasureDescriptionTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-GAAP Measure Description",
        "label": "Non-GAAP Measure Description [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1103"
     ]
    },
    "ecd_NonNeosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonNeosMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-NEOs",
        "label": "Non-NEOs [Member]"
       }
      }
     },
     "auth_ref": [
      "r994",
      "r1005",
      "r1085",
      "r1111",
      "r1119"
     ]
    },
    "ecd_NonPeoNeoAvgCompActuallyPaidAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonPeoNeoAvgCompActuallyPaidAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-PEO NEO Average Compensation Actually Paid Amount",
        "label": "Non-PEO NEO Average Compensation Actually Paid Amount"
       }
      }
     },
     "auth_ref": [
      "r1094"
     ]
    },
    "ecd_NonPeoNeoAvgTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonPeoNeoAvgTotalCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-PEO NEO Average Total Compensation Amount",
        "label": "Non-PEO NEO Average Total Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r1093"
     ]
    },
    "ecd_NonPeoNeoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonPeoNeoMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-PEO NEO",
        "label": "Non-PEO NEO [Member]"
       }
      }
     },
     "auth_ref": [
      "r1111"
     ]
    },
    "ecd_NonRule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonRule10b51ArrAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-Rule 10b5-1 Arrangement Adopted",
        "label": "Non-Rule 10b5-1 Arrangement Adopted [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1130"
     ]
    },
    "ecd_NonRule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonRule10b51ArrTrmntdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-Rule 10b5-1 Arrangement Terminated",
        "label": "Non-Rule 10b5-1 Arrangement Terminated [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1130"
     ]
    },
    "us-gaap_NonUsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NonUsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Non-U.S.",
        "label": "Non-US [Member]",
        "documentation": "Countries excluding the United States of America (US)."
       }
      }
     },
     "auth_ref": [
      "r1431",
      "r1435",
      "r1438",
      "r1441"
     ]
    },
    "us-gaap_NoncashInvestingAndFinancingItemsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NoncashInvestingAndFinancingItemsAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-cash financing activities:",
        "label": "Noncash Investing and Financing Items [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NonperformingFinancingReceivableMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NonperformingFinancingReceivableMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-accrual Status",
        "label": "Nonperforming Financial Instruments [Member]",
        "documentation": "Category status of financial instruments in which payments are past due in accordance with the terms of the contract. Financial instruments include, but are not limited to, financing receivables, loans, debt, and investments."
       }
      }
     },
     "auth_ref": [
      "r78",
      "r79",
      "r80",
      "r1263"
     ]
    },
    "main_NortheastRegionAndCanadaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "NortheastRegionAndCanadaMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesFootnotesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Northeast Region and Canada",
        "label": "Northeast Region and Canada [Member]",
        "documentation": "Northeast Region and Canada"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NortheastRegionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NortheastRegionMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Northeast",
        "label": "US Northeast Region [Member]",
        "documentation": "Region of United States of America (US) designated as Northeast."
       }
      }
     },
     "auth_ref": [
      "r1431",
      "r1435",
      "r1438",
      "r1441"
     ]
    },
    "main_NuStepLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "NuStepLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NuStep, LLC",
        "label": "NuStep, LLC [Member]",
        "documentation": "NuStep, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NumberOfOperatingSegments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NumberOfOperatingSegments",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of operating segments",
        "label": "Number of Operating Segments",
        "documentation": "Number of operating segments. An operating segment is a component of an enterprise: (a) that engages in business activities from which it may earn revenues and incur expenses (including revenues and expenses relating to transactions with other components of the same enterprise), (b) whose operating results are regularly reviewed by the enterprise's chief operating decision maker to make decisions about resources to be allocated to the segment and assess its performance, and (c) for which discrete financial information is available. An operating segment may engage in business activities for which it has yet to earn revenues, for example, start-up operations may be operating segments before earning revenues."
       }
      }
     },
     "auth_ref": [
      "r899",
      "r1250"
     ]
    },
    "us-gaap_NumberOfReportableSegments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NumberOfReportableSegments",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of reportable segments",
        "label": "Number of Reportable Segments",
        "documentation": "Number of segments reported by the entity. A reportable segment is a component of an entity for which there is an accounting requirement to report separate financial information on that component in the entity's financial statements."
       }
      }
     },
     "auth_ref": [
      "r895",
      "r901",
      "r1250"
     ]
    },
    "main_O2025Q1RegularDividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "O2025Q1RegularDividendsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofDividendInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "O 2025 Q1 Regular Dividends",
        "label": "O 2025 Q1 Regular Dividends [Member]",
        "documentation": "O 2025 Q1 Regular Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "main_O2025Q1SupplementalDividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "O2025Q1SupplementalDividendsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofDividendInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "O 2025 Q1 Supplemental Dividends",
        "label": "O 2025 Q1 Supplemental Dividends [Member]",
        "documentation": "O 2025 Q1 Supplemental Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "main_O2026A3LifeToDateDividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "O2026A3LifeToDateDividendsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "O 2026 A2 Life-To-Date Dividends",
        "label": "O 2026 A3 Life-To-Date Dividends [Member]",
        "documentation": "O 2026 A3 Life-To-Date Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "main_O2026M1DividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "O2026M1DividendsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "O 2026 M1 Dividends",
        "label": "O 2026 M1 Dividends [Member]",
        "documentation": "O 2026 M1 Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "main_O2026M2DividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "O2026M2DividendsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "O 2026 M2 Dividends",
        "label": "O 2026 M2 Dividends [Member]",
        "documentation": "O 2026 M2 Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "main_O2026M3DividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "O2026M3DividendsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "O 2026 M3 Dividends",
        "label": "O 2026 M3 Dividends [Member]",
        "documentation": "O 2026 M3 Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "main_O2026M4DividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "O2026M4DividendsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "O 2026 M4 Dividends",
        "label": "O 2026 M4 Dividends [Member]",
        "documentation": "O 2026 M4 Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "main_O2026M5DividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "O2026M5DividendsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "O 2026 M5 Dividends",
        "label": "O 2026 M5 Dividends [Member]",
        "documentation": "O 2026 M5 Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "main_O2026M6DividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "O2026M6DividendsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "O 2026 M6 Dividends",
        "label": "O 2026 M6 Dividends [Member]",
        "documentation": "O 2026 M6 Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "main_O2026Q1RegularDividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "O2026Q1RegularDividendsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofDividendInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "O 2026 Q1 Regular Dividends",
        "label": "O 2026 Q1 Regular Dividends [Member]",
        "documentation": "O 2026 Q1 Regular Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "main_O2026Q1SupplementalDividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "O2026Q1SupplementalDividendsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofDividendInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "O 2026 Q1 Supplemental Dividends",
        "label": "O 2026 Q1 Supplemental Dividends [Member]",
        "documentation": "O 2026 Q1 Supplemental Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "main_O2026Q2DividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "O2026Q2DividendsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "O 2026 Q2 Dividends",
        "label": "O 2026 Q2 Dividends [Member]",
        "documentation": "O 2026 Q2 Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "main_O2026Q2IncludingSupplementalDividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "O2026Q2IncludingSupplementalDividendsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "O 2026 Q2 Including Supplemental Dividends",
        "label": "O 2026 Q2 Including Supplemental Dividends [Member]",
        "documentation": "O 2026 Q2 Including Supplemental Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "main_O2026Q2SupplementalDividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "O2026Q2SupplementalDividendsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "O 2026 Q2 Supplemental Dividends",
        "label": "O 2026 Q2 Supplemental Dividends [Member]",
        "documentation": "O 2026 Q2 Supplemental Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "main_O2026Q3DividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "O2026Q3DividendsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "O 2026 Q3 Dividends",
        "label": "O 2026 Q3 Dividends [Member]",
        "documentation": "O 2026 Q3 Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "main_OMiTopcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "OMiTopcoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "OMi Topco, LLC",
        "label": "OMi Topco, LLC [Member]",
        "documentation": "OMi Topco, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_ObraCapitalInc.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ObraCapitalInc.Member",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Obra Capital, Inc.",
        "label": "Obra Capital, Inc. [Member]",
        "documentation": "Obra Capital, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_OilGasConsumableFuelsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "OilGasConsumableFuelsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Oil, Gas &amp; Consumable Fuels",
        "label": "Oil, Gas &amp; Consumable Fuels [Member]",
        "documentation": "Oil, Gas &amp; Consumable Fuels"
       }
      }
     },
     "auth_ref": []
    },
    "main_OnAssetIntelligenceIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "OnAssetIntelligenceIncMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "OnAsset Intelligence, Inc.",
        "label": "OnAsset Intelligence, Inc. [Member]",
        "documentation": "OnAsset Intelligence, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_OnPointIndustrialServicesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "OnPointIndustrialServicesLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "OnPoint Industrial Services, LLC",
        "label": "OnPoint Industrial Services, LLC [Member]",
        "documentation": "OnPoint Industrial Services, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "OperatingExpenses",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails": {
       "parentTag": "us-gaap_InvestmentIncomeInvestmentExpense",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails",
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTotalLabel": "Total allocated expenses",
        "terseLabel": "Total expenses",
        "label": "Operating Expenses",
        "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. Includes selling, general and administrative expense."
       }
      }
     },
     "auth_ref": [
      "r888"
     ]
    },
    "main_OperatingExpensesAndAmountDueFromTaxSharingAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "OperatingExpensesAndAmountDueFromTaxSharingAgreementMember",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operating Expenses and Amount Due From Tax Sharing Agreement",
        "label": "Operating Expenses and Amount Due From Tax Sharing Agreement [Member]",
        "documentation": "Operating Expenses and Amount Due From Tax Sharing Agreement"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OptionIndexedToIssuersEquityStrikePrice1": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "OptionIndexedToIssuersEquityStrikePrice1",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strike price (in dollars per share)",
        "label": "Option Indexed to Issuer's Equity, Strike Price",
        "documentation": "Exercise or strike price stated in the contract for options indexed to the issuer's equity shares."
       }
      }
     },
     "auth_ref": [
      "r9"
     ]
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization, Consolidation and Presentation of Financial Statements [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/ORGANIZATIONANDBASISOFPRESENTATION"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ORGANIZATION AND BASIS OF PRESENTATION",
        "label": "Organization, Consolidation and Presentation of Financial Statements Disclosure [Text Block]",
        "documentation": "The entire disclosure for organization, consolidation and basis of presentation of financial statements disclosure."
       }
      }
     },
     "auth_ref": [
      "r65",
      "r128",
      "r129",
      "r131",
      "r636",
      "r637"
     ]
    },
    "main_OrttechHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "OrttechHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NRP Jones, LLC",
        "label": "Orttech Holdings, LLC [Member]",
        "documentation": "Orttech Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherAggregatedInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "OtherAggregatedInvestmentsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Portfolio investments",
        "verboseLabel": "Other",
        "label": "Other Security Investments [Member]",
        "documentation": "Other investments in debt and equity securities and other forms of securities that provide ownership interests."
       }
      }
     },
     "auth_ref": [
      "r678",
      "r679",
      "r795"
     ]
    },
    "cef_OtherAnnualExpense1Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherAnnualExpense1Percent",
     "calculation": {
      "http://xbrl.sec.gov/cef/role/Item3Ae": {
       "parentTag": "cef_OtherAnnualExpensesPercent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Annual Expense 1 [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1048"
     ]
    },
    "cef_OtherAnnualExpense2Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherAnnualExpense2Percent",
     "calculation": {
      "http://xbrl.sec.gov/cef/role/Item3Ae": {
       "parentTag": "cef_OtherAnnualExpensesPercent",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Annual Expense 2 [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1048"
     ]
    },
    "cef_OtherAnnualExpense3Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherAnnualExpense3Percent",
     "calculation": {
      "http://xbrl.sec.gov/cef/role/Item3Ae": {
       "parentTag": "cef_OtherAnnualExpensesPercent",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Annual Expense 3 [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1048"
     ]
    },
    "cef_OtherAnnualExpensesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherAnnualExpensesAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Annual Expenses [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r1048"
     ]
    },
    "cef_OtherAnnualExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherAnnualExpensesPercent",
     "calculation": {
      "http://xbrl.sec.gov/cef/role/Item3Ae": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Annual Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1048"
     ]
    },
    "us-gaap_OtherCommitmentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "OtherCommitmentsLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Commitments [Line Items]",
        "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/2025",
     "localname": "OtherCommitmentsTable",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Commitments [Table]",
        "label": "Other Commitments [Table]",
        "documentation": "Disclosure of information about obligations resulting from other commitments."
       }
      }
     },
     "auth_ref": []
    },
    "cef_OtherExpensesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherExpensesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Expenses, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1044"
     ]
    },
    "cef_OtherFeederFundExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherFeederFundExpensesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Feeder Fund Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1048"
     ]
    },
    "us-gaap_OtherGeneralAndAdministrativeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "OtherGeneralAndAdministrativeExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails": {
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Other G&amp;A expenses",
        "label": "Other General and Administrative Expense",
        "documentation": "Amount of general and administrative expense classified as other."
       }
      }
     },
     "auth_ref": [
      "r47",
      "r1426"
     ]
    },
    "main_OtherGeneralAndAdministrativeExpenseDirect": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "OtherGeneralAndAdministrativeExpenseDirect",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails": {
       "parentTag": "us-gaap_InvestmentIncomeInvestmentExpense",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Other direct G&amp;A expenses",
        "label": "Other General and Administrative Expense, Direct",
        "documentation": "Other General and Administrative Expense, Direct"
       }
      }
     },
     "auth_ref": []
    },
    "cef_OtherMasterFundExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherMasterFundExpensesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Master Fund Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1048"
     ]
    },
    "main_OtherMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "OtherMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Other [Member]",
        "documentation": "Other"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_OtherPerfMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "OtherPerfMeasureAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Performance Measure, Amount",
        "label": "Other Performance Measure, Amount"
       }
      }
     },
     "auth_ref": [
      "r1103"
     ]
    },
    "us-gaap_OtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "OtherReceivables",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts receivable from MSCC and its subsidiaries",
        "label": "Other Receivables",
        "documentation": "Amount due from parties in nontrade transactions, classified as other."
       }
      }
     },
     "auth_ref": [
      "r139",
      "r709",
      "r899",
      "r961",
      "r962",
      "r1367"
     ]
    },
    "cef_OtherSecuritiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherSecuritiesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Securities [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1028"
     ]
    },
    "cef_OtherSecurityDescriptionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherSecurityDescriptionTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Security, Description [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1028"
     ]
    },
    "cef_OtherSecurityTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherSecurityTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Security, Title [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1028"
     ]
    },
    "cef_OtherTransactionExpense1Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherTransactionExpense1Percent",
     "calculation": {
      "http://xbrl.sec.gov/cef/role/Item3Te": {
       "parentTag": "cef_OtherTransactionExpensesPercent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Expense 1 [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1043"
     ]
    },
    "cef_OtherTransactionExpense2Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherTransactionExpense2Percent",
     "calculation": {
      "http://xbrl.sec.gov/cef/role/Item3Te": {
       "parentTag": "cef_OtherTransactionExpensesPercent",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Expense 2 [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1043"
     ]
    },
    "cef_OtherTransactionExpense3Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherTransactionExpense3Percent",
     "calculation": {
      "http://xbrl.sec.gov/cef/role/Item3Te": {
       "parentTag": "cef_OtherTransactionExpensesPercent",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Expense 3 [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1043"
     ]
    },
    "cef_OtherTransactionExpensesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherTransactionExpensesAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Expenses [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r1043"
     ]
    },
    "cef_OtherTransactionExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherTransactionExpensesPercent",
     "calculation": {
      "http://xbrl.sec.gov/cef/role/Item3Te": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1043"
     ]
    },
    "cef_OtherTransactionFeesBasisMaximum": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherTransactionFeesBasisMaximum",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Fees Basis, Maximum"
       }
      }
     },
     "auth_ref": [
      "r1043"
     ]
    },
    "cef_OtherTransactionFeesBasisMaximumPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherTransactionFeesBasisMaximumPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Fees Basis, Maximum [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1043"
     ]
    },
    "cef_OtherTransactionFeesBasisNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherTransactionFeesBasisNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Fees Basis, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1043"
     ]
    },
    "cef_OtherTransactionFeesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherTransactionFeesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Fees, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1043"
     ]
    },
    "ecd_OutstandingAggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "OutstandingAggtErrCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Outstanding Aggregate Erroneous Compensation Amount",
        "label": "Outstanding Aggregate Erroneous Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r992",
      "r1003",
      "r1083",
      "r1117"
     ]
    },
    "ecd_OutstandingRecoveryCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "OutstandingRecoveryCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Compensation Amount",
        "label": "Outstanding Recovery Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r995",
      "r1006",
      "r1086",
      "r1120"
     ]
    },
    "ecd_OutstandingRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "OutstandingRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Name",
        "label": "Outstanding Recovery, Individual Name"
       }
      }
     },
     "auth_ref": [
      "r995",
      "r1006",
      "r1086",
      "r1120"
     ]
    },
    "cef_OutstandingSecuritiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OutstandingSecuritiesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Securities [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1029"
     ]
    },
    "cef_OutstandingSecurityAuthorizedShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OutstandingSecurityAuthorizedShares",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Security, Authorized [Shares]"
       }
      }
     },
     "auth_ref": [
      "r1031"
     ]
    },
    "cef_OutstandingSecurityHeldShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OutstandingSecurityHeldShares",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Security, Held [Shares]"
       }
      }
     },
     "auth_ref": [
      "r1032"
     ]
    },
    "cef_OutstandingSecurityNotHeldShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OutstandingSecurityNotHeldShares",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Security, Not Held [Shares]"
       }
      }
     },
     "auth_ref": [
      "r1033"
     ]
    },
    "cef_OutstandingSecurityTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OutstandingSecurityTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Security, Title [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1030"
     ]
    },
    "main_PPLRVsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "PPLRVsIncMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PPL RVs, Inc.",
        "label": "PPL RVs, Inc. [Member]",
        "documentation": "PPL RVs, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_PavConLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "PavConLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PavCon LLC",
        "label": "PavCon LLC [Member]",
        "documentation": "PavCon LLC"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_PayVsPerformanceDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PayVsPerformanceDisclosureLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance Disclosure [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r1092"
     ]
    },
    "main_PaymentInKindInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "PaymentInKindInterest",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Payment-in-kind interest",
        "label": "Payment-in-Kind Interest",
        "documentation": "Payment-in-Kind Interest"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PaymentsOfDividendsCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PaymentsOfDividendsCommonStock",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofDividendInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total dividends",
        "label": "Payments of Ordinary Dividends, Common Stock",
        "documentation": "Amount of cash outflow in the form of ordinary dividends to common shareholders of the parent entity."
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "us-gaap_PaymentsOfOrdinaryDividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PaymentsOfOrdinaryDividends",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Dividends paid",
        "label": "Payments of Ordinary Dividends",
        "documentation": "Cash outflow in the form of ordinary dividends to common shareholders, preferred shareholders and noncontrolling interests, generally out of earnings."
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "main_PaymentsToInvestmentsInPortfolioCompanies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "PaymentsToInvestmentsInPortfolioCompanies",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Investments in portfolio companies",
        "label": "Payments To Investments In Portfolio Companies",
        "documentation": "Payments To Investments In Portfolio Companies"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_PeerGroupIssuersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeerGroupIssuersFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Peer Group Issuers, Footnote",
        "label": "Peer Group Issuers, Footnote [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1102"
     ]
    },
    "ecd_PeerGroupTotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeerGroupTotalShareholderRtnAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Peer Group Total Shareholder Return Amount",
        "label": "Peer Group Total Shareholder Return Amount"
       }
      }
     },
     "auth_ref": [
      "r1102"
     ]
    },
    "ecd_PeoActuallyPaidCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeoActuallyPaidCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PEO Actually Paid Compensation Amount",
        "label": "PEO Actually Paid Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r1094"
     ]
    },
    "ecd_PeoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeoMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PEO",
        "label": "PEO [Member]"
       }
      }
     },
     "auth_ref": [
      "r1111"
     ]
    },
    "ecd_PeoName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeoName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PEO Name",
        "label": "PEO Name"
       }
      }
     },
     "auth_ref": [
      "r1104"
     ]
    },
    "ecd_PeoTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeoTotalCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PEO Total Compensation Amount",
        "label": "PEO Total Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r1093"
     ]
    },
    "us-gaap_PhantomShareUnitsPSUsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PhantomShareUnitsPSUsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Phantom Stock Units",
        "label": "Phantom Share Units (PSUs) [Member]",
        "documentation": "Share-based payment arrangement awarded as phantom share or unit."
       }
      }
     },
     "auth_ref": [
      "r1290",
      "r1291",
      "r1292",
      "r1293",
      "r1294",
      "r1295",
      "r1296",
      "r1297",
      "r1298",
      "r1299",
      "r1300",
      "r1302",
      "r1303",
      "r1304",
      "r1305",
      "r1306",
      "r1307",
      "r1308",
      "r1309",
      "r1310",
      "r1311",
      "r1312",
      "r1313",
      "r1314",
      "r1315",
      "r1316"
     ]
    },
    "main_PinnacleTopCoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "PinnacleTopCoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pinnacle TopCo, LLC",
        "label": "Pinnacle TopCo, LLC [Member]",
        "documentation": "Pinnacle TopCo, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PlanNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PlanNameAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONNarrativeDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedStockAuthorizedandAvailableforIssuanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Plan Name [Axis]",
        "label": "Plan Name [Axis]",
        "documentation": "Information by plan name for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r1290",
      "r1291",
      "r1292",
      "r1293",
      "r1294",
      "r1295",
      "r1296",
      "r1297",
      "r1298",
      "r1299",
      "r1300",
      "r1302",
      "r1303",
      "r1304",
      "r1305",
      "r1306",
      "r1307",
      "r1308",
      "r1309",
      "r1310",
      "r1311",
      "r1312",
      "r1313",
      "r1314",
      "r1315",
      "r1316"
     ]
    },
    "us-gaap_PlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PlanNameDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONNarrativeDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedStockAuthorizedandAvailableforIssuanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Plan Name [Domain]",
        "label": "Plan Name [Domain]",
        "documentation": "Plan name for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r1290",
      "r1291",
      "r1292",
      "r1293",
      "r1294",
      "r1295",
      "r1296",
      "r1297",
      "r1298",
      "r1299",
      "r1300",
      "r1302",
      "r1303",
      "r1304",
      "r1305",
      "r1306",
      "r1307",
      "r1308",
      "r1309",
      "r1310",
      "r1311",
      "r1312",
      "r1313",
      "r1314",
      "r1315",
      "r1316"
     ]
    },
    "ecd_PnsnAdjsPrrSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PnsnAdjsPrrSvcCstMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pension Adjustments Prior Service Cost",
        "label": "Pension Adjustments Prior Service Cost [Member]"
       }
      }
     },
     "auth_ref": [
      "r1095"
     ]
    },
    "ecd_PnsnAdjsSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PnsnAdjsSvcCstMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pension Adjustments Service Cost",
        "label": "Pension Adjustments Service Cost [Member]"
       }
      }
     },
     "auth_ref": [
      "r1139"
     ]
    },
    "ecd_PnsnBnftsAdjFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PnsnBnftsAdjFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pension Benefits Adjustments, Footnote",
        "label": "Pension Benefits Adjustments, Footnote [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1094"
     ]
    },
    "dei_PostEffectiveAmendment": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "PostEffectiveAmendment",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Post-Effective Amendment"
       }
      }
     },
     "auth_ref": [
      "r980"
     ]
    },
    "dei_PostEffectiveAmendmentNumber": {
     "xbrltype": "sequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "PostEffectiveAmendmentNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Post-Effective Amendment Number",
        "documentation": "Amendment number to registration statement under the Securities Act of 1933 after the registration becomes effective."
       }
      }
     },
     "auth_ref": [
      "r980"
     ]
    },
    "us-gaap_PostemploymentBenefitPlansPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PostemploymentBenefitPlansPolicy",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred Compensation Plan",
        "label": "Postemployment Benefit Plans, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for postemployment benefits. Postemployment benefits are benefits provided to former or inactive employees, their beneficiaries, and covered dependents after employment but before retirement, except for: a) benefits provided through a pension or postretirement benefit plan, b) individual deferred compensation arrangements, c) special or contractual termination benefits, and d) stock compensation plans."
       }
      }
     },
     "auth_ref": [
      "r353"
     ]
    },
    "dei_PreEffectiveAmendment": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "PreEffectiveAmendment",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pre-Effective Amendment"
       }
      }
     },
     "auth_ref": [
      "r980"
     ]
    },
    "dei_PreEffectiveAmendmentNumber": {
     "xbrltype": "sequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "PreEffectiveAmendmentNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pre-Effective Amendment Number",
        "documentation": "Amendment number to registration statement under the Securities Act of 1933 before the registration becomes effective."
       }
      }
     },
     "auth_ref": [
      "r980"
     ]
    },
    "us-gaap_PreferredStockLiquidationPreference": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PreferredStockLiquidationPreference",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred Stock Liquidating Preference",
        "documentation": "The per share liquidation preference (or restrictions) of nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer) that has a preference in involuntary liquidation considerably in excess of the par or stated value of the shares. The liquidation preference is the difference between the preference in liquidation and the par or stated values of the share."
       }
      }
     },
     "auth_ref": [
      "r22",
      "r23",
      "r38",
      "r1230",
      "r1232",
      "r1280"
     ]
    },
    "cef_PreferredStockRestrictionsArrearageTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "PreferredStockRestrictionsArrearageTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred Stock Restrictions, Arrearage [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1019"
     ]
    },
    "cef_PreferredStockRestrictionsOtherTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "PreferredStockRestrictionsOtherTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred Stock Restrictions, Other [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1020"
     ]
    },
    "cef_PrimaryShelfFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "PrimaryShelfFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Primary Shelf [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1009"
     ]
    },
    "cef_PrimaryShelfQualifiedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "PrimaryShelfQualifiedFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Primary Shelf Qualified [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1009"
     ]
    },
    "main_PrimeFlightAviationServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "PrimeFlightAviationServicesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PrimeFlight Aviation Services",
        "label": "PrimeFlight Aviation Services [Member]",
        "documentation": "PrimeFlight Aviation Services"
       }
      }
     },
     "auth_ref": []
    },
    "main_PrincipleEnvironmentalLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "PrincipleEnvironmentalLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Principle Environmental, LLC",
        "label": "Principle Environmental, LLC [Member]",
        "documentation": "Principle Environmental, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_PrivateLoanFundIIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "PrivateLoanFundIIMember",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Private Loan Fund II",
        "label": "Private Loan Fund II [Member]",
        "documentation": "Private Loan Fund II"
       }
      }
     },
     "auth_ref": []
    },
    "main_PrivateLoanFundIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "PrivateLoanFundIMember",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Private Loan Fund I",
        "label": "Private Loan Fund I [Member]",
        "documentation": "Private Loan Fund I"
       }
      }
     },
     "auth_ref": []
    },
    "main_PrivateLoanPortfolioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "PrivateLoanPortfolioMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Private Loan portfolio investments",
        "label": "Private Loan Portfolio [Member]",
        "documentation": "Private Loan Portfolio"
       }
      }
     },
     "auth_ref": []
    },
    "main_ProceedsFromDebtIssuancePremiumsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ProceedsFromDebtIssuancePremiumsNet",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt issuance premiums, net",
        "label": "Proceeds From Debt Issuance Premiums, Net",
        "documentation": "Proceeds From Debt Issuance Premiums, Net"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromIssuanceOfCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ProceedsFromIssuanceOfCommonStock",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/COMMONSTOCKDetails",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from public offering of common stock, net of offering costs",
        "label": "Proceeds from Issuance of Common Stock",
        "documentation": "The cash inflow from the additional capital contribution to the entity."
       }
      }
     },
     "auth_ref": [
      "r1"
     ]
    },
    "us-gaap_ProceedsFromIssuanceOfUnsecuredDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ProceedsFromIssuanceOfUnsecuredDebt",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from public offering of March 2029 Notes",
        "label": "Proceeds from Issuance of Unsecured Debt",
        "documentation": "The cash inflow from the issuance of long-term debt that is not secured by collateral. Excludes proceeds from tax exempt unsecured debt."
       }
      }
     },
     "auth_ref": [
      "r11"
     ]
    },
    "us-gaap_ProceedsFromLinesOfCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ProceedsFromLinesOfCredit",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from Credit Facilities",
        "label": "Proceeds from Lines of Credit",
        "documentation": "Amount of cash inflow from contractual arrangement with the lender, including but not limited to, letter of credit, standby letter of credit and revolving credit arrangements."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r1230",
      "r1233"
     ]
    },
    "main_ProceedsFromSalesAndRepaymentsOfDebtInvestmentsInPortfolioCompanies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ProceedsFromSalesAndRepaymentsOfDebtInvestmentsInPortfolioCompanies",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from sales and repayments of debt investments in portfolio companies",
        "label": "Proceeds From Sales And Repayments Of Debt Investments In Portfolio Companies",
        "documentation": "Proceeds From Sales And Repayments Of Debt Investments In Portfolio Companies"
       }
      }
     },
     "auth_ref": []
    },
    "main_ProceedsFromSalesAndReturnOfCapitalOfEquityInvestmentsInPortfolioCompanies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ProceedsFromSalesAndReturnOfCapitalOfEquityInvestmentsInPortfolioCompanies",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from sales and return of capital of equity investments in portfolio companies",
        "label": "Proceeds From Sales And Return Of Capital Of Equity Investments In Portfolio Companies",
        "documentation": "Proceeds From Sales And Return Of Capital Of Equity Investments In Portfolio Companies"
       }
      }
     },
     "auth_ref": []
    },
    "srt_ProductOrServiceAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ProductOrServiceAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Product and Service [Axis]",
        "label": "Product and Service [Axis]",
        "documentation": "Information by product and service, or group of similar products and similar services."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r100",
      "r101",
      "r102",
      "r103",
      "r104",
      "r121",
      "r219",
      "r553",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r622",
      "r623",
      "r878",
      "r885",
      "r887",
      "r888",
      "r915",
      "r916",
      "r956",
      "r957",
      "r958",
      "r960",
      "r963",
      "r1156",
      "r1169",
      "r1185",
      "r1186",
      "r1187",
      "r1188",
      "r1189",
      "r1190",
      "r1191",
      "r1192",
      "r1193",
      "r1194",
      "r1195",
      "r1196",
      "r1197",
      "r1198",
      "r1199",
      "r1200",
      "r1201",
      "r1202",
      "r1203",
      "r1204",
      "r1205",
      "r1206",
      "r1207",
      "r1208",
      "r1209",
      "r1210",
      "r1211",
      "r1212",
      "r1213",
      "r1214",
      "r1215",
      "r1216",
      "r1217",
      "r1218",
      "r1219",
      "r1220",
      "r1221",
      "r1222",
      "r1223",
      "r1224",
      "r1225",
      "r1272",
      "r1273",
      "r1371",
      "r1373",
      "r1374",
      "r1375",
      "r1376",
      "r1377",
      "r1378",
      "r1379",
      "r1380",
      "r1381",
      "r1382",
      "r1383",
      "r1384",
      "r1385",
      "r1386",
      "r1387",
      "r1388",
      "r1389",
      "r1390",
      "r1391",
      "r1392",
      "r1393",
      "r1394",
      "r1395",
      "r1396",
      "r1397",
      "r1398",
      "r1399",
      "r1400"
     ]
    },
    "srt_ProductsAndServicesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ProductsAndServicesDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Product and Service [Domain]",
        "label": "Product and Service [Domain]",
        "documentation": "Product or service, or a group of similar products or similar services."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r100",
      "r101",
      "r102",
      "r103",
      "r104",
      "r121",
      "r219",
      "r553",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r622",
      "r623",
      "r878",
      "r885",
      "r887",
      "r888",
      "r915",
      "r916",
      "r956",
      "r957",
      "r958",
      "r960",
      "r963",
      "r1156",
      "r1169",
      "r1185",
      "r1186",
      "r1187",
      "r1188",
      "r1189",
      "r1190",
      "r1191",
      "r1192",
      "r1193",
      "r1194",
      "r1195",
      "r1196",
      "r1197",
      "r1198",
      "r1199",
      "r1200",
      "r1201",
      "r1202",
      "r1203",
      "r1204",
      "r1205",
      "r1206",
      "r1207",
      "r1208",
      "r1209",
      "r1210",
      "r1211",
      "r1212",
      "r1213",
      "r1214",
      "r1215",
      "r1216",
      "r1217",
      "r1218",
      "r1219",
      "r1220",
      "r1221",
      "r1222",
      "r1223",
      "r1224",
      "r1225",
      "r1272",
      "r1273",
      "r1371",
      "r1373",
      "r1374",
      "r1375",
      "r1376",
      "r1377",
      "r1378",
      "r1379",
      "r1380",
      "r1381",
      "r1382",
      "r1383",
      "r1384",
      "r1385",
      "r1386",
      "r1387",
      "r1388",
      "r1389",
      "r1390",
      "r1391",
      "r1392",
      "r1393",
      "r1394",
      "r1395",
      "r1396",
      "r1397",
      "r1398",
      "r1399",
      "r1400"
     ]
    },
    "main_ProfessionalServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ProfessionalServicesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Professional Services",
        "label": "Professional Services [Member]",
        "documentation": "Professional Services"
       }
      }
     },
     "auth_ref": []
    },
    "cef_ProspectusLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ProspectusLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Prospectus [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r1009"
     ]
    },
    "cef_ProspectusTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ProspectusTable",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prospectus:"
       }
      }
     },
     "auth_ref": [
      "r1009"
     ]
    },
    "cef_PurposeOfFeeTableNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "PurposeOfFeeTableNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purpose of Fee Table , Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1035"
     ]
    },
    "ecd_PvpTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PvpTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pay vs Performance Disclosure",
        "label": "Pay vs Performance Disclosure [Table]"
       }
      }
     },
     "auth_ref": [
      "r1092"
     ]
    },
    "ecd_PvpTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PvpTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pay vs Performance Disclosure, Table",
        "label": "Pay vs Performance [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1092"
     ]
    },
    "main_RAOutdoorsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RAOutdoorsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "RA Outdoors LLC",
        "label": "RA Outdoors LLC [Member]",
        "documentation": "RA Outdoors LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_RFGAcquireCoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RFGAcquireCoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "RFG AcquireCo, LLC",
        "label": "RFG AcquireCo, LLC [Member]",
        "documentation": "RFG AcquireCo, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_RabbiTrustMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RabbiTrustMember",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rabbi Trust",
        "label": "Rabbi Trust [Member]",
        "documentation": "Rabbi Trust"
       }
      }
     },
     "auth_ref": []
    },
    "srt_RangeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "RangeAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMONSTOCKDetails",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical",
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofAverageAmountofTotalBorrowingsOutstandingandOverallWeightedAverageEffectiveInterestRateDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONNarrativeDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statistical Measurement [Axis]",
        "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": [
      "r90",
      "r92",
      "r94",
      "r95",
      "r97",
      "r115",
      "r117",
      "r118",
      "r123",
      "r124",
      "r201",
      "r277",
      "r278",
      "r279",
      "r280",
      "r354",
      "r366",
      "r398",
      "r399",
      "r400",
      "r406",
      "r418",
      "r468",
      "r526",
      "r535",
      "r552",
      "r624",
      "r626",
      "r633",
      "r687",
      "r688",
      "r765",
      "r786",
      "r792",
      "r793",
      "r823",
      "r856",
      "r857",
      "r859",
      "r860",
      "r874",
      "r875",
      "r902",
      "r914",
      "r923",
      "r927",
      "r929",
      "r930",
      "r937",
      "r938",
      "r942",
      "r943",
      "r957",
      "r966",
      "r1270",
      "r1278",
      "r1336",
      "r1359",
      "r1360",
      "r1361",
      "r1362",
      "r1363"
     ]
    },
    "srt_RangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "RangeMember",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMONSTOCKDetails",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical",
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofAverageAmountofTotalBorrowingsOutstandingandOverallWeightedAverageEffectiveInterestRateDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONNarrativeDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statistical Measurement [Domain]",
        "label": "Statistical Measurement [Domain]",
        "documentation": "Statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median."
       }
      }
     },
     "auth_ref": [
      "r90",
      "r92",
      "r94",
      "r95",
      "r97",
      "r115",
      "r117",
      "r118",
      "r123",
      "r124",
      "r201",
      "r277",
      "r278",
      "r279",
      "r280",
      "r354",
      "r366",
      "r398",
      "r399",
      "r400",
      "r406",
      "r418",
      "r468",
      "r526",
      "r535",
      "r552",
      "r624",
      "r626",
      "r633",
      "r687",
      "r688",
      "r765",
      "r786",
      "r792",
      "r793",
      "r823",
      "r856",
      "r857",
      "r859",
      "r860",
      "r874",
      "r875",
      "r902",
      "r914",
      "r923",
      "r927",
      "r929",
      "r930",
      "r937",
      "r938",
      "r942",
      "r943",
      "r957",
      "r966",
      "r1270",
      "r1278",
      "r1336",
      "r1359",
      "r1360",
      "r1361",
      "r1362",
      "r1363"
     ]
    },
    "main_RealizedGainLossInvestmentAndDerivativeOperatingDeferredFederalTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RealizedGainLossInvestmentAndDerivativeOperatingDeferredFederalTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails": {
       "parentTag": "main_RealizedGainLossInvestmentAndDerivativeOperatingDeferredTaxExpenseBenefit",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal",
        "label": "Realized Gain (Loss), Investment And Derivative, Operating, Deferred Federal Tax Expense (Benefit)",
        "documentation": "Realized Gain (Loss), Investment And Derivative, Operating, Deferred Federal Tax Expense (Benefit)"
       }
      }
     },
     "auth_ref": []
    },
    "main_RealizedGainLossInvestmentAndDerivativeOperatingDeferredStateAndOtherTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RealizedGainLossInvestmentAndDerivativeOperatingDeferredStateAndOtherTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails": {
       "parentTag": "main_RealizedGainLossInvestmentAndDerivativeOperatingDeferredTaxExpenseBenefit",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "State and other",
        "label": "Realized Gain (Loss), Investment And Derivative, Operating, Deferred State And Other Tax Expense (Benefit)",
        "documentation": "Realized Gain (Loss), Investment And Derivative, Operating, Deferred State And Other Tax Expense (Benefit)"
       }
      }
     },
     "auth_ref": []
    },
    "main_RealizedGainLossInvestmentAndDerivativeOperatingDeferredTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RealizedGainLossInvestmentAndDerivativeOperatingDeferredTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails": {
       "parentTag": "us-gaap_RealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total deferred tax expense",
        "label": "Realized Gain (Loss), Investment And Derivative, Operating, Deferred Tax Expense (Benefit)",
        "documentation": "Realized Gain (Loss), Investment And Derivative, Operating, Deferred Tax Expense (Benefit)"
       }
      }
     },
     "auth_ref": []
    },
    "main_RealizedGainLossInvestmentAndDerivativeOperatingFederalTaxExpenseBenefitCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RealizedGainLossInvestmentAndDerivativeOperatingFederalTaxExpenseBenefitCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails": {
       "parentTag": "main_RealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefitCurrent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal",
        "label": "Realized Gain (Loss), Investment And Derivative, Operating, Federal Tax Expense (Benefit), Current",
        "documentation": "Realized Gain (Loss), Investment And Derivative, Operating, Federal Tax Expense (Benefit), Current"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails": {
       "parentTag": "main_InvestmentCompanyIncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations",
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Income tax provision on net realized gain (loss) and net unrealized appreciation (depreciation)",
        "totalLabel": "Total investment valuation related income tax provision",
        "label": "Realized Gain (Loss), Investment and Derivative, Operating, Tax Expense (Benefit)",
        "documentation": "Amount of tax expense (benefit) from realized gain (loss) on investment and derivative, classified as operating. Investment includes, but is not limited to, debt and equity securities, security sold short, real estate, and commodity."
       }
      }
     },
     "auth_ref": [
      "r722",
      "r1419",
      "r1422",
      "r1444"
     ]
    },
    "main_RealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefitCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefitCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails": {
       "parentTag": "us-gaap_RealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMEScheduleofNetInvestmentIncomeRelatedTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total current tax expense",
        "label": "Realized Gain (Loss), Investment And Derivative, Operating, Tax Expense (Benefit), Current",
        "documentation": "Realized Gain (Loss), Investment And Derivative, Operating, Tax Expense (Benefit), Current"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_RecoveryOfErrCompDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "RecoveryOfErrCompDisclosureLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Recovery of Erroneously Awarded Compensation Disclosure [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r987",
      "r998",
      "r1078",
      "r1112"
     ]
    },
    "cef_RegisteredClosedEndFundFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "RegisteredClosedEndFundFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Registered Closed-End Fund [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1009"
     ]
    },
    "us-gaap_RelatedPartyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERNarrativeDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSSummarizesofMainStreetsPurchasesofSharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Related Party [Domain]",
        "label": "Related and Nonrelated Parties [Domain]",
        "documentation": "Related and nonrelated parties. Related party includes, but is not limited to, affiliate, other entity for which investment is accounted for under equity method, trust for benefit of employee, principal owner, management, and member of immediate family, and other party that may be prevented from pursuing separate interests because of control, significant influence, or ownership interest."
       }
      }
     },
     "auth_ref": [
      "r155",
      "r160",
      "r161",
      "r223",
      "r361",
      "r365",
      "r512",
      "r513",
      "r601",
      "r606",
      "r694",
      "r695",
      "r696",
      "r697",
      "r698",
      "r720",
      "r761",
      "r1418"
     ]
    },
    "us-gaap_RelatedPartyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSSummarizesofMainStreetsPurchasesofSharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Related Party",
        "label": "Related Party [Member]",
        "documentation": "Party related to reporting entity. Includes, but is not limited to, affiliate, entity for which investment is accounted for by equity method, trust for benefit of employees, and principal owner, management, and members of immediate family."
       }
      }
     },
     "auth_ref": [
      "r155",
      "r160",
      "r161",
      "r512",
      "r513",
      "r514",
      "r515",
      "r601",
      "r606",
      "r694",
      "r695",
      "r696",
      "r697",
      "r698",
      "r720",
      "r761"
     ]
    },
    "main_RelatedPartyTransactionAmountOfDebtOutstanding": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RelatedPartyTransactionAmountOfDebtOutstanding",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amount of debt outstanding",
        "label": "Related Party Transaction, Amount of Debt Outstanding",
        "documentation": "Related Party Transaction, Amount of Debt Outstanding"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RelatedPartyTransactionAmountsOfTransaction": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyTransactionAmountsOfTransaction",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amounts of transaction",
        "label": "Related Party Transaction, Amounts of Transaction",
        "documentation": "Amount of transactions with related party during the financial reporting period."
       }
      }
     },
     "auth_ref": [
      "r512"
     ]
    },
    "us-gaap_RelatedPartyTransactionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyTransactionAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERNarrativeDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Related Party Transaction [Axis]",
        "label": "Related Party Transaction [Axis]",
        "documentation": "Information by type of related party transaction."
       }
      }
     },
     "auth_ref": [
      "r155",
      "r160",
      "r161",
      "r512",
      "r513",
      "r1355"
     ]
    },
    "us-gaap_RelatedPartyTransactionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyTransactionDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERNarrativeDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Related Party Transaction [Domain]",
        "label": "Related Party Transaction [Domain]",
        "documentation": "Transaction between related party."
       }
      }
     },
     "auth_ref": [
      "r155",
      "r160",
      "r161",
      "r1355"
     ]
    },
    "main_RelatedPartyTransactionFloorRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RelatedPartyTransactionFloorRate",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate, floor (as a percent)",
        "label": "Related Party Transaction, Floor Rate",
        "documentation": "Related Party Transaction, Floor Rate"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RelatedPartyTransactionLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyTransactionLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERNarrativeDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSSummarizesofMainStreetsPurchasesofSharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Related Party Transaction [Line Items]",
        "label": "Related Party Transaction [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": [
      "r155",
      "r160",
      "r161",
      "r223",
      "r512",
      "r513",
      "r515",
      "r729",
      "r730",
      "r733"
     ]
    },
    "main_RelatedPartyTransactionPercentageOfTotalCommitments": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RelatedPartyTransactionPercentageOfTotalCommitments",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of total commitments (as a percent)",
        "label": "Related Party Transaction, Percentage of Total Commitments",
        "documentation": "Related Party Transaction, Percentage of Total Commitments"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyTransactionPurchasesFromRelatedParty",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Funded commitments",
        "label": "Related Party Transaction, Purchases from Related Party",
        "documentation": "Purchases during the period (excluding transactions that are eliminated in consolidated or combined financial statements) with related party."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RelatedPartyTransactionRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyTransactionRate",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate (as a percent)",
        "label": "Related Party Transaction, Rate",
        "documentation": "Identify the stated interest rate per the agreement, for example, leasing and debt arrangements between related parties."
       }
      }
     },
     "auth_ref": [
      "r1351"
     ]
    },
    "main_RelatedPartyTransactionTransactionAmountShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RelatedPartyTransactionTransactionAmountShares",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred compensation (in shares)",
        "label": "Related Party Transaction, Transaction Amount, Shares",
        "documentation": "Related Party Transaction, Transaction Amount, Shares"
       }
      }
     },
     "auth_ref": []
    },
    "main_RelatedPartyTransactionUnusedCapacityCommitmentFeePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RelatedPartyTransactionUnusedCapacityCommitmentFeePercentage",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unused capacity, commitment fee (as a percent)",
        "label": "Related Party Transaction, Unused Capacity, Commitment Fee Percentage",
        "documentation": "Related Party Transaction, Unused Capacity, Commitment Fee Percentage"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RelatedPartyTransactionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyTransactionsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transactions [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RelatedPartyTransactionsByRelatedPartyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyTransactionsByRelatedPartyAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERNarrativeDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSSummarizesofMainStreetsPurchasesofSharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Related Party [Axis]",
        "label": "Related and Nonrelated Parties [Axis]",
        "documentation": "Information by related and nonrelated parties. Related party includes, but is not limited to, affiliate, other entity for which investment is accounted for under equity method, trust for benefit of employee, principal owner, management, and member of immediate family, and other party that may be prevented from pursuing separate interests because of control, significant influence, or ownership interest."
       }
      }
     },
     "auth_ref": [
      "r155",
      "r160",
      "r161",
      "r223",
      "r361",
      "r365",
      "r512",
      "r513",
      "r601",
      "r606",
      "r694",
      "r695",
      "r696",
      "r697",
      "r698",
      "r720",
      "r761",
      "r1355",
      "r1418"
     ]
    },
    "us-gaap_RelatedPartyTransactionsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyTransactionsDisclosureTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "RELATED PARTY TRANSACTIONS",
        "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": [
      "r509",
      "r510",
      "r511",
      "r513",
      "r516",
      "r651",
      "r652",
      "r653",
      "r731",
      "r732",
      "r733",
      "r758",
      "r760"
     ]
    },
    "us-gaap_RepaymentsOfLinesOfCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RepaymentsOfLinesOfCredit",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Repayments on Credit Facilities",
        "label": "Repayments of Lines of Credit",
        "documentation": "Amount of cash outflow for payment of an obligation from a lender, including but not limited to, letter of credit, standby letter of credit and revolving credit arrangements."
       }
      }
     },
     "auth_ref": [
      "r53",
      "r1230",
      "r1233"
     ]
    },
    "srt_RepurchaseAgreementCounterpartyNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "RepurchaseAgreementCounterpartyNameDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSSummarizesofMainStreetsPurchasesofSharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Counterparty Name [Domain]",
        "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": [
      "r119",
      "r120",
      "r155",
      "r162",
      "r163",
      "r296",
      "r339",
      "r515",
      "r536",
      "r598",
      "r882",
      "r883",
      "r884",
      "r1171",
      "r1172",
      "r1173",
      "r1174",
      "r1175",
      "r1176",
      "r1177",
      "r1178",
      "r1179",
      "r1326",
      "r1327",
      "r1328",
      "r1329"
     ]
    },
    "ecd_RestatementDateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "RestatementDateAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restatement Determination Date:",
        "label": "Restatement Determination Date [Axis]"
       }
      }
     },
     "auth_ref": [
      "r988",
      "r999",
      "r1079",
      "r1113"
     ]
    },
    "ecd_RestatementDeterminationDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "RestatementDeterminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restatement Determination Date",
        "label": "Restatement Determination Date"
       }
      }
     },
     "auth_ref": [
      "r989",
      "r1000",
      "r1080",
      "r1114"
     ]
    },
    "ecd_RestatementDoesNotRequireRecoveryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "RestatementDoesNotRequireRecoveryTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restatement does not require Recovery",
        "label": "Restatement Does Not Require Recovery [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r996",
      "r1007",
      "r1087",
      "r1121"
     ]
    },
    "us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and Cash Equivalents [Domain]",
        "label": "Cash and Cash Equivalents [Domain]",
        "documentation": "Type of cash and cash equivalent. Cash is 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": [
      "r134"
     ]
    },
    "us-gaap_RestrictedStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RestrictedStockMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONNarrativeDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedStockAuthorizedandAvailableforIssuanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restricted Stock",
        "label": "Restricted Stock [Member]",
        "documentation": "Stock including a provision that prohibits sale or substantive sale of an equity instrument for a specified period of time or until specified performance conditions are met."
       }
      }
     },
     "auth_ref": [
      "r1243",
      "r1290",
      "r1291",
      "r1292",
      "r1293",
      "r1294",
      "r1295",
      "r1296",
      "r1297",
      "r1298",
      "r1299",
      "r1300",
      "r1302",
      "r1303",
      "r1304",
      "r1305",
      "r1306",
      "r1307",
      "r1308",
      "r1309",
      "r1310",
      "r1311",
      "r1312",
      "r1313",
      "r1314",
      "r1315",
      "r1316"
     ]
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RetainedEarningsAccumulatedDeficit",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total undistributed earnings",
        "verboseLabel": "Total undistributed earnings",
        "label": "Retained Earnings (Accumulated Deficit)",
        "documentation": "Amount of accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r41",
      "r64",
      "r604",
      "r631",
      "r632",
      "r648",
      "r702",
      "r946"
     ]
    },
    "us-gaap_RetainedEarningsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RetainedEarningsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Undistributed Earnings",
        "label": "Retained Earnings [Member]",
        "documentation": "Accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r125",
      "r126",
      "r127",
      "r165",
      "r166",
      "r167",
      "r169",
      "r176",
      "r178",
      "r180",
      "r255",
      "r256",
      "r266",
      "r324",
      "r407",
      "r429",
      "r430",
      "r432",
      "r433",
      "r434",
      "r436",
      "r437",
      "r438",
      "r448",
      "r450",
      "r451",
      "r453",
      "r460",
      "r506",
      "r507",
      "r628",
      "r630",
      "r658",
      "r1428"
     ]
    },
    "cef_ReturnAtMinusFivePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ReturnAtMinusFivePercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Minus Five [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1066"
     ]
    },
    "cef_ReturnAtMinusTenPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ReturnAtMinusTenPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Minus Ten [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1066"
     ]
    },
    "cef_ReturnAtPlusFivePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ReturnAtPlusFivePercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Plus Five [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1066"
     ]
    },
    "cef_ReturnAtPlusTenPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ReturnAtPlusTenPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Plus Ten [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1066"
     ]
    },
    "cef_ReturnAtZeroPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ReturnAtZeroPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Zero [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1066"
     ]
    },
    "us-gaap_RevenueRecognitionDividends": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RevenueRecognitionDividends",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividend",
        "label": "Revenue Recognition, Dividends [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for revenue recognition for dividend revenue."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RevenueRecognitionInterest": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RevenueRecognitionInterest",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest",
        "label": "Revenue Recognition, Interest [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for recognition of interest revenue. Disclosure may include the method of recognizing interest income on loan and trade receivables, the method of amortizing premiums or accreting discounts, and a statement about the policy for the treatment of related fees and costs, including the method of amortizing net deferred fees and costs."
       }
      }
     },
     "auth_ref": []
    },
    "main_RevenueRecoveryHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RevenueRecoveryHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revenue Recovery Holdings, LLC",
        "label": "Revenue Recovery Holdings, LLC [Member]",
        "documentation": "Revenue Recovery Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Revenues": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "Revenues",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofStatementofOperationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total revenues before waivers",
        "label": "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": [
      "r74",
      "r75",
      "r146",
      "r155",
      "r158",
      "r159",
      "r192",
      "r203",
      "r204",
      "r215",
      "r217",
      "r219",
      "r220",
      "r222",
      "r254",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r492",
      "r592",
      "r594",
      "r898",
      "r931",
      "r961",
      "r962",
      "r1276"
     ]
    },
    "us-gaap_RevolvingCreditFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RevolvingCreditFacilityMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revolving Credit Facility",
        "verboseLabel": "Credit Facility",
        "label": "Revolving Credit Facility [Member]",
        "documentation": "Arrangement in which loan proceeds can continuously be obtained following repayments, but the total amount borrowed cannot exceed a specified maximum amount."
       }
      }
     },
     "auth_ref": []
    },
    "main_RichardsonSalesSolutionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RichardsonSalesSolutionsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Richardson Sales Solutions",
        "label": "Richardson Sales Solutions [Member]",
        "documentation": "Richardson Sales Solutions"
       }
      }
     },
     "auth_ref": []
    },
    "cef_RightsLimitedByOtherSecuritiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "RightsLimitedByOtherSecuritiesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rights Limited by Other Securities [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1022"
     ]
    },
    "cef_RightsSubjectToOtherThanMajorityVoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "RightsSubjectToOtherThanMajorityVoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rights Subject to Other than Majority Vote [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1021"
     ]
    },
    "cef_RiskAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "RiskAxis",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk [Axis]"
       }
      }
     },
     "auth_ref": [
      "r1062"
     ]
    },
    "cef_RiskFactorsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "RiskFactorsTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk Factors [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1062"
     ]
    },
    "cef_RiskTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "RiskTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1062"
     ]
    },
    "main_RobbinsBrosJewelryIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RobbinsBrosJewelryIncMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PPL RVs, Inc.",
        "label": "Robbins Bros. Jewelry, Inc. [Member]",
        "documentation": "Robbins Bros. Jewelry, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_RoofOpcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RoofOpcoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Roof Opco, LLC",
        "label": "Roof Opco, LLC [Member]",
        "documentation": "Roof Opco, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_RoyalCupInc.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RoyalCupInc.Member",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Royal Cup Inc.",
        "label": "Royal Cup Inc. [Member]",
        "documentation": "Royal Cup Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_RugDoctorLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "RugDoctorLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rug Doctor, LLC.",
        "label": "Rug Doctor, LLC. [Member]",
        "documentation": "Rug Doctor, LLC."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_Rule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "Rule10b51ArrAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rule 10b5-1 Arrangement Adopted",
        "label": "Rule 10b5-1 Arrangement Adopted [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1130"
     ]
    },
    "ecd_Rule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "Rule10b51ArrTrmntdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rule 10b5-1 Arrangement Terminated",
        "label": "Rule 10b5-1 Arrangement Terminated [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1130"
     ]
    },
    "main_SBICDebenturesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SBICDebenturesMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SBIC debentures",
        "verboseLabel": "SBIC debentures",
        "label": "SBIC Debentures [Member]",
        "documentation": "SBIC Debentures"
       }
      }
     },
     "auth_ref": []
    },
    "main_SIEastLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SIEastLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SI East, LLC",
        "label": "SI East, LLC [Member]",
        "documentation": "SI East, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_SOFRAdjustmentSpreadMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SOFRAdjustmentSpreadMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SOFR Adjustment Spread",
        "label": "SOFR Adjustment Spread [Member]",
        "documentation": "SOFR Adjustment Spread"
       }
      }
     },
     "auth_ref": []
    },
    "main_SPAUHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SPAUHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SPAU Holdings, LLC",
        "label": "SPAU Holdings, LLC [Member]",
        "documentation": "SPAU Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_SPVFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SPVFacilityMember",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTSPVFacilityDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SPV Facility",
        "label": "SPV Facility [Member]",
        "documentation": "SPV Facility"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SalariesWagesAndOfficersCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SalariesWagesAndOfficersCompensation",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations": {
       "parentTag": "us-gaap_InvestmentIncomeInvestmentExpense",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Compensation",
        "label": "Salary and Wage, Excluding Cost of Good and Service Sold",
        "documentation": "Amount of expense for salary and wage arising from service rendered by nonofficer and officer employees. Excludes allocated cost, labor-related nonsalary expense, and direct and overhead labor cost included in cost of good and service sold."
       }
      }
     },
     "auth_ref": []
    },
    "main_SaleOfStockAveragePricePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SaleOfStockAveragePricePerShare",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSSummarizesofMainStreetsPurchasesofSharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Average price paid per share (in dollars per share)",
        "label": "Sale Of Stock, Average Price Per Share",
        "documentation": "Sale Of Stock, Average Price Per Share"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SaleOfStockConsiderationReceivedOnTransaction": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SaleOfStockConsiderationReceivedOnTransaction",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMONSTOCKDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sale of stock, consideration received on transaction, net",
        "label": "Sale of Stock, Consideration Received on Transaction",
        "documentation": "Cash received on stock transaction after deduction of issuance costs."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SaleOfStockNameOfTransactionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SaleOfStockNameOfTransactionDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMONSTOCKDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sale of Stock [Domain]",
        "label": "Sale of Stock [Domain]",
        "documentation": "Sale of the entity's stock, including, but not limited to, initial public offering (IPO) and private placement."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SaleOfStockNumberOfSharesIssuedInTransaction",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMONSTOCKDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sale of stock, number of shares issued in transaction (in shares)",
        "label": "Sale of Stock, Number of Shares Issued in Transaction",
        "documentation": "The number of shares issued or sold by the subsidiary or equity method investee per stock transaction."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SaleOfStockPricePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SaleOfStockPricePerShare",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMONSTOCKDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sale of stock, price per share (in dollars per share)",
        "label": "Sale of Stock, Price Per Share",
        "documentation": "Per share amount received by subsidiary or equity investee for each share of common stock issued or sold in the stock transaction."
       }
      }
     },
     "auth_ref": []
    },
    "main_SaleOfStockRemainingNumberOfSharesAuthorizedToBePurchased": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SaleOfStockRemainingNumberOfSharesAuthorizedToBePurchased",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMONSTOCKDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sale of stock, remaining number of shares authorized to be purchased (in shares)",
        "label": "Sale Of Stock, Remaining Number Of Shares Authorized To Be Purchased",
        "documentation": "Sale Of Stock, Remaining Number Of Shares Authorized To Be Purchased"
       }
      }
     },
     "auth_ref": []
    },
    "main_SaleOfStockSharesAuthorizedUnderAgreement": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SaleOfStockSharesAuthorizedUnderAgreement",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMONSTOCKDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sale of stock, shares authorized under agreement (in shares)",
        "label": "Sale Of Stock, Shares Authorized Under Agreement",
        "documentation": "Sale Of Stock, Shares Authorized Under Agreement"
       }
      }
     },
     "auth_ref": []
    },
    "main_SaleOfStockSharesNotYetSettled": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SaleOfStockSharesNotYetSettled",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMONSTOCKDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sale of stock, shares not yet settled (in shares)",
        "label": "Sale Of Stock, Shares Not Yet Settled",
        "documentation": "Sale Of Stock, Shares Not Yet Settled"
       }
      }
     },
     "auth_ref": []
    },
    "main_SaleOfStockTotalSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SaleOfStockTotalSharesIssued",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSSummarizesofMainStreetsPurchasesofSharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total number of shares purchased as part of publicly announced plans or programs (in shares)",
        "label": "Sale Of Stock, Total Shares Issued",
        "documentation": "Sale Of Stock, Total Shares Issued"
       }
      }
     },
     "auth_ref": []
    },
    "cef_SalesLoadPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SalesLoadPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sales Load [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1034"
     ]
    },
    "srt_ScenarioForecastMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ScenarioForecastMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Forecast",
        "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": [
      "r367",
      "r1166"
     ]
    },
    "srt_ScenarioUnspecifiedDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ScenarioUnspecifiedDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Scenario [Domain]",
        "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": [
      "r122",
      "r130",
      "r132",
      "r181",
      "r367",
      "r1153"
     ]
    },
    "us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDSDISTRIBUTIONSANDTAXABLEINCOMETables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Net Investment Income Related Taxes",
        "label": "Schedule of Components of Income Tax Expense (Benefit) [Table Text Block]",
        "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": [
      "r1323"
     ]
    },
    "srt_ScheduleOfCondensedFinancialStatementsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ScheduleOfCondensedFinancialStatementsTableTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Condensed Balance Sheet and Statement of Operations of MSCC Funding",
        "label": "Condensed Financial Statements [Table Text Block]",
        "documentation": "Tabular disclosure of condensed financial statements, including, but not limited to, the balance sheet, income statement, and statement of cash flows."
       }
      }
     },
     "auth_ref": [
      "r1167",
      "r1231",
      "r1237",
      "r1364"
     ]
    },
    "us-gaap_ScheduleOfDebtTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfDebtTableTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Debt and Average Amount of Total Borrowings Outstanding and Weighted-Overall Average Effective Interest Rate",
        "label": "Schedule of Debt [Table Text Block]",
        "documentation": "Tabular disclosure of information pertaining to short-term and long-debt instruments or arrangements, including but not limited to identification of terms, features, collateral requirements and other information necessary to a fair presentation."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfInvestmentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfInvestmentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Investments [Abstract]",
        "label": "Schedule of Investments [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfInvestmentsInAndAdvancesToAffiliatesScheduleOfInvestmentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfInvestmentsInAndAdvancesToAffiliatesScheduleOfInvestmentsTableTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Investments in and Advances to Affiliates, Schedule of Investments",
        "label": "Schedule of Investments in and Advances to Affiliates, Schedule of Investments [Table Text Block]",
        "documentation": "A tabular presentation of the information summarizing investments in and advances to majority-owned subsidiaries, other controlled companies, and other affiliates, as prescribed by the SEC. It reflects specified information about ownership, financial results from, and financial position in such entities. Includes the tabular presentations that disaggregate investments in and advances to majority-owned subsidiaries, other controlled companies, and other affiliates."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfInvestmentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfInvestmentsLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesDetails",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesFootnotesDetails",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Investments [Line Items]",
        "label": "Schedule of 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": [
      "r762",
      "r763",
      "r764",
      "r765",
      "r766",
      "r767",
      "r768",
      "r769",
      "r770",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776",
      "r777",
      "r778",
      "r779",
      "r780",
      "r781",
      "r783",
      "r785",
      "r789",
      "r790",
      "r791",
      "r792",
      "r793",
      "r794",
      "r795",
      "r796",
      "r797",
      "r798",
      "r799",
      "r800",
      "r801",
      "r802",
      "r803",
      "r804",
      "r805",
      "r806",
      "r807",
      "r808",
      "r809",
      "r810",
      "r811",
      "r812",
      "r814",
      "r815",
      "r816",
      "r817",
      "r818",
      "r819",
      "r820",
      "r821",
      "r822",
      "r823",
      "r824",
      "r825",
      "r826",
      "r840",
      "r841",
      "r842",
      "r843",
      "r844",
      "r845"
     ]
    },
    "us-gaap_ScheduleOfInvestmentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfInvestmentsTable",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical",
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Investments [Table]",
        "label": "Schedule of Investments [Table]",
        "documentation": "Disclosure of information about investments owned by investment company."
       }
      }
     },
     "auth_ref": [
      "r762",
      "r763",
      "r764",
      "r765",
      "r766",
      "r767",
      "r768",
      "r769",
      "r770",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776",
      "r777",
      "r778",
      "r779",
      "r780",
      "r781",
      "r783",
      "r785",
      "r789",
      "r790",
      "r791",
      "r792",
      "r793",
      "r794",
      "r795",
      "r796",
      "r797",
      "r798",
      "r799",
      "r800",
      "r801",
      "r802",
      "r803",
      "r804",
      "r805",
      "r806",
      "r807",
      "r808",
      "r809",
      "r810",
      "r811",
      "r812",
      "r814",
      "r815",
      "r816",
      "r818",
      "r819",
      "r820",
      "r821",
      "r822",
      "r823",
      "r824",
      "r825",
      "r826",
      "r840",
      "r841",
      "r842",
      "r843",
      "r844",
      "r845"
     ]
    },
    "us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfRelatedPartyTransactionsByRelatedPartyTable",
     "presentation": [
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERNarrativeDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSSummarizesofMainStreetsPurchasesofSharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Related Party Transactions, by Related Party [Table]",
        "label": "Related Party Transaction [Table]",
        "documentation": "Disclosure of information about related party transaction."
       }
      }
     },
     "auth_ref": [
      "r155",
      "r160",
      "r161",
      "r512",
      "r513",
      "r515",
      "r729",
      "r730",
      "r733"
     ]
    },
    "us-gaap_ScheduleOfRelatedPartyTransactionsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfRelatedPartyTransactionsTableTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Related Party Transactions",
        "label": "Schedule of Related Party Transactions [Table Text Block]",
        "documentation": "Tabular disclosure of related party transactions. Examples of related party transactions include, but are not limited to, 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": [
      "r1352",
      "r1353"
     ]
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONNarrativeDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedStockAuthorizedandAvailableforIssuanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Share-Based Compensation Arrangements by Share-Based Payment Award [Table]",
        "label": "Schedule of Share-Based Compensation Arrangements by Share-Based Payment Award [Table]",
        "documentation": "Disclosure of information about share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r369",
      "r371",
      "r373",
      "r374",
      "r375",
      "r377",
      "r378",
      "r379",
      "r380",
      "r381",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r393",
      "r394",
      "r396",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401",
      "r406"
     ]
    },
    "us-gaap_ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Summarized Restricted Stock Awards",
        "label": "Share-Based Payment Arrangement, Restricted Stock and Restricted Stock Unit, Activity [Table Text Block]",
        "documentation": "Disclosure of the number and weighted-average grant date fair value for restricted stock and restricted stock units that were outstanding at the beginning and end of the year, and the number of restricted stock and restricted stock units that were granted, vested, or forfeited during the year."
       }
      }
     },
     "auth_ref": [
      "r1301"
     ]
    },
    "main_ScheduleOfSummarizedDividendReinvestmentPlanInformationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ScheduleOfSummarizedDividendReinvestmentPlanInformationTableTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDREINVESTMENTPLANTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Summarized Dividend Reinvestment Plan Information",
        "label": "Schedule of Summarized Dividend Reinvestment Plan Information [Table Text Block]",
        "documentation": "Schedule of Summarized Dividend Reinvestment Plan Information"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SecuredOvernightFinancingRateSofrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SecuredOvernightFinancingRateSofrMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SOFR",
        "label": "Secured Overnight Financing Rate (SOFR) [Member]",
        "documentation": "Interest rate at which bank can borrow U.S. dollar overnight while posting U.S. Treasury bond as collateral."
       }
      }
     },
     "auth_ref": [
      "r1330"
     ]
    },
    "main_SecuredRevolvingPromissoryNoteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SecuredRevolvingPromissoryNoteMember",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Secured Revolving Promissory Note",
        "label": "Secured Revolving Promissory Note [Member]",
        "documentation": "Secured Revolving Promissory Note"
       }
      }
     },
     "auth_ref": []
    },
    "dei_Security12bTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "Security12bTitle",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title of 12(b) Security",
        "terseLabel": "Title of 12(b) Security",
        "documentation": "Title of a 12(b) registered security."
       }
      }
     },
     "auth_ref": [
      "r981"
     ]
    },
    "cef_SecurityDividendsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SecurityDividendsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Dividends [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1012"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Exchange Name",
        "terseLabel": "Security Exchange Name",
        "documentation": "Name of the Exchange on which a security is registered."
       }
      }
     },
     "auth_ref": [
      "r983"
     ]
    },
    "cef_SecurityLiabilitiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SecurityLiabilitiesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Liabilities [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1015"
     ]
    },
    "cef_SecurityLiquidationRightsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SecurityLiquidationRightsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Liquidation Rights [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1014"
     ]
    },
    "cef_SecurityObligationsOfOwnershipTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SecurityObligationsOfOwnershipTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Obligations of Ownership [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1017"
     ]
    },
    "cef_SecurityPreemptiveAndOtherRightsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SecurityPreemptiveAndOtherRightsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Preemptive and Other Rights [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1016"
     ]
    },
    "cef_SecurityTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SecurityTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Title [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1011"
     ]
    },
    "cef_SecurityVotingRightsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SecurityVotingRightsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Voting Rights [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1013"
     ]
    },
    "srt_SegmentGeographicalDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "SegmentGeographicalDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesFootnotesDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Geographical [Domain]",
        "label": "Geographical [Domain]",
        "documentation": "Geographical area."
       }
      }
     },
     "auth_ref": [
      "r91",
      "r93",
      "r96",
      "r98",
      "r105",
      "r106",
      "r107",
      "r108",
      "r110",
      "r111",
      "r112",
      "r113",
      "r114",
      "r116",
      "r117",
      "r118",
      "r198",
      "r220",
      "r221",
      "r554",
      "r555",
      "r556",
      "r557",
      "r558",
      "r559",
      "r560",
      "r561",
      "r562",
      "r563",
      "r564",
      "r565",
      "r566",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r577",
      "r578",
      "r579",
      "r580",
      "r581",
      "r582",
      "r583",
      "r584",
      "r585",
      "r586",
      "r587",
      "r592",
      "r593",
      "r594",
      "r595",
      "r677",
      "r681",
      "r683",
      "r771",
      "r788",
      "r809",
      "r842",
      "r856",
      "r858",
      "r859",
      "r860",
      "r864",
      "r865",
      "r866",
      "r867",
      "r869",
      "r870",
      "r871",
      "r872",
      "r873",
      "r879",
      "r891",
      "r915",
      "r917",
      "r948",
      "r949",
      "r950",
      "r951",
      "r952",
      "r953",
      "r954",
      "r955",
      "r959",
      "r966",
      "r1371",
      "r1373",
      "r1374",
      "r1376",
      "r1377",
      "r1378",
      "r1379",
      "r1380",
      "r1381",
      "r1382",
      "r1383",
      "r1384",
      "r1385",
      "r1386",
      "r1387",
      "r1388",
      "r1389",
      "r1390",
      "r1391",
      "r1392",
      "r1393",
      "r1394",
      "r1395",
      "r1396",
      "r1397",
      "r1398",
      "r1399",
      "r1400"
     ]
    },
    "us-gaap_SegmentReportingPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SegmentReportingPolicyPolicyTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Segments",
        "label": "Segment Reporting, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for segment reporting."
       }
      }
     },
     "auth_ref": [
      "r208",
      "r209",
      "r210",
      "r211",
      "r212",
      "r213",
      "r214",
      "r218",
      "r220",
      "r896",
      "r897",
      "r900"
     ]
    },
    "cef_SeniorSecuritiesAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesAmt",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Amount"
       }
      }
     },
     "auth_ref": [
      "r1054"
     ]
    },
    "cef_SeniorSecuritiesAverageMarketValuePerUnit": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesAverageMarketValuePerUnit",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Average Market Value per Unit"
       }
      }
     },
     "auth_ref": [
      "r1056"
     ]
    },
    "cef_SeniorSecuritiesAveragingMethodNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesAveragingMethodNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Averaging Method, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1058"
     ]
    },
    "cef_SeniorSecuritiesCvgPerUnit": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesCvgPerUnit",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Coverage per Unit"
       }
      }
     },
     "auth_ref": [
      "r1055"
     ]
    },
    "cef_SeniorSecuritiesHeadingsNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesHeadingsNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Headings, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1059"
     ]
    },
    "cef_SeniorSecuritiesHighlightsAnnualizedNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesHighlightsAnnualizedNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Highlights Annualized, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1051",
      "r1057"
     ]
    },
    "cef_SeniorSecuritiesHighlightsAuditedNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesHighlightsAuditedNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Highlights Audited, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1052",
      "r1057"
     ]
    },
    "cef_SeniorSecuritiesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1050",
      "r1057"
     ]
    },
    "cef_SeniorSecuritiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1053"
     ]
    },
    "us-gaap_ShareBasedCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensation",
     "crdr": "debit",
     "calculation": {
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share-based compensation expense",
        "label": "Share-Based Payment Arrangement, Noncash Expense",
        "documentation": "Amount of noncash expense for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r3"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONNarrativeDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Vesting period (in years)",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, 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": [
      "r924"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Forfeited (in shares)",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Forfeited in Period",
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r390"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Forfeited (in dollars per share)",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Forfeitures, Weighted Average Grant Date Fair Value",
        "documentation": "Weighted average fair value as of the grant date of equity-based award plans other than stock (unit) option plans that were not exercised or put into effect as a result of the occurrence of a terminating event."
       }
      }
     },
     "auth_ref": [
      "r390"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedStockAuthorizedandAvailableforIssuanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Less net restricted stock granted (in shares)",
        "terseLabel": "Granted (in shares)",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period",
        "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": [
      "r388"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Granted (in dollars per share)",
        "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": [
      "r388"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Nonvested beginning balance (in shares)",
        "periodEndLabel": "Nonvested ending balance (in shares)",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number",
        "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": [
      "r385",
      "r386"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of Shares",
        "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/2025",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Nonvested beginning balance (in dollars per share)",
        "periodEndLabel": "Nonvested ending balance (in dollars per share)",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value",
        "documentation": "Per share or unit weighted-average fair value of nonvested award under share-based payment arrangement. Excludes share and unit options."
       }
      }
     },
     "auth_ref": [
      "r385",
      "r386"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted-Average Grant-Date Fair Value",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Vested (in shares)",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period",
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that vested during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r389"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Vested (in dollars per share)",
        "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": [
      "r389"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONNarrativeDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedStockAuthorizedandAvailableforIssuanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]",
        "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": [
      "r369",
      "r371",
      "r373",
      "r374",
      "r375",
      "r377",
      "r378",
      "r379",
      "r380",
      "r381",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r393",
      "r394",
      "r396",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401",
      "r406"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedStockAuthorizedandAvailableforIssuanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restricted stock authorized under the plan (in shares)",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Number of Shares Authorized",
        "documentation": "Number of shares authorized for issuance under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r925"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedStockAuthorizedandAvailableforIssuanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restricted stock available for issuance (in shares)",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Number of Shares Available for Grant",
        "documentation": "The difference between the maximum number of shares (or other type of equity) authorized for issuance under the plan (including the effects of amendments and adjustments), and the sum of: 1) the number of shares (or other type of equity) already issued upon exercise of options or other equity-based awards under the plan; and 2) shares (or other type of equity) reserved for issuance on granting of outstanding awards, net of cancellations and forfeitures, if applicable."
       }
      }
     },
     "auth_ref": [
      "r25"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONNarrativeDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails",
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedStockAuthorizedandAvailableforIssuanceDetails",
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Award Type [Domain]",
        "label": "Award Type [Domain]",
        "documentation": "Award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r373",
      "r374",
      "r375",
      "r377",
      "r378",
      "r379",
      "r380",
      "r381",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r393",
      "r394",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401"
     ]
    },
    "us-gaap_ShareBasedCompensationOptionAndIncentivePlansPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensationOptionAndIncentivePlansPolicy",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share-Based Compensation",
        "label": "Share-Based Payment Arrangement [Policy Text Block]",
        "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": [
      "r368",
      "r376",
      "r395",
      "r396",
      "r397",
      "r398",
      "r401",
      "r409",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r415",
      "r416"
     ]
    },
    "us-gaap_SharePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SharePrice",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Price",
        "terseLabel": "Share price (in dollars per share)",
        "documentation": "Price of a single share of a number of saleable stocks of a company."
       }
      }
     },
     "auth_ref": []
    },
    "cef_SharePriceTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SharePriceTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Price [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1068"
     ]
    },
    "cef_SharePricesNotActualTransactionsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SharePricesNotActualTransactionsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Prices Not Actual Transactions [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1069"
     ]
    },
    "main_SharePurchaseProgramAuthorizedAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SharePurchaseProgramAuthorizedAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share purchase program, authorized, amount",
        "label": "Share Purchase Program, Authorized, Amount",
        "documentation": "Share Purchase Program, Authorized, Amount"
       }
      }
     },
     "auth_ref": []
    },
    "main_SharePurchaseProgramPercentageOfOutstandingStockMaximum": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SharePurchaseProgramPercentageOfOutstandingStockMaximum",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share purchase program, percentage of outstanding stock maximum (as a percent)",
        "label": "Share Purchase Program, Percentage of Outstanding Stock Maximum",
        "documentation": "Share Purchase Program, Percentage of Outstanding Stock Maximum"
       }
      }
     },
     "auth_ref": []
    },
    "main_SharePurchaseProgramPeriodInForce": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SharePurchaseProgramPeriodInForce",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share purchase program, period in force",
        "label": "Share Purchase Program, Period in Force",
        "documentation": "Share Purchase Program, Period in Force"
       }
      }
     },
     "auth_ref": []
    },
    "main_SharePurchaseRepurchaseProgramNumberOfActivePlans": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SharePurchaseRepurchaseProgramNumberOfActivePlans",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share purchase (repurchase) program, number of active plans",
        "label": "Share Purchase (Repurchase) Program, Number Of Active Plans",
        "documentation": "Share Purchase (Repurchase) Program, Number Of Active Plans"
       }
      }
     },
     "auth_ref": []
    },
    "main_ShareRepurchaseProgramRemainingAuthorizedExpiredAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ShareRepurchaseProgramRemainingAuthorizedExpiredAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSSummarizesofMainStreetsPurchasesofSharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share repurchase program, expired amount",
        "label": "Share Repurchase Program, Remaining Authorized, Expired Amount",
        "documentation": "Share Repurchase Program, Remaining Authorized, Expired Amount"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueNonvested": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueNonvested",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregate intrinsic value",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Aggregate Intrinsic Value, Nonvested",
        "documentation": "Intrinsic value of nonvested award under share-based payment arrangement. Excludes share and unit options."
       }
      }
     },
     "auth_ref": [
      "r1318"
     ]
    },
    "cef_ShareholderTransactionExpensesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ShareholderTransactionExpensesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shareholder Transaction Expenses [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1034"
     ]
    },
    "us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensation": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SharesPaidForTaxWithholdingForShareBasedCompensation",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedShareAwardsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Shares withheld for payroll taxes paid (in shares)",
        "label": "Share-Based Payment Arrangement, Shares Withheld for Tax Withholding Obligation",
        "documentation": "Number of shares used to settle grantee's tax withholding obligation for award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r1318"
     ]
    },
    "us-gaap_ShortTermInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShortTermInvestmentsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Short-term portfolio investments",
        "label": "Short-Term Investments [Member]",
        "documentation": "Investments which are not otherwise included in another category or item that the entity has the intent to sell or dispose of within one year from the date of the balance sheet."
       }
      }
     },
     "auth_ref": [
      "r847",
      "r848",
      "r849",
      "r880"
     ]
    },
    "us-gaap_SignificantAccountingPoliciesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SignificantAccountingPoliciesTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES",
        "label": "Significant Accounting Policies [Text Block]",
        "documentation": "The entire disclosure for all significant accounting policies of the reporting entity."
       }
      }
     },
     "auth_ref": [
      "r153",
      "r154"
     ]
    },
    "main_SlickInnovationsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SlickInnovationsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "KMS, LLC",
        "label": "Slick Innovations, LLC [Member]",
        "documentation": "Slick Innovations, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_SoftwareMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SoftwareMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Software",
        "label": "Software [Member]",
        "documentation": "Software"
       }
      }
     },
     "auth_ref": []
    },
    "main_SouthCoastTerminalsHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SouthCoastTerminalsHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "South Coast Terminals Holdings, LLC",
        "label": "South Coast Terminals Holdings, LLC [Member]",
        "documentation": "South Coast Terminals Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SoutheastRegionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SoutheastRegionMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesFootnotesDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Southeast",
        "label": "US Southeast Region [Member]",
        "documentation": "Region of United States of America (US) designated as Southeast."
       }
      }
     },
     "auth_ref": [
      "r1431",
      "r1435",
      "r1438",
      "r1441"
     ]
    },
    "us-gaap_SouthwestRegionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SouthwestRegionMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesFootnotesDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Southwest",
        "label": "US Southwest Region [Member]",
        "documentation": "Region of United States of America (US) designated as Southwest."
       }
      }
     },
     "auth_ref": [
      "r1431",
      "r1435",
      "r1438",
      "r1441"
     ]
    },
    "main_SpecializedAviationHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SpecializedAviationHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Specialized Aviation Holdings, LLC",
        "label": "Specialized Aviation Holdings, LLC [Member]",
        "documentation": "Specialized Aviation Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_SpecialtyRetailMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SpecialtyRetailMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Specialty Retail",
        "label": "Specialty Retail [Member]",
        "documentation": "Specialty Retail"
       }
      }
     },
     "auth_ref": []
    },
    "main_SpringEngineeringHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "SpringEngineeringHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Spring Engineering Holdings, LLC",
        "label": "Spring Engineering Holdings, LLC [Member]",
        "documentation": "Spring Engineering Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementClassOfStockAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StatementClassOfStockAxis",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Stock [Axis]",
        "documentation": "Information by the different classes of stock of the entity."
       }
      }
     },
     "auth_ref": [
      "r87",
      "r136",
      "r137",
      "r138",
      "r155",
      "r159",
      "r184",
      "r185",
      "r187",
      "r189",
      "r194",
      "r195",
      "r254",
      "r283",
      "r285",
      "r286",
      "r287",
      "r290",
      "r291",
      "r326",
      "r327",
      "r329",
      "r330",
      "r332",
      "r334",
      "r337",
      "r338",
      "r341",
      "r344",
      "r351",
      "r492",
      "r643",
      "r644",
      "r645",
      "r646",
      "r658",
      "r662",
      "r664",
      "r666",
      "r667",
      "r668",
      "r669",
      "r670",
      "r671",
      "r672",
      "r673",
      "r674",
      "r701",
      "r725",
      "r753",
      "r850",
      "r851",
      "r852",
      "r853",
      "r854",
      "r1152",
      "r1232",
      "r1234",
      "r1242"
     ]
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StatementEquityComponentsAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Components [Axis]",
        "label": "Equity Components [Axis]",
        "documentation": "Information by component of equity."
       }
      }
     },
     "auth_ref": [
      "r8",
      "r39",
      "r42",
      "r43",
      "r125",
      "r126",
      "r127",
      "r143",
      "r144",
      "r145",
      "r165",
      "r166",
      "r167",
      "r169",
      "r176",
      "r178",
      "r180",
      "r193",
      "r255",
      "r256",
      "r266",
      "r324",
      "r352",
      "r407",
      "r429",
      "r430",
      "r432",
      "r433",
      "r434",
      "r436",
      "r437",
      "r438",
      "r448",
      "r449",
      "r450",
      "r451",
      "r452",
      "r453",
      "r454",
      "r455",
      "r456",
      "r457",
      "r460",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r501",
      "r506",
      "r507",
      "r508",
      "r609",
      "r628",
      "r629",
      "r630",
      "r658",
      "r753"
     ]
    },
    "srt_StatementGeographicalAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "StatementGeographicalAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesFootnotesDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Geographical [Axis]",
        "label": "Geographical [Axis]",
        "documentation": "Information by geographical components."
       }
      }
     },
     "auth_ref": [
      "r91",
      "r93",
      "r96",
      "r98",
      "r105",
      "r106",
      "r107",
      "r108",
      "r110",
      "r111",
      "r112",
      "r113",
      "r114",
      "r116",
      "r117",
      "r118",
      "r198",
      "r220",
      "r221",
      "r554",
      "r555",
      "r556",
      "r557",
      "r558",
      "r559",
      "r560",
      "r561",
      "r562",
      "r563",
      "r564",
      "r565",
      "r566",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r577",
      "r578",
      "r579",
      "r580",
      "r581",
      "r582",
      "r583",
      "r584",
      "r585",
      "r586",
      "r587",
      "r592",
      "r593",
      "r594",
      "r595",
      "r677",
      "r681",
      "r683",
      "r771",
      "r788",
      "r809",
      "r842",
      "r856",
      "r858",
      "r859",
      "r860",
      "r864",
      "r865",
      "r866",
      "r867",
      "r869",
      "r870",
      "r871",
      "r872",
      "r873",
      "r879",
      "r891",
      "r915",
      "r917",
      "r948",
      "r949",
      "r950",
      "r951",
      "r952",
      "r953",
      "r954",
      "r955",
      "r959",
      "r966",
      "r1371",
      "r1373",
      "r1374",
      "r1376",
      "r1377",
      "r1378",
      "r1379",
      "r1380",
      "r1381",
      "r1382",
      "r1383",
      "r1384",
      "r1385",
      "r1386",
      "r1387",
      "r1388",
      "r1389",
      "r1390",
      "r1391",
      "r1392",
      "r1393",
      "r1394",
      "r1395",
      "r1396",
      "r1397",
      "r1398",
      "r1399",
      "r1400"
     ]
    },
    "us-gaap_StatementLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StatementLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement [Line Items]",
        "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": [
      "r165",
      "r166",
      "r167",
      "r193",
      "r326",
      "r327",
      "r329",
      "r332",
      "r507",
      "r553",
      "r638",
      "r659",
      "r674",
      "r691",
      "r694",
      "r695",
      "r696",
      "r697",
      "r698",
      "r701",
      "r704",
      "r705",
      "r706",
      "r707",
      "r708",
      "r711",
      "r712",
      "r713",
      "r714",
      "r716",
      "r717",
      "r718",
      "r719",
      "r720",
      "r726",
      "r727",
      "r738",
      "r739",
      "r740",
      "r741",
      "r742",
      "r743",
      "r744",
      "r745",
      "r746",
      "r747",
      "r748",
      "r749",
      "r753",
      "r887",
      "r888",
      "r968",
      "r1418"
     ]
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "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/2025",
     "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/2025",
     "localname": "StatementOfStockholdersEquityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Stockholders' Equity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_StatementScenarioAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "StatementScenarioAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Scenario [Axis]",
        "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": [
      "r122",
      "r130",
      "r132",
      "r181",
      "r367",
      "r1153",
      "r1155"
     ]
    },
    "us-gaap_StatementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StatementTable",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement [Table]",
        "label": "Statement [Table]",
        "documentation": "Presentation of information about comprehensive income, income, other comprehensive income, financial position, cash flows, and shareholders' equity."
       }
      }
     },
     "auth_ref": [
      "r165",
      "r166",
      "r167",
      "r193",
      "r223",
      "r326",
      "r327",
      "r329",
      "r332",
      "r507",
      "r553",
      "r638",
      "r659",
      "r674",
      "r691",
      "r694",
      "r695",
      "r696",
      "r697",
      "r698",
      "r701",
      "r704",
      "r705",
      "r706",
      "r707",
      "r708",
      "r711",
      "r712",
      "r713",
      "r714",
      "r716",
      "r717",
      "r718",
      "r719",
      "r720",
      "r726",
      "r727",
      "r738",
      "r739",
      "r740",
      "r741",
      "r742",
      "r743",
      "r744",
      "r745",
      "r746",
      "r747",
      "r748",
      "r749",
      "r753",
      "r887",
      "r888",
      "r968",
      "r1418"
     ]
    },
    "ecd_StkPrcOrTsrEstimationMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "StkPrcOrTsrEstimationMethodTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stock Price or TSR Estimation Method",
        "label": "Stock Price or TSR Estimation Method [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r991",
      "r1002",
      "r1082",
      "r1116"
     ]
    },
    "us-gaap_StockAppreciationRightsSARSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockAppreciationRightsSARSMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stock Appreciation Rights (SARs)",
        "label": "Stock Appreciation Rights (SARs) [Member]",
        "documentation": "Right to receive cash or shares equal to appreciation of predetermined number of grantor's shares during predetermined time period."
       }
      }
     },
     "auth_ref": [
      "r1290",
      "r1291",
      "r1292",
      "r1293",
      "r1294",
      "r1295",
      "r1296",
      "r1297",
      "r1298",
      "r1299",
      "r1300",
      "r1302",
      "r1303",
      "r1304",
      "r1305",
      "r1306",
      "r1307",
      "r1308",
      "r1309",
      "r1310",
      "r1311",
      "r1312",
      "r1313",
      "r1314",
      "r1315",
      "r1316"
     ]
    },
    "us-gaap_StockIssued1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockIssued1",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Value of shares issued pursuant to the dividend reinvestment plan",
        "label": "Stock Issued",
        "documentation": "The fair value of stock issued in noncash financing activities."
       }
      }
     },
     "auth_ref": [
      "r15",
      "r16",
      "r17"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesDividendReinvestmentPlan": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockIssuedDuringPeriodSharesDividendReinvestmentPlan",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets",
      "http://www.mainstcapital.com/role/DIVIDENDREINVESTMENTPLANDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Dividend reinvestment (in shares)",
        "terseLabel": "Shares issued for DRIP (in shares)",
        "label": "Stock Issued During Period, Shares, Dividend Reinvestment Plan",
        "documentation": "Number of shares issued during the period from a dividend reinvestment plan (DRIP). A dividend reinvestment plan allows the shareholders to reinvest dividends paid to them by the entity on new issues of stock by the entity."
       }
      }
     },
     "auth_ref": [
      "r8",
      "r753",
      "r852"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesNewIssues": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockIssuedDuringPeriodSharesNewIssues",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Public offering of common stock, net of offering costs (in shares)",
        "label": "Stock Issued During Period, Shares, New Issues",
        "documentation": "Number of new stock issued during the period."
       }
      }
     },
     "auth_ref": [
      "r8",
      "r38",
      "r39",
      "r64",
      "r643",
      "r753",
      "r851"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Issuance of restricted stock, net of forfeited shares (in shares)",
        "label": "Stock Issued During Period, Shares, Restricted Stock Award, Net of Forfeitures",
        "documentation": "Number of shares issued during the period related to Restricted Stock Awards, net of any shares forfeited."
       }
      }
     },
     "auth_ref": [
      "r8",
      "r38",
      "r39",
      "r64"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodValueDividendReinvestmentPlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockIssuedDuringPeriodValueDividendReinvestmentPlan",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets",
      "http://www.mainstcapital.com/role/DIVIDENDREINVESTMENTPLANDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Dividend reinvestment",
        "terseLabel": "DRIP participation",
        "label": "Stock Issued During Period, Value, Dividend Reinvestment Plan",
        "documentation": "Value of stock issued during the period from a dividend reinvestment plan (DRIP). A dividend reinvestment plan allows the holder of the stock to reinvest dividends paid to them by the entity on new issues of stock by the entity."
       }
      }
     },
     "auth_ref": [
      "r8",
      "r658",
      "r753",
      "r852",
      "r967",
      "r978"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodValueNewIssues": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockIssuedDuringPeriodValueNewIssues",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Public offering of common stock, net of offering costs",
        "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": [
      "r8",
      "r38",
      "r39",
      "r64",
      "r658",
      "r753",
      "r851",
      "r978"
     ]
    },
    "srt_StockRepurchaseProgramAuthorizedAmount1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "StockRepurchaseProgramAuthorizedAmount1",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSSummarizesofMainStreetsPurchasesofSharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share repurchase program, authorized, amount",
        "label": "Share Repurchase Program, Authorized, Amount",
        "documentation": "Amount authorized for purchase of share under share repurchase plan. Includes, but is not limited to, repurchase of stock and unit of ownership."
       }
      }
     },
     "auth_ref": [
      "r1283"
     ]
    },
    "us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1",
     "crdr": "credit",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSSummarizesofMainStreetsPurchasesofSharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Approximate dollar value of shares that may yet be purchased under the plans or programs",
        "label": "Share Repurchase Program, Remaining Authorized, Amount",
        "documentation": "Amount remaining authorized for purchase of share under share repurchase plan. Includes, but is not limited to, repurchase of stock and unit of ownership."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockRepurchasedDuringPeriodShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockRepurchasedDuringPeriodShares",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSSummarizesofMainStreetsPurchasesofSharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "netLabel": "Total number of shares purchased (in shares)",
        "label": "Stock Repurchased During Period, Shares",
        "documentation": "Number of shares that have been repurchased during the period and have not been retired and are not held in treasury. Some state laws may govern the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock."
       }
      }
     },
     "auth_ref": [
      "r8",
      "r38",
      "r39",
      "r64",
      "r646",
      "r753",
      "r853"
     ]
    },
    "us-gaap_StockRepurchasedDuringPeriodValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockRepurchasedDuringPeriodValue",
     "crdr": "debit",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSSummarizesofMainStreetsPurchasesofSharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total cost",
        "label": "Stock Repurchased During Period, Value",
        "documentation": "Equity impact of the value of stock that has been repurchased during the period and has not been retired and is not held in treasury. Some state laws may mandate the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock."
       }
      }
     },
     "auth_ref": [
      "r8",
      "r38",
      "r39",
      "r64",
      "r658",
      "r753",
      "r853",
      "r978"
     ]
    },
    "us-gaap_StockholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockholdersEquity",
     "crdr": "credit",
     "calculation": {
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofChangesinNetAssets",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails",
      "http://www.mainstcapital.com/role/EXTERNALINVESTMENTMANAGERScheduleofBalanceSheetDetails",
      "http://www.mainstcapital.com/role/FINANCIALHIGHLIGHTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total net assets",
        "periodStartLabel": "Balance as of beginning of period",
        "periodEndLabel": "Balance as of ending of period",
        "terseLabel": "Equity",
        "verboseLabel": "NAV as of the end of the period",
        "label": "Equity, Attributable to Parent",
        "documentation": "Amount of equity (deficit) attributable to parent. Excludes temporary equity and equity attributable to noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r39",
      "r42",
      "r43",
      "r58",
      "r703",
      "r721",
      "r754",
      "r755",
      "r946",
      "r979",
      "r1230",
      "r1234",
      "r1235",
      "r1262",
      "r1346",
      "r1428"
     ]
    },
    "us-gaap_StockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockholdersEquityAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/DEBTScheduleofMSCCFundingBalanceSheetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NET ASSETS",
        "verboseLabel": "NET ASSETS",
        "label": "Equity, Attributable to Parent [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "main_StockholdersEquityDividendReinvestmentPlanTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "StockholdersEquityDividendReinvestmentPlanTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/DIVIDENDREINVESTMENTPLAN"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "DIVIDEND REINVESTMENT PLAN",
        "label": "Stockholders' Equity, Dividend Reinvestment Plan [Text Block]",
        "documentation": "Stockholders' Equity, Dividend Reinvestment Plan"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockholdersEquityNoteDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockholdersEquityNoteDisclosureTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMONSTOCK"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "COMMON STOCK",
        "label": "Equity [Text Block]",
        "documentation": "The entire disclosure for equity."
       }
      }
     },
     "auth_ref": [
      "r61",
      "r336",
      "r338",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r350",
      "r352",
      "r447",
      "r459",
      "r756",
      "r759",
      "r855"
     ]
    },
    "us-gaap_StockholdersEquityPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockholdersEquityPolicyTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Offering Costs",
        "label": "Stockholders' Equity, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for its capital stock transactions, including dividends and accumulated other comprehensive income."
       }
      }
     },
     "auth_ref": [
      "r6",
      "r757"
     ]
    },
    "main_StudentResourceCenterLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "StudentResourceCenterLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Student Resource Center, LLC",
        "label": "Student Resource Center, LLC [Member]",
        "documentation": "Student Resource Center, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubsequentEventLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsequentEventLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsequent Event [Line Items]",
        "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": [
      "r502",
      "r518"
     ]
    },
    "us-gaap_SubsequentEventMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsequentEventMember",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsequent Event",
        "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": [
      "r502",
      "r518"
     ]
    },
    "us-gaap_SubsequentEventTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsequentEventTable",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsequent Event [Table]",
        "label": "Subsequent Event [Table]",
        "documentation": "Disclosure of information about significant event or transaction occurring between statement of financial position date and date when financial statements were issued."
       }
      }
     },
     "auth_ref": [
      "r502",
      "r518"
     ]
    },
    "us-gaap_SubsequentEventTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsequentEventTypeAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsequent Event Type [Axis]",
        "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": [
      "r502",
      "r518"
     ]
    },
    "us-gaap_SubsequentEventTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsequentEventTypeDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsequent Event Type [Domain]",
        "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": [
      "r502",
      "r518"
     ]
    },
    "us-gaap_SubsequentEventsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsequentEventsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Events [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubsequentEventsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsequentEventsTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SUBSEQUENT EVENTS",
        "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": [
      "r517",
      "r519"
     ]
    },
    "us-gaap_SubsidiaryOrEquityMethodInvesteeSaleOfStockBySubsidiaryOrEquityInvesteeTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsidiaryOrEquityMethodInvesteeSaleOfStockBySubsidiaryOrEquityInvesteeTable",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMONSTOCKDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsidiary or Equity Method Investee, Sale of Stock by Subsidiary or Equity Investee [Table]",
        "label": "Subsidiary or Equity Method Investee, Sale of Stock, Type [Table]",
        "documentation": "Disclosure of information about sale of stock made by subsidiary or equity method investee to investor outside consolidated group by type of sale. Includes, but is not limited to, stock issued in business combination in exchange for share of acquired entity."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubsidiarySaleOfStockAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsidiarySaleOfStockAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMONSTOCKDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sale of Stock [Axis]",
        "label": "Sale of Stock [Axis]",
        "documentation": "Information by type of sale of the entity's stock."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubsidiarySaleOfStockLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsidiarySaleOfStockLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMONSTOCKDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsidiary, Sale of Stock [Line Items]",
        "label": "Subsidiary, Sale 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": []
    },
    "us-gaap_SummaryInvestmentHoldingsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SummaryInvestmentHoldingsTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Investment Holdings",
        "label": "Summary Investment Holdings [Table Text Block]",
        "documentation": "Tabular disclosure of the summary of investment holdings."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SummaryOfInvestmentHoldingsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SummaryOfInvestmentHoldingsLineItems",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Investment Holdings [Line Items]",
        "label": "Summary of Investment Holdings [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": [
      "r656",
      "r675",
      "r676",
      "r677",
      "r678",
      "r679",
      "r680",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r689",
      "r690",
      "r725",
      "r966"
     ]
    },
    "us-gaap_SummaryOfInvestmentHoldingsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SummaryOfInvestmentHoldingsTable",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Investment Holdings [Table]",
        "label": "Investment Holdings [Table]",
        "documentation": "Disclosure of information about summary of investment holding, including, but not limited to, investment with value exceeding one percent of net asset value of registrant."
       }
      }
     },
     "auth_ref": [
      "r656",
      "r675",
      "r676",
      "r677",
      "r678",
      "r679",
      "r680",
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r689",
      "r690",
      "r725",
      "r966"
     ]
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SupplementalCashFlowInformationAbstract",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Supplemental cash flow disclosures:",
        "label": "Supplemental Cash Flow Information [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "main_TECServicesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "TECServicesLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "TEC Services, LLC",
        "label": "TEC Services, LLC [Member]",
        "documentation": "TEC Services, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TabularListTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TabularListTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tabular List, Table",
        "label": "Tabular List [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1110"
     ]
    },
    "main_TedderIndustriesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "TedderIndustriesLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tedder Industries, LLC",
        "label": "Tedder Industries, LLC [Member]",
        "documentation": "Tedder Industries, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_TeleverdeLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "TeleverdeLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Televerde, LLC",
        "label": "Televerde, LLC [Member]",
        "documentation": "Televerde, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_TextilesApparelLuxuryGoodsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "TextilesApparelLuxuryGoodsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Textiles, Apparel &amp; Luxury Goods",
        "label": "Textiles, Apparel &amp; Luxury Goods [Member]",
        "documentation": "Textiles, Apparel &amp; Luxury Goods"
       }
      }
     },
     "auth_ref": []
    },
    "main_The2015DeferredCompensationPlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "The2015DeferredCompensationPlanMember",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2015 Deferred Compensation Plan",
        "label": "The 2015 Deferred Compensation Plan [Member]",
        "documentation": "The 2015 Deferred Compensation Plan"
       }
      }
     },
     "auth_ref": []
    },
    "main_TheAffiliatiNetworkLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "TheAffiliatiNetworkLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "The Affiliati Network, LLC",
        "label": "The Affiliati Network, LLC [Member]",
        "documentation": "The Affiliati Network, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_TitanMeterMidcoCorp.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "TitanMeterMidcoCorp.Member",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Titan Meter Midco Corp.",
        "label": "Titan Meter Midco Corp. [Member]",
        "documentation": "Titan Meter Midco Corp."
       }
      }
     },
     "auth_ref": []
    },
    "srt_TitleOfIndividualAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "TitleOfIndividualAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedStockAuthorizedandAvailableforIssuanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Title of Individual [Axis]",
        "label": "Title and Position [Axis]",
        "documentation": "Information by title and position of individual or group within organization."
       }
      }
     },
     "auth_ref": [
      "r1255",
      "r1354"
     ]
    },
    "srt_TitleOfIndividualWithRelationshipToEntityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "TitleOfIndividualWithRelationshipToEntityDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/SHAREBASEDCOMPENSATIONScheduleofRestrictedStockAuthorizedandAvailableforIssuanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Title of Individual [Domain]",
        "label": "Title and Position [Domain]",
        "documentation": "Title and position of individual or group within organization."
       }
      }
     },
     "auth_ref": []
    },
    "main_TobaccoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "TobaccoMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tobacco",
        "label": "Tobacco [Member]",
        "documentation": "Tobacco"
       }
      }
     },
     "auth_ref": []
    },
    "cef_TotalAnnualExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "TotalAnnualExpensesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Annual Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1047"
     ]
    },
    "ecd_TotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TotalShareholderRtnAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Shareholder Return Amount",
        "label": "Total Shareholder Return Amount"
       }
      }
     },
     "auth_ref": [
      "r1102"
     ]
    },
    "ecd_TotalShareholderRtnVsPeerGroupTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TotalShareholderRtnVsPeerGroupTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Shareholder Return Vs Peer Group",
        "label": "Total Shareholder Return Vs Peer Group [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1109"
     ]
    },
    "ecd_TradingArrAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TradingArrAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Trading Arrangement:",
        "label": "Trading Arrangement [Axis]"
       }
      }
     },
     "auth_ref": [
      "r1129"
     ]
    },
    "ecd_TradingArrByIndTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TradingArrByIndTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Trading Arrangements, by Individual",
        "label": "Trading Arrangements, by Individual [Table]"
       }
      }
     },
     "auth_ref": [
      "r1131"
     ]
    },
    "main_TradingCompaniesDistributorsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "TradingCompaniesDistributorsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyIndustrySectorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Trading Companies &amp; Distributors",
        "label": "Trading Companies &amp; Distributors [Member]",
        "documentation": "Trading Companies &amp; Distributors"
       }
      }
     },
     "auth_ref": []
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "TradingSymbol",
     "presentation": [
      "http://www.mainstcapital.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Symbol",
        "terseLabel": "Trading Symbol",
        "documentation": "Trading symbol of an instrument as listed on an exchange."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONNarrativeDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofFairValueHierarchyDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyTypeofInvestmentDetails",
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Instruments [Domain]",
        "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": [
      "r224",
      "r225",
      "r226",
      "r227",
      "r228",
      "r229",
      "r230",
      "r231",
      "r232",
      "r233",
      "r234",
      "r235",
      "r236",
      "r237",
      "r238",
      "r239",
      "r240",
      "r241",
      "r242",
      "r243",
      "r244",
      "r245",
      "r246",
      "r247",
      "r248",
      "r249",
      "r250",
      "r251",
      "r252",
      "r253",
      "r317",
      "r349",
      "r447",
      "r458",
      "r486",
      "r491",
      "r494",
      "r520",
      "r521",
      "r522",
      "r523",
      "r524",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r597",
      "r610",
      "r934",
      "r935",
      "r937",
      "r938",
      "r939",
      "r940",
      "r941",
      "r942",
      "r943",
      "r947",
      "r1158",
      "r1159",
      "r1160",
      "r1161",
      "r1162",
      "r1163",
      "r1164",
      "r1258",
      "r1259",
      "r1260",
      "r1261",
      "r1332",
      "r1335",
      "r1336",
      "r1337",
      "r1339",
      "r1341",
      "r1343",
      "r1344"
     ]
    },
    "main_TrantechRadiatorTopcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "TrantechRadiatorTopcoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Trantech Radiator Topco, LLC",
        "label": "Trantech Radiator Topco, LLC [Member]",
        "documentation": "Trantech Radiator Topco, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TrdArrAdoptionDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrAdoptionDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Adoption Date",
        "label": "Trading Arrangement Adoption Date"
       }
      }
     },
     "auth_ref": [
      "r1132"
     ]
    },
    "ecd_TrdArrDuration": {
     "xbrltype": "durationItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrDuration",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Arrangement Duration",
        "label": "Trading Arrangement Duration"
       }
      }
     },
     "auth_ref": [
      "r1133"
     ]
    },
    "ecd_TrdArrExpirationDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrExpirationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expiration Date",
        "label": "Trading Arrangement Expiration Date"
       }
      }
     },
     "auth_ref": [
      "r1133"
     ]
    },
    "ecd_TrdArrIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Name",
        "label": "Trading Arrangement, Individual Name"
       }
      }
     },
     "auth_ref": [
      "r1131"
     ]
    },
    "ecd_TrdArrIndTitle": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrIndTitle",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Title",
        "label": "Trading Arrangement, Individual Title"
       }
      }
     },
     "auth_ref": [
      "r1131"
     ]
    },
    "ecd_TrdArrSecuritiesAggAvailAmt": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrSecuritiesAggAvailAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregate Available",
        "label": "Trading Arrangement, Securities Aggregate Available Amount"
       }
      }
     },
     "auth_ref": [
      "r1134"
     ]
    },
    "ecd_TrdArrTerminationDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrTerminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Termination Date",
        "label": "Trading Arrangement Termination Date"
       }
      }
     },
     "auth_ref": [
      "r1132"
     ]
    },
    "main_TrinityMedicalHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "TrinityMedicalHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Trinity Medical Holdings, LLC",
        "label": "Trinity Medical Holdings, LLC [Member]",
        "documentation": "Trinity Medical Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_UBMAcquireCoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "UBMAcquireCoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "UBM AcquireCo LLC",
        "label": "UBM AcquireCo LLC [Member]",
        "documentation": "UBM AcquireCo LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_UPSIntermediateLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "UPSIntermediateLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "UPS Intermediate, LLC",
        "label": "UPS Intermediate, LLC [Member]",
        "documentation": "UPS Intermediate, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_USTelePacificCorpMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "USTelePacificCorpMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "U.S. TelePacific Corp.",
        "label": "U.S. TelePacific Corp. [Member]",
        "documentation": "U.S. TelePacific Corp."
       }
      }
     },
     "auth_ref": []
    },
    "cef_UnderwritersCompensationPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "UnderwritersCompensationPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Underwriters Compensation [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1043"
     ]
    },
    "ecd_UndrlygSecurityMktPriceChngPct": {
     "xbrltype": "pureItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "UndrlygSecurityMktPriceChngPct",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Underlying Security Market Price Change",
        "label": "Underlying Security Market Price Change, Percent"
       }
      }
     },
     "auth_ref": [
      "r1128"
     ]
    },
    "main_UnearnedIncomePolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "UnearnedIncomePolicyTextBlock",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unearned Income\u2014Debt Origination Fees and Original Issue Discount and Discounts / Premiums to Par Value",
        "label": "Unearned Income [Policy Text Block]",
        "documentation": "Unearned Income"
       }
      }
     },
     "auth_ref": []
    },
    "main_UniTekGlobalServicesIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "UniTekGlobalServicesIncMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "UniTek Global Services, Inc.",
        "label": "UniTek Global Services, Inc. [Member]",
        "documentation": "UniTek Global Services, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_UnionRockEnergyFundInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "UnionRockEnergyFundInvestmentsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMITMENTSANDCONTINGENCIESDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "UnionRock Energy Fund Investments",
        "label": "UnionRock Energy Fund Investments [Member]",
        "documentation": "UnionRock Energy Fund Investments"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UnsecuredDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "UnsecuredDebtMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheets",
      "http://www.mainstcapital.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.mainstcapital.com/role/DEBTNotesDueandSBICDebenturesDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofDebtDetails",
      "http://www.mainstcapital.com/role/DEBTScheduleofInterestExpenseDetails",
      "http://www.mainstcapital.com/role/SUBSEQUENTEVENTSDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unsecured Notes",
        "label": "Unsecured Debt [Member]",
        "documentation": "Debt obligation not collateralized by pledge of, mortgage of or other lien on the entity's assets."
       }
      }
     },
     "auth_ref": []
    },
    "main_UnsecuredRevolvingPromissoryNoteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "UnsecuredRevolvingPromissoryNoteMember",
     "presentation": [
      "http://www.mainstcapital.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unsecured Revolving Promissory Note",
        "label": "Unsecured Revolving Promissory Note [Member]",
        "documentation": "Unsecured Revolving Promissory Note"
       }
      }
     },
     "auth_ref": []
    },
    "main_UrgentDSOLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "UrgentDSOLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Urgent DSO LLC",
        "label": "Urgent DSO LLC [Member]",
        "documentation": "Urgent DSO LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UseOfEstimates": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "UseOfEstimates",
     "presentation": [
      "http://www.mainstcapital.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Use of Estimates",
        "label": "Use of Estimates, Policy [Policy Text Block]",
        "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": [
      "r83",
      "r84",
      "r196",
      "r199",
      "r200",
      "r201",
      "r592",
      "r594",
      "r892"
     ]
    },
    "main_UserZoomTechnologiesInc.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "UserZoomTechnologiesInc.Member",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "UserZoom Technologies, Inc.",
        "label": "UserZoom Technologies, Inc. [Member]",
        "documentation": "UserZoom Technologies, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "main_VVSHoldcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "VVSHoldcoLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Trantech Radiator Topco, LLC",
        "label": "VVS Holdco, LLC [Member]",
        "documentation": "VVS Holdco, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_ValuationMarketAndEnterpriseValueApproachMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ValuationMarketAndEnterpriseValueApproachMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Market comparable / Enterprise value",
        "label": "Valuation, Market And Enterprise Value Approach [Member]",
        "documentation": "Valuation, Market And Enterprise Value Approach"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ValuationTechniqueAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ValuationTechniqueAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Valuation Approach and Technique [Axis]",
        "label": "Valuation Approach and Technique [Axis]",
        "documentation": "Information by valuation approach and technique."
       }
      }
     },
     "auth_ref": [
      "r466",
      "r467",
      "r927",
      "r930",
      "r937",
      "r1337"
     ]
    },
    "us-gaap_ValuationTechniqueDiscountedCashFlowMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ValuationTechniqueDiscountedCashFlowMember",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Discounted cash flow",
        "label": "Valuation Technique, Discounted Cash Flow [Member]",
        "documentation": "Valuation technique calculating present value of future cash flows."
       }
      }
     },
     "auth_ref": [
      "r906",
      "r907",
      "r937",
      "r1335",
      "r1336",
      "r1337"
     ]
    },
    "us-gaap_ValuationTechniqueDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ValuationTechniqueDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Valuation Approach and Technique [Domain]",
        "label": "Valuation Approach and Technique [Domain]",
        "documentation": "Valuation approach and technique."
       }
      }
     },
     "auth_ref": [
      "r466",
      "r467",
      "r927",
      "r930",
      "r937",
      "r1337"
     ]
    },
    "us-gaap_VariableRateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "VariableRateAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable Rate [Axis]",
        "label": "Variable Rate [Axis]",
        "documentation": "Information by type of variable rate."
       }
      }
     },
     "auth_ref": [
      "r1170",
      "r1275",
      "r1330"
     ]
    },
    "main_VariableRateComponentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "VariableRateComponentAxis",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable Rate Component [Axis]",
        "label": "Variable Rate Component [Axis]",
        "documentation": "Variable Rate Component"
       }
      }
     },
     "auth_ref": []
    },
    "main_VariableRateComponentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "VariableRateComponentDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable Rate Component [Domain]",
        "label": "Variable Rate Component [Domain]",
        "documentation": "Variable Rate Component [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "main_VariableRateComponentOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "VariableRateComponentOneMember",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable Rate Component One",
        "label": "Variable Rate Component One [Member]",
        "documentation": "Variable Rate Component One"
       }
      }
     },
     "auth_ref": []
    },
    "main_VariableRateComponentTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "VariableRateComponentTwoMember",
     "presentation": [
      "http://www.mainstcapital.com/role/DEBTCorporateFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable Rate Component Two",
        "label": "Variable Rate Component Two [Member]",
        "documentation": "Variable Rate Component Two"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_VariableRateDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "VariableRateDomain",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable Rate [Domain]",
        "label": "Variable Rate [Domain]",
        "documentation": "Interest rate that fluctuates over time as a result of an underlying benchmark interest rate or index."
       }
      }
     },
     "auth_ref": [
      "r1170",
      "r1275",
      "r1330"
     ]
    },
    "main_VictoryEnergyOperationsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "VictoryEnergyOperationsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Victory Energy Operations, LLC",
        "label": "Victory Energy Operations, LLC [Member]",
        "documentation": "Victory Energy Operations, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_VitesseSystemsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "VitesseSystemsMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Vitesse Systems",
        "label": "Vitesse Systems [Member]",
        "documentation": "Vitesse Systems"
       }
      }
     },
     "auth_ref": []
    },
    "main_VolusionLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "VolusionLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Volusion, LLC",
        "label": "Volusion, LLC [Member]",
        "documentation": "Volusion, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_VstngDtFrValOfEqtyAwrdsGrntdAndVstdInCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "VstngDtFrValOfEqtyAwrdsGrntdAndVstdInCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Vesting Date Fair Value of Equity Awards Granted and Vested in Covered Year",
        "label": "Vesting Date Fair Value of Equity Awards Granted and Vested in Covered Year [Member]"
       }
      }
     },
     "auth_ref": [
      "r1098"
     ]
    },
    "cef_WaiversAndReimbursementsOfFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "WaiversAndReimbursementsOfFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Waivers and Reimbursements of Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1048"
     ]
    },
    "cef_WarrantsOrRightsCalledAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "WarrantsOrRightsCalledAmount",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants or Rights, Called Amount"
       }
      }
     },
     "auth_ref": [
      "r1028"
     ]
    },
    "cef_WarrantsOrRightsCalledPeriodDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "WarrantsOrRightsCalledPeriodDate",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants or Rights, Called Period [Date]"
       }
      }
     },
     "auth_ref": [
      "r1028"
     ]
    },
    "cef_WarrantsOrRightsCalledTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "WarrantsOrRightsCalledTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants or Rights, Called Title"
       }
      }
     },
     "auth_ref": [
      "r1028"
     ]
    },
    "cef_WarrantsOrRightsExercisePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "WarrantsOrRightsExercisePrice",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants or Rights, Exercise Price"
       }
      }
     },
     "auth_ref": [
      "r1028"
     ]
    },
    "main_WashWaxSystemsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "WashWaxSystemsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Wash &amp; Wax Systems LLC",
        "label": "Wash &amp; Wax Systems LLC [Member]",
        "documentation": "Wash &amp; Wax Systems LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_WattersonBrandsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "WattersonBrandsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Watterson Brands, LLC",
        "label": "Watterson Brands, LLC [Member]",
        "documentation": "Watterson Brands, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "srt_WeightedAverageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "WeightedAverageMember",
     "presentation": [
      "http://www.mainstcapital.com/role/COMMONSTOCKDetails",
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsParenthetical",
      "http://www.mainstcapital.com/role/DEBTScheduleofAverageAmountofTotalBorrowingsOutstandingandOverallWeightedAverageEffectiveInterestRateDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofLevel3PortfolioInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted-Average",
        "label": "Weighted Average [Member]",
        "documentation": "Average of a range of values, calculated with consideration of proportional relevance."
       }
      }
     },
     "auth_ref": [
      "r398",
      "r399",
      "r468",
      "r535",
      "r874",
      "r875",
      "r937",
      "r1358",
      "r1360",
      "r1363"
     ]
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "WEIGHTED-AVERAGE SHARES OUTSTANDING\u2014DILUTED (in shares)",
        "label": "Weighted Average Number of Shares Outstanding, Diluted",
        "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": [
      "r183",
      "r189"
     ]
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedStatementsofOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "WEIGHTED-AVERAGE SHARES OUTSTANDING\u2014BASIC (in shares)",
        "label": "Weighted Average Number of 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": [
      "r182",
      "r189"
     ]
    },
    "us-gaap_WestRegionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "WestRegionMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestmentsinandAdvancestoAffiliatesFootnotesDetails",
      "http://www.mainstcapital.com/role/FAIRVALUEHIERARCHYFORINVESTMENTSPORTFOLIOCOMPOSITIONScheduleofPercentageofPortfolioInvestmentsbyGeographicalRegionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "West",
        "label": "US West Region [Member]",
        "documentation": "Region of United States of America (US) designated as West."
       }
      }
     },
     "auth_ref": [
      "r1431",
      "r1435",
      "r1438",
      "r1441"
     ]
    },
    "main_WinterServicesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "WinterServicesLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Winter Services LLC",
        "label": "Winter Services LLC [Member]",
        "documentation": "Winter Services LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_WorldMicroHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "WorldMicroHoldingsLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "World Micro Holdings, LLC",
        "label": "World Micro Holdings, LLC [Member]",
        "documentation": "World Micro Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_XenonArcIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "XenonArcIncMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Xenon Arc, Inc.",
        "label": "Xenon Arc, Inc. [Member]",
        "documentation": "Xenon Arc, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_YrEndFrValOfEqtyAwrdsGrntdInCvrdYrOutsdngAndUnvstdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "YrEndFrValOfEqtyAwrdsGrntdInCvrdYrOutsdngAndUnvstdMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Year-end Fair Value of Equity Awards Granted in Covered Year that are Outstanding and Unvested",
        "label": "Year-end Fair Value of Equity Awards Granted in Covered Year that are Outstanding and Unvested [Member]"
       }
      }
     },
     "auth_ref": [
      "r1096"
     ]
    },
    "main_ZRGPartnersLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ZRGPartnersLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ZRG Partners, LLC",
        "label": "ZRG Partners, LLC [Member]",
        "documentation": "ZRG Partners, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "main_ZieglersNYPDLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.mainstcapital.com/20260331",
     "localname": "ZieglersNYPDLLCMember",
     "presentation": [
      "http://www.mainstcapital.com/role/ConsolidatedScheduleofInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ziegler\u2019s NYPD, LLC",
        "label": "Ziegler\u2019s NYPD, LLC [Member]",
        "documentation": "Ziegler\u2019s NYPD, LLC"
       }
      }
     },
     "auth_ref": []
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "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/2147477401/830-230-45-1"
  },
  "r1": {
   "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"
  },
  "r2": {
   "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/2147477787/942-405-45-2"
  },
  "r3": {
   "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"
  },
  "r4": {
   "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"
  },
  "r5": {
   "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"
  },
  "r6": {
   "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"
  },
  "r7": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "10",
   "Topic": "850",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483326/850-10-50-1"
  },
  "r8": {
   "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"
  },
  "r9": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(a)(2)",
   "SubTopic": "40",
   "Topic": "815",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480237/815-40-50-5"
  },
  "r10": {
   "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"
  },
  "r11": {
   "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"
  },
  "r12": {
   "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"
  },
  "r13": {
   "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"
  },
  "r14": {
   "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"
  },
  "r15": {
   "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"
  },
  "r16": {
   "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"
  },
  "r17": {
   "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"
  },
  "r18": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "260",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482662/260-10-50-1"
  },
  "r19": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "260",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482662/260-10-50-2"
  },
  "r20": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "320",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/320/tableOfContent"
  },
  "r21": {
   "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"
  },
  "r22": {
   "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"
  },
  "r23": {
   "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"
  },
  "r24": {
   "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"
  },
  "r25": {
   "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"
  },
  "r26": {
   "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"
  },
  "r27": {
   "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/2147477734/942-470-50-3"
  },
  "r28": {
   "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)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r29": {
   "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"
  },
  "r30": {
   "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"
  },
  "r31": {
   "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(21))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r32": {
   "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(22)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r33": {
   "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(22)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r34": {
   "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"
  },
  "r35": {
   "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"
  },
  "r36": {
   "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(25))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r37": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r38": {
   "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"
  },
  "r39": {
   "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"
  },
  "r40": {
   "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"
  },
  "r41": {
   "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"
  },
  "r42": {
   "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"
  },
  "r43": {
   "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"
  },
  "r44": {
   "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"
  },
  "r45": {
   "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(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r46": {
   "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"
  },
  "r47": {
   "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(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r48": {
   "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)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r49": {
   "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)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r50": {
   "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(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r51": {
   "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"
  },
  "r52": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "15",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-15"
  },
  "r53": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "15",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-15"
  },
  "r54": {
   "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"
  },
  "r55": {
   "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"
  },
  "r56": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-25"
  },
  "r57": {
   "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"
  },
  "r58": {
   "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"
  },
  "r59": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "440",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/440/tableOfContent"
  },
  "r60": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "470",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/470/tableOfContent"
  },
  "r61": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/505/tableOfContent"
  },
  "r62": {
   "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"
  },
  "r63": {
   "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"
  },
  "r64": {
   "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"
  },
  "r65": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "810",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/810/tableOfContent"
  },
  "r66": {
   "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/2147478546/942-210-S99-1"
  },
  "r67": {
   "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/2147478546/942-210-S99-1"
  },
  "r68": {
   "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)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r69": {
   "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/2147478546/942-210-S99-1"
  },
  "r70": {
   "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(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r71": {
   "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/2147478546/942-210-S99-1"
  },
  "r72": {
   "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(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r73": {
   "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/2147478524/942-220-S99-1"
  },
  "r74": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "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"
  },
  "r75": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "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"
  },
  "r76": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "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"
  },
  "r77": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "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"
  },
  "r78": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-29"
  },
  "r79": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-29"
  },
  "r80": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-29"
  },
  "r81": {
   "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"
  },
  "r82": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "SubTopic": "220",
   "Topic": "946",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-5"
  },
  "r83": {
   "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"
  },
  "r84": {
   "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"
  },
  "r85": {
   "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"
  },
  "r86": {
   "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"
  },
  "r87": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "a",
   "Publisher": "SEC"
  },
  "r88": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "b",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r89": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "04",
   "Paragraph": "a",
   "Publisher": "SEC"
  },
  "r90": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "12",
   "Paragraph": "Column A",
   "Footnote": "2",
   "Publisher": "SEC"
  },
  "r91": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "12",
   "Paragraph": "Column C",
   "Footnote": "5",
   "Publisher": "SEC"
  },
  "r92": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "12A",
   "Paragraph": "Column A",
   "Footnote": "2",
   "Publisher": "SEC"
  },
  "r93": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "12A",
   "Paragraph": "Column C",
   "Footnote": "4",
   "Publisher": "SEC"
  },
  "r94": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "12B",
   "Paragraph": "Column A",
   "Subparagraph": "(a)",
   "Footnote": "4",
   "Publisher": "SEC"
  },
  "r95": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "12B",
   "Paragraph": "Column A",
   "Subparagraph": "(b)",
   "Footnote": "4",
   "Publisher": "SEC"
  },
  "r96": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "12B",
   "Paragraph": "Column C",
   "Footnote": "2",
   "Publisher": "SEC"
  },
  "r97": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "14",
   "Paragraph": "Column A",
   "Footnote": "2",
   "Publisher": "SEC"
  },
  "r98": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "14",
   "Paragraph": "Column F",
   "Footnote": "7",
   "Publisher": "SEC"
  },
  "r99": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column A",
   "Publisher": "SEC"
  },
  "r100": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column B",
   "Publisher": "SEC"
  },
  "r101": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column C",
   "Publisher": "SEC"
  },
  "r102": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column D",
   "Publisher": "SEC"
  },
  "r103": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column E",
   "Publisher": "SEC"
  },
  "r104": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column F",
   "Publisher": "SEC"
  },
  "r105": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column A",
   "Footnote": "2",
   "Publisher": "SEC"
  },
  "r106": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column B",
   "Publisher": "SEC"
  },
  "r107": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column C",
   "Publisher": "SEC"
  },
  "r108": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column D",
   "Publisher": "SEC"
  },
  "r109": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column E",
   "Footnote": "4",
   "Publisher": "SEC"
  },
  "r110": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column E",
   "Publisher": "SEC"
  },
  "r111": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column F",
   "Publisher": "SEC"
  },
  "r112": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column G",
   "Publisher": "SEC"
  },
  "r113": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column H",
   "Publisher": "SEC"
  },
  "r114": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column I",
   "Publisher": "SEC"
  },
  "r115": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "29",
   "Paragraph": "Column A",
   "Footnote": "3",
   "Publisher": "SEC"
  },
  "r116": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "29",
   "Paragraph": "Column A",
   "Footnote": "4",
   "Publisher": "SEC"
  },
  "r117": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "29",
   "Paragraph": "Column B",
   "Publisher": "SEC"
  },
  "r118": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "29",
   "Paragraph": "Column C",
   "Publisher": "SEC"
  },
  "r119": {
   "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"
  },
  "r120": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "4",
   "Subsection": "08",
   "Paragraph": "m",
   "Subparagraph": "(2)(ii)",
   "Publisher": "SEC"
  },
  "r121": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 11",
   "Section": "L",
   "Publisher": "SEC"
  },
  "r122": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 11",
   "Section": "M",
   "Paragraph": "Question 2",
   "Publisher": "SEC"
  },
  "r123": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 5",
   "Section": "Y",
   "Paragraph": "Question 2",
   "Publisher": "SEC"
  },
  "r124": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 5",
   "Section": "Y",
   "Paragraph": "Question 4",
   "Publisher": "SEC"
  },
  "r125": {
   "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"
  },
  "r126": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "9",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-9"
  },
  "r127": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "9",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-9"
  },
  "r128": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/205/tableOfContent"
  },
  "r129": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S45",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481034/205-10-S45-5"
  },
  "r130": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481003/205-10-S50-2"
  },
  "r131": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480922/205-10-S99-3"
  },
  "r132": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SAB Topic 1.B.2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480922/205-10-S99-7"
  },
  "r133": {
   "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"
  },
  "r134": {
   "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"
  },
  "r135": {
   "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"
  },
  "r136": {
   "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"
  },
  "r137": {
   "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"
  },
  "r138": {
   "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"
  },
  "r139": {
   "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"
  },
  "r140": {
   "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"
  },
  "r141": {
   "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"
  },
  "r142": {
   "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"
  },
  "r143": {
   "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"
  },
  "r144": {
   "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"
  },
  "r145": {
   "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"
  },
  "r146": {
   "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"
  },
  "r147": {
   "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"
  },
  "r148": {
   "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"
  },
  "r149": {
   "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"
  },
  "r150": {
   "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"
  },
  "r151": {
   "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"
  },
  "r152": {
   "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"
  },
  "r153": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/235/tableOfContent"
  },
  "r154": {
   "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"
  },
  "r155": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480738/235-10-S50-1"
  },
  "r156": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480738/235-10-S50-4"
  },
  "r157": {
   "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(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r158": {
   "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)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r159": {
   "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"
  },
  "r160": {
   "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(k)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r161": {
   "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(k)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r162": {
   "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"
  },
  "r163": {
   "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"
  },
  "r164": {
   "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"
  },
  "r165": {
   "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"
  },
  "r166": {
   "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"
  },
  "r167": {
   "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"
  },
  "r168": {
   "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"
  },
  "r169": {
   "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"
  },
  "r170": {
   "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"
  },
  "r171": {
   "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"
  },
  "r172": {
   "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"
  },
  "r173": {
   "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"
  },
  "r174": {
   "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"
  },
  "r175": {
   "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"
  },
  "r176": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-6"
  },
  "r177": {
   "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"
  },
  "r178": {
   "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"
  },
  "r179": {
   "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"
  },
  "r180": {
   "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"
  },
  "r181": {
   "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"
  },
  "r182": {
   "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"
  },
  "r183": {
   "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"
  },
  "r184": {
   "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"
  },
  "r185": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-3"
  },
  "r186": {
   "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"
  },
  "r187": {
   "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"
  },
  "r188": {
   "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"
  },
  "r189": {
   "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"
  },
  "r190": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482662/260-10-50-1"
  },
  "r191": {
   "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"
  },
  "r192": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "270",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482964/270-10-50-1"
  },
  "r193": {
   "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"
  },
  "r194": {
   "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"
  },
  "r195": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "272",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482987/272-10-50-3"
  },
  "r196": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-12"
  },
  "r197": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "20",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-20"
  },
  "r198": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "20",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-20"
  },
  "r199": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-4"
  },
  "r200": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-6"
  },
  "r201": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-9"
  },
  "r202": {
   "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"
  },
  "r203": {
   "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"
  },
  "r204": {
   "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"
  },
  "r205": {
   "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"
  },
  "r206": {
   "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"
  },
  "r207": {
   "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"
  },
  "r208": {
   "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"
  },
  "r209": {
   "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"
  },
  "r210": {
   "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"
  },
  "r211": {
   "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"
  },
  "r212": {
   "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"
  },
  "r213": {
   "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"
  },
  "r214": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-29"
  },
  "r215": {
   "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"
  },
  "r216": {
   "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"
  },
  "r217": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(ee)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-32"
  },
  "r218": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "36",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-36"
  },
  "r219": {
   "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"
  },
  "r220": {
   "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"
  },
  "r221": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "41",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-41"
  },
  "r222": {
   "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"
  },
  "r223": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481990/310-10-45-13"
  },
  "r224": {
   "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"
  },
  "r225": {
   "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"
  },
  "r226": {
   "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"
  },
  "r227": {
   "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"
  },
  "r228": {
   "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"
  },
  "r229": {
   "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"
  },
  "r230": {
   "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"
  },
  "r231": {
   "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"
  },
  "r232": {
   "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"
  },
  "r233": {
   "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"
  },
  "r234": {
   "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"
  },
  "r235": {
   "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"
  },
  "r236": {
   "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"
  },
  "r237": {
   "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"
  },
  "r238": {
   "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"
  },
  "r239": {
   "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"
  },
  "r240": {
   "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"
  },
  "r241": {
   "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"
  },
  "r242": {
   "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"
  },
  "r243": {
   "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"
  },
  "r244": {
   "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"
  },
  "r245": {
   "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"
  },
  "r246": {
   "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"
  },
  "r247": {
   "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"
  },
  "r248": {
   "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"
  },
  "r249": {
   "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"
  },
  "r250": {
   "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"
  },
  "r251": {
   "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"
  },
  "r252": {
   "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"
  },
  "r253": {
   "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"
  },
  "r254": {
   "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"
  },
  "r255": {
   "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"
  },
  "r256": {
   "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"
  },
  "r257": {
   "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"
  },
  "r258": {
   "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"
  },
  "r259": {
   "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"
  },
  "r260": {
   "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"
  },
  "r261": {
   "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"
  },
  "r262": {
   "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"
  },
  "r263": {
   "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"
  },
  "r264": {
   "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"
  },
  "r265": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482686/350-30-45-1"
  },
  "r266": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476166/350-60-65-1"
  },
  "r267": {
   "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"
  },
  "r268": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "405",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477092/405-40-50-1"
  },
  "r269": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "405",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477092/405-40-50-1"
  },
  "r270": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "405",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477092/405-40-50-1"
  },
  "r271": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "405",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477092/405-40-50-1"
  },
  "r272": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "405",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477092/405-40-50-1"
  },
  "r273": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "405",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477092/405-40-50-1"
  },
  "r274": {
   "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"
  },
  "r275": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "440",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482648/440-10-50-4"
  },
  "r276": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "440",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482648/440-10-50-4"
  },
  "r277": {
   "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"
  },
  "r278": {
   "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"
  },
  "r279": {
   "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"
  },
  "r280": {
   "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"
  },
  "r281": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481544/470-10-50-6"
  },
  "r282": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481544/470-10-50-6"
  },
  "r283": {
   "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"
  },
  "r284": {
   "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"
  },
  "r285": {
   "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"
  },
  "r286": {
   "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"
  },
  "r287": {
   "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"
  },
  "r288": {
   "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"
  },
  "r289": {
   "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"
  },
  "r290": {
   "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"
  },
  "r291": {
   "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"
  },
  "r292": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1B"
  },
  "r293": {
   "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"
  },
  "r294": {
   "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"
  },
  "r295": {
   "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"
  },
  "r296": {
   "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"
  },
  "r297": {
   "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"
  },
  "r298": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1B"
  },
  "r299": {
   "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"
  },
  "r300": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1B"
  },
  "r301": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1C",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1C"
  },
  "r302": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1C",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1C"
  },
  "r303": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1C",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1C"
  },
  "r304": {
   "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"
  },
  "r305": {
   "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"
  },
  "r306": {
   "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"
  },
  "r307": {
   "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"
  },
  "r308": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1E",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1E"
  },
  "r309": {
   "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"
  },
  "r310": {
   "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"
  },
  "r311": {
   "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"
  },
  "r312": {
   "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"
  },
  "r313": {
   "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"
  },
  "r314": {
   "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"
  },
  "r315": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1I",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1I"
  },
  "r316": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1I",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1I"
  },
  "r317": {
   "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"
  },
  "r318": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1I",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1I"
  },
  "r319": {
   "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"
  },
  "r320": {
   "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"
  },
  "r321": {
   "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"
  },
  "r322": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-6"
  },
  "r323": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-6"
  },
  "r324": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(f)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481538/470-20-65-4"
  },
  "r325": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(f)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481538/470-20-65-4"
  },
  "r326": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479887/480-10-S45-1"
  },
  "r327": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479887/480-10-S45-2"
  },
  "r328": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479887/480-10-S45-3"
  },
  "r329": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479857/480-10-S50-1"
  },
  "r330": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479857/480-10-S50-2"
  },
  "r331": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479857/480-10-S50-3"
  },
  "r332": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480244/480-10-S99-1"
  },
  "r333": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(01)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480244/480-10-S99-1"
  },
  "r334": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(04)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480244/480-10-S99-1"
  },
  "r335": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3A",
   "Subparagraph": "(24)(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480244/480-10-S99-3A"
  },
  "r336": {
   "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"
  },
  "r337": {
   "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"
  },
  "r338": {
   "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"
  },
  "r339": {
   "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"
  },
  "r340": {
   "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"
  },
  "r341": {
   "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"
  },
  "r342": {
   "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"
  },
  "r343": {
   "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"
  },
  "r344": {
   "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"
  },
  "r345": {
   "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"
  },
  "r346": {
   "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"
  },
  "r347": {
   "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"
  },
  "r348": {
   "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"
  },
  "r349": {
   "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"
  },
  "r350": {
   "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"
  },
  "r351": {
   "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"
  },
  "r352": {
   "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"
  },
  "r353": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "712",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/712/tableOfContent"
  },
  "r354": {
   "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"
  },
  "r355": {
   "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"
  },
  "r356": {
   "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"
  },
  "r357": {
   "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"
  },
  "r358": {
   "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"
  },
  "r359": {
   "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"
  },
  "r360": {
   "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"
  },
  "r361": {
   "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"
  },
  "r362": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-5"
  },
  "r363": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)(iv)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-5"
  },
  "r364": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)(iv)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-5"
  },
  "r365": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(l)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-5"
  },
  "r366": {
   "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"
  },
  "r367": {
   "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"
  },
  "r368": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/718/tableOfContent"
  },
  "r369": {
   "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"
  },
  "r370": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480483/718-10-35-2"
  },
  "r371": {
   "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"
  },
  "r372": {
   "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"
  },
  "r373": {
   "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"
  },
  "r374": {
   "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"
  },
  "r375": {
   "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"
  },
  "r376": {
   "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"
  },
  "r377": {
   "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"
  },
  "r378": {
   "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"
  },
  "r379": {
   "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"
  },
  "r380": {
   "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"
  },
  "r381": {
   "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"
  },
  "r382": {
   "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"
  },
  "r383": {
   "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"
  },
  "r384": {
   "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"
  },
  "r385": {
   "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"
  },
  "r386": {
   "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"
  },
  "r387": {
   "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"
  },
  "r388": {
   "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"
  },
  "r389": {
   "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"
  },
  "r390": {
   "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"
  },
  "r391": {
   "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"
  },
  "r392": {
   "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"
  },
  "r393": {
   "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"
  },
  "r394": {
   "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"
  },
  "r395": {
   "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"
  },
  "r396": {
   "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"
  },
  "r397": {
   "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"
  },
  "r398": {
   "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"
  },
  "r399": {
   "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"
  },
  "r400": {
   "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"
  },
  "r401": {
   "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"
  },
  "r402": {
   "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"
  },
  "r403": {
   "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"
  },
  "r404": {
   "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"
  },
  "r405": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r406": {
   "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"
  },
  "r407": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "17",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480336/718-10-65-17"
  },
  "r408": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479983/718-10-S45-1"
  },
  "r409": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479953/718-10-S50-2"
  },
  "r410": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479953/718-10-S50-3"
  },
  "r411": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479953/718-10-S50-4"
  },
  "r412": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479953/718-10-S50-5"
  },
  "r413": {
   "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"
  },
  "r414": {
   "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"
  },
  "r415": {
   "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"
  },
  "r416": {
   "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"
  },
  "r417": {
   "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"
  },
  "r418": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "720",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483359/720-20-50-1"
  },
  "r419": {
   "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"
  },
  "r420": {
   "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"
  },
  "r421": {
   "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"
  },
  "r422": {
   "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"
  },
  "r423": {
   "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"
  },
  "r424": {
   "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"
  },
  "r425": {
   "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"
  },
  "r426": {
   "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"
  },
  "r427": {
   "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"
  },
  "r428": {
   "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"
  },
  "r429": {
   "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"
  },
  "r430": {
   "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"
  },
  "r431": {
   "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"
  },
  "r432": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r433": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r434": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r435": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r436": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r437": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476176/805-60-65-1"
  },
  "r438": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476176/805-60-65-1"
  },
  "r439": {
   "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"
  },
  "r440": {
   "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"
  },
  "r441": {
   "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"
  },
  "r442": {
   "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"
  },
  "r443": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r444": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4C",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4C"
  },
  "r445": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4D"
  },
  "r446": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4F",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4F"
  },
  "r447": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-8A"
  },
  "r448": {
   "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"
  },
  "r449": {
   "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"
  },
  "r450": {
   "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"
  },
  "r451": {
   "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"
  },
  "r452": {
   "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"
  },
  "r453": {
   "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"
  },
  "r454": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480870/815-30-50-2"
  },
  "r455": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480870/815-30-50-2"
  },
  "r456": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480870/815-30-50-2"
  },
  "r457": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480870/815-30-50-2"
  },
  "r458": {
   "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"
  },
  "r459": {
   "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"
  },
  "r460": {
   "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"
  },
  "r461": {
   "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"
  },
  "r462": {
   "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"
  },
  "r463": {
   "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"
  },
  "r464": {
   "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"
  },
  "r465": {
   "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"
  },
  "r466": {
   "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"
  },
  "r467": {
   "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"
  },
  "r468": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r469": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r470": {
   "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"
  },
  "r471": {
   "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"
  },
  "r472": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r473": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r474": {
   "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"
  },
  "r475": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r476": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r477": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2E"
  },
  "r478": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2G",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2G"
  },
  "r479": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-3"
  },
  "r480": {
   "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"
  },
  "r481": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6A"
  },
  "r482": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6A"
  },
  "r483": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6A"
  },
  "r484": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6A"
  },
  "r485": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6A"
  },
  "r486": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6B"
  },
  "r487": {
   "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"
  },
  "r488": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-11"
  },
  "r489": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-11"
  },
  "r490": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "28",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-28"
  },
  "r491": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "28",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-28"
  },
  "r492": {
   "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"
  },
  "r493": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-30"
  },
  "r494": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-32"
  },
  "r495": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482804/825-20-50-1"
  },
  "r496": {
   "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"
  },
  "r497": {
   "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"
  },
  "r498": {
   "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"
  },
  "r499": {
   "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"
  },
  "r500": {
   "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"
  },
  "r501": {
   "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"
  },
  "r502": {
   "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"
  },
  "r503": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482925/835-30-45-1A"
  },
  "r504": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482925/835-30-45-2"
  },
  "r505": {
   "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"
  },
  "r506": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479832/842-10-65-8"
  },
  "r507": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "12A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479165/842-20-35-12A"
  },
  "r508": {
   "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"
  },
  "r509": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/850/tableOfContent"
  },
  "r510": {
   "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"
  },
  "r511": {
   "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"
  },
  "r512": {
   "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"
  },
  "r513": {
   "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"
  },
  "r514": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483326/850-10-50-2"
  },
  "r515": {
   "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"
  },
  "r516": {
   "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"
  },
  "r517": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "855",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/855/tableOfContent"
  },
  "r518": {
   "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"
  },
  "r519": {
   "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"
  },
  "r520": {
   "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"
  },
  "r521": {
   "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"
  },
  "r522": {
   "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"
  },
  "r523": {
   "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"
  },
  "r524": {
   "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"
  },
  "r525": {
   "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"
  },
  "r526": {
   "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"
  },
  "r527": {
   "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"
  },
  "r528": {
   "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"
  },
  "r529": {
   "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"
  },
  "r530": {
   "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"
  },
  "r531": {
   "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"
  },
  "r532": {
   "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"
  },
  "r533": {
   "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"
  },
  "r534": {
   "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"
  },
  "r535": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481420/860-30-50-7"
  },
  "r536": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481420/860-30-50-9"
  },
  "r537": {
   "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"
  },
  "r538": {
   "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"
  },
  "r539": {
   "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"
  },
  "r540": {
   "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"
  },
  "r541": {
   "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"
  },
  "r542": {
   "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"
  },
  "r543": {
   "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"
  },
  "r544": {
   "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"
  },
  "r545": {
   "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"
  },
  "r546": {
   "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"
  },
  "r547": {
   "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"
  },
  "r548": {
   "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"
  },
  "r549": {
   "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"
  },
  "r550": {
   "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"
  },
  "r551": {
   "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"
  },
  "r552": {
   "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"
  },
  "r553": {
   "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"
  },
  "r554": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478934/932-220-50-1"
  },
  "r555": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-18"
  },
  "r556": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-18"
  },
  "r557": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-18"
  },
  "r558": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "19",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-19"
  },
  "r559": {
   "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/2147477215/932-235-50-20"
  },
  "r560": {
   "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/2147477215/932-235-50-20"
  },
  "r561": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "23",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-23"
  },
  "r562": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "23",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-23"
  },
  "r563": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "23",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-23"
  },
  "r564": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "23",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-23"
  },
  "r565": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "23",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-23"
  },
  "r566": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "23",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-23"
  },
  "r567": {
   "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/2147477215/932-235-50-28"
  },
  "r568": {
   "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/2147477215/932-235-50-28"
  },
  "r569": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "31",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-31"
  },
  "r570": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "31",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-31"
  },
  "r571": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "31",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-31"
  },
  "r572": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "31",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-31"
  },
  "r573": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "31",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-31"
  },
  "r574": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "31",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-31"
  },
  "r575": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-5"
  },
  "r576": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-5"
  },
  "r577": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-5"
  },
  "r578": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-5"
  },
  "r579": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-5"
  },
  "r580": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-5"
  },
  "r581": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-6"
  },
  "r582": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-7"
  },
  "r583": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-8"
  },
  "r584": {
   "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/2147477215/932-235-50-8"
  },
  "r585": {
   "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/2147477215/932-235-50-8"
  },
  "r586": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "280",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478657/932-280-50-1"
  },
  "r587": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478988/932-323-50-1"
  },
  "r588": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "940",
   "SubTopic": "820",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478119/940-820-50-1"
  },
  "r589": {
   "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(14)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r590": {
   "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/2147478524/942-220-S99-1"
  },
  "r591": {
   "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(9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r592": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478671/942-235-S50-1"
  },
  "r593": {
   "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)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477314/942-235-S99-1"
  },
  "r594": {
   "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/2147477314/942-235-S99-1"
  },
  "r595": {
   "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)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477314/942-235-S99-1"
  },
  "r596": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477314/942-235-S99-2"
  },
  "r597": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "825",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478898/942-825-50-1"
  },
  "r598": {
   "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)(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r599": {
   "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/2147478777/944-210-S99-1"
  },
  "r600": {
   "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/2147478777/944-210-S99-1"
  },
  "r601": {
   "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)(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r602": {
   "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/2147478777/944-210-S99-1"
  },
  "r603": {
   "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/2147478777/944-210-S99-1"
  },
  "r604": {
   "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/2147478777/944-210-S99-1"
  },
  "r605": {
   "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/2147478777/944-210-S99-1"
  },
  "r606": {
   "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)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r607": {
   "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(11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r608": {
   "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/2147477250/944-220-S99-1"
  },
  "r609": {
   "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/2147477250/944-220-S99-1"
  },
  "r610": {
   "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/2147477250/944-220-S99-1"
  },
  "r611": {
   "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)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r612": {
   "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)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r613": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r614": {
   "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/2147477250/944-220-S99-1"
  },
  "r615": {
   "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/2147477250/944-220-S99-1"
  },
  "r616": {
   "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/2147477250/944-220-S99-1"
  },
  "r617": {
   "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/2147477965/944-235-S99-2"
  },
  "r618": {
   "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/2147477965/944-235-S99-2"
  },
  "r619": {
   "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/2147477965/944-235-S99-2"
  },
  "r620": {
   "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/2147477965/944-235-S99-2"
  },
  "r621": {
   "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/2147477965/944-235-S99-2"
  },
  "r622": {
   "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/2147477965/944-235-S99-2"
  },
  "r623": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-4E"
  },
  "r624": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-5"
  },
  "r625": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-5"
  },
  "r626": {
   "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"
  },
  "r627": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-9"
  },
  "r628": {
   "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"
  },
  "r629": {
   "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"
  },
  "r630": {
   "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"
  },
  "r631": {
   "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"
  },
  "r632": {
   "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"
  },
  "r633": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 5.W.Q2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479583/944-40-S99-1"
  },
  "r634": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "825",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477351/944-825-50-1B"
  },
  "r635": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "825",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477351/944-825-50-1B"
  },
  "r636": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480424/946-10-50-1"
  },
  "r637": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480424/946-10-50-2"
  },
  "r638": {
   "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"
  },
  "r639": {
   "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"
  },
  "r640": {
   "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"
  },
  "r641": {
   "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"
  },
  "r642": {
   "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"
  },
  "r643": {
   "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"
  },
  "r644": {
   "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"
  },
  "r645": {
   "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"
  },
  "r646": {
   "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"
  },
  "r647": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481019/946-20-45-5"
  },
  "r648": {
   "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"
  },
  "r649": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-12"
  },
  "r650": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "16",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-16"
  },
  "r651": {
   "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"
  },
  "r652": {
   "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"
  },
  "r653": {
   "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"
  },
  "r654": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-7"
  },
  "r655": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-8"
  },
  "r656": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-9"
  },
  "r657": {
   "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/2147478009/946-205-45-3"
  },
  "r658": {
   "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/2147478009/946-205-45-4"
  },
  "r659": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478009/946-205-45-6"
  },
  "r660": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-1"
  },
  "r661": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-18"
  },
  "r662": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-2"
  },
  "r663": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-24"
  },
  "r664": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "27",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-27"
  },
  "r665": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-3"
  },
  "r666": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r667": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r668": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r669": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r670": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r671": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r672": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r673": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r674": {
   "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/2147477796/946-210-45-4"
  },
  "r675": {
   "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/2147478795/946-210-50-1"
  },
  "r676": {
   "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/2147478795/946-210-50-1"
  },
  "r677": {
   "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/2147478795/946-210-50-1"
  },
  "r678": {
   "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/2147478795/946-210-50-1"
  },
  "r679": {
   "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/2147478795/946-210-50-1"
  },
  "r680": {
   "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/2147478795/946-210-50-12"
  },
  "r681": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-2"
  },
  "r682": {
   "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/2147478795/946-210-50-6"
  },
  "r683": {
   "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/2147478795/946-210-50-6"
  },
  "r684": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r685": {
   "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/2147478795/946-210-50-6"
  },
  "r686": {
   "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/2147478795/946-210-50-6"
  },
  "r687": {
   "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/2147478795/946-210-50-6"
  },
  "r688": {
   "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/2147478795/946-210-50-6"
  },
  "r689": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(g)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r690": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(g)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r691": {
   "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/2147479170/946-210-S99-1"
  },
  "r692": {
   "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(10)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r693": {
   "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(11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r694": {
   "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/2147479170/946-210-S99-1"
  },
  "r695": {
   "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/2147479170/946-210-S99-1"
  },
  "r696": {
   "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/2147479170/946-210-S99-1"
  },
  "r697": {
   "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/2147479170/946-210-S99-1"
  },
  "r698": {
   "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/2147479170/946-210-S99-1"
  },
  "r699": {
   "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(14))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r700": {
   "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/2147479170/946-210-S99-1"
  },
  "r701": {
   "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/2147479170/946-210-S99-1"
  },
  "r702": {
   "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/2147479170/946-210-S99-1"
  },
  "r703": {
   "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/2147479170/946-210-S99-1"
  },
  "r704": {
   "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/2147479170/946-210-S99-1"
  },
  "r705": {
   "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/2147479170/946-210-S99-1"
  },
  "r706": {
   "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/2147479170/946-210-S99-1"
  },
  "r707": {
   "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/2147479170/946-210-S99-1"
  },
  "r708": {
   "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/2147479170/946-210-S99-1"
  },
  "r709": {
   "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/2147479170/946-210-S99-1"
  },
  "r710": {
   "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)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r711": {
   "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/2147479170/946-210-S99-1"
  },
  "r712": {
   "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/2147479170/946-210-S99-1"
  },
  "r713": {
   "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/2147479170/946-210-S99-1"
  },
  "r714": {
   "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/2147479170/946-210-S99-1"
  },
  "r715": {
   "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/2147479170/946-210-S99-1"
  },
  "r716": {
   "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/2147479170/946-210-S99-1"
  },
  "r717": {
   "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/2147479170/946-210-S99-1"
  },
  "r718": {
   "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/2147479170/946-210-S99-1"
  },
  "r719": {
   "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/2147479170/946-210-S99-1"
  },
  "r720": {
   "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/2147479170/946-210-S99-2"
  },
  "r721": {
   "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/2147479170/946-210-S99-2"
  },
  "r722": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-4"
  },
  "r723": {
   "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/2147479105/946-220-45-7"
  },
  "r724": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478297/946-220-50-1"
  },
  "r725": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478297/946-220-50-3"
  },
  "r726": {
   "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/2147479134/946-220-S99-1"
  },
  "r727": {
   "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/2147479134/946-220-S99-1"
  },
  "r728": {
   "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)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r729": {
   "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/2147479134/946-220-S99-1"
  },
  "r730": {
   "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/2147479134/946-220-S99-1"
  },
  "r731": {
   "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/2147479134/946-220-S99-1"
  },
  "r732": {
   "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/2147479134/946-220-S99-1"
  },
  "r733": {
   "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/2147479134/946-220-S99-1"
  },
  "r734": {
   "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/2147479134/946-220-S99-1"
  },
  "r735": {
   "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(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r736": {
   "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(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r737": {
   "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(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r738": {
   "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/2147479134/946-220-S99-1"
  },
  "r739": {
   "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/2147479134/946-220-S99-1"
  },
  "r740": {
   "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/2147479134/946-220-S99-1"
  },
  "r741": {
   "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/2147479134/946-220-S99-1"
  },
  "r742": {
   "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/2147479134/946-220-S99-1"
  },
  "r743": {
   "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/2147479134/946-220-S99-1"
  },
  "r744": {
   "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/2147479134/946-220-S99-1"
  },
  "r745": {
   "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/2147479134/946-220-S99-1"
  },
  "r746": {
   "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/2147479134/946-220-S99-1"
  },
  "r747": {
   "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/2147479134/946-220-S99-1"
  },
  "r748": {
   "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/2147479134/946-220-S99-1"
  },
  "r749": {
   "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/2147479134/946-220-S99-1"
  },
  "r750": {
   "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/2147479134/946-220-S99-1"
  },
  "r751": {
   "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)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r752": {
   "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/2147479134/946-220-S99-3"
  },
  "r753": {
   "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/2147479134/946-220-S99-3"
  },
  "r754": {
   "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/2147479134/946-220-S99-3"
  },
  "r755": {
   "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/2147479134/946-220-S99-3"
  },
  "r756": {
   "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/2147477968/946-235-50-2"
  },
  "r757": {
   "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/2147477968/946-235-50-2"
  },
  "r758": {
   "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/2147477968/946-235-50-2"
  },
  "r759": {
   "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/2147477968/946-235-50-2"
  },
  "r760": {
   "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/2147477968/946-235-50-2"
  },
  "r761": {
   "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/2147477802/946-310-45-1"
  },
  "r762": {
   "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/2147477271/946-320-S99-1"
  },
  "r763": {
   "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)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r764": {
   "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)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r765": {
   "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/2147477271/946-320-S99-1"
  },
  "r766": {
   "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 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r767": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r768": {
   "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 B)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r769": {
   "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 B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r770": {
   "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 10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r771": {
   "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/2147477271/946-320-S99-1"
  },
  "r772": {
   "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 6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r773": {
   "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 8)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r774": {
   "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 8)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r775": {
   "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 8)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r776": {
   "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 8)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r777": {
   "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 8)(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r778": {
   "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 8)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r779": {
   "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 8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r780": {
   "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 9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r781": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r782": {
   "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/2147477271/946-320-S99-12"
  },
  "r783": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "19",
   "Subparagraph": "(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-19"
  },
  "r784": {
   "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/2147477271/946-320-S99-19"
  },
  "r785": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "19",
   "Subparagraph": "(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-19"
  },
  "r786": {
   "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/2147477271/946-320-S99-2"
  },
  "r787": {
   "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 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-2"
  },
  "r788": {
   "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/2147477271/946-320-S99-2"
  },
  "r789": {
   "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 1)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r790": {
   "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 1)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r791": {
   "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 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r792": {
   "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/2147477271/946-320-S99-3"
  },
  "r793": {
   "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/2147477271/946-320-S99-3"
  },
  "r794": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r795": {
   "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 6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r796": {
   "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/2147477271/946-320-S99-3"
  },
  "r797": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r798": {
   "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 B)(Footnote 10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r799": {
   "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 B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r800": {
   "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 11)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r801": {
   "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 11)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r802": {
   "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 11)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r803": {
   "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 11)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r804": {
   "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 11)(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r805": {
   "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 11)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r806": {
   "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 11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r807": {
   "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 12))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r808": {
   "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 13))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r809": {
   "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/2147477271/946-320-S99-3"
  },
  "r810": {
   "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 9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r811": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r812": {
   "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 D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r813": {
   "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 A)(Footnote 2)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5D"
  },
  "r814": {
   "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 1)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r815": {
   "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 1)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r816": {
   "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 1)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r817": {
   "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 1)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r818": {
   "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 1)(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r819": {
   "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 1)(b)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r820": {
   "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 1)(b)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r821": {
   "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 1)(b)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r822": {
   "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 1)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r823": {
   "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/2147477271/946-320-S99-6"
  },
  "r824": {
   "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 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r825": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r826": {
   "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 B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r827": {
   "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 C)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r828": {
   "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 C)(Footnote 6)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r829": {
   "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 C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r830": {
   "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 D)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r831": {
   "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 D)(Footnote 6)(f))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r832": {
   "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 D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r833": {
   "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 E)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r834": {
   "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 E)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r835": {
   "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 E)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r836": {
   "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 E)(Footnote 6)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r837": {
   "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 E)(Footnote 6)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r838": {
   "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 E)(Footnote 6)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r839": {
   "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 E)(Footnote 6)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r840": {
   "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 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r841": {
   "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 5)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r842": {
   "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/2147477271/946-320-S99-6"
  },
  "r843": {
   "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 8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r844": {
   "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 9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r845": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r846": {
   "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/2147477271/946-320-S99-7"
  },
  "r847": {
   "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/2147477271/946-320-S99-7"
  },
  "r848": {
   "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/2147477271/946-320-S99-7"
  },
  "r849": {
   "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/2147477271/946-320-S99-7"
  },
  "r850": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478448/946-505-50-1"
  },
  "r851": {
   "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/2147478448/946-505-50-2"
  },
  "r852": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478448/946-505-50-2"
  },
  "r853": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478448/946-505-50-2"
  },
  "r854": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478448/946-505-50-2"
  },
  "r855": {
   "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/2147478448/946-505-50-6"
  },
  "r856": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478322/948-310-S50-2"
  },
  "r857": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-29(Column A)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479628/948-310-S99-1"
  },
  "r858": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-29(Column A)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479628/948-310-S99-1"
  },
  "r859": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-29(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479628/948-310-S99-1"
  },
  "r860": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-29(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479628/948-310-S99-1"
  },
  "r861": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "954",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479196/954-310-45-1"
  },
  "r862": {
   "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/2147478785/954-310-50-2"
  },
  "r863": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "954",
   "SubTopic": "440",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478522/954-440-50-1"
  },
  "r864": {
   "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(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r865": {
   "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(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r866": {
   "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(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r867": {
   "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(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r868": {
   "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(Column E)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r869": {
   "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(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r870": {
   "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(Column F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r871": {
   "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(Column G))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r872": {
   "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(Column H))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r873": {
   "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(Column I))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478979/970-360-S99-1"
  },
  "r874": {
   "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/2147477332/976-310-50-1"
  },
  "r875": {
   "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/2147479230/978-310-50-1"
  },
  "r876": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r877": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "SubTopic": "10",
   "Topic": "825",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482881/825-10-55-10"
  },
  "r878": {
   "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"
  },
  "r879": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "13H",
   "Subparagraph": "(b)",
   "SubTopic": "40",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480046/944-40-55-13H"
  },
  "r880": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column A))",
   "SubTopic": "320",
   "Topic": "946",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-7"
  },
  "r881": {
   "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"
  },
  "r882": {
   "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"
  },
  "r883": {
   "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"
  },
  "r884": {
   "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"
  },
  "r885": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476153/220-40-55-11"
  },
  "r886": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476153/220-40-55-14"
  },
  "r887": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476153/220-40-55-21"
  },
  "r888": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476153/220-40-55-4"
  },
  "r889": {
   "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"
  },
  "r890": {
   "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"
  },
  "r891": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482836/275-10-55-18"
  },
  "r892": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482836/275-10-55-6"
  },
  "r893": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r894": {
   "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"
  },
  "r895": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "47",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482785/280-10-55-47"
  },
  "r896": {
   "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"
  },
  "r897": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "47",
   "Subparagraph": "(bb)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482785/280-10-55-47"
  },
  "r898": {
   "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"
  },
  "r899": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "49",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482785/280-10-55-49"
  },
  "r900": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "54",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482785/280-10-55-54"
  },
  "r901": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "54",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482785/280-10-55-54"
  },
  "r902": {
   "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"
  },
  "r903": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479294/326-20-55-12"
  },
  "r904": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479294/326-20-55-12"
  },
  "r905": {
   "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"
  },
  "r906": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482573/350-20-50-2"
  },
  "r907": {
   "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"
  },
  "r908": {
   "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"
  },
  "r909": {
   "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"
  },
  "r910": {
   "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"
  },
  "r911": {
   "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"
  },
  "r912": {
   "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"
  },
  "r913": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "64",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481620/480-10-55-64"
  },
  "r914": {
   "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"
  },
  "r915": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r916": {
   "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"
  },
  "r917": {
   "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"
  },
  "r918": {
   "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"
  },
  "r919": {
   "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"
  },
  "r920": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-5"
  },
  "r921": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-5"
  },
  "r922": {
   "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"
  },
  "r923": {
   "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"
  },
  "r924": {
   "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"
  },
  "r925": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r926": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "231",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482663/740-10-55-231"
  },
  "r927": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-8"
  },
  "r928": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "41",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479303/805-10-55-41"
  },
  "r929": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "43",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479303/805-10-55-43"
  },
  "r930": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "47",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479303/805-10-55-47"
  },
  "r931": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4A"
  },
  "r932": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "182",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480401/815-10-55-182"
  },
  "r933": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "184",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480401/815-10-55-184"
  },
  "r934": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "100",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-100"
  },
  "r935": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "101",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-101"
  },
  "r936": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "102",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-102"
  },
  "r937": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "103",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-103"
  },
  "r938": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r939": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r940": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r941": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r942": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r943": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r944": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482881/825-10-55-12"
  },
  "r945": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482949/835-30-55-8"
  },
  "r946": {
   "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"
  },
  "r947": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481395/860-30-55-4"
  },
  "r948": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-17"
  },
  "r949": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-21"
  },
  "r950": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-29"
  },
  "r951": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-3"
  },
  "r952": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477916/932-235-55-2"
  },
  "r953": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477916/932-235-55-4"
  },
  "r954": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477916/932-235-55-5"
  },
  "r955": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477916/932-235-55-6"
  },
  "r956": {
   "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"
  },
  "r957": {
   "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"
  },
  "r958": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "9C",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480046/944-40-55-9C"
  },
  "r959": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "9C",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480046/944-40-55-9C"
  },
  "r960": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "9E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480046/944-40-55-9E"
  },
  "r961": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "605",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477548/944-605-55-11"
  },
  "r962": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "605",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477548/944-605-55-14"
  },
  "r963": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480078/944-80-55-18"
  },
  "r964": {
   "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/2147478795/946-210-50-1"
  },
  "r965": {
   "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/2147478795/946-210-50-6"
  },
  "r966": {
   "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/2147477439/946-210-55-1"
  },
  "r967": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "230",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479083/946-230-55-1"
  },
  "r968": {
   "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/2147477802/946-310-45-1"
  },
  "r969": {
   "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/2147477271/946-320-S99-1"
  },
  "r970": {
   "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/2147477271/946-320-S99-2"
  },
  "r971": {
   "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/2147477271/946-320-S99-3"
  },
  "r972": {
   "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/2147477271/946-320-S99-6"
  },
  "r973": {
   "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/2147477271/946-320-S99-7"
  },
  "r974": {
   "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/2147477271/946-320-S99-7"
  },
  "r975": {
   "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/2147477271/946-320-S99-7"
  },
  "r976": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "405",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478790/946-405-45-2"
  },
  "r977": {
   "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/2147479168/946-830-55-10"
  },
  "r978": {
   "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/2147479168/946-830-55-11"
  },
  "r979": {
   "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/2147479168/946-830-55-12"
  },
  "r980": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12"
  },
  "r981": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b"
  },
  "r982": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r983": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r984": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-Q",
   "Number": "240",
   "Section": "308",
   "Subsection": "a"
  },
  "r985": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Number": "249",
   "Section": "220",
   "Subsection": "f"
  },
  "r986": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16",
   "Subsection": "J",
   "Paragraph": "a"
  },
  "r987": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1"
  },
  "r988": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r989": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "A"
  },
  "r990": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "B"
  },
  "r991": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "C"
  },
  "r992": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "D"
  },
  "r993": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "E"
  },
  "r994": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r995": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r996": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "2"
  },
  "r997": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Number": "249",
   "Section": "240",
   "Subsection": "f"
  },
  "r998": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a"
  },
  "r999": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r1000": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r1001": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r1002": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r1003": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r1004": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r1005": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r1006": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r1007": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "b"
  },
  "r1008": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form F-3"
  },
  "r1009": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2"
  },
  "r1010": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10"
  },
  "r1011": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a"
  },
  "r1012": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r1013": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r1014": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r1015": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "4"
  },
  "r1016": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "5"
  },
  "r1017": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "6"
  },
  "r1018": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "Instruction 2"
  },
  "r1019": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "b",
   "Subparagraph": "1"
  },
  "r1020": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "b",
   "Subparagraph": "2"
  },
  "r1021": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "c"
  },
  "r1022": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "d"
  },
  "r1023": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2"
  },
  "r1024": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2",
   "Paragraph": "a"
  },
  "r1025": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2",
   "Paragraph": "b"
  },
  "r1026": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2",
   "Paragraph": "c"
  },
  "r1027": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2",
   "Paragraph": "e"
  },
  "r1028": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "3"
  },
  "r1029": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5"
  },
  "r1030": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5",
   "Paragraph": "1"
  },
  "r1031": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5",
   "Paragraph": "2"
  },
  "r1032": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5",
   "Paragraph": "3"
  },
  "r1033": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5",
   "Paragraph": "4"
  },
  "r1034": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1"
  },
  "r1035": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 1"
  },
  "r1036": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "a"
  },
  "r1037": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "a, g, h"
  },
  "r1038": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "f"
  },
  "r1039": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "g"
  },
  "r1040": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "i"
  },
  "r1041": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 11"
  },
  "r1042": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 4"
  },
  "r1043": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 5"
  },
  "r1044": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 6"
  },
  "r1045": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 7",
   "Subparagraph": "a"
  },
  "r1046": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 7",
   "Subparagraph": "b"
  },
  "r1047": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 8"
  },
  "r1048": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 9"
  },
  "r1049": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4"
  },
  "r1050": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "1",
   "Paragraph": "Instruction 2"
  },
  "r1051": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "1",
   "Paragraph": "Instruction 3"
  },
  "r1052": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "1",
   "Paragraph": "Instruction 8"
  },
  "r1053": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3"
  },
  "r1054": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "2"
  },
  "r1055": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "3",
   "Subparagraph": "Instruction 2"
  },
  "r1056": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "5"
  },
  "r1057": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "Instruction 1"
  },
  "r1058": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "Instruction 4"
  },
  "r1059": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "Instruction 5"
  },
  "r1060": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8"
  },
  "r1061": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "2",
   "Paragraph": "b, d"
  },
  "r1062": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "a"
  },
  "r1063": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "b"
  },
  "r1064": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "b",
   "Subparagraph": "1"
  },
  "r1065": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "b",
   "Subparagraph": "2"
  },
  "r1066": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "b",
   "Subparagraph": "3"
  },
  "r1067": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b"
  },
  "r1068": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "4"
  },
  "r1069": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "Instruction 2"
  },
  "r1070": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "Instruction 3"
  },
  "r1071": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "Instruction 4"
  },
  "r1072": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "Instructions 4, 5"
  },
  "r1073": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "c"
  },
  "r1074": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "e"
  },
  "r1075": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-3"
  },
  "r1076": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-4"
  },
  "r1077": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-6"
  },
  "r1078": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a"
  },
  "r1079": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r1080": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r1081": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r1082": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r1083": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r1084": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r1085": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r1086": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r1087": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "b"
  },
  "r1088": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form S-3"
  },
  "r1089": {
   "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"
  },
  "r1090": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Investment Company Act",
   "Number": "270"
  },
  "r1091": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v"
  },
  "r1092": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "1"
  },
  "r1093": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r1094": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r1095": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "B",
   "Clause": "1",
   "Subclause": "ii"
  },
  "r1096": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "i"
  },
  "r1097": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "ii"
  },
  "r1098": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "iii"
  },
  "r1099": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "iv"
  },
  "r1100": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "v"
  },
  "r1101": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "vi"
  },
  "r1102": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iv"
  },
  "r1103": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "vi"
  },
  "r1104": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "3"
  },
  "r1105": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "4"
  },
  "r1106": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "i"
  },
  "r1107": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "ii"
  },
  "r1108": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iii"
  },
  "r1109": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iv"
  },
  "r1110": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6"
  },
  "r1111": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6",
   "Subparagraph": "i"
  },
  "r1112": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1"
  },
  "r1113": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r1114": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "A"
  },
  "r1115": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "B"
  },
  "r1116": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "C"
  },
  "r1117": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "D"
  },
  "r1118": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "E"
  },
  "r1119": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r1120": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r1121": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "2"
  },
  "r1122": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "1"
  },
  "r1123": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2"
  },
  "r1124": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "A"
  },
  "r1125": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "C"
  },
  "r1126": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "D"
  },
  "r1127": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "E"
  },
  "r1128": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "F"
  },
  "r1129": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a"
  },
  "r1130": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "1"
  },
  "r1131": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "A"
  },
  "r1132": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "B"
  },
  "r1133": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "C"
  },
  "r1134": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "D"
  },
  "r1135": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r1136": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Number": "229",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1"
  },
  "r1137": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "A",
   "Number": "229"
  },
  "r1138": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "B",
   "Clause": "1",
   "Number": "229"
  },
  "r1139": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "B",
   "Clause": "1",
   "Subclause": "i",
   "Number": "229"
  },
  "r1140": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "313"
  },
  "r1141": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "405"
  },
  "r1142": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "405"
  },
  "r1143": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "413",
   "Subsection": "b"
  },
  "r1144": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "462",
   "Subsection": "b"
  },
  "r1145": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "462",
   "Subsection": "c"
  },
  "r1146": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "462",
   "Subsection": "d"
  },
  "r1147": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "462",
   "Subsection": "e"
  },
  "r1148": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "486",
   "Subsection": "a"
  },
  "r1149": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "486",
   "Subsection": "b"
  },
  "r1150": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "7A",
   "Section": "B",
   "Subsection": "2"
  },
  "r1151": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Section": "8",
   "Subsection": "c"
  },
  "r1152": {
   "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"
  },
  "r1153": {
   "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"
  },
  "r1154": {
   "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"
  },
  "r1155": {
   "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"
  },
  "r1156": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(a)",
   "SubTopic": "40",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1157": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "2",
   "SubTopic": "740",
   "Topic": "946",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478205/946-740-55-2"
  },
  "r1158": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "a",
   "Publisher": "SEC"
  },
  "r1159": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "b",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r1160": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "b",
   "Subparagraph": "(2)",
   "Publisher": "SEC"
  },
  "r1161": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "b",
   "Subparagraph": "(3)",
   "Publisher": "SEC"
  },
  "r1162": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "c",
   "Subparagraph": "(2)(i)",
   "Publisher": "SEC"
  },
  "r1163": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "c",
   "Subparagraph": "(2)(ii)",
   "Publisher": "SEC"
  },
  "r1164": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "c",
   "Subparagraph": "(2)(iii)",
   "Publisher": "SEC"
  },
  "r1165": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1403",
   "Paragraph": "a",
   "Publisher": "SEC"
  },
  "r1166": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "11",
   "Subsection": "03",
   "Publisher": "SEC"
  },
  "r1167": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "04",
   "Paragraph": "a",
   "Publisher": "SEC"
  },
  "r1168": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "6",
   "Subsection": "04",
   "Paragraph": "12",
   "Subparagraph": "(b)(1)",
   "Publisher": "SEC"
  },
  "r1169": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 5",
   "Section": "Y",
   "Paragraph": "Question 2",
   "Publisher": "SEC"
  },
  "r1170": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX210.5-02(22)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r1171": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1172": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r1173": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1174": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r1175": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)(1)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r1176": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1177": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r1178": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1179": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-12"
  },
  "r1180": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1181": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r1182": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(7)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r1183": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(7)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r1184": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(9)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r1185": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-21"
  },
  "r1186": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-21"
  },
  "r1187": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-21"
  },
  "r1188": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-21"
  },
  "r1189": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-21"
  },
  "r1190": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-21"
  },
  "r1191": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-21"
  },
  "r1192": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-21"
  },
  "r1193": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-21"
  },
  "r1194": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(j)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-21"
  },
  "r1195": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(k)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-21"
  },
  "r1196": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(l)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-21"
  },
  "r1197": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(m)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-21"
  },
  "r1198": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1199": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1200": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1201": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1202": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1203": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1204": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1205": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1206": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(j)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1207": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(k)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1208": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(l)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1209": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(m)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1210": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(n)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1211": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(o)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1212": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(p)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1213": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(q)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1214": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(r)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1215": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(s)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1216": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(t)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1217": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(u)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-22"
  },
  "r1218": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-30"
  },
  "r1219": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "31",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-31"
  },
  "r1220": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-32"
  },
  "r1221": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "33",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-33"
  },
  "r1222": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-6"
  },
  "r1223": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-6"
  },
  "r1224": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-6"
  },
  "r1225": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-6"
  },
  "r1226": {
   "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"
  },
  "r1227": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-28"
  },
  "r1228": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482913/230-10-50-2A"
  },
  "r1229": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1230": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480738/235-10-S50-1"
  },
  "r1231": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480738/235-10-S50-4"
  },
  "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)(i))",
   "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(g)(1)(ii))",
   "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": "1",
   "Subparagraph": "(SX 210.4-08(h)(1)(Note 1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "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": "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"
  },
  "r1239": {
   "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"
  },
  "r1240": {
   "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"
  },
  "r1241": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-6"
  },
  "r1242": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "55",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-55"
  },
  "r1243": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482662/260-10-50-1"
  },
  "r1244": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "270",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482964/270-10-50-1"
  },
  "r1245": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-18"
  },
  "r1246": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-18"
  },
  "r1247": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-18"
  },
  "r1248": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-18"
  },
  "r1249": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-18"
  },
  "r1250": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-18"
  },
  "r1251": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1252": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1253": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(ee)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-32"
  },
  "r1254": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1255": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481990/310-10-45-13"
  },
  "r1256": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1257": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1258": {
   "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"
  },
  "r1259": {
   "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"
  },
  "r1260": {
   "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"
  },
  "r1261": {
   "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"
  },
  "r1262": {
   "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"
  },
  "r1263": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-5"
  },
  "r1264": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-2"
  },
  "r1265": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-2"
  },
  "r1266": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "405",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/405-30/tableOfContent"
  },
  "r1267": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "405",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477092/405-40-50-1"
  },
  "r1268": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "405",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477092/405-40-50-1"
  },
  "r1269": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "405",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477092/405-40-50-1"
  },
  "r1270": {
   "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"
  },
  "r1271": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/450/tableOfContent"
  },
  "r1272": {
   "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"
  },
  "r1273": {
   "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"
  },
  "r1274": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481544/470-10-50-6"
  },
  "r1275": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480190/470-10-S50-1"
  },
  "r1276": {
   "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"
  },
  "r1277": {
   "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"
  },
  "r1278": {
   "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"
  },
  "r1279": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1280": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1281": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-15"
  },
  "r1282": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1283": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "505",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481520/505-30-50-4"
  },
  "r1284": {
   "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"
  },
  "r1285": {
   "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"
  },
  "r1286": {
   "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"
  },
  "r1287": {
   "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"
  },
  "r1288": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-5"
  },
  "r1289": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "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": "(a)(1)",
   "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": "(a)(2)",
   "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": "(a)(3)",
   "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)(i)",
   "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)(ii)",
   "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)(iii)",
   "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)(1)(iv)",
   "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)(1)(iv)(01)",
   "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)(1)(iv)(02)",
   "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)(1)(iv)(03)",
   "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)(1)(iv)(04)",
   "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)",
   "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": "(c)(2)(i)",
   "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": "(c)(2)(ii)",
   "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": "(c)(2)(iii)",
   "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": "(c)(2)(iii)(01)",
   "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": "(c)(2)(iii)(02)",
   "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": "(c)(2)(iii)(03)",
   "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": "(d)(1)",
   "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": "(d)(2)",
   "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": "(e)(1)",
   "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": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1312": {
   "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"
  },
  "r1313": {
   "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"
  },
  "r1314": {
   "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"
  },
  "r1315": {
   "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"
  },
  "r1316": {
   "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"
  },
  "r1317": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1318": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-4"
  },
  "r1319": {
   "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"
  },
  "r1320": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482685/740-10-50-22"
  },
  "r1321": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "23",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482685/740-10-50-23"
  },
  "r1322": {
   "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"
  },
  "r1323": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1324": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r1325": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-3"
  },
  "r1326": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-7A"
  },
  "r1327": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-8"
  },
  "r1328": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-8"
  },
  "r1329": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-8"
  },
  "r1330": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480682/815-20-25-6A"
  },
  "r1331": {
   "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"
  },
  "r1332": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1333": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1334": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1335": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1336": {
   "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"
  },
  "r1337": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1338": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1339": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2E"
  },
  "r1340": {
   "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"
  },
  "r1341": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6A"
  },
  "r1342": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-1"
  },
  "r1343": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1344": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-11"
  },
  "r1345": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-13"
  },
  "r1346": {
   "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"
  },
  "r1347": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482925/835-30-45-1A"
  },
  "r1348": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482925/835-30-45-2"
  },
  "r1349": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482925/835-30-45-3"
  },
  "r1350": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1351": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1352": {
   "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"
  },
  "r1353": {
   "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"
  },
  "r1354": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483326/850-10-50-2"
  },
  "r1355": {
   "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"
  },
  "r1356": {
   "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"
  },
  "r1357": {
   "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"
  },
  "r1358": {
   "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"
  },
  "r1359": {
   "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"
  },
  "r1360": {
   "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"
  },
  "r1361": {
   "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"
  },
  "r1362": {
   "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"
  },
  "r1363": {
   "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"
  },
  "r1364": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "942",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477314/942-235-S99-2"
  },
  "r1365": {
   "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)(15)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r1366": {
   "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/2147478777/944-210-S99-1"
  },
  "r1367": {
   "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)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r1368": {
   "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/2147478777/944-210-S99-1"
  },
  "r1369": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(2)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r1370": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r1371": {
   "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"
  },
  "r1372": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477363/944-310-50-3"
  },
  "r1373": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-4B"
  },
  "r1374": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-4B"
  },
  "r1375": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-4C"
  },
  "r1376": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-4D"
  },
  "r1377": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4G",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-4G"
  },
  "r1378": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-5"
  },
  "r1379": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-5"
  },
  "r1380": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-5"
  },
  "r1381": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-5"
  },
  "r1382": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-6"
  },
  "r1383": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-6"
  },
  "r1384": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-6"
  },
  "r1385": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-6"
  },
  "r1386": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-6"
  },
  "r1387": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-6"
  },
  "r1388": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-6"
  },
  "r1389": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-6"
  },
  "r1390": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-7A"
  },
  "r1391": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-7A"
  },
  "r1392": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-7A"
  },
  "r1393": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-7A"
  },
  "r1394": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-7A"
  },
  "r1395": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1396": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-7B"
  },
  "r1397": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-7B"
  },
  "r1398": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7B",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-7B"
  },
  "r1399": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480109/944-80-50-2"
  },
  "r1400": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480109/944-80-50-2"
  },
  "r1401": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(h)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479886/946-10-S99-3"
  },
  "r1402": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-15"
  },
  "r1403": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "16",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-16"
  },
  "r1404": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1405": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-7"
  },
  "r1406": {
   "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/2147478009/946-205-45-4"
  },
  "r1407": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-10"
  },
  "r1408": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-11"
  },
  "r1409": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-18"
  },
  "r1410": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "27",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-27"
  },
  "r1411": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r1412": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r1413": {
   "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/2147478795/946-210-50-6"
  },
  "r1414": {
   "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(12)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r1415": {
   "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(12)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r1416": {
   "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/2147479170/946-210-S99-1"
  },
  "r1417": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-3"
  },
  "r1418": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-3"
  },
  "r1419": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-3"
  },
  "r1420": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-3"
  },
  "r1421": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-3"
  },
  "r1422": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-6"
  },
  "r1423": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(1)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r1424": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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/2147479134/946-220-S99-1"
  },
  "r1425": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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/2147479134/946-220-S99-1"
  },
  "r1426": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r1427": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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/2147479134/946-220-S99-1"
  },
  "r1428": {
   "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/2147479134/946-220-S99-3"
  },
  "r1429": {
   "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/2147479134/946-220-S99-3"
  },
  "r1430": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "230",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477867/946-230-45-1"
  },
  "r1431": {
   "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)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r1432": {
   "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/2147477271/946-320-S99-1"
  },
  "r1433": {
   "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 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r1434": {
   "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 C)(Footnote 5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r1435": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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/2147477271/946-320-S99-2"
  },
  "r1436": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-2"
  },
  "r1437": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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/2147477271/946-320-S99-2"
  },
  "r1438": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 1)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r1439": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r1440": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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/2147477271/946-320-S99-3"
  },
  "r1441": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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/2147477271/946-320-S99-6"
  },
  "r1442": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r1443": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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/2147477271/946-320-S99-6"
  },
  "r1444": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "37",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477346/946-830-45-37"
  }
 }
}
