{
 "version": "2.2",
 "instance": {
  "nymt-20240630.htm": {
   "nsprefix": "nymt",
   "nsuri": "http://nymtrust.com/20240630",
   "dts": {
    "inline": {
     "local": [
      "nymt-20240630.htm"
     ]
    },
    "schema": {
     "local": [
      "nymt-20240630.xsd"
     ],
     "remote": [
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/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/2022-03-31/types.xsd",
      "https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd",
      "https://xbrl.fasb.org/srt/2024/elts/srt-roles-2024.xsd",
      "https://xbrl.fasb.org/srt/2024/elts/srt-types-2024.xsd",
      "https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd",
      "https://xbrl.fasb.org/us-gaap/2024/elts/us-roles-2024.xsd",
      "https://xbrl.fasb.org/us-gaap/2024/elts/us-types-2024.xsd",
      "https://xbrl.sec.gov/country/2024/country-2024.xsd",
      "https://xbrl.sec.gov/dei/2024/dei-2024.xsd",
      "https://xbrl.sec.gov/stpr/2024/stpr-2024.xsd"
     ]
    },
    "calculationLink": {
     "local": [
      "nymt-20240630_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "nymt-20240630_def.xml"
     ]
    },
    "labelLink": {
     "local": [
      "nymt-20240630_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "nymt-20240630_pre.xml"
     ]
    }
   },
   "keyStandard": 404,
   "keyCustom": 153,
   "axisStandard": 44,
   "axisCustom": 1,
   "memberStandard": 80,
   "memberCustom": 110,
   "hidden": {
    "total": 27,
    "http://fasb.org/us-gaap/2024": 21,
    "http://xbrl.sec.gov/dei/2024": 5,
    "http://nymtrust.com/20240630": 1
   },
   "contextCount": 1102,
   "entityCount": 1,
   "segmentCount": 221,
   "elementCount": 956,
   "unitCount": 13,
   "baseTaxonomies": {
    "http://fasb.org/us-gaap/2024": 2455,
    "http://xbrl.sec.gov/dei/2024": 44,
    "http://fasb.org/srt/2024": 18
   },
   "report": {
    "R1": {
     "role": "http://nymtrust.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": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R2": {
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
     "longName": "9952151 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS",
     "shortName": "CONDENSED CONSOLIDATED BALANCE SHEETS",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "2",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "nymt:DebtSecuritiesAvailableForSaleExcludingAccruedInterestIncludingFairValueOption",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:DebtSecuritiesAvailableForSaleWeightedAverageLivesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-11",
      "name": "nymt:OperatingRealEstateNet",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R3": {
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
     "longName": "9952152 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS - (Parenthetical)",
     "shortName": "CONDENSED CONSOLIDATED BALANCE SHEETS - (Parenthetical)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "3",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:UnsecuredDebt",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-27",
      "name": "us-gaap:PreferredStockParOrStatedValuePerShare",
      "unitRef": "usdPerShare",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "us-gaap:PreferredStockParOrStatedValuePerShare",
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R4": {
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
     "longName": "9952153 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "4",
     "firstAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:InterestAndDividendIncomeOperating",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-30",
      "name": "nymt:RentalIncomeExcludingOtherRealEstateIncome",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R5": {
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS",
     "longName": "9952154 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE LOSS",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE LOSS",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "5",
     "firstAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:NetIncomeLossAvailableToCommonStockholdersBasic",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R6": {
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
     "longName": "9952155 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "6",
     "firstAnchor": {
      "contextRef": "c-107",
      "name": "us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-107",
      "name": "us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R7": {
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITYParenthetical",
     "longName": "9952156 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Parenthetical)",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Parenthetical)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "7",
     "firstAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:NetIncomeLossAttributableToRedeemableNoncontrollingInterest",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:NetIncomeLossAttributableToRedeemableNoncontrollingInterest",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R8": {
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
     "longName": "9952157 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "8",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ProfitLoss",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ProfitLoss",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R9": {
     "role": "http://nymtrust.com/role/Organization",
     "longName": "9952158 - Disclosure - Organization",
     "shortName": "Organization",
     "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": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R10": {
     "role": "http://nymtrust.com/role/SummaryofSignificantAccountingPolicies",
     "longName": "9952159 - 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": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R11": {
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValue",
     "longName": "9952160 - Disclosure - Residential Loans, at Fair Value",
     "shortName": "Residential Loans, at Fair Value",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "11",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "nymt:ResidentialMortgageLoansatFairValueTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "nymt:ResidentialMortgageLoansatFairValueTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R12": {
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValue",
     "longName": "9952161 - Disclosure - Investment Securities Available For Sale, at Fair Value",
     "shortName": "Investment Securities Available For Sale, at Fair Value",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "12",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R13": {
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValue",
     "longName": "9952162 - Disclosure - Multi-family Loans, at Fair Value",
     "shortName": "Multi-family Loans, at Fair Value",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "13",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "nymt:MultiFamilyLoansTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "nymt:MultiFamilyLoansTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R14": {
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValue",
     "longName": "9952163 - Disclosure - Equity Investments, at Fair Value",
     "shortName": "Equity Investments, at Fair Value",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "14",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R15": {
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIE",
     "longName": "9952164 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE)",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "15",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "nymt:UseOfSpecialPurposeEntitiesAndVariableInterestEntitiesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "nymt:UseOfSpecialPurposeEntitiesAndVariableInterestEntitiesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R16": {
     "role": "http://nymtrust.com/role/RealEstateNet",
     "longName": "9952165 - Disclosure - Real Estate, Net",
     "shortName": "Real Estate, Net",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "16",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:RealEstateDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:RealEstateDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R17": {
     "role": "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSale",
     "longName": "9952166 - Disclosure - Assets and Liabilities of Disposal Group Held for Sale",
     "shortName": "Assets and Liabilities of Disposal Group Held for Sale",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "17",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R18": {
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivities",
     "longName": "9952167 - Disclosure - Derivative Instruments and Hedging Activities",
     "shortName": "Derivative Instruments and Hedging Activities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "18",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R19": {
     "role": "http://nymtrust.com/role/OtherAssetsandOtherLiabilities",
     "longName": "9952168 - Disclosure - Other Assets and Other Liabilities",
     "shortName": "Other Assets and Other Liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "19",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:SupplementalBalanceSheetDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:SupplementalBalanceSheetDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R20": {
     "role": "http://nymtrust.com/role/RepurchaseAgreements",
     "longName": "9952169 - Disclosure - Repurchase Agreements",
     "shortName": "Repurchase Agreements",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "20",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R21": {
     "role": "http://nymtrust.com/role/CollateralizedDebtObligations",
     "longName": "9952170 - Disclosure - Collateralized Debt Obligations",
     "shortName": "Collateralized Debt Obligations",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "21",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:LongTermDebtTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:LongTermDebtTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R22": {
     "role": "http://nymtrust.com/role/Debt",
     "longName": "9952171 - Disclosure - Debt",
     "shortName": "Debt",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "22",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R23": {
     "role": "http://nymtrust.com/role/CommitmentsandContingencies",
     "longName": "9952172 - Disclosure - Commitments and Contingencies",
     "shortName": "Commitments and Contingencies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "23",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R24": {
     "role": "http://nymtrust.com/role/FairValueofFinancialInstruments",
     "longName": "9952173 - Disclosure - Fair Value of Financial Instruments",
     "shortName": "Fair Value of Financial Instruments",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "24",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R25": {
     "role": "http://nymtrust.com/role/StockholdersEquity",
     "longName": "9952174 - Disclosure - Stockholders' Equity",
     "shortName": "Stockholders' Equity",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "25",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R26": {
     "role": "http://nymtrust.com/role/LossPerCommonShare",
     "longName": "9952175 - Disclosure - Loss Per Common Share",
     "shortName": "Loss Per Common Share",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "26",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R27": {
     "role": "http://nymtrust.com/role/StockBasedCompensation",
     "longName": "9952176 - Disclosure - Stock Based Compensation",
     "shortName": "Stock Based Compensation",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "27",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R28": {
     "role": "http://nymtrust.com/role/IncomeTaxes",
     "longName": "9952177 - Disclosure - Income Taxes",
     "shortName": "Income Taxes",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "28",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R29": {
     "role": "http://nymtrust.com/role/NetInterestIncome",
     "longName": "9952178 - Disclosure - Net Interest Income",
     "shortName": "Net Interest Income",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "29",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R30": {
     "role": "http://nymtrust.com/role/OtherIncomeLoss",
     "longName": "9952179 - Disclosure - Other Income (Loss)",
     "shortName": "Other Income (Loss)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "30",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:OtherNonoperatingIncomeAndExpenseTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:OtherNonoperatingIncomeAndExpenseTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R31": {
     "role": "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies",
     "longName": "9954471 - Disclosure - Summary of Significant Accounting Policies (Policies)",
     "shortName": "Summary of Significant Accounting Policies (Policies)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "policies",
     "menuCat": "Policies",
     "order": "31",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R32": {
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueTables",
     "longName": "9954472 - Disclosure - Residential Loans, at Fair Value (Tables)",
     "shortName": "Residential Loans, at Fair Value (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "32",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "nymt:ResidentialMortgageLoansatFairValueTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "nymt:ResidentialMortgageLoansatFairValueTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R33": {
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueTables",
     "longName": "9954473 - Disclosure - Investment Securities Available For Sale, at Fair Value (Tables)",
     "shortName": "Investment Securities Available For Sale, at Fair Value (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "33",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R34": {
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValueTables",
     "longName": "9954474 - Disclosure - Multi-family Loans, at Fair Value (Tables)",
     "shortName": "Multi-family Loans, at Fair Value (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "34",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfVariableInterestEntitiesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "nymt:PreferredEquityandMezzanineLoansFairValueComparedtoUnpaidPrincipalTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R35": {
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValuesTables",
     "longName": "9954475 - Disclosure - Equity Investments, at Fair Values (Tables)",
     "shortName": "Equity Investments, at Fair Values (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "35",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:EquityMethodInvestmentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:EquityMethodInvestmentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R36": {
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIETables",
     "longName": "9954476 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) (Tables)",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "36",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfVariableInterestEntitiesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:RedeemableNoncontrollingInterestTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R37": {
     "role": "http://nymtrust.com/role/RealEstateNetTables",
     "longName": "9954477 - Disclosure - Real Estate, Net (Tables)",
     "shortName": "Real Estate, Net (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "37",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfRealEstatePropertiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:RealEstateDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfRealEstatePropertiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:RealEstateDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R38": {
     "role": "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleTables",
     "longName": "9954478 - Disclosure - Assets and Liabilities of Disposal Group Held for Sale (Tables)",
     "shortName": "Assets and Liabilities of Disposal Group Held for Sale (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "38",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R39": {
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesTables",
     "longName": "9954479 - Disclosure - Derivative Instruments and Hedging Activities (Tables)",
     "shortName": "Derivative Instruments and Hedging Activities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "39",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R40": {
     "role": "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesTables",
     "longName": "9954480 - Disclosure - Other Assets and Other Liabilities (Tables)",
     "shortName": "Other Assets and Other Liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "40",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfOtherAssetsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:SupplementalBalanceSheetDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfOtherAssetsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:SupplementalBalanceSheetDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R41": {
     "role": "http://nymtrust.com/role/RepurchaseAgreementsTables",
     "longName": "9954481 - Disclosure - Repurchase Agreements (Tables)",
     "shortName": "Repurchase Agreements (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "41",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfRepurchaseAgreements",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfRepurchaseAgreements",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R42": {
     "role": "http://nymtrust.com/role/CollateralizedDebtObligationsTables",
     "longName": "9954482 - Disclosure - Collateralized Debt Obligations (Tables)",
     "shortName": "Collateralized Debt Obligations (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "42",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:LongTermDebtTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R43": {
     "role": "http://nymtrust.com/role/DebtTables",
     "longName": "9954483 - Disclosure - Debt (Tables)",
     "shortName": "Debt (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "43",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:LongTermDebtTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DebtInstrumentRedemptionTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R44": {
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables",
     "longName": "9954484 - Disclosure - Fair Value of Financial Instruments (Tables)",
     "shortName": "Fair Value of Financial Instruments (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "44",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R45": {
     "role": "http://nymtrust.com/role/StockholdersEquityTables",
     "longName": "9954485 - Disclosure - Stockholders' Equity (Tables)",
     "shortName": "Stockholders' Equity (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "45",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfStockholdersEquityTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfStockholdersEquityTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R46": {
     "role": "http://nymtrust.com/role/LossPerCommonShareTables",
     "longName": "9954486 - Disclosure - Loss Per Common Share (Tables)",
     "shortName": "Loss Per Common Share (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "46",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R47": {
     "role": "http://nymtrust.com/role/StockBasedCompensationTables",
     "longName": "9954487 - Disclosure - Stock Based Compensation (Tables)",
     "shortName": "Stock Based Compensation (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "47",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfNonvestedShareActivityTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfNonvestedShareActivityTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R48": {
     "role": "http://nymtrust.com/role/IncomeTaxesTables",
     "longName": "9954488 - Disclosure - Income Taxes (Tables)",
     "shortName": "Income Taxes (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "48",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R49": {
     "role": "http://nymtrust.com/role/NetInterestIncomeTables",
     "longName": "9954489 - Disclosure - Net Interest Income (Tables)",
     "shortName": "Net Interest Income (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "49",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R50": {
     "role": "http://nymtrust.com/role/OtherIncomeLossTables",
     "longName": "9954490 - Disclosure - Other Income (Loss) (Tables)",
     "shortName": "Other Income (Loss) (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "50",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfOtherNonoperatingIncomeExpenseTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:OtherNonoperatingIncomeAndExpenseTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ScheduleOfOtherNonoperatingIncomeExpenseTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:OtherNonoperatingIncomeAndExpenseTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R51": {
     "role": "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesDetails",
     "longName": "9954491 - Disclosure - Summary of Significant Accounting Policies (Details)",
     "shortName": "Summary of Significant Accounting Policies (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "51",
     "firstAnchor": {
      "contextRef": "c-603",
      "name": "us-gaap:DebtInstrumentInterestRateStatedPercentage",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:DebtDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R52": {
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansHeldinSecuritizationTrustsNetDetails",
     "longName": "9954492 - Disclosure - Residential Loans, at Fair Value - Schedule of Residential Mortgage Loans Held in Securitization Trusts, Net (Details)",
     "shortName": "Residential Loans, at Fair Value - Schedule of Residential Mortgage Loans Held in Securitization Trusts, Net (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "52",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "srt:MortgageLoansOnRealEstateFaceAmountOfMortgages",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "nymt:ResidentialMortgageLoansatFairValueTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-11",
      "name": "srt:MortgageLoansOnRealEstateFaceAmountOfMortgages",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "nymt:ResidentialMortgageLoansatFairValueTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R53": {
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofComponentsofNetGainLossonResidentialMortgageLoansatFairValueDetails",
     "longName": "9954493 - Disclosure - Residential Loans, at Fair Value - Schedule of Components of Net Gain (Loss) on Residential Mortgage Loans at Fair Value (Details)",
     "shortName": "Residential Loans, at Fair Value - Schedule of Components of Net Gain (Loss) on Residential Mortgage Loans at Fair Value (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "53",
     "firstAnchor": {
      "contextRef": "c-134",
      "name": "nymt:UnrealizedGainLossOnRealEstateMortgageLoansNet",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ComponentsOfNetGainsLossesOnResidentialMortgageLoansAtFairValueTableTextBlock",
       "nymt:ResidentialMortgageLoansatFairValueTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-134",
      "name": "nymt:UnrealizedGainLossOnRealEstateMortgageLoansNet",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ComponentsOfNetGainsLossesOnResidentialMortgageLoansAtFairValueTableTextBlock",
       "nymt:ResidentialMortgageLoansatFairValueTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R54": {
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
     "longName": "9954494 - Disclosure - Residential Loans, at Fair Value - Narrative (Details)",
     "shortName": "Residential Loans, at Fair Value - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "54",
     "firstAnchor": {
      "contextRef": "c-30",
      "name": "nymt:NetRealizedGainLossOnPayoffOfMortgageLoans",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-30",
      "name": "nymt:NetRealizedGainLossOnPayoffOfMortgageLoans",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R55": {
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails",
     "longName": "9954495 - Disclosure - Residential Loans, at Fair Value - Schedule of Geographic Concentration of Credit Risk (Details)",
     "shortName": "Residential Loans, at Fair Value - Schedule of Geographic Concentration of Credit Risk (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "55",
     "firstAnchor": {
      "contextRef": "c-145",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:SchedulesOfConcentrationOfRiskByRiskFactorTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-145",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:SchedulesOfConcentrationOfRiskByRiskFactorTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R56": {
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalDetails",
     "longName": "9954496 - Disclosure - Residential Loans, at Fair Value - Schedule of Residential Mortgage Loans, Fair Value Compared to Unpaid Principal (Details)",
     "shortName": "Residential Loans, at Fair Value - Schedule of Residential Mortgage Loans, Fair Value Compared to Unpaid Principal (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "56",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:MortgageLoansOnRealEstate",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "nymt:ResidentialMortgageLoansatFairValueTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-187",
      "name": "us-gaap:MortgageLoansOnRealEstate",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R57": {
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
     "longName": "9954497 - Disclosure - Investment Securities Available For Sale, at Fair Value - Schedule of Investment Securities Available for Sale (Details)",
     "shortName": "Investment Securities Available For Sale, at Fair Value - Schedule of Investment Securities Available for Sale (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "57",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "nymt:DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-11",
      "name": "nymt:DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R58": {
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueNarrativeDetails",
     "longName": "9954498 - Disclosure - Investment Securities Available For Sale, at Fair Value - Narrative (Details)",
     "shortName": "Investment Securities Available For Sale, at Fair Value - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "58",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleAccruedInterestAfterAllowanceForCreditLoss",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-12",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleAccruedInterestAfterAllowanceForCreditLoss",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R59": {
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofRealizedGainorLossActivityDetails",
     "longName": "9954499 - Disclosure - Investment Securities Available For Sale, at Fair Value - Schedule of Realized Gain or Loss Activity (Details)",
     "shortName": "Investment Securities Available For Sale, at Fair Value - Schedule of Realized Gain or Loss Activity (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "59",
     "firstAnchor": {
      "contextRef": "c-31",
      "name": "nymt:ProceedsIncludingReceivableForUnsettledTradesFromSaleofDebtSecuritiesAvailableforsale",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleofInvestmentsSecuritiesSoldTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-31",
      "name": "nymt:ProceedsIncludingReceivableForUnsettledTradesFromSaleofDebtSecuritiesAvailableforsale",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleofInvestmentsSecuritiesSoldTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R60": {
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofWeightedAverageLivesofInvestmentSecuritiesDetails",
     "longName": "9954500 - Disclosure - Investment Securities Available For Sale, at Fair Value - Schedule of Weighted Average Lives of Investment Securities (Details)",
     "shortName": "Investment Securities Available For Sale, at Fair Value - Schedule of Weighted Average Lives of Investment Securities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "60",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "nymt:DebtSecuritiesTradingAvailableForSaleDebtMaturitiesZeroThroughYearFiveFairValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:DebtSecuritiesAvailableForSaleWeightedAverageLivesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-11",
      "name": "nymt:DebtSecuritiesTradingAvailableForSaleDebtMaturitiesZeroThroughYearFiveFairValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:DebtSecuritiesAvailableForSaleWeightedAverageLivesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R61": {
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails",
     "longName": "9954501 - Disclosure - Investment Securities Available For Sale, at Fair Value - Schedule of Investment Securities Available for Sale in Unrealized Loss Position (Details)",
     "shortName": "Investment Securities Available For Sale, at Fair Value - Schedule of Investment Securities Available for Sale in Unrealized Loss Position (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "61",
     "firstAnchor": {
      "contextRef": "c-12",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:UnrealizedGainLossOnInvestmentsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-12",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:UnrealizedGainLossOnInvestmentsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R62": {
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofPreferredEquityandMezzanineLoanInvestmentsDetails",
     "longName": "9954502 - Disclosure - Multi-family Loans, at Fair Value - Schedule of Preferred Equity and Mezzanine Loan Investments (Details)",
     "shortName": "Multi-family Loans, at Fair Value - Schedule of Preferred Equity and Mezzanine Loan Investments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "62",
     "firstAnchor": {
      "contextRef": "c-224",
      "name": "us-gaap:OtherInvestments",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-224",
      "name": "us-gaap:OtherInvestments",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R63": {
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails",
     "longName": "9954503 - Disclosure - Multi-family Loans, at Fair Value - Narrative (Details)",
     "shortName": "Multi-family Loans, at Fair Value - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "63",
     "firstAnchor": {
      "contextRef": "c-30",
      "name": "nymt:LoanPremiumsLoansAndPreferredEquityAndMezzanineLoansEarlyRedemption",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfOtherNonoperatingIncomeExpenseTableTextBlock",
       "us-gaap:OtherNonoperatingIncomeAndExpenseTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-226",
      "name": "nymt:UnrealizedGainLossLoansandPreferredEquityandMezzanineLoans",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-2",
      "ancestors": [
       "span",
       "div",
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R64": {
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofUnpaidPrincipalBalanceDetails",
     "longName": "9954504 - Disclosure - Multi-family Loans, at Fair Value - Schedule of Unpaid Principal Balance (Details)",
     "shortName": "Multi-family Loans, at Fair Value - Schedule of Unpaid Principal Balance (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "64",
     "firstAnchor": {
      "contextRef": "c-230",
      "name": "nymt:EquityandMezzanineLoansFairValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:PreferredEquityandMezzanineLoansFairValueComparedtoUnpaidPrincipalTableTextBlock",
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-230",
      "name": "nymt:EquityandMezzanineLoansFairValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:PreferredEquityandMezzanineLoansFairValueComparedtoUnpaidPrincipalTableTextBlock",
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R65": {
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails",
     "longName": "9954505 - Disclosure - Multi-family Loans, at Fair Value - Schedule of Geographic Concentration Risk (Details)",
     "shortName": "Multi-family Loans, at Fair Value - Schedule of Geographic Concentration Risk (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "65",
     "firstAnchor": {
      "contextRef": "c-232",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-232",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "nymt:MultiFamilyLoansTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R66": {
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
     "longName": "9954506 - Disclosure - Equity Investments, at Fair Value - Schedule of Equity Investments Accounted under the Equity Method (Details)",
     "shortName": "Equity Investments, at Fair Value - Schedule of Equity Investments Accounted under the Equity Method (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "66",
     "firstAnchor": {
      "contextRef": "c-262",
      "name": "us-gaap:EquityMethodInvestmentsFairValueDisclosure",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:EquityMethodInvestmentsTextBlock",
       "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-263",
      "name": "us-gaap:EquityMethodInvestmentsFairValueDisclosure",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:EquityMethodInvestmentsTextBlock",
       "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R67": {
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
     "longName": "9954507 - Disclosure - Equity Investments, at Fair Value - Narrative (Details)",
     "shortName": "Equity Investments, at Fair Value - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "67",
     "firstAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:IncomeLossFromEquityMethodInvestments",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-280",
      "name": "us-gaap:IncomeLossFromEquityMethodInvestments",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R68": {
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
     "longName": "9954508 - Disclosure - Equity Investments, at Fair Value - Schedule of Income From Multi-Family Preferred Equity Ownership Interests (Details)",
     "shortName": "Equity Investments, at Fair Value - Schedule of Income From Multi-Family Preferred Equity Ownership Interests (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "68",
     "firstAnchor": {
      "contextRef": "c-328",
      "name": "us-gaap:FairValueOptionChangesInFairValueGainLoss1",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-284",
      "name": "us-gaap:FairValueOptionChangesInFairValueGainLoss1",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R69": {
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
     "longName": "9954509 - Disclosure - Equity Investments, at Fair Value - Schedule of Income (Loss) From Investments (Details)",
     "shortName": "Equity Investments, at Fair Value - Schedule of Income (Loss) From Investments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "69",
     "firstAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:UnrealizedGainLossOnInvestments",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-340",
      "name": "us-gaap:FairValueOptionChangesInFairValueGainLoss1",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R70": {
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
     "longName": "9954510 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Narrative (Details)",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "70",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "nymt:NumberOfSecuritizationsCompleted",
      "unitRef": "securitization",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "nymt:NumberOfSecuritizationsCompleted",
      "unitRef": "securitization",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R71": {
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedVIEsDetails",
     "longName": "9954511 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Schedule of Assets and Liabilities of Consolidated VIEs (Details)",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Schedule of Assets and Liabilities of Consolidated VIEs (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "71",
     "firstAnchor": {
      "contextRef": "c-28",
      "name": "nymt:FinancialInstrumentsOwnedResidentialLoansAtFairValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-28",
      "name": "nymt:VariableInterestEntityPrimaryBeneficiaryMaximumLossGainExposureAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R72": {
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails",
     "longName": "9954512 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Schedule of Assets and Liabilities of Consolidated Real Estate VIE's (Details)",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Schedule of Assets and Liabilities of Consolidated Real Estate VIE's (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "72",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-365",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R73": {
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails",
     "longName": "9954513 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Schedule of Statement of Operations of Variable Interest Entities (Details)",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Schedule of Statement of Operations of Variable Interest Entities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "73",
     "firstAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:InterestExpenseOperating",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-384",
      "name": "us-gaap:InterestAndOtherIncome",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R74": {
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
     "longName": "9954514 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Schedule of Redeemable Noncontrolling Interest in Consolidated VIEs (Details)",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Schedule of Redeemable Noncontrolling Interest in Consolidated VIEs (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "74",
     "firstAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:NetIncomeLossAttributableToNoncontrollingInterest",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-402",
      "name": "nymt:RedeemableNonControllingInterestWeightedAverageCapitalizationRate",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "3",
      "ancestors": [
       "span",
       "div",
       "us-gaap:RedeemableNoncontrollingInterestTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R75": {
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails",
     "longName": "9954515 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Schedule of Classification and Carrying Value of Unconsolidated VIEs (Details)",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Schedule of Classification and Carrying Value of Unconsolidated VIEs (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "75",
     "firstAnchor": {
      "contextRef": "c-420",
      "name": "us-gaap:Investments",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-420",
      "name": "us-gaap:Investments",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R76": {
     "role": "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails",
     "longName": "9954516 - Disclosure - Real Estate, Net - Schedule of Real Estate Investment (Details)",
     "shortName": "Real Estate, Net - Schedule of Real Estate Investment (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "76",
     "firstAnchor": {
      "contextRef": "c-28",
      "name": "us-gaap:Land",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRealEstatePropertiesTableTextBlock",
       "us-gaap:RealEstateDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-28",
      "name": "us-gaap:Land",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRealEstatePropertiesTableTextBlock",
       "us-gaap:RealEstateDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R77": {
     "role": "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
     "longName": "9954517 - Disclosure - Real Estate, Net - Narrative (Details)",
     "shortName": "Real Estate, Net - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "77",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DisposalGroupNotDiscontinuedOperationGainLossOnDisposal",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "us-gaap:RealEstateDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DisposalGroupNotDiscontinuedOperationGainLossOnDisposal",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "us-gaap:RealEstateDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R78": {
     "role": "http://nymtrust.com/role/RealEstateNetScheduleofLeaseIntangiblesDetails",
     "longName": "9954518 - Disclosure - Real Estate, Net - Schedule of Lease Intangibles (Details)",
     "shortName": "Real Estate, Net - Schedule of Lease Intangibles (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "78",
     "firstAnchor": {
      "contextRef": "c-440",
      "name": "us-gaap:FiniteLivedIntangibleAssetsGross",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-440",
      "name": "us-gaap:FiniteLivedIntangibleAssetsGross",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R79": {
     "role": "http://nymtrust.com/role/RealEstateNetScheduleofComponentsofIncomeFromRealEstateAndExpensesDetails",
     "longName": "9954519 - Disclosure - Real Estate, Net - Schedule of Components of Income From Real Estate And Expenses (Details)",
     "shortName": "Real Estate, Net - Schedule of Components of Income From Real Estate And Expenses (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "79",
     "firstAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:DepreciationAmortizationAndAccretionNet",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleOfComponentsOfIncomeFromRealEstateAndExpensesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:DepreciationAmortizationAndAccretionNet",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleOfComponentsOfIncomeFromRealEstateAndExpensesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R80": {
     "role": "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
     "longName": "9954520 - Disclosure - Assets and Liabilities of Disposal Group Held for Sale - Narrative (Details)",
     "shortName": "Assets and Liabilities of Disposal Group Held for Sale - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "80",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DeconsolidationGainOrLossAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-443",
      "name": "nymt:NumberOfJointVenturesOwnedNoLongerHeldForSale",
      "unitRef": "jointventure",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R81": {
     "role": "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails",
     "longName": "9954521 - Disclosure - Assets and Liabilities of Disposal Group Held for Sale - Schedule of Assets and Liabilities of Disposal Group Held for Sale (Details)",
     "shortName": "Assets and Liabilities of Disposal Group Held for Sale - Schedule of Assets and Liabilities of Disposal Group Held for Sale (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "81",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:DisposalGroupIncludingDiscontinuedOperationCashAndCashEquivalents",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:DisposalGroupIncludingDiscontinuedOperationCashAndCashEquivalents",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R82": {
     "role": "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofPretaxLossesofDisposalGroupHeldforSaleDetails",
     "longName": "9954522 - Disclosure - Assets and Liabilities of Disposal Group Held for Sale - Schedule of Pretax Losses of Disposal Group Held for Sale (Details)",
     "shortName": "Assets and Liabilities of Disposal Group Held for Sale - Schedule of Pretax Losses of Disposal Group Held for Sale (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "82",
     "firstAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsBeforeIncomeTax",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsBeforeIncomeTax",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R83": {
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
     "longName": "9954523 - Disclosure - Derivative Instruments and Hedging Activities - Schedule of Derivative Instruments (Details)",
     "shortName": "Derivative Instruments and Hedging Activities - Schedule of Derivative Instruments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "83",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDerivativeInstrumentsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-461",
      "name": "us-gaap:DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R84": {
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
     "longName": "9954524 - Disclosure - Derivative Instruments and Hedging Activities - Schedule of Reconciliation of Gross Derivative Assets and Liabilities (Details)",
     "shortName": "Derivative Instruments and Hedging Activities - Schedule of Reconciliation of Gross Derivative Assets and Liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "84",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:DerivativeFairValueOfDerivativeAsset",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDerivativeInstrumentsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:DerivativeAssetFairValueGrossLiability",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDerivativeInstrumentsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R85": {
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInitialMarginDetails",
     "longName": "9954525 - Disclosure - Derivative Instruments and Hedging Activities - Schedule of Initial Margin (Details)",
     "shortName": "Derivative Instruments and Hedging Activities - Schedule of Initial Margin (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "85",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "nymt:MarginDepositAssetsInitialAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-11",
      "name": "nymt:MarginDepositAssetsInitialAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R86": {
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesNarrativeDetails",
     "longName": "9954526 - Disclosure - Derivative Instruments and Hedging Activities - Narrative (Details)",
     "shortName": "Derivative Instruments and Hedging Activities - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "86",
     "firstAnchor": {
      "contextRef": "c-461",
      "name": "nymt:MarginDepositAssetExcessDeficitAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-461",
      "name": "nymt:MarginDepositAssetExcessDeficitAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R87": {
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
     "longName": "9954527 - Disclosure - Derivative Instruments and Hedging Activities - Activity of Derivative Instruments Not Designated as Hedges (Details)",
     "shortName": "Derivative Instruments and Hedging Activities - Activity of Derivative Instruments Not Designated as Hedges (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "87",
     "firstAnchor": {
      "contextRef": "c-477",
      "name": "nymt:DerivativeAssetLiabilityNotionalAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:ScheduleOfOtherDerivativesNotDesignatedAsHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-477",
      "name": "nymt:DerivativeAssetLiabilityNotionalAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:ScheduleOfOtherDerivativesNotDesignatedAsHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R88": {
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofComponentsofRealizedandUnrealizedGainsandLossesDetails",
     "longName": "9954528 - Disclosure - Derivative Instruments and Hedging Activities - Schedule of Components of Realized and Unrealized Gains and Losses (Details)",
     "shortName": "Derivative Instruments and Hedging Activities - Schedule of Components of Realized and Unrealized Gains and Losses (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "88",
     "firstAnchor": {
      "contextRef": "c-518",
      "name": "us-gaap:GainLossOnSaleOfDerivatives",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "nymt:ScheduleOfComponentsOfRealizedAndUnrealizedGainsAndLossesToDerivativeInstrumentsTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-518",
      "name": "us-gaap:GainLossOnSaleOfDerivatives",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "nymt:ScheduleOfComponentsOfRealizedAndUnrealizedGainsAndLossesToDerivativeInstrumentsTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R89": {
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateCapContractsStrikePriceandNotionalAmountsDetails",
     "longName": "9954529 - Disclosure - Derivative Instruments and Hedging Activities - Schedule of Interest Rate Cap Contracts Strike Price and Notional Amounts (Details)",
     "shortName": "Derivative Instruments and Hedging Activities - Schedule of Interest Rate Cap Contracts Strike Price and Notional Amounts (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "89",
     "firstAnchor": {
      "contextRef": "c-467",
      "name": "us-gaap:DerivativeAverageVariableInterestRate",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "4",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-467",
      "name": "us-gaap:DerivativeAverageVariableInterestRate",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "4",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R90": {
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails",
     "longName": "9954530 - Disclosure - Derivative Instruments and Hedging Activities - Schedule of Interest Rate Derivatives (Details)",
     "shortName": "Derivative Instruments and Hedging Activities - Schedule of Interest Rate Derivatives (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "90",
     "firstAnchor": {
      "contextRef": "c-535",
      "name": "us-gaap:DerivativeNotionalAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfInterestRateDerivativesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-535",
      "name": "us-gaap:DerivativeNotionalAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfInterestRateDerivativesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R91": {
     "role": "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails",
     "longName": "9954531 - Disclosure - Other Assets and Other Liabilities - Schedule of Other Assets (Details)",
     "shortName": "Other Assets and Other Liabilities - Schedule of Other Assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "91",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:RestrictedCashAndCashEquivalents",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:InterestReceivable",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfOtherAssetsTableTextBlock",
       "us-gaap:SupplementalBalanceSheetDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R92": {
     "role": "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails",
     "longName": "9954532 - Disclosure - Other Assets and Other Liabilities - Schedule of Other Liabilities (Details)",
     "shortName": "Other Assets and Other Liabilities - Schedule of Other Liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "92",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:DividendsPayableCurrentAndNoncurrent",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:OtherLiabilitiesTableTextBlock",
       "us-gaap:SupplementalBalanceSheetDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:InterestPayableCurrentAndNoncurrent",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:OtherLiabilitiesTableTextBlock",
       "us-gaap:SupplementalBalanceSheetDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R93": {
     "role": "http://nymtrust.com/role/RepurchaseAgreementsScheduleofCompanysRepurchaseAgreementsDetails",
     "longName": "9954533 - Disclosure - Repurchase Agreements - Schedule of Company's Repurchase Agreements (Details)",
     "shortName": "Repurchase Agreements - Schedule of Company's Repurchase Agreements (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "93",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseCarryingAmounts",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRepurchaseAgreements",
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-547",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseCarryingAmounts",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRepurchaseAgreements",
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R94": {
     "role": "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
     "longName": "9954534 - Disclosure - Repurchase Agreements - Narrative (Details)",
     "shortName": "Repurchase Agreements - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "94",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-11",
      "name": "nymt:NumberOfCounterpartiesWithAmountsOutstandingUnderRepurchaseAgreements",
      "unitRef": "counterparty",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R95": {
     "role": "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
     "longName": "9954535 - Disclosure - Repurchase Agreements - Schedule of Unencumbered Securities (Details)",
     "shortName": "Repurchase Agreements - Schedule of Unencumbered Securities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "95",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:SecuritiesBorrowed",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-556",
      "name": "nymt:CollateralizedDebtObligationsRepurchasedResidentialLoanSecuritization",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R96": {
     "role": "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
     "longName": "9954536 - Disclosure - Repurchase Agreements - Schedule of Borrowings Under Financing Arrangements and Associated Assets Pledged as Collateral (Details)",
     "shortName": "Repurchase Agreements - Schedule of Borrowings Under Financing Arrangements and Associated Assets Pledged as Collateral (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "96",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-568",
      "name": "us-gaap:MortgageLoansOnRealEstate",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R97": {
     "role": "http://nymtrust.com/role/RepurchaseAgreementsScheduleofRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
     "longName": "9954537 - Disclosure - Repurchase Agreements - Schedule of Repurchase Agreements Secured by Investment Securities (Details)",
     "shortName": "Repurchase Agreements - Schedule of Repurchase Agreements Secured by Investment Securities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "97",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-573",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfSecuritiesFinancingTransactionsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R98": {
     "role": "http://nymtrust.com/role/RepurchaseAgreementsScheduleOfRepurchaseAgreementsMaturitiesDetails",
     "longName": "9954538 - Disclosure - Repurchase Agreements - Schedule Of Repurchase Agreements, Maturities (Details)",
     "shortName": "Repurchase Agreements - Schedule Of Repurchase Agreements, Maturities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "98",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-577",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R99": {
     "role": "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
     "longName": "9954539 - Disclosure - Collateralized Debt Obligations - Schedule of Mortgages Payable in Consolidated VIEs (Details)",
     "shortName": "Collateralized Debt Obligations - Schedule of Mortgages Payable in Consolidated VIEs (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "99",
     "firstAnchor": {
      "contextRef": "c-591",
      "name": "nymt:DebtInstrumentInterestRateIncreaseNonRedemption",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "4",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
       "us-gaap:LongTermDebtTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-589",
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
       "us-gaap:LongTermDebtTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R100": {
     "role": "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails",
     "longName": "9954540 - Disclosure - Collateralized Debt Obligations - Schedule of Maturities of Collateralized Debt Obligations (Details)",
     "shortName": "Collateralized Debt Obligations - Schedule of Maturities of Collateralized Debt Obligations (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "100",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-586",
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R101": {
     "role": "http://nymtrust.com/role/DebtNarrativeDetails",
     "longName": "9954541 - Disclosure - Debt - Narrative (Details)",
     "shortName": "Debt - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "101",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ProceedsFromIssuanceOfUnsecuredDebt",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-628",
      "name": "nymt:NumberOfAgreementsWithIncreasedStrikePriceOfTheInterestRateAndPartialInterestPaymentDeferral",
      "unitRef": "agreement",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R102": {
     "role": "http://nymtrust.com/role/DebtScheduleofSeniorUnsecuredNotesDetails",
     "longName": "9954542 - Disclosure - Debt - Schedule of Senior Unsecured Notes (Details)",
     "shortName": "Debt - Schedule of Senior Unsecured Notes (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "102",
     "firstAnchor": {
      "contextRef": "c-605",
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:DebtDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-605",
      "name": "us-gaap:DebtInstrumentCarryingAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:DebtDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R103": {
     "role": "http://nymtrust.com/role/DebtScheduleofDebtInstrumentRedemptionDetails",
     "longName": "9954543 - Disclosure - Debt - Schedule of Debt Instrument Redemption (Details)",
     "shortName": "Debt - Schedule of Debt Instrument Redemption (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "103",
     "firstAnchor": {
      "contextRef": "c-611",
      "name": "nymt:DebtInstrumentRedemptionPricePercentageMultiplier",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-613",
      "name": "nymt:DebtInstrumentRedemptionPricePercentageMultiplier",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R104": {
     "role": "http://nymtrust.com/role/DebtScheduleofSubordinatedDebenturesDetails",
     "longName": "9954544 - Disclosure - Debt - Schedule of Subordinated Debentures (Details)",
     "shortName": "Debt - Schedule of Subordinated Debentures (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "104",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:DebtInstrumentBasisSpreadOnVariableRate1",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-616",
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfSubordinatedBorrowingTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R105": {
     "role": "http://nymtrust.com/role/DebtScheduleofMortgagePayableonRealEstateDetails",
     "longName": "9954545 - Disclosure - Debt - Schedule of Mortgage Payable on Real Estate (Details)",
     "shortName": "Debt - Schedule of Mortgage Payable on Real Estate (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "105",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:LongTermDebt",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-629",
      "name": "nymt:LongTermDebtMaximumCommittedMortgagePrincipalAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R106": {
     "role": "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails",
     "longName": "9954546 - Disclosure - Debt - Schedule of Maturities of Long-Term Debt (Details)",
     "shortName": "Debt - Schedule of Maturities of Long-Term Debt (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "106",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R107": {
     "role": "http://nymtrust.com/role/CommitmentsandContingenciesDetails",
     "longName": "9954547 - Disclosure - Commitments and Contingencies (Details)",
     "shortName": "Commitments and Contingencies (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "107",
     "firstAnchor": {
      "contextRef": "c-631",
      "name": "nymt:UnrecordedCommitmentToFundAdvancesOnBusinessPurposeLoans",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-631",
      "name": "nymt:UnrecordedCommitmentToFundAdvancesOnBusinessPurposeLoans",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R108": {
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsNarrativeDetails",
     "longName": "9954548 - Disclosure - Fair Value of Financial Instruments - Narrative (Details)",
     "shortName": "Fair Value of Financial Instruments - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "108",
     "firstAnchor": {
      "contextRef": "c-601",
      "name": "us-gaap:DebtInstrumentInterestRateStatedPercentage",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R109": {
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
     "longName": "9954549 - Disclosure - Fair Value of Financial Instruments - Schedule of Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)",
     "shortName": "Fair Value of Financial Instruments - Schedule of Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "109",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-683",
      "name": "us-gaap:AssetsHeldForSaleLongLivedFairValueDisclosure",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R110": {
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails",
     "longName": "9954550 - Disclosure - Fair Value of Financial Instruments - Schedule of Valuation for Level 3 Assets (Details)",
     "shortName": "Fair Value of Financial Instruments - Schedule of Valuation for Level 3 Assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "110",
     "firstAnchor": {
      "contextRef": "c-40",
      "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": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-40",
      "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": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R111": {
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3LiabilitiesDetails",
     "longName": "9954551 - Disclosure - Fair Value of Financial Instruments - Schedule of Valuation for Level 3 Liabilities (Details)",
     "shortName": "Fair Value of Financial Instruments - Schedule of Valuation for Level 3 Liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "111",
     "firstAnchor": {
      "contextRef": "c-30",
      "name": "nymt:FairValueRecurringBasisUnobservableInputReconciliationLiabilityGainLossStatementOfIncomeExtensibleListNotDisclosedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-30",
      "name": "nymt:FairValueRecurringBasisUnobservableInputReconciliationLiabilityGainLossStatementOfIncomeExtensibleListNotDisclosedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R112": {
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
     "longName": "9954552 - Disclosure - Fair Value of Financial Instruments - Schedule of Quantitative Information Regarding Significant and Unobservable Inputs Used in the Valuation of Level 3 Assets and Liabilities Measured at Fair Value (Details)",
     "shortName": "Fair Value of Financial Instruments - Schedule of Quantitative Information Regarding Significant and Unobservable Inputs Used in the Valuation of Level 3 Assets and Liabilities Measured at Fair Value (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "112",
     "firstAnchor": {
      "contextRef": "c-17",
      "name": "us-gaap:SecuredDebt",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-840",
      "name": "nymt:ResidentialMortgageLoansFairValueDisclosure",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R113": {
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
     "longName": "9954553 - Disclosure - Fair Value of Financial Instruments - Schedule of Changes in Unrealized Gains (Losses) Included in Earnings for Level 3 Assets and Liabilities (Details)",
     "shortName": "Fair Value of Financial Instruments - Schedule of Changes in Unrealized Gains (Losses) Included in Earnings for Level 3 Assets and Liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "113",
     "firstAnchor": {
      "contextRef": "c-874",
      "name": "us-gaap:FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-874",
      "name": "us-gaap:FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R114": {
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
     "longName": "9954554 - Disclosure - Fair Value of Financial Instruments - Schedule of Carrying Value and Estimated Fair Value of the Company's Financial Assets (Details)",
     "shortName": "Fair Value of Financial Instruments - Schedule of Carrying Value and Estimated Fair Value of the Company's Financial Assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "114",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-680",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R115": {
     "role": "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
     "longName": "9954555 - Disclosure - Stockholders' Equity - Narrative (Details)",
     "shortName": "Stockholders' Equity - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "115",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "nymt:NumberOfSeriesOfCumulativeRedeemablePreferredStockOutstanding",
      "unitRef": "seriesofpreferredstock",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "nymt:PreferredStockRedemptionPeriod",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R116": {
     "role": "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails",
     "longName": "9954556 - Disclosure - Stockholders' Equity - Schedule of Preferred Stock Issued and Outstanding (Details)",
     "shortName": "Stockholders' Equity - Schedule of Preferred Stock Issued and Outstanding (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "116",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:PreferredStockValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-936",
      "name": "us-gaap:PreferredStockValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfStockholdersEquityTableTextBlock",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R117": {
     "role": "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
     "longName": "9954557 - Disclosure - Stockholders' Equity - Cash Dividends Declared - Preferred Stock (Details)",
     "shortName": "Stockholders' Equity - Cash Dividends Declared - Preferred Stock (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "117",
     "firstAnchor": {
      "contextRef": "c-959",
      "name": "us-gaap:PreferredStockDividendsPerShareCashPaid",
      "unitRef": "usdPerShare",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDividendsPayableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-959",
      "name": "us-gaap:PreferredStockDividendsPerShareCashPaid",
      "unitRef": "usdPerShare",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDividendsPayableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R118": {
     "role": "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredCommonStockDetails",
     "longName": "9954558 - Disclosure - Stockholders' Equity - Cash Dividends Declared - Common Stock (Details)",
     "shortName": "Stockholders' Equity - Cash Dividends Declared - Common Stock (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "118",
     "firstAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:CommonStockDividendsPerShareDeclared",
      "unitRef": "usdPerShare",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:CommonStockDividendsPerShareDeclared",
      "unitRef": "usdPerShare",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R119": {
     "role": "http://nymtrust.com/role/LossPerCommonShareDetails",
     "longName": "9954559 - Disclosure - Loss Per Common Share (Details)",
     "shortName": "Loss Per Common Share (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "119",
     "firstAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:NetIncomeLoss",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R120": {
     "role": "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
     "longName": "9954560 - Disclosure - Stock Based Compensation - Narrative (Details)",
     "shortName": "Stock Based Compensation - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "120",
     "firstAnchor": {
      "contextRef": "c-1022",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "unitRef": "shares",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfNonvestedShareActivityTableTextBlock",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1016",
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R121": {
     "role": "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails",
     "longName": "9954561 - Disclosure - Stock Based Compensation - Schedule of Non-vested Restricted Stock, PSU and RSU Award Activity (Details)",
     "shortName": "Stock Based Compensation - Schedule of Non-vested Restricted Stock, PSU and RSU Award Activity (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "121",
     "firstAnchor": {
      "contextRef": "c-1020",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "unitRef": "shares",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfNonvestedShareActivityTableTextBlock",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1017",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
      "unitRef": "shares",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfNonvestedShareActivityTableTextBlock",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R122": {
     "role": "http://nymtrust.com/role/IncomeTaxesScheduleofComponentsofIncomeTaxBenefitExpenseDetails",
     "longName": "9954562 - Disclosure - Income Taxes - Schedule of Components of Income Tax (Benefit)/Expense (Details)",
     "shortName": "Income Taxes - Schedule of Components of Income Tax (Benefit)/Expense (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "122",
     "firstAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:CurrentIncomeTaxExpenseBenefit",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:CurrentIncomeTaxExpenseBenefit",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R123": {
     "role": "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails",
     "longName": "9954563 - Disclosure - Income Taxes - Schedule of Deferred Tax Assets and Liabilities (Details)",
     "shortName": "Income Taxes - Schedule of Deferred Tax Assets and Liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "123",
     "firstAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:DeferredTaxAssetsOperatingLossCarryforwards",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-11",
      "name": "us-gaap:DeferredTaxAssetsOperatingLossCarryforwards",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R124": {
     "role": "http://nymtrust.com/role/IncomeTaxesNarrativeDetails",
     "longName": "9954564 - Disclosure - Income Taxes - Narrative (Details)",
     "shortName": "Income Taxes - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "124",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ValuationAllowanceDeferredTaxAssetChangeInAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "us-gaap:ValuationAllowanceDeferredTaxAssetChangeInAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    },
    "R125": {
     "role": "http://nymtrust.com/role/NetInterestIncomeDetails",
     "longName": "9954565 - Disclosure - Net Interest Income (Details)",
     "shortName": "Net Interest Income (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "125",
     "firstAnchor": {
      "contextRef": "c-30",
      "name": "us-gaap:InterestAndDividendIncomeOperating",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1095",
      "name": "us-gaap:InterestExpenseMediumTermNotes",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "unique": true
     }
    },
    "R126": {
     "role": "http://nymtrust.com/role/OtherIncomeLossDetails",
     "longName": "9954566 - Disclosure - Other Income (Loss) (Details)",
     "shortName": "Other Income (Loss) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "126",
     "firstAnchor": {
      "contextRef": "c-30",
      "name": "nymt:GainLossOnDeConsolidationOfJointVentureEquityInvestments",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfOtherNonoperatingIncomeExpenseTableTextBlock",
       "us-gaap:OtherNonoperatingIncomeAndExpenseTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-30",
      "name": "nymt:GainLossOnDeConsolidationOfJointVentureEquityInvestments",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfOtherNonoperatingIncomeExpenseTableTextBlock",
       "us-gaap:OtherNonoperatingIncomeAndExpenseTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nymt-20240630.htm",
      "first": true,
      "unique": true
     }
    }
   },
   "tag": {
    "nymt_A1122ChicagoDELLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "A1122ChicagoDELLCMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "1122 Chicago DE, LLC",
        "label": "1122 Chicago DE, LLC [Member]",
        "documentation": "1122 Chicago DE, LLC [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_A2017PlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "A2017PlanMember",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2017 Incentive Plan",
        "label": "2017 Plan [Member]",
        "documentation": "2017 Plan [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_A6875SeriesFFixedToFloatingRateCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "A6875SeriesFFixedToFloatingRateCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6.875% Series F Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference",
        "label": "6.875% Series F Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference [Member]",
        "documentation": "6.875% Series F Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_A7.875SeriesEFixedtoFloatingRateCumulativeRedeemablePreferredStockParValue0.01pershare25.00LiquidationPreferenceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "A7.875SeriesEFixedtoFloatingRateCumulativeRedeemablePreferredStockParValue0.01pershare25.00LiquidationPreferenceMember",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "7.875% Series E Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference",
        "label": "7.875% Series E Fixed-to-Floating Rate Cumulative Redeemable, Preferred Stock, Par Value $0.01 per share, $25.00 Liquidation Preference [Member]",
        "documentation": "7.875% Series E Fixed-to-Floating Rate Cumulative Redeemable, Preferred Stock, Par Value $0.01 per share, $25.00 Liquidation Preference [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_A7000SeriesGCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "A7000SeriesGCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "7.000% Series G Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference",
        "label": "7.000% Series G Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference [Member]",
        "documentation": "7.000% Series G Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_A8000SeriesDFixedToFloatingRateCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "A8000SeriesDFixedToFloatingRateCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "8.000% Series D Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference",
        "label": "8.000% Series D Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference [Member]",
        "documentation": "8.000% Series D Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference"
       }
      }
     },
     "auth_ref": []
    },
    "stpr_AL": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/stpr/2024",
     "localname": "AL",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Alabama",
        "label": "ALABAMA"
       }
      }
     },
     "auth_ref": []
    },
    "stpr_AR": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/stpr/2024",
     "localname": "AR",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Arkansas",
        "label": "ARKANSAS"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AccountingPoliciesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounting Policies [Abstract]",
        "label": "Accounting Policies [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/NetInterestIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Receivable Type [Axis]",
        "label": "Receivable Type [Axis]",
        "documentation": "Information by type of receivable."
       }
      }
     },
     "auth_ref": [
      "r135",
      "r141"
     ]
    },
    "us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AccretionAmortizationOfDiscountsAndPremiumsInvestments",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Net amortization",
        "label": "Accretion (Amortization) of Discounts and Premiums, Investments",
        "documentation": "The sum of the periodic adjustments of the differences between securities' face values and purchase prices that are charged against earnings. This is called accretion if the security was purchased at a discount and amortization if it was purchased at premium. As a noncash item, this element is an adjustment to net income when calculating cash provided by or used in operations using the indirect method."
       }
      }
     },
     "auth_ref": [
      "r161"
     ]
    },
    "us-gaap_AccruedLiabilitiesAndOtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AccruedLiabilitiesAndOtherLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails": {
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued expenses and other liabilities in consolidated multi-family properties",
        "label": "Accrued Liabilities and Other Liabilities",
        "documentation": "Amount of expenses incurred but not yet paid nor invoiced, and liabilities classified as other."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccruedLiabilitiesCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AccruedLiabilitiesCurrentAndNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails": {
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Accrued expenses",
        "label": "Accrued Liabilities",
        "documentation": "Carrying value as of the balance sheet date of obligations incurred and payable, pertaining to costs that are statutory in nature, are incurred on contractual obligations, or accumulate over time and for which invoices have not yet been received or will not be rendered. Examples include taxes, interest, rent and utilities."
       }
      }
     },
     "auth_ref": [
      "r202"
     ]
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated other comprehensive loss",
        "label": "Accumulated Other Comprehensive Income (Loss), Net of Tax",
        "documentation": "Amount, after tax, of accumulated increase (decrease) in equity from transaction and other event and circumstance from nonowner source."
       }
      }
     },
     "auth_ref": [
      "r31",
      "r32",
      "r143",
      "r298",
      "r785",
      "r808",
      "r809"
     ]
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated Other Comprehensive Loss",
        "label": "AOCI Attributable to Parent [Member]",
        "documentation": "Accumulated increase (decrease) in equity from transactions and other events and circumstances from non-owner sources, attributable to the parent. Excludes net income (loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners."
       }
      }
     },
     "auth_ref": [
      "r2",
      "r17",
      "r32",
      "r632",
      "r635",
      "r684",
      "r804",
      "r805",
      "r1075",
      "r1076",
      "r1077",
      "r1089",
      "r1090",
      "r1091",
      "r1092"
     ]
    },
    "us-gaap_AdditionalPaidInCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AdditionalPaidInCapital",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Additional paid-in 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": [
      "r136",
      "r1009",
      "r1262"
     ]
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AdditionalPaidInCapitalMember",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "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": [
      "r824",
      "r1089",
      "r1090",
      "r1091",
      "r1092",
      "r1187",
      "r1266"
     ]
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stock based compensation expense, net",
        "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": [
      "r69",
      "r70",
      "r553"
     ]
    },
    "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Adjustments to reconcile net loss to net cash used in operating activities:",
        "label": "Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_AdvancedRemittancesFromResidentialLoanServicers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "AdvancedRemittancesFromResidentialLoanServicers",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails": {
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Advanced remittances from residential loan servicers",
        "label": "Advanced Remittances From Residential Loan Servicers",
        "documentation": "Advanced Remittances From Residential Loan Servicers"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_AgencyARMsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "AgencyARMsMember",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Adjustable rate",
        "label": "Agency AR Ms [Member]",
        "documentation": "Agency ARMs."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_AgencyFixedRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "AgencyFixedRateMember",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed rate",
        "label": "Agency Fixed Rate [Member]",
        "documentation": "Agency Fixed Rate."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_AgencyIOsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "AgencyIOsMember",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest-only",
        "label": "Agency IOs [Member]",
        "documentation": "Agency IOs"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_AgencyRMBSAndNonAgencyRMBSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "AgencyRMBSAndNonAgencyRMBSMember",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Agency RMBS And Non-Agency RMBS",
        "label": "Agency RMBS And Non-Agency RMBS [Member]",
        "documentation": "Agency RMBS And Non-Agency RMBS"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_AgencyResidentialMortgageBackedSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "AgencyResidentialMortgageBackedSecuritiesMember",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInitialMarginDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Agency RMBS",
        "label": "Agency Residential Mortgage Backed Securities [Member]",
        "documentation": "Agency Residential Mortgage Backed Securities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AllocatedShareBasedCompensationExpense",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share-based compensation expense",
        "label": "Share-Based Payment Arrangement, Expense",
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized."
       }
      }
     },
     "auth_ref": [
      "r582",
      "r587"
     ]
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amendment Flag",
        "label": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_AmericaWalksAtPortStLucieLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "AmericaWalksAtPortStLucieLLCMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "America Walks at Port St. Lucie, LLC",
        "label": "America Walks at Port St. Lucie, LLC [Member]",
        "documentation": "America Walks at Port St. Lucie, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AmortizationOfFinancingCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AmortizationOfFinancingCosts",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt issuance costs",
        "label": "Amortization of Debt Issuance Costs",
        "documentation": "Amount of amortization expense attributable to debt issuance costs."
       }
      }
     },
     "auth_ref": [
      "r152",
      "r515",
      "r1083",
      "r1207"
     ]
    },
    "us-gaap_AmortizationOfIntangibleAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AmortizationOfIntangibleAssets",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetScheduleofComponentsofIncomeFromRealEstateAndExpensesDetails": {
       "parentTag": "us-gaap_DepreciationDepletionAndAmortization",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetScheduleofComponentsofIncomeFromRealEstateAndExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amortization of lease intangibles related to operating real estate",
        "label": "Amortization of Intangible Assets",
        "documentation": "The aggregate expense charged against earnings to allocate the cost of intangible assets (nonphysical assets not used in production) in a systematic and rational manner to the periods expected to benefit from such assets. As a noncash expense, this element is added back to net income when calculating cash provided by or used in operations using the indirect method."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r459",
      "r465",
      "r979"
     ]
    },
    "us-gaap_AssetBackedSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetBackedSecuritiesMember",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofRealizedGainorLossActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ABS",
        "label": "Asset-Backed Securities [Member]",
        "documentation": "Securities that are primarily serviced by the cash flows of a discrete pool of receivables or other financial assets for example, but not limited to, credit card receivables, car loans, recreational vehicle loans, and mobile home loans."
       }
      }
     },
     "auth_ref": [
      "r987",
      "r1010",
      "r1106",
      "r1108",
      "r1109"
     ]
    },
    "us-gaap_Assets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "Assets",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total Assets",
        "verboseLabel": "Assets",
        "terseLabel": "Total assets",
        "label": "Assets",
        "documentation": "Amount of asset recognized for present right to economic benefit."
       }
      }
     },
     "auth_ref": [
      "r198",
      "r234",
      "r293",
      "r333",
      "r378",
      "r382",
      "r388",
      "r389",
      "r438",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r621",
      "r625",
      "r668",
      "r779",
      "r870",
      "r973",
      "r974",
      "r1009",
      "r1040",
      "r1137",
      "r1138",
      "r1210"
     ]
    },
    "us-gaap_AssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ASSETS",
        "label": "Assets [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsFairValueDisclosure",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total",
        "label": "Assets, Fair Value Disclosure",
        "documentation": "Fair value portion of asset recognized for present right to economic benefit."
       }
      }
     },
     "auth_ref": [
      "r643",
      "r644",
      "r997"
     ]
    },
    "us-gaap_AssetsFairValueDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsFairValueDisclosureAbstract",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets carried at fair value",
        "verboseLabel": "Assets",
        "label": "Assets, Fair Value Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetsHeldForSaleLongLivedFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsHeldForSaleLongLivedFairValueDisclosure",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets of disposal group held for sale",
        "label": "Long-Lived Asset, Held-for-Sale, Fair Value Disclosure",
        "documentation": "Fair value portion of assets classified as held for sale."
       }
      }
     },
     "auth_ref": [
      "r996",
      "r997",
      "r998",
      "r1190"
     ]
    },
    "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsOfDisposalGroupIncludingDiscontinuedOperation",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total assets of disposal group held for sale",
        "label": "Disposal Group, Including Discontinued Operation, Assets",
        "documentation": "Amount classified as assets attributable to disposal group held for sale or disposed of."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r112",
      "r118",
      "r168",
      "r288",
      "r289"
     ]
    },
    "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets of disposal group held for sale",
        "label": "Disposal Group, Including Discontinued Operation, Assets, Current",
        "documentation": "Amount classified as assets attributable to disposal group held for sale or disposed of, expected to be disposed of within one year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r112",
      "r118",
      "r165",
      "r168",
      "r288",
      "r289"
     ]
    },
    "nymt_AssetsSoldUnderAgreementsToRepurchaseAmortizedCostOfCollateralPledged": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "AssetsSoldUnderAgreementsToRepurchaseAmortizedCostOfCollateralPledged",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amortized Cost of Collateral Pledged",
        "label": "Assets Sold Under Agreements To Repurchase, Amortized Cost Of Collateral Pledged",
        "documentation": "Assets Sold Under Agreements To Repurchase, Amortized Cost Of Collateral Pledged"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsSoldUnderAgreementsToRepurchaseAxis",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities or Other Assets Sold under Agreements to Repurchase [Axis]",
        "label": "Securities or Other Assets Sold under Agreements to Repurchase [Axis]",
        "documentation": "Information by securities or other assets sold under repurchase agreements. Repurchase agreements are agreements under which the transferor (repo party) transfers a security to a transferee (repo counterparty or reverse party) in exchange for cash and concurrently agrees to reacquire that security at a future date for an amount equal to the cash exchanged plus a stipulated interest factor."
       }
      }
     },
     "auth_ref": [
      "r341"
     ]
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseCarryingAmounts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsSoldUnderAgreementsToRepurchaseCarryingAmounts",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofCompanysRepurchaseAgreementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total carrying value",
        "verboseLabel": "Carrying Value of Repurchase Agreements",
        "label": "Assets Sold under Agreements to Repurchase, Carrying Amount",
        "documentation": "Carrying amount of assets sold under agreements to repurchase when the carrying amount (or market value, if higher than the carrying amount) of securities or other assets sold under repurchase agreements exceeds 10 percent of total assets."
       }
      }
     },
     "auth_ref": [
      "r335",
      "r339"
     ]
    },
    "nymt_AssetsSoldUnderAgreementsToRepurchaseDeferredFinanceCostsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "AssetsSoldUnderAgreementsToRepurchaseDeferredFinanceCostsNet",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Net Deferred Finance Costs",
        "label": "Assets Sold under Agreements to Repurchase, Deferred Finance Costs, Net",
        "documentation": "Assets Sold under Agreements to Repurchase, Deferred Finance Costs, Net"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsSoldUnderAgreementsToRepurchaseInterestRate",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted Average Rate",
        "label": "Assets Sold under Agreements to Repurchase, Interest Rate",
        "documentation": "Interest rate on the amount to be repaid to the counterparty to the repurchase agreement when the carrying amount (or market value, if higher than the carrying amount) of securities or other assets sold under the repurchase agreement exceeds 10 percent of total assets."
       }
      }
     },
     "auth_ref": [
      "r340",
      "r710"
     ]
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsSoldUnderAgreementsToRepurchaseLineItems",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleOfRepurchaseAgreementsMaturitiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets Sold under Agreements to Repurchase [Line Items]",
        "label": "Assets Sold under Agreements to Repurchase [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": [
      "r341",
      "r710"
     ]
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodDomain",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleOfRepurchaseAgreementsMaturitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Repurchase Agreements and Similar Transactions, Maturity Periods [Domain]",
        "label": "Repurchase Agreements and Similar Transactions, Maturity Periods [Domain]",
        "documentation": "Maturity period remaining for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements. Element name and standard label in Maturity [numeric lower end] to [numeric higher end] [date measure] [Member] or Maturity Greater Than [low end numeric value] [date measure] [Member] or Maturity Less Than [high end numeric value] [date measure] [Member] formats."
       }
      }
     },
     "auth_ref": [
      "r341",
      "r709",
      "r1010"
     ]
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodsAxis",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleOfRepurchaseAgreementsMaturitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Repurchase Agreements and Similar Transactions, Maturity Periods [Axis]",
        "label": "Repurchase Agreements and Similar Transactions, Maturity Periods [Axis]",
        "documentation": "Information by maturity period remaining for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements. Element name and standard label in Maturity [numeric lower end] to [numeric higher end] [date measure] [Member] or Maturity Greater Than [low end numeric value] [date measure] [Member] or Maturity Less Than [high end numeric value] [date measure] [Member] formats."
       }
      }
     },
     "auth_ref": [
      "r341",
      "r709",
      "r1010"
     ]
    },
    "nymt_AssetsSoldUnderAgreementsToRepurchaseMaximumRepurchaseAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "AssetsSoldUnderAgreementsToRepurchaseMaximumRepurchaseAmount",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maximum Aggregate Uncommitted Principal Amount",
        "label": "Assets Sold Under Agreements to Repurchase, Maximum Repurchase Amount",
        "documentation": "The total amount of repossession that is available under the repurchase agreement."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleOfRepurchaseAgreementsMaturitiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Outstanding Repurchase Agreements",
        "terseLabel": "Repurchase agreements, maturities",
        "label": "Assets Sold under Agreements to Repurchase, Repurchase Liability",
        "documentation": "Amount, including accrued interest, to be repaid to counterparty to repurchase agreement when carrying amount or market value if higher, of security or other asset sold under repurchase agreement exceeds 10 percent of total assets."
       }
      }
     },
     "auth_ref": [
      "r335",
      "r340",
      "r702",
      "r710"
     ]
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsSoldUnderAgreementsToRepurchaseTypeDomain",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets Sold under Agreements to Repurchase, Type [Domain]",
        "label": "Assets Sold under Agreements to Repurchase, Type [Domain]",
        "documentation": "This is the type of such assets (for example, US Treasury Obligations, US Government agency obligations and loans, and so forth). This item may be presented as an element in the table that is disclosed when the carrying amount (or market value, if higher than the carrying amount) of securities or other assets sold under repurchase agreements exceed 10 percent of total assets, as of the most recent balance sheet date."
       }
      }
     },
     "auth_ref": [
      "r341"
     ]
    },
    "nymt_AtlasSPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "AtlasSPMember",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Atlas SP",
        "label": "Atlas SP [Member]",
        "documentation": "Atlas SP"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrealized Gains",
        "label": "Debt Securities, Available-for-Sale, Accumulated Gross Unrealized Gain, before Tax",
        "documentation": "Amount, before tax, of unrealized gain in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r403"
     ]
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Unrealized Losses",
        "label": "Debt Securities, Available-for-Sale, Accumulated Gross Unrealized Loss, before Tax",
        "documentation": "Amount, before tax, of unrealized loss in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r404"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss [Abstract]",
        "label": "Debt Securities, Available-for-Sale, Unrealized Loss Position, Accumulated Loss [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AvailableForSaleSecuritiesDebtSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AvailableForSaleSecuritiesDebtSecurities",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment securities available for sale:",
        "label": "Debt Securities, Available-for-Sale",
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r401",
      "r448",
      "r643",
      "r767",
      "r997",
      "r1001",
      "r1101",
      "r1191",
      "r1192",
      "r1193"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "CECL Securities",
        "label": "Debt Securities, Available-for-Sale, Fair Value to Amortized Cost, after Allowance for Credit Loss [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_AvailableForSaleSecuritiesPortfolioLife": {
     "xbrltype": "durationItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "AvailableForSaleSecuritiesPortfolioLife",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted average life of available for sale securities portfolio",
        "label": "Available For Sale Securities Portfolio Life",
        "documentation": "Represents the weighted average life of the available for sale securities portfolio."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AwardTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AwardTypeAxis",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "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": [
      "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"
     ]
    },
    "nymt_BOrBelowCreditRatingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "BOrBelowCreditRatingMember",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "B+ or Below Credit Rating",
        "label": "B+ Or Below Credit Rating [Member]",
        "documentation": "B+ Or Below Credit Rating"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BalanceSheetLocationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BalanceSheetLocationAxis",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesNarrativeDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Balance Sheet Location [Axis]",
        "label": "Statement of Financial Position Location, Balance [Axis]",
        "documentation": "Information by location in statement of financial position where disaggregated cumulative balance has been reported."
       }
      }
     },
     "auth_ref": [
      "r475",
      "r1230",
      "r1231"
     ]
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BalanceSheetLocationDomain",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesNarrativeDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Balance Sheet Location [Domain]",
        "label": "Statement of Financial Position Location, Balance [Domain]",
        "documentation": "Location in statement of financial position where disaggregated cumulative balance has been reported."
       }
      }
     },
     "auth_ref": [
      "r90",
      "r93",
      "r475",
      "r1230",
      "r1231"
     ]
    },
    "us-gaap_BankingAndThriftInterestAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BankingAndThriftInterestAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking and Thrift, Interest [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "presentation": [
      "http://nymtrust.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": []
    },
    "nymt_BetweenBBAndBCreditRatingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "BetweenBBAndBCreditRatingMember",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Between BB+ and B+ Credit Rating",
        "label": "Between BB+ And B+ Credit Rating [Member]",
        "documentation": "Between BB+ And B+ Credit Rating"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_BighausLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "BighausLLCMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bighaus, LLC",
        "label": "Bighaus, LLC [Member]",
        "documentation": "Bighaus, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "stpr_CA": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/stpr/2024",
     "localname": "CA",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "California",
        "label": "CALIFORNIA"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_CMETermSecuredOvernightFinancingRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "CMETermSecuredOvernightFinancingRateMember",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofSubordinatedDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "CME Term, SOFR",
        "label": "CME Term, Secured Overnight Financing Rate [Member]",
        "documentation": "CME Term, Secured Overnight Financing Rate"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CarryingValueOfFederalFundsSoldSecuritiesPurchasedUnderAgreementsToResellAndDepositsPaidForSecuritiesBorrowedAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CarryingValueOfFederalFundsSoldSecuritiesPurchasedUnderAgreementsToResellAndDepositsPaidForSecuritiesBorrowedAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Carrying Value of Federal Funds Sold, Securities Purchased under Agreements to Resell, and Deposits Paid for Securities Borrowed [Abstract]",
        "label": "Carrying Value of Federal Funds Sold, Securities Purchased under Agreements to Resell, and Deposits Paid for Securities Borrowed [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
       "weight": 1.0,
       "order": 1.0
      },
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and cash equivalents",
        "periodEndLabel": "Cash and cash equivalents",
        "verboseLabel": "Cash and cash equivalents",
        "label": "Cash and Cash Equivalents, at Carrying Value",
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Excludes cash and cash equivalents within disposal group and discontinued operation."
       }
      }
     },
     "auth_ref": [
      "r40",
      "r290",
      "r965"
     ]
    },
    "us-gaap_CashAndCashEquivalentsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashAndCashEquivalentsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and cash equivalents, estimated 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": [
      "r1189",
      "r1190"
     ]
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Cash, Cash Equivalents and Restricted Cash - Beginning of Period",
        "periodEndLabel": "Cash, Cash Equivalents and Restricted Cash - End of Period",
        "totalLabel": "Total cash, cash equivalents, and restricted cash",
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents",
        "documentation": "Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage. Excludes amount for disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates."
       }
      }
     },
     "auth_ref": [
      "r40",
      "r159",
      "r328"
     ]
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash, Cash Equivalents and Restricted Cash Reconciliation:",
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net Increase (Decrease) in Cash, Cash Equivalents and Restricted Cash",
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect",
        "documentation": "Amount of increase (decrease) in cash, cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including effect from exchange rate change. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates."
       }
      }
     },
     "auth_ref": [
      "r0",
      "r159"
     ]
    },
    "nymt_CashReclassifiedToFromAssetsOfDisposalGroupHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "CashReclassifiedToFromAssetsOfDisposalGroupHeldForSale",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Cash reclassified from (to) assets of disposal group held for sale",
        "label": "Cash Reclassified To (From) Assets Of Disposal Group Held For Sale",
        "documentation": "Cash Reclassified To (From) Assets Of Disposal Group Held For Sale"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_CashRemovedInDeConsolidationOfVariableInterestEntity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "CashRemovedInDeConsolidationOfVariableInterestEntity",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Decrease in cash from de-consolidation of Consolidated VIE",
        "label": "Cash Removed In De-consolidation Of Variable Interest Entity",
        "documentation": "Cash Removed In De-consolidation Of Variable Interest Entity"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_CentralClearingHouseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "CentralClearingHouseMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Central Clearing House",
        "label": "Central Clearing House [Member]",
        "documentation": "Central Clearing House"
       }
      }
     },
     "auth_ref": []
    },
    "dei_CityAreaCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "CityAreaCode",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "City Area Code",
        "label": "City Area Code",
        "documentation": "Area code of city"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ClassOfStockDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ClassOfStockDomain",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/Cover",
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class of Stock [Domain]",
        "label": "Class of Stock [Domain]",
        "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": [
      "r254",
      "r294",
      "r295",
      "r296",
      "r333",
      "r363",
      "r364",
      "r371",
      "r373",
      "r380",
      "r381",
      "r438",
      "r484",
      "r486",
      "r487",
      "r488",
      "r491",
      "r492",
      "r523",
      "r524",
      "r527",
      "r530",
      "r537",
      "r668",
      "r815",
      "r816",
      "r817",
      "r818",
      "r824",
      "r825",
      "r826",
      "r827",
      "r828",
      "r829",
      "r830",
      "r831",
      "r832",
      "r833",
      "r834",
      "r835",
      "r857",
      "r879",
      "r896",
      "r933",
      "r934",
      "r935",
      "r936",
      "r937",
      "r1047",
      "r1084",
      "r1093"
     ]
    },
    "us-gaap_ClassOfStockLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ClassOfStockLineItems",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class of Stock [Line Items]",
        "label": "Class of Stock [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r294",
      "r295",
      "r296",
      "r380",
      "r523",
      "r524",
      "r525",
      "r527",
      "r530",
      "r535",
      "r537",
      "r815",
      "r816",
      "r817",
      "r818",
      "r985",
      "r1047",
      "r1084"
     ]
    },
    "nymt_CollateralizedDebtObligationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "CollateralizedDebtObligationsAbstract",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Collateralized debt obligations:",
        "label": "Collateralized Debt Obligations [Abstract]",
        "documentation": "Collateralized Debt Obligations"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CollateralizedDebtObligationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CollateralizedDebtObligationsMember",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Collateralized Debt Obligations",
        "label": "Collateralized Debt Obligations [Member]",
        "documentation": "Securities collateralized by a pool of assets."
       }
      }
     },
     "auth_ref": [
      "r997",
      "r999",
      "r1001",
      "r1103",
      "r1107",
      "r1148"
     ]
    },
    "nymt_CollateralizedDebtObligationsRepurchasedResidentialLoanSecuritization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "CollateralizedDebtObligationsRepurchasedResidentialLoanSecuritization",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Collateralized debt obligations, repurchased residential loan securitization",
        "label": "Collateralized Debt Obligations, Repurchased Residential Loan Securitization",
        "documentation": "Collateralized Debt Obligations, Repurchased Residential Loan Securitization"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommitmentsAndContingencies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommitmentsAndContingencies",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitments and Contingencies (See Note 15)",
        "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": [
      "r129",
      "r205",
      "r781",
      "r856"
     ]
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitments and Contingencies Disclosure [Abstract]",
        "label": "Commitments and Contingencies Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommitmentsAndContingenciesDisclosureTextBlock",
     "presentation": [
      "http://nymtrust.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": [
      "r172",
      "r476",
      "r477",
      "r948",
      "r1130",
      "r1135"
     ]
    },
    "us-gaap_CommonStockDividendsPerShareDeclared": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockDividendsPerShareDeclared",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredCommonStockDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash dividend per share (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": [
      "r180"
     ]
    },
    "us-gaap_CommonStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockMember",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "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": [
      "r1027",
      "r1028",
      "r1029",
      "r1031",
      "r1032",
      "r1033",
      "r1036",
      "r1089",
      "r1090",
      "r1092",
      "r1187",
      "r1259",
      "r1266"
     ]
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockParOrStatedValuePerShare",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "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": [
      "r134"
     ]
    },
    "nymt_CommonStockParValue001PerShareMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "CommonStockParValue001PerShareMember",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common Stock, par value $0.01 per share",
        "label": "Common Stock, par value $0.01 per share [Member]",
        "documentation": "Common Stock, par value $0.01 per share"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockSharesAuthorized",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "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": [
      "r134",
      "r857"
     ]
    },
    "us-gaap_CommonStockSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockSharesIssued",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "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": [
      "r134"
     ]
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockSharesOutstanding",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock, shares outstanding (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": [
      "r18",
      "r134",
      "r857",
      "r876",
      "r1266",
      "r1267"
     ]
    },
    "us-gaap_CommonStockSharesSubscriptions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockSharesSubscriptions",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock that may be sold (up to)",
        "label": "Common Stock, Value, Subscriptions",
        "documentation": "Monetary value of common stock allocated to investors to buy shares of a new issue of common stock before they are offered to the public. When stock is sold on a subscription basis, the issuer does not initially receive the total proceeds. In general, the issuer does not issue the shares to the investor until it receives the entire proceeds."
       }
      }
     },
     "auth_ref": [
      "r58",
      "r134"
     ]
    },
    "us-gaap_CommonStockValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockValue",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock, par value $0.01 per share, 200,000,000 shares authorized, 90,592,065 and 90,675,403 shares issued and outstanding as of June\u00a030, 2024 and December\u00a031, 2023, 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": [
      "r134",
      "r784",
      "r1009"
     ]
    },
    "nymt_CommonStockValueofSharesReservedforFutureIssuanceValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "CommonStockValueofSharesReservedforFutureIssuanceValue",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock reserved for issuance",
        "label": "Common Stock, Value of Shares Reserved for Future Issuance, Value",
        "documentation": "Aggregate value of common shares reserved for future issuance."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ComponentsOfNetGainsLossesOnResidentialMortgageLoansAtFairValueTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ComponentsOfNetGainsLossesOnResidentialMortgageLoansAtFairValueTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Components of Net Gain (Loss) on Residential Mortgage Loans at Fair Value",
        "label": "Components Of Net Gains (Losses) On Residential Mortgage Loans At Fair Value [Table Text Block]",
        "documentation": "Components Of Net Gains (Losses) On Residential Mortgage Loans At Fair Value [Table Text Block]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ComprehensiveIncomeNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "COMPREHENSIVE LOSS ATTRIBUTABLE TO COMPANY'S COMMON STOCKHOLDERS",
        "label": "Comprehensive Income (Loss), Net of Tax, Attributable to Parent",
        "documentation": "Amount after tax of increase (decrease) in equity from transactions and other events and circumstances from net income and other comprehensive income, attributable to parent entity. Excludes changes in equity resulting from investments by owners and distributions to owners."
       }
      }
     },
     "auth_ref": [
      "r33",
      "r308",
      "r310",
      "r314",
      "r769",
      "r797",
      "r798"
     ]
    },
    "us-gaap_ConcentrationRiskBenchmarkDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ConcentrationRiskBenchmarkDomain",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails"
     ],
     "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": [
      "r49",
      "r51",
      "r105",
      "r106",
      "r392",
      "r947"
     ]
    },
    "us-gaap_ConcentrationRiskByBenchmarkAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ConcentrationRiskByBenchmarkAxis",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Concentration Risk Benchmark [Axis]",
        "label": "Concentration Risk Benchmark [Axis]",
        "documentation": "Information by benchmark of concentration risk."
       }
      }
     },
     "auth_ref": [
      "r49",
      "r51",
      "r105",
      "r106",
      "r392",
      "r811",
      "r947"
     ]
    },
    "us-gaap_ConcentrationRiskByTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ConcentrationRiskByTypeAxis",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails"
     ],
     "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": [
      "r49",
      "r51",
      "r105",
      "r106",
      "r392",
      "r947",
      "r1051"
     ]
    },
    "us-gaap_ConcentrationRiskLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ConcentrationRiskLineItems",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Concentration Risk [Line Items]",
        "label": "Concentration Risk [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": [
      "r947"
     ]
    },
    "us-gaap_ConcentrationRiskPercentage1": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ConcentrationRiskPercentage1",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Geographic concentration, 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": [
      "r49",
      "r51",
      "r105",
      "r106",
      "r392"
     ]
    },
    "us-gaap_ConcentrationRiskTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ConcentrationRiskTable",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Concentration Risk [Table]",
        "label": "Concentration Risk [Table]",
        "documentation": "Disclosure of information about concentration risk. Includes, but is not limited to, percentage of concentration risk and benchmark serving as denominator in calculation of percentage of concentration risk."
       }
      }
     },
     "auth_ref": [
      "r48",
      "r49",
      "r51",
      "r52",
      "r105",
      "r192",
      "r947"
     ]
    },
    "us-gaap_ConcentrationRiskTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ConcentrationRiskTypeDomain",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails"
     ],
     "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": [
      "r49",
      "r51",
      "r105",
      "r106",
      "r392",
      "r947"
     ]
    },
    "srt_ConsolidatedEntitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "ConsolidatedEntitiesAxis",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/DebtScheduleofMortgagePayableonRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofPreferredEquityandMezzanineLoanInvestmentsDetails",
      "http://nymtrust.com/role/NetInterestIncomeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofComponentsofNetGainLossonResidentialMortgageLoansatFairValueDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansHeldinSecuritizationTrustsNetDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consolidated Entities [Axis]",
        "label": "Consolidated Entities [Axis]",
        "documentation": "Information by consolidated entity or group of entities."
       }
      }
     },
     "auth_ref": [
      "r256",
      "r270",
      "r344",
      "r621",
      "r622",
      "r625",
      "r626",
      "r686",
      "r953",
      "r1062",
      "r1063",
      "r1064",
      "r1136",
      "r1139",
      "r1140"
     ]
    },
    "srt_ConsolidatedEntitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "ConsolidatedEntitiesDomain",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/DebtScheduleofMortgagePayableonRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofPreferredEquityandMezzanineLoanInvestmentsDetails",
      "http://nymtrust.com/role/NetInterestIncomeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofComponentsofNetGainLossonResidentialMortgageLoansatFairValueDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansHeldinSecuritizationTrustsNetDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consolidated Entities [Domain]",
        "label": "Consolidated Entities [Domain]",
        "documentation": "Entity or group of entities consolidated into reporting entity."
       }
      }
     },
     "auth_ref": [
      "r256",
      "r270",
      "r344",
      "r621",
      "r622",
      "r625",
      "r626",
      "r686",
      "r953",
      "r1062",
      "r1063",
      "r1064",
      "r1136",
      "r1139",
      "r1140"
     ]
    },
    "nymt_ConsolidatedRealEstateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ConsolidatedRealEstateMember",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consolidated Real Estate",
        "label": "Consolidated Real Estate [Member]",
        "documentation": "Consolidated Real Estate"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ConsolidatedSLSTMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ConsolidatedSLSTMember",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/NetInterestIncomeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofComponentsofNetGainLossonResidentialMortgageLoansatFairValueDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansHeldinSecuritizationTrustsNetDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consolidated SLST",
        "verboseLabel": "Consolidated SLST",
        "label": "Consolidated SLST [Member]",
        "documentation": "Consolidated SLST [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ConsolidationVariableInterestEntityPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ConsolidationVariableInterestEntityPolicy",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Principles of Consolidation and Variable Interest Entities",
        "label": "Consolidation, Variable Interest Entity, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for consolidation to describe the significant judgments and assumptions made in determining whether a variable interest held by the entity requires the variable interest entity to be consolidated and (or) disclose information about its involvement with the variable interest entity; the methodology used by the entity for determining whether or not it is the primary beneficiary of the variable interest entity; and the significant factors considered and judgments made in determining that the power to direct the activities that significantly impact the economic performance of the variable interest entity are shared (as defined)."
       }
      }
     },
     "auth_ref": [
      "r72",
      "r78",
      "r80"
     ]
    },
    "nymt_ConstructiveLoansLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ConstructiveLoansLLCMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Constructive Loans, LLC",
        "label": "Constructive Loans LLC [Member]",
        "documentation": "Constructive Loans LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ContractWithCustomerLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ContractWithCustomerLiability",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails": {
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred revenue",
        "label": "Contract with Customer, Liability",
        "documentation": "Amount of obligation to transfer good or service to customer for which consideration has been received or is receivable."
       }
      }
     },
     "auth_ref": [
      "r540",
      "r541",
      "r542"
     ]
    },
    "nymt_ContractualMaturities": {
     "xbrltype": "durationItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ContractualMaturities",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contractual maturities (up to)",
        "label": "Contractual Maturities",
        "documentation": "Contractual maturities of investments."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ContributionsOfNonControllingInterestInConsolidatedVariableInterestEntities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ContributionsOfNonControllingInterestInConsolidatedVariableInterestEntities",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contributions of non-controlling interest in Consolidated VIEs",
        "label": "Contributions Of Non-controlling Interest In Consolidated Variable Interest Entities",
        "documentation": "Contributions Of Non-controlling Interest In Consolidated Variable Interest Entities"
       }
      }
     },
     "auth_ref": []
    },
    "srt_CounterpartyNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "CounterpartyNameAxis",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "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": [
      "r282",
      "r283",
      "r342",
      "r343",
      "r497",
      "r525",
      "r685",
      "r711",
      "r775",
      "r966",
      "r969"
     ]
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "CoverAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cover [Abstract]",
        "label": "Cover [Abstract]",
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CreditDefaultSwapMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CreditDefaultSwapMember",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofComponentsofRealizedandUnrealizedGainsandLossesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Credit default swaps",
        "label": "Credit Default Swap [Member]",
        "documentation": "Credit derivative contract between credit default swap buyer and third party in which credit default swap buyer makes periodic payment to third party and third party guarantees to reimburse credit default swap buyer if original borrower defaults."
       }
      }
     },
     "auth_ref": [
      "r1034",
      "r1035"
     ]
    },
    "dei_CurrentFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "CurrentFiscalYearEndDate",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current Fiscal Year End Date",
        "label": "Current Fiscal Year End Date",
        "documentation": "End date of current fiscal year in the format --MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CurrentIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CurrentIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesScheduleofComponentsofIncomeTaxBenefitExpenseDetails": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesScheduleofComponentsofIncomeTaxBenefitExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current income tax expense",
        "label": "Current Income Tax Expense (Benefit)",
        "documentation": "Amount of current income tax expense (benefit) pertaining to taxable income (loss) from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r604",
      "r1087"
     ]
    },
    "us-gaap_DebtDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Disclosure [Abstract]",
        "label": "Debt Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtDisclosureTextBlock",
     "presentation": [
      "http://nymtrust.com/role/Debt"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "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": [
      "r173",
      "r330",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r482",
      "r483",
      "r493",
      "r499",
      "r500",
      "r501",
      "r502",
      "r503",
      "r504",
      "r509",
      "r516",
      "r517",
      "r519",
      "r676"
     ]
    },
    "us-gaap_DebtInstrumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentAxis",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtInstrumentRedemptionDetails",
      "http://nymtrust.com/role/DebtScheduleofSeniorUnsecuredNotesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Instrument [Axis]",
        "label": "Debt Instrument [Axis]",
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r123",
      "r124",
      "r200",
      "r204",
      "r344",
      "r494",
      "r495",
      "r496",
      "r497",
      "r498",
      "r500",
      "r505",
      "r506",
      "r507",
      "r508",
      "r510",
      "r511",
      "r512",
      "r513",
      "r514",
      "r515",
      "r980",
      "r981",
      "r982",
      "r983",
      "r984",
      "r1008",
      "r1085",
      "r1131",
      "r1132",
      "r1133",
      "r1206",
      "r1208"
     ]
    },
    "us-gaap_DebtInstrumentBasisSpreadOnVariableRate1": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentBasisSpreadOnVariableRate1",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofSubordinatedDebenturesDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Spread on variable interest rate",
        "terseLabel": "Interest rate",
        "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/2024",
     "localname": "DebtInstrumentCarryingAmount",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgagePayableonRealEstateDetails",
      "http://nymtrust.com/role/DebtScheduleofSeniorUnsecuredNotesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Carrying Value",
        "verboseLabel": "Outstanding Mortgage 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": [
      "r28",
      "r204",
      "r520"
     ]
    },
    "us-gaap_DebtInstrumentFaceAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentFaceAmount",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofSeniorUnsecuredNotesDetails",
      "http://nymtrust.com/role/DebtScheduleofSubordinatedDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "netLabel": "Outstanding Face Amount",
        "verboseLabel": "Face amount",
        "terseLabel": "Principal value of trust preferred securities",
        "label": "Debt Instrument, Face Amount",
        "documentation": "Face (par) amount of debt instrument at time of issuance."
       }
      }
     },
     "auth_ref": [
      "r494",
      "r676",
      "r677",
      "r981",
      "r982",
      "r1008"
     ]
    },
    "us-gaap_DebtInstrumentInterestRateIncreaseDecrease": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentInterestRateIncreaseDecrease",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate increase",
        "label": "Debt Instrument, Interest Rate, Increase (Decrease)",
        "documentation": "Incremental percentage increase (decrease) in the stated rate on a debt instrument."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DebtInstrumentInterestRateIncreaseNonRedemption": {
     "xbrltype": "percentItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtInstrumentInterestRateIncreaseNonRedemption",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instrument, interest rate increase, non-redemption",
        "label": "Debt Instrument, Interest Rate Increase, Non-Redemption",
        "documentation": "Debt Instrument, Interest Rate Increase, Non-Redemption"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentInterestRateStatedPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentInterestRateStatedPercentage",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofSeniorUnsecuredNotesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsNarrativeDetails",
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate",
        "label": "Debt Instrument, Interest Rate, Stated Percentage",
        "documentation": "Contractual interest rate for funds borrowed, under the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r126",
      "r495"
     ]
    },
    "us-gaap_DebtInstrumentLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentLineItems",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtInstrumentRedemptionDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgagePayableonRealEstateDetails",
      "http://nymtrust.com/role/DebtScheduleofSeniorUnsecuredNotesDetails",
      "http://nymtrust.com/role/DebtScheduleofSubordinatedDebenturesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsNarrativeDetails",
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesDetails"
     ],
     "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": [
      "r344",
      "r494",
      "r495",
      "r496",
      "r497",
      "r498",
      "r500",
      "r505",
      "r506",
      "r507",
      "r508",
      "r510",
      "r511",
      "r512",
      "r513",
      "r514",
      "r515",
      "r518",
      "r980",
      "r981",
      "r982",
      "r983",
      "r984",
      "r1008",
      "r1085",
      "r1206",
      "r1208"
     ]
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentNameDomain",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtInstrumentRedemptionDetails",
      "http://nymtrust.com/role/DebtScheduleofSeniorUnsecuredNotesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesDetails"
     ],
     "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": [
      "r28",
      "r344",
      "r494",
      "r495",
      "r496",
      "r497",
      "r498",
      "r500",
      "r505",
      "r506",
      "r507",
      "r508",
      "r510",
      "r511",
      "r512",
      "r513",
      "r514",
      "r515",
      "r980",
      "r981",
      "r982",
      "r983",
      "r984",
      "r1008",
      "r1085",
      "r1131",
      "r1132",
      "r1133",
      "r1206",
      "r1208"
     ]
    },
    "nymt_DebtInstrumentPercentageOfPrincipalIssued": {
     "xbrltype": "percentItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtInstrumentPercentageOfPrincipalIssued",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instrument, percentage of principal issued",
        "label": "Debt Instrument, Percentage Of Principal Issued",
        "documentation": "Debt Instrument, Percentage Of Principal Issued"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentRedemptionPeriodAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentRedemptionPeriodAxis",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtInstrumentRedemptionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Instrument, Redemption, Period [Axis]",
        "label": "Debt Instrument, Redemption, Period [Axis]",
        "documentation": "Information by period of debt redemption feature under terms of debt agreement."
       }
      }
     },
     "auth_ref": [
      "r227"
     ]
    },
    "us-gaap_DebtInstrumentRedemptionPeriodDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentRedemptionPeriodDomain",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtInstrumentRedemptionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Instrument, Redemption, Period [Domain]",
        "label": "Debt Instrument, Redemption, Period [Domain]",
        "documentation": "Period as defined under terms of the debt agreement for debt redemption features."
       }
      }
     },
     "auth_ref": [
      "r227"
     ]
    },
    "us-gaap_DebtInstrumentRedemptionPeriodFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentRedemptionPeriodFourMember",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofDebtInstrumentRedemptionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "April\u00a030, 2025 - April\u00a029, 2026",
        "label": "Debt Instrument, Redemption, Period Four [Member]",
        "documentation": "Period four representing fourth most current period of debt redemption features under terms of the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r227"
     ]
    },
    "us-gaap_DebtInstrumentRedemptionPeriodOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentRedemptionPeriodOneMember",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Instrument, Redemption, Period One",
        "label": "Debt Instrument, Redemption, Period One [Member]",
        "documentation": "Period one representing most current period of debt redemption features under terms of the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r227"
     ]
    },
    "us-gaap_DebtInstrumentRedemptionPeriodThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentRedemptionPeriodThreeMember",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtInstrumentRedemptionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Debt Instrument, Redemption, Period Three",
        "terseLabel": "April\u00a030, 2024 - April\u00a029, 2025",
        "label": "Debt Instrument, Redemption, Period Three [Member]",
        "documentation": "Period three representing third most current period of debt redemption features under terms of the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r227"
     ]
    },
    "us-gaap_DebtInstrumentRedemptionPeriodTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentRedemptionPeriodTwoMember",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtInstrumentRedemptionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Debt Instrument, Redemption, Period Two",
        "terseLabel": "April\u00a030, 2023 - April\u00a029, 2024",
        "label": "Debt Instrument, Redemption, Period Two [Member]",
        "documentation": "Period two representing second most current period of debt redemption features under terms of the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r227"
     ]
    },
    "us-gaap_DebtInstrumentRedemptionPricePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentRedemptionPricePercentage",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instrument, redemption price, percentage",
        "label": "Debt Instrument, Redemption Price, Percentage",
        "documentation": "Percentage price of original principal amount of debt at which debt can be redeemed by the issuer."
       }
      }
     },
     "auth_ref": [
      "r227"
     ]
    },
    "nymt_DebtInstrumentRedemptionPricePercentageMultiplier": {
     "xbrltype": "percentItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtInstrumentRedemptionPricePercentageMultiplier",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtInstrumentRedemptionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instrument, redemption price, percentage multiplier",
        "label": "Debt Instrument, Redemption Price, Percentage Multiplier",
        "documentation": "Debt Instrument, Redemption Price, Percentage Multiplier"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentRedemptionTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentRedemptionTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/DebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Debt Instrument Redemption",
        "label": "Debt Instrument Redemption [Table Text Block]",
        "documentation": "Tabular disclosure of debt instruments or arrangements with redemption features. Includes, but is not limited to, description of debt redemption features, percentage price at which debt can be redeemed by the issuer, and period start and end for debt maturity or redemption."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentTable",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtInstrumentRedemptionDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgagePayableonRealEstateDetails",
      "http://nymtrust.com/role/DebtScheduleofSeniorUnsecuredNotesDetails",
      "http://nymtrust.com/role/DebtScheduleofSubordinatedDebenturesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsNarrativeDetails",
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesDetails"
     ],
     "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": [
      "r28",
      "r61",
      "r65",
      "r109",
      "r178",
      "r179",
      "r344",
      "r494",
      "r495",
      "r496",
      "r497",
      "r498",
      "r500",
      "r505",
      "r506",
      "r507",
      "r508",
      "r510",
      "r511",
      "r512",
      "r513",
      "r514",
      "r515",
      "r518",
      "r980",
      "r981",
      "r982",
      "r983",
      "r984",
      "r1008",
      "r1085",
      "r1206",
      "r1208"
     ]
    },
    "us-gaap_DebtInstrumentVariableInterestRateTypeExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentVariableInterestRateTypeExtensibleEnumeration",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Instrument, Variable Interest Rate, Type [Extensible Enumeration]",
        "label": "Debt Instrument, Variable Interest Rate, Type [Extensible Enumeration]",
        "documentation": "Indicates type of variable interest rate on debt instrument."
       }
      }
     },
     "auth_ref": [
      "r773"
     ]
    },
    "nymt_DebtIssuanceCostsAmortizationRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtIssuanceCostsAmortizationRate",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt issuance costs, amortization rate",
        "label": "Debt Issuance Costs, Amortization Rate",
        "documentation": "Debt Issuance Costs, Amortization Rate"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtPolicyTextBlock",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Collateralized Debt Obligations",
        "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": [
      "r13"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAccruedInterestAfterAllowanceForCreditLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleAccruedInterestAfterAllowanceForCreditLoss",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued interest",
        "label": "Debt Securities, Available-for-Sale, Accrued Interest, after Allowance for Credit Loss",
        "documentation": "Amount, after allowance for credit loss, of accrued interest on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r406",
      "r448",
      "r449",
      "r450"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Amortized Cost",
        "label": "Debt Securities, Available-for-Sale, Amortized Cost, Excluding Accrued Interest, before Allowance for Credit Loss",
        "documentation": "Amortized cost excluding accrued interest, before allowance for credit loss, of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r448"
     ]
    },
    "nymt_DebtSecuritiesAvailableForSaleCECLAndFairValueOptionAmortizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtSecuritiesAvailableForSaleCECLAndFairValueOptionAmortizedCost",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amortized Cost",
        "label": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Amortized Cost",
        "documentation": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Amortized Cost"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Greater Than 12 months, Carrying Value",
        "label": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, 12 Months or Longer",
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for more than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset."
       }
      }
     },
     "auth_ref": [
      "r243",
      "r454",
      "r978"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Greater Than 12 months, Gross Unrealized Losses",
        "label": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss",
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for 12 months or longer, without allowance for credit loss. Includes beneficial interest in securitized financial asset."
       }
      }
     },
     "auth_ref": [
      "r243",
      "r454"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Less than 12 months, Carrying Value",
        "label": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, Less than 12 Months",
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for less than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset."
       }
      }
     },
     "auth_ref": [
      "r243",
      "r454",
      "r978"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Less Than 12 months, Gross Unrealized Losses",
        "label": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss",
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for less than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset."
       }
      }
     },
     "auth_ref": [
      "r243",
      "r454"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value",
        "verboseLabel": "Investment securities available for sale:",
        "label": "Debt Securities, Available-for-Sale, Excluding Accrued Interest",
        "documentation": "Amount excluding accrued interest, of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r1117"
     ]
    },
    "nymt_DebtSecuritiesAvailableForSaleExcludingAccruedInterestIncludingFairValueOption": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtSecuritiesAvailableForSaleExcludingAccruedInterestIncludingFairValueOption",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 3.0
      },
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofWeightedAverageLivesofInvestmentSecuritiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofWeightedAverageLivesofInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment securities available for sale, at fair value",
        "totalLabel": "Total",
        "label": "Debt Securities, Available-For-Sale, Excluding Accrued Interest, Including Fair Value Option",
        "documentation": "Debt Securities, Available-For-Sale, Excluding Accrued Interest, Including Fair Value Option"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DebtSecuritiesAvailableForSaleGrossUnrealizedLossFairValueOption": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtSecuritiesAvailableForSaleGrossUnrealizedLossFairValueOption",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails": {
       "parentTag": "nymt_DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Unrealized Losses",
        "label": "Debt Securities, Available-for-sale, Gross Unrealized Loss, Fair Value Option",
        "documentation": "Debt Securities, Available-for-sale, Gross Unrealized Losses, Fair Value Option"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtSecuritiesAvailableForSaleRealizedGain": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleRealizedGain",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofRealizedGainorLossActivityDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofRealizedGainorLossActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Realized Gains",
        "label": "Debt Securities, Available-for-Sale, Realized Gain",
        "documentation": "Amount of realized gain on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r430"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleRealizedGainLoss",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofRealizedGainorLossActivityDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofRealizedGainorLossActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Realized loss on write-downs",
        "totalLabel": "Net Realized Gains (Losses)",
        "label": "Debt Securities, Available-for-Sale, Realized Gain (Loss)",
        "documentation": "Amount of realized gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r1110"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleRealizedLoss",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofRealizedGainorLossActivityDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofRealizedGainorLossActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Realized Losses",
        "label": "Debt Securities, Available-for-Sale, Realized Loss",
        "documentation": "Amount of realized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r430"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleTable",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofRealizedGainorLossActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Securities, Available-for-sale [Table]",
        "label": "Debt Securities, Available-for-Sale [Table]",
        "documentation": "Disclosure of information about investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Unrealized losses on investment securities available for sale",
        "label": "Debt Securities, Available-for-Sale, Unrealized Gain (Loss)",
        "documentation": "Amount of unrealized gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r1104",
      "r1105"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total, Carrying Value",
        "label": "Debt Securities, Available-for-Sale, Unrealized Loss Position",
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in unrealized loss position without allowance for credit loss."
       }
      }
     },
     "auth_ref": [
      "r241",
      "r452",
      "r978"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTotalLabel": "Total Gross Unrealized Losses",
        "label": "Debt Securities, Available-for-Sale, Unrealized Loss Position, Accumulated Loss",
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in unrealized loss position, without allowance for credit loss. Includes beneficial interest in securitized financial asset."
       }
      }
     },
     "auth_ref": [
      "r242",
      "r453"
     ]
    },
    "nymt_DebtSecuritiesAvailableForSaleWeightedAverageLivesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtSecuritiesAvailableForSaleWeightedAverageLivesTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Weighted Average Lives of Investment Securities",
        "label": "Debt Securities, Available-For-Sale, Weighted Average Lives [Table Text Block]",
        "documentation": "Debt Securities, Available-For-Sale, Weighted Average Lives [Table Text Block]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Amortized Cost",
        "label": "Debt Securities, Available-for-sale, Amortized Cost, Fair Value Option",
        "documentation": "Debt Securities, Available-for-sale, Amortized Cost, Fair Value Option"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DebtSecuritiesAvailableforsaleCECLandFairValueOption": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtSecuritiesAvailableforsaleCECLandFairValueOption",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value",
        "label": "Debt Securities, Available-for-sale, CECL and Fair Value Option",
        "documentation": "Debt Securities, Available-for-sale, CECL and Fair Value Option"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DebtSecuritiesAvailableforsaleCECLandFairValueOptionAccumulatedGrossUnrealizedGainbeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtSecuritiesAvailableforsaleCECLandFairValueOptionAccumulatedGrossUnrealizedGainbeforeTax",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrealized Gains",
        "label": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Accumulated Gross Unrealized Gain, before Tax",
        "documentation": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Accumulated Gross Unrealized Gain, before Tax"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DebtSecuritiesAvailableforsaleCECLandFairValueOptionAccumulatedGrossUnrealizedLossbeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtSecuritiesAvailableforsaleCECLandFairValueOptionAccumulatedGrossUnrealizedLossbeforeTax",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Unrealized Losses",
        "label": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Accumulated Gross Unrealized Loss, before Tax",
        "documentation": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Accumulated Gross Unrealized Loss, before Tax"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DebtSecuritiesAvailableforsaleFairValueOption": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtSecuritiesAvailableforsaleFairValueOption",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails": {
       "parentTag": "nymt_DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value",
        "label": "Debt Securities, Available-for-sale, Fair Value Option",
        "documentation": "Debt Securities, Available-for-sale, Fair Value Option"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DebtSecuritiesAvailableforsaleGrossUnrealizedGainsFairValueOption": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtSecuritiesAvailableforsaleGrossUnrealizedGainsFairValueOption",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails": {
       "parentTag": "nymt_DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrealized Gains",
        "label": "Debt Securities, Available-for-sale, Gross Unrealized Gains, Fair Value Option",
        "documentation": "Debt Securities, Available-for-sale, Unrealized Gains, Fair Value Option"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DebtSecuritiesResidentialLoanSecuritizationsAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtSecuritiesResidentialLoanSecuritizationsAtFairValue",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential loan securitizations at fair value",
        "label": "Debt Securities, Residential Loan Securitizations at Fair Value",
        "documentation": "Debt Securities, Residential Loan Securitizations at Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DebtSecuritiesTradingAvailableForSaleDebtMaturitiesZeroThroughYearFiveFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtSecuritiesTradingAvailableForSaleDebtMaturitiesZeroThroughYearFiveFairValue",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofWeightedAverageLivesofInvestmentSecuritiesDetails": {
       "parentTag": "nymt_DebtSecuritiesAvailableForSaleExcludingAccruedInterestIncludingFairValueOption",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofWeightedAverageLivesofInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "0 to 5 years",
        "label": "Debt Securities, Trading, Available-For-Sale, Debt Maturities, Zero Through Year Five, Fair Value",
        "documentation": "Debt Securities, Trading, Available-For-Sale, Debt Maturities, Zero Through Year Five, Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DebtSecuritiesTradingAvailableforsaleMaturityAllocatedandSingleMaturityDateafter10YearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtSecuritiesTradingAvailableforsaleMaturityAllocatedandSingleMaturityDateafter10YearsFairValue",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofWeightedAverageLivesofInvestmentSecuritiesDetails": {
       "parentTag": "nymt_DebtSecuritiesAvailableForSaleExcludingAccruedInterestIncludingFairValueOption",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofWeightedAverageLivesofInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "10+ years",
        "label": "Debt Securities, Trading, Available-for-sale, Maturity, Allocated and Single Maturity Date, after 10 Years, Fair Value",
        "documentation": "Debt Securities, Trading, Available-for-sale, Maturity, Allocated and Single Maturity Date, after 10 Years, Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DebtSecuritiesTradingAvailableforsaleMaturityAllocatedandSingleMaturityDateafterFiveThroughTenYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DebtSecuritiesTradingAvailableforsaleMaturityAllocatedandSingleMaturityDateafterFiveThroughTenYearsFairValue",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofWeightedAverageLivesofInvestmentSecuritiesDetails": {
       "parentTag": "nymt_DebtSecuritiesAvailableForSaleExcludingAccruedInterestIncludingFairValueOption",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofWeightedAverageLivesofInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Over 5 to 10 years",
        "label": "Debt Securities, Trading, Available-for-sale, Maturity, Allocated and Single Maturity Date, after Five Through Ten Years, Fair Value",
        "documentation": "Debt Securities, Trading, Available-for-sale, Maturity, Allocated and Single Maturity Date, after Five Through Ten Years, Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtWeightedAverageInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtWeightedAverageInterestRate",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgagePayableonRealEstateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted average interest rate",
        "verboseLabel": "Weighted Average Interest Rate",
        "label": "Debt, Weighted Average Interest Rate",
        "documentation": "Weighted average interest rate of debt outstanding."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeconsolidationGainOrLossAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeconsolidationGainOrLossAmount",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Gain on de-consolidation of joint venture equity investment in Consolidated VIE",
        "terseLabel": "Gain on de-consolidation of joint venture equity investment in Consolidated VIE",
        "label": "Deconsolidation, Gain (Loss), Amount",
        "documentation": "Amount of gain (loss) from deconsolidation of subsidiary and derecognition of group of assets constituting transfer of business or nonprofit activity, excluding conveyance of oil and gas mineral rights and transfer of good or service in contract with customer."
       }
      }
     },
     "auth_ref": [
      "r75"
     ]
    },
    "us-gaap_DeferredCostsCapitalizedPrepaidAndOtherAssetsDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredCostsCapitalizedPrepaidAndOtherAssetsDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Costs, Capitalized, Prepaid, and Other Assets Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredFinanceCostsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredFinanceCostsNet",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgagePayableonRealEstateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred loan fees, net",
        "negatedLabel": "Net Deferred Finance Cost",
        "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": [
      "r1142",
      "r1205",
      "r1206",
      "r1208"
     ]
    },
    "us-gaap_DeferredIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesScheduleofComponentsofIncomeTaxBenefitExpenseDetails": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesScheduleofComponentsofIncomeTaxBenefitExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred income tax expense (benefit)",
        "label": "Deferred Income Tax Expense (Benefit)",
        "documentation": "Amount of deferred income tax expense (benefit) pertaining to income (loss) from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r251",
      "r1087"
     ]
    },
    "us-gaap_DeferredIncomeTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredIncomeTaxLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsLiabilitiesNet",
       "weight": -1.0,
       "order": 2.0
      },
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails": {
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred tax liabilities",
        "totalLabel": "Deferred tax liabilities",
        "label": "Deferred Tax Liabilities, Gross",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences."
       }
      }
     },
     "auth_ref": [
      "r130",
      "r131",
      "r201",
      "r597"
     ]
    },
    "us-gaap_DeferredTaxAssetsCapitalLossCarryforwards": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredTaxAssetsCapitalLossCarryforwards",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Capital loss carryover",
        "label": "Deferred Tax Assets, Capital Loss Carryforwards",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible capital loss carryforwards."
       }
      }
     },
     "auth_ref": [
      "r1176"
     ]
    },
    "us-gaap_DeferredTaxAssetsGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredTaxAssetsGross",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Deferred tax assets",
        "label": "Deferred Tax Assets, Gross",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards."
       }
      }
     },
     "auth_ref": [
      "r598"
     ]
    },
    "us-gaap_DeferredTaxAssetsGrossAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredTaxAssetsGrossAbstract",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred tax assets",
        "label": "Deferred Tax Assets, Gross [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxAssetsLiabilitiesNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredTaxAssetsLiabilitiesNet",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total net deferred tax asset",
        "label": "Deferred Tax Assets, Net",
        "documentation": "Amount, after allocation of valuation allowances and deferred tax liability, of deferred tax asset attributable to deductible differences and carryforwards, without jurisdictional netting."
       }
      }
     },
     "auth_ref": [
      "r1175"
     ]
    },
    "us-gaap_DeferredTaxAssetsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredTaxAssetsNet",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsLiabilitiesNet",
       "weight": 1.0,
       "order": 1.0
      },
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails": {
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred tax assets",
        "totalLabel": "Net deferred tax assets",
        "label": "Deferred Tax Assets, Net of Valuation Allowance",
        "documentation": "Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards."
       }
      }
     },
     "auth_ref": [
      "r1175"
     ]
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwards": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredTaxAssetsOperatingLossCarryforwards",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net operating loss carryforward",
        "label": "Deferred Tax Assets, Operating Loss Carryforwards",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards."
       }
      }
     },
     "auth_ref": [
      "r1176"
     ]
    },
    "us-gaap_DeferredTaxAssetsOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredTaxAssetsOther",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "GAAP/Tax basis differences",
        "label": "Deferred Tax Assets, Other",
        "documentation": "Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences, classified as other."
       }
      }
     },
     "auth_ref": [
      "r1176"
     ]
    },
    "us-gaap_DeferredTaxAssetsValuationAllowance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredTaxAssetsValuationAllowance",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Less: Valuation allowance",
        "label": "Deferred Tax Assets, Valuation Allowance",
        "documentation": "Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized."
       }
      }
     },
     "auth_ref": [
      "r599"
     ]
    },
    "us-gaap_DeferredTaxLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredTaxLiabilitiesAbstract",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred tax liabilities",
        "label": "Deferred Tax Liabilities, Gross [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxLiabilitiesOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredTaxLiabilitiesOther",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "GAAP/Tax basis differences",
        "label": "Deferred Tax Liabilities, Other",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences classified as other."
       }
      }
     },
     "auth_ref": [
      "r1176"
     ]
    },
    "us-gaap_DepreciationAmortizationAndAccretionNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DepreciationAmortizationAndAccretionNet",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetScheduleofComponentsofIncomeFromRealEstateAndExpensesDetails": {
       "parentTag": "us-gaap_DepreciationDepletionAndAmortization",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetScheduleofComponentsofIncomeFromRealEstateAndExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Depreciation expense on operating real estate",
        "label": "Depreciation, Amortization and Accretion, Net",
        "documentation": "The aggregate net amount of depreciation, amortization, and accretion recognized during an accounting period. As a noncash item, the net amount is added back to net income when calculating cash provided by or used in operations using the indirect method."
       }
      }
     },
     "auth_ref": [
      "r11"
     ]
    },
    "us-gaap_DepreciationDepletionAndAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DepreciationDepletionAndAmortization",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "nymt_ExpensesRelatedToOperatingRealEstate",
       "weight": 1.0,
       "order": 3.0
      },
      "http://nymtrust.com/role/RealEstateNetScheduleofComponentsofIncomeFromRealEstateAndExpensesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/RealEstateNetScheduleofComponentsofIncomeFromRealEstateAndExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Depreciation and amortization",
        "totalLabel": "Total depreciation and amortization",
        "label": "Depreciation, Depletion and Amortization",
        "documentation": "The aggregate expense recognized in the current period that allocates the cost of tangible assets, intangible assets, or depleting assets to periods that benefit from use of the assets."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r378",
      "r384",
      "r389",
      "r973",
      "r974"
     ]
    },
    "us-gaap_DerivativeAssetFairValueGrossLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeAssetFairValueGrossLiability",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails": {
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Gross Amounts Offset in Balance Sheets",
        "label": "Derivative Asset, Subject to Master Netting Arrangement, Liability Offset",
        "documentation": "Fair value of liability associated with financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset."
       }
      }
     },
     "auth_ref": [
      "r22",
      "r26",
      "r189",
      "r190",
      "r921",
      "r922"
     ]
    },
    "us-gaap_DerivativeAssetFairValueNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeAssetFairValueNetAbstract",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative assets:",
        "label": "Derivative Asset, Subject to Master Netting Arrangement, before Offset of Collateral [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DerivativeAssetLiabilityNotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DerivativeAssetLiabilityNotionalAmount",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "label": "Derivative Asset (Liability), Notional Amount",
        "documentation": "Derivative Asset (Liability), Notional Amount"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeAssetStatementOfFinancialPositionExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeAssetStatementOfFinancialPositionExtensibleEnumeration",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Asset, Statement of Financial Position [Extensible Enumeration]",
        "label": "Derivative Asset, Statement of Financial Position [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of financial position that includes derivative asset."
       }
      }
     },
     "auth_ref": [
      "r627"
     ]
    },
    "us-gaap_DerivativeAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeAssets",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails": {
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative assets",
        "verboseLabel": "Derivative Asset, carrying value",
        "label": "Derivative Asset",
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets not subject to a master netting arrangement and not elected to be offset."
       }
      }
     },
     "auth_ref": [
      "r300",
      "r302",
      "r643",
      "r644",
      "r657",
      "r667",
      "r836",
      "r837",
      "r838",
      "r840",
      "r841",
      "r843",
      "r844",
      "r845",
      "r847",
      "r848",
      "r863",
      "r864",
      "r914",
      "r918",
      "r920",
      "r921",
      "r923",
      "r924",
      "r969",
      "r997",
      "r1001",
      "r1029",
      "r1191",
      "r1192",
      "r1193",
      "r1260"
     ]
    },
    "us-gaap_DerivativeAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeAssetsAbstract",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative assets",
        "label": "Derivative Asset [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeAverageFixedInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeAverageFixedInterestRate",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted Average Fixed Interest Rate",
        "label": "Derivative, Average Fixed Interest Rate",
        "documentation": "Average fixed interest rate related to the group of interest rate derivatives."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeAverageVariableInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeAverageVariableInterestRate",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateCapContractsStrikePriceandNotionalAmountsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted Average Variable Interest Rate",
        "label": "Derivative, Average Variable Interest Rate",
        "documentation": "Average variable interest rate related to the group of interest rate derivatives."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeCapInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeCapInterestRate",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateCapContractsStrikePriceandNotionalAmountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SOFR Strike Price/Range",
        "label": "Derivative, Cap Interest Rate",
        "documentation": "Cap rate on an interest rate derivative such as an interest rate cap or collar. If market rates exceed the cap rate, a payment or receipt is triggered on the contract."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeContractTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeContractTypeDomain",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofComponentsofRealizedandUnrealizedGainsandLossesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateCapContractsStrikePriceandNotionalAmountsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Contract [Domain]",
        "label": "Derivative Contract [Domain]",
        "documentation": "Financial instrument or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset."
       }
      }
     },
     "auth_ref": [
      "r845",
      "r848",
      "r862",
      "r863",
      "r864",
      "r866",
      "r867",
      "r868",
      "r869",
      "r871",
      "r872",
      "r873",
      "r874",
      "r884",
      "r885",
      "r886",
      "r887",
      "r890",
      "r891",
      "r892",
      "r893",
      "r914",
      "r915",
      "r920",
      "r923",
      "r1027",
      "r1029",
      "r1194",
      "r1195",
      "r1196",
      "r1197",
      "r1198",
      "r1199",
      "r1201",
      "r1202"
     ]
    },
    "us-gaap_DerivativeFairValueOfDerivativeAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeFairValueOfDerivativeAsset",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails": {
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral",
       "weight": 1.0,
       "order": 1.0
      },
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Gross Amount of Recognized Assets (Liabilities)",
        "terseLabel": "Derivative assets",
        "label": "Derivative Asset, Subject to Master Netting Arrangement, before Offset",
        "documentation": "Fair value, before effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets elected not to be offset. Excludes assets not subject to a master netting arrangement."
       }
      }
     },
     "auth_ref": [
      "r24",
      "r142",
      "r189",
      "r190",
      "r299",
      "r969"
     ]
    },
    "us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total derivative assets",
        "totalLabel": "Net Amounts of Assets (Liabilities) Presented in Balance Sheets",
        "label": "Derivative Asset, Subject to Master Netting Arrangement, before Offset of Collateral",
        "documentation": "Fair value, after offset of derivative liability, of financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, before offset against an obligation to return collateral under a master netting arrangement. Includes assets elected not to be offset. Excludes assets not subject to a master netting arrangement."
       }
      }
     },
     "auth_ref": [
      "r23",
      "r25",
      "r27",
      "r100"
     ]
    },
    "us-gaap_DerivativeFairValueOfDerivativeLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeFairValueOfDerivativeLiability",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails": {
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Gross Amount of Recognized Assets (Liabilities)",
        "label": "Derivative Liability, Subject to Master Netting Arrangement, before Offset",
        "documentation": "Fair value, before effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities elected not to be offset. Excludes liabilities not subject to a master netting arrangement."
       }
      }
     },
     "auth_ref": [
      "r24",
      "r142",
      "r189",
      "r190",
      "r299",
      "r969"
     ]
    },
    "us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total derivative liabilities",
        "negatedTotalLabel": "Net Amounts of Assets (Liabilities) Presented in Balance Sheets",
        "label": "Derivative Liability, Subject to Master Netting Arrangement, before Offset of Collateral",
        "documentation": "Fair value, after offset of derivative asset, of financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, elected not to be and before offset against a right to receive collateral under a master netting arrangement. Includes liabilities elected not to be offset. Excludes liabilities not subject to a master netting arrangement."
       }
      }
     },
     "auth_ref": [
      "r23",
      "r25",
      "r27",
      "r100"
     ]
    },
    "us-gaap_DerivativeFairValueOfDerivativeNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeFairValueOfDerivativeNet",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Asset, estimated fair value",
        "label": "Derivative, Fair Value, Net",
        "documentation": "Fair value of the assets less the liabilities of a derivative or group of derivatives."
       }
      }
     },
     "auth_ref": [
      "r667"
     ]
    },
    "us-gaap_DerivativeFinancialInstrumentsAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeFinancialInstrumentsAssetsMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Asset",
        "label": "Derivative Financial Instruments, Assets [Member]",
        "documentation": "Financial asset or other contract with one or more underlyings, with notional amount or payment provision or both, and contract can be net settled by means outside contract or delivery of asset."
       }
      }
     },
     "auth_ref": [
      "r658"
     ]
    },
    "us-gaap_DerivativeInstrumentRiskAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeInstrumentRiskAxis",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofComponentsofRealizedandUnrealizedGainsandLossesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateCapContractsStrikePriceandNotionalAmountsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Instrument [Axis]",
        "label": "Derivative Instrument [Axis]",
        "documentation": "Information by type of derivative contract."
       }
      }
     },
     "auth_ref": [
      "r91",
      "r94",
      "r96",
      "r191",
      "r845",
      "r848",
      "r862",
      "r863",
      "r864",
      "r866",
      "r867",
      "r868",
      "r869",
      "r871",
      "r872",
      "r873",
      "r874",
      "r884",
      "r885",
      "r886",
      "r887",
      "r890",
      "r891",
      "r892",
      "r893",
      "r914",
      "r915",
      "r920",
      "r923",
      "r969",
      "r1027",
      "r1029",
      "r1194",
      "r1195",
      "r1196",
      "r1197",
      "r1198",
      "r1199",
      "r1201",
      "r1202"
     ]
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Instruments and Hedging Activities Disclosure [Abstract]",
        "label": "Derivative Instruments and Hedging Activities Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Instruments and Hedging Activities",
        "label": "Derivative Instruments and Hedging Activities Disclosure [Text Block]",
        "documentation": "The entire disclosure for derivative instruments and hedging activities including, but not limited to, risk management strategies, non-hedging derivative instruments, assets, liabilities, revenue and expenses, and methodologies and assumptions used in determining the amounts."
       }
      }
     },
     "auth_ref": [
      "r188",
      "r630",
      "r637"
     ]
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofComponentsofRealizedandUnrealizedGainsandLossesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInitialMarginDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateCapContractsStrikePriceandNotionalAmountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Instruments and Hedging Activities Disclosures [Line Items]",
        "label": "Derivative Instruments and Hedging Activities Disclosures [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofComponentsofRealizedandUnrealizedGainsandLossesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInitialMarginDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateCapContractsStrikePriceandNotionalAmountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Instruments and Hedging Activities Disclosures [Table]",
        "label": "Derivative Instruments and Hedging Activities Disclosures [Table]",
        "documentation": "Disclosure of information about derivatives and hedging activities."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DerivativeInstrumentsandHedgingActivitiesDisclosuresRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DerivativeInstrumentsandHedgingActivitiesDisclosuresRollForward",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Instruments and Hedging Activities Disclosures [Roll Forward]",
        "label": "Derivative Instruments and Hedging Activities Disclosures [Roll Forward]",
        "documentation": "Derivative Instruments and Hedging Activities Disclosures [Roll Forward]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "parentTag": "us-gaap_LiabilitiesFairValueDisclosure",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative liabilities",
        "label": "Derivative Liability",
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities not subject to a master netting arrangement and not elected to be offset."
       }
      }
     },
     "auth_ref": [
      "r300",
      "r302",
      "r643",
      "r644",
      "r657",
      "r667",
      "r836",
      "r837",
      "r838",
      "r840",
      "r843",
      "r844",
      "r845",
      "r847",
      "r848",
      "r871",
      "r873",
      "r874",
      "r915",
      "r916",
      "r918",
      "r920",
      "r921",
      "r923",
      "r924",
      "r969",
      "r1191",
      "r1192",
      "r1193",
      "r1260"
     ]
    },
    "us-gaap_DerivativeLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeLiabilitiesAbstract",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative liabilities",
        "label": "Derivative Liability [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeLiabilityFairValueGrossAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeLiabilityFairValueGrossAsset",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails": {
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gross Amounts Offset in Balance Sheets",
        "label": "Derivative Liability, Subject to Master Netting Arrangement, Asset Offset",
        "documentation": "Fair value of asset associated with financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset."
       }
      }
     },
     "auth_ref": [
      "r22",
      "r26",
      "r189",
      "r190",
      "r921",
      "r922",
      "r967"
     ]
    },
    "us-gaap_DerivativeLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeLineItems",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesNarrativeDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative [Line Items]",
        "label": "Derivative [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": [
      "r637"
     ]
    },
    "us-gaap_DerivativeNotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeNotionalAmount",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateCapContractsStrikePriceandNotionalAmountsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Notional Amount",
        "label": "Derivative, Notional Amount",
        "documentation": "Nominal or face amount used to calculate payment on derivative."
       }
      }
     },
     "auth_ref": [
      "r1183",
      "r1184"
     ]
    },
    "nymt_DerivativePaymentTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DerivativePaymentTypeAxis",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Payment Type [Axis]",
        "label": "Derivative Payment Type [Axis]",
        "documentation": "Derivative Payment Type"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DerivativePaymentTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DerivativePaymentTypeDomain",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Payment Type [Domain]",
        "label": "Derivative Payment Type [Domain]",
        "documentation": "Derivative Payment Type [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeTable",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesNarrativeDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative [Table]",
        "label": "Derivative [Table]",
        "documentation": "Disclosure of information about derivative instrument or group of derivative instruments, including, but not limited to, type of derivative instrument, risk being hedged, notional amount, hedge designation, related hedged item, inception date, and maturity date."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r85",
      "r86",
      "r88",
      "r89",
      "r92",
      "r94",
      "r98",
      "r99",
      "r102",
      "r637"
     ]
    },
    "us-gaap_DerivativesFairValueLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativesFairValueLineItems",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivatives, Fair Value [Line Items]",
        "label": "Derivatives, Fair Value [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": []
    },
    "srt_DirectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "DirectorMember",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Director",
        "label": "Director [Member]",
        "documentation": "Person serving on board of directors."
       }
      }
     },
     "auth_ref": [
      "r1065",
      "r1100",
      "r1261"
     ]
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stock Based Compensation",
        "label": "Share-Based Payment Arrangement [Text Block]",
        "documentation": "The entire disclosure for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r551",
      "r555",
      "r583",
      "r584",
      "r586",
      "r991"
     ]
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share-based Payment Arrangement [Abstract]",
        "label": "Share-Based Payment Arrangement [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DiscontinuedOperationsAndDisposalGroupsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DiscontinuedOperationsAndDisposalGroupsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Discontinued Operations and Disposal Groups [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DiscontinuedOperationsHeldforsaleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DiscontinuedOperationsHeldforsaleMember",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Discontinued Operations, Held-for-sale",
        "label": "Discontinued Operations, Held-for-Sale [Member]",
        "documentation": "Component or group of components representing strategic shift that has or will have major effect on operation and financial result and business and nonprofit activity on acquisition and upon joint venture formation, classified as held-for-sale."
       }
      }
     },
     "auth_ref": [
      "r5",
      "r6",
      "r288"
     ]
    },
    "us-gaap_DisposalGroupClassificationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DisposalGroupClassificationAxis",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disposal Group Classification [Axis]",
        "label": "Disposal Group Classification [Axis]",
        "documentation": "Information by disposal group classification."
       }
      }
     },
     "auth_ref": [
      "r288"
     ]
    },
    "us-gaap_DisposalGroupClassificationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DisposalGroupClassificationDomain",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disposal Group Classification [Domain]",
        "label": "Disposal Group Classification [Domain]",
        "documentation": "Component or group of components disposed of, including but not limited to, disposal group held-for-sale or disposed of by sale, disposed of by means other than sale, and discontinued operations."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DisposalGroupHeldforsaleNotDiscontinuedOperationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DisposalGroupHeldforsaleNotDiscontinuedOperationsMember",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disposal Group, Held-for-Sale, Not Discontinued Operations",
        "label": "Disposal Group, Held-for-Sale, Not Discontinued Operations [Member]",
        "documentation": "Disposal group that is classified as held-for-sale. Excludes disposals classified as discontinued operations."
       }
      }
     },
     "auth_ref": [
      "r3",
      "r21",
      "r288"
     ]
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DisposalGroupIncludingDiscontinuedOperationCashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails": {
       "parentTag": "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and cash equivalents",
        "label": "Disposal Group, Including Discontinued Operation, Cash and Cash Equivalents",
        "documentation": "Amount classified as cash and cash equivalents attributable to disposal group held for sale or disposed of."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r112",
      "r118",
      "r168"
     ]
    },
    "nymt_DisposalGroupIncludingDiscontinuedOperationLongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DisposalGroupIncludingDiscontinuedOperationLongTermDebt",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mortgages payable on real estate in disposal group held for sale, carrying value",
        "label": "Disposal Group, Including Discontinued Operation, Long-Term Debt",
        "documentation": "Disposal Group, Including Discontinued Operation, Long-Term Debt"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DisposalGroupIncludingDiscontinuedOperationLongTermDebtFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DisposalGroupIncludingDiscontinuedOperationLongTermDebtFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mortgages payable on real estate in disposal group held for sale, estimated fair value",
        "label": "Disposal Group, Including Discontinued Operation, Long-Term Debt, Fair Value Disclosure",
        "documentation": "Disposal Group, Including Discontinued Operation, Long-Term Debt, Fair Value Disclosure"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DisposalGroupIncludingDiscontinuedOperationMortgagesPayableInDefaultAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DisposalGroupIncludingDiscontinuedOperationMortgagesPayableInDefaultAmount",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mortgages payable to joint venture equity investments in default, amount",
        "label": "Disposal Group, Including Discontinued Operation, Mortgages Payable In Default, Amount",
        "documentation": "Disposal Group, Including Discontinued Operation, Mortgages Payable In Default, Amount"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DisposalGroupIncludingDiscontinuedOperationMortgagesPayableInDefaultInterestUnpaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DisposalGroupIncludingDiscontinuedOperationMortgagesPayableInDefaultInterestUnpaid",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mortgages payable to joint venture equity investments in default, amount of unpaid interest",
        "label": "Disposal Group, Including Discontinued Operation, Mortgages Payable In Default, Interest Unpaid",
        "documentation": "Disposal Group, Including Discontinued Operation, Mortgages Payable In Default, Interest Unpaid"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DisposalGroupIncludingDiscontinuedOperationMortgagesPayableInDefaultNumberOfJointVentures": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DisposalGroupIncludingDiscontinuedOperationMortgagesPayableInDefaultNumberOfJointVentures",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mortgages payable to joint venture equity investments in default, number of joint ventures",
        "label": "Disposal Group, Including Discontinued Operation, Mortgages Payable In Default, Number Of Joint Ventures",
        "documentation": "Disposal Group, Including Discontinued Operation, Mortgages Payable In Default, Number Of Joint Ventures"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DisposalGroupIncludingDiscontinuedOperationMortgagesPayableOnRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DisposalGroupIncludingDiscontinuedOperationMortgagesPayableOnRealEstate",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails": {
       "parentTag": "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mortgages payable on real estate, net",
        "label": "Disposal Group, Including Discontinued Operation, Mortgages Payable On Real Estate",
        "documentation": "Disposal Group, Including Discontinued Operation, Mortgages Payable On Real Estate"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DisposalGroupIncludingDiscontinuedOperationOtherAssets",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails": {
       "parentTag": "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other assets",
        "label": "Disposal Group, Including Discontinued Operation, Other Assets",
        "documentation": "Amount classified as other assets attributable to disposal group held for sale or disposed of."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r112",
      "r118",
      "r168"
     ]
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DisposalGroupIncludingDiscontinuedOperationOtherLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails": {
       "parentTag": "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other liabilities",
        "label": "Disposal Group, Including Discontinued Operation, Other Liabilities",
        "documentation": "Amount classified as other liabilities attributable to disposal group held for sale or disposed of."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r112",
      "r118",
      "r168"
     ]
    },
    "nymt_DisposalGroupIncludingDiscontinuedOperationRealEstateNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DisposalGroupIncludingDiscontinuedOperationRealEstateNet",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails": {
       "parentTag": "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Real estate, net",
        "label": "Disposal Group, Including Discontinued Operation, Real Estate, Net",
        "documentation": "Disposal Group, Including Discontinued Operation, Real Estate, Net"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DisposalGroupIncludingDiscontinuedOperationsDerivativeAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DisposalGroupIncludingDiscontinuedOperationsDerivativeAssets",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative assets in disposal group held for sale, carrying value",
        "label": "Disposal Group, Including Discontinued Operations, Derivative Assets",
        "documentation": "Disposal Group, Including Discontinued Operations, Derivative Assets"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_DisposalGroupIncludingDiscontinuedOperationsDerivativeAssetsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "DisposalGroupIncludingDiscontinuedOperationsDerivativeAssetsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative assets in disposal group held for sale, estimated fair value",
        "label": "Disposal Group, Including Discontinued Operations, Derivative Assets, Fair Value Disclosure",
        "documentation": "Disposal Group, Including Discontinued Operations, Derivative Assets, Fair Value Disclosure"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DisposalGroupNotDiscontinuedOperationGainLossOnDisposal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DisposalGroupNotDiscontinuedOperationGainLossOnDisposal",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Realized loss",
        "label": "Disposal Group, Not Discontinued Operation, Gain (Loss) on Disposal",
        "documentation": "Amount before tax of gain (loss) recognized on the sale or disposal of a disposal group. Excludes discontinued operations."
       }
      }
     },
     "auth_ref": [
      "r469",
      "r1083",
      "r1127"
     ]
    },
    "us-gaap_DisposalGroupNotDiscontinuedOperationLossGainOnWriteDown": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DisposalGroupNotDiscontinuedOperationLossGainOnWriteDown",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_OtherOperatingIncomeExpenseNet",
       "weight": -1.0,
       "order": 7.0
      },
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Loss on reclassification of disposal group",
        "terseLabel": "Loss on reclassification of disposal group",
        "label": "Disposal Group, Not Discontinued Operation, Loss (Gain) on Write-down",
        "documentation": "Amount, before tax, of (gain) loss recognized for the (reversal of write-down) write-down to fair value, less cost to sell, of a disposal group. Excludes discontinued operations."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r12",
      "r167"
     ]
    },
    "us-gaap_DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSale"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets and Liabilities of Disposal Group Held for Sale",
        "label": "Disposal Groups, Including Discontinued Operations, Disclosure [Text Block]",
        "documentation": "The entire disclosure related to a disposal group. Includes, but is not limited to, a discontinued operation, disposal classified as held-for-sale or disposed of by means other than sale or disposal of an individually significant component."
       }
      }
     },
     "auth_ref": [
      "r111",
      "r164"
     ]
    },
    "us-gaap_DividendsCommonStockCash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DividendsCommonStockCash",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Dividends declared on common stock",
        "label": "Dividends, Common Stock, Cash",
        "documentation": "Amount of paid and unpaid common stock dividends declared with the form of settlement in cash."
       }
      }
     },
     "auth_ref": [
      "r180"
     ]
    },
    "us-gaap_DividendsPayableCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DividendsPayableCurrentAndNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails": {
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Dividends declared on stock to be paid in subsequent period",
        "terseLabel": "Dividends and dividend equivalents payable",
        "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": [
      "r124",
      "r128",
      "r202",
      "r1037",
      "r1225"
     ]
    },
    "us-gaap_DividendsPayableLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DividendsPayableLineItems",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails"
     ],
     "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/2024",
     "localname": "DividendsPayableTable",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails"
     ],
     "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": [
      "r44"
     ]
    },
    "us-gaap_DividendsPreferredStockCash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DividendsPreferredStockCash",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Dividends declared on preferred stock",
        "label": "Dividends, Preferred Stock, Cash",
        "documentation": "Amount of paid and unpaid preferred stock dividends declared with the form of settlement in cash."
       }
      }
     },
     "auth_ref": [
      "r7",
      "r180"
     ]
    },
    "us-gaap_DividendsShareBasedCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DividendsShareBasedCompensation",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Dividends attributable to dividend equivalents",
        "label": "Dividend, Share-Based Payment Arrangement",
        "documentation": "Amount of paid and unpaid cash, stock, and paid-in-kind dividends declared for award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentFiscalPeriodFocus": {
     "xbrltype": "fiscalPeriodItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentFiscalPeriodFocus",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Fiscal Period Focus",
        "label": "Document Fiscal Period Focus",
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3. 1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentFiscalYearFocus": {
     "xbrltype": "gYearItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentFiscalYearFocus",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Fiscal Year Focus",
        "label": "Document Fiscal Year Focus",
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentInformationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentInformationLineItems",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Information [Line Items]",
        "label": "Document Information [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentInformationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentInformationTable",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Information [Table]",
        "label": "Document Information [Table]",
        "documentation": "Container to support the formal attachment of each official or unofficial, public or private document as part of a submission package."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentPeriodEndDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Period End Date",
        "label": "Document Period End Date",
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period. The format of the date is YYYY-MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentQuarterlyReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentQuarterlyReport",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Quarterly Report",
        "label": "Document Quarterly Report",
        "documentation": "Boolean flag that is true only for a form used as an quarterly report."
       }
      }
     },
     "auth_ref": [
      "r1044"
     ]
    },
    "dei_DocumentTransitionReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentTransitionReport",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Transition Report",
        "label": "Document Transition Report",
        "documentation": "Boolean flag that is true only for a form used as a transition report."
       }
      }
     },
     "auth_ref": [
      "r1045"
     ]
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentType",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Type",
        "label": "Document Type",
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EarningsPerShareAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Earnings Per Share [Abstract]",
        "label": "Earnings Per Share [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareBasic": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EarningsPerShareBasic",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossPerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Basic loss per common share (in dollars per share)",
        "terseLabel": "Basic Loss per Common Share (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": [
      "r315",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r360",
      "r363",
      "r371",
      "r372",
      "r373",
      "r377",
      "r616",
      "r619",
      "r640",
      "r641",
      "r770",
      "r799",
      "r970"
     ]
    },
    "us-gaap_EarningsPerShareBasicAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EarningsPerShareBasicAbstract",
     "presentation": [
      "http://nymtrust.com/role/LossPerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Basic Loss per Common Share:",
        "label": "Earnings Per Share, Basic [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareDiluted": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EarningsPerShareDiluted",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossPerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Diluted loss per common share (in dollars per share)",
        "verboseLabel": "Diluted Loss per Common Share (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": [
      "r315",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r363",
      "r371",
      "r372",
      "r373",
      "r377",
      "r616",
      "r619",
      "r640",
      "r641",
      "r770",
      "r799",
      "r970"
     ]
    },
    "us-gaap_EarningsPerShareDilutedAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EarningsPerShareDilutedAbstract",
     "presentation": [
      "http://nymtrust.com/role/LossPerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Diluted Loss per Common Share:",
        "label": "Earnings Per Share, Diluted [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EarningsPerShareTextBlock",
     "presentation": [
      "http://nymtrust.com/role/LossPerCommonShare"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loss Per Common Share",
        "label": "Earnings Per Share [Text Block]",
        "documentation": "The entire disclosure for earnings per share."
       }
      }
     },
     "auth_ref": [
      "r359",
      "r374",
      "r375",
      "r376"
     ]
    },
    "nymt_EmployeeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "EmployeeMember",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee",
        "label": "Employee [Member]",
        "documentation": "Employee [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrecognized compensation cost",
        "label": "Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount",
        "documentation": "Amount of cost not yet recognized for nonvested award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r585"
     ]
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrecognized compensation cost, period for recognition",
        "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": [
      "r585"
     ]
    },
    "dei_EntityAddressAddressLine1": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressAddressLine1",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Address, Address Line One",
        "label": "Entity Address, Address Line One",
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCityOrTown": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressCityOrTown",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Address, City or Town",
        "label": "Entity Address, City or Town",
        "documentation": "Name of the City or Town"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressPostalZipCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressPostalZipCode",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Address, Postal Zip Code",
        "label": "Entity Address, Postal Zip Code",
        "documentation": "Code for the postal or zip code"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressStateOrProvince": {
     "xbrltype": "stateOrProvinceItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressStateOrProvince",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Address, State or Province",
        "label": "Entity Address, State or Province",
        "documentation": "Name of the state or province."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Central Index Key",
        "label": "Entity Central Index Key",
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK."
       }
      }
     },
     "auth_ref": [
      "r1042"
     ]
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityCommonStockSharesOutstanding",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Common Stock, Shares Outstanding",
        "label": "Entity Common Stock, Shares Outstanding",
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCurrentReportingStatus": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityCurrentReportingStatus",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Current Reporting Status",
        "label": "Entity Current Reporting Status",
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityDomain",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofComponentsofNetGainLossonResidentialMortgageLoansatFairValueDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansHeldinSecuritizationTrustsNetDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity [Domain]",
        "label": "Entity [Domain]",
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityEmergingGrowthCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityEmergingGrowthCompany",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Emerging Growth Company",
        "label": "Entity Emerging Growth Company",
        "documentation": "Indicate if registrant meets the emerging growth company criteria."
       }
      }
     },
     "auth_ref": [
      "r1042"
     ]
    },
    "dei_EntityFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityFileNumber",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity File Number",
        "label": "Entity 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/2024",
     "localname": "EntityFilerCategory",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Filer Category",
        "label": "Entity Filer Category",
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": [
      "r1042"
     ]
    },
    "dei_EntityIncorporationStateCountryCode": {
     "xbrltype": "edgarStateCountryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityIncorporationStateCountryCode",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Incorporation, State or Country Code",
        "label": "Entity Incorporation, State or Country Code",
        "documentation": "Two-character EDGAR code representing the state or country of incorporation."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityInteractiveDataCurrent": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityInteractiveDataCurrent",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Interactive Data Current",
        "label": "Entity Interactive Data Current",
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files)."
       }
      }
     },
     "auth_ref": [
      "r1046"
     ]
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Registrant Name",
        "label": "Entity Registrant Name",
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC."
       }
      }
     },
     "auth_ref": [
      "r1042"
     ]
    },
    "dei_EntityShellCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityShellCompany",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Shell Company",
        "label": "Entity Shell Company",
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r1042"
     ]
    },
    "dei_EntitySmallBusiness": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntitySmallBusiness",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Small Business",
        "label": "Entity Small Business",
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC)."
       }
      }
     },
     "auth_ref": [
      "r1042"
     ]
    },
    "dei_EntityTaxIdentificationNumber": {
     "xbrltype": "employerIdItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityTaxIdentificationNumber",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Tax Identification Number",
        "label": "Entity Tax Identification Number",
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS."
       }
      }
     },
     "auth_ref": [
      "r1042"
     ]
    },
    "nymt_EquityAndMezzanineLoansPrincipalAmountOfDelinquentLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "EquityAndMezzanineLoansPrincipalAmountOfDelinquentLoans",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofUnpaidPrincipalBalanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unpaid Principal Balance",
        "label": "Equity And Mezzanine Loans, Principal Amount Of Delinquent Loans",
        "documentation": "Equity And Mezzanine Loans, Principal Amount Of Delinquent Loans"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityComponentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityComponentDomain",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "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": [
      "r18",
      "r286",
      "r311",
      "r312",
      "r313",
      "r345",
      "r346",
      "r347",
      "r349",
      "r354",
      "r356",
      "r358",
      "r379",
      "r440",
      "r441",
      "r468",
      "r539",
      "r605",
      "r606",
      "r613",
      "r614",
      "r615",
      "r617",
      "r618",
      "r619",
      "r631",
      "r632",
      "r633",
      "r634",
      "r635",
      "r636",
      "r639",
      "r669",
      "r670",
      "r671",
      "r672",
      "r673",
      "r674",
      "r678",
      "r680",
      "r684",
      "r795",
      "r804",
      "r805",
      "r806",
      "r824",
      "r896"
     ]
    },
    "nymt_EquityDistributionAgreementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "EquityDistributionAgreementsMember",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Distribution Agreements",
        "label": "Equity Distribution Agreements [Member]",
        "documentation": "Represents information pertaining to the separate equity distribution agreements (collectively, the \"Equity Distribution Agreements\") with each of JMP Securities LLC (\"JMP\") and MLV &amp; Co. LLC (\"MLV\")."
       }
      }
     },
     "auth_ref": []
    },
    "srt_EquityMethodInvesteeNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "EquityMethodInvesteeNameDomain",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment, Name [Domain]",
        "label": "Investment, Name [Domain]",
        "documentation": "Name of investment including named security. Excludes entity that is consolidated."
       }
      }
     },
     "auth_ref": [
      "r434",
      "r435",
      "r437",
      "r612",
      "r1048",
      "r1049",
      "r1050",
      "r1178",
      "r1179",
      "r1180",
      "r1181"
     ]
    },
    "us-gaap_EquityMethodInvestmentDividendsOrDistributions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityMethodInvestmentDividendsOrDistributions",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Distributions of income from preferred equity, mezzanine loan and equity investments",
        "label": "Proceeds from Equity Method Investment, Distribution",
        "documentation": "Amount of distribution received from equity method investee for return on investment, classified as operating activities. Excludes distribution for return of investment, classified as investing activities."
       }
      }
     },
     "auth_ref": [
      "r9",
      "r11",
      "r144",
      "r790"
     ]
    },
    "nymt_EquityMethodInvestmentMeasurementInput": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "EquityMethodInvestmentMeasurementInput",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity method investment, measurement input",
        "label": "Equity Method Investment, Measurement Input",
        "documentation": "Equity Method Investment, Measurement Input"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityMethodInvestmentNonconsolidatedInvesteeAxis",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Method Investment, Nonconsolidated Investee [Axis]",
        "label": "Equity Method Investment, Nonconsolidated Investee [Axis]",
        "documentation": "Information by nonconsolidated equity method investee. Excludes information consolidated by reporting entity."
       }
      }
     },
     "auth_ref": [
      "r289",
      "r333",
      "r438",
      "r668",
      "r731",
      "r732",
      "r737",
      "r744",
      "r751",
      "r752",
      "r763",
      "r765",
      "r1011",
      "r1012",
      "r1013",
      "r1014",
      "r1015",
      "r1016",
      "r1017",
      "r1018",
      "r1019",
      "r1020",
      "r1021",
      "r1022"
     ]
    },
    "us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityMethodInvestmentNonconsolidatedInvesteeDomain",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Method Investment, Nonconsolidated Investee [Domain]",
        "label": "Equity Method Investment, Nonconsolidated Investee [Domain]",
        "documentation": "Nonconsolidated equity method investee. Excludes information consolidated by reporting entity."
       }
      }
     },
     "auth_ref": [
      "r289",
      "r333",
      "r438",
      "r668",
      "r731",
      "r732",
      "r737",
      "r744",
      "r751",
      "r752",
      "r763",
      "r765",
      "r1011",
      "r1012",
      "r1013",
      "r1014",
      "r1015",
      "r1016",
      "r1017",
      "r1018",
      "r1019",
      "r1020",
      "r1021",
      "r1022"
     ]
    },
    "us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeOrGroupOfInvesteesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityMethodInvestmentNonconsolidatedInvesteeOrGroupOfInvesteesMember",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Method Investment, Nonconsolidated Investee or Group of Investees",
        "label": "Equity Method Investment, Nonconsolidated Investee or Group of Investees [Member]",
        "documentation": "Nonconsolidated equity method investee or group of nonconsolidated investees. Excludes information consolidated by reporting entity."
       }
      }
     },
     "auth_ref": [
      "r1067",
      "r1086",
      "r1115",
      "r1204"
     ]
    },
    "us-gaap_EquityMethodInvestmentOwnershipPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityMethodInvestmentOwnershipPercentage",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ownership Interest",
        "label": "Equity Method Investment, Ownership Percentage",
        "documentation": "The percentage of ownership of common stock or equity participation in the investee accounted for under the equity method of accounting."
       }
      }
     },
     "auth_ref": [
      "r434"
     ]
    },
    "us-gaap_EquityMethodInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityMethodInvestments",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Equity investments, at fair value",
        "netLabel": "Equity Investments, carrying value",
        "label": "Equity Method Investments",
        "documentation": "This item represents the carrying amount on the entity's balance sheet of its investment in common stock of an equity method investee. This is not an indicator of the fair value of the investment, rather it is the initial cost adjusted for the entity's share of earnings and losses of the investee, adjusted for any distributions (dividends) and other than temporary impairment (OTTI) losses recognized."
       }
      }
     },
     "auth_ref": [
      "r378",
      "r387",
      "r389",
      "r432",
      "r1069",
      "r1114"
     ]
    },
    "us-gaap_EquityMethodInvestmentsAndJointVenturesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityMethodInvestmentsAndJointVenturesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Method Investments and Joint Ventures [Abstract]",
        "label": "Equity Method Investments and Joint Ventures [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityMethodInvestmentsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityMethodInvestmentsDisclosureTextBlock",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValue"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Investments, at Fair Value",
        "label": "Equity Method Investments and Joint Ventures Disclosure [Text Block]",
        "documentation": "The entire disclosure for equity method investments and joint ventures. Equity method investments are investments that give the investor the ability to exercise significant influence over the operating and financial policies of an investee. Joint ventures are entities owned and operated by a small group of businesses as a separate and specific business or project for the mutual benefit of the members of the group."
       }
      }
     },
     "auth_ref": [
      "r253",
      "r436",
      "r439",
      "r1050"
     ]
    },
    "us-gaap_EquityMethodInvestmentsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityMethodInvestmentsFairValueDisclosure",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value",
        "netLabel": "Equity investments",
        "verboseLabel": "Equity Investment, estimated fair value",
        "label": "Equity Method Investments, Fair Value Disclosure",
        "documentation": "Fair value portion of investments accounted under the equity method."
       }
      }
     },
     "auth_ref": [
      "r1070",
      "r1189",
      "r1190",
      "r1200"
     ]
    },
    "nymt_EquityMethodInvestmentsInDisposalGroupHeldForSaleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "EquityMethodInvestmentsInDisposalGroupHeldForSaleMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity investments in disposal group held for sale",
        "label": "Equity Method Investments In Disposal Group Held For Sale [Member]",
        "documentation": "Equity Method Investments In Disposal Group Held For Sale"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityMethodInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityMethodInvestmentsMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Method Investments",
        "netLabel": "Equity investments",
        "label": "Equity Method Investments [Member]",
        "documentation": "Investment in the stock of an investee which is adjusted for the investor's share of the earnings or losses of the investee after the date of acquisition."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityMethodInvestmentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityMethodInvestmentsTextBlock",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValuesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Investments in Unconsolidated Entities",
        "label": "Equity Method Investments [Table Text Block]",
        "documentation": "Tabular disclosure of equity method investments including, but not limited to, name of each investee or group of investments, percentage ownership, difference between recorded amount of an investment and the value of the underlying equity in the net assets, and summarized financial information."
       }
      }
     },
     "auth_ref": [
      "r433"
     ]
    },
    "nymt_EquityandMezzanineLoansFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "EquityandMezzanineLoansFairValue",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofUnpaidPrincipalBalanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value",
        "label": "Equity and Mezzanine Loans, Fair Value",
        "documentation": "Equity and Mezzanine Loans, Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ExpensesRelatedToOperatingRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ExpensesRelatedToOperatingRealEstate",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_ProfitLossFromRealEstateOperations",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total expenses related to real estate",
        "terseLabel": "Expenses related to real estate",
        "label": "Expenses Related To Operating Real Estate",
        "documentation": "Expenses Related To Operating Real Estate"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ExternalCreditRatingByGroupingAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ExternalCreditRatingByGroupingAxis",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "External Credit Rating by Grouping [Axis]",
        "label": "External Credit Rating by Grouping [Axis]",
        "documentation": "Information by external rating classified as investment grade or non investment grade."
       }
      }
     },
     "auth_ref": [
      "r237",
      "r238",
      "r239",
      "r629",
      "r1116"
     ]
    },
    "us-gaap_ExternalCreditRatingByGroupingDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ExternalCreditRatingByGroupingDomain",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "External Credit Rating by Grouping [Domain]",
        "label": "External Credit Rating by Grouping [Domain]",
        "documentation": "External credit rating classified as investment grade or non-investment grade."
       }
      }
     },
     "auth_ref": [
      "r97"
     ]
    },
    "nymt_FFRMI20MidtownLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FFRMI20MidtownLLCMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "FF/RMI 20 Midtown, LLC",
        "label": "FF RMI 20 Midtown, LLC [Member]",
        "documentation": "FF RMI 20 Midtown, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "stpr_FL": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/stpr/2024",
     "localname": "FL",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Florida",
        "label": "FLORIDA"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueAssetRecurringBasisStillHeldUnrealizedGainLossStatementOfIncomeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetRecurringBasisStillHeldUnrealizedGainLossStatementOfIncomeExtensibleList",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value, Asset, Recurring Basis, Still Held, Unrealized Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "label": "Fair Value, Asset, Recurring Basis, Still Held, Unrealized Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of income or comprehensive income that includes unrealized gain (loss) from asset measured at fair value using unobservable input (level 3) and still held."
       }
      }
     },
     "auth_ref": [
      "r653",
      "r658",
      "r1000"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "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": [
      "r643",
      "r644",
      "r657",
      "r997"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "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": [
      "r643",
      "r644",
      "r657",
      "r997"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Quantitative Information Regarding Significant and Unobservable Inputs used in Valuation of Level 3 Assets and Liabilities",
        "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": [
      "r645",
      "r646",
      "r1001"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsAbstract",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3LiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total gains/(losses) (realized/unrealized)",
        "verboseLabel": "Total gains (realized/unrealized)",
        "label": "Fair Value, Assets and Liabilities Measured on Recurring Basis, Gain (Loss) Included in Earnings [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Changes in Unrealized Gains (Losses) Included in Earnings for Level 3 Assets and Liabilities",
        "label": "Fair Value, Measured on Recurring Basis, Gain (Loss) Included in Earnings [Table Text Block]",
        "documentation": "Tabular disclosure of the amount of gains or losses for the period included in earnings or resulted in a change to net assets, have arisen from the use of significant unobservable inputs (level 3) to measure the fair value of assets, liabilities, and financial instruments classified in shareholders' equity."
       }
      }
     },
     "auth_ref": [
      "r1000",
      "r1199"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrealized gains (losses)",
        "label": "Fair Value, Asset, Recurring Basis, Still Held, Unrealized Gain (Loss)",
        "documentation": "Amount of unrealized gain (loss) recognized in income from asset measured at fair value on recurring basis using unobservable input (level 3) and still held."
       }
      }
     },
     "auth_ref": [
      "r653",
      "r658",
      "r999",
      "r1000"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Asset Class [Domain]",
        "label": "Asset Class [Domain]",
        "documentation": "Class of asset."
       }
      }
     },
     "auth_ref": [
      "r648",
      "r649",
      "r650",
      "r651",
      "r652",
      "r653",
      "r658",
      "r999"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails"
     ],
     "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/2024",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "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": [
      "r648",
      "r649",
      "r650",
      "r651",
      "r652",
      "r653",
      "r658",
      "r999"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "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": [
      "r648",
      "r649",
      "r650",
      "r651",
      "r652",
      "r653",
      "r658",
      "r999"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Changes in Valuation of Level 3 Assets",
        "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": [
      "r648",
      "r653",
      "r658",
      "r999"
     ]
    },
    "us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "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": []
    },
    "us-gaap_FairValueByAssetClassAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueByAssetClassAxis",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Asset Class [Axis]",
        "label": "Asset Class [Axis]",
        "documentation": "Information by class of asset."
       }
      }
     },
     "auth_ref": [
      "r648",
      "r649",
      "r650",
      "r651",
      "r652",
      "r653",
      "r658",
      "r999"
     ]
    },
    "us-gaap_FairValueByBalanceSheetGroupingTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueByBalanceSheetGroupingTable",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "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": [
      "r103",
      "r104"
     ]
    },
    "us-gaap_FairValueByBalanceSheetGroupingTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueByBalanceSheetGroupingTextBlock",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Schedule of Carrying Value and Estimated Fair Value of Financial Instruments",
        "label": "Fair Value, by Balance Sheet Grouping [Table Text Block]",
        "documentation": "Tabular disclosure of the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities."
       }
      }
     },
     "auth_ref": [
      "r103"
     ]
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "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": [
      "r507",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r642",
      "r644",
      "r645",
      "r646",
      "r647",
      "r656",
      "r657",
      "r659",
      "r691",
      "r692",
      "r693",
      "r981",
      "r982",
      "r987",
      "r988",
      "r989",
      "r997",
      "r1001"
     ]
    },
    "us-gaap_FairValueByLiabilityClassAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueByLiabilityClassAxis",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liability Class [Axis]",
        "label": "Liability Class [Axis]",
        "documentation": "Information by class of liability."
       }
      }
     },
     "auth_ref": [
      "r648",
      "r649",
      "r650",
      "r651",
      "r652",
      "r653",
      "r658"
     ]
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueByMeasurementFrequencyAxis",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measurement Frequency [Axis]",
        "label": "Measurement Frequency [Axis]",
        "documentation": "Information by measurement frequency."
       }
      }
     },
     "auth_ref": [
      "r643",
      "r644",
      "r645",
      "r647",
      "r997",
      "r1192",
      "r1203"
     ]
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueDisclosuresAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Disclosures [Abstract]",
        "label": "Fair Value Disclosures [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueDisclosuresTextBlock",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstruments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value of Financial Instruments",
        "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": [
      "r652",
      "r654",
      "r655",
      "r656",
      "r659",
      "r660",
      "r661",
      "r662",
      "r663",
      "r766",
      "r997",
      "r1002"
     ]
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueInputsLevel1Member",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Level 1",
        "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": [
      "r507",
      "r544",
      "r549",
      "r644",
      "r657",
      "r691",
      "r987",
      "r988",
      "r989",
      "r997"
     ]
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueInputsLevel2Member",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Level 2",
        "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": [
      "r507",
      "r544",
      "r549",
      "r644",
      "r645",
      "r657",
      "r692",
      "r981",
      "r982",
      "r987",
      "r988",
      "r989",
      "r997"
     ]
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueInputsLevel3Member",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Level 3",
        "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": [
      "r507",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r644",
      "r645",
      "r646",
      "r647",
      "r657",
      "r693",
      "r981",
      "r982",
      "r987",
      "r988",
      "r989",
      "r997",
      "r1001"
     ]
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisChangeInUnrealizedGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrealized gains (losses)",
        "label": "Fair Value, Liability, Recurring Basis, Still Held, Unrealized Gain (Loss)",
        "documentation": "Amount of unrealized gain (loss) recognized in income from liability measured at fair value on recurring basis using unobservable input (level 3) and still held."
       }
      }
     },
     "auth_ref": [
      "r653",
      "r658"
     ]
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subordinated debentures, estimated fair value",
        "label": "Subordinated Debt Obligations, Fair Value Disclosure",
        "documentation": "Fair value of subordinated debt obligations including, but not limited to, subordinated loan, subordinated bond, subordinated debenture or junior debt."
       }
      }
     },
     "auth_ref": [
      "r1189",
      "r1190",
      "r1200"
     ]
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value by Liability Class [Domain]",
        "label": "Fair Value by Liability Class [Domain]",
        "documentation": "Represents classes of liabilities measured and disclosed at fair value."
       }
      }
     },
     "auth_ref": [
      "r648",
      "r649",
      "r650",
      "r651",
      "r652",
      "r653",
      "r658"
     ]
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3LiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]",
        "label": "Fair Value, Liabilities 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_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Changes in Valuation of Level 3 Liabilities",
        "label": "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
        "documentation": "Tabular disclosure of the fair value measurement of liabilities using significant unobservable inputs (Level 3), a reconciliation of the beginning and ending balances, separately presenting changes 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 liability."
       }
      }
     },
     "auth_ref": [
      "r648",
      "r653",
      "r658"
     ]
    },
    "us-gaap_FairValueLiabilityRecurringBasisStillHeldUnrealizedGainLossStatementOfIncomeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueLiabilityRecurringBasisStillHeldUnrealizedGainLossStatementOfIncomeExtensibleList",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value, Liability, Recurring Basis, Still Held, Unrealized Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "label": "Fair Value, Liability, Recurring Basis, Still Held, Unrealized Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of income or comprehensive income that includes unrealized gain (loss) from liability measured at fair value using unobservable input (level 3) and still held."
       }
      }
     },
     "auth_ref": [
      "r653",
      "r658"
     ]
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementFrequencyDomain",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measurement Frequency [Domain]",
        "label": "Measurement Frequency [Domain]",
        "documentation": "Measurement frequency."
       }
      }
     },
     "auth_ref": [
      "r643",
      "r644",
      "r645",
      "r647",
      "r997",
      "r1192",
      "r1203"
     ]
    },
    "nymt_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetFundingContributions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetFundingContributions",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Funding/Contributions",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Funding/Contributions",
        "documentation": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Funding/Contributions"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "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": [
      "r649",
      "r658",
      "r999",
      "r1000"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchases (3)",
        "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": [
      "r651",
      "r658",
      "r999"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Sales",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Sales",
        "documentation": "Amount of sale 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": [
      "r651",
      "r658",
      "r999"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Paydowns/Distributions",
        "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": [
      "r651",
      "r658",
      "r999"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Transfers out",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3",
        "documentation": "Amount of transfers of financial instrument classified as an asset out of level 3 of the fair value hierarchy."
       }
      }
     },
     "auth_ref": [
      "r652",
      "r658",
      "r999"
     ]
    },
    "nymt_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3ToSecuritizationTrustNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3ToSecuritizationTrustNet",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Transfers to securitization trust, net",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers Out of Level 3 to Securitization Trust, Net",
        "documentation": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers Out of Level 3 to Out of Securitization Trust, Net"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Balance at beginning of period",
        "periodEndLabel": "Balance at the end of period",
        "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": [
      "r648",
      "r658",
      "r999"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3LiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Included in earnings",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Gain (Loss) Included in Earnings",
        "documentation": "Amount of gain (loss) recognized in income from liability measured at fair value on recurring basis using unobservable input (level 3)."
       }
      }
     },
     "auth_ref": [
      "r649",
      "r658"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3LiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchases",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Purchases",
        "documentation": "Amount of purchases of financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r651",
      "r658"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3LiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Paydowns",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Settlements",
        "documentation": "Amount of settlements of financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r651",
      "r658"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3LiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Balance at beginning of period",
        "periodEndLabel": "Balance at the end of period",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability Value",
        "documentation": "Fair value of financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r648",
      "r658"
     ]
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "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": [
      "r507",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r642",
      "r644",
      "r645",
      "r646",
      "r647",
      "r656",
      "r657",
      "r659",
      "r691",
      "r692",
      "r693",
      "r981",
      "r982",
      "r987",
      "r988",
      "r989",
      "r997",
      "r1001"
     ]
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementsRecurringMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value, Measurements, 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": [
      "r997",
      "r1189",
      "r1190",
      "r1191",
      "r1192",
      "r1193",
      "r1203"
     ]
    },
    "us-gaap_FairValueOfFinancialInstrumentsPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueOfFinancialInstrumentsPolicy",
     "presentation": [
      "http://nymtrust.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": [
      "r14"
     ]
    },
    "us-gaap_FairValueOptionChangesInFairValueGainLoss1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueOptionChangesInFairValueGainLoss1",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Change in fair value, gain (loss)",
        "verboseLabel": "Change in fair value, gain (loss)",
        "label": "Fair Value, Option, Changes in Fair Value, Gain (Loss)",
        "documentation": "For each line item in the statement of financial position, the amounts of gains and losses from fair value changes included in earnings."
       }
      }
     },
     "auth_ref": [
      "r107"
     ]
    },
    "us-gaap_FairValueOptionPartialElectionDisclosuresAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueOptionPartialElectionDisclosuresAbstract",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Option",
        "label": "Fair Value, Option, Partial Election Disclosures [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueRecurringBasisUnobservableInputReconciliationAssetGainLossStatementOfIncomeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueRecurringBasisUnobservableInputReconciliationAssetGainLossStatementOfIncomeExtensibleList",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value, Asset, Recurring Basis, Unobservable Input Reconciliation, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "label": "Fair Value, Asset, Recurring Basis, Unobservable Input Reconciliation, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of income or comprehensive income that includes gain (loss) from asset measured at fair value using unobservable input (level 3)."
       }
      }
     },
     "auth_ref": [
      "r649",
      "r658"
     ]
    },
    "nymt_FairValueRecurringBasisUnobservableInputReconciliationLiabilityGainLossStatementOfIncomeExtensibleListNotDisclosedFlag": {
     "xbrltype": "stringItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FairValueRecurringBasisUnobservableInputReconciliationLiabilityGainLossStatementOfIncomeExtensibleListNotDisclosedFlag",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3LiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Recurring Basis Unobservable Input Reconciliation Liability Gain Loss Statement Of Income Extensible List Not Disclosed Flag",
        "label": "Fair Value Recurring Basis Unobservable Input Reconciliation Liability Gain Loss Statement Of Income Extensible List Not Disclosed Flag",
        "documentation": "Fair Value Recurring Basis Unobservable Input Reconciliation Liability Gain Loss Statement Of Income Extensible List Not Disclosed Flag"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Values Derivatives, Balance Sheet Location, by Derivative Contract Type [Table]",
        "label": "Fair Values Derivatives, Balance Sheet Location, by Derivative Contract Type [Table]",
        "documentation": "Disclosure of information about location and fair value of derivative instrument and nonderivative instrument designated as hedging instrument."
       }
      }
     },
     "auth_ref": [
      "r90",
      "r92",
      "r101"
     ]
    },
    "nymt_FannieMaeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FannieMaeMember",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fannie Mae",
        "label": "Fannie Mae [Member]",
        "documentation": "Fannie Mae"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_FinancialAssetForeclosureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FinancialAssetForeclosureMember",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreclosure",
        "label": "Financial Asset, Foreclosure [Member]",
        "documentation": "Financial Asset, Foreclosure"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_FinancialAssetsLessthan90daysMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FinancialAssetsLessthan90daysMember",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Less than 90 days past due",
        "label": "Financial Assets, Less than 90 days [Member]",
        "documentation": "Financial Assets, Less than 90 days [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancialInstrumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancialInstrumentAxis",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInitialMarginDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofRealizedGainorLossActivityDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Instrument [Axis]",
        "label": "Financial Instrument [Axis]",
        "documentation": "Information by type of financial instrument."
       }
      }
     },
     "auth_ref": [
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r419",
      "r420",
      "r421",
      "r422",
      "r423",
      "r424",
      "r425",
      "r426",
      "r427",
      "r428",
      "r429",
      "r442",
      "r444",
      "r445",
      "r446",
      "r447",
      "r451",
      "r455",
      "r456",
      "r518",
      "r535",
      "r637",
      "r664",
      "r688",
      "r689",
      "r690",
      "r691",
      "r692",
      "r693",
      "r694",
      "r695",
      "r696",
      "r697",
      "r698",
      "r699",
      "r700",
      "r701",
      "r708",
      "r712",
      "r713",
      "r714",
      "r715",
      "r716",
      "r717",
      "r718",
      "r719",
      "r720",
      "r721",
      "r722",
      "r723",
      "r724",
      "r725",
      "r726",
      "r796",
      "r978",
      "r997",
      "r999",
      "r1001",
      "r1002",
      "r1003",
      "r1004",
      "r1005",
      "r1006",
      "r1007",
      "r1010",
      "r1053",
      "r1054",
      "r1055",
      "r1056",
      "r1057",
      "r1058",
      "r1059",
      "r1110",
      "r1111",
      "r1112",
      "r1113",
      "r1188",
      "r1191",
      "r1192",
      "r1193",
      "r1200",
      "r1203"
     ]
    },
    "nymt_FinancialInstrumentOwnedLoansAndPreferredEquityNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FinancialInstrumentOwnedLoansAndPreferredEquityNet",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 2.0
      },
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofPreferredEquityandMezzanineLoanInvestmentsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofPreferredEquityandMezzanineLoanInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Multi-family loans, at fair value",
        "totalLabel": "Total, at Fair Value",
        "label": "Financial Instrument Owned, Loans And Preferred Equity, Net",
        "documentation": "Financial Instrument Owned, Loans And Preferred Equity, Net"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Assets:",
        "label": "Financial Instruments, Financial Assets, Balance Sheet Groupings [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Liabilities:",
        "label": "Financial Instruments, Financial Liabilities, Balance Sheet Groupings [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_FinancialInstrumentsOwnedMeasurementInput": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FinancialInstrumentsOwnedMeasurementInput",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial instruments owned, measurement input",
        "label": "Financial Instruments Owned, Measurement Input",
        "documentation": "Financial Instruments Owned, Measurement Input"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_FinancialInstrumentsOwnedMeasurementInputAssumedRedemptionPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FinancialInstrumentsOwnedMeasurementInputAssumedRedemptionPeriod",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial instruments owned, assumed redemption period (in months)",
        "label": "Financial Instruments Owned, Measurement Input, Assumed Redemption Period",
        "documentation": "Financial Instruments Owned, Measurement Input, Assumed Redemption Period"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAtFairValue",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential loans, at fair value",
        "verboseLabel": "Residential loans, carrying value",
        "label": "Financial Instruments, Owned, Mortgages, Mortgage-Backed and Asset-Backed Securities, at Fair Value",
        "documentation": "The fair value as of the balance sheet date of firm holdings in mortgages, mortgage backed securities (investment instruments that represent ownership of an undivided interest in a group of mortgages, where principal and interest from the individual mortgages are used to pay investors' principal and interest on the mortgage backed security) and asset-backed securities that are primarily paid from the cash flows of a discrete pool of receivables or other financial assets (such as credit-card receivables), either fixed or revolving, that by their terms convert into cash within a finite time period. Includes both pledged (to counterparties as collateral for financing transactions) and unpledged holdings."
       }
      }
     },
     "auth_ref": [
      "r1221"
     ]
    },
    "nymt_FinancialInstrumentsOwnedMultiFamilyLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FinancialInstrumentsOwnedMultiFamilyLoans",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Multi-family loans",
        "label": "Financial Instruments Owned, Multi-family Loans",
        "documentation": "Financial Instruments Owned, Multi-family Loans"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_FinancialInstrumentsOwnedResidentialLoansAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FinancialInstrumentsOwnedResidentialLoansAtFairValue",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedVIEsDetails": {
       "parentTag": "nymt_VariableInterestEntityPrimaryBeneficiaryMaximumLossGainExposureAmount",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential loans, at fair value",
        "verboseLabel": "Residential loans, at fair value",
        "label": "Financial Instruments Owned, Residential Loans At Fair Value",
        "documentation": "Financial Instruments Owned, Residential Loans At Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_FinancialInstrumentsOwnedResidentialLoansatFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FinancialInstrumentsOwnedResidentialLoansatFairValue",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Residential loans, at fair value",
        "label": "Financial Instruments Owned, Residential Loans at Fair Value",
        "documentation": "Financial Instruments Owned, Residential Loans at Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_FinancingAndOtherVIEsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FinancingAndOtherVIEsMember",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing And Other VIEs",
        "label": "Financing And Other VIEs [Member]",
        "documentation": "Financing And Other VIEs"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_FinancingReceivableAfterAllowanceForCreditLossCollectionsReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FinancingReceivableAfterAllowanceForCreditLossCollectionsReceivable",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails": {
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Collections receivable from residential loan servicers",
        "label": "Financing Receivable, After Allowance For Credit Loss, Collections Receivable",
        "documentation": "Financing Receivable, After Allowance For Credit Loss, Collections Receivable"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_FinancingReceivableAfterAllowanceForCreditLossRecoverableAdvances": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FinancingReceivableAfterAllowanceForCreditLossRecoverableAdvances",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails": {
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Recoverable advances on residential loans",
        "label": "Financing Receivable, After Allowance For Credit Loss, Recoverable Advances",
        "documentation": "Financing Receivable, After Allowance For Credit Loss, Recoverable Advances"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableSignificantPurchases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivableSignificantPurchases",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchase of residential loans",
        "label": "Financing Receivable, Purchase",
        "documentation": "Amount of increase in financing receivable from purchase. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r236",
      "r443"
     ]
    },
    "us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivablesEqualToGreaterThan90DaysPastDueMember",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofUnpaidPrincipalBalanceDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "netLabel": "90 Days or Greater Delinquent",
        "verboseLabel": "Greater than 90 days past due",
        "terseLabel": "90 Days or greater past due",
        "label": "Financial Asset, Equal to or Greater than 90 Days Past Due [Member]",
        "documentation": "Financial asset equal to or greater than 90 days past due."
       }
      }
     },
     "auth_ref": [
      "r977"
     ]
    },
    "us-gaap_FinancingReceivablesPeriodPastDueAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivablesPeriodPastDueAxis",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofUnpaidPrincipalBalanceDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Asset, Period Past Due [Axis]",
        "label": "Financial Asset, Aging [Axis]",
        "documentation": "Information by period in which financial asset is past due or not past due."
       }
      }
     },
     "auth_ref": [
      "r240",
      "r445",
      "r977"
     ]
    },
    "us-gaap_FinancingReceivablesPeriodPastDueDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancingReceivablesPeriodPastDueDomain",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofUnpaidPrincipalBalanceDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Asset, Period Past Due [Domain]",
        "label": "Financial Asset, Aging [Domain]",
        "documentation": "Period in which financial asset is past due or not past due. For past due, element name and standard label in Financial Asset, [numeric lower end] to [numeric higher end] [date measure] Past Due [Member] or Financial Asset, Greater than [low end numeric value] [date measure] Past Due [Member] or Financial Asset, Less than [high end numeric value] [date measure] Past Due [Member] formats."
       }
      }
     },
     "auth_ref": [
      "r240",
      "r445",
      "r977"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsAccumulatedAmortization",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetScheduleofLeaseIntangiblesDetails": {
       "parentTag": "us-gaap_FiniteLivedIntangibleAssetsNet",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetScheduleofLeaseIntangiblesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Accumulated amortization",
        "label": "Finite-Lived Intangible Assets, Accumulated Amortization",
        "documentation": "Accumulated amount of amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life."
       }
      }
     },
     "auth_ref": [
      "r291",
      "r457",
      "r464",
      "r979"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsByMajorClassAxis",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetScheduleofLeaseIntangiblesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Finite-Lived Intangible Assets by Major Class [Axis]",
        "label": "Finite-Lived Intangible Assets by Major Class [Axis]",
        "documentation": "Information by major type or class of finite-lived intangible assets."
       }
      }
     },
     "auth_ref": [
      "r458",
      "r460",
      "r461",
      "r462",
      "r463",
      "r464",
      "r466",
      "r467",
      "r729",
      "r730",
      "r962"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsGross",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetScheduleofLeaseIntangiblesDetails": {
       "parentTag": "us-gaap_FiniteLivedIntangibleAssetsNet",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetScheduleofLeaseIntangiblesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lease intangibles",
        "label": "Finite-Lived Intangible Assets, Gross",
        "documentation": "Amount before amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life."
       }
      }
     },
     "auth_ref": [
      "r457",
      "r464",
      "r730",
      "r979"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsMajorClassNameDomain",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetScheduleofLeaseIntangiblesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Finite-Lived Intangible Assets, Major Class Name [Domain]",
        "label": "Finite-Lived Intangible Assets, Major Class Name [Domain]",
        "documentation": "The major class of finite-lived intangible asset (for example, patents, trademarks, copyrights, etc.) A major class is composed of intangible assets that can be grouped together because they are similar, either by their nature or by their use in the operations of a company."
       }
      }
     },
     "auth_ref": [
      "r458",
      "r460",
      "r461",
      "r462",
      "r463",
      "r464",
      "r466",
      "r467",
      "r962"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FiniteLivedIntangibleAssetsNet",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetScheduleofLeaseIntangiblesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetScheduleofLeaseIntangiblesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Lease intangibles, net",
        "label": "Finite-Lived Intangible Assets, Net",
        "documentation": "Amount after amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life."
       }
      }
     },
     "auth_ref": [
      "r729",
      "r1124"
     ]
    },
    "nymt_FivePointSevenFivePercentSeniorNotesDueTwoThousandTwentySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FivePointSevenFivePercentSeniorNotesDueTwoThousandTwentySixMember",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtInstrumentRedemptionDetails",
      "http://nymtrust.com/role/DebtScheduleofSeniorUnsecuredNotesDetails",
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "5.75% Senior Notes Due 2026",
        "label": "Five Point Seven Five Percent Senior Notes Due Two Thousand Twenty Six [Member]",
        "documentation": "Five Point Seven Five Percent Senior Notes Due Two Thousand Twenty Six"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_FixedRatePaymentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FixedRatePaymentsMember",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed Rate Payments",
        "label": "Fixed Rate Payments [Member]",
        "documentation": "Fixed Rate Payments"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FixturesAndEquipmentGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FixturesAndEquipmentGross",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails": {
       "parentTag": "us-gaap_RealEstateInvestmentPropertyAtCost",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Furniture, fixture and equipment",
        "label": "Fixtures and Equipment, Gross",
        "documentation": "Amount before accumulated depreciation of fixtures and equipment. Includes, but is not limited to, machinery, equipment, and engines."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_FloatingRatePaymentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FloatingRatePaymentsMember",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Floating Rate Payments",
        "label": "Floating Rate Payments [Member]",
        "documentation": "Floating Rate Payments"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_FreddieMacMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "FreddieMacMember",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Freddie Mac",
        "label": "Freddie Mac [Member]",
        "documentation": "Freddie Mac"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FutureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FutureMember",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofComponentsofRealizedandUnrealizedGainsandLossesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "U.S. Treasury futures",
        "label": "Future [Member]",
        "documentation": "Futures contracts are forward-based contracts to make or take delivery of a specified financial instrument, foreign currency, or commodity at a specified future date or during a specified period at as specified price or yield. Futures are standardized contracts traded on an organized exchange."
       }
      }
     },
     "auth_ref": [
      "r862",
      "r867",
      "r872",
      "r885",
      "r891",
      "r917",
      "r1027",
      "r1028",
      "r1029",
      "r1185"
     ]
    },
    "nymt_GWRCedarsPartnersLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "GWRCedarsPartnersLLCMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "GWR Cedars Partners, LLC",
        "verboseLabel": "GWR Cedars Partners, LLC",
        "label": "GWR Cedars Partners, LLC [Member]",
        "documentation": "GWR Cedars Partners, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_GWRGatewayPartnersLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "GWRGatewayPartnersLLCMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "GWR Gateway Partners, LLC",
        "verboseLabel": "GWR Gateway Partners, LLC",
        "label": "GWR Gateway Partners, LLC [Member]",
        "documentation": "GWR Gateway Partners, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_GainLossOnDeConsolidationOfJointVentureEquityInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "GainLossOnDeConsolidationOfJointVentureEquityInvestments",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/OtherIncomeLossDetails": {
       "parentTag": "us-gaap_OtherNonoperatingIncomeExpense",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gain on de-consolidation of joint venture equity investment in Consolidated VIE",
        "label": "Gain (Loss) on De-Consolidation Of Joint Venture Equity Investments",
        "documentation": "Gain (Loss) on De-Consolidation Of Joint Venture Equity Investments"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GainLossOnDerivativeInstrumentsNetPretax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GainLossOnDerivativeInstrumentsNetPretax",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_OtherOperatingIncomeExpenseNet",
       "weight": 1.0,
       "order": 5.0
      },
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gains on derivative instruments, net",
        "negatedTerseLabel": "Gains on derivative instruments, net",
        "label": "Gain (Loss) on Derivative Instruments, Net, Pretax",
        "documentation": "Aggregate net gain (loss) on all derivative instruments recognized in earnings during the period, before tax effects."
       }
      }
     },
     "auth_ref": [
      "r91"
     ]
    },
    "us-gaap_GainLossOnSaleOfDerivatives": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GainLossOnSaleOfDerivatives",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofComponentsofRealizedandUnrealizedGainsandLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Realized Gains (Losses)",
        "label": "Gain (Loss) on Sale of Derivatives",
        "documentation": "The difference between the book value and the sale price of options, swaps, futures, forward contracts, and other derivative instruments. This element refers to the gain (loss) included in earnings."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r213",
      "r884",
      "r885",
      "r886",
      "r887"
     ]
    },
    "us-gaap_GainLossOnSaleOfMortgageLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GainLossOnSaleOfMortgageLoans",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Loss on sale of residential loans",
        "label": "Gain (Loss) on Sale of Mortgage Loans",
        "documentation": "The gains (losses) included in earnings that represent the difference between the sale price and the carrying value of loans made to finance real estate acquisitions. This element refers to the gain (loss) and not to the cash proceeds of the sale. This element is a noncash adjustment to net income when calculating net cash generated by operating activities using the indirect method."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r244",
      "r245",
      "r249"
     ]
    },
    "us-gaap_GainLossOnSaleOfOtherInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GainLossOnSaleOfOtherInvestments",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_OtherOperatingIncomeExpenseNet",
       "weight": 1.0,
       "order": 4.0
      },
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Realized (losses) gains, net",
        "negatedLabel": "Realized losses (gains), net",
        "label": "Gain (Loss) on Sale of Other Investments",
        "documentation": "Amount of gain (loss) included in earnings for investments classified as other."
       }
      }
     },
     "auth_ref": [
      "r11"
     ]
    },
    "us-gaap_GainLossOnSaleOfProperties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GainLossOnSaleOfProperties",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/OtherIncomeLossDetails": {
       "parentTag": "us-gaap_OtherNonoperatingIncomeExpense",
       "weight": 1.0,
       "order": 5.0
      },
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/OtherIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Gain on sale of real estate",
        "terseLabel": "Gain on sale of real estate",
        "label": "Gain (Loss) on Sale of Properties",
        "documentation": "The difference between the carrying value and the sale price of real estate or properties that were intended to be sold or held for capital appreciation or rental income. This element refers to the gain (loss) included in earnings and not to the cash proceeds of the sale. This element is a noncash adjustment to net income when calculating net cash generated by operating activities using the indirect method."
       }
      }
     },
     "auth_ref": [
      "r1083",
      "r1127",
      "r1129"
     ]
    },
    "nymt_GainLossOnTransferToRealEstateHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "GainLossOnTransferToRealEstateHeldForSale",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Loss on transfer of real estate to held for sale",
        "label": "Gain (Loss) On Transfer To Real Estate Held-For-Sale",
        "documentation": "Gain (Loss) On Transfer To Real Estate Held-For-Sale"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_GainOnRepurchaseOfPreferredStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "GainOnRepurchaseOfPreferredStock",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": 1.0,
       "order": 1.0
      },
      "http://nymtrust.com/role/LossPerCommonShareDetails": {
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossPerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gain on repurchase of preferred stock",
        "verboseLabel": "Plus: Gain on repurchase of Preferred Stock",
        "label": "Gain on Repurchase of Preferred Stock",
        "documentation": "Gain on Repurchase of Preferred Stock"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GainsLossesOnExtinguishmentOfDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GainsLossesOnExtinguishmentOfDebt",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 4.0
      },
      "http://nymtrust.com/role/OtherIncomeLossDetails": {
       "parentTag": "us-gaap_OtherNonoperatingIncomeExpense",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/OtherIncomeLossDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Loss on extinguishment of collateralized debt obligations and mortgages payable on real estate",
        "terseLabel": "Loss on extinguishment of collateralized debt obligations and mortgages payable on real estate",
        "label": "Gain (Loss) on Extinguishment of Debt",
        "documentation": "Difference between the fair value of payments made and the carrying amount of debt which is extinguished prior to maturity."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r54",
      "r55"
     ]
    },
    "us-gaap_GainsLossesOnSalesOfInvestmentRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GainsLossesOnSalesOfInvestmentRealEstate",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gains on sale of real estate",
        "verboseLabel": "(Loss) on sale of real estate",
        "label": "Gains (Losses) on Sales of Investment Real Estate",
        "documentation": "The net gain (loss) resulting from sales and other disposals of real estate owned for investment purposes."
       }
      }
     },
     "auth_ref": [
      "r247",
      "r248",
      "r250",
      "r1079",
      "r1080",
      "r1083",
      "r1222",
      "r1265"
     ]
    },
    "us-gaap_GeneralAndAdministrativeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GeneralAndAdministrativeExpense",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "General and administrative expenses",
        "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": [
      "r148",
      "r881"
     ]
    },
    "us-gaap_GeneralAndAdministrativeExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GeneralAndAdministrativeExpenseAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "GENERAL, ADMINISTRATIVE AND OPERATING EXPENSES:",
        "label": "General and Administrative Expense [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GeographicConcentrationRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GeographicConcentrationRiskMember",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails"
     ],
     "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": [
      "r50",
      "r947"
     ]
    },
    "nymt_GinnieMaeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "GinnieMaeMember",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ginnie Mae",
        "label": "Ginnie Mae [Member]",
        "documentation": "Ginnie Mae"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GranteeStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GranteeStatusAxis",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Grantee Status [Axis]",
        "label": "Grantee Status [Axis]",
        "documentation": "Information by status of recipient to whom award is granted."
       }
      }
     },
     "auth_ref": [
      "r552",
      "r554",
      "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"
     ]
    },
    "us-gaap_GranteeStatusDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GranteeStatusDomain",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Grantee Status [Domain]",
        "label": "Grantee Status [Domain]",
        "documentation": "Status of recipient to whom award is granted."
       }
      }
     },
     "auth_ref": [
      "r552",
      "r554",
      "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"
     ]
    },
    "nymt_HeadlandsAssetManagementFundIIICaymanLPHeadlandsFlagshipOpportunityFundSeriesIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "HeadlandsAssetManagementFundIIICaymanLPHeadlandsFlagshipOpportunityFundSeriesIMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Headlands Asset Management Fund III (Cayman), LP (Headlands Flagship Opportunity Fund Series I)",
        "label": "Headlands Asset Management Fund III, Cayman, LP, Headlands Flagship Opportunity Fund Series I [Member]",
        "documentation": "Headlands Asset Management Fund III, Cayman, LP, Headlands Flagship Opportunity Fund Series I [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_HedgingDesignationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HedgingDesignationAxis",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofComponentsofRealizedandUnrealizedGainsandLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hedging Designation [Axis]",
        "label": "Hedging Designation [Axis]",
        "documentation": "Information by designation of purpose of derivative instrument."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r628"
     ]
    },
    "us-gaap_HedgingDesignationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HedgingDesignationDomain",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofComponentsofRealizedandUnrealizedGainsandLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hedging Designation [Domain]",
        "label": "Hedging Designation [Domain]",
        "documentation": "Designation of purpose of derivative instrument."
       }
      }
     },
     "auth_ref": [
      "r19"
     ]
    },
    "nymt_HudsonBridgeAptsLLCSeriesABriarHillAptsLLCKingsGlenAptssLLCFlagstoneAptsLLCBrookfieldAptsIILLCSeriesBAndSilberJBSMPropertiesLLCCollectivelyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "HudsonBridgeAptsLLCSeriesABriarHillAptsLLCKingsGlenAptssLLCFlagstoneAptsLLCBrookfieldAptsIILLCSeriesBAndSilberJBSMPropertiesLLCCollectivelyMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hudson Bridge Apartments, LLC - Series A, Briar Hill Apartments, LLC, Kings Glen Apartments, LLC, Flagstone Apartments, LLC, Brookfield Apartments II, LLC - Series B, and Silber JBSM Properties, LLC (collectively)",
        "verboseLabel": "Hudson Bridge Apartments, LLC - Series A, Briar Hill Apartments, LLC, Kings Glen Apartments, LLC, Flagstone Apartments, LLC, Brookfield Apartments II, LLC - Series B, and Silber JBSM Properties, LLC (collectively)",
        "label": "Hudson Bridge Apts, LLC - Series A, Briar Hill Apts, LLC, Kings Glen Aptss, LLC, Flagstone Apts, LLC, Brookfield Apts II, LLC - Series B, and Silber JBSM Properties, LLC (collectively) [Member]",
        "documentation": "Hudson Bridge Apts, LLC - Series A, Briar Hill Apts, LLC, Kings Glen Aptss, LLC, Flagstone Apts, LLC, Brookfield Apts II, LLC - Series B, and Silber JBSM Properties, LLC (collectively)"
       }
      }
     },
     "auth_ref": []
    },
    "stpr_IL": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/stpr/2024",
     "localname": "IL",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Illinois",
        "label": "ILLINOIS"
       }
      }
     },
     "auth_ref": []
    },
    "stpr_IN": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/stpr/2024",
     "localname": "IN",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Indiana",
        "label": "INDIANA"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ImpairmentLossesRelatedToRealEstatePartnerships": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ImpairmentLossesRelatedToRealEstatePartnerships",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Impairment of real estate",
        "label": "Impairment Losses Related to Real Estate Partnerships",
        "documentation": "Impairment losses measured as the amount by which the carrying amount of the business or real estate partnerships exceeds the fair value of the business or partnership."
       }
      }
     },
     "auth_ref": [
      "r161",
      "r166"
     ]
    },
    "us-gaap_ImpairmentOfRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ImpairmentOfRealEstate",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_OtherOperatingIncomeExpenseNet",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Impairment of real estate",
        "terseLabel": "Impairment of real estate",
        "label": "Impairment of Real Estate",
        "documentation": "The charge against earnings in the period to reduce the carrying amount of real property to fair value."
       }
      }
     },
     "auth_ref": [
      "r1083",
      "r1128"
     ]
    },
    "nymt_ImpairmentOfRealEstateRecoveryImpairmentValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ImpairmentOfRealEstateRecoveryImpairmentValue",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Impairment of real estate, recovery impairment value",
        "label": "Impairment of Real Estate, Recovery Impairment Value",
        "documentation": "Impairment of Real Estate, Recovery Impairment Value"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "NET LOSS",
        "label": "Income (Loss) from Continuing Operations, Net of Tax, Including Portion Attributable to Noncontrolling Interest",
        "documentation": "Amount after tax of income (loss) from continuing operations including portion attributable to the noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r184",
      "r233",
      "r333",
      "r348",
      "r354",
      "r438",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r616",
      "r619",
      "r641",
      "r668",
      "r791",
      "r972",
      "r1095",
      "r1096",
      "r1097",
      "r1098",
      "r1099",
      "r1137"
     ]
    },
    "us-gaap_IncomeLossFromEquityMethodInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeLossFromEquityMethodInvestments",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_OtherOperatingIncomeExpenseNet",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income from equity investments",
        "verboseLabel": "(Loss) gain from equity investments",
        "label": "Income (Loss) from Equity Method Investments",
        "documentation": "Amount of income (loss) for proportionate share of equity method investee's income (loss)."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r144",
      "r212",
      "r378",
      "r385",
      "r389",
      "r432",
      "r790"
     ]
    },
    "us-gaap_IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsAttributableToNoncontrollingInterestBeforeIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsAttributableToNoncontrollingInterestBeforeIncomeTax",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofPretaxLossesofDisposalGroupHeldforSaleDetails": {
       "parentTag": "us-gaap_IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsAttributableToParentBeforeIncomeTax",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofPretaxLossesofDisposalGroupHeldforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Pretax loss (income) of disposal group attributable to non-controlling interest in Consolidated VIEs",
        "label": "Income (Loss) from Individually Significant Component Disposed of or Held-for-Sale, Excluding Discontinued Operations, Attributable to Noncontrolling Interest, before Income Tax",
        "documentation": "Amount before tax of income (loss) from an individually significant component disposed of or held-for-sale attributable to noncontrolling interest. Excludes discontinued operations."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsAttributableToParentBeforeIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsAttributableToParentBeforeIncomeTax",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofPretaxLossesofDisposalGroupHeldforSaleDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofPretaxLossesofDisposalGroupHeldforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Pretax loss of disposal group attributable to Company's common stockholders",
        "label": "Income (Loss) from Individually Significant Component Disposed of or Held-for-Sale, Excluding Discontinued Operations, Attributable to Parent, before Income Tax",
        "documentation": "Amount before tax of income (loss) from an individually significant component disposed of or held-for-sale attributable to parent. Excludes discontinued operations."
       }
      }
     },
     "auth_ref": [
      "r171"
     ]
    },
    "us-gaap_IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsBeforeIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsBeforeIncomeTax",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofPretaxLossesofDisposalGroupHeldforSaleDetails": {
       "parentTag": "us-gaap_IncomeLossFromIndividuallySignificantComponentDisposedOfOrHeldForSaleExcludingDiscontinuedOperationsAttributableToParentBeforeIncomeTax",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofPretaxLossesofDisposalGroupHeldforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pretax (loss) income of disposal group held for sale",
        "label": "Income (Loss) from Individually Significant Component Disposed of or Held-for-Sale, Excluding Discontinued Operations, before Income Tax",
        "documentation": "Amount before tax of income (loss) from an individually significant component disposed of or held-for-sale including the portion attributable to the noncontrolling interest. Excludes discontinued operations."
       }
      }
     },
     "auth_ref": [
      "r170"
     ]
    },
    "nymt_IncomeLossFromRealEstateAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "IncomeLossFromRealEstateAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NET LOSS FROM REAL ESTATE:",
        "label": "Income (Loss) From Real Estate [Abstract]",
        "documentation": "Income (Loss) From Real Estate"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeStatementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeStatementAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income Statement [Abstract]",
        "label": "Income Statement [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income Statement, Balance Sheet and Additional Disclosures by Disposal Groups, Including Discontinued Operations [Line Items]",
        "label": "Income Statement, Balance Sheet and Additional Disclosures by Disposal Groups, Including Discontinued Operations [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_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disposal Groups, Including Discontinued Operations [Table]",
        "label": "Disposal Groups, Including Discontinued Operations [Table]",
        "documentation": "Disclosure of information about a disposal group. Includes, but is not limited to, a discontinued operation, disposal classified as held-for-sale or disposed of by means other than sale or disposal of an individually significant component."
       }
      }
     },
     "auth_ref": [
      "r15",
      "r21",
      "r30",
      "r112",
      "r113",
      "r114",
      "r115",
      "r116",
      "r117",
      "r119",
      "r120",
      "r121",
      "r169"
     ]
    },
    "us-gaap_IncomeTaxDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeTaxDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income Tax Disclosure [Abstract]",
        "label": "Income Tax Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeTaxDisclosureTextBlock",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxes"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income Taxes",
        "label": "Income Tax Disclosure [Text Block]",
        "documentation": "The entire disclosure for income tax."
       }
      }
     },
     "auth_ref": [
      "r334",
      "r589",
      "r591",
      "r592",
      "r593",
      "r594",
      "r595",
      "r600",
      "r607",
      "r609",
      "r610",
      "r611",
      "r821",
      "r993"
     ]
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest",
       "weight": -1.0,
       "order": 1.0
      },
      "http://nymtrust.com/role/IncomeTaxesScheduleofComponentsofIncomeTaxBenefitExpenseDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/IncomeTaxesScheduleofComponentsofIncomeTaxBenefitExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Income tax expense (benefit)",
        "totalLabel": "Total income tax expense (benefit)",
        "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": [
      "r246",
      "r252",
      "r357",
      "r358",
      "r378",
      "r386",
      "r389",
      "r590",
      "r591",
      "r608",
      "r801",
      "r993"
     ]
    },
    "us-gaap_IncomeTaxesPaidNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeTaxesPaidNet",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash (refunds received) paid for income taxes",
        "label": "Income Taxes Paid, Net",
        "documentation": "Amount, after refund, of cash paid to foreign, federal, state, and local jurisdictions as income tax."
       }
      }
     },
     "auth_ref": [
      "r43",
      "r327",
      "r601",
      "r602"
     ]
    },
    "nymt_IncreaseDecreaseFromEquityMethodInvestmentsPreferredEquityAndMezzanineLoan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "IncreaseDecreaseFromEquityMethodInvestmentsPreferredEquityAndMezzanineLoan",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Income from preferred equity, mezzanine loan and equity investments",
        "label": "Increase (Decrease) From Equity Method Investments, Preferred Equity and Mezzanine Loan",
        "documentation": "Increase (Decrease) From Equity Method Investments, Preferred Equity and Mezzanine Loan"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_IncreaseDecreaseInNonControllingInterestRelatedToDeConsolidationOfVIEs": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "IncreaseDecreaseInNonControllingInterestRelatedToDeConsolidationOfVIEs",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "(Decrease) increase in non-controlling interest related to de-consolidation of VIEs",
        "label": "Increase (Decrease) in Non-Controlling Interest Related to De-Consolidation of VIEs",
        "documentation": "Increase (Decrease) in Non-Controlling Interest Related to De-Consolidation of VIEs"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncreaseDecreaseInOtherOperatingCapitalNet",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Changes in operating assets and liabilities",
        "label": "Increase (Decrease) in Other Operating Assets and Liabilities, Net",
        "documentation": "Amount of increase (decrease) in operating assets after deduction of operating liabilities classified as other."
       }
      }
     },
     "auth_ref": [
      "r10"
     ]
    },
    "us-gaap_IncreaseDecreaseInStockholdersEquityRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncreaseDecreaseInStockholdersEquityRollForward",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "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": []
    },
    "us-gaap_InterestAndDividendIncomeOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestAndDividendIncomeOperating",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": 1.0,
       "order": 1.0
      },
      "http://nymtrust.com/role/NetInterestIncomeDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/NetInterestIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest income",
        "totalLabel": "Interest income",
        "label": "Interest and Dividend Income, Operating",
        "documentation": "Represents the total of interest and dividend income, including any amortization and accretion (as applicable) of discounts and premiums, earned from (1) loans and leases whether held-for-sale or held-in-portfolio; (2) investment securities; (3) federal funds sold; (4) securities purchased under agreements to resell; (5) investments in banker's acceptances, commercial paper, or certificates of deposit; (6) dividend income; or (7) other investments not otherwise specified herein."
       }
      }
     },
     "auth_ref": [
      "r208",
      "r216",
      "r218",
      "r219",
      "r220",
      "r1270"
     ]
    },
    "us-gaap_InterestAndDividendIncomeSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestAndDividendIncomeSecurities",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/NetInterestIncomeDetails": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Investment securities available for sale",
        "label": "Interest and Dividend Income, Securities, Operating",
        "documentation": "Amount of operating dividend and interest income, including amortization and accretion of premiums and discounts, on securities."
       }
      }
     },
     "auth_ref": [
      "r1264",
      "r1269"
     ]
    },
    "us-gaap_InterestAndOtherIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestAndOtherIncome",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest income",
        "label": "Interest and Other Income",
        "documentation": "The amount of interest income and other income recognized during the period. Included in this element is interest derived from investments in debt securities, cash and cash equivalents, and other investments which reflect the time value of money or transactions in which the payments are for the use or forbearance of money and other income from ancillary business-related activities (that is, excluding major activities considered part of the normal operations of the business)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestExpenseBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestExpenseBorrowings",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/NetInterestIncomeDetails": {
       "parentTag": "us-gaap_InterestExpenseOperating",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest expense",
        "label": "Interest Expense, Borrowings",
        "documentation": "Aggregate amount of interest expense on all borrowings."
       }
      }
     },
     "auth_ref": [
      "r222",
      "r223"
     ]
    },
    "us-gaap_InterestExpenseMediumTermNotes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestExpenseMediumTermNotes",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/NetInterestIncomeDetails": {
       "parentTag": "us-gaap_InterestExpenseOperating",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Senior unsecured notes",
        "label": "Interest Expense, Medium-Term Note",
        "documentation": "Amount of interest expense incurred on medium-term note."
       }
      }
     },
     "auth_ref": [
      "r223"
     ]
    },
    "us-gaap_InterestExpenseOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestExpenseOperating",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": -1.0,
       "order": 2.0
      },
      "http://nymtrust.com/role/NetInterestIncomeDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/NetInterestIncomeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest expense",
        "totalLabel": "Interest expense",
        "label": "Interest Expense, Operating",
        "documentation": "Amount of interest expense classified as operating."
       }
      }
     },
     "auth_ref": [
      "r383",
      "r771",
      "r1078"
     ]
    },
    "nymt_InterestExpenseRealEstateMortgagePayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "InterestExpenseRealEstateMortgagePayable",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "nymt_ExpensesRelatedToOperatingRealEstate",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest expense, mortgages payable on real estate",
        "label": "Interest Expense, Real Estate Mortgage Payable",
        "documentation": "Interest Expense, Real Estate Mortgage Payable"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestExpenseSubordinatedNotesAndDebentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestExpenseSubordinatedNotesAndDebentures",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/NetInterestIncomeDetails": {
       "parentTag": "us-gaap_InterestExpenseOperating",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subordinated debentures",
        "label": "Interest Expense, Subordinated Notes and Debentures",
        "documentation": "Interest expense incurred during the reporting period on subordinated notes and debentures. Includes amortization of expenses incurred in the issuance of subordinated notes and debentures."
       }
      }
     },
     "auth_ref": [
      "r223"
     ]
    },
    "nymt_InterestIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "InterestIncomeAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NET INTEREST INCOME:",
        "label": "INTEREST INCOME:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestIncomeAndInterestExpenseDisclosureTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Components of Interest Income and 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_InterestIncomeAndInterestExpenseDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestIncomeAndInterestExpenseDisclosureTextBlock",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net Interest Income",
        "label": "Interest Income and Interest Expense Disclosure [Text Block]",
        "documentation": "The entire disclosure for interest income and interest expense for enterprises that derive a significant portion of their revenue from interest collected on investments, loans, and securities."
       }
      }
     },
     "auth_ref": [
      "r208",
      "r209",
      "r210",
      "r211",
      "r216",
      "r218",
      "r219",
      "r220",
      "r221",
      "r222",
      "r223",
      "r224"
     ]
    },
    "us-gaap_InterestIncomeExpenseNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestIncomeExpenseNet",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/NetInterestIncomeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total net interest income",
        "label": "Interest Income (Expense), Operating",
        "documentation": "Amount of interest income (expense) classified as operating."
       }
      }
     },
     "auth_ref": [
      "r768",
      "r1096"
     ]
    },
    "us-gaap_InterestIncomeOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestIncomeOther",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/NetInterestIncomeDetails": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Interest Income, Other",
        "documentation": "Amount of interest income earned from interest bearing assets classified as other."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestIncomeSecuritiesMortgageBacked": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestIncomeSecuritiesMortgageBacked",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/NetInterestIncomeDetails": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest income",
        "label": "Interest Income, Securities, Mortgage-Backed",
        "documentation": "Amount of operating interest income, including amortization and accretion of premiums and discounts, on securitized, pass-through debt securities collateralized by real estate mortgage loans."
       }
      }
     },
     "auth_ref": [
      "r216"
     ]
    },
    "us-gaap_InterestPaidNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestPaidNet",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash paid for interest",
        "label": "Interest Paid, Excluding Capitalized Interest, Operating Activities",
        "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": [
      "r321",
      "r325",
      "r326"
     ]
    },
    "us-gaap_InterestPayableCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestPayableCurrentAndNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails": {
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued interest payable",
        "label": "Interest Payable",
        "documentation": "Amount of interest payable on debt, including, but not limited to, trade payables."
       }
      }
     },
     "auth_ref": [
      "r202",
      "r1225"
     ]
    },
    "us-gaap_InterestRateCapMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestRateCapMember",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofComponentsofRealizedandUnrealizedGainsandLossesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateCapContractsStrikePriceandNotionalAmountsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate caps",
        "verboseLabel": "Interest Rate Caps",
        "label": "Interest Rate Cap [Member]",
        "documentation": "Contract in which the cap writer, in return for a premium, agrees to limit, or cap, the cap holder's risk associated with an increase in interest rates. If rates go above a specified interest-rate-level (the strike price or the cap rate), the cap holder is entitled to receive cash payments equal to the excess of the market rate over the strike price multiplied by the notional principal amount."
       }
      }
     },
     "auth_ref": [
      "r963"
     ]
    },
    "nymt_InterestRateOptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "InterestRateOptionMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Options",
        "label": "Interest Rate Option [Member]",
        "documentation": "Interest Rate Option"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestRateSwapMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestRateSwapMember",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofComponentsofRealizedandUnrealizedGainsandLossesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate swaps",
        "verboseLabel": "Interest rate swaps",
        "label": "Interest Rate Swap [Member]",
        "documentation": "Forward based contracts in which two parties agree to swap periodic payments that are fixed at the outset of the swap contract with variable payments based on a market interest rate (index rate) over a specified period."
       }
      }
     },
     "auth_ref": [
      "r963",
      "r1034",
      "r1035"
     ]
    },
    "nymt_InterestRateSwapsCreditDefaultSwapsU.S.TreasuryFuturesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "InterestRateSwapsCreditDefaultSwapsU.S.TreasuryFuturesMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate Swaps, Credit Default Swaps, U.S. Treasury Futures",
        "label": "Interest Rate Swaps, Credit Default Swaps, U.S. Treasury Futures [Member]",
        "documentation": "Interest Rate Swaps, Credit Default Swaps, U.S. Treasury Futures"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestReceivable",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails": {
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued interest receivable",
        "label": "Interest Receivable",
        "documentation": "Carrying amount as of the balance sheet date of interest earned but not received. Also called accrued interest or accrued interest receivable."
       }
      }
     },
     "auth_ref": [
      "r1074",
      "r1268"
     ]
    },
    "us-gaap_InvestmentBuildingAndBuildingImprovements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentBuildingAndBuildingImprovements",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails": {
       "parentTag": "us-gaap_RealEstateInvestmentPropertyAtCost",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Building and improvements",
        "label": "Investment Building and Building Improvements",
        "documentation": "Aggregate of the carrying amounts as of the balance sheet date of investments in building and building improvements."
       }
      }
     },
     "auth_ref": [
      "r1223",
      "r1224"
     ]
    },
    "us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedLongTermCapitalGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyDistributableEarningsLossAccumulatedLongTermCapitalGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Capital losses",
        "label": "Investment Company, Distributable Earnings (Loss), Accumulated Long-Term Capital Gain (Loss)",
        "documentation": "Amount of accumulated undistributed earnings (deficit) from long-term capital gain (loss) of investment company."
       }
      }
     },
     "auth_ref": [
      "r820"
     ]
    },
    "nymt_InvestmentSecuritiesAvailableforSaleAtFairValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "InvestmentSecuritiesAvailableforSaleAtFairValueMember",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Investment securities available for sale, at fair value",
        "terseLabel": "Investment securities available for sale",
        "label": "Investment Securities Available for Sale At Fair Value [Member]",
        "documentation": "Investment Securities Available for Sale At Fair Value [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentTypeAxis",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Type [Axis]",
        "label": "Investment Type [Axis]",
        "documentation": "Information by type of investments."
       }
      }
     },
     "auth_ref": [
      "r837",
      "r839",
      "r840",
      "r843",
      "r846",
      "r902",
      "r905",
      "r908",
      "r912",
      "r913",
      "r925",
      "r928",
      "r929",
      "r930",
      "r931",
      "r932",
      "r1029"
     ]
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentTypeCategorizationMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments [Domain]",
        "verboseLabel": "Investments",
        "label": "Investments [Domain]",
        "documentation": "Asset obtained to generate income or appreciate in value."
       }
      }
     },
     "auth_ref": [
      "r837",
      "r839",
      "r840",
      "r843",
      "r846",
      "r902",
      "r905",
      "r908",
      "r912",
      "r913",
      "r925",
      "r928",
      "r929",
      "r930",
      "r931",
      "r932",
      "r1029"
     ]
    },
    "nymt_InvestmentinUnconsolidatedEntitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "InvestmentinUnconsolidatedEntitiesMember",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity investments",
        "label": "Investment in Unconsolidated Entities [Member]",
        "documentation": "Investment in Unconsolidated Entities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Investments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "Investments",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments",
        "label": "Investments",
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all investments."
       }
      }
     },
     "auth_ref": [
      "r775",
      "r777",
      "r1025",
      "r1026"
     ]
    },
    "us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentsDebtAndEquitySecuritiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments, Debt and Equity Securities [Abstract]",
        "label": "Investments, Debt and Equity Securities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValue"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Securities Available For Sale, at Fair Value",
        "label": "Investments in Debt and Marketable Equity Securities (and Certain Trading Assets) Disclosure [Text Block]",
        "documentation": "The entire disclosure for investments in certain debt and equity securities."
       }
      }
     },
     "auth_ref": [
      "r225",
      "r255",
      "r396",
      "r398",
      "r665",
      "r666",
      "r1220"
     ]
    },
    "nymt_JointVentureEquityInvestmentsInMultiFamilyPropertiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "JointVentureEquityInvestmentsInMultiFamilyPropertiesMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Joint Venture Equity Investments in Multi-Family Properties",
        "verboseLabel": "Joint venture equity investments in multi-family properties",
        "label": "Joint Venture Equity Investments In Multi-family Properties [Member]",
        "documentation": "Joint Venture Equity Investments In Multi-family Properties"
       }
      }
     },
     "auth_ref": []
    },
    "stpr_LA": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/stpr/2024",
     "localname": "LA",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Louisiana",
        "label": "LOUISIANA"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Land": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "Land",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails": {
       "parentTag": "us-gaap_RealEstateInvestmentPropertyAtCost",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Land",
        "label": "Land",
        "documentation": "Amount before accumulated depletion of real estate held for productive use, excluding land held for sale."
       }
      }
     },
     "auth_ref": [
      "r1071"
     ]
    },
    "us-gaap_LeaseAgreementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LeaseAgreementsMember",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetScheduleofLeaseIntangiblesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lease Agreements",
        "label": "Lease Agreements [Member]",
        "documentation": "Contractual agreement that stipulates the lessee pay the lessor for use of an asset."
       }
      }
     },
     "auth_ref": [
      "r71",
      "r1118",
      "r1119",
      "r1120",
      "r1121",
      "r1122",
      "r1124",
      "r1125",
      "r1126"
     ]
    },
    "nymt_LeaseIntangiblesNetInConsolidatedMultiFamilyProperties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "LeaseIntangiblesNetInConsolidatedMultiFamilyProperties",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails": {
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lease intangibles, net in consolidated multi-family properties",
        "label": "Lease Intangibles, Net In Consolidated Multi-Family Properties",
        "documentation": "Lease Intangibles, Net In Consolidated Multi-Family Properties"
       }
      }
     },
     "auth_ref": []
    },
    "dei_LegalEntityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "LegalEntityAxis",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofComponentsofNetGainLossonResidentialMortgageLoansatFairValueDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansHeldinSecuritizationTrustsNetDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Legal Entity [Axis]",
        "label": "Legal Entity [Axis]",
        "documentation": "The set of legal entities associated with a report."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Liabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "Liabilities",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total Liabilities",
        "verboseLabel": "Liabilities",
        "terseLabel": "Total liabilities",
        "label": "Liabilities",
        "documentation": "Amount of liability recognized for present obligation requiring transfer or otherwise providing economic benefit to others."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r123",
      "r124",
      "r125",
      "r127",
      "r128",
      "r129",
      "r132",
      "r333",
      "r438",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r622",
      "r625",
      "r626",
      "r668",
      "r855",
      "r971",
      "r1040",
      "r1137",
      "r1210",
      "r1211"
     ]
    },
    "us-gaap_LiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LiabilitiesAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liabilities:",
        "label": "Liabilities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LiabilitiesAndStockholdersEquity",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total Liabilities and Equity",
        "label": "Liabilities and Equity",
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any."
       }
      }
     },
     "auth_ref": [
      "r140",
      "r207",
      "r788",
      "r1009",
      "r1086",
      "r1115",
      "r1204"
     ]
    },
    "us-gaap_LiabilitiesAndStockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LiabilitiesAndStockholdersEquityAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "LIABILITIES AND EQUITY",
        "label": "Liabilities and Equity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LiabilitiesFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LiabilitiesFairValueDisclosure",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total",
        "label": "Liabilities, Fair Value Disclosure",
        "documentation": "Fair value of financial and nonfinancial obligations."
       }
      }
     },
     "auth_ref": [
      "r644",
      "r1189"
     ]
    },
    "us-gaap_LiabilitiesFairValueDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LiabilitiesFairValueDisclosureAbstract",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liabilities carried at fair value",
        "verboseLabel": "Liabilities",
        "label": "Liabilities, Fair Value Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleScheduleofAssetsandLiabilitiesofDisposalGroupHeldforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total liabilities of disposal group held for sale",
        "label": "Disposal Group, Including Discontinued Operation, Liabilities",
        "documentation": "Amount classified as liabilities attributable to disposal group held for sale or disposed of."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r112",
      "r118",
      "r168",
      "r288",
      "r289"
     ]
    },
    "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationCurrent",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liabilities of disposal group held for sale",
        "label": "Disposal Group, Including Discontinued Operation, Liabilities, Current",
        "documentation": "Amount classified as liabilities attributable to disposal group held for sale or disposed of, expected to be disposed of within one year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r112",
      "r118",
      "r165",
      "r168",
      "r288",
      "r289"
     ]
    },
    "nymt_LoanPremiumsLoansAndPreferredEquityAndMezzanineLoansEarlyRedemption": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "LoanPremiumsLoansAndPreferredEquityAndMezzanineLoansEarlyRedemption",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/OtherIncomeLossDetails": {
       "parentTag": "us-gaap_OtherNonoperatingIncomeExpense",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/OtherIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loan premiums, early redemption",
        "verboseLabel": "Preferred equity and mezzanine loan premiums resulting from early redemption",
        "label": "Loan Premiums, Loans and Preferred Equity and Mezzanine Loans, Early Redemption",
        "documentation": "Loan Premiums, Loans and Preferred Equity and Mezzanine Loans, Early Redemption"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LoansPayableFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LoansPayableFairValueDisclosure",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "parentTag": "us-gaap_LiabilitiesFairValueDisclosure",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consolidated SLST",
        "label": "Loans Payable, Fair Value Disclosure",
        "documentation": "Fair value portion of contractual obligation to pay money on demand or on fixed or determinable dates."
       }
      }
     },
     "auth_ref": [
      "r1190",
      "r1200"
     ]
    },
    "dei_LocalPhoneNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "LocalPhoneNumber",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Local Phone Number",
        "label": "Local Phone Number",
        "documentation": "Local phone number for entity."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_LondonInterbankOfferedRateLIBOR1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "LondonInterbankOfferedRateLIBOR1Member",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "London Interbank Offered Rate (LIBOR)",
        "label": "London Interbank Offered Rate (LIBOR)1 [Member]",
        "documentation": "London Interbank Offered Rate (LIBOR)1"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongTermDebt",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgagePayableonRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total",
        "terseLabel": "Long-term debt",
        "netLabel": "Mortgage Payable, Net",
        "verboseLabel": "Mortgages payable on real estate, carrying 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": [
      "r28",
      "r204",
      "r506",
      "r521",
      "r981",
      "r982",
      "r1008",
      "r1226"
     ]
    },
    "us-gaap_LongTermDebtByMaturityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongTermDebtByMaturityAbstract",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-term Debt, Fiscal Year Maturity [Abstract]",
        "label": "Long-Term Debt, Fiscal Year Maturity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermDebtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongTermDebtFairValue",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mortgages payable on real estate, estimated fair value",
        "label": "Long-Term Debt, Fair Value",
        "documentation": "The fair value amount of long-term debt whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission."
       }
      }
     },
     "auth_ref": [
      "r1189",
      "r1191",
      "r1192",
      "r1193"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Thereafter",
        "label": "Long-Term Debt, Maturity, after Year Five",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r344",
      "r1143"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 2.0
      },
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "2025",
        "terseLabel": "2025",
        "label": "Long-Term Debt, Maturity, Year One",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r344",
      "r511"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2029",
        "label": "Long-Term Debt, Maturity, Year Five",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r344",
      "r511"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 1.0
      },
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "2028",
        "terseLabel": "2028",
        "label": "Long-Term Debt, Maturity, Year Four",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r344",
      "r511"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 4.0
      },
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "2027",
        "terseLabel": "2027",
        "label": "Long-Term Debt, Maturity, Year Three",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r344",
      "r511"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 2.0
      },
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "2026",
        "terseLabel": "2026",
        "label": "Long-Term Debt, Maturity, Year Two",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r344",
      "r511"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 1.0
      },
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "2024",
        "terseLabel": "2024",
        "label": "Long-Term Debt, Maturity, Remainder of Fiscal Year",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in remainder of current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r1088"
     ]
    },
    "nymt_LongTermDebtMaturityAfterYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "LongTermDebtMaturityAfterYearFour",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Thereafter",
        "label": "Long-Term Debt, Maturity, after Year Four",
        "documentation": "Long-Term Debt, Maturity, after Year Four"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_LongTermDebtMaximumCommittedMortgagePrincipalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "LongTermDebtMaximumCommittedMortgagePrincipalAmount",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgagePayableonRealEstateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maximum Committed Mortgage Principal Amount",
        "label": "Long Term Debt, Maximum Committed Mortgage Principal Amount",
        "documentation": "Long Term Debt, Maximum Committed Mortgage Principal Amount"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermDebtMeasurementInput": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongTermDebtMeasurementInput",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt, measurement input",
        "label": "Long-Term Debt, Measurement Input",
        "documentation": "Value of input used to measure long-term debt."
       }
      }
     },
     "auth_ref": [
      "r1191",
      "r1192",
      "r1193"
     ]
    },
    "us-gaap_LongTermDebtTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongTermDebtTextBlock",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Collateralized Debt Obligations",
        "label": "Long-Term Debt [Text Block]",
        "documentation": "The entire disclosure for long-term debt."
       }
      }
     },
     "auth_ref": [
      "r173"
     ]
    },
    "us-gaap_LongTermNotesPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongTermNotesPayable",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mortgages payable on real estate, net",
        "label": "Notes Payable, Noncurrent",
        "documentation": "Carrying value as of the balance sheet date of notes payable (with maturities initially due after one year or beyond the operating cycle if longer), excluding current portion."
       }
      }
     },
     "auth_ref": [
      "r28"
     ]
    },
    "us-gaap_LongtermDebtTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongtermDebtTypeAxis",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtInstrumentRedemptionDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgagePayableonRealEstateDetails",
      "http://nymtrust.com/role/DebtScheduleofSeniorUnsecuredNotesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateCapContractsStrikePriceandNotionalAmountsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsNarrativeDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/NetInterestIncomeDetails",
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesDetails"
     ],
     "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": [
      "r28",
      "r1131",
      "r1132",
      "r1133"
     ]
    },
    "us-gaap_LongtermDebtTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongtermDebtTypeDomain",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtInstrumentRedemptionDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgagePayableonRealEstateDetails",
      "http://nymtrust.com/role/DebtScheduleofSeniorUnsecuredNotesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateCapContractsStrikePriceandNotionalAmountsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsNarrativeDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/NetInterestIncomeDetails",
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesDetails"
     ],
     "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": [
      "r28",
      "r53",
      "r1131",
      "r1132",
      "r1133"
     ]
    },
    "nymt_LucieAtTraditionHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "LucieAtTraditionHoldingsLLCMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lucie at Tradition Holdings, LLC",
        "verboseLabel": "Lucie at Tradition Holdings, LLC",
        "label": "Lucie at Tradition Holdings, LLC [Member]",
        "documentation": "Lucie at Tradition Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "stpr_MA": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/stpr/2024",
     "localname": "MA",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Massachusetts",
        "label": "MASSACHUSETTS"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_MarginDepositAssetExcessDeficitAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "MarginDepositAssetExcessDeficitAmount",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Margin deposit asset, deficit amount",
        "label": "Margin Deposit Asset, Excess (Deficit) Amount",
        "documentation": "Margin Deposit Asset, Excess (Deficit) Amount"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_MarginDepositAssetsInitialAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "MarginDepositAssetsInitialAmount",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInitialMarginDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Margin deposit assets, initial amount",
        "label": "Margin Deposit Assets, Initial Amount",
        "documentation": "Margin Deposit Assets, Initial Amount"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Maturity30To90DaysMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "Maturity30To90DaysMember",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleOfRepurchaseAgreementsMaturitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Over 30 days to 90 days",
        "label": "Maturity 30 to 90 Days [Member]",
        "documentation": "Maturity period that is more than 29 days but fewer than 91 days from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements."
       }
      }
     },
     "auth_ref": [
      "r337",
      "r1010"
     ]
    },
    "us-gaap_MaturityOver90DaysMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MaturityOver90DaysMember",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleOfRepurchaseAgreementsMaturitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Over 90 days",
        "label": "Maturity Greater than 90 Days [Member]",
        "documentation": "Maturity period of over 90 days from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements."
       }
      }
     },
     "auth_ref": [
      "r338",
      "r1010"
     ]
    },
    "us-gaap_MaturityUpTo30DaysMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MaturityUpTo30DaysMember",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleOfRepurchaseAgreementsMaturitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Within 30 days",
        "label": "Maturity Less than 30 Days [Member]",
        "documentation": "Maturity period of up to 30 days from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements."
       }
      }
     },
     "auth_ref": [
      "r336",
      "r1010"
     ]
    },
    "srt_MaximumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MaximumMember",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/CommitmentsandContingenciesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateCapContractsStrikePriceandNotionalAmountsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maximum",
        "label": "Maximum [Member]",
        "documentation": "Upper limit of the provided range."
       }
      }
     },
     "auth_ref": [
      "r257",
      "r259",
      "r261",
      "r262",
      "r264",
      "r284",
      "r285",
      "r478",
      "r479",
      "r480",
      "r481",
      "r550",
      "r588",
      "r647",
      "r727",
      "r802",
      "r803",
      "r810",
      "r847",
      "r848",
      "r903",
      "r906",
      "r910",
      "r911",
      "r926",
      "r960",
      "r961",
      "r975",
      "r985",
      "r990",
      "r1001",
      "r1002",
      "r1006",
      "r1007",
      "r1023",
      "r1141",
      "r1212",
      "r1213",
      "r1214",
      "r1215",
      "r1216",
      "r1217"
     ]
    },
    "nymt_MeasurementInputAnnualHomePriceAppreciationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "MeasurementInputAnnualHomePriceAppreciationMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Annual home price appreciation/(depreciation)",
        "label": "Measurement Input, Annual Home Price Appreciation [Member]",
        "documentation": "Measurement Input, Annual Home Price Appreciation [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MeasurementInputAppraisedValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MeasurementInputAppraisedValueMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Property value",
        "label": "Measurement Input, Appraised Value [Member]",
        "documentation": "Measurement input using assessed value of property."
       }
      }
     },
     "auth_ref": [
      "r1191",
      "r1192",
      "r1193"
     ]
    },
    "nymt_MeasurementInputCollateralDefaultRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "MeasurementInputCollateralDefaultRateMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Collateral default rate",
        "label": "Measurement Input, Collateral Default Rate [Member]",
        "documentation": "Measurement Input, Collateral Default Rate [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_MeasurementInputCollateralPrepaymentRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "MeasurementInputCollateralPrepaymentRateMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Collateral prepayment rate",
        "label": "Measurement Input, Collateral Prepayment Rate [Member]",
        "documentation": "Measurement Input, Collateral Prepayment Rate [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MeasurementInputDiscountRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MeasurementInputDiscountRateMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Discount rate",
        "label": "Measurement Input, Discount Rate [Member]",
        "documentation": "Measurement input using interest rate to determine present value of future cash flows."
       }
      }
     },
     "auth_ref": [
      "r1191",
      "r1192",
      "r1193"
     ]
    },
    "nymt_MeasurementInputLifetimeCDRMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "MeasurementInputLifetimeCDRMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lifetime CDR",
        "label": "Measurement Input, Lifetime CDR [Member]",
        "documentation": "Measurement Input, Lifetime CDR [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_MeasurementInputLifetimeCPRMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "MeasurementInputLifetimeCPRMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lifetime CPR",
        "label": "Measurement Input, Lifetime CPR [Member]",
        "documentation": "Measurement Input, Lifetime CPR [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_MeasurementInputLiquidationTimelinePeriodMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "MeasurementInputLiquidationTimelinePeriodMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liquidation timeline (months)",
        "label": "Measurement Input, Liquidation Timeline, Period [Member]",
        "documentation": "Measurement Input, Liquidation Timeline, Period [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MeasurementInputLossSeverityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MeasurementInputLossSeverityMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loss severity",
        "label": "Measurement Input, Loss Severity [Member]",
        "documentation": "Measurement input using loss, including, but not limited to, interest and write-down of principal, incurred on defaulted security as proportion of principal balance."
       }
      }
     },
     "auth_ref": [
      "r1001",
      "r1191",
      "r1192",
      "r1193"
     ]
    },
    "nymt_MeasurementInputMonthsToAssumedRedemptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "MeasurementInputMonthsToAssumedRedemptionMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Months to assumed redemption",
        "label": "Measurement Input, Months To Assumed Redemption [Member]",
        "documentation": "Measurement Input, Months To Assumed Redemption [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MeasurementInputTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MeasurementInputTypeAxis",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "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": [
      "r645",
      "r646",
      "r647",
      "r1001"
     ]
    },
    "us-gaap_MeasurementInputTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MeasurementInputTypeDomain",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "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": [
      "r645",
      "r646",
      "r647",
      "r1001"
     ]
    },
    "nymt_MeasurementInputYieldMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "MeasurementInputYieldMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Yield",
        "label": "Measurement Input, Yield [Member]",
        "documentation": "Measurement Input, Yield [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_MezzanineLoanandPreferredEquityInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "MezzanineLoanandPreferredEquityInvestmentsMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Preferred Equity and Mezzanine Loan Investments",
        "terseLabel": "Multi-Family Loans",
        "label": "Mezzanine Loan and Preferred Equity Investments [Member]",
        "documentation": "Mezzanine Loan and Preferred Equity Investments [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_MinimumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MinimumMember",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateCapContractsStrikePriceandNotionalAmountsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Minimum",
        "label": "Minimum [Member]",
        "documentation": "Lower limit of the provided range."
       }
      }
     },
     "auth_ref": [
      "r257",
      "r259",
      "r261",
      "r262",
      "r264",
      "r284",
      "r285",
      "r478",
      "r479",
      "r480",
      "r481",
      "r550",
      "r588",
      "r647",
      "r727",
      "r802",
      "r803",
      "r810",
      "r847",
      "r848",
      "r903",
      "r906",
      "r910",
      "r911",
      "r926",
      "r960",
      "r961",
      "r975",
      "r985",
      "r990",
      "r1001",
      "r1002",
      "r1006",
      "r1023",
      "r1141",
      "r1212",
      "r1213",
      "r1214",
      "r1215",
      "r1216",
      "r1217"
     ]
    },
    "nymt_MinimumNumberofQuarterswithNoDividendsthatResultsinVotingRights": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "MinimumNumberofQuarterswithNoDividendsthatResultsinVotingRights",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of quarters with no dividends that results in voting rights",
        "label": "Minimum Number of Quarters with No Dividends that Results in Voting Rights",
        "documentation": "Minimum Number of Quarters with No Dividends that Results in Voting Rights"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MinorityInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MinorityInterest",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-controlling interests",
        "verboseLabel": "Non-controlling interest in Consolidated VIEs",
        "label": "Equity, Attributable to Noncontrolling Interest",
        "documentation": "Amount of equity (deficit) attributable to noncontrolling interest. Excludes temporary equity."
       }
      }
     },
     "auth_ref": [
      "r139",
      "r206",
      "r333",
      "r438",
      "r484",
      "r486",
      "r487",
      "r488",
      "r491",
      "r492",
      "r668",
      "r787",
      "r859"
     ]
    },
    "us-gaap_MinorityInterestChangeInRedemptionValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MinorityInterestChangeInRedemptionValue",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Adjustment of redeemable non-controlling interest to estimated redemption value",
        "label": "Noncontrolling Interest, Change in Redemption Value",
        "documentation": "Change in noncontrolling interest during the period as a result of a change in the redemption value of redeemable noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r57",
      "r66",
      "r175",
      "r176"
     ]
    },
    "us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Decrease in non-controlling interest related to distributions from Consolidated VIEs",
        "label": "Noncontrolling Interest, Decrease from Distributions to Noncontrolling Interest Holders",
        "documentation": "Decrease in noncontrolling interest balance from payment of dividends or other distributions by the non-wholly owned subsidiary or partially owned entity, included in the consolidation of the parent entity, to the noncontrolling interest holders."
       }
      }
     },
     "auth_ref": [
      "r180"
     ]
    },
    "us-gaap_MortgageBackedSecuritiesHeldToMaturityFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MortgageBackedSecuritiesHeldToMaturityFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Residential mortgage loans at fair value",
        "label": "Debt Security, Mortgage-Backed, Held-to-Maturity, Fair Value Disclosure",
        "documentation": "Fair value of securitized, pay-through debt securities collateralized by real estate mortgage loans classified as held-to-maturity."
       }
      }
     },
     "auth_ref": [
      "r644",
      "r656",
      "r1189"
     ]
    },
    "us-gaap_MortgageBackedSecuritiesIssuedByPrivateEnterprisesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MortgageBackedSecuritiesIssuedByPrivateEnterprisesMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-Agency RMBS",
        "label": "Mortgage-Backed Securities, Issued by Private Enterprises [Member]",
        "documentation": "Debt securities collateralized by real estate mortgage loans (mortgages), issued by non-governmental sponsored enterprises."
       }
      }
     },
     "auth_ref": [
      "r1103",
      "r1106",
      "r1107",
      "r1108",
      "r1109",
      "r1148"
     ]
    },
    "us-gaap_MortgageLoansInProcessOfForeclosureAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MortgageLoansInProcessOfForeclosureAmount",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Process of foreclosure",
        "label": "Mortgage Loans in Process of Foreclosure, Amount",
        "documentation": "Recorded investment of consumer mortgage loan receivables secured by residential real estate properties for which formal foreclosure proceedings are in process."
       }
      }
     },
     "auth_ref": [
      "r395"
     ]
    },
    "us-gaap_MortgageLoansOnRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MortgageLoansOnRealEstate",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansHeldinSecuritizationTrustsNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Carrying value",
        "verboseLabel": "Fair Value",
        "netLabel": "Carrying Value of Assets Pledged",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate",
        "documentation": "Amount of investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate."
       }
      }
     },
     "auth_ref": [
      "r944"
     ]
    },
    "srt_MortgageLoansOnRealEstateAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MortgageLoansOnRealEstateAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate [Abstract]",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_MortgageLoansOnRealEstateDescriptionLoanCategoryAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MortgageLoansOnRealEstateDescriptionLoanCategoryAxis",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofComponentsofNetGainLossonResidentialMortgageLoansatFairValueDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansHeldinSecuritizationTrustsNetDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Loan Category [Axis]",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Loan Category [Axis]",
        "documentation": "Information by loan category for investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate."
       }
      }
     },
     "auth_ref": [
      "r277",
      "r941"
     ]
    },
    "srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Real Estate, Type of Property [Axis]",
        "label": "Real Estate, Type of Property [Axis]",
        "documentation": "Information by type of real estate property."
       }
      }
     },
     "auth_ref": [
      "r266",
      "r267",
      "r268",
      "r269",
      "r271",
      "r272",
      "r273",
      "r274",
      "r275",
      "r277",
      "r941",
      "r949",
      "r950",
      "r951",
      "r952",
      "r954",
      "r955",
      "r956",
      "r957",
      "r958"
     ]
    },
    "srt_MortgageLoansOnRealEstateFaceAmountOfMortgages": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MortgageLoansOnRealEstateFaceAmountOfMortgages",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansHeldinSecuritizationTrustsNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Principal",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Face Amount of Mortgages",
        "documentation": "Amount of contractual principal due at origination of mortgage loan within investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate."
       }
      }
     },
     "auth_ref": [
      "r278",
      "r942"
     ]
    },
    "srt_MortgageLoansOnRealEstateLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MortgageLoansOnRealEstateLineItems",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofPreferredEquityandMezzanineLoanInvestmentsDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofComponentsofNetGainLossonResidentialMortgageLoansatFairValueDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansHeldinSecuritizationTrustsNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate [Line Items]",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate [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": [
      "r281",
      "r946"
     ]
    },
    "srt_MortgageLoansOnRealEstateLoanCategoryDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MortgageLoansOnRealEstateLoanCategoryDomain",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofComponentsofNetGainLossonResidentialMortgageLoansatFairValueDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansHeldinSecuritizationTrustsNetDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Loan Category [Domain]",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Loan Category [Domain]",
        "documentation": "Loan category for investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate."
       }
      }
     },
     "auth_ref": []
    },
    "srt_MortgageLoansOnRealEstateNamePropertyTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MortgageLoansOnRealEstateNamePropertyTypeDomain",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Real Estate [Domain]",
        "label": "Real Estate [Domain]",
        "documentation": "Land and any structures permanently fixed to it."
       }
      }
     },
     "auth_ref": [
      "r266",
      "r267",
      "r268",
      "r269",
      "r271",
      "r272",
      "r273",
      "r274",
      "r275",
      "r949",
      "r950",
      "r951",
      "r952",
      "r954",
      "r955",
      "r956",
      "r957",
      "r958"
     ]
    },
    "srt_MortgageLoansOnRealEstateOriginalLoanAmountAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MortgageLoansOnRealEstateOriginalLoanAmountAxis",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Original Amount [Axis]",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Original Amount [Axis]",
        "documentation": "Information by original amount of mortgage loan for investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate."
       }
      }
     },
     "auth_ref": [
      "r276",
      "r279",
      "r940",
      "r943"
     ]
    },
    "srt_MortgageLoansOnRealEstateOriginalLoanAmountDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MortgageLoansOnRealEstateOriginalLoanAmountDomain",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Original Loan Amount [Domain]",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Original Loan Amount [Domain]",
        "documentation": "Group of similar original loan amounts for investment in real estate mortgage loan by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate."
       }
      }
     },
     "auth_ref": []
    },
    "srt_MortgageLoansOnRealEstatePrincipalAmountOfDelinquentLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MortgageLoansOnRealEstatePrincipalAmountOfDelinquentLoans",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Principal outstanding",
        "verboseLabel": "Unpaid Principal Balance",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Principal Amount of Delinquent Loans",
        "documentation": "Amount of principal due on delinquent mortgage loan within investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate."
       }
      }
     },
     "auth_ref": [
      "r280",
      "r945"
     ]
    },
    "srt_MortgageLoansOnRealEstateScheduleTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MortgageLoansOnRealEstateScheduleTable",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofPreferredEquityandMezzanineLoanInvestmentsDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofComponentsofNetGainLossonResidentialMortgageLoansatFairValueDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansHeldinSecuritizationTrustsNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate Schedule [Table]",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate Schedule [Table]",
        "documentation": "Disclosure of information about investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate."
       }
      }
     },
     "auth_ref": [
      "r281",
      "r946"
     ]
    },
    "us-gaap_MortgagesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MortgagesMember",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgagePayableonRealEstateDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateCapContractsStrikePriceandNotionalAmountsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mortgages",
        "label": "Mortgages [Member]",
        "documentation": "A loan to finance the purchase of real estate where the lender has a lien on the property as collateral for the loan."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MovementInMinorityInterestRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MovementInMinorityInterestRollForward",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stockholders' Equity Attributable to Noncontrolling Interest [Roll Forward]",
        "label": "Equity, Attributable to Noncontrolling Interest [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": []
    },
    "nymt_MultiFamilyLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "MultiFamilyLoansMember",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/NetInterestIncomeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Multi-family loans, at fair value",
        "terseLabel": "Multi-family loans",
        "label": "Multi-family Loans [Member]",
        "documentation": "Multi-family Loans"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_MultiFamilyLoansTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "MultiFamilyLoansTextBlock",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValue"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Multi-family Loans, at Fair Value",
        "label": "Multi Family Loans [Text Block]",
        "documentation": "Multi Family Loans"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_MultiFamilyPreferredEquityOwnershipInterestsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "MultiFamilyPreferredEquityOwnershipInterestsMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Multi-Family Preferred Equity Ownership Interests",
        "label": "Multi-Family Preferred Equity Ownership Interests [Member]",
        "documentation": "Multi-Family Preferred Equity Ownership Interests"
       }
      }
     },
     "auth_ref": []
    },
    "srt_MultifamilyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MultifamilyMember",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Multifamily",
        "label": "Multifamily [Member]",
        "documentation": "Residential building containing multiple separate housing units."
       }
      }
     },
     "auth_ref": [
      "r1060",
      "r1061",
      "r1271",
      "r1272"
     ]
    },
    "stpr_NC": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/stpr/2024",
     "localname": "NC",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "North Carolina",
        "label": "NORTH CAROLINA"
       }
      }
     },
     "auth_ref": []
    },
    "stpr_NJ": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/stpr/2024",
     "localname": "NJ",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "New Jersey",
        "label": "NEW JERSEY"
       }
      }
     },
     "auth_ref": []
    },
    "stpr_NY": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/stpr/2024",
     "localname": "NY",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "New York",
        "label": "NEW YORK"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NYMPreferredTrustIAndIIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NYMPreferredTrustIAndIIMember",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NYM Preferred Trust I And II",
        "label": "NYM Preferred Trust I And II [Member]",
        "documentation": "NYM Preferred Trust I And II"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NYMPreferredTrustIIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NYMPreferredTrustIIMember",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofSubordinatedDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NYM Preferred Trust II",
        "label": "NYM Preferred Trust II [Member]",
        "documentation": "NYM Preferred Trust II."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NYMPreferredTrustIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NYMPreferredTrustIMember",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofSubordinatedDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NYM Preferred Trust I",
        "label": "NYM Preferred Trust I [Member]",
        "documentation": "NYM Preferred Trust I."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash provided by financing activities",
        "label": "Net Cash Provided by (Used in) Financing Activities",
        "documentation": "Amount of cash inflow (outflow) from financing activities, including discontinued operations. Financing activity cash flows include obtaining resources from owners and providing them with a return on, and a return of, their investment; borrowing money and repaying amounts borrowed, or settling the obligation; and obtaining and paying for other resources obtained from creditors on long-term credit."
       }
      }
     },
     "auth_ref": [
      "r324"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash Flows from Financing Activities:",
        "label": "Net Cash Provided by (Used in) Financing Activities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash used in investing activities",
        "label": "Net Cash Provided by (Used in) Investing Activities",
        "documentation": "Amount of cash inflow (outflow) from investing activities, including discontinued operations. Investing activity cash flows include making and collecting loans and acquiring and disposing of debt or equity instruments and property, plant, and equipment and other productive assets."
       }
      }
     },
     "auth_ref": [
      "r324"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetCashProvidedByUsedInInvestingActivitiesAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash Flows from Investing Activities:",
        "label": "Net Cash Provided by (Used in) Investing Activities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash used in operating activities",
        "label": "Net Cash Provided by (Used in) Operating Activities",
        "documentation": "Amount of cash inflow (outflow) from operating activities, including discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities."
       }
      }
     },
     "auth_ref": [
      "r159",
      "r160",
      "r161"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash Flows from Operating Activities:",
        "label": "Net Cash Provided by (Used in) Operating Activities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetIncomeLoss",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": 1.0,
       "order": 2.0
      },
      "http://nymtrust.com/role/LossPerCommonShareDetails": {
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossPerCommonShareDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "NET LOSS ATTRIBUTABLE TO COMPANY",
        "verboseLabel": "Net loss attributable to Company",
        "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": [
      "r146",
      "r161",
      "r217",
      "r289",
      "r306",
      "r309",
      "r313",
      "r333",
      "r348",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r357",
      "r358",
      "r369",
      "r438",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r616",
      "r619",
      "r641",
      "r668",
      "r794",
      "r878",
      "r894",
      "r895",
      "r1038",
      "r1137"
     ]
    },
    "us-gaap_NetIncomeLossAttributableToNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetIncomeLossAttributableToNoncontrollingInterest",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Net loss attributable to non-controlling interests",
        "negatedLabel": "Net loss attributable to non-controlling interest in Consolidated VIEs",
        "verboseLabel": "Net loss attributable to redeemable non-controlling interest in Consolidated VIEs",
        "label": "Net Income (Loss) Attributable to Noncontrolling Interest",
        "documentation": "Amount of Net Income (Loss) attributable to noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r84",
      "r186",
      "r306",
      "r309",
      "r354",
      "r357",
      "r358",
      "r793",
      "r1077"
     ]
    },
    "us-gaap_NetIncomeLossAttributableToRedeemableNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetIncomeLossAttributableToRedeemableNoncontrollingInterest",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITYParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net loss allocated to redeemable non-controlling interest",
        "label": "Net Income (Loss) Attributable to Redeemable Noncontrolling Interest",
        "documentation": "Amount of Net Income (Loss) attributable to redeemable noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r145"
     ]
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetIncomeLossAvailableToCommonStockholdersBasic",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS": {
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0,
       "order": 1.0
      },
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossPerCommonShareDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "NET LOSS ATTRIBUTABLE TO COMPANY'S COMMON STOCKHOLDERS",
        "verboseLabel": "NET LOSS ATTRIBUTABLE TO COMPANY'S COMMON STOCKHOLDERS",
        "terseLabel": "Net income attributable to company's common stockholders",
        "label": "Net Income (Loss) Available to Common Stockholders, Basic",
        "documentation": "Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities; of income (loss) available to common shareholders."
       }
      }
     },
     "auth_ref": [
      "r318",
      "r350",
      "r351",
      "r352",
      "r353",
      "r360",
      "r361",
      "r370",
      "r373",
      "r619"
     ]
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetIncomeLossAvailableToCommonStockholdersDiluted",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/LossPerCommonShareDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossPerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "NET LOSS ATTRIBUTABLE TO COMPANY'S COMMON STOCKHOLDERS",
        "label": "Net Income (Loss) Available to Common Stockholders, Diluted",
        "documentation": "Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities, and addition from assumption of issuance of common shares for dilutive potential common shares; of income (loss) available to common shareholders."
       }
      }
     },
     "auth_ref": [
      "r318",
      "r362",
      "r365",
      "r366",
      "r367",
      "r368",
      "r370",
      "r373"
     ]
    },
    "us-gaap_NetIncomeLossIncludingPortionAttributableToNonredeemableNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetIncomeLossIncludingPortionAttributableToNonredeemableNoncontrollingInterest",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net loss",
        "label": "Net Income (Loss), Including Portion Attributable to Nonredeemable Noncontrolling Interest",
        "documentation": "Amount after income tax of income (loss) including the portion attributable to nonredeemable noncontrolling interest. Excludes the portion attributable to redeemable noncontrolling interest recognized as temporary equity."
       }
      }
     },
     "auth_ref": [
      "r29",
      "r186",
      "r187"
     ]
    },
    "nymt_NetRealizedGainLossOnPayoffOfMortgageLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NetRealizedGainLossOnPayoffOfMortgageLoans",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net realized gain on payoff of residential loans",
        "label": "Net Realized Gain (Loss) On Payoff Of Mortgage Loans",
        "documentation": "Net Realized Gain (Loss) On Payoff Of Mortgage Loans"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NetVariationMarginReceivedForDerivativeInstruments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NetVariationMarginReceivedForDerivativeInstruments",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Net variation margin received for derivative instruments",
        "label": "Net Variation Margin Received For Derivative Instruments",
        "documentation": "Net Variation Margin Received For Derivative Instruments"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Recent Accounting Pronouncements",
        "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": []
    },
    "nymt_NinePointOneTwoFivePercentSeniorNotesDueTwoThousandTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NinePointOneTwoFivePercentSeniorNotesDueTwoThousandTwentyNineMember",
     "presentation": [
      "http://nymtrust.com/role/Cover",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofSeniorUnsecuredNotesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsNarrativeDetails",
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "9.125% Senior Notes due 2029",
        "label": "Nine Point One Two Five Percent Senior Notes Due Two Thousand Twenty Nine [Member]",
        "documentation": "Nine Point One Two Five Percent Senior Notes Due Two Thousand Twenty Nine"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NonAgencyRMBSHeldInSecuritizationTrustMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NonAgencyRMBSHeldInSecuritizationTrustMember",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non Agency RMBS Held In Securitization Trust",
        "label": "Non Agency RMBS Held In Securitization Trust [Member]",
        "documentation": "Non Agency RMBS Held In Securitization Trust"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NonAgencyRMBSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NonAgencyRMBSMember",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-Agency RMBS",
        "verboseLabel": "Non-Agency RMBS",
        "label": "Non Agency RMBS [Member]",
        "documentation": "Non-agency RMBS."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NonCashFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NonCashFinancingActivitiesAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Non-Cash Financing Activities:",
        "label": "Non-Cash Financing Activities:"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NonCashInvestmentActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NonCashInvestmentActivitiesAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-Cash Investment Activities:",
        "label": "Non-Cash Investment Activities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoncashInvestingAndFinancingItemsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NoncashInvestingAndFinancingItemsAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Noncash Investing and Financing Items [Abstract]",
        "label": "Noncash Investing and Financing Items [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoncashOrPartNoncashAcquisitionOtherAssetsAcquired1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NoncashOrPartNoncashAcquisitionOtherAssetsAcquired1",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consolidation of residential loans held in Consolidated SLST",
        "label": "Noncash or Part Noncash Acquisition, Other Assets Acquired",
        "documentation": "Amount of assets, classified as other, acquired in a noncash or part noncash acquisition."
       }
      }
     },
     "auth_ref": [
      "r44",
      "r45",
      "r46"
     ]
    },
    "us-gaap_NoncashOrPartNoncashAcquisitionValueOfLiabilitiesAssumed1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NoncashOrPartNoncashAcquisitionValueOfLiabilitiesAssumed1",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consolidation of Consolidated SLST CDOs",
        "label": "Noncash or Part Noncash Acquisition, Value of Liabilities Assumed",
        "documentation": "The total amount of [all] liabilities that an Entity assumes in acquiring a business or in consideration for an asset received in a noncash (or part noncash) acquisition. Noncash is defined as transactions during a period that affect recognized assets or liabilities but that do not result in cash receipts or cash payments in the period. \"Part noncash\" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period."
       }
      }
     },
     "auth_ref": [
      "r44",
      "r45",
      "r46"
     ]
    },
    "nymt_NoncashOrPartNoncashDispositionDeConsolidationOfMortgagesPayableOnRealEstateHeld": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NoncashOrPartNoncashDispositionDeConsolidationOfMortgagesPayableOnRealEstateHeld",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "De-consolidation of mortgages payable on real estate held in Consolidated VIEs",
        "label": "Noncash Or Part Noncash Disposition, De-Consolidation Of Mortgages Payable On Real Estate Held",
        "documentation": "Noncash Or Part Noncash Disposition, De-Consolidation Of Mortgages Payable On Real Estate Held"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NoncashOrPartNoncashDispositionDeConsolidationOfRealEstateHeld": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NoncashOrPartNoncashDispositionDeConsolidationOfRealEstateHeld",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "De-consolidation of real estate held in Consolidated VIEs",
        "label": "Noncash or Part Noncash Disposition, De-Consolidation Of Real Estate Held",
        "documentation": "Noncash or Part Noncash Disposition, De-Consolidation Of Real Estate Held"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoncontrollingInterestInVariableInterestEntity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NoncontrollingInterestInVariableInterestEntity",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Noncontrolling interest in VIE",
        "label": "Noncontrolling Interest in Variable Interest Entity",
        "documentation": "Portion of equity (net assets) in a variable interest entity (VIE) not attributable, directly or indirectly, to the parent entity. That is, this is the portion of equity in a VIE that is attributable to the noncontrolling interest (previously referred to as minority interest)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Contributions",
        "label": "Noncontrolling Interest, Increase from Subsidiary Equity Issuance",
        "documentation": "Amount of increase in noncontrolling interest from subsidiary issuance of equity interests to noncontrolling interest holders."
       }
      }
     },
     "auth_ref": [
      "r16",
      "r66",
      "r185"
     ]
    },
    "us-gaap_NoncontrollingInterestMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NoncontrollingInterestMember",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-Controlling Interest in Consolidated VIEs",
        "label": "Noncontrolling Interest [Member]",
        "documentation": "This element represents that portion of equity (net assets) in a subsidiary not attributable, directly or indirectly, to the parent. A noncontrolling interest is sometimes called a minority interest."
       }
      }
     },
     "auth_ref": [
      "r73",
      "r539",
      "r1089",
      "r1090",
      "r1091",
      "r1092",
      "r1266"
     ]
    },
    "nymt_NoninterestIncomeExpenseOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NoninterestIncomeExpenseOther",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_OtherOperatingIncomeExpenseNet",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other income (loss)",
        "verboseLabel": "Other income",
        "label": "Noninterest Income (Expense), Other",
        "documentation": "Noninterest Income (Expense), Other"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoninterestIncomeOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NoninterestIncomeOther",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment premiums recognized",
        "label": "Noninterest Income, Other",
        "documentation": "Represents the total of noninterest income derived from certain activities and assets including (for example): (1) venture capital investments; (2) bank owned life insurance; (3) foreign currency transactions; and (4) mortgage servicing rights."
       }
      }
     },
     "auth_ref": [
      "r214"
     ]
    },
    "us-gaap_NotDesignatedAsHedgingInstrumentTradingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NotDesignatedAsHedgingInstrumentTradingMember",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofComponentsofRealizedandUnrealizedGainsandLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Trading",
        "label": "Not Designated as Hedging Instrument, Trading [Member]",
        "documentation": "Derivative instrument, not designated as hedging instrument under Generally Accepted Accounting Principles (GAAP), used for trading purposes for exposure to risk."
       }
      }
     },
     "auth_ref": [
      "r20"
     ]
    },
    "us-gaap_NotesPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NotesPayable",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Mortgages payable on real estate, net in Consolidated VIEs",
        "label": "Notes Payable",
        "documentation": "Including the current and noncurrent portions, aggregate carrying amount of all types of notes payable, as of the balance sheet date, with initial maturities beyond one year or beyond the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r204",
      "r1226",
      "r1227"
     ]
    },
    "nymt_NotionalAmountOfOtherDerivativeAdditionsTransfersIn": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NotionalAmountOfOtherDerivativeAdditionsTransfersIn",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Additions/Transfers In",
        "label": "Notional Amount Of Other Derivative Additions, Transfers In",
        "documentation": "Additions for notional amount of other derivatives.."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NotionalAmountOfOtherDerivativesTerminationsTransfersOut": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NotionalAmountOfOtherDerivativesTerminationsTransfersOut",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Terminations/Transfers Out",
        "label": "Notional Amount Of Other Derivatives, Terminations, Transfers Out",
        "documentation": "Settlement, expiration, or exercise for notional amount of other derivatives."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NumberOfAgreementsWithIncreasedStrikePriceOfTheInterestRateAndPartialInterestPaymentDeferral": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NumberOfAgreementsWithIncreasedStrikePriceOfTheInterestRateAndPartialInterestPaymentDeferral",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of agreements with increase strike price of the interest rate and partial interest payment deferral",
        "label": "Number Of Agreements With Increased Strike Price Of The Interest Rate and Partial Interest Payment Deferral",
        "documentation": "Number Of Agreements With Increased Strike Price Of The Interest Rate and Partial Interest Payment Deferral"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NumberOfAgreementsWithPartialInterestPaymentDeferral": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NumberOfAgreementsWithPartialInterestPaymentDeferral",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of agreements with partial interest rate deferral",
        "label": "Number Of Agreements With Partial Interest Payment Deferral",
        "documentation": "Number Of Agreements With Partial Interest Payment Deferral"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NumberOfCounterpartiesWithAmountsOutstandingUnderRepurchaseAgreements": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NumberOfCounterpartiesWithAmountsOutstandingUnderRepurchaseAgreements",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of counterparties with amounts outstanding under repurchase agreements",
        "label": "Number Of Counterparties With Amounts Outstanding Under Repurchase Agreements",
        "documentation": "Number Of Counterparties With Amounts Outstanding Under Repurchase Agreements"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NumberOfEquityInvestmentsSold": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NumberOfEquityInvestmentsSold",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of equity investments sold",
        "label": "Number of Equity Investments Sold",
        "documentation": "Number of Equity Investments Sold"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NumberOfJointVentureEquityInvestmentsWithDebtRestructuringAgreements": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NumberOfJointVentureEquityInvestmentsWithDebtRestructuringAgreements",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of joint venture equity investments with debt restructuring agreements",
        "label": "Number Of Joint Venture Equity Investments With Debt Restructuring Agreements",
        "documentation": "Number Of Joint Venture Equity Investments With Debt Restructuring Agreements"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NumberOfJointVentures": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NumberOfJointVentures",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of joint ventures, classified as held for sale",
        "label": "Number Of Joint Ventures",
        "documentation": "Number Of Joint Ventures"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NumberOfJointVenturesClassifiedAsHeldForSaleDuringPeriod": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NumberOfJointVenturesClassifiedAsHeldForSaleDuringPeriod",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of joint ventures, classified as held for sale during period",
        "label": "Number Of Joint Ventures Classified As Held-For-Sale During Period",
        "documentation": "Number Of Joint Ventures Classified As Held-For-Sale During Period"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NumberOfJointVenturesOwnedImpaired": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NumberOfJointVenturesOwnedImpaired",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of joint ventures owned, impaired",
        "label": "Number Of Joint Ventures Owned, Impaired",
        "documentation": "Number Of Joint Ventures Owned, Impaired"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NumberOfJointVenturesOwnedNoLongerHeldForSale": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NumberOfJointVenturesOwnedNoLongerHeldForSale",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of joint ventures owned, no longer held for sale",
        "label": "Number Of Joint Ventures Owned, No Longer Held For Sale",
        "documentation": "Number Of Joint Ventures Owned, No Longer Held For Sale"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NumberOfJointVenturesSuspended": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NumberOfJointVenturesSuspended",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of joint ventures, suspended",
        "label": "Number Of Joint Ventures, Suspended",
        "documentation": "Number Of Joint Ventures, Suspended"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NumberOfMultiFamilyApartmentPropertiesExcludedFromRepositioning": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NumberOfMultiFamilyApartmentPropertiesExcludedFromRepositioning",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of multi-family apartment properties excluded from repositioning",
        "label": "Number Of Multi-Family Apartment Properties Excluded From Repositioning",
        "documentation": "Number Of Multi-Family Apartment Properties Excluded From Repositioning"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NumberOfPropertiesImpaired": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NumberOfPropertiesImpaired",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of properties impaired",
        "label": "Number Of Properties Impaired",
        "documentation": "Number Of Properties Impaired"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NumberOfSecuritizationTrusts": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NumberOfSecuritizationTrusts",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of securitization trusts",
        "label": "Number Of Securitization Trusts",
        "documentation": "Number Of Securitization Trusts"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NumberOfSecuritizationsCompleted": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NumberOfSecuritizationsCompleted",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of securitizations completed",
        "label": "Number Of Securitizations Completed",
        "documentation": "Number Of Securitizations Completed"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NumberOfSecuritizationsOptionalRedemptionRightExercised": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NumberOfSecuritizationsOptionalRedemptionRightExercised",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of securitizations optional redemption right exercised",
        "label": "Number Of Securitizations Optional Redemption Right Exercised",
        "documentation": "Number Of Securitizations Optional Redemption Right Exercised"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_NumberOfSeriesOfCumulativeRedeemablePreferredStockOutstanding": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "NumberOfSeriesOfCumulativeRedeemablePreferredStockOutstanding",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of series of cumulative redeemable preferred stock outstanding",
        "label": "Number Of Series Of Cumulative Redeemable Preferred Stock Outstanding",
        "documentation": "Number Of Series Of Cumulative Redeemable Preferred Stock Outstanding"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_OTHERINCOMEEXPENSEAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "OTHERINCOMEEXPENSEAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "OTHER (LOSS) INCOME:",
        "label": "OTHER INCOME (EXPENSE) [Abstract]",
        "documentation": "OTHER INCOME (EXPENSE)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OffsettingAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OffsettingAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Offsetting [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingExpenses",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total general, administrative and operating 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": []
    },
    "us-gaap_OperatingIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingIncomeLoss",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "LOSS FROM OPERATIONS BEFORE INCOME TAXES",
        "label": "Operating Income (Loss)",
        "documentation": "The net result for the period of deducting operating expenses from operating revenues."
       }
      }
     },
     "auth_ref": [
      "r233",
      "r972",
      "r1095",
      "r1096",
      "r1097",
      "r1098",
      "r1099"
     ]
    },
    "us-gaap_OperatingLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingLeaseLiability",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails": {
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operating lease liabilities",
        "label": "Operating Lease, Liability",
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease."
       }
      }
     },
     "auth_ref": [
      "r682"
     ]
    },
    "us-gaap_OperatingLeaseLiabilityStatementOfFinancialPositionExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingLeaseLiabilityStatementOfFinancialPositionExtensibleList",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operating Lease, Liability, Statement of Financial Position [Extensible Enumeration]",
        "label": "Operating Lease, Liability, Statement of Financial Position [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of financial position that includes operating lease liability."
       }
      }
     },
     "auth_ref": [
      "r683"
     ]
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingLeaseRightOfUseAsset",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails": {
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operating lease right-of-use assets",
        "label": "Operating Lease, Right-of-Use Asset",
        "documentation": "Amount of lessee's right to use underlying asset under operating lease."
       }
      }
     },
     "auth_ref": [
      "r681"
     ]
    },
    "us-gaap_OperatingLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operating Lease, Right-of-Use Asset, Statement of Financial Position [Extensible Enumeration]",
        "label": "Operating Lease, Right-of-Use Asset, Statement of Financial Position [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of financial position that includes operating lease right-of-use asset."
       }
      }
     },
     "auth_ref": [
      "r683"
     ]
    },
    "us-gaap_OperatingLossCarryforwards": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingLossCarryforwards",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net operating loss carryforwards",
        "label": "Operating Loss Carryforwards",
        "documentation": "Amount of operating loss carryforward, before tax effects, available to reduce future taxable income under enacted tax laws."
       }
      }
     },
     "auth_ref": [
      "r603"
     ]
    },
    "us-gaap_OperatingLossCarryforwardsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingLossCarryforwardsLineItems",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operating Loss Carryforwards [Line Items]",
        "label": "Operating Loss Carryforwards [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": [
      "r603"
     ]
    },
    "us-gaap_OperatingLossCarryforwardsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingLossCarryforwardsTable",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operating Loss Carryforwards [Table]",
        "label": "Operating Loss Carryforwards [Table]",
        "documentation": "Disclosure of information about operating loss carryforward. Includes, but is not limited to, tax authority, amount and expiration date of operating loss carryforward, and likelihood of utilization."
       }
      }
     },
     "auth_ref": [
      "r603"
     ]
    },
    "nymt_OperatingRealEstateNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "OperatingRealEstateNet",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Real estate, net",
        "label": "Operating Real Estate, Net",
        "documentation": "Operating Real Estate, Net"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Organization, Consolidation and Presentation of Financial Statements [Abstract]",
        "label": "Organization, Consolidation and Presentation of Financial Statements [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
     "presentation": [
      "http://nymtrust.com/role/Organization"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Organization",
        "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": [
      "r110",
      "r183",
      "r812",
      "r813"
     ]
    },
    "us-gaap_OtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherAssets",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 7.0
      },
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other assets",
        "totalLabel": "Total",
        "label": "Other Assets",
        "documentation": "Amount of assets classified as other."
       }
      }
     },
     "auth_ref": [
      "r197",
      "r292",
      "r778",
      "r974",
      "r1040"
     ]
    },
    "us-gaap_OtherAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherAssetsMember",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesNarrativeDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other assets",
        "label": "Other Assets [Member]",
        "documentation": "Primary financial statement caption encompassing other assets."
       }
      }
     },
     "auth_ref": [
      "r90",
      "r101"
     ]
    },
    "us-gaap_OtherAssetsMiscellaneous": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherAssetsMiscellaneous",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails": {
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Other Assets, Miscellaneous",
        "documentation": "Amount of other miscellaneous assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherCommitmentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherCommitmentsLineItems",
     "presentation": [
      "http://nymtrust.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/2024",
     "localname": "OtherCommitmentsTable",
     "presentation": [
      "http://nymtrust.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": []
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS": {
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "TOTAL OTHER COMPREHENSIVE (LOSS) INCOME",
        "label": "Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent",
        "documentation": "Amount after tax of other comprehensive income (loss) attributable to parent entity."
       }
      }
     },
     "auth_ref": [
      "r8",
      "r17",
      "r184",
      "r307",
      "r310",
      "r354"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS": {
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Reclassification adjustment for net loss included in net loss",
        "negatedTerseLabel": "Reclassification adjustment for net loss included in net loss",
        "label": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Net of Tax",
        "documentation": "Amount after tax of reclassification adjustment from accumulated other comprehensive income for unrealized gain (loss) realized upon the sale of available-for-sale securities."
       }
      }
     },
     "auth_ref": [
      "r4",
      "r143",
      "r305",
      "r431"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossTaxAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherComprehensiveIncomeLossTaxAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "OTHER COMPREHENSIVE (LOSS) INCOME",
        "label": "Other Comprehensive Income (Loss), Tax [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS": {
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "(Decrease) increase in fair value of available for sale securities",
        "verboseLabel": "(Decrease) increase in fair value of available for sale securities",
        "label": "OCI, Debt Securities, Available-for-Sale, Unrealized Holding Gain (Loss), before Adjustment, after Tax",
        "documentation": "Amount, after tax and before adjustment, of unrealized holding gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). Excludes unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale."
       }
      }
     },
     "auth_ref": [
      "r303",
      "r304",
      "r431"
     ]
    },
    "us-gaap_OtherCostAndExpenseOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherCostAndExpenseOperating",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Portfolio operating expenses",
        "label": "Other Cost and Expense, Operating",
        "documentation": "The total amount of other operating cost and expense items that are associated with the entity's normal revenue producing operation."
       }
      }
     },
     "auth_ref": [
      "r147",
      "r800",
      "r973"
     ]
    },
    "us-gaap_OtherIncomeAndExpensesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherIncomeAndExpensesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Income and Expenses [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherInvestments",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofPreferredEquityandMezzanineLoanInvestmentsDetails": {
       "parentTag": "nymt_FinancialInstrumentOwnedLoansAndPreferredEquityNet",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofPreferredEquityandMezzanineLoanInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment amount",
        "label": "Other Investments",
        "documentation": "Amount of investments classified as other."
       }
      }
     },
     "auth_ref": [
      "r789",
      "r1070"
     ]
    },
    "us-gaap_OtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 5.0
      },
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other liabilities",
        "netLabel": "Other liabilities",
        "totalLabel": "Total",
        "label": "Other Liabilities",
        "documentation": "Amount of liabilities classified as other."
       }
      }
     },
     "auth_ref": [
      "r203",
      "r780",
      "r851",
      "r852",
      "r1040",
      "r1227",
      "r1261"
     ]
    },
    "us-gaap_OtherLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherLiabilitiesMember",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesNarrativeDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other liabilities",
        "label": "Other Liabilities [Member]",
        "documentation": "Primary financial statement caption encompassing other liabilities."
       }
      }
     },
     "auth_ref": [
      "r90",
      "r101"
     ]
    },
    "nymt_OtherLiabilitiesMiscellaneous": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "OtherLiabilitiesMiscellaneous",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails": {
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Other Liabilities, Miscellaneous",
        "documentation": "Other Liabilities, Miscellaneous"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherLiabilitiesTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Other Liabilities",
        "label": "Other Liabilities [Table Text Block]",
        "documentation": "Tabular disclosure of other liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_OtherLossIncomeMiscellaneous": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "OtherLossIncomeMiscellaneous",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/OtherIncomeLossDetails": {
       "parentTag": "us-gaap_OtherNonoperatingIncomeExpense",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Miscellaneous income",
        "label": "Other (Loss) Income Miscellaneous",
        "documentation": "Other (Loss) Income Miscellaneous"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherNonoperatingIncomeAndExpenseTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherNonoperatingIncomeAndExpenseTextBlock",
     "presentation": [
      "http://nymtrust.com/role/OtherIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Income (Loss)",
        "label": "Other Nonoperating Income and Expense [Text Block]",
        "documentation": "The entire disclosure for the components of non-operating income or non-operating expense, including, but not limited to, amounts earned from dividends, interest on securities, gain (loss) on securities sold, equity earnings of unconsolidated affiliates, gain (loss) on sales of business, interest expense and other miscellaneous income or expense items."
       }
      }
     },
     "auth_ref": [
      "r316",
      "r317"
     ]
    },
    "us-gaap_OtherNonoperatingIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherNonoperatingIncomeExpense",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/OtherIncomeLossDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total other income (loss)",
        "label": "Other Nonoperating Income (Expense)",
        "documentation": "Amount of income (expense) related to nonoperating activities, classified as other."
       }
      }
     },
     "auth_ref": [
      "r153"
     ]
    },
    "us-gaap_OtherOperatingIncomeExpenseNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherOperatingIncomeExpenseNet",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total other (loss) income",
        "label": "Other Operating Income (Expense), Net",
        "documentation": "The net amount of other operating income and expenses, the components of which are not separately disclosed on the income statement, from items that are associated with the entity's normal revenue producing operations."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherRealEstate",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails": {
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other assets in consolidated multi-family properties",
        "label": "Other Real Estate",
        "documentation": "Carrying amount of other real estate not separately disclosed, including, but not limited to, real estate investments, real estate loans that qualify as investments in real estate, and premises that are no longer used in operations may also be included in real estate owned. This does not include real estate assets taken in settlement of troubled loans through surrender or foreclosure."
       }
      }
     },
     "auth_ref": [
      "r196",
      "r1191",
      "r1192",
      "r1193"
     ]
    },
    "nymt_OtherRealEstateExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "OtherRealEstateExpense",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "nymt_ExpensesRelatedToOperatingRealEstate",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other real estate expenses",
        "label": "Other Real Estate Expense",
        "documentation": "Other Real Estate Expense"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_OtherRealEstateIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "OtherRealEstateIncome",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "nymt_RentalIncomeOperating",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other real estate income",
        "label": "Other Real Estate Income",
        "documentation": "Other Real Estate Income"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherReceivables",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails": {
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other receivables",
        "label": "Other Receivables",
        "documentation": "Amount due from parties in nontrade transactions, classified as other."
       }
      }
     },
     "auth_ref": [
      "r297",
      "r865",
      "r974",
      "r1228"
     ]
    },
    "nymt_OtherReceivablesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "OtherReceivablesMember",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Other Receivables [Member]",
        "documentation": "Other Receivables"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_PalmsAtCapeCoralLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "PalmsAtCapeCoralLLCMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Palms at Cape Coral, LLC",
        "verboseLabel": "Palms at Cape Coral, LLC",
        "label": "Palms at Cape Coral, LLC [Member]",
        "documentation": "Palms at Cape Coral, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ParentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ParentMember",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Company's Stockholders' Equity",
        "label": "Parent [Member]",
        "documentation": "Portion of equity, or net assets, in the consolidated entity attributable, directly or indirectly, to the parent. Excludes noncontrolling interests."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_PaymentForDistributionsToRedeemableNoncontrollingInterestInVariableInterestEntities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "PaymentForDistributionsToRedeemableNoncontrollingInterestInVariableInterestEntities",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Distributions",
        "label": "Payment for Distributions to Redeemable Noncontrolling Interest in Variable Interest Entities",
        "documentation": "Payment for Distributions to Redeemable Noncontrolling Interest in Variable Interest Entities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PaymentsForProceedsFromDerivativeInstrumentInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsForProceedsFromDerivativeInstrumentInvestingActivities",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Net payments received from derivative instruments",
        "label": "Payments for (Proceeds from) Derivative Instrument, Investing Activities",
        "documentation": "The net cash outflow or inflow from derivative instruments during the period, which are classified as investing activities, excluding those designated as hedging instruments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PaymentsForRepurchaseOfCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsForRepurchaseOfCommonStock",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Repurchases of common stock",
        "label": "Payments for Repurchase of Common Stock",
        "documentation": "The cash outflow to reacquire common stock during the period."
       }
      }
     },
     "auth_ref": [
      "r157"
     ]
    },
    "us-gaap_PaymentsForRepurchaseOfPreferredStockAndPreferenceStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsForRepurchaseOfPreferredStockAndPreferenceStock",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Repurchases of preferred stock",
        "label": "Payments for Repurchase of Preferred Stock and Preference Stock",
        "documentation": "The cash outflow to reacquire preferred stock during the period."
       }
      }
     },
     "auth_ref": [
      "r157"
     ]
    },
    "us-gaap_PaymentsOfDividendsCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsOfDividendsCommonStock",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Dividends paid on common stock and dividend equivalents",
        "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": [
      "r157"
     ]
    },
    "us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsOfDividendsPreferredStockAndPreferenceStock",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Dividends paid on preferred stock",
        "label": "Payments of Ordinary Dividends, Preferred Stock and Preference Stock",
        "documentation": "Amount of cash outflow in the form of ordinary dividends to preferred shareholders of the parent entity."
       }
      }
     },
     "auth_ref": [
      "r157"
     ]
    },
    "us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsToAcquireAvailableForSaleSecuritiesDebt",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Purchases of investment securities",
        "label": "Payments to Acquire Debt Securities, Available-for-Sale",
        "documentation": "Amount of cash outflow to acquire investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r37",
      "r319",
      "r397"
     ]
    },
    "us-gaap_PaymentsToAcquireEquityMethodInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsToAcquireEquityMethodInvestments",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Funding of preferred equity, mezzanine loan and equity investments",
        "label": "Payments to Acquire Equity Method Investments",
        "documentation": "The cash outflow associated with the purchase of or advances to an equity method investments, which are investments in joint ventures and entities in which the entity has an equity ownership interest normally of 20 to 50 percent and exercises significant influence."
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "us-gaap_PaymentsToAcquireInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsToAcquireInvestments",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Purchases of residential loans",
        "label": "Payments to Acquire Investments",
        "documentation": "The cash outflow associated with the purchase of all investments (debt, security, other) during the period."
       }
      }
     },
     "auth_ref": [
      "r155"
     ]
    },
    "us-gaap_PaymentsToAcquireOtherInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsToAcquireOtherInvestments",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Purchases of other assets",
        "label": "Payments to Acquire Other Investments",
        "documentation": "Amount of cash outflow to acquire investments classified as other."
       }
      }
     },
     "auth_ref": [
      "r155"
     ]
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Purchases of and capital expenditures on real estate",
        "label": "Payments to Acquire Property, Plant, and Equipment",
        "documentation": "The cash outflow associated with the acquisition of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale; includes cash outflows to pay for construction of self-constructed assets."
       }
      }
     },
     "auth_ref": [
      "r156"
     ]
    },
    "nymt_PercentOfOutstandingSharesAffirmativeVotesMaterialAndAdverseChangesToPreferredStockTerms": {
     "xbrltype": "percentItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "PercentOfOutstandingSharesAffirmativeVotesMaterialAndAdverseChangesToPreferredStockTerms",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percent of outstanding shares affirmative votes needed for material and adverse changes to preferred stock terms",
        "label": "Percent Of Outstanding Shares Affirmative Votes, Material And Adverse Changes To Preferred Stock Terms",
        "documentation": "Percent Of Outstanding Shares Affirmative Votes, Material And Adverse Changes To Preferred Stock Terms"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PerformanceSharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PerformanceSharesMember",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Performance Share Awards",
        "verboseLabel": "PSUs",
        "label": "Performance Shares [Member]",
        "documentation": "Share-based payment arrangement awarded for meeting performance target."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_PerformanceSharesTargetMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "PerformanceSharesTargetMember",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PSUs, Target",
        "label": "Performance Shares, Target [Member]",
        "documentation": "Performance Shares, Target"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PlanNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PlanNameAxis",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Plan Name [Axis]",
        "label": "Plan Name [Axis]",
        "documentation": "Information by plan name for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r1149",
      "r1150",
      "r1151",
      "r1152",
      "r1153",
      "r1154",
      "r1155",
      "r1156",
      "r1157",
      "r1158",
      "r1159",
      "r1160",
      "r1161",
      "r1162",
      "r1163",
      "r1164",
      "r1165",
      "r1166",
      "r1167",
      "r1168",
      "r1169",
      "r1170",
      "r1171",
      "r1172",
      "r1173",
      "r1174"
     ]
    },
    "us-gaap_PlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PlanNameDomain",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Plan Name [Domain]",
        "label": "Plan Name [Domain]",
        "documentation": "Plan name for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r1149",
      "r1150",
      "r1151",
      "r1152",
      "r1153",
      "r1154",
      "r1155",
      "r1156",
      "r1157",
      "r1158",
      "r1159",
      "r1160",
      "r1161",
      "r1162",
      "r1163",
      "r1164",
      "r1165",
      "r1166",
      "r1167",
      "r1168",
      "r1169",
      "r1170",
      "r1171",
      "r1172",
      "r1173",
      "r1174"
     ]
    },
    "nymt_PortfolioInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "PortfolioInvestmentsMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Repurchase agreements",
        "label": "Portfolio Investments [Member]",
        "documentation": "The type or description of the financial arrangement."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_PreferredEquityAndMezzanineLoansAccumulatedGrossUnrealizedGainLossBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "PreferredEquityAndMezzanineLoansAccumulatedGrossUnrealizedGainLossBeforeTax",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofPreferredEquityandMezzanineLoanInvestmentsDetails": {
       "parentTag": "nymt_FinancialInstrumentOwnedLoansAndPreferredEquityNet",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofPreferredEquityandMezzanineLoanInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Unrealized (losses) gains, net",
        "label": "Preferred Equity And Mezzanine Loans, Accumulated Gross Unrealized Gain (Loss), Before Tax",
        "documentation": "Preferred Equity And Mezzanine Loans, Accumulated Gross Unrealized Gain (Loss), Before Tax"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_PreferredEquityDistributionAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "PreferredEquityDistributionAgreementMember",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Preferred Equity Distribution Agreement",
        "label": "Preferred Equity Distribution Agreement [Member]",
        "documentation": "Preferred Equity Distribution Agreement [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_PreferredEquityInvestmentonMultifamilyPropertiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "PreferredEquityInvestmentonMultifamilyPropertiesMember",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Preferred equity investments in multi-family properties",
        "label": "Preferred Equity Investment on Multi-family Properties [Member]",
        "documentation": "Preferred Equity Investment on Multi-family Properties [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_PreferredEquityOwnershipInterestsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "PreferredEquityOwnershipInterestsMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Preferred Equity Ownership Interests",
        "label": "Preferred Equity Ownership Interests [Member]",
        "documentation": "Preferred Equity Ownership Interests [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_PreferredEquityandMezzanineLoansFairValueComparedtoUnpaidPrincipalTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "PreferredEquityandMezzanineLoansFairValueComparedtoUnpaidPrincipalTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Preferred Equity and Mezzanine Loans, Fair Value Compared to Unpaid Principal",
        "label": "Preferred Equity and Mezzanine Loans, Fair Value Compared to Unpaid Principal [Table Text Block]",
        "documentation": "Preferred Equity and Mezzanine Loans, Fair Value Compared to Unpaid Principal [Table Text Block]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PreferredStockDividendRatePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PreferredStockDividendRatePercentage",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Preferred stock, contractual rate, percentage",
        "label": "Preferred Stock, Dividend Rate, Percentage",
        "documentation": "The percentage rate used to calculate dividend payments on preferred stock."
       }
      }
     },
     "auth_ref": [
      "r524",
      "r904",
      "r907",
      "r909",
      "r927"
     ]
    },
    "us-gaap_PreferredStockDividendsIncomeStatementImpact": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PreferredStockDividendsIncomeStatementImpact",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/LossPerCommonShareDetails": {
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted",
       "weight": -1.0,
       "order": 1.0
      },
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossPerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Preferred stock dividends",
        "negatedTerseLabel": "Less: Preferred Stock dividends",
        "label": "Preferred Stock Dividends, Income Statement Impact",
        "documentation": "The amount of preferred stock dividends that is an adjustment to net income apportioned to common stockholders."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PreferredStockDividendsPerShareCashPaid": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PreferredStockDividendsPerShareCashPaid",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash dividend per share (in dollars per share)",
        "label": "Preferred Stock, Dividends, Per Share, Cash Paid",
        "documentation": "Aggregate dividends paid during the period for each share of preferred stock outstanding."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PreferredStockLiquidationPreference": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PreferredStockLiquidationPreference",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Preferred stock, liquidation preference per share (in dollars per share)",
        "label": "Preferred Stock, Liquidation Preference Per Share",
        "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": [
      "r61",
      "r62",
      "r133",
      "r1084",
      "r1144"
     ]
    },
    "us-gaap_PreferredStockLiquidationPreferenceValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PreferredStockLiquidationPreferenceValue",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Preferred Stock, aggregate liquidation preference",
        "verboseLabel": "Liquidation Preference",
        "label": "Preferred Stock, Liquidation Preference, Value",
        "documentation": "Value of the difference between preference in liquidation and the par or stated values of the preferred shares."
       }
      }
     },
     "auth_ref": [
      "r331",
      "r527",
      "r538"
     ]
    },
    "us-gaap_PreferredStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PreferredStockMember",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Preferred Stock",
        "label": "Preferred Stock [Member]",
        "documentation": "Preferred shares may provide a preferential dividend to the dividend on common stock and may take precedence over common stock in the event of a liquidation. Preferred shares typically represent an ownership interest in the company."
       }
      }
     },
     "auth_ref": [
      "r1027",
      "r1028",
      "r1031",
      "r1032",
      "r1033",
      "r1036",
      "r1259",
      "r1266"
     ]
    },
    "us-gaap_PreferredStockParOrStatedValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PreferredStockParOrStatedValuePerShare",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Preferred stock, par value (in dollars per share)",
        "terseLabel": "Preferred stock, par value (in dollars per share)",
        "label": "Preferred Stock, Par or Stated Value Per Share",
        "documentation": "Face amount or stated value per share of preferred stock nonredeemable or redeemable solely at the option of the issuer."
       }
      }
     },
     "auth_ref": [
      "r133",
      "r523"
     ]
    },
    "nymt_PreferredStockRedemptionPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "PreferredStockRedemptionPeriod",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Preferred stock redemption period",
        "label": "Preferred Stock Redemption Period",
        "documentation": "Preferred Stock Redemption Period"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PreferredStockRedemptionPricePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PreferredStockRedemptionPricePerShare",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Redemption price (in dollars per share)",
        "label": "Preferred Stock, Redemption Price Per Share",
        "documentation": "The price per share at which the preferred stock of an entity that has priority over common stock in the distribution of dividends and in the event of liquidation of the entity is redeemed or may be called at. The redemption features of this preferred stock are solely within the control of the issuer."
       }
      }
     },
     "auth_ref": [
      "r60",
      "r61",
      "r64"
     ]
    },
    "nymt_PreferredStockSeriesSharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "PreferredStockSeriesSharesMember",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Preferred Stock, Series Shares",
        "label": "Preferred Stock, Series Shares [Member]",
        "documentation": "Preferred Stock, Series Shares"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PreferredStockSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PreferredStockSharesAuthorized",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Preferred stock, shares authorized (in shares)",
        "label": "Preferred Stock, Shares Authorized",
        "documentation": "The maximum number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) permitted to be issued by an entity's charter and bylaws."
       }
      }
     },
     "auth_ref": [
      "r133",
      "r857"
     ]
    },
    "us-gaap_PreferredStockSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PreferredStockSharesIssued",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Preferred stock, shares issued (in shares)",
        "label": "Preferred Stock, Shares Issued",
        "documentation": "Number of shares issued for nonredeemable preferred shares and preferred shares redeemable solely at option of issuer. Includes, but is not limited to, preferred shares issued, repurchased, and held as treasury shares. Excludes preferred shares classified as debt."
       }
      }
     },
     "auth_ref": [
      "r133",
      "r523"
     ]
    },
    "us-gaap_PreferredStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PreferredStockSharesOutstanding",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Preferred stock, shares outstanding (in shares)",
        "label": "Preferred Stock, Shares Outstanding",
        "documentation": "Aggregate share number for all nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer) held by stockholders. Does not include preferred shares that have been repurchased."
       }
      }
     },
     "auth_ref": [
      "r133",
      "r857",
      "r876",
      "r1266",
      "r1267"
     ]
    },
    "nymt_PreferredStockSharesReservedForFutureIssuanceValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "PreferredStockSharesReservedForFutureIssuanceValue",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Preferred stock available for future issuance, value",
        "label": "Preferred Stock, Shares Reserved For Future Issuance, Value",
        "documentation": "Preferred Stock, Shares Reserved For Future Issuance, Value"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PreferredStockSharesSubscribedButUnissuedValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PreferredStockSharesSubscribedButUnissuedValue",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity agreement for preferred stock maximum aggregate sales price (up to)",
        "label": "Preferred Stock, Value, Subscriptions",
        "documentation": "Amount of subscription received from investors who have been allocated nonredeemable preferred stock or preferred stock redeemable solely at the option of the issuer."
       }
      }
     },
     "auth_ref": [
      "r133"
     ]
    },
    "us-gaap_PreferredStockValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PreferredStockValue",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Preferred stock, par value $0.01 per share, 31,500,000 shares authorized, 22,164,414 shares issued and outstanding ($554,110 aggregate liquidation preference)",
        "netLabel": "Carrying Value",
        "label": "Preferred Stock, Value, Issued",
        "documentation": "Aggregate par or stated value of issued nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable preferred shares, par value and other disclosure concepts are in another section within stockholders' equity."
       }
      }
     },
     "auth_ref": [
      "r133",
      "r783",
      "r1009"
     ]
    },
    "nymt_PreferredStockVotingRightsNumberofAdditionalDirectorsElected": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "PreferredStockVotingRightsNumberofAdditionalDirectorsElected",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of elected directors pending preferred stock voting rights",
        "label": "Preferred Stock, Voting Rights, Number of Additional Directors Elected",
        "documentation": "Preferred Stock, Voting Rights, Number of Additional Directors Elected"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PriorPeriodReclassificationAdjustmentDescription": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PriorPeriodReclassificationAdjustmentDescription",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Reclassifications",
        "label": "Reclassification, Comparability Adjustment [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for reclassification affecting comparability of financial statement. Excludes amendment to accounting standards, other change in accounting principle, and correction of error."
       }
      }
     },
     "auth_ref": [
      "r1066"
     ]
    },
    "us-gaap_ProceedsFromDivestitureOfInterestInConsolidatedSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromDivestitureOfInterestInConsolidatedSubsidiaries",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net proceeds from sale of real estate",
        "label": "Proceeds from Divestiture of Interest in Consolidated Subsidiaries",
        "documentation": "The cash inflow associated with the deconsolidation of a previously consolidated subsidiary or the sale of investment in consolidated subsidiaries (generally greater than 50 percent)."
       }
      }
     },
     "auth_ref": [
      "r36"
     ]
    },
    "us-gaap_ProceedsFromDivestitureOfInterestInJointVenture": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromDivestitureOfInterestInJointVenture",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from sale of joint venture equity investments in Consolidated VIE",
        "label": "Proceeds from Divestiture of Interest in Joint Venture",
        "documentation": "The cash inflow from the sale of an investment interest in a joint venture that the reporting entity has not previously accounted for using consolidation or the equity method of accounting."
       }
      }
     },
     "auth_ref": [
      "r36"
     ]
    },
    "us-gaap_ProceedsFromEquityMethodInvestmentDividendsOrDistributionsReturnOfCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromEquityMethodInvestmentDividendsOrDistributionsReturnOfCapital",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Return of capital from equity investments",
        "label": "Proceeds from Equity Method Investment, Distribution, Return of Capital",
        "documentation": "Amount of distribution received from equity method investee for return of investment, classified as investing activities. Excludes distribution for return on investment, classified as operating activities."
       }
      }
     },
     "auth_ref": [
      "r323",
      "r1082"
     ]
    },
    "nymt_ProceedsFromIssuanceOfCollateralizedDebtObligations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ProceedsFromIssuanceOfCollateralizedDebtObligations",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from issuance of collateralized debt obligations",
        "label": "Proceeds from Issuance of Collateralized Debt Obligations",
        "documentation": "Proceeds from Issuance of Collateralized Debt Obligations"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromIssuanceOfUnsecuredDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromIssuanceOfUnsecuredDebt",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from issuance of senior unsecured 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": [
      "r39"
     ]
    },
    "us-gaap_ProceedsFromLoanAndLeaseOriginationsAndPrincipalCollections1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromLoanAndLeaseOriginationsAndPrincipalCollections1",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Principal repayments received on residential loans",
        "label": "Proceeds from Loan and Lease Originations and Principal Collections",
        "documentation": "Cash inflow related to a loan origination (the process when securing a mortgage for a piece of real property), lease origination, and principal collections."
       }
      }
     },
     "auth_ref": [
      "r34"
     ]
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Principal paydowns received on investment securities",
        "label": "Proceeds from Maturities, Prepayments and Calls of Debt Securities, Available-for-Sale",
        "documentation": "Amount of cash inflow from maturity, prepayment and call of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r319",
      "r320",
      "r1102"
     ]
    },
    "us-gaap_ProceedsFromPaymentsForInSecuritiesSoldUnderAgreementsToRepurchase": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromPaymentsForInSecuritiesSoldUnderAgreementsToRepurchase",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net proceeds received from repurchase agreements",
        "label": "Proceeds from (Payments for) in Securities Sold under Agreements to Repurchase",
        "documentation": "The cash flow from investments sold under the agreement to repurchase such investment."
       }
      }
     },
     "auth_ref": [
      "r41",
      "r42"
     ]
    },
    "us-gaap_ProceedsFromPaymentsToMinorityShareholders": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromPaymentsToMinorityShareholders",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net distributions to non-controlling interests in Consolidated VIEs",
        "label": "Proceeds from (Payments to) Noncontrolling Interests",
        "documentation": "Amount of cash inflow (outflow) from (to) a noncontrolling interest. Excludes dividends paid to the noncontrolling interest."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromRepaymentsOfNotesPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromRepaymentsOfNotesPayable",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net payments made on mortgages payable on real estate",
        "label": "Proceeds from (Repayments of) Notes Payable",
        "documentation": "Amount of cash inflow (outflow) from long-term debt supported by a written promise to pay an obligation."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ProceedsFromResidentialLoanSecuritizationRedemption": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ProceedsFromResidentialLoanSecuritizationRedemption",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from residential loan securitization redemption",
        "label": "Proceeds From Residential Loan Securitization Redemption",
        "documentation": "Proceeds From Residential Loan Securitization Redemption"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromSaleOfAvailableForSaleSecuritiesDebt",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from sales of investment securities",
        "label": "Proceeds from Sale of Debt Securities, Available-for-Sale",
        "documentation": "Amount of cash inflow from sale of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r35",
      "r319",
      "r397",
      "r430"
     ]
    },
    "us-gaap_ProceedsFromSaleOfEquityMethodInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromSaleOfEquityMethodInvestments",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Principal repayments received on preferred equity and mezzanine loan investments",
        "label": "Proceeds from Sale of Equity Method Investments",
        "documentation": "The cash inflow associated with the sale of equity method investments, which are investments in joint ventures and entities in which the entity has an equity ownership interest normally of 20 to 50 percent and exercises significant influence."
       }
      }
     },
     "auth_ref": [
      "r36"
     ]
    },
    "us-gaap_ProceedsFromSaleOfLoansReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromSaleOfLoansReceivable",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from sales of residential loans",
        "label": "Proceeds from Sale of Loans Receivable",
        "documentation": "The cash inflow associated with the sale of loans receivables arising from the financing of goods and services."
       }
      }
     },
     "auth_ref": [
      "r35"
     ]
    },
    "us-gaap_ProceedsFromSaleOfRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromSaleOfRealEstate",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from sale of real estate",
        "label": "Proceeds from Sale of Real Estate",
        "documentation": "Cash received for the sale of real estate that is not part of an investing activity during the current period."
       }
      }
     },
     "auth_ref": [
      "r154"
     ]
    },
    "us-gaap_ProceedsFromSecuritizationsOfLoansHeldForInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromSecuritizationsOfLoansHeldForInvestment",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from securitizations of loans held-for-investment",
        "label": "Proceeds from Securitization, Loan, Held-for-Investment",
        "documentation": "The cash inflow from the securitization of loans held for investment. Securitization is the structured process whereby interests in loans and other receivables are packaged, underwritten, and sold in the form of asset-backed securities."
       }
      }
     },
     "auth_ref": [
      "r1081"
     ]
    },
    "nymt_ProceedsIncludingReceivableForUnsettledTradesFromSaleofDebtSecuritiesAvailableforsale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ProceedsIncludingReceivableForUnsettledTradesFromSaleofDebtSecuritiesAvailableforsale",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofRealizedGainorLossActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sales Proceeds",
        "label": "Proceeds Including Receivable For Unsettled Trades From Sale of Debt Securities, Available-for-sale",
        "documentation": "Proceeds Including Receivable For Unsettled Trades From Sale of Debt Securities, Available-for-sale"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProfitLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProfitLoss",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net loss",
        "label": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest",
        "documentation": "The consolidated profit or loss for the period, net of income taxes, including the portion attributable to the noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r289",
      "r306",
      "r309",
      "r322",
      "r333",
      "r348",
      "r354",
      "r357",
      "r358",
      "r438",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r616",
      "r619",
      "r620",
      "r623",
      "r624",
      "r641",
      "r668",
      "r772",
      "r792",
      "r823",
      "r878",
      "r894",
      "r895",
      "r994",
      "r995",
      "r1039",
      "r1077",
      "r1137"
     ]
    },
    "us-gaap_ProfitLossFromRealEstateOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProfitLossFromRealEstateOperations",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total net loss from real estate",
        "label": "Profit (Loss) from Real Estate Operations",
        "documentation": "The net cost of operation of other real estate (including provisions for real estate losses, rental income, and gains and losses on sales of real estate)."
       }
      }
     },
     "auth_ref": [
      "r215"
     ]
    },
    "us-gaap_ProvisionForLoanLeaseAndOtherLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProvisionForLoanLeaseAndOtherLosses",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/OtherIncomeLossDetails": {
       "parentTag": "us-gaap_OtherNonoperatingIncomeExpense",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Provision for uncollectible accounts receivable",
        "label": "Provision for Loan, Lease, and Other Losses",
        "documentation": "Amount of expense related loan transactions, lease transactions, credit loss from transactions other than loan and lease transactions, and other loss based on assessment of uncollectability from the counterparty to reduce the account to their net realizable value."
       }
      }
     },
     "auth_ref": [
      "r10",
      "r210",
      "r235"
     ]
    },
    "nymt_PurchaseOfInvestmentsHeldInConsolidatedSLST": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "PurchaseOfInvestmentsHeldInConsolidatedSLST",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 17.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Purchases of investments held in Consolidated SLST",
        "label": "Purchase Of Investments Held In Consolidated SLST",
        "documentation": "Purchase Of Investments Held In Consolidated SLST"
       }
      }
     },
     "auth_ref": []
    },
    "srt_RangeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "RangeAxis",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/CommitmentsandContingenciesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateCapContractsStrikePriceandNotionalAmountsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "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": [
      "r257",
      "r259",
      "r261",
      "r262",
      "r264",
      "r284",
      "r285",
      "r478",
      "r479",
      "r480",
      "r481",
      "r543",
      "r550",
      "r578",
      "r579",
      "r580",
      "r588",
      "r647",
      "r694",
      "r710",
      "r727",
      "r802",
      "r803",
      "r810",
      "r847",
      "r848",
      "r903",
      "r906",
      "r910",
      "r911",
      "r926",
      "r960",
      "r961",
      "r975",
      "r985",
      "r990",
      "r1001",
      "r1002",
      "r1006",
      "r1007",
      "r1023",
      "r1029",
      "r1134",
      "r1141",
      "r1192",
      "r1213",
      "r1214",
      "r1215",
      "r1216",
      "r1217"
     ]
    },
    "srt_RangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "RangeMember",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/CommitmentsandContingenciesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateCapContractsStrikePriceandNotionalAmountsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "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": [
      "r257",
      "r259",
      "r261",
      "r262",
      "r264",
      "r284",
      "r285",
      "r478",
      "r479",
      "r480",
      "r481",
      "r543",
      "r550",
      "r578",
      "r579",
      "r580",
      "r588",
      "r647",
      "r694",
      "r710",
      "r727",
      "r802",
      "r803",
      "r810",
      "r847",
      "r848",
      "r903",
      "r906",
      "r910",
      "r911",
      "r926",
      "r960",
      "r961",
      "r975",
      "r985",
      "r990",
      "r1001",
      "r1002",
      "r1006",
      "r1007",
      "r1023",
      "r1029",
      "r1134",
      "r1141",
      "r1192",
      "r1213",
      "r1214",
      "r1215",
      "r1216",
      "r1217"
     ]
    },
    "nymt_RapidCityRMIJVLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "RapidCityRMIJVLLCMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rapid City RMI JV LLC",
        "verboseLabel": "Rapid City RMI JV LLC",
        "label": "Rapid City RMI JV, LLC [Member]",
        "documentation": "Rapid City RMI JV, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RealEstateAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealEstateAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Real Estate [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RealEstateDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealEstateDisclosureTextBlock",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Real Estate, Net",
        "label": "Real Estate Disclosure [Text Block]",
        "documentation": "The entire disclosure for certain real estate investment financial statements, real estate investment trust operating support agreements, real estate owned, retail land sales, time share transactions, as well as other real estate related disclosures."
       }
      }
     },
     "auth_ref": [
      "r228",
      "r229",
      "r230",
      "r231",
      "r232",
      "r959"
     ]
    },
    "us-gaap_RealEstateHeldforsale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealEstateHeldforsale",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails": {
       "parentTag": "us-gaap_RealEstateInvestments",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Real estate held for sale, net",
        "label": "Real Estate, Held-for-Sale",
        "documentation": "Amount of investment in land and building held for sale. Excludes real estate considered inventory."
       }
      }
     },
     "auth_ref": [
      "r1223",
      "r1224"
     ]
    },
    "us-gaap_RealEstateInvestmentPropertyAccumulatedDepreciation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealEstateInvestmentPropertyAccumulatedDepreciation",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails": {
       "parentTag": "us-gaap_RealEstateInvestmentPropertyNet",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Accumulated depreciation",
        "label": "Real Estate Investment Property, Accumulated Depreciation",
        "documentation": "The cumulative amount of depreciation for real estate property held for investment purposes."
       }
      }
     },
     "auth_ref": [
      "r774"
     ]
    },
    "us-gaap_RealEstateInvestmentPropertyAtCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealEstateInvestmentPropertyAtCost",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails": {
       "parentTag": "us-gaap_RealEstateInvestmentPropertyNet",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Operating real estate",
        "label": "Real Estate Investment Property, at Cost",
        "documentation": "Amount of real estate investment property which may include the following: (1) land available-for-sale; (2) land available-for-development; (3) investments in building and building improvements; (4) tenant allowances; (5) developments in-process; (6) rental properties; and (7) other real estate investments."
       }
      }
     },
     "auth_ref": [
      "r775",
      "r776"
     ]
    },
    "us-gaap_RealEstateInvestmentPropertyNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealEstateInvestmentPropertyNet",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails": {
       "parentTag": "us-gaap_RealEstateInvestments",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Operating real estate, net",
        "label": "Real Estate Investment Property, Net",
        "documentation": "Amount of real estate investment property, net of accumulated depreciation, which may include the following: (1) land available-for-sale; (2) land available-for-development; (3) investments in building and building improvements; (4) tenant allowances; (5) developments in-process; (6) rental properties; and (7) other real estate investments."
       }
      }
     },
     "auth_ref": [
      "r1223",
      "r1224"
     ]
    },
    "us-gaap_RealEstateInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealEstateInvestments",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Real estate, net held in Consolidated VIEs",
        "totalLabel": "Real estate, net",
        "label": "Real Estate Investments, Net",
        "documentation": "Amount of real estate investments, net of accumulated depreciation, which may include the following: (1) land available-for-sale; (2) land available-for-development; (3) investments in building and building improvements; (4) tenant allowances; (5) developments in-process; (6) rental properties; (7) other real estate investments; (8) real estate joint ventures; and (9) unconsolidated real estate and other joint ventures not separately presented."
       }
      }
     },
     "auth_ref": [
      "r394",
      "r775",
      "r776",
      "r1025",
      "r1026",
      "r1263"
     ]
    },
    "us-gaap_RealEstateLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealEstateLineItems",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetScheduleofLeaseIntangiblesDetails",
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Real Estate [Line Items]",
        "label": "Real Estate [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": [
      "r960"
     ]
    },
    "nymt_RealEstateOwned": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "RealEstateOwned",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails": {
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Real estate owned",
        "label": "Real Estate Owned",
        "documentation": "Real Estate Owned"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_RealEstateOwnedTransferToRealEstateNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "RealEstateOwnedTransferToRealEstateNet",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transfer from residential loans to real estate, net",
        "label": "Real Estate Owned, Transfer to Real Estate Net",
        "documentation": "Real Estate Owned, Transfer to Real Estate Net"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RealEstateTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealEstateTable",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetScheduleofLeaseIntangiblesDetails",
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Real Estate [Table]",
        "label": "Real Estate [Table]",
        "documentation": "Disclosure of information about real estate investment companies including, but not limited to, real estate investment trusts, real estate owned, retail land sales, and time share transactions."
       }
      }
     },
     "auth_ref": [
      "r960"
     ]
    },
    "nymt_ReceivableFromDerivativeCounterparty": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ReceivableFromDerivativeCounterparty",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails": {
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Receivables from derivative counterparties",
        "label": "Receivable From Derivative Counterparty",
        "documentation": "Receivable From Derivative Counterparty"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ReceivableTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ReceivableTypeDomain",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/NetInterestIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Receivable [Domain]",
        "label": "Receivable [Domain]",
        "documentation": "Financing arrangement representing a contractual right to receive money either on demand or on fixed and determinable dates."
       }
      }
     },
     "auth_ref": [
      "r135",
      "r141"
     ]
    },
    "us-gaap_ReceivablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ReceivablesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivables [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ReceivablesAndOtherAssetsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ReceivablesAndOtherAssetsFairValue",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Preferred equity and mezzanine loan investments, estimated fair value",
        "label": "Receivables And Other Assets Fair Value",
        "documentation": "Represents fair value disclosure for receivables and other assets."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ReceivablesandOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ReceivablesandOtherAssets",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Preferred equity and mezzanine loan investments, carrying value",
        "label": "Receivables and Other Assets",
        "documentation": "Carrying amounts of receivables due as of the balance sheet date from parties or arising from transactions not otherwise specified in the taxonomy. Sum of the carrying amount for an unclassified balance sheet date of expenditures made in advance of when the economic benefit of the cost will be realized, and which will be expensed in future periods with the passage of time or when a triggering event occurs and the carrying amount as of the balance sheet date of assets not otherwise specified in the taxonomy. Also includes assets not individually reported in the financial statements, or not separately disclosed in notes."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_RedeemableNonControllingInterestInConsolidatedVariableInterestEntities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "RedeemableNonControllingInterestInConsolidatedVariableInterestEntities",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Redeemable Non-Controlling Interest in Consolidated Variable Interest Entities",
        "label": "Redeemable Non-Controlling Interest In Consolidated Variable Interest Entities",
        "documentation": "Redeemable Non-Controlling Interest In Consolidated Variable Interest Entities"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_RedeemableNonControllingInterestWeightedAverageCapitalizationRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "RedeemableNonControllingInterestWeightedAverageCapitalizationRate",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Capitalization rate",
        "label": "Redeemable Non Controlling Interest, Weighted Average Capitalization Rate",
        "documentation": "Redeemable Non Controlling Interest a Weighted Average Capitalization Rate"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_RedeemableNonControllingInterestWeightedAverageDiscountRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "RedeemableNonControllingInterestWeightedAverageDiscountRate",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Discount rate",
        "label": "Redeemable Non Controlling Interest, Weighted Average Discount Rate",
        "documentation": "Redeemable Non Controlling Interest a Weighted Average Discount Rate"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RedeemableNoncontrollingInterestEquityCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RedeemableNoncontrollingInterestEquityCarryingAmount",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Redeemable non-controlling interest in Consolidated VIEs",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "label": "Redeemable Noncontrolling Interest, Equity, Carrying Amount",
        "documentation": "As of the reporting date, the aggregate carrying amount of all noncontrolling interests which are redeemable by the (parent) entity (1) at a fixed or determinable price on a fixed or determinable date, (2) at the option of the holder of the noncontrolling interest, or (3) upon occurrence of an event that is not solely within the control of the (parent) entity. This item includes noncontrolling interest holder's ownership (or holders' ownership) regardless of the type of equity interest (common, preferred, other) including all potential organizational (legal) forms of the investee entity."
       }
      }
     },
     "auth_ref": [
      "r56",
      "r57",
      "r175",
      "r176"
     ]
    },
    "us-gaap_RedeemableNoncontrollingInterestTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RedeemableNoncontrollingInterestTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIETables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Redeemable Noncontrolling Interest in Consolidated VIEs",
        "label": "Redeemable Noncontrolling Interest [Table Text Block]",
        "documentation": "Tabular disclosure of redeemable noncontrolling interest (as defined) included in the statement of financial position as either a liability or temporary equity. As of the date of the statement of financial position, such redeemable noncontrolling interest is currently redeemable, as defined, for cash or other assets of the entity at (1) at a fixed or determinable price on a fixed or determinable date, (2) at the option of the holder of the noncontrolling interest, or (3) upon occurrence of an event that is not solely within the control of the entity."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_RentalIncomeExcludingOtherRealEstateIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "RentalIncomeExcludingOtherRealEstateIncome",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "nymt_RentalIncomeOperating",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rental income",
        "label": "Rental Income, Excluding Other Real Estate Income",
        "documentation": "Rental Income, Excluding Other Real Estate Income"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RentalIncomeNonoperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RentalIncomeNonoperating",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Income from real estate",
        "label": "Rental Income, Nonoperating",
        "documentation": "Income earned by providing the use of assets to an outside party in exchange for a payment or series of payments that is nonoperating in nature."
       }
      }
     },
     "auth_ref": [
      "r151"
     ]
    },
    "nymt_RentalIncomeOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "RentalIncomeOperating",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_ProfitLossFromRealEstateOperations",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total income from real estate",
        "label": "Rental Income, Operating",
        "documentation": "Rental Income, Operating"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_RepaymentOfCollateralizedDebtResidential": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "RepaymentOfCollateralizedDebtResidential",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Payments made on and extinguishment of collateralized debt obligations",
        "label": "Repayment Of Collateralized Debt, Residential",
        "documentation": "Repayment Of Collateralized Debt, Residential"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RepaymentsOfSecuredDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RepaymentsOfSecuredDebt",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Payments made on Consolidated SLST CDOs",
        "label": "Repayments of Secured Debt",
        "documentation": "The cash outflow to repay long-term debt that is wholly or partially secured by collateral. Excludes repayments of tax exempt secured debt."
       }
      }
     },
     "auth_ref": [
      "r158"
     ]
    },
    "nymt_RepurchaseAgreementCounterpartyAccruedInterestPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "RepurchaseAgreementCounterpartyAccruedInterestPayable",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued interest payable",
        "label": "Repurchase Agreement Counterparty, Accrued Interest Payable",
        "documentation": "Repurchase Agreement Counterparty, Accrued Interest Payable"
       }
      }
     },
     "auth_ref": []
    },
    "srt_RepurchaseAgreementCounterpartyNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "RepurchaseAgreementCounterpartyNameDomain",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "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": [
      "r282",
      "r283",
      "r342",
      "r343",
      "r497",
      "r525",
      "r685",
      "r711",
      "r775",
      "r968",
      "r969"
     ]
    },
    "nymt_RepurchaseAgreementCounterpartyPercentageAtRisk": {
     "xbrltype": "percentItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "RepurchaseAgreementCounterpartyPercentageAtRisk",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Repurchase agreement percentage at risk",
        "label": "Repurchase Agreement Counterparty, Percentage At Risk",
        "documentation": "Repurchase Agreement Counterparty, Percentage At Risk"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_RepurchaseAgreementCounterpartyWeightedAverageInterestRateOfAgreements": {
     "xbrltype": "percentItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "RepurchaseAgreementCounterpartyWeightedAverageInterestRateOfAgreements",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted average interest rate",
        "label": "Repurchase Agreement Counterparty, Weighted Average Interest Rate Of Agreements",
        "documentation": "Repurchase Agreement Counterparty, Weighted Average Interest Rate Of Agreements"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RepurchaseAgreementCounterpartyWeightedAverageMaturityOfAgreements1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RepurchaseAgreementCounterpartyWeightedAverageMaturityOfAgreements1",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average days to maturity",
        "verboseLabel": "Weighted Average Months to Maturity",
        "label": "Repurchase Agreement Counterparty, Weighted Average Maturity of Agreements",
        "documentation": "Weighted average maturity (weighted by amount of the agreement) of repurchase agreements with the counterparty, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r342",
      "r711"
     ]
    },
    "nymt_RepurchaseAgreementNonMarkToMarketMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "RepurchaseAgreementNonMarkToMarketMember",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Repurchase Agreement, Non Mark-to Market",
        "label": "Repurchase Agreement, Non Mark-to Market [Member]",
        "documentation": "Repurchase Agreement, Non Mark-to Market"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_RepurchaseAgreementsAverageInterestRateHaircut": {
     "xbrltype": "percentItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "RepurchaseAgreementsAverageInterestRateHaircut",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average interest rate haircut",
        "label": "Repurchase Agreements, Average Interest Rate Haircut",
        "documentation": "Repurchase Agreements, Average Interest Rate Haircut"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RepurchaseAgreementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RepurchaseAgreementsMember",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/NetInterestIncomeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Repurchase agreements",
        "netLabel": "Repurchase Agreements",
        "verboseLabel": "Repurchase agreements",
        "label": "Repurchase Agreements [Member]",
        "documentation": "Investments represented by an agreement between the entity and another party for the sale and repurchase of identical or substantially the same securities at a date certain for a specified price. Such agreements are generally short-term in nature."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_RepurchaseAgreementsNumberOfCounterparties": {
     "xbrltype": "integerItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "RepurchaseAgreementsNumberOfCounterparties",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Repurchase agreements, number of counterparties",
        "label": "Repurchase Agreements, Number of Counterparties",
        "documentation": "Number of counterparties the entity has repurchase agreements with."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Repurchase Agreements",
        "label": "Repurchase Agreements, Resale Agreements, Securities Borrowed, and Securities Loaned Disclosure [Text Block]",
        "documentation": "The entire disclosure for repurchase agreements (also known as repos), resale agreements (also known as reverse repurchase agreements or reverse repos), securities borrowed transactions, and securities loaned transactions."
       }
      }
     },
     "auth_ref": [
      "r193",
      "r703"
     ]
    },
    "nymt_RepurchaseAgreementsWeightedAverageAdvanceRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "RepurchaseAgreementsWeightedAverageAdvanceRate",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted average advance rate",
        "label": "Repurchase Agreements, Weighted Average Advance Rate",
        "documentation": "Repurchase Agreements, Weighted Average Advance Rate"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialCollateralizedDebtObligationsAtFairValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialCollateralizedDebtObligationsAtFairValueMember",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Collateralized Debt Obligations, At Fair Value",
        "terseLabel": "Consolidated SLST",
        "label": "Residential Collateralized Debt Obligations, At Fair Value [Member]",
        "documentation": "Residential Collateralized Debt Obligations, At Fair Value [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialCollateralizedDebtObligationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialCollateralizedDebtObligationsMember",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Collateralized Debt Obligations, At Amortized Cost, Net",
        "terseLabel": "Residential loan securitizations at amortized cost, net",
        "label": "Residential Collateralized Debt Obligations [Member]",
        "documentation": "Residential collateralized debt obligations."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialLoanSecuritizationAtFairValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialLoanSecuritizationAtFairValueMember",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential loan securitizations",
        "label": "Residential Loan Securitization at Fair Value [Member]",
        "documentation": "Residential Loan Securitization at Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialLoanSecuritizationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialLoanSecuritizationMember",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential Loan Securitizations",
        "label": "Residential Loan Securitization [Member]",
        "documentation": "Residential Loan Securitization [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialLoanSecuritizationsAtAmortizedCostNetMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialLoanSecuritizationsAtAmortizedCostNetMember",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential loan securitizations at amortized cost, net",
        "label": "Residential Loan Securitizations at Amortized Cost, Net [Member]",
        "documentation": "Residential Loan Securitizations at Amortized Cost, Net"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialLoanSecuritizationsAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialLoanSecuritizationsAtFairValue",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential loan securitizations at fair value, carrying value",
        "label": "Residential Loan Securitizations at Fair Value",
        "documentation": "Residential Loan Securitizations at Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialLoansAndRealEstateOwnedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialLoansAndRealEstateOwnedMember",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofCompanysRepurchaseAgreementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential loans and real estate owned",
        "verboseLabel": "Residential Loans and Real Estate Owned",
        "label": "Residential Loans and Real Estate Owned [Member]",
        "documentation": "Residential Loans and Real Estate Owned"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialLoansAndSingleFamilyRentalPropertiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialLoansAndSingleFamilyRentalPropertiesMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/NetInterestIncomeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Residential Loans",
        "terseLabel": "Residential loans",
        "label": "Residential Loans And Single-Family Rental Properties [Member]",
        "documentation": "Residential Loans And Single-Family Rental Properties"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialLoansHeldInConsolidatedSLSTMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialLoansHeldInConsolidatedSLSTMember",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential Loans Held in Consolidated SLST",
        "label": "Residential Loans Held in Consolidated SLST [Member]",
        "documentation": "Residential Loans Held in Consolidated SLST"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialLoansHeldinSecuritizationTrustsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialLoansHeldinSecuritizationTrustsMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/NetInterestIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential Loans Held in Securitization Trusts",
        "verboseLabel": "Residential loans held in securitization trusts",
        "label": "Residential Loans Held in Securitization Trusts [Member]",
        "documentation": "Residential Loans Held in Securitization Trusts [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialLoansRealEstateOwnedAndSingleFamilyRentalPropertiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialLoansRealEstateOwnedAndSingleFamilyRentalPropertiesMember",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential Loans, Real Estate Owned and Single-Family Rental Properties",
        "label": "Residential Loans, Real Estate Owned And Single-Family Rental Properties [Member]",
        "documentation": "Residential Loans, Real Estate Owned And Single-Family Rental Properties"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialLoansandResidentialLoansHeldinSecuritizationTrustsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialLoansandResidentialLoansHeldinSecuritizationTrustsMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential loans and residential loans held in securitization trusts",
        "label": "Residential Loans and Residential Loans Held in Securitization Trusts [Member]",
        "documentation": "Residential Loans and Residential Loans Held in Securitization Trusts [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialMortgageLoansAccumulatedGrossUnrealizedGainLossBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialMortgageLoansAccumulatedGrossUnrealizedGainLossBeforeTax",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansHeldinSecuritizationTrustsNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrealized losses",
        "label": "Residential Mortgage Loans, Accumulated Gross Unrealized Gain (Loss),Before Tax",
        "documentation": "Residential Mortgage Loans, Accumulated Gross Unrealized Gain(loss), before Tax"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialMortgageLoansAtFairValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialMortgageLoansAtFairValueMember",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Residential loans, at fair value",
        "terseLabel": "Residential loans",
        "label": "Residential Mortgage Loans At Fair Value [Member]",
        "documentation": "Residential Mortgage Loans At Fair Value [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Residential Mortgage Loans, Fair Value Compared to Unpaid Principal",
        "label": "Residential Mortgage Loans, Fair Value Compared to Unpaid Principal [Table Text Block]",
        "documentation": "Residential Mortgage Loans, Fair Value Compared to Unpaid Principal [Table Text Block]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialMortgageLoansFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialMortgageLoansFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Residential mortgage loans, at fair value",
        "label": "Residential Mortgage Loans, Fair Value Disclosure",
        "documentation": "Residential Mortgage Loans, Fair Value Disclosure"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialMortgageLoansHeldInSecuritizationTrustAtFairValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialMortgageLoansHeldInSecuritizationTrustAtFairValueMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofComponentsofNetGainLossonResidentialMortgageLoansatFairValueDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansHeldinSecuritizationTrustsNetDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Residential Loans Held In Securitization Trusts",
        "terseLabel": "Residential loans held in securitization trusts",
        "label": "Residential Mortgage Loans Held In Securitization Trust, At Fair Value [Member]",
        "documentation": "Residential Mortgage Loans Held In Securitization Trust, At Fair Value [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialMortgageLoansHeldInSecuritizationTrustMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialMortgageLoansHeldInSecuritizationTrustMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential loans held in securitization trusts",
        "label": "Residential Mortgage Loans Held In Securitization Trust [Member]",
        "documentation": "The amount of distressed mortgage loans held in a securitized trust."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialMortgageLoansMeasurementInput": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialMortgageLoansMeasurementInput",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential mortgage loans, measurement input",
        "label": "Residential Mortgage Loans, Measurement Input",
        "documentation": "Residential Mortgage Loans, Measurement Input"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialMortgageLoansMeasurementInputLiquidationTimelinePeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialMortgageLoansMeasurementInputLiquidationTimelinePeriod",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential mortgage loans, measurement input, liquidation timeline (in months)",
        "label": "Residential Mortgage Loans, Measurement Input, Liquidation Timeline, Period",
        "documentation": "Residential Mortgage Loans, Measurement Input, Liquidation Timeline, Period"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialMortgageLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialMortgageLoansMember",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofComponentsofNetGainLossonResidentialMortgageLoansatFairValueDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansHeldinSecuritizationTrustsNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Residential Loans",
        "terseLabel": "Residential loans",
        "label": "Residential Mortgage Loans [Member]",
        "documentation": "Residential Mortgage Loans [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialMortgageLoansPremiumDiscountAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialMortgageLoansPremiumDiscountAmount",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansHeldinSecuritizationTrustsNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Discount",
        "label": "Residential Mortgage Loans, Premium (Discount) Amount",
        "documentation": "Residential Mortgage Loans, Premium (Discount) Amount"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ResidentialMortgageLoansatFairValueTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ResidentialMortgageLoansatFairValueTextBlock",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValue"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential Loans, at Fair Value",
        "label": "Residential Mortgage Loans at Fair Value [Text Block]",
        "documentation": "Residential Mortgage Loans at Fair Value [Text Block]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ResidentialMortgageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ResidentialMortgageMember",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residential Loans",
        "label": "Residential Mortgage [Member]",
        "documentation": "Loan to purchase or refinance residential real estate for example, but not limited to, a home, in which the real estate itself serves as collateral for the loan."
       }
      }
     },
     "auth_ref": [
      "r976"
     ]
    },
    "us-gaap_RestrictedCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RestrictedCashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
       "weight": 1.0,
       "order": 2.0
      },
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails": {
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restricted cash included in other assets",
        "verboseLabel": "Restricted cash",
        "label": "Restricted Cash and Cash Equivalents",
        "documentation": "Amount of cash and cash equivalents restricted as to withdrawal or usage. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates."
       }
      }
     },
     "auth_ref": [
      "r40",
      "r195",
      "r290",
      "r328",
      "r782"
     ]
    },
    "us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RestrictedCashAndCashEquivalentsCashAndCashEquivalentsAxis",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInitialMarginDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restricted Cash and Cash Equivalents [Axis]",
        "label": "Restricted Cash and Cash Equivalents [Axis]",
        "documentation": "Information by category of cash or cash equivalent items which are restricted as to withdrawal or usage."
       }
      }
     },
     "auth_ref": [
      "r122"
     ]
    },
    "us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInitialMarginDetails"
     ],
     "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": [
      "r290"
     ]
    },
    "nymt_RestrictedCashMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "RestrictedCashMember",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInitialMarginDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restricted Cash",
        "label": "Restricted Cash [Member]",
        "documentation": "Restricted Cash"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RestrictedStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RestrictedStockMember",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "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": [
      "r47"
     ]
    },
    "us-gaap_RestrictedStockUnitsRSUMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RestrictedStockUnitsRSUMember",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "RSUs",
        "label": "Restricted Stock Units (RSUs) [Member]",
        "documentation": "Share instrument which is convertible to stock or an equivalent amount of cash, after a specified period of time or when specified performance conditions are met."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RetainedEarningsAccumulatedDeficit",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated deficit",
        "label": "Retained Earnings (Accumulated Deficit)",
        "documentation": "Amount of accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r137",
      "r180",
      "r786",
      "r807",
      "r809",
      "r819",
      "r858",
      "r1009"
     ]
    },
    "us-gaap_RetainedEarningsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RetainedEarningsMember",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated Deficit",
        "label": "Retained Earnings [Member]",
        "documentation": "Accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r286",
      "r345",
      "r346",
      "r347",
      "r349",
      "r354",
      "r356",
      "r358",
      "r440",
      "r441",
      "r468",
      "r605",
      "r606",
      "r613",
      "r614",
      "r615",
      "r617",
      "r618",
      "r619",
      "r631",
      "r633",
      "r634",
      "r636",
      "r639",
      "r678",
      "r680",
      "r804",
      "r806",
      "r824",
      "r1266"
     ]
    },
    "us-gaap_SECScheduleIIIRealEstateAccumulatedDepreciationDepreciationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SECScheduleIIIRealEstateAccumulatedDepreciationDepreciationExpense",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Depreciation and amortization expense related to operating real estate",
        "label": "SEC Schedule, 12-28, Real Estate Companies, Investment in Real Estate, Accumulated Depreciation, Depreciation Expense",
        "documentation": "Amount of depreciation expense of real estate investments for entities with a substantial portion of business acquiring and holding investment real estate."
       }
      }
     },
     "auth_ref": [
      "r953"
     ]
    },
    "us-gaap_SaleOfStockNameOfTransactionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SaleOfStockNameOfTransactionDomain",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "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_ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Residential Mortgage Loans Held in Securitization Trusts, Net",
        "label": "Schedule of Accounts, Notes, Loans and Financing Receivable [Table Text Block]",
        "documentation": "Tabular disclosure of the various types of trade accounts and notes receivable and for each the gross carrying value, allowance, and net carrying value as of the balance sheet date. Presentation is categorized by current, noncurrent and unclassified receivables."
       }
      }
     },
     "auth_ref": [
      "r135",
      "r141"
     ]
    },
    "us-gaap_ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleOfRepurchaseAgreementsMaturitiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Assets Sold under Agreements to Repurchase [Table]",
        "label": "Asset Sold under Agreement to Repurchase [Table]",
        "documentation": "Disclosure of information about security and other asset sold under repurchase agreement that exceeds 10 percent of stockholders' equity by counterparty or group of counterparties by maturity of overnight, up to 30, 30 to 90, and over 90 days, and demand. Includes, but is not limited to, type of security and asset sold under repurchase agreement, carrying amount and market value of asset sold under repurchase agreement, repurchase liability, and interest rate."
       }
      }
     },
     "auth_ref": [
      "r341",
      "r710"
     ]
    },
    "us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfAvailableForSaleSecuritiesLineItems",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofRealizedGainorLossActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Securities, Available-for-sale [Line Items]",
        "label": "Debt Securities, Available-for-Sale [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": [
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411"
     ]
    },
    "us-gaap_ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Available-for-sale Securities Reconciliation",
        "label": "Schedule of Available-for-Sale Securities Reconciliation [Table Text Block]",
        "documentation": "Tabular disclosure of the reconciliation of available-for-sale securities from cost basis to fair value."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ScheduleOfClassificationAndCarryingValueOfUnconsolidatedVIEsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ScheduleOfClassificationAndCarryingValueOfUnconsolidatedVIEsTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIETables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Classification and Carrying Value of Unconsolidated VIEs",
        "label": "Schedule of Classification and Carrying Value of Unconsolidated VIEs [Table Text Block]",
        "documentation": "Table disclosure of classification and carrying value of unconsolidated VIEs."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ScheduleOfComponentsOfIncomeFromRealEstateAndExpensesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ScheduleOfComponentsOfIncomeFromRealEstateAndExpensesTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Components of Income From Real Estate And Expenses",
        "label": "Schedule Of Components Of Income From Real Estate And Expenses [Table Text Block]",
        "documentation": "Schedule Of Components Of Income From Real Estate And Expenses"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Components of Income Tax (Benefit)/Expense",
        "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": [
      "r1177"
     ]
    },
    "nymt_ScheduleOfComponentsOfRealizedAndUnrealizedGainsAndLossesToDerivativeInstrumentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ScheduleOfComponentsOfRealizedAndUnrealizedGainsAndLossesToDerivativeInstrumentsTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Components of Realized and Unrealized Gains and Losses",
        "label": "Schedule Of Components Of Realized And Unrealized Gains And Losses To Derivative Instruments [Table Text Block]",
        "documentation": "Table disclosure of components of realized and unrealized gains and losses to derivatives instruments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfDebtInstrumentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfDebtInstrumentsTextBlock",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsTables",
      "http://nymtrust.com/role/DebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Mortgages Payable in Consolidated VIEs",
        "verboseLabel": "Schedule of Senior Unsecured Notes",
        "label": "Schedule of Long-Term Debt Instruments [Table Text Block]",
        "documentation": "Tabular disclosure of long-debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the entity, if longer."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r61",
      "r65",
      "r109",
      "r178",
      "r179",
      "r981",
      "r983",
      "r1088",
      "r1206"
     ]
    },
    "us-gaap_ScheduleOfDebtTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfDebtTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/DebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Mortgage Payable on Real Estate",
        "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_ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Deferred Tax Assets and Liabilities",
        "label": "Schedule of Deferred Tax Assets and Liabilities [Table Text Block]",
        "documentation": "Tabular disclosure of the components of net deferred tax asset or liability recognized in an entity's statement of financial position, including the following: the total of all deferred tax liabilities, the total of all deferred tax assets, the total valuation allowance recognized for deferred tax assets."
       }
      }
     },
     "auth_ref": [
      "r1175"
     ]
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Derivative Instruments in Statement of Financial Position, Fair Value",
        "label": "Schedule of Derivative Instruments in Statement of Financial Position, Fair Value [Table Text Block]",
        "documentation": "Tabular disclosure of the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position."
       }
      }
     },
     "auth_ref": [
      "r92"
     ]
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfDerivativeInstrumentsTextBlock",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Reconciliation of Gross Derivative Assets and Liabilities",
        "label": "Schedule of Derivative Instruments [Table Text Block]",
        "documentation": "Tabular disclosure of pertinent information about a derivative or group of derivatives on a disaggregated basis, such as for individual instruments, or small groups of similar instruments. May include a combination of the type of instrument, risks being hedged, notional amount, hedge designation, related hedged item, inception date, maturity date, or other relevant item."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r85",
      "r86",
      "r88",
      "r89",
      "r92",
      "r94",
      "r98",
      "r99"
     ]
    },
    "us-gaap_ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Assets and Liabilities of Disposal Group Held for Sale",
        "label": "Disposal Groups, Including Discontinued Operations [Table Text Block]",
        "documentation": "Tabular disclosure of information related to a disposal group. Includes, but is not limited to, a discontinued operation, disposal classified as held-for-sale or disposed of by means other than sale or disposal of an individually significant component."
       }
      }
     },
     "auth_ref": [
      "r15",
      "r21",
      "r30",
      "r112",
      "r113",
      "r114",
      "r115",
      "r116",
      "r117",
      "r119",
      "r120",
      "r121",
      "r169"
     ]
    },
    "us-gaap_ScheduleOfDividendsPayableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfDividendsPayableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Dividends Payable",
        "label": "Schedule of Dividends Payable [Table Text Block]",
        "documentation": "Tabular disclosure of all or some of the information related to dividends declared, but not paid, as of the financial reporting date."
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/LossPerCommonShareTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Computation of Basic and Diluted Loss per Common Share",
        "label": "Schedule of Earnings Per Share, Basic and Diluted [Table Text Block]",
        "documentation": "Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r1094"
     ]
    },
    "srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment, Name [Axis]",
        "label": "Investment, Name [Axis]",
        "documentation": "Information by name of investment including named security. Excludes entity that is consolidated."
       }
      }
     },
     "auth_ref": [
      "r434",
      "r435",
      "r437",
      "r612",
      "r1048",
      "r1049",
      "r1050",
      "r1178",
      "r1179",
      "r1180",
      "r1181"
     ]
    },
    "us-gaap_ScheduleOfEquityMethodInvestmentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfEquityMethodInvestmentsLineItems",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Equity Method Investments [Line Items]",
        "label": "Schedule of Equity Method Investments [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r333",
      "r434",
      "r435",
      "r437",
      "r438",
      "r668"
     ]
    },
    "us-gaap_ScheduleOfEquityMethodInvestmentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfEquityMethodInvestmentsTable",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Equity Method Investments [Table]",
        "label": "Equity Method Investment [Table]",
        "documentation": "Disclosure of information about equity method investment. Includes, but is not limited to, name of investee or group of investees, percentage ownership, difference between investment and value of underlying equity in net assets."
       }
      }
     },
     "auth_ref": [
      "r289",
      "r333",
      "r434",
      "r435",
      "r437",
      "r438",
      "r668"
     ]
    },
    "us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Financial Instruments Measured at Fair Value on a Recurring Basis",
        "label": "Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Table Text Block]",
        "documentation": "Tabular disclosure of assets and liabilities, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, that are measured at fair value on a recurring basis. The disclosures contemplated herein include the fair value measurements at the reporting date by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets (Level 1), significant other observable inputs (Level 2), and significant unobservable inputs (Level 3)."
       }
      }
     },
     "auth_ref": [
      "r1189",
      "r1190"
     ]
    },
    "us-gaap_ScheduleOfFinancialInstrumentsOwnedAndPledgedAsCollateralTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfFinancialInstrumentsOwnedAndPledgedAsCollateralTextBlock",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesTables",
      "http://nymtrust.com/role/RepurchaseAgreementsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Borrowings Under Financing Arrangements and Assets Pledged as Collateral",
        "label": "Schedule of Financial Instruments Owned and Pledged as Collateral [Table Text Block]",
        "documentation": "Tabular disclosure of financial instruments held by the entity for its own account for trading or investment purposes that are carried at fair value and pledged to counterparties as collateral for financing transactions. Description may include equity, fixed income, debt or other securities."
       }
      }
     },
     "auth_ref": [
      "r194",
      "r1218"
     ]
    },
    "us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfFiniteLivedIntangibleAssetsTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Lease Intangibles",
        "label": "Schedule of Finite-Lived Intangible Assets [Table Text Block]",
        "documentation": "Tabular disclosure of assets, excluding financial assets and goodwill, lacking physical substance with a finite life, by either major class or business segment."
       }
      }
     },
     "auth_ref": [
      "r979",
      "r1123"
     ]
    },
    "us-gaap_ScheduleOfInterestRateDerivativesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfInterestRateDerivativesTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Interest Rate Derivatives",
        "label": "Schedule of Interest Rate Derivatives [Table Text Block]",
        "documentation": "Tabular disclosure of interest rate derivatives, including, but not limited to, the fair value of the derivatives, statement of financial position location, and statement of financial performance location of these instruments."
       }
      }
     },
     "auth_ref": [
      "r94"
     ]
    },
    "us-gaap_ScheduleOfInvestmentIncomeReportedAmountsByCategoryTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfInvestmentIncomeReportedAmountsByCategoryTable",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Income [Table]",
        "label": "Investment Income [Table]",
        "documentation": "Disclosure of information about 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": [
      "r149",
      "r150",
      "r152",
      "r796"
     ]
    },
    "us-gaap_ScheduleOfMaturitiesOfLongTermDebtTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsTables",
      "http://nymtrust.com/role/DebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Maturities of Collateralized Debt Obligations",
        "verboseLabel": "Schedule of Maturities of Long-term Debt",
        "label": "Schedule of Maturities of Long-Term Debt [Table Text Block]",
        "documentation": "Tabular disclosure of maturity and sinking fund requirement for long-term debt."
       }
      }
     },
     "auth_ref": [
      "r13"
     ]
    },
    "us-gaap_ScheduleOfNonvestedPerformanceBasedUnitsActivityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfNonvestedPerformanceBasedUnitsActivityTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of PSU Award Activity",
        "label": "Schedule of Nonvested Performance-Based Units Activity [Table Text Block]",
        "documentation": "Tabular disclosure of the changes in outstanding nonvested performance-based units."
       }
      }
     },
     "auth_ref": [
      "r182"
     ]
    },
    "us-gaap_ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of RSU Award Activity",
        "label": "Schedule of Nonvested Restricted Stock Units Activity [Table Text Block]",
        "documentation": "Tabular disclosure of the changes in outstanding nonvested restricted stock units."
       }
      }
     },
     "auth_ref": [
      "r182"
     ]
    },
    "us-gaap_ScheduleOfNonvestedShareActivityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfNonvestedShareActivityTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Nonvested Share Activity",
        "label": "Schedule of Nonvested Share Activity [Table Text Block]",
        "documentation": "Tabular disclosure of the changes in outstanding nonvested shares."
       }
      }
     },
     "auth_ref": [
      "r182"
     ]
    },
    "us-gaap_ScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Interest Rate Cap Contracts Strike Price and Notional Amounts",
        "label": "Schedule of Notional Amounts of Outstanding Derivative Positions [Table Text Block]",
        "documentation": "Tabular disclosure of the notional amounts of outstanding derivative positions."
       }
      }
     },
     "auth_ref": [
      "r87"
     ]
    },
    "us-gaap_ScheduleOfOtherAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfOtherAssetsTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Other Assets",
        "label": "Schedule of Other Assets [Table Text Block]",
        "documentation": "Tabular disclosure of the carrying amounts of other assets. This disclosure includes other current assets and other noncurrent assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfOtherDerivativesNotDesignatedAsHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfOtherDerivativesNotDesignatedAsHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Activity of Derivative Instruments",
        "label": "Derivatives Not Designated as Hedging Instruments [Table Text Block]",
        "documentation": "Tabular disclosure of derivative instrument not designated or qualifying as hedging instrument."
       }
      }
     },
     "auth_ref": [
      "r95",
      "r1052"
     ]
    },
    "us-gaap_ScheduleOfOtherNonoperatingIncomeExpenseTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfOtherNonoperatingIncomeExpenseTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/OtherIncomeLossTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Other (Loss) Income",
        "label": "Schedule of Other Nonoperating Income (Expense) [Table Text Block]",
        "documentation": "Tabular disclosure of the components of non-operating income or non-operating expense that may include amounts earned from dividends, interest on securities, gains (losses) on securities sold, equity earnings of unconsolidated affiliates, net gain (loss) on sales of business, interest expense and other miscellaneous income or expense items."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfRealEstatePropertiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfRealEstatePropertiesTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Real Estate Investment",
        "label": "Schedule of Real Estate Properties [Table Text Block]",
        "documentation": "Tabular disclosure of real estate properties and units in those properties that are included in the discussion of the nature of an entity's operations."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfRepurchaseAgreements": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfRepurchaseAgreements",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Company's Repurchase Agreements",
        "label": "Schedule of Repurchase Agreements [Table Text Block]",
        "documentation": "The entire disclosure for repurchase agreements."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule Of Repurchase Agreements, Maturities",
        "label": "Schedule Of Repurchase Agreements, Maturities [Table Text Block]",
        "documentation": "Schedule Of Repurchase Agreements, Maturities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfSecuritiesFinancingTransactionsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfSecuritiesFinancingTransactionsTextBlock",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Repurchase Agreements Secured by Investment Securities",
        "label": "Schedule of Securities Financing Transactions [Table Text Block]",
        "documentation": "Tabular disclosure of securities financing transactions including resale and repurchase agreements, securities borrowed and lending transactions, securities received as collateral and obligations to return securities received as collateral."
       }
      }
     },
     "auth_ref": [
      "r194",
      "r301"
     ]
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "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": [
      "r552",
      "r554",
      "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"
     ]
    },
    "us-gaap_ScheduleOfStockByClassTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfStockByClassTable",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Stock by Class [Table]",
        "label": "Stock, Class of Stock [Table]",
        "documentation": "Disclosure of information about stock by class. Includes, but is not limited to, common, convertible, and preferred stocks."
       }
      }
     },
     "auth_ref": [
      "r58",
      "r59",
      "r61",
      "r62",
      "r63",
      "r65",
      "r174",
      "r178",
      "r179",
      "r180",
      "r294",
      "r295",
      "r296",
      "r380",
      "r523",
      "r524",
      "r525",
      "r527",
      "r530",
      "r535",
      "r537",
      "r815",
      "r816",
      "r817",
      "r818",
      "r985",
      "r1047",
      "r1084"
     ]
    },
    "us-gaap_ScheduleOfStockholdersEquityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfStockholdersEquityTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Preferred Stock Issued and Outstanding",
        "label": "Schedule of Stockholders Equity [Table Text Block]",
        "documentation": "Tabular disclosure of changes in the separate accounts comprising stockholders' equity (in addition to retained earnings) and of the changes in the number of shares of equity securities during at least the most recent annual fiscal period and any subsequent interim period presented is required to make the financial statements sufficiently informative if both financial position and results of operations are presented."
       }
      }
     },
     "auth_ref": [
      "r18"
     ]
    },
    "us-gaap_ScheduleOfSubordinatedBorrowingTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfSubordinatedBorrowingTextBlock",
     "presentation": [
      "http://nymtrust.com/role/DebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Subordinated Debentures",
        "label": "Schedule of Subordinated Borrowing [Table Text Block]",
        "documentation": "Tabular disclosure of borrowings under subordinated debt agreements that qualify as available in computing net capital under SEC uniform net capital rules for broker-dealers, including restrictive covenants, collateral, interest rates and due dates, amounts due by date and amount owed in total."
       }
      }
     },
     "auth_ref": [
      "r226"
     ]
    },
    "us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfTradingSecuritiesAndOtherTradingAssetsLineItems",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt and Equity Securities, FV-NI [Line Items]",
        "label": "Debt and Equity Securities, FV-NI [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": [
      "r664"
     ]
    },
    "us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Securities, Trading, and Equity Securities, FV-NI [Table]",
        "label": "Debt Securities, Trading, and Equity Securities, FV-NI [Table]",
        "documentation": "Disclosure of information about investment in debt security measured at fair value with change in fair value recognized in net income (trading) and investment in equity security with change in fair value recognized in net income (FV-NI)."
       }
      }
     },
     "auth_ref": [
      "r664"
     ]
    },
    "nymt_ScheduleOfUnencumberedSecuritiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ScheduleOfUnencumberedSecuritiesTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Unencumbered Securities",
        "label": "Schedule of Unencumbered Securities [Table Text Block]",
        "documentation": "Schedule of Unencumbered Securities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfVariableInterestEntitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfVariableInterestEntitiesTable",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofUnpaidPrincipalBalanceDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Variable Interest Entities [Table]",
        "label": "Variable Interest Entity [Table]",
        "documentation": "Disclosure of information about variable interest held, whether or not such variable interest entity (VIE) is included in consolidated financial statements."
       }
      }
     },
     "auth_ref": [
      "r76",
      "r77",
      "r79",
      "r81",
      "r82",
      "r621",
      "r622",
      "r625",
      "r626",
      "r704",
      "r705",
      "r706"
     ]
    },
    "us-gaap_ScheduleOfVariableInterestEntitiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfVariableInterestEntitiesTextBlock",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueTables",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIETables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Mezzanine Loans and Preferred Equity Investments",
        "netLabel": "Schedule of Variable Interest Entities",
        "label": "Schedule of Variable Interest Entities [Table Text Block]",
        "documentation": "Tabular disclosure of the significant judgments and assumptions made in determining whether a variable interest (as defined) held by the entity requires the variable interest entity (VIE) (as defined) to be consolidated and (or) disclose information about its involvement with the VIE, individually or in aggregate (as applicable); the nature of restrictions, if any, on the consolidated VIE's assets and on the settlement of its liabilities reported by an entity in its statement of financial position, including the carrying amounts of such assets and liabilities; the nature of, and changes in, the risks associated with involvement in the VIE; how involvement with the VIE affects the entity's financial position, financial performance, and cash flows; the lack of recourse if creditors (or beneficial interest holders) of the consolidated VIE have no recourse to the general credit of the primary beneficiary (if applicable); the terms of arrangements, giving consideration to both explicit arrangements and implicit variable interests, if any, that could require the entity to provide financial support to the VIE, including events or circumstances that could expose the entity to a loss; the methodology used by the entity for determining whether or not it is the primary beneficiary of the variable interest entity; the significant factors considered and judgments made in determining that the power to direct the activities of a VIE that most significantly impact the VIE's economic performance are shared (as defined); the carrying amounts and classification of assets and liabilities of the VIE included in the statement of financial position; the entity's maximum exposure to loss, if any, as a result of its involvement with the VIE, including how the maximum exposure is determined and significant sources of the entity's exposure to the VIE; a comparison of the carrying amounts of the assets and liabilities and the entity's maximum exposure to loss; information about any liquidity arrangements, guarantees, and (or) other commitments by third parties that may affect the fair value or risk of the entity's variable interest in the VIE; whether or not the entity has provided financial support or other support (explicitly or implicitly) to the VIE that it was not previously contractually required to provide or whether the entity intends to provide that support, including the type and amount of the support and the primary reasons for providing the support; and supplemental information the entity determines necessary to provide."
       }
      }
     },
     "auth_ref": [
      "r76",
      "r77",
      "r79",
      "r81",
      "r82"
     ]
    },
    "nymt_ScheduleofInvestmentsSecuritiesSoldTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ScheduleofInvestmentsSecuritiesSoldTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Realized Gain or Loss Activity",
        "label": "Schedule of Investments Securities Sold [Table Text Block]",
        "documentation": "Schedule of Investments Securities Sold [Table Text Block]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SchedulesOfConcentrationOfRiskByRiskFactorTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SchedulesOfConcentrationOfRiskByRiskFactorTextBlock",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueTables",
      "http://nymtrust.com/role/ResidentialLoansatFairValueTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Schedule of Geographic Concentration of Credit Risk",
        "terseLabel": "Schedule of Geographic Concentration of Credit Risk Exceeding 5% of Balances",
        "label": "Schedules of Concentration of Risk, by Risk Factor [Table Text Block]",
        "documentation": "Tabular disclosure of the nature of a concentration, a benchmark to which it is compared, and the percentage that the risk is to the benchmark."
       }
      }
     },
     "auth_ref": [
      "r48",
      "r49",
      "r51",
      "r52",
      "r105",
      "r192"
     ]
    },
    "us-gaap_SecuredDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SecuredDebt",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "netLabel": "Collateralized debt obligations ($1,577,111 at fair value and $972,389 at amortized cost, net as of June\u00a030, 2024 and $593,737 at fair value and $1,276,780 at amortized cost, net as of December\u00a031, 2023)",
        "terseLabel": "Carrying Value",
        "verboseLabel": "Multi-family CDOs, at fair value",
        "label": "Secured Debt",
        "documentation": "Carrying value as of the balance sheet date, including the current and noncurrent portions, of collateralized debt obligations (with maturities initially due after one year or beyond the operating cycle, if longer). Such obligations include mortgage loans, chattel loans, and any other borrowings secured by assets of the borrower."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r204",
      "r1226"
     ]
    },
    "nymt_SecuredDebtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "SecuredDebtFairValue",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedVIEsDetails": {
       "parentTag": "nymt_VariableInterestEntityPrimaryBeneficiaryMaximumLossGainExposureAmount",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Collateralized debt obligations, at fair value",
        "verboseLabel": "Collateralized debt obligations, fair value",
        "label": "Secured Debt Fair Value",
        "documentation": "Fair value of secured debt."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SecuredDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SecuredDebtMember",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Secured Debt",
        "label": "Secured Debt [Member]",
        "documentation": "Collateralized debt obligation backed by, for example, but not limited to, pledge, mortgage or other lien on the entity's assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SecuredDebtRepurchaseAgreements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SecuredDebtRepurchaseAgreements",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financings under repurchase agreements, aggregate outstanding balance",
        "label": "Secured Debt, Repurchase Agreements",
        "documentation": "Carrying value, as of the balance sheet date, of securities sold under agreements to repurchase where the transferor maintains effective control over the assets, accounting for them as secured debt."
       }
      }
     },
     "auth_ref": [
      "r707"
     ]
    },
    "us-gaap_SecuredOvernightFinancingRateSofrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SecuredOvernightFinancingRateSofrMember",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofSubordinatedDebenturesDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Secured Overnight Financing Rate (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": [
      "r1186"
     ]
    },
    "us-gaap_SecuritiesBorrowed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SecuritiesBorrowed",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities borrowed",
        "label": "Securities Borrowed",
        "documentation": "Amount, after the effects of master netting arrangements, of securities borrowed from entities in exchange for collateral. Includes assets not subject to a master netting arrangement and not elected to be offset."
       }
      }
     },
     "auth_ref": [
      "r108",
      "r300",
      "r302"
     ]
    },
    "us-gaap_SecuritiesInvestmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SecuritiesInvestmentMember",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofCompanysRepurchaseAgreementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment securities",
        "label": "Securities Investment [Member]",
        "documentation": "This member categorizes all investments in securities to segregate them from other than security investments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SecuritiesSoldUnderAgreementsToRepurchase": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SecuritiesSoldUnderAgreementsToRepurchase",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Repurchase agreements",
        "netLabel": "Repurchase agreements",
        "label": "Securities Sold under Agreements to Repurchase",
        "documentation": "Amount, after the effects of master netting arrangements, of funds outstanding borrowed in the form of a security repurchase agreement between the entity and another party for the sale and repurchase of identical or substantially the same securities at a date certain for a specified price. Includes liabilities not subject to a master netting arrangement and not elected to be offset."
       }
      }
     },
     "auth_ref": [
      "r199",
      "r300",
      "r302",
      "r335",
      "r339",
      "r903",
      "r906",
      "r911",
      "r926"
     ]
    },
    "dei_Security12bTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "Security12bTitle",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Title of 12(b) Security",
        "label": "Title of 12(b) Security",
        "documentation": "Title of a 12(b) registered security."
       }
      }
     },
     "auth_ref": [
      "r1041"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Security Exchange Name",
        "label": "Security Exchange Name",
        "documentation": "Name of the Exchange on which a security is registered."
       }
      }
     },
     "auth_ref": [
      "r1043"
     ]
    },
    "srt_SegmentGeographicalDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "SegmentGeographicalDomain",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Geographical [Domain]",
        "label": "Geographical [Domain]",
        "documentation": "Geographical area."
       }
      }
     },
     "auth_ref": [
      "r258",
      "r260",
      "r263",
      "r265",
      "r266",
      "r267",
      "r268",
      "r269",
      "r271",
      "r272",
      "r273",
      "r274",
      "r275",
      "r277",
      "r390",
      "r391",
      "r731",
      "r733",
      "r734",
      "r735",
      "r736",
      "r738",
      "r739",
      "r740",
      "r741",
      "r742",
      "r743",
      "r745",
      "r746",
      "r747",
      "r748",
      "r749",
      "r750",
      "r753",
      "r754",
      "r755",
      "r756",
      "r757",
      "r758",
      "r759",
      "r760",
      "r761",
      "r762",
      "r763",
      "r764",
      "r765",
      "r838",
      "r842",
      "r844",
      "r905",
      "r908",
      "r913",
      "r928",
      "r941",
      "r949",
      "r950",
      "r951",
      "r952",
      "r954",
      "r955",
      "r956",
      "r957",
      "r958",
      "r964",
      "r986",
      "r1012",
      "r1013",
      "r1014",
      "r1015",
      "r1017",
      "r1019",
      "r1020",
      "r1021",
      "r1024",
      "r1029",
      "r1147",
      "r1229",
      "r1232",
      "r1233",
      "r1234",
      "r1235",
      "r1236",
      "r1237",
      "r1238",
      "r1239",
      "r1240",
      "r1241",
      "r1242",
      "r1243",
      "r1244",
      "r1245",
      "r1246",
      "r1247",
      "r1248",
      "r1249",
      "r1250",
      "r1251",
      "r1252",
      "r1253",
      "r1254",
      "r1255",
      "r1256",
      "r1257",
      "r1258"
     ]
    },
    "nymt_SeniorUnsecuredNotesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "SeniorUnsecuredNotesAbstract",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Senior unsecured notes:",
        "label": "Senior Unsecured Notes [Abstract]",
        "documentation": "Senior Unsecured Notes"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_SeniorUnsecuredNotesAtFairValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "SeniorUnsecuredNotesAtFairValueMember",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Senior Unsecured Notes, At Fair Value",
        "verboseLabel": "Senior unsecured notes at fair value",
        "label": "Senior Unsecured Notes, At Fair Value [Member]",
        "documentation": "Senior Unsecured Notes, At Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_SeniorUnsecuredNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "SeniorUnsecuredNotesMember",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Senior Unsecured Notes, At Amortized Cost, Net",
        "verboseLabel": "Senior unsecured notes at amortized cost, net",
        "label": "Senior Unsecured Notes [Member]",
        "documentation": "Senior Unsecured Notes"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SeriesDPreferredStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SeriesDPreferredStockMember",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Series D",
        "label": "Series D Preferred Stock [Member]",
        "documentation": "Series D preferred stock."
       }
      }
     },
     "auth_ref": [
      "r1072",
      "r1073",
      "r1145"
     ]
    },
    "us-gaap_SeriesEPreferredStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SeriesEPreferredStockMember",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Series E",
        "label": "Series E Preferred Stock [Member]",
        "documentation": "Series E preferred stock."
       }
      }
     },
     "auth_ref": [
      "r1072",
      "r1073",
      "r1145"
     ]
    },
    "us-gaap_SeriesFPreferredStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SeriesFPreferredStockMember",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Series F",
        "label": "Series F Preferred Stock [Member]",
        "documentation": "Series F preferred stock."
       }
      }
     },
     "auth_ref": [
      "r1072",
      "r1073",
      "r1145"
     ]
    },
    "us-gaap_SeriesGPreferredStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SeriesGPreferredStockMember",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Series G",
        "label": "Series G Preferred Stock [Member]",
        "documentation": "Series G preferred stock."
       }
      }
     },
     "auth_ref": [
      "r1072",
      "r1073",
      "r1145"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Requisite service period",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Award Requisite Service Period",
        "documentation": "Estimated period over which an employee is required to provide service in exchange for the equity-based payment award, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r991"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Award vesting period",
        "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": [
      "r991"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "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": [
      "r572"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "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": [
      "r572"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r570"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "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": [
      "r570"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-vested shares (in shares)",
        "periodStartLabel": "Non-vested shares at beginning of period (in shares)",
        "periodEndLabel": "Non-vested shares at end of period (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": [
      "r567",
      "r568"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of Non-vested Restricted 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/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Non-vested shares at beginning of period (in dollars per share)",
        "periodEndLabel": "Non-vested shares at end of period (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": [
      "r567",
      "r568"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted Average Per Share 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/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Shares vested (in shares)",
        "negatedLabel": "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": [
      "r571"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value of vested shares",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period, Fair Value",
        "documentation": "Fair value of share-based awards for which the grantee gained the right by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash."
       }
      }
     },
     "auth_ref": [
      "r574"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "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": [
      "r571"
     ]
    },
    "nymt_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedTarget": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedTarget",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Vested shares target (in shares)",
        "label": "Share-Based Compensation Arrangement By Share-based Payment Award, Equity Instruments Other Than Options, Vested Target",
        "documentation": "Share-Based Compensation Arrangement By Share-based Payment Award, Equity Instruments Other Than Options, Vested Target"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "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": [
      "r552",
      "r554",
      "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"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maximum number of shares that may be issued (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": [
      "r992"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Shares available for grant (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": [
      "r68"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Award Type [Domain]",
        "label": "Award Type [Domain]",
        "documentation": "Award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "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"
     ]
    },
    "us-gaap_ShareBasedPaymentArrangementEmployeeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedPaymentArrangementEmployeeMember",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share-Based Payment Arrangement, Employee",
        "label": "Share-Based Payment Arrangement, Employee [Member]",
        "documentation": "Recipient, of award granted under share-based payment arrangement, over whom grantor exercises or has right to exercise sufficient control to establish employer-employee relationship based on law of pertinent jurisdiction. Includes, but is not limited to, nonemployee director treated as employee when acting as member of board of directors, if elected by grantor's shareholders or appointed to board position to be filled by shareholder election when existing term expires."
       }
      }
     },
     "auth_ref": [
      "r554",
      "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"
     ]
    },
    "nymt_ShareBasedPaymentArrangementNoncashExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ShareBasedPaymentArrangementNoncashExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stock based compensation expense, net",
        "label": "Share-Based Payment Arrangement, Noncash Expense (Benefit)",
        "documentation": "Share-Based Payment Arrangement, Noncash Expense (Benefit)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedPaymentArrangementNonemployeeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedPaymentArrangementNonemployeeMember",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share-Based Payment Arrangement, Nonemployee",
        "label": "Share-Based Payment Arrangement, Nonemployee [Member]",
        "documentation": "Recipient, of award granted under share-based payment arrangement, over whom grantor does not exercise nor has right to exercise sufficient control to establish employer-employee relationship based on law of pertinent jurisdiction. Excludes nonemployee director treated as employee when acting as member of board of directors, if elected by grantor's shareholders or appointed to board position to be filled by shareholder election when existing term expires."
       }
      }
     },
     "auth_ref": [
      "r552",
      "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"
     ]
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationScheduleofNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value, expected term",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Fair Value Assumptions, Expected Term",
        "documentation": "Expected term of 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": [
      "r577"
     ]
    },
    "nymt_SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsExpectedTermforExpectedVolatilityRate": {
     "xbrltype": "durationItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsExpectedTermforExpectedVolatilityRate",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value, expected term for volatility rate",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Term for Expected Volatility Rate",
        "documentation": "Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Term for Expected Volatility Rate"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SignificantAccountingPoliciesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SignificantAccountingPoliciesTextBlock",
     "presentation": [
      "http://nymtrust.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": [
      "r162",
      "r329"
     ]
    },
    "nymt_SingleFamilyEquityOwnershipInterestsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "SingleFamilyEquityOwnershipInterestsMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Single-Family Equity Ownership Interests",
        "label": "Single-Family Equity Ownership Interests [Member]",
        "documentation": "Single-Family Equity Ownership Interests"
       }
      }
     },
     "auth_ref": []
    },
    "srt_SingleFamilyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "SingleFamilyMember",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Single Family",
        "label": "Single Family [Member]",
        "documentation": "Individual, freestanding, unattached residential building."
       }
      }
     },
     "auth_ref": [
      "r1060",
      "r1061",
      "r1271",
      "r1272"
     ]
    },
    "nymt_SingleFamilyRentalPropertiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "SingleFamilyRentalPropertiesMember",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofCompanysRepurchaseAgreementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Single-family rental properties",
        "label": "Single-Family Rental Properties [Member]",
        "documentation": "Single-Family Rental Properties"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementClassOfStockAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementClassOfStockAxis",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/Cover",
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class of Stock [Axis]",
        "label": "Class of Stock [Axis]",
        "documentation": "Information by the different classes of stock of the entity."
       }
      }
     },
     "auth_ref": [
      "r254",
      "r294",
      "r295",
      "r296",
      "r333",
      "r363",
      "r364",
      "r371",
      "r373",
      "r380",
      "r381",
      "r438",
      "r484",
      "r486",
      "r487",
      "r488",
      "r491",
      "r492",
      "r523",
      "r524",
      "r527",
      "r530",
      "r537",
      "r668",
      "r815",
      "r816",
      "r817",
      "r818",
      "r824",
      "r825",
      "r826",
      "r827",
      "r828",
      "r829",
      "r830",
      "r831",
      "r832",
      "r833",
      "r834",
      "r835",
      "r857",
      "r879",
      "r896",
      "r933",
      "r934",
      "r935",
      "r936",
      "r937",
      "r1047",
      "r1084",
      "r1093"
     ]
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementEquityComponentsAxis",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Components [Axis]",
        "label": "Equity Components [Axis]",
        "documentation": "Information by component of equity."
       }
      }
     },
     "auth_ref": [
      "r18",
      "r134",
      "r138",
      "r139",
      "r286",
      "r311",
      "r312",
      "r313",
      "r345",
      "r346",
      "r347",
      "r349",
      "r354",
      "r356",
      "r358",
      "r379",
      "r440",
      "r441",
      "r468",
      "r539",
      "r605",
      "r606",
      "r613",
      "r614",
      "r615",
      "r617",
      "r618",
      "r619",
      "r631",
      "r632",
      "r633",
      "r634",
      "r635",
      "r636",
      "r639",
      "r669",
      "r670",
      "r671",
      "r672",
      "r673",
      "r674",
      "r678",
      "r680",
      "r684",
      "r795",
      "r804",
      "r805",
      "r806",
      "r824",
      "r896"
     ]
    },
    "srt_StatementGeographicalAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "StatementGeographicalAxis",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Geographical [Axis]",
        "label": "Geographical [Axis]",
        "documentation": "Information by geographical components."
       }
      }
     },
     "auth_ref": [
      "r258",
      "r260",
      "r263",
      "r265",
      "r266",
      "r267",
      "r268",
      "r269",
      "r271",
      "r272",
      "r273",
      "r274",
      "r275",
      "r277",
      "r390",
      "r391",
      "r731",
      "r733",
      "r734",
      "r735",
      "r736",
      "r738",
      "r739",
      "r740",
      "r741",
      "r742",
      "r743",
      "r745",
      "r746",
      "r747",
      "r748",
      "r749",
      "r750",
      "r753",
      "r754",
      "r755",
      "r756",
      "r757",
      "r758",
      "r759",
      "r760",
      "r761",
      "r762",
      "r763",
      "r764",
      "r765",
      "r838",
      "r842",
      "r844",
      "r905",
      "r908",
      "r913",
      "r928",
      "r941",
      "r949",
      "r950",
      "r951",
      "r952",
      "r954",
      "r955",
      "r956",
      "r957",
      "r958",
      "r964",
      "r986",
      "r1012",
      "r1013",
      "r1014",
      "r1015",
      "r1017",
      "r1019",
      "r1020",
      "r1021",
      "r1024",
      "r1029",
      "r1147",
      "r1229",
      "r1232",
      "r1233",
      "r1234",
      "r1235",
      "r1236",
      "r1237",
      "r1238",
      "r1239",
      "r1240",
      "r1241",
      "r1242",
      "r1243",
      "r1244",
      "r1245",
      "r1246",
      "r1247",
      "r1248",
      "r1249",
      "r1250",
      "r1251",
      "r1252",
      "r1253",
      "r1254",
      "r1255",
      "r1256",
      "r1257",
      "r1258"
     ]
    },
    "us-gaap_StatementLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementLineItems",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/NetInterestIncomeDetails"
     ],
     "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": [
      "r345",
      "r346",
      "r347",
      "r379",
      "r680",
      "r728",
      "r814",
      "r835",
      "r849",
      "r850",
      "r851",
      "r852",
      "r853",
      "r854",
      "r857",
      "r860",
      "r861",
      "r862",
      "r863",
      "r864",
      "r866",
      "r867",
      "r868",
      "r869",
      "r871",
      "r872",
      "r873",
      "r874",
      "r875",
      "r877",
      "r880",
      "r881",
      "r882",
      "r883",
      "r884",
      "r885",
      "r886",
      "r887",
      "r888",
      "r889",
      "r890",
      "r891",
      "r892",
      "r893",
      "r896",
      "r1030"
     ]
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementOfCashFlowsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement of Cash Flows [Abstract]",
        "label": "Statement of Cash Flows [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementOfFinancialPositionAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement of Financial Position [Abstract]",
        "label": "Statement of Financial Position [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementOfStockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementOfStockholdersEquityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement of Stockholders' Equity [Abstract]",
        "label": "Statement of Stockholders' Equity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementTable",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement [Table]",
        "label": "Statement [Table]",
        "documentation": "Disclosure of information about statement of comprehensive income, income, other comprehensive income, financial position, cash flows, and shareholders' equity."
       }
      }
     },
     "auth_ref": [
      "r345",
      "r346",
      "r347",
      "r379",
      "r393",
      "r680",
      "r728",
      "r814",
      "r835",
      "r849",
      "r850",
      "r851",
      "r852",
      "r853",
      "r854",
      "r857",
      "r860",
      "r861",
      "r862",
      "r863",
      "r864",
      "r866",
      "r867",
      "r868",
      "r869",
      "r871",
      "r872",
      "r873",
      "r874",
      "r875",
      "r877",
      "r880",
      "r881",
      "r882",
      "r883",
      "r884",
      "r885",
      "r886",
      "r887",
      "r888",
      "r889",
      "r890",
      "r891",
      "r892",
      "r893",
      "r896",
      "r1030"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesNewIssues": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockIssuedDuringPeriodSharesNewIssues",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Shares issued (in shares)",
        "label": "Stock Issued During Period, Shares, New Issues",
        "documentation": "Number of new stock issued during the period."
       }
      }
     },
     "auth_ref": [
      "r18",
      "r133",
      "r134",
      "r180",
      "r815",
      "r896",
      "r934"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesStockSplits": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockIssuedDuringPeriodSharesStockSplits",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Reverse stock split (in shares)",
        "label": "Stock Issued During Period, Shares, Stock Splits",
        "documentation": "Number of shares issued during the period as a result of a stock split."
       }
      }
     },
     "auth_ref": [
      "r18",
      "r133",
      "r134",
      "r180"
     ]
    },
    "us-gaap_StockOptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockOptionMember",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofComponentsofRealizedandUnrealizedGainsandLossesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofDerivativeInstrumentsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Options",
        "verboseLabel": "Options",
        "label": "Equity Option [Member]",
        "documentation": "Contracts conveying rights, but not obligations, to buy or sell a specific quantity of stock at a specified price during a specified period (an American option) or at a specified date (a European option)."
       }
      }
     },
     "auth_ref": [
      "r1029"
     ]
    },
    "nymt_StockRepurchasePlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "StockRepurchasePlanMember",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stock Repurchase Plan",
        "label": "Stock Repurchase Plan [Member]",
        "documentation": "Stock Repurchase Plan"
       }
      }
     },
     "auth_ref": []
    },
    "srt_StockRepurchaseProgramAuthorizedAmount1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "StockRepurchaseProgramAuthorizedAmount1",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stock 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": [
      "r1146"
     ]
    },
    "us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Remaining authorized repurchase amount",
        "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/2024",
     "localname": "StockRepurchasedDuringPeriodShares",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Shares repurchased (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": [
      "r18",
      "r133",
      "r134",
      "r180",
      "r818",
      "r896",
      "r936"
     ]
    },
    "us-gaap_StockRepurchasedDuringPeriodValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockRepurchasedDuringPeriodValue",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Common and preferred stock repurchases",
        "terseLabel": "Stock repurchase",
        "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": [
      "r18",
      "r133",
      "r134",
      "r180",
      "r824",
      "r896",
      "r936",
      "r1039"
     ]
    },
    "us-gaap_StockholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockholdersEquity",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Company's stockholders' equity",
        "label": "Equity, Attributable to Parent",
        "documentation": "Amount of equity (deficit) attributable to parent. Excludes temporary equity and equity attributable to noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r134",
      "r138",
      "r139",
      "r163",
      "r859",
      "r876",
      "r897",
      "r898",
      "r1009",
      "r1040",
      "r1086",
      "r1115",
      "r1204",
      "r1266"
     ]
    },
    "us-gaap_StockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockholdersEquityAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stockholders' Equity:",
        "label": "Equity, Attributable to Parent [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total equity",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "label": "Equity, Including Portion Attributable to Noncontrolling Interest",
        "documentation": "Amount of equity (deficit) attributable to parent and noncontrolling interest. Excludes temporary equity."
       }
      }
     },
     "auth_ref": [
      "r73",
      "r74",
      "r83",
      "r286",
      "r287",
      "r312",
      "r345",
      "r346",
      "r347",
      "r349",
      "r354",
      "r356",
      "r440",
      "r441",
      "r468",
      "r539",
      "r605",
      "r606",
      "r613",
      "r614",
      "r615",
      "r617",
      "r618",
      "r619",
      "r631",
      "r632",
      "r633",
      "r634",
      "r635",
      "r636",
      "r639",
      "r669",
      "r670",
      "r674",
      "r679",
      "r684",
      "r805",
      "r806",
      "r822",
      "r859",
      "r876",
      "r897",
      "r898",
      "r938",
      "r1039",
      "r1086",
      "r1115",
      "r1204",
      "r1266"
     ]
    },
    "us-gaap_StockholdersEquityNoteAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockholdersEquityNoteAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stockholders' Equity Note [Abstract]",
        "label": "Stockholders' Equity Note [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockholdersEquityNoteDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockholdersEquityNoteDisclosureTextBlock",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stockholders' Equity",
        "label": "Equity [Text Block]",
        "documentation": "The entire disclosure for equity."
       }
      }
     },
     "auth_ref": [
      "r177",
      "r332",
      "r522",
      "r524",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r536",
      "r539",
      "r638",
      "r899",
      "r900",
      "r939"
     ]
    },
    "us-gaap_StockholdersEquityNoteStockSplitConversionRatio1": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockholdersEquityNoteStockSplitConversionRatio1",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Reverse stock split (in shares)",
        "label": "Stockholders' Equity Note, Stock Split, Conversion Ratio",
        "documentation": "Ratio applied to the conversion of stock split, for example but not limited to, one share converted to two or two shares converted to one."
       }
      }
     },
     "auth_ref": [
      "r181"
     ]
    },
    "us-gaap_SubordinatedBorrowingAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubordinatedBorrowingAxis",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofSubordinatedDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subordinated Borrowing [Axis]",
        "label": "Subordinated Borrowing [Axis]",
        "documentation": "Information by name of borrowing under subordinated debt agreement."
       }
      }
     },
     "auth_ref": [
      "r226"
     ]
    },
    "us-gaap_SubordinatedBorrowingNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubordinatedBorrowingNameDomain",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofSubordinatedDebenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subordinated Borrowing, Name [Domain]",
        "label": "Subordinated Borrowing, Name [Domain]",
        "documentation": "Name of the borrowing under subordinated debt agreements, including exchange memberships contributed for the use of the Company."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubordinatedDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubordinatedDebt",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subordinated debentures",
        "verboseLabel": "Subordinated debentures, carrying value",
        "label": "Subordinated Debt",
        "documentation": "Including the current and noncurrent portions, carrying value as of the balance sheet date of subordinated debt (with initial maturities beyond one year or beyond the operating cycle if longer). Subordinated debt places a lender in a lien position behind debt having a higher priority of repayment in liquidation of the entity's assets."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r123",
      "r204",
      "r1226"
     ]
    },
    "us-gaap_SubordinatedDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubordinatedDebtMember",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subordinated debentures",
        "label": "Subordinated Debt [Member]",
        "documentation": "This element represents domestic or foreign subordinated debt. Subordinated debt has a lower priority of repayment in liquidation of the entity's assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubsequentEventMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubsequentEventMember",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails"
     ],
     "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": [
      "r675",
      "r687"
     ]
    },
    "us-gaap_SubsequentEventTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubsequentEventTypeAxis",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails"
     ],
     "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": [
      "r675",
      "r687"
     ]
    },
    "us-gaap_SubsequentEventTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubsequentEventTypeDomain",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails"
     ],
     "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": [
      "r675",
      "r687"
     ]
    },
    "us-gaap_SubsidiarySaleOfStockAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubsidiarySaleOfStockAxis",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "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": []
    },
    "nymt_SunsetApartmentsPreferredLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "SunsetApartmentsPreferredLLCMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "EHOF-NYMT Sunset Apartments Preferred, LLC",
        "verboseLabel": "EHOF-NYMT Sunset Apartments Preferred, LLC",
        "label": "Sunset Apartments Preferred, LLC [Member]",
        "documentation": "Sunset Apartments Preferred, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SupplementalBalanceSheetDisclosuresTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SupplementalBalanceSheetDisclosuresTextBlock",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Assets and Other Liabilities",
        "label": "Supplemental Balance Sheet Disclosures [Text Block]",
        "documentation": "The entire disclosure for supplemental balance sheet disclosures, including descriptions and amounts for assets, liabilities, and equity."
       }
      }
     },
     "auth_ref": [
      "r1068"
     ]
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SupplementalCashFlowInformationAbstract",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Supplemental Disclosure:",
        "label": "Supplemental Cash Flow Information [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_SwapMarginPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "SwapMarginPayable",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails": {
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Payables to derivative counterparties",
        "label": "Swap Margin Payable",
        "documentation": "Swap Margin Payable"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_SwapMaturities2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "SwapMaturities2025Member",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2025",
        "label": "Swap Maturities 2025 [Member]",
        "documentation": "Swap Maturities 2025"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_SwapMaturities2026Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "SwapMaturities2026Member",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2026",
        "label": "Swap Maturities 2026 [Member]",
        "documentation": "Swap Maturities 2026"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_SwapMaturities2027Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "SwapMaturities2027Member",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2027",
        "label": "Swap Maturities 2027 [Member]",
        "documentation": "Swap Maturities 2027"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_SwapMaturities2028Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "SwapMaturities2028Member",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2028",
        "label": "Swap Maturities 2028 [Member]",
        "documentation": "Swap Maturities 2028"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_SwapMaturities2029Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "SwapMaturities2029Member",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2029",
        "label": "Swap Maturities 2029 [Member]",
        "documentation": "Swap Maturities 2029"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_SwapMaturities2033Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "SwapMaturities2033Member",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2033",
        "label": "Swap Maturities 2033 [Member]",
        "documentation": "Swap Maturities 2033"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_SwapMaturities2034Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "SwapMaturities2034Member",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInterestRateDerivativesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2034",
        "label": "Swap Maturities 2034 [Member]",
        "documentation": "Swap Maturities 2034"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_SyracuseApartmentsAndTownhomesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "SyracuseApartmentsAndTownhomesLLCMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Syracuse Apartments and Townhomes, LLC",
        "verboseLabel": "Syracuse Apartments and Townhomes, LLC",
        "label": "Syracuse Apartments And Townhomes, LLC [Member]",
        "documentation": "Syracuse Apartments And Townhomes, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "stpr_TN": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/stpr/2024",
     "localname": "TN",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tennessee",
        "label": "TENNESSEE"
       }
      }
     },
     "auth_ref": []
    },
    "stpr_TX": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/stpr/2024",
     "localname": "TX",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Texas",
        "label": "TEXAS"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_TaxableREITSubsidiariesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "TaxableREITSubsidiariesMember",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Taxable REIT Subsidiaries",
        "label": "Taxable REIT Subsidiaries [Member]",
        "documentation": "Taxable REIT subsidiaries."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_TidesOn27thInvestorsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "TidesOn27thInvestorsLLCMember",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tides on 27th Investors, LLC",
        "verboseLabel": "Tides on 27th Investors, LLC",
        "label": "Tides on 27th Investors, LLC [Member]",
        "documentation": "Tides on 27th Investors, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "srt_TitleOfIndividualAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "TitleOfIndividualAxis",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "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": [
      "r1100",
      "r1209"
     ]
    },
    "srt_TitleOfIndividualWithRelationshipToEntityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "TitleOfIndividualWithRelationshipToEntityDomain",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "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": []
    },
    "nymt_TotalCollateralizedDebtObligationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "TotalCollateralizedDebtObligationsMember",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total collateralized debt obligations",
        "label": "Total Collateralized Debt Obligations [Member]",
        "documentation": "Total Collateralized Debt Obligations"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_TotalDebtSecuritiesAvailableforSaleCECLandFairValueAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "TotalDebtSecuritiesAvailableforSaleCECLandFairValueAbstract",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total CECL Securities and Fair Value Option",
        "label": "Total Debt Securities, Available for Sale, CECL and Fair Value [Abstract]",
        "documentation": "Total Debt Securities, Available for Sale, CECL and Fair Value [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_TotalResidentialLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "TotalResidentialLoansMember",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total residential loans",
        "label": "Total Residential Loans [Member]",
        "documentation": "Total Residential Loans"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_TotalUnconsolidatedVariableInterestEntitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "TotalUnconsolidatedVariableInterestEntitiesMember",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maximum exposure",
        "label": "Total Unconsolidated Variable Interest Entities [Member]",
        "documentation": "Total Unconsolidated Variable Interest Entities"
       }
      }
     },
     "auth_ref": []
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "TradingSymbol",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Trading Symbol",
        "label": "Trading Symbol",
        "documentation": "Trading symbol of an instrument as listed on an exchange."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsLineItems",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transfer of Certain Financial Assets Accounted for as Secured Borrowings [Line Items]",
        "label": "Transfer of Certain Financial Assets Accounted for as Secured Borrowings [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": [
      "r709",
      "r1010",
      "r1219"
     ]
    },
    "us-gaap_TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsTable",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transfer of Certain Financial Assets Accounted for as Secured Borrowings [Table]",
        "label": "Transfer of Certain Financial Assets Accounted for as Secured Borrowings [Table]",
        "documentation": "Disclosure of information about the nature and risks of short-term collateralized financing obtained through repurchase agreements, securities lending transactions and repurchase-to-maturity transactions, accounted for as secured borrowings."
       }
      }
     },
     "auth_ref": [
      "r709",
      "r1010",
      "r1219"
     ]
    },
    "us-gaap_TransferToOtherRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TransferToOtherRealEstate",
     "crdr": "debit",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transfer from residential loans to real estate owned",
        "label": "Real Estate Owned, Transfer to Real Estate Owned",
        "documentation": "Value transferred from mortgage loans to real estate owned (REO) in noncash transactions."
       }
      }
     },
     "auth_ref": [
      "r44",
      "r45",
      "r46"
     ]
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMaturitiesofCollateralizedDebtObligationsDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofInitialMarginDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueScheduleofRealizedGainorLossActivityDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsScheduleofUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "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": [
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r419",
      "r420",
      "r421",
      "r422",
      "r423",
      "r424",
      "r425",
      "r426",
      "r427",
      "r428",
      "r429",
      "r518",
      "r535",
      "r637",
      "r664",
      "r688",
      "r689",
      "r690",
      "r691",
      "r692",
      "r693",
      "r694",
      "r695",
      "r696",
      "r697",
      "r698",
      "r699",
      "r700",
      "r701",
      "r708",
      "r712",
      "r713",
      "r714",
      "r715",
      "r716",
      "r717",
      "r718",
      "r719",
      "r720",
      "r721",
      "r722",
      "r723",
      "r724",
      "r725",
      "r726",
      "r796",
      "r997",
      "r999",
      "r1001",
      "r1002",
      "r1003",
      "r1004",
      "r1005",
      "r1006",
      "r1007",
      "r1010",
      "r1053",
      "r1054",
      "r1055",
      "r1056",
      "r1057",
      "r1058",
      "r1059",
      "r1110",
      "r1111",
      "r1112",
      "r1113",
      "r1188",
      "r1191",
      "r1192",
      "r1193",
      "r1200",
      "r1203"
     ]
    },
    "us-gaap_TreasuryStockAcquiredAverageCostPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TreasuryStockAcquiredAverageCostPerShare",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average cost per share (in dollars per share)",
        "label": "Shares Acquired, Average Cost Per Share",
        "documentation": "Total cost of shares repurchased divided by the total number of shares repurchased."
       }
      }
     },
     "auth_ref": [
      "r67"
     ]
    },
    "nymt_UnderwrittenPublicOfferingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "UnderwrittenPublicOfferingMember",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Underwritten Public Offering",
        "label": "Underwritten Public Offering [Member]",
        "documentation": "Underwritten Public Offering [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_UnfundedCommitmentsForResidentialAndMultiFamilyInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "UnfundedCommitmentsForResidentialAndMultiFamilyInvestments",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails": {
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesScheduleofOtherLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unfunded commitments for residential and multi-family investments",
        "label": "Unfunded Commitments For Residential And Multi-Family Investments",
        "documentation": "Unfunded Commitments For Residential And Multi-Family Investments"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_UnrealizedGainLossLoansandPreferredEquityandMezzanineLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "UnrealizedGainLossLoansandPreferredEquityandMezzanineLoans",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Unrealized (losses) gains",
        "label": "Unrealized Gain (Loss) Loans and Preferred Equity and Mezzanine Loans",
        "documentation": "Unrealized Gain (Loss) Loans and Preferred Equity"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_UnrealizedGainLossOnCollateralizedDebtObligation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "UnrealizedGainLossOnCollateralizedDebtObligation",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrealized gains (losses) recognized on CDOs",
        "label": "Unrealized Gain (Loss) On Collateralized Debt Obligation",
        "documentation": "Unrealized Gain (Loss) On Collateralized Debt Obligation"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UnrealizedGainLossOnDerivatives": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "UnrealizedGainLossOnDerivatives",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofComponentsofRealizedandUnrealizedGainsandLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrealized Gains (Losses)",
        "label": "Unrealized Gain (Loss) on Derivatives",
        "documentation": "The net change in the difference between the fair value and the carrying value, or in the comparative fair values, of derivative instruments, including options, swaps, futures, and forward contracts, held at each balance sheet date, that was included in earnings for the period."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r890",
      "r891",
      "r892",
      "r893",
      "r919"
     ]
    },
    "us-gaap_UnrealizedGainLossOnInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "UnrealizedGainLossOnInvestments",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "parentTag": "us-gaap_OtherOperatingIncomeExpenseNet",
       "weight": 1.0,
       "order": 1.0
      },
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrealized (losses) gains, net",
        "negatedLabel": "Unrealized losses (gains), net",
        "verboseLabel": "Unrealized gains (losses), net",
        "label": "Unrealized Gain (Loss) on Investments",
        "documentation": "Amount of unrealized gain (loss) on investment."
       }
      }
     },
     "auth_ref": [
      "r11"
     ]
    },
    "us-gaap_UnrealizedGainLossOnInvestmentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "UnrealizedGainLossOnInvestmentsTableTextBlock",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableForSaleatFairValueTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Investment Securities Available-for-sale in an Unrealized Loss Position",
        "label": "Unrealized Gain (Loss) on Investments [Table Text Block]",
        "documentation": "Tabular disclosure of unrealized gains and losses on investments."
       }
      }
     },
     "auth_ref": []
    },
    "nymt_UnrealizedGainLossOnRealEstateMortgageLoansNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "UnrealizedGainLossOnRealEstateMortgageLoansNet",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofComponentsofNetGainLossonResidentialMortgageLoansatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrealized gains (losses), net",
        "label": "Unrealized Gain (Loss) On Real Estate Mortgage Loans, Net",
        "documentation": "Unrealized Gain (Loss) On Real Estate Mortgage Loans, Net"
       }
      }
     },
     "auth_ref": []
    },
    "nymt_UnrecordedCommitmentToFundAdvancesOnBusinessPurposeLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "UnrecordedCommitmentToFundAdvancesOnBusinessPurposeLoans",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/CommitmentsandContingenciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitments to fund advances for business purpose loans",
        "label": "Unrecorded Commitment To Fund Advances On Business Purpose Loans",
        "documentation": "Unrecorded Commitment To Fund Advances On Business Purpose Loans"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UnsecuredDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "UnsecuredDebt",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Senior unsecured notes ($60,000 at fair value and $98,492 at amortized cost, net as of June\u00a030, 2024 and $98,111 at amortized cost, net as of December\u00a031, 2023)",
        "verboseLabel": "Senior unsecured notes, carrying value",
        "label": "Unsecured Debt",
        "documentation": "Including the current and noncurrent portions, carrying value as of the balance sheet date of uncollateralized debt obligations (with maturities initially due after one year or beyond the operating cycle if longer)."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r204",
      "r1226"
     ]
    },
    "nymt_UnsecuredDebtFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "UnsecuredDebtFairValueDisclosure",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "parentTag": "us-gaap_LiabilitiesFairValueDisclosure",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Senior unsecured notes",
        "terseLabel": "Senior unsecured notes, estimated fair value",
        "label": "Unsecured Debt, Fair Value Disclosure",
        "documentation": "Unsecured Debt, Fair Value Disclosure"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UnsecuredDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "UnsecuredDebtMember",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtInstrumentRedemptionDetails",
      "http://nymtrust.com/role/DebtScheduleofSeniorUnsecuredNotesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsNarrativeDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/NetInterestIncomeDetails",
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Senior unsecured notes",
        "verboseLabel": "Senior 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": []
    },
    "nymt_UseOfSpecialPurposeEntitiesAndVariableInterestEntitiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "UseOfSpecialPurposeEntitiesAndVariableInterestEntitiesTextBlock",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIE"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE)",
        "label": "Use Of Special Purpose Entities And Variable Interest Entities [Text Block]",
        "documentation": "Disclosure of special purpose entities and variable interest entities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ValuationAllowanceDeferredTaxAssetChangeInAmount",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Change in valuation allowance",
        "label": "Valuation Allowance, Deferred Tax Asset, Increase (Decrease), Amount",
        "documentation": "Amount of increase (decrease) in the valuation allowance for a specified deferred tax asset."
       }
      }
     },
     "auth_ref": [
      "r596"
     ]
    },
    "us-gaap_ValuationTechniqueAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ValuationTechniqueAxis",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "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": [
      "r645",
      "r646",
      "r1001",
      "r1193"
     ]
    },
    "us-gaap_ValuationTechniqueDiscountedCashFlowMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ValuationTechniqueDiscountedCashFlowMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Valuation Technique, Discounted Cash Flow",
        "label": "Valuation Technique, Discounted Cash Flow [Member]",
        "documentation": "Valuation technique calculating present value of future cash flows."
       }
      }
     },
     "auth_ref": [
      "r1001",
      "r1191",
      "r1192",
      "r1193"
     ]
    },
    "us-gaap_ValuationTechniqueDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ValuationTechniqueDomain",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Valuation Approach and Technique [Domain]",
        "label": "Valuation Approach and Technique [Domain]",
        "documentation": "Valuation approach and technique."
       }
      }
     },
     "auth_ref": [
      "r645",
      "r646",
      "r1001",
      "r1193"
     ]
    },
    "nymt_ValuationTechniqueLiquidationModelMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "ValuationTechniqueLiquidationModelMember",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Valuation Technique, Liquidation Model",
        "label": "Valuation Technique, Liquidation Model [Member]",
        "documentation": "Valuation Technique, Liquidation Model [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_VariableInterestEntityLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "VariableInterestEntityLineItems",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofUnpaidPrincipalBalanceDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofClassificationandCarryingValueofUnconsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable Interest Entity [Line Items]",
        "label": "Variable Interest Entity [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r621",
      "r622",
      "r625",
      "r626",
      "r704",
      "r705",
      "r706"
     ]
    },
    "us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "VariableInterestEntityNotPrimaryBeneficiaryMember",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValueScheduleofPreferredEquityandMezzanineLoanInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "VIE, Not Primary Beneficiary",
        "label": "Variable Interest Entity, Not Primary Beneficiary [Member]",
        "documentation": "Variable Interest Entities (VIE) in which the entity does not have a controlling financial interest (as defined) and of which it is therefore not the primary beneficiary. VIEs of which the entity is not the primary beneficiary because it does not have the power to direct the activities of the VIE that most significantly impact the VIE's economic performance and for which it does not have the obligation to absorb losses of the VIE that could potentially be significant to the VIE or the right to receive benefits from the VIE that could potentially be significant to the VIE are not included in the consolidated financial statements of the entity."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_VariableInterestEntityPrimaryBeneficiaryMaximumLossExposureAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "VariableInterestEntityPrimaryBeneficiaryMaximumLossExposureAmount",
     "crdr": "credit",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable interest entity, primary beneficiary, maximum loss exposure, amount",
        "verboseLabel": "Net investment",
        "label": "Variable Interest Entity, Primary Beneficiary, Maximum Loss Exposure, Amount",
        "documentation": "Amount of maximum exposure to loss from involvement with consolidated variable interest entity (VIE)."
       }
      }
     },
     "auth_ref": [
      "r1182"
     ]
    },
    "nymt_VariableInterestEntityPrimaryBeneficiaryMaximumLossGainExposureAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://nymtrust.com/20240630",
     "localname": "VariableInterestEntityPrimaryBeneficiaryMaximumLossGainExposureAmount",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedVIEsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTotalLabel": "Net investment",
        "label": "Variable Interest Entity, Primary Beneficiary, Maximum Loss (Gain) Exposure, Amount",
        "documentation": "Variable Interest Entity, Primary Beneficiary, Maximum Loss (Gain) Exposure, Amount"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_VariableInterestEntityPrimaryBeneficiaryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "VariableInterestEntityPrimaryBeneficiaryMember",
     "presentation": [
      "http://nymtrust.com/role/AssetsandLiabilitiesofDisposalGroupHeldforSaleNarrativeDetails",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/DebtScheduleofMortgagePayableonRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/NetInterestIncomeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetScheduleofRealEstateInvestmentDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofComponentsofNetGainLossonResidentialMortgageLoansatFairValueDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofGeographicConcentrationofCreditRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialMortgageLoansHeldinSecuritizationTrustsNetDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedRealEstateVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofStatementofOperationsofVariableInterestEntitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "VIE, Primary Beneficiary",
        "label": "Variable Interest Entity, Primary Beneficiary [Member]",
        "documentation": "Variable Interest Entities (VIE) in which the entity has a controlling financial interest (as defined) and of which it is therefore the primary beneficiary. A controlling financial interest is determined based on both: (a) the entity's power to direct activities of the VIE that most significantly impact the VIE's economic performance and (b) the entity's obligation to absorb losses of the VIE that could potentially be significant to the VIE or the right to receive benefits from the VIE that could potentially be significant to the VIE. VIEs of which the entity is the primary beneficiary are included in the consolidated financial statements of the entity."
       }
      }
     },
     "auth_ref": [
      "r76",
      "r621",
      "r622",
      "r625",
      "r626"
     ]
    },
    "us-gaap_VariableRateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "VariableRateAxis",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofSubordinatedDebenturesDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable Rate [Axis]",
        "label": "Variable Rate [Axis]",
        "documentation": "Information by type of variable rate."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_VariableRateDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "VariableRateDomain",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofSubordinatedDebenturesDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "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": []
    },
    "us-gaap_VariationMarginPayableDerivative": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "VariationMarginPayableDerivative",
     "crdr": "credit",
     "calculation": {
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails": {
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Variation Margin",
        "label": "Variation Margin Payable, Derivative",
        "documentation": "Amount of payable for negative price movement on derivative."
       }
      }
     },
     "auth_ref": [
      "r847",
      "r872"
     ]
    },
    "us-gaap_VariationMarginReceivableDerivative": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "VariationMarginReceivableDerivative",
     "crdr": "debit",
     "calculation": {
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails": {
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesScheduleofReconciliationofGrossDerivativeAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variation Margin",
        "label": "Variation Margin Receivable, Derivative",
        "documentation": "Amount of receivable from positive price movement on derivative."
       }
      }
     },
     "auth_ref": [
      "r862",
      "r901"
     ]
    },
    "srt_WeightedAverageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "WeightedAverageMember",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsScheduleofMortgagesPayableinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofRedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "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": [
      "r647",
      "r710",
      "r960",
      "r961",
      "r1001",
      "r1212",
      "r1214",
      "r1217"
     ]
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "calculation": {
      "http://nymtrust.com/role/LossPerCommonShareDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossPerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted average shares outstanding-diluted (in shares)",
        "totalLabel": "Diluted weighted average common shares outstanding (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": [
      "r362",
      "r373"
     ]
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "calculation": {
      "http://nymtrust.com/role/LossPerCommonShareDetails": {
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossPerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted average shares outstanding-basic (in shares)",
        "verboseLabel": "Basic weighted average common shares outstanding (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": [
      "r360",
      "r373"
     ]
    }
   }
  }
 },
 "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": "10",
   "SubTopic": "20",
   "Topic": "205",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483475/205-20-45-10"
  },
  "r2": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-10A"
  },
  "r3": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "14",
   "SubTopic": "10",
   "Topic": "360",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482130/360-10-45-14"
  },
  "r4": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "15",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-15"
  },
  "r5": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1B",
   "Subparagraph": "(a)",
   "SubTopic": "20",
   "Topic": "205",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483475/205-20-45-1B"
  },
  "r6": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1D",
   "SubTopic": "20",
   "Topic": "205",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483475/205-20-45-1D"
  },
  "r7": {
   "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"
  },
  "r8": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "SubTopic": "10",
   "Topic": "810",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481231/810-10-45-20"
  },
  "r9": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "21D",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-21D"
  },
  "r10": {
   "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"
  },
  "r11": {
   "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"
  },
  "r12": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "SubTopic": "10",
   "Topic": "360",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482130/360-10-45-5"
  },
  "r13": {
   "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"
  },
  "r14": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "10",
   "Topic": "825",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-1"
  },
  "r15": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "20",
   "Topic": "205",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483499/205-20-50-1"
  },
  "r16": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(c)(2)",
   "SubTopic": "10",
   "Topic": "810",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-1A"
  },
  "r17": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(c)(3)",
   "SubTopic": "10",
   "Topic": "810",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-1A"
  },
  "r18": {
   "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"
  },
  "r19": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "SubTopic": "10",
   "Topic": "815",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-2"
  },
  "r20": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "815",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-2"
  },
  "r21": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "SubTopic": "10",
   "Topic": "360",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482099/360-10-50-3"
  },
  "r22": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "SubTopic": "20",
   "Topic": "210",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r23": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "SubTopic": "20",
   "Topic": "210",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r24": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(c)(2)",
   "SubTopic": "20",
   "Topic": "860",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481326/860-20-50-4D"
  },
  "r25": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "SubTopic": "20",
   "Topic": "210",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-10"
  },
  "r26": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "8",
   "SubTopic": "20",
   "Topic": "210",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-8"
  },
  "r27": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "9",
   "SubTopic": "20",
   "Topic": "210",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-9"
  },
  "r28": {
   "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"
  },
  "r29": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3A",
   "Subparagraph": "(3)",
   "SubTopic": "10",
   "Topic": "480",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480244/480-10-S99-3A"
  },
  "r30": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "205",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483499/205-20-50-3"
  },
  "r31": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "220",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-14"
  },
  "r32": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "220",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-14A"
  },
  "r33": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "220",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-5"
  },
  "r34": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-12"
  },
  "r35": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "12",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-12"
  },
  "r36": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "12",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-12"
  },
  "r37": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "13",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-13"
  },
  "r38": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "13",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-13"
  },
  "r39": {
   "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"
  },
  "r40": {
   "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"
  },
  "r41": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-8"
  },
  "r42": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-9"
  },
  "r43": {
   "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"
  },
  "r44": {
   "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"
  },
  "r45": {
   "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"
  },
  "r46": {
   "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"
  },
  "r47": {
   "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"
  },
  "r48": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "16",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-16"
  },
  "r49": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-18"
  },
  "r50": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-18"
  },
  "r51": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "20",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-20"
  },
  "r52": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-21"
  },
  "r53": {
   "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"
  },
  "r54": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "470",
   "SubTopic": "50",
   "Section": "40",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481303/470-50-40-2"
  },
  "r55": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "470",
   "SubTopic": "50",
   "Section": "40",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481303/470-50-40-4"
  },
  "r56": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "480",
   "SubTopic": "10",
   "Subparagraph": "(12)(c)",
   "Section": "S99",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480244/480-10-S99-3A"
  },
  "r57": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "480",
   "SubTopic": "10",
   "Subparagraph": "(16)(c)",
   "Paragraph": "3A",
   "Section": "S99",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480244/480-10-S99-3A"
  },
  "r58": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481142/505-10-45-2"
  },
  "r59": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-10"
  },
  "r60": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-11"
  },
  "r61": {
   "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"
  },
  "r62": {
   "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"
  },
  "r63": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-5"
  },
  "r64": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-5"
  },
  "r65": {
   "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"
  },
  "r66": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480008/505-10-S99-1"
  },
  "r67": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481549/505-30-45-1"
  },
  "r68": {
   "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"
  },
  "r69": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "718",
   "SubTopic": "20",
   "Section": "55",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481089/718-20-55-12"
  },
  "r70": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "718",
   "SubTopic": "20",
   "Section": "55",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481089/718-20-55-13"
  },
  "r71": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "805",
   "SubTopic": "20",
   "Section": "55",
   "Paragraph": "31",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479876/805-20-55-31"
  },
  "r72": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Paragraph": "2AA",
   "Subparagraph": "(a)",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-2AA"
  },
  "r73": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481231/810-10-45-15"
  },
  "r74": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "16",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481231/810-10-45-16"
  },
  "r75": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-1B"
  },
  "r76": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-3"
  },
  "r77": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-4"
  },
  "r78": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-4"
  },
  "r79": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-5A"
  },
  "r80": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "5A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-5A"
  },
  "r81": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-6"
  },
  "r82": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-9"
  },
  "r83": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "55",
   "Paragraph": "4I",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481175/810-10-55-4I"
  },
  "r84": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "55",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481175/810-10-55-4J"
  },
  "r85": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1"
  },
  "r86": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1A"
  },
  "r87": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1A"
  },
  "r88": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1B"
  },
  "r89": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4"
  },
  "r90": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4A"
  },
  "r91": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4A"
  },
  "r92": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r93": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r94": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4C"
  },
  "r95": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4C",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4C"
  },
  "r96": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4D"
  },
  "r97": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4K",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4K"
  },
  "r98": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-5"
  },
  "r99": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-8"
  },
  "r100": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-8"
  },
  "r101": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "55",
   "Paragraph": "182",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480401/815-10-55-182"
  },
  "r102": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "25",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480238/815-25-50-1"
  },
  "r103": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "825",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-11"
  },
  "r104": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "825",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-12"
  },
  "r105": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "825",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "20",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-20"
  },
  "r106": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "825",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-21"
  },
  "r107": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "825",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-30"
  },
  "r108": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "860",
   "SubTopic": "30",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481420/860-30-50-1A"
  },
  "r109": {
   "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"
  },
  "r110": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "205",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/205/tableOfContent"
  },
  "r111": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/205-20/tableOfContent"
  },
  "r112": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483475/205-20-45-11"
  },
  "r113": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483499/205-20-50-3A"
  },
  "r114": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483499/205-20-50-4A"
  },
  "r115": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483499/205-20-50-4B"
  },
  "r116": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483499/205-20-50-5A"
  },
  "r117": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483499/205-20-50-5B"
  },
  "r118": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5B",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483499/205-20-50-5B"
  },
  "r119": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483499/205-20-50-5C"
  },
  "r120": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5D",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483499/205-20-50-5D"
  },
  "r121": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "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"
  },
  "r122": {
   "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(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r123": {
   "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"
  },
  "r124": {
   "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"
  },
  "r125": {
   "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"
  },
  "r126": {
   "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"
  },
  "r127": {
   "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"
  },
  "r128": {
   "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"
  },
  "r129": {
   "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"
  },
  "r130": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(26)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r131": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(26)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r132": {
   "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"
  },
  "r133": {
   "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"
  },
  "r134": {
   "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"
  },
  "r135": {
   "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(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r136": {
   "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"
  },
  "r137": {
   "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"
  },
  "r138": {
   "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"
  },
  "r139": {
   "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"
  },
  "r140": {
   "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"
  },
  "r141": {
   "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(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r142": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-7"
  },
  "r143": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-11"
  },
  "r144": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(12))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r145": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(19))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r146": {
   "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"
  },
  "r147": {
   "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(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r148": {
   "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"
  },
  "r149": {
   "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"
  },
  "r150": {
   "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"
  },
  "r151": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r152": {
   "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"
  },
  "r153": {
   "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"
  },
  "r154": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-12"
  },
  "r155": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-13"
  },
  "r156": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "13",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-13"
  },
  "r157": {
   "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"
  },
  "r158": {
   "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"
  },
  "r159": {
   "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"
  },
  "r160": {
   "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"
  },
  "r161": {
   "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"
  },
  "r162": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "235",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/235/tableOfContent"
  },
  "r163": {
   "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"
  },
  "r164": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/360/tableOfContent"
  },
  "r165": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482130/360-10-45-9"
  },
  "r166": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482099/360-10-50-2"
  },
  "r167": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482099/360-10-50-3"
  },
  "r168": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482099/360-10-50-3"
  },
  "r169": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482099/360-10-50-3A"
  },
  "r170": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3A",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482099/360-10-50-3A"
  },
  "r171": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3A",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482099/360-10-50-3A"
  },
  "r172": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "440",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/440/tableOfContent"
  },
  "r173": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "470",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/470/tableOfContent"
  },
  "r174": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480244/480-10-S99-1"
  },
  "r175": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3A",
   "Subparagraph": "(14)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480244/480-10-S99-3A"
  },
  "r176": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3A",
   "Subparagraph": "(15)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480244/480-10-S99-3A"
  },
  "r177": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/505/tableOfContent"
  },
  "r178": {
   "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"
  },
  "r179": {
   "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"
  },
  "r180": {
   "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"
  },
  "r181": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SAB Topic 4.C)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480008/505-10-S99-4"
  },
  "r182": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "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"
  },
  "r183": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "810",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/810/tableOfContent"
  },
  "r184": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "19",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481231/810-10-45-19"
  },
  "r185": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "23",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481231/810-10-45-23"
  },
  "r186": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-1A"
  },
  "r187": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-1A"
  },
  "r188": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "815",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/815/tableOfContent"
  },
  "r189": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r190": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r191": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r192": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-21"
  },
  "r193": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "860",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/860/tableOfContent"
  },
  "r194": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481420/860-30-50-1A"
  },
  "r195": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(1)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r196": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(10)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r197": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r198": {
   "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"
  },
  "r199": {
   "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)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r200": {
   "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"
  },
  "r201": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(15)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r202": {
   "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"
  },
  "r203": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r204": {
   "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"
  },
  "r205": {
   "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"
  },
  "r206": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r207": {
   "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"
  },
  "r208": {
   "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(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r209": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r210": {
   "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(11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r211": {
   "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(12))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r212": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(13)(f))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r213": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(13)(h))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r214": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(13))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r215": {
   "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(14)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r216": {
   "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(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r217": {
   "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"
  },
  "r218": {
   "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(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r219": {
   "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(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r220": {
   "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(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r221": {
   "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(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r222": {
   "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(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r223": {
   "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(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r224": {
   "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(9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r225": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/942-320/tableOfContent"
  },
  "r226": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "470",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478878/942-470-45-1"
  },
  "r227": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "470",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477734/942-470-50-3"
  },
  "r228": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "970",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/970/tableOfContent"
  },
  "r229": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "972",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/972/tableOfContent"
  },
  "r230": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "974",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/974/tableOfContent"
  },
  "r231": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "976",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/976/tableOfContent"
  },
  "r232": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "978",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/978/tableOfContent"
  },
  "r233": {
   "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"
  },
  "r234": {
   "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"
  },
  "r235": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11B",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-11B"
  },
  "r236": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11B",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-11B"
  },
  "r237": {
   "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"
  },
  "r238": {
   "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"
  },
  "r239": {
   "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"
  },
  "r240": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-7A"
  },
  "r241": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-6"
  },
  "r242": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-6"
  },
  "r243": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-7"
  },
  "r244": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "SubTopic": "310",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477409/944-310-45-1"
  },
  "r245": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "SubTopic": "310",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477409/944-310-45-2"
  },
  "r246": {
   "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"
  },
  "r247": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "SubTopic": "360",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477875/944-360-45-3"
  },
  "r248": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "SubTopic": "360",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477875/944-360-45-4"
  },
  "r249": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "310",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477363/944-310-50-1"
  },
  "r250": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "360",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478586/944-360-50-1"
  },
  "r251": {
   "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"
  },
  "r252": {
   "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"
  },
  "r253": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Topic": "323",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/323/tableOfContent"
  },
  "r254": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "a",
   "Publisher": "SEC"
  },
  "r255": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1403",
   "Paragraph": "b",
   "Publisher": "SEC"
  },
  "r256": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "04",
   "Paragraph": "a",
   "Publisher": "SEC"
  },
  "r257": {
   "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"
  },
  "r258": {
   "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"
  },
  "r259": {
   "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"
  },
  "r260": {
   "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"
  },
  "r261": {
   "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"
  },
  "r262": {
   "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"
  },
  "r263": {
   "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"
  },
  "r264": {
   "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"
  },
  "r265": {
   "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"
  },
  "r266": {
   "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"
  },
  "r267": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column B",
   "Publisher": "SEC"
  },
  "r268": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column C",
   "Publisher": "SEC"
  },
  "r269": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column D",
   "Publisher": "SEC"
  },
  "r270": {
   "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"
  },
  "r271": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column E",
   "Publisher": "SEC"
  },
  "r272": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column F",
   "Publisher": "SEC"
  },
  "r273": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column G",
   "Publisher": "SEC"
  },
  "r274": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column H",
   "Publisher": "SEC"
  },
  "r275": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column I",
   "Publisher": "SEC"
  },
  "r276": {
   "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"
  },
  "r277": {
   "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"
  },
  "r278": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "29",
   "Paragraph": "Column F",
   "Publisher": "SEC"
  },
  "r279": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "29",
   "Paragraph": "Column G",
   "Footnote": "3",
   "Publisher": "SEC"
  },
  "r280": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "29",
   "Paragraph": "Column H",
   "Publisher": "SEC"
  },
  "r281": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "29",
   "Publisher": "SEC"
  },
  "r282": {
   "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"
  },
  "r283": {
   "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"
  },
  "r284": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 5",
   "Section": "Y",
   "Paragraph": "Question 2",
   "Publisher": "SEC"
  },
  "r285": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 5",
   "Section": "Y",
   "Paragraph": "Question 4",
   "Publisher": "SEC"
  },
  "r286": {
   "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"
  },
  "r287": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-6"
  },
  "r288": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5C",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483499/205-20-50-5C"
  },
  "r289": {
   "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"
  },
  "r290": {
   "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"
  },
  "r291": {
   "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(16))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r292": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r293": {
   "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"
  },
  "r294": {
   "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"
  },
  "r295": {
   "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"
  },
  "r296": {
   "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"
  },
  "r297": {
   "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"
  },
  "r298": {
   "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(30)(a)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r299": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r300": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r301": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-4"
  },
  "r302": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-10"
  },
  "r303": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-10A"
  },
  "r304": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-11"
  },
  "r305": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "17A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-17A"
  },
  "r306": {
   "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"
  },
  "r307": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-1A"
  },
  "r308": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1A",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-1A"
  },
  "r309": {
   "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"
  },
  "r310": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482790/220-10-45-1B"
  },
  "r311": {
   "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"
  },
  "r312": {
   "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"
  },
  "r313": {
   "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"
  },
  "r314": {
   "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(24))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r315": {
   "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"
  },
  "r316": {
   "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(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r317": {
   "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(9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r318": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SAB Topic 6.B)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-5"
  },
  "r319": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-11"
  },
  "r320": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-12"
  },
  "r321": {
   "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"
  },
  "r322": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-2"
  },
  "r323": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "21D",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-21D"
  },
  "r324": {
   "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"
  },
  "r325": {
   "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"
  },
  "r326": {
   "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"
  },
  "r327": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r328": {
   "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"
  },
  "r329": {
   "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"
  },
  "r330": {
   "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"
  },
  "r331": {
   "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(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r332": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(e)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r333": {
   "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"
  },
  "r334": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(h)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r335": {
   "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)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r336": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r337": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r338": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r339": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r340": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r341": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r342": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(m)(1)(iii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r343": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(m)(2)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r344": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-04(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-3"
  },
  "r345": {
   "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"
  },
  "r346": {
   "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"
  },
  "r347": {
   "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"
  },
  "r348": {
   "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"
  },
  "r349": {
   "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"
  },
  "r350": {
   "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"
  },
  "r351": {
   "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"
  },
  "r352": {
   "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"
  },
  "r353": {
   "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"
  },
  "r354": {
   "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"
  },
  "r355": {
   "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"
  },
  "r356": {
   "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"
  },
  "r357": {
   "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"
  },
  "r358": {
   "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"
  },
  "r359": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/260/tableOfContent"
  },
  "r360": {
   "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"
  },
  "r361": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-11"
  },
  "r362": {
   "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"
  },
  "r363": {
   "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"
  },
  "r364": {
   "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"
  },
  "r365": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "40",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-40"
  },
  "r366": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "40",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-40"
  },
  "r367": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "40",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-40"
  },
  "r368": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "40",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-40"
  },
  "r369": {
   "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"
  },
  "r370": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "60B",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-60B"
  },
  "r371": {
   "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"
  },
  "r372": {
   "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"
  },
  "r373": {
   "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"
  },
  "r374": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r375": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482662/260-10-50-2"
  },
  "r376": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482662/260-10-50-3"
  },
  "r377": {
   "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"
  },
  "r378": {
   "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"
  },
  "r379": {
   "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"
  },
  "r380": {
   "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"
  },
  "r381": {
   "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"
  },
  "r382": {
   "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"
  },
  "r383": {
   "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"
  },
  "r384": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-22"
  },
  "r385": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-22"
  },
  "r386": {
   "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"
  },
  "r387": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "25",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-25"
  },
  "r388": {
   "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"
  },
  "r389": {
   "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"
  },
  "r390": {
   "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"
  },
  "r391": {
   "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"
  },
  "r392": {
   "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"
  },
  "r393": {
   "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"
  },
  "r394": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481990/310-10-45-15"
  },
  "r395": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "35",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481962/310-10-50-35"
  },
  "r396": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/320/tableOfContent"
  },
  "r397": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481830/320-10-45-11"
  },
  "r398": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-10"
  },
  "r399": {
   "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"
  },
  "r400": {
   "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"
  },
  "r401": {
   "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"
  },
  "r402": {
   "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"
  },
  "r403": {
   "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"
  },
  "r404": {
   "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"
  },
  "r405": {
   "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"
  },
  "r406": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-2A"
  },
  "r407": {
   "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"
  },
  "r408": {
   "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"
  },
  "r409": {
   "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"
  },
  "r410": {
   "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"
  },
  "r411": {
   "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"
  },
  "r412": {
   "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"
  },
  "r413": {
   "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"
  },
  "r414": {
   "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"
  },
  "r415": {
   "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"
  },
  "r416": {
   "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"
  },
  "r417": {
   "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"
  },
  "r418": {
   "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"
  },
  "r419": {
   "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"
  },
  "r420": {
   "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"
  },
  "r421": {
   "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"
  },
  "r422": {
   "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"
  },
  "r423": {
   "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"
  },
  "r424": {
   "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"
  },
  "r425": {
   "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"
  },
  "r426": {
   "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"
  },
  "r427": {
   "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"
  },
  "r428": {
   "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"
  },
  "r429": {
   "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"
  },
  "r430": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r431": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-9"
  },
  "r432": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481664/323-10-45-1"
  },
  "r433": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481687/323-10-50-3"
  },
  "r434": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481687/323-10-50-3"
  },
  "r435": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481687/323-10-50-3"
  },
  "r436": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481687/323-10-50-3"
  },
  "r437": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481687/323-10-50-3"
  },
  "r438": {
   "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"
  },
  "r439": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481687/323-10-50-3"
  },
  "r440": {
   "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"
  },
  "r441": {
   "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"
  },
  "r442": {
   "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"
  },
  "r443": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479319/326-20-50-11"
  },
  "r444": {
   "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"
  },
  "r445": {
   "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"
  },
  "r446": {
   "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"
  },
  "r447": {
   "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"
  },
  "r448": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479130/326-30-45-1"
  },
  "r449": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479106/326-30-50-3A"
  },
  "r450": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479106/326-30-50-3B"
  },
  "r451": {
   "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"
  },
  "r452": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479106/326-30-50-4"
  },
  "r453": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479106/326-30-50-4"
  },
  "r454": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479106/326-30-50-5"
  },
  "r455": {
   "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"
  },
  "r456": {
   "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"
  },
  "r457": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480265/350-10-S45-1"
  },
  "r458": {
   "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"
  },
  "r459": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482686/350-30-45-2"
  },
  "r460": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r461": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r462": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r463": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r464": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r465": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-2"
  },
  "r466": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-2"
  },
  "r467": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-2"
  },
  "r468": {
   "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"
  },
  "r469": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482099/360-10-50-3"
  },
  "r470": {
   "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"
  },
  "r471": {
   "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"
  },
  "r472": {
   "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"
  },
  "r473": {
   "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"
  },
  "r474": {
   "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"
  },
  "r475": {
   "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"
  },
  "r476": {
   "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"
  },
  "r477": {
   "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"
  },
  "r478": {
   "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"
  },
  "r479": {
   "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"
  },
  "r480": {
   "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"
  },
  "r481": {
   "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"
  },
  "r482": {
   "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"
  },
  "r483": {
   "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"
  },
  "r484": {
   "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"
  },
  "r485": {
   "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"
  },
  "r486": {
   "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"
  },
  "r487": {
   "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"
  },
  "r488": {
   "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"
  },
  "r489": {
   "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"
  },
  "r490": {
   "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"
  },
  "r491": {
   "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"
  },
  "r492": {
   "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"
  },
  "r493": {
   "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"
  },
  "r494": {
   "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"
  },
  "r495": {
   "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"
  },
  "r496": {
   "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"
  },
  "r497": {
   "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"
  },
  "r498": {
   "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"
  },
  "r499": {
   "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"
  },
  "r500": {
   "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"
  },
  "r501": {
   "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"
  },
  "r502": {
   "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"
  },
  "r503": {
   "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"
  },
  "r504": {
   "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"
  },
  "r505": {
   "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"
  },
  "r506": {
   "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"
  },
  "r507": {
   "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"
  },
  "r508": {
   "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"
  },
  "r509": {
   "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"
  },
  "r510": {
   "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"
  },
  "r511": {
   "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"
  },
  "r512": {
   "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"
  },
  "r513": {
   "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"
  },
  "r514": {
   "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"
  },
  "r515": {
   "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"
  },
  "r516": {
   "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"
  },
  "r517": {
   "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"
  },
  "r518": {
   "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"
  },
  "r519": {
   "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"
  },
  "r520": {
   "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"
  },
  "r521": {
   "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"
  },
  "r522": {
   "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"
  },
  "r523": {
   "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"
  },
  "r524": {
   "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"
  },
  "r525": {
   "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"
  },
  "r526": {
   "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"
  },
  "r527": {
   "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"
  },
  "r528": {
   "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"
  },
  "r529": {
   "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"
  },
  "r530": {
   "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"
  },
  "r531": {
   "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"
  },
  "r532": {
   "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"
  },
  "r533": {
   "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"
  },
  "r534": {
   "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"
  },
  "r535": {
   "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"
  },
  "r536": {
   "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"
  },
  "r537": {
   "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"
  },
  "r538": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-4"
  },
  "r539": {
   "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"
  },
  "r540": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479837/606-10-45-1"
  },
  "r541": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479837/606-10-45-2"
  },
  "r542": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479806/606-10-50-8"
  },
  "r543": {
   "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"
  },
  "r544": {
   "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"
  },
  "r545": {
   "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"
  },
  "r546": {
   "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"
  },
  "r547": {
   "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"
  },
  "r548": {
   "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"
  },
  "r549": {
   "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"
  },
  "r550": {
   "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"
  },
  "r551": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/718/tableOfContent"
  },
  "r552": {
   "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"
  },
  "r553": {
   "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"
  },
  "r554": {
   "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"
  },
  "r555": {
   "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"
  },
  "r556": {
   "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"
  },
  "r557": {
   "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"
  },
  "r558": {
   "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"
  },
  "r559": {
   "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"
  },
  "r560": {
   "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"
  },
  "r561": {
   "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"
  },
  "r562": {
   "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"
  },
  "r563": {
   "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"
  },
  "r564": {
   "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"
  },
  "r565": {
   "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"
  },
  "r566": {
   "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"
  },
  "r567": {
   "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"
  },
  "r568": {
   "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"
  },
  "r569": {
   "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"
  },
  "r570": {
   "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"
  },
  "r571": {
   "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"
  },
  "r572": {
   "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"
  },
  "r573": {
   "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"
  },
  "r574": {
   "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"
  },
  "r575": {
   "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"
  },
  "r576": {
   "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"
  },
  "r577": {
   "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"
  },
  "r578": {
   "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"
  },
  "r579": {
   "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"
  },
  "r580": {
   "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"
  },
  "r581": {
   "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"
  },
  "r582": {
   "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"
  },
  "r583": {
   "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"
  },
  "r584": {
   "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"
  },
  "r585": {
   "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"
  },
  "r586": {
   "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"
  },
  "r587": {
   "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"
  },
  "r588": {
   "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"
  },
  "r589": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/740/tableOfContent"
  },
  "r590": {
   "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"
  },
  "r591": {
   "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"
  },
  "r592": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482685/740-10-50-12B"
  },
  "r593": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12C",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482685/740-10-50-12C"
  },
  "r594": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482685/740-10-50-14"
  },
  "r595": {
   "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"
  },
  "r596": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r597": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482685/740-10-50-2"
  },
  "r598": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482685/740-10-50-2"
  },
  "r599": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482685/740-10-50-2"
  },
  "r600": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482685/740-10-50-21"
  },
  "r601": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r602": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r603": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482685/740-10-50-3"
  },
  "r604": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482685/740-10-50-9"
  },
  "r605": {
   "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"
  },
  "r606": {
   "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"
  },
  "r607": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 6.I.5.Q1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479360/740-10-S99-1"
  },
  "r608": {
   "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"
  },
  "r609": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SAB Topic 11.C)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479360/740-10-S99-2"
  },
  "r610": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "270",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477891/740-270-50-1"
  },
  "r611": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482603/740-30-50-2"
  },
  "r612": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478758/740-323-25-1"
  },
  "r613": {
   "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"
  },
  "r614": {
   "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"
  },
  "r615": {
   "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"
  },
  "r616": {
   "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"
  },
  "r617": {
   "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"
  },
  "r618": {
   "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"
  },
  "r619": {
   "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"
  },
  "r620": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "19",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481231/810-10-45-19"
  },
  "r621": {
   "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"
  },
  "r622": {
   "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"
  },
  "r623": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-1A"
  },
  "r624": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-1A"
  },
  "r625": {
   "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"
  },
  "r626": {
   "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"
  },
  "r627": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4A"
  },
  "r628": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4E"
  },
  "r629": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4K",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4K"
  },
  "r630": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5C",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-5C"
  },
  "r631": {
   "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"
  },
  "r632": {
   "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"
  },
  "r633": {
   "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"
  },
  "r634": {
   "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"
  },
  "r635": {
   "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"
  },
  "r636": {
   "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"
  },
  "r637": {
   "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"
  },
  "r638": {
   "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"
  },
  "r639": {
   "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"
  },
  "r640": {
   "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"
  },
  "r641": {
   "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"
  },
  "r642": {
   "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"
  },
  "r643": {
   "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"
  },
  "r644": {
   "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"
  },
  "r645": {
   "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"
  },
  "r646": {
   "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"
  },
  "r647": {
   "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"
  },
  "r648": {
   "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"
  },
  "r649": {
   "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"
  },
  "r650": {
   "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"
  },
  "r651": {
   "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"
  },
  "r652": {
   "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"
  },
  "r653": {
   "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"
  },
  "r654": {
   "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"
  },
  "r655": {
   "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"
  },
  "r656": {
   "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"
  },
  "r657": {
   "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"
  },
  "r658": {
   "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"
  },
  "r659": {
   "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"
  },
  "r660": {
   "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"
  },
  "r661": {
   "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"
  },
  "r662": {
   "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"
  },
  "r663": {
   "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"
  },
  "r664": {
   "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"
  },
  "r665": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6B"
  },
  "r666": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6B",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6B"
  },
  "r667": {
   "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"
  },
  "r668": {
   "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"
  },
  "r669": {
   "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"
  },
  "r670": {
   "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"
  },
  "r671": {
   "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"
  },
  "r672": {
   "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"
  },
  "r673": {
   "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"
  },
  "r674": {
   "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"
  },
  "r675": {
   "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"
  },
  "r676": {
   "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"
  },
  "r677": {
   "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"
  },
  "r678": {
   "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"
  },
  "r679": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479832/842-10-65-8"
  },
  "r680": {
   "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"
  },
  "r681": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479041/842-20-45-1"
  },
  "r682": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479041/842-20-45-1"
  },
  "r683": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479041/842-20-45-2"
  },
  "r684": {
   "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"
  },
  "r685": {
   "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"
  },
  "r686": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "852",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481435/852-10-45-14"
  },
  "r687": {
   "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"
  },
  "r688": {
   "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"
  },
  "r689": {
   "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"
  },
  "r690": {
   "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"
  },
  "r691": {
   "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"
  },
  "r692": {
   "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"
  },
  "r693": {
   "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"
  },
  "r694": {
   "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"
  },
  "r695": {
   "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"
  },
  "r696": {
   "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"
  },
  "r697": {
   "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"
  },
  "r698": {
   "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"
  },
  "r699": {
   "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"
  },
  "r700": {
   "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"
  },
  "r701": {
   "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"
  },
  "r702": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481444/860-30-45-2"
  },
  "r703": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481420/860-30-50-10"
  },
  "r704": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(b)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481420/860-30-50-1A"
  },
  "r705": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(b)(1)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481420/860-30-50-1A"
  },
  "r706": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481420/860-30-50-1A"
  },
  "r707": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481420/860-30-50-7"
  },
  "r708": {
   "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"
  },
  "r709": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481420/860-30-50-7"
  },
  "r710": {
   "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"
  },
  "r711": {
   "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"
  },
  "r712": {
   "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"
  },
  "r713": {
   "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"
  },
  "r714": {
   "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"
  },
  "r715": {
   "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"
  },
  "r716": {
   "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"
  },
  "r717": {
   "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"
  },
  "r718": {
   "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"
  },
  "r719": {
   "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"
  },
  "r720": {
   "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"
  },
  "r721": {
   "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"
  },
  "r722": {
   "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"
  },
  "r723": {
   "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"
  },
  "r724": {
   "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"
  },
  "r725": {
   "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"
  },
  "r726": {
   "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"
  },
  "r727": {
   "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"
  },
  "r728": {
   "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"
  },
  "r729": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "926",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483154/926-20-50-5"
  },
  "r730": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "928",
   "SubTopic": "340",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478859/928-340-50-1"
  },
  "r731": {
   "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"
  },
  "r732": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-15"
  },
  "r733": {
   "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"
  },
  "r734": {
   "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"
  },
  "r735": {
   "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"
  },
  "r736": {
   "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"
  },
  "r737": {
   "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"
  },
  "r738": {
   "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"
  },
  "r739": {
   "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"
  },
  "r740": {
   "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"
  },
  "r741": {
   "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"
  },
  "r742": {
   "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"
  },
  "r743": {
   "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"
  },
  "r744": {
   "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"
  },
  "r745": {
   "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"
  },
  "r746": {
   "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"
  },
  "r747": {
   "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"
  },
  "r748": {
   "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"
  },
  "r749": {
   "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"
  },
  "r750": {
   "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"
  },
  "r751": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "33",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-33"
  },
  "r752": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "35A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-35A"
  },
  "r753": {
   "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"
  },
  "r754": {
   "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"
  },
  "r755": {
   "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"
  },
  "r756": {
   "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"
  },
  "r757": {
   "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"
  },
  "r758": {
   "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"
  },
  "r759": {
   "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"
  },
  "r760": {
   "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"
  },
  "r761": {
   "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"
  },
  "r762": {
   "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"
  },
  "r763": {
   "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"
  },
  "r764": {
   "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"
  },
  "r765": {
   "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"
  },
  "r766": {
   "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"
  },
  "r767": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r768": {
   "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(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r769": {
   "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(26))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r770": {
   "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"
  },
  "r771": {
   "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"
  },
  "r772": {
   "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"
  },
  "r773": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "470",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477734/942-470-50-3"
  },
  "r774": {
   "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)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r775": {
   "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"
  },
  "r776": {
   "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)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r777": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(1)(h))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r778": {
   "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)(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r779": {
   "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"
  },
  "r780": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r781": {
   "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"
  },
  "r782": {
   "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)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r783": {
   "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)(21))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r784": {
   "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"
  },
  "r785": {
   "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)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r786": {
   "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"
  },
  "r787": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(24))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r788": {
   "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"
  },
  "r789": {
   "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)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r790": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r791": {
   "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"
  },
  "r792": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(16))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r793": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r794": {
   "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"
  },
  "r795": {
   "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"
  },
  "r796": {
   "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"
  },
  "r797": {
   "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(20))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r798": {
   "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(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r799": {
   "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"
  },
  "r800": {
   "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(7)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r801": {
   "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"
  },
  "r802": {
   "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"
  },
  "r803": {
   "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"
  },
  "r804": {
   "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"
  },
  "r805": {
   "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"
  },
  "r806": {
   "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"
  },
  "r807": {
   "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"
  },
  "r808": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r809": {
   "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"
  },
  "r810": {
   "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"
  },
  "r811": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "825",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477351/944-825-50-1B"
  },
  "r812": {
   "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"
  },
  "r813": {
   "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"
  },
  "r814": {
   "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"
  },
  "r815": {
   "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"
  },
  "r816": {
   "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"
  },
  "r817": {
   "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"
  },
  "r818": {
   "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"
  },
  "r819": {
   "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"
  },
  "r820": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-12"
  },
  "r821": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-13"
  },
  "r822": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478009/946-205-45-3"
  },
  "r823": {
   "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"
  },
  "r824": {
   "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"
  },
  "r825": {
   "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"
  },
  "r826": {
   "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"
  },
  "r827": {
   "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"
  },
  "r828": {
   "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"
  },
  "r829": {
   "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"
  },
  "r830": {
   "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"
  },
  "r831": {
   "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"
  },
  "r832": {
   "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"
  },
  "r833": {
   "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"
  },
  "r834": {
   "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"
  },
  "r835": {
   "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"
  },
  "r836": {
   "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"
  },
  "r837": {
   "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"
  },
  "r838": {
   "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"
  },
  "r839": {
   "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"
  },
  "r840": {
   "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"
  },
  "r841": {
   "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"
  },
  "r842": {
   "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"
  },
  "r843": {
   "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"
  },
  "r844": {
   "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"
  },
  "r845": {
   "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"
  },
  "r846": {
   "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"
  },
  "r847": {
   "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"
  },
  "r848": {
   "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"
  },
  "r849": {
   "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"
  },
  "r850": {
   "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"
  },
  "r851": {
   "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"
  },
  "r852": {
   "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"
  },
  "r853": {
   "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"
  },
  "r854": {
   "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"
  },
  "r855": {
   "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"
  },
  "r856": {
   "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"
  },
  "r857": {
   "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"
  },
  "r858": {
   "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"
  },
  "r859": {
   "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"
  },
  "r860": {
   "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"
  },
  "r861": {
   "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"
  },
  "r862": {
   "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"
  },
  "r863": {
   "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"
  },
  "r864": {
   "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"
  },
  "r865": {
   "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"
  },
  "r866": {
   "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"
  },
  "r867": {
   "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"
  },
  "r868": {
   "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"
  },
  "r869": {
   "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"
  },
  "r870": {
   "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"
  },
  "r871": {
   "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"
  },
  "r872": {
   "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"
  },
  "r873": {
   "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"
  },
  "r874": {
   "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"
  },
  "r875": {
   "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"
  },
  "r876": {
   "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"
  },
  "r877": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-3"
  },
  "r878": {
   "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"
  },
  "r879": {
   "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"
  },
  "r880": {
   "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"
  },
  "r881": {
   "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"
  },
  "r882": {
   "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"
  },
  "r883": {
   "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"
  },
  "r884": {
   "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"
  },
  "r885": {
   "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"
  },
  "r886": {
   "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"
  },
  "r887": {
   "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"
  },
  "r888": {
   "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"
  },
  "r889": {
   "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"
  },
  "r890": {
   "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"
  },
  "r891": {
   "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"
  },
  "r892": {
   "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"
  },
  "r893": {
   "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"
  },
  "r894": {
   "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"
  },
  "r895": {
   "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"
  },
  "r896": {
   "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"
  },
  "r897": {
   "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"
  },
  "r898": {
   "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"
  },
  "r899": {
   "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"
  },
  "r900": {
   "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"
  },
  "r901": {
   "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"
  },
  "r902": {
   "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"
  },
  "r903": {
   "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"
  },
  "r904": {
   "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"
  },
  "r905": {
   "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"
  },
  "r906": {
   "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"
  },
  "r907": {
   "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"
  },
  "r908": {
   "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"
  },
  "r909": {
   "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"
  },
  "r910": {
   "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"
  },
  "r911": {
   "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"
  },
  "r912": {
   "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"
  },
  "r913": {
   "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"
  },
  "r914": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column A)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5"
  },
  "r915": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column G)(Footnote 8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5"
  },
  "r916": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column G))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5"
  },
  "r917": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5A",
   "Subparagraph": "(SX 210.12-13A(Column A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5A"
  },
  "r918": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5A",
   "Subparagraph": "(SX 210.12-13A(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5A"
  },
  "r919": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5A",
   "Subparagraph": "(SX 210.12-13A(Column F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5A"
  },
  "r920": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column E)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5B"
  },
  "r921": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5B"
  },
  "r922": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5C"
  },
  "r923": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column H)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5C"
  },
  "r924": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column H))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5C"
  },
  "r925": {
   "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"
  },
  "r926": {
   "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"
  },
  "r927": {
   "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"
  },
  "r928": {
   "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"
  },
  "r929": {
   "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"
  },
  "r930": {
   "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"
  },
  "r931": {
   "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"
  },
  "r932": {
   "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"
  },
  "r933": {
   "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"
  },
  "r934": {
   "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"
  },
  "r935": {
   "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"
  },
  "r936": {
   "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"
  },
  "r937": {
   "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"
  },
  "r938": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478448/946-505-50-3"
  },
  "r939": {
   "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"
  },
  "r940": {
   "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"
  },
  "r941": {
   "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"
  },
  "r942": {
   "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 F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479628/948-310-S99-1"
  },
  "r943": {
   "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 G)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479628/948-310-S99-1"
  },
  "r944": {
   "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 G))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479628/948-310-S99-1"
  },
  "r945": {
   "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 H))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479628/948-310-S99-1"
  },
  "r946": {
   "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)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479628/948-310-S99-1"
  },
  "r947": {
   "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"
  },
  "r948": {
   "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"
  },
  "r949": {
   "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"
  },
  "r950": {
   "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"
  },
  "r951": {
   "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"
  },
  "r952": {
   "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"
  },
  "r953": {
   "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"
  },
  "r954": {
   "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"
  },
  "r955": {
   "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"
  },
  "r956": {
   "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"
  },
  "r957": {
   "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"
  },
  "r958": {
   "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"
  },
  "r959": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "974",
   "SubTopic": "720",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477728/974-720-50-1"
  },
  "r960": {
   "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"
  },
  "r961": {
   "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"
  },
  "r962": {
   "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"
  },
  "r963": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(a)(1)",
   "SubTopic": "10",
   "Topic": "815",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4D"
  },
  "r964": {
   "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"
  },
  "r965": {
   "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"
  },
  "r966": {
   "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"
  },
  "r967": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "20",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-20"
  },
  "r968": {
   "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"
  },
  "r969": {
   "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"
  },
  "r970": {
   "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"
  },
  "r971": {
   "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"
  },
  "r972": {
   "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"
  },
  "r973": {
   "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"
  },
  "r974": {
   "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"
  },
  "r975": {
   "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"
  },
  "r976": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "79",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479294/326-20-55-79"
  },
  "r977": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "80",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479294/326-20-55-80"
  },
  "r978": {
   "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"
  },
  "r979": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "40",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482640/350-30-55-40"
  },
  "r980": {
   "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"
  },
  "r981": {
   "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"
  },
  "r982": {
   "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"
  },
  "r983": {
   "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"
  },
  "r984": {
   "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"
  },
  "r985": {
   "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"
  },
  "r986": {
   "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"
  },
  "r987": {
   "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"
  },
  "r988": {
   "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"
  },
  "r989": {
   "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"
  },
  "r990": {
   "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"
  },
  "r991": {
   "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"
  },
  "r992": {
   "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"
  },
  "r993": {
   "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"
  },
  "r994": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481175/810-10-55-4J"
  },
  "r995": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481175/810-10-55-4K"
  },
  "r996": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r997": {
   "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"
  },
  "r998": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "100",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-100"
  },
  "r999": {
   "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"
  },
  "r1000": {
   "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"
  },
  "r1001": {
   "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"
  },
  "r1002": {
   "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"
  },
  "r1003": {
   "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"
  },
  "r1004": {
   "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"
  },
  "r1005": {
   "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"
  },
  "r1006": {
   "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"
  },
  "r1007": {
   "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"
  },
  "r1008": {
   "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"
  },
  "r1009": {
   "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"
  },
  "r1010": {
   "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"
  },
  "r1011": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-12"
  },
  "r1012": {
   "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"
  },
  "r1013": {
   "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"
  },
  "r1014": {
   "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"
  },
  "r1015": {
   "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"
  },
  "r1016": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "34",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477215/932-235-50-34"
  },
  "r1017": {
   "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"
  },
  "r1018": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477916/932-235-55-3"
  },
  "r1019": {
   "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"
  },
  "r1020": {
   "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"
  },
  "r1021": {
   "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"
  },
  "r1022": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477916/932-235-55-7"
  },
  "r1023": {
   "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"
  },
  "r1024": {
   "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"
  },
  "r1025": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480078/944-80-55-14"
  },
  "r1026": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480078/944-80-55-9"
  },
  "r1027": {
   "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"
  },
  "r1028": {
   "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"
  },
  "r1029": {
   "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"
  },
  "r1030": {
   "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"
  },
  "r1031": {
   "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"
  },
  "r1032": {
   "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"
  },
  "r1033": {
   "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"
  },
  "r1034": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column A)(Footnote 1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5C"
  },
  "r1035": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column B)(Footnote 1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5C"
  },
  "r1036": {
   "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"
  },
  "r1037": {
   "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"
  },
  "r1038": {
   "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"
  },
  "r1039": {
   "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"
  },
  "r1040": {
   "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"
  },
  "r1041": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b"
  },
  "r1042": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r1043": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r1044": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-Q",
   "Number": "240",
   "Section": "308",
   "Subsection": "a"
  },
  "r1045": {
   "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"
  },
  "r1046": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "405"
  },
  "r1047": {
   "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"
  },
  "r1048": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478156/740-323-50-2"
  },
  "r1049": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478156/740-323-50-2"
  },
  "r1050": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478156/740-323-50-2"
  },
  "r1051": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "SubTopic": "825",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477351/944-825-50-1B"
  },
  "r1052": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4CC",
   "SubTopic": "10",
   "Topic": "815",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4CC"
  },
  "r1053": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "a",
   "Publisher": "SEC"
  },
  "r1054": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "b",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r1055": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "b",
   "Subparagraph": "(2)",
   "Publisher": "SEC"
  },
  "r1056": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "b",
   "Subparagraph": "(3)",
   "Publisher": "SEC"
  },
  "r1057": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "c",
   "Subparagraph": "(2)(i)",
   "Publisher": "SEC"
  },
  "r1058": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "c",
   "Subparagraph": "(2)(ii)",
   "Publisher": "SEC"
  },
  "r1059": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "c",
   "Subparagraph": "(2)(iii)",
   "Publisher": "SEC"
  },
  "r1060": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column A",
   "Footnote": "2",
   "Publisher": "SEC"
  },
  "r1061": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "29",
   "Paragraph": "Column A",
   "Footnote": "4",
   "Publisher": "SEC"
  },
  "r1062": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "a",
   "Subparagraph": "(4)(i)",
   "Publisher": "SEC"
  },
  "r1063": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "a",
   "Subparagraph": "(4)(iv)",
   "Publisher": "SEC"
  },
  "r1064": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "02",
   "Paragraph": "a",
   "Subparagraph": "(4)(iv)",
   "Publisher": "SEC"
  },
  "r1065": {
   "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"
  },
  "r1066": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "205",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483504/205-10-50-1"
  },
  "r1067": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1068": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/210/tableOfContent"
  },
  "r1069": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r1070": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(12))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r1071": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(13))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r1072": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(27)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r1073": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(28))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r1074": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(3)(a)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r1075": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482765/220-10-50-4"
  },
  "r1076": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482765/220-10-50-5"
  },
  "r1077": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482765/220-10-50-6"
  },
  "r1078": {
   "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"
  },
  "r1079": {
   "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"
  },
  "r1080": {
   "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"
  },
  "r1081": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-12"
  },
  "r1082": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-12"
  },
  "r1083": {
   "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"
  },
  "r1084": {
   "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"
  },
  "r1085": {
   "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"
  },
  "r1086": {
   "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"
  },
  "r1087": {
   "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"
  },
  "r1088": {
   "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"
  },
  "r1089": {
   "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"
  },
  "r1090": {
   "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"
  },
  "r1091": {
   "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"
  },
  "r1092": {
   "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"
  },
  "r1093": {
   "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"
  },
  "r1094": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482662/260-10-50-1"
  },
  "r1095": {
   "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"
  },
  "r1096": {
   "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"
  },
  "r1097": {
   "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"
  },
  "r1098": {
   "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"
  },
  "r1099": {
   "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"
  },
  "r1100": {
   "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"
  },
  "r1101": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481830/320-10-45-1"
  },
  "r1102": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481830/320-10-45-11"
  },
  "r1103": {
   "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"
  },
  "r1104": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1105": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1106": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1107": {
   "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"
  },
  "r1108": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1109": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1110": {
   "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"
  },
  "r1111": {
   "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"
  },
  "r1112": {
   "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"
  },
  "r1113": {
   "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"
  },
  "r1114": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481687/323-10-50-3"
  },
  "r1115": {
   "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"
  },
  "r1116": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1117": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479130/326-30-45-1"
  },
  "r1118": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1119": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r1120": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r1121": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r1122": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r1123": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-2"
  },
  "r1124": {
   "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"
  },
  "r1125": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-2"
  },
  "r1126": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-2"
  },
  "r1127": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482130/360-10-45-5"
  },
  "r1128": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482099/360-10-50-2"
  },
  "r1129": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482099/360-10-50-3"
  },
  "r1130": {
   "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"
  },
  "r1131": {
   "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"
  },
  "r1132": {
   "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"
  },
  "r1133": {
   "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"
  },
  "r1134": {
   "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"
  },
  "r1135": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/450/tableOfContent"
  },
  "r1136": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480097/470-10-S99-1A"
  },
  "r1137": {
   "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"
  },
  "r1138": {
   "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"
  },
  "r1139": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(iv))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480097/470-10-S99-1A"
  },
  "r1140": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(iv))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480097/470-10-S99-1B"
  },
  "r1141": {
   "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"
  },
  "r1142": {
   "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"
  },
  "r1143": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1E",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1E"
  },
  "r1144": {
   "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"
  },
  "r1145": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1146": {
   "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"
  },
  "r1147": {
   "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"
  },
  "r1148": {
   "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"
  },
  "r1149": {
   "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"
  },
  "r1150": {
   "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"
  },
  "r1151": {
   "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"
  },
  "r1152": {
   "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"
  },
  "r1153": {
   "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"
  },
  "r1154": {
   "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"
  },
  "r1155": {
   "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"
  },
  "r1156": {
   "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"
  },
  "r1157": {
   "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"
  },
  "r1158": {
   "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"
  },
  "r1159": {
   "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"
  },
  "r1160": {
   "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"
  },
  "r1161": {
   "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"
  },
  "r1162": {
   "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"
  },
  "r1163": {
   "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"
  },
  "r1164": {
   "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"
  },
  "r1165": {
   "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"
  },
  "r1166": {
   "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"
  },
  "r1167": {
   "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"
  },
  "r1168": {
   "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"
  },
  "r1169": {
   "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"
  },
  "r1170": {
   "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"
  },
  "r1171": {
   "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"
  },
  "r1172": {
   "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"
  },
  "r1173": {
   "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"
  },
  "r1174": {
   "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"
  },
  "r1175": {
   "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"
  },
  "r1176": {
   "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"
  },
  "r1177": {
   "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"
  },
  "r1178": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478156/740-323-50-1A"
  },
  "r1179": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478156/740-323-50-1A"
  },
  "r1180": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478156/740-323-50-1A"
  },
  "r1181": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478156/740-323-50-1A"
  },
  "r1182": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-5A"
  },
  "r1183": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1A"
  },
  "r1184": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1B"
  },
  "r1185": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4D"
  },
  "r1186": {
   "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"
  },
  "r1187": {
   "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"
  },
  "r1188": {
   "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"
  },
  "r1189": {
   "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"
  },
  "r1190": {
   "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"
  },
  "r1191": {
   "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"
  },
  "r1192": {
   "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"
  },
  "r1193": {
   "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"
  },
  "r1194": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1195": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1196": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1197": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1198": {
   "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"
  },
  "r1199": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1200": {
   "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"
  },
  "r1201": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1202": {
   "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"
  },
  "r1203": {
   "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"
  },
  "r1204": {
   "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"
  },
  "r1205": {
   "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"
  },
  "r1206": {
   "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"
  },
  "r1207": {
   "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"
  },
  "r1208": {
   "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"
  },
  "r1209": {
   "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"
  },
  "r1210": {
   "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"
  },
  "r1211": {
   "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"
  },
  "r1212": {
   "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"
  },
  "r1213": {
   "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"
  },
  "r1214": {
   "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"
  },
  "r1215": {
   "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"
  },
  "r1216": {
   "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"
  },
  "r1217": {
   "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"
  },
  "r1218": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1219": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481420/860-30-50-7"
  },
  "r1220": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "940",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/940-320/tableOfContent"
  },
  "r1221": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "940",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479035/940-320-45-2"
  },
  "r1222": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(14)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r1223": {
   "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)(1)(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r1224": {
   "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)(1)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r1225": {
   "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"
  },
  "r1226": {
   "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"
  },
  "r1227": {
   "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)(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r1228": {
   "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"
  },
  "r1229": {
   "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"
  },
  "r1230": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477363/944-310-50-3"
  },
  "r1231": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477363/944-310-50-3"
  },
  "r1232": {
   "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"
  },
  "r1233": {
   "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"
  },
  "r1234": {
   "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"
  },
  "r1235": {
   "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"
  },
  "r1236": {
   "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"
  },
  "r1237": {
   "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"
  },
  "r1238": {
   "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"
  },
  "r1239": {
   "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"
  },
  "r1240": {
   "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"
  },
  "r1241": {
   "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"
  },
  "r1242": {
   "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"
  },
  "r1243": {
   "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"
  },
  "r1244": {
   "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"
  },
  "r1245": {
   "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"
  },
  "r1246": {
   "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"
  },
  "r1247": {
   "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"
  },
  "r1248": {
   "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"
  },
  "r1249": {
   "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"
  },
  "r1250": {
   "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"
  },
  "r1251": {
   "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"
  },
  "r1252": {
   "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"
  },
  "r1253": {
   "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"
  },
  "r1254": {
   "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"
  },
  "r1255": {
   "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"
  },
  "r1256": {
   "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"
  },
  "r1257": {
   "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"
  },
  "r1258": {
   "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"
  },
  "r1259": {
   "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"
  },
  "r1260": {
   "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"
  },
  "r1261": {
   "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"
  },
  "r1262": {
   "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"
  },
  "r1263": {
   "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(3)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r1264": {
   "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"
  },
  "r1265": {
   "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(7)(a)(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r1266": {
   "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"
  },
  "r1267": {
   "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"
  },
  "r1268": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477802/946-310-45-1"
  },
  "r1269": {
   "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 E)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r1270": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "39",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477346/946-830-45-39"
  },
  "r1271": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1272": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  }
 }
}
