{
 "version": "2.2",
 "instance": {
  "frst-20230630x10qa.htm": {
   "nsprefix": "frst",
   "nsuri": "http://www.primisbank.com/20230630",
   "dts": {
    "schema": {
     "local": [
      "frst-20230630.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/arcrole/esma-arcrole-2018-11-21.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/2023/elts/srt-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-roles-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-types-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-roles-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-types-2023.xsd",
      "https://xbrl.sec.gov/country/2023/country-2023.xsd",
      "https://xbrl.sec.gov/dei/2023/dei-2023.xsd",
      "https://xbrl.sec.gov/ecd/2023/ecd-2023.xsd",
      "https://xbrl.sec.gov/ecd/2023/ecd-sub-2023.xsd",
      "https://xbrl.sec.gov/stpr/2023/stpr-2023.xsd"
     ]
    },
    "calculationLink": {
     "local": [
      "frst-20230630_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "frst-20230630_def.xml"
     ]
    },
    "labelLink": {
     "local": [
      "frst-20230630_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "frst-20230630_pre.xml"
     ]
    },
    "inline": {
     "local": [
      "frst-20230630x10qa.htm"
     ]
    }
   },
   "keyStandard": 339,
   "keyCustom": 72,
   "axisStandard": 30,
   "axisCustom": 1,
   "memberStandard": 62,
   "memberCustom": 29,
   "hidden": {
    "total": 32,
    "http://fasb.org/us-gaap/2023": 21,
    "http://xbrl.sec.gov/ecd/2023": 4,
    "http://xbrl.sec.gov/dei/2023": 7
   },
   "contextCount": 735,
   "entityCount": 1,
   "segmentCount": 93,
   "elementCount": 740,
   "unitCount": 8,
   "baseTaxonomies": {
    "http://fasb.org/us-gaap/2023": 2444,
    "http://xbrl.sec.gov/dei/2023": 30,
    "http://xbrl.sec.gov/ecd/2023": 4
   },
   "report": {
    "R1": {
     "role": "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation",
     "longName": "995200090 - Document - Document and Entity Information",
     "shortName": "Document and Entity Information",
     "isDefault": "true",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R2": {
     "role": "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets",
     "longName": "995200100 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS",
     "shortName": "CONDENSED CONSOLIDATED BALANCE SHEETS",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "2",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:CashAndDueFromBanks",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:CashAndDueFromBanks",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R3": {
     "role": "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheetsParentheticals",
     "longName": "995200105 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS (Parentheticals)",
     "shortName": "CONDENSED CONSOLIDATED BALANCE SHEETS (Parentheticals)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "3",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossCurrent",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossCurrent",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R4": {
     "role": "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss",
     "longName": "995200200 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF INCOME (LOSS) AND COMPREHENSIVE INCOME (LOSS)",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF INCOME (LOSS) AND COMPREHENSIVE INCOME (LOSS)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "4",
     "firstAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_BQJxHVjnskSL1djKMc9Kmw",
      "name": "us-gaap:InterestAndFeeIncomeLoansAndLeases",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_BQJxHVjnskSL1djKMc9Kmw",
      "name": "frst:InterestAndDividendsOnTaxableSecurities",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R5": {
     "role": "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated",
     "longName": "995200300 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Revised and Restated)",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Revised and Restated)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "5",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2021_us-gaap_StatementEquityComponentsAxis_us-gaap_CommonStockMember_vvXuQ7XJo02ju7LWmWQW-A",
      "name": "us-gaap:StockholdersEquity",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2021_us-gaap_StatementEquityComponentsAxis_us-gaap_CommonStockMember_vvXuQ7XJo02ju7LWmWQW-A",
      "name": "us-gaap:StockholdersEquity",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R6": {
     "role": "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementOfChangesInStockholdersEquityRevisedAndRestatedParentheticals",
     "longName": "995200305 - Statement - CONDENSED CONSOLIDATED STATEMENT OF CHANGES IN STOCKHOLDERS' EQUITY (Revised and Restated) (Parentheticals)",
     "shortName": "CONDENSED CONSOLIDATED STATEMENT OF CHANGES IN STOCKHOLDERS' EQUITY (Revised and Restated) (Parentheticals)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "6",
     "firstAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_BQJxHVjnskSL1djKMc9Kmw",
      "name": "us-gaap:OtherComprehensiveIncomeLossTaxPortionAttributableToParent1",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_BQJxHVjnskSL1djKMc9Kmw",
      "name": "us-gaap:CommonStockDividendsPerShareCashPaid",
      "unitRef": "Unit_Divide_USD_shares_jrGmP6c16U2Wi-I7jTOtqw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R7": {
     "role": "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows",
     "longName": "995200400 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "7",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:NetIncomeLoss",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:DepreciationNonproduction",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R8": {
     "role": "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestated",
     "longName": "995210101 - Disclosure - ACCOUNTING POLICIES (Revised and Restated)",
     "shortName": "ACCOUNTING POLICIES (Revised and Restated)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "8",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:OrganizationConsolidationBasisOfPresentationBusinessDescriptionAndAccountingPoliciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:OrganizationConsolidationBasisOfPresentationBusinessDescriptionAndAccountingPoliciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R9": {
     "role": "http://www.primisbank.com/role/DisclosureInvestmentSecurities",
     "longName": "995210201 - Disclosure - INVESTMENT SECURITIES",
     "shortName": "INVESTMENT SECURITIES",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "9",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R10": {
     "role": "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestated",
     "longName": "995210301 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated)",
     "shortName": "LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "10",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R11": {
     "role": "http://www.primisbank.com/role/DisclosureDerivativesRestated",
     "longName": "995210401 - Disclosure - DERIVATIVES (Restated)",
     "shortName": "DERIVATIVES (Restated)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "11",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:DerivativesAndFairValueTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:DerivativesAndFairValueTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R12": {
     "role": "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestated",
     "longName": "995210501 - Disclosure - FAIR VALUE (Revised and Restated)",
     "shortName": "FAIR VALUE (Revised and Restated)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "12",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R13": {
     "role": "http://www.primisbank.com/role/DisclosureLeases",
     "longName": "995210601 - Disclosure - LEASES",
     "shortName": "LEASES",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "13",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R14": {
     "role": "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsRestated",
     "longName": "995210701 - Disclosure - DEBT AND OTHER BORROWINGS (Restated)",
     "shortName": "DEBT AND OTHER BORROWINGS (Restated)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "14",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R15": {
     "role": "http://www.primisbank.com/role/DisclosureStockBasedCompensation",
     "longName": "995210801 - Disclosure - STOCK- BASED COMPENSATION",
     "shortName": "STOCK- BASED COMPENSATION",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "15",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R16": {
     "role": "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestated",
     "longName": "995210901 - Disclosure - COMMITMENTS AND CONTINGENCIES (Restated)",
     "shortName": "COMMITMENTS AND CONTINGENCIES (Restated)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "16",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R17": {
     "role": "http://www.primisbank.com/role/DisclosureEarningsPerShareRestated",
     "longName": "995211001 - Disclosure - EARNINGS PER SHARE (Restated)",
     "shortName": "EARNINGS PER SHARE (Restated)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "17",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R18": {
     "role": "http://www.primisbank.com/role/DisclosureSegmentInformationRestated",
     "longName": "995211101 - Disclosure - SEGMENT INFORMATION (Restated)",
     "shortName": "SEGMENT INFORMATION (Restated)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "18",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R19": {
     "role": "http://xbrl.sec.gov/ecd/role/PvpDisclosure",
     "longName": "995410 - Disclosure - Pay vs Performance Disclosure",
     "shortName": "Pay vs Performance Disclosure",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "19",
     "firstAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_BQJxHVjnskSL1djKMc9Kmw",
      "name": "us-gaap:NetIncomeLoss",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R20": {
     "role": "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements",
     "longName": "995445 - Disclosure - Insider Trading Arrangements",
     "shortName": "Insider Trading Arrangements",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "20",
     "firstAnchor": null,
     "uniqueAnchor": null
    },
    "R21": {
     "role": "http://www.primisbank.com/role/DisclosureAccountingPoliciesPolicies",
     "longName": "99920102 - Disclosure - ACCOUNTING POLICIES (Policies)",
     "shortName": "ACCOUNTING POLICIES (Policies)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "policies",
     "menuCat": "Policies",
     "order": "21",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:ConsolidationPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:OrganizationConsolidationBasisOfPresentationBusinessDescriptionAndAccountingPoliciesTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:ConsolidationPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:OrganizationConsolidationBasisOfPresentationBusinessDescriptionAndAccountingPoliciesTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R22": {
     "role": "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedTables",
     "longName": "99930103 - Disclosure - ACCOUNTING POLICIES (Revised and Restated) (Tables)",
     "shortName": "ACCOUNTING POLICIES (Revised and Restated) (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "22",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:ScheduleOfDerivativeAssetsAtFairValueTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:DerivativesPolicyTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:ScheduleOfDerivativeAssetsAtFairValueTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:DerivativesPolicyTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R23": {
     "role": "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesTables",
     "longName": "99930203 - Disclosure - INVESTMENT SECURITIES (Tables)",
     "shortName": "INVESTMENT SECURITIES (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "23",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R24": {
     "role": "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedTables",
     "longName": "99930303 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Tables)",
     "shortName": "LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "24",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R25": {
     "role": "http://www.primisbank.com/role/DisclosureDerivativesRestatedTables",
     "longName": "99930403 - Disclosure - DERIVATIVES (Restated) (Tables)",
     "shortName": "DERIVATIVES (Restated) (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "25",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R26": {
     "role": "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedTables",
     "longName": "99930503 - Disclosure - FAIR VALUE (Revised and Restated) (Tables)",
     "shortName": "FAIR VALUE (Revised and Restated) (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "26",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:FairValueAssetsMeasuredOnRecurringBasisTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:FairValueAssetsMeasuredOnRecurringBasisTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R27": {
     "role": "http://www.primisbank.com/role/DisclosureLeasesTables",
     "longName": "99930603 - Disclosure - LEASES (Tables)",
     "shortName": "LEASES (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "27",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "frst:ScheduleOfOperatingLeaseOtherInformationTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "frst:ScheduleOfOperatingLeaseOtherInformationTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R28": {
     "role": "http://www.primisbank.com/role/DisclosureStockBasedCompensationTables",
     "longName": "99930803 - Disclosure - STOCK- BASED COMPENSATION (Tables)",
     "shortName": "STOCK- BASED COMPENSATION (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "28",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R29": {
     "role": "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedTables",
     "longName": "99930903 - Disclosure - COMMITMENTS AND CONTINGENCIES (Restated) (Tables)",
     "shortName": "COMMITMENTS AND CONTINGENCIES (Restated) (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "29",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "frst:OffBalanceSheetCreditLossTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "frst:OffBalanceSheetCreditLossTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R30": {
     "role": "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedTables",
     "longName": "99931003 - Disclosure - EARNINGS PER SHARE (Restated) (Tables)",
     "shortName": "EARNINGS PER SHARE (Restated) (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "30",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R31": {
     "role": "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedTables",
     "longName": "99931103 - Disclosure - SEGMENT INFORMATION (Restated) (Tables)",
     "shortName": "SEGMENT INFORMATION (Restated) (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "31",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R32": {
     "role": "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
     "longName": "99940101 - Disclosure - ACCOUNTING POLICIES (Revised and Restated) (Narrative) (Details)",
     "shortName": "ACCOUNTING POLICIES (Revised and Restated) (Narrative) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "32",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "frst:NumberOfBranches",
      "unitRef": "Unit_Standard_building_ODRqjMAai0aIpOZExFzpBA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "p",
       "us-gaap:OrganizationConsolidationBasisOfPresentationBusinessDescriptionAndAccountingPoliciesTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "frst:NumberOfBranches",
      "unitRef": "Unit_Standard_building_ODRqjMAai0aIpOZExFzpBA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "p",
       "us-gaap:OrganizationConsolidationBasisOfPresentationBusinessDescriptionAndAccountingPoliciesTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R33": {
     "role": "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfHedgedAssetsAndCumulativeFairValueAdjustmentsDetails",
     "longName": "99940102 - Disclosure - ACCOUNTING POLICIES (Revised and Restated) (Schedule of hedged assets and cumulative fair value adjustments) (Details)",
     "shortName": "ACCOUNTING POLICIES (Revised and Restated) (Schedule of hedged assets and cumulative fair value adjustments) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "33",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:PrepayableFinancialAssetClosedPortfolioLastOfLayerAmortizedCost",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:PrepayableFinancialAssetClosedPortfolioLastOfLayerAmortizedCost",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R34": {
     "role": "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfRevisionsDetails",
     "longName": "99940103 - Disclosure - ACCOUNTING POLICIES (Revised and Restated) (Schedule of revisions) (Details)",
     "shortName": "ACCOUNTING POLICIES (Revised and Restated) (Schedule of revisions) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "34",
     "firstAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_BQJxHVjnskSL1djKMc9Kmw",
      "name": "us-gaap:InterestIncomeExpenseNet",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_srt_RestatementAxis_srt_RestatementAdjustmentMember_BOIvPjQjU0-Wnrtl1T3WbA",
      "name": "us-gaap:InterestIncomeExpenseNet",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentsTextBlock",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R35": {
     "role": "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
     "longName": "99940104 - Disclosure - ACCOUNTING POLICIES (Revised and Restated) (Restatement of Previously Issued Condensed Consolidated Balance Sheet) (Details)",
     "shortName": "ACCOUNTING POLICIES (Revised and Restated) (Restatement of Previously Issued Condensed Consolidated Balance Sheet) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "35",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "frst:FinancingReceivableExcludingAccruedInterestAndSecuredCollateralizedBorrowingsBeforeAllowanceForCreditLoss",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_srt_RestatementAxis_srt_ScenarioPreviouslyReportedMember_-nYG2jqxfUOJ6u3fcy1YEw",
      "name": "frst:FinancingReceivableExcludingAccruedInterestAndSecuredCollateralizedBorrowingsBeforeAllowanceForCreditLoss",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R36": {
     "role": "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
     "longName": "99940105 - Disclosure - ACCOUNTING POLICIES (Revised and Restated) (Restatement of Previously Issued Condensed Consolidated Statement of Income and Comprehensive Income (Loss)) (Details)",
     "shortName": "ACCOUNTING POLICIES (Revised and Restated) (Restatement of Previously Issued Condensed Consolidated Statement of Income and Comprehensive Income (Loss)) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "36",
     "firstAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_BQJxHVjnskSL1djKMc9Kmw",
      "name": "us-gaap:InterestAndFeeIncomeLoansAndLeases",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_srt_RestatementAxis_srt_ScenarioPreviouslyReportedMember_qI16CnnQ_E25fBsbQggf_A",
      "name": "us-gaap:InterestAndFeeIncomeLoansAndLeases",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R37": {
     "role": "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfChangesInStockholdersEquityDetails",
     "longName": "99940106 - Disclosure - ACCOUNTING POLICIES (Revised and Restated) (Restatement of Previously Issued Condensed Consolidated Statement of Changes in Stockholders' Equity) (Details)",
     "shortName": "ACCOUNTING POLICIES (Revised and Restated) (Restatement of Previously Issued Condensed Consolidated Statement of Changes in Stockholders' Equity) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "37",
     "firstAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_BQJxHVjnskSL1djKMc9Kmw",
      "name": "us-gaap:ProfitLoss",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_srt_RestatementAxis_srt_ScenarioPreviouslyReportedMember_qI16CnnQ_E25fBsbQggf_A",
      "name": "us-gaap:ProfitLoss",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R38": {
     "role": "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
     "longName": "99940107 - Disclosure - ACCOUNTING POLICIES (Revised and Restated) (Restatement of Previously Issued Condensed Consolidated Statement of Cash Flows) (Details)",
     "shortName": "ACCOUNTING POLICIES (Revised and Restated) (Restatement of Previously Issued Condensed Consolidated Statement of Cash Flows) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "38",
     "firstAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_BQJxHVjnskSL1djKMc9Kmw",
      "name": "us-gaap:NetIncomeLoss",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_srt_RestatementAxis_srt_ScenarioPreviouslyReportedMember_AllRopHX9EO9dyzAEV0Nog",
      "name": "us-gaap:IncreaseDecreaseInDeferredIncomeTaxes",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R39": {
     "role": "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails",
     "longName": "99940201 - Disclosure - INVESTMENT SECURITIES (Narrative) (Details)",
     "shortName": "INVESTMENT SECURITIES (Narrative) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "39",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "us-gaap:ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_BQJxHVjnskSL1djKMc9Kmw",
      "name": "us-gaap:PaymentsToAcquireHeldToMaturitySecurities",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "us-gaap:PaymentsToAcquireHeldToMaturitySecurities",
       "us-gaap:PaymentsToAcquireHeldToMaturitySecurities",
       "us-gaap:PaymentsToAcquireHeldToMaturitySecurities",
       "p",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R40": {
     "role": "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails",
     "longName": "99940202 - Disclosure - INVESTMENT SECURITIES (Schedule of amortized cost and fair value of securities available-for-sale) (Details)",
     "shortName": "INVESTMENT SECURITIES (Schedule of amortized cost and fair value of securities available-for-sale) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "40",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:DebtSecuritiesAvailableForSaleTableTextBlock",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:DebtSecuritiesAvailableForSaleTableTextBlock",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R41": {
     "role": "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostUnrecognizedGainsAndLossesAndFairValueOfHeldToMaturitySecuritiesDetails",
     "longName": "99940203 - Disclosure - INVESTMENT SECURITIES (Schedule of amortized cost, unrecognized gains and losses, and fair value of held to maturity securities) (Details)",
     "shortName": "INVESTMENT SECURITIES (Schedule of amortized cost, unrecognized gains and losses, and fair value of held to maturity securities) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "41",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:HeldToMaturitySecuritiesTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R42": {
     "role": "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails",
     "longName": "99940204 - Disclosure - INVESTMENT SECURITIES (Schedule of fair value and carrying amount, if different, of debt securities, by contractual maturity) (Details)",
     "shortName": "INVESTMENT SECURITIES (Schedule of fair value and carrying amount, if different, of debt securities, by contractual maturity) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "42",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R43": {
     "role": "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails",
     "longName": "99940205 - Disclosure - INVESTMENT SECURITIES (Schedule of present information regarding securities in a continuous unrealized loss position by duration of time in a loss position) (Details)",
     "shortName": "INVESTMENT SECURITIES (Schedule of present information regarding securities in a continuous unrealized loss position by duration of time in a loss position) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "43",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:UnrealizedGainLossOnInvestmentsTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:UnrealizedGainLossOnInvestmentsTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R44": {
     "role": "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfChangesInAccumulatedOtherComprehensiveIncomeByComponentDetails",
     "longName": "99940206 - Disclosure - INVESTMENT SECURITIES (Schedule of changes in accumulated other comprehensive income by component) (Details)",
     "shortName": "INVESTMENT SECURITIES (Schedule of changes in accumulated other comprehensive income by component) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "44",
     "firstAnchor": {
      "contextRef": "As_Of_3_31_2023_9Wf8CD349USa9-ltR2nDSA",
      "name": "us-gaap:StockholdersEquity",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_3_31_2023_us-gaap_StatementEquityComponentsAxis_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_xwTu_K2khUuU-DgKFtETiQ",
      "name": "us-gaap:StockholdersEquity",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComprehensiveIncomeLossTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R45": {
     "role": "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
     "longName": "99940301 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Narrative) (Details)",
     "shortName": "LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Narrative) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "45",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2022_4iM4ed-Vq0a0OdfYqSiEww",
      "name": "us-gaap:MortgageLoansInProcessOfForeclosureAmount",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R46": {
     "role": "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
     "longName": "99940302 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of Loans, net of Unearned Income) (Details)",
     "shortName": "LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of Loans, net of Unearned Income) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "46",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:LoansReceivableHeldForSaleAmount",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:LoansReceivableHeldForSaleAmount",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R47": {
     "role": "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
     "longName": "99940303 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of Details of Aging of the Recorded Investment in Past Due loans by Class of Loans) (Details)",
     "shortName": "LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of Details of Aging of the Recorded Investment in Past Due loans by Class of Loans) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "47",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_us-gaap_FinancingReceivablesPeriodPastDueAxis_us-gaap_FinancingReceivables30To59DaysPastDueMember_GpfQYUSTU0K0DBrLMbS1Fw",
      "name": "us-gaap:FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PastDueFinancingReceivablesTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R48": {
     "role": "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
     "longName": "99940304 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of nonaccrual loans) (Details)",
     "shortName": "LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of nonaccrual loans) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "48",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_us-gaap_FinancialInstrumentPerformanceStatusAxis_us-gaap_NonperformingFinancingReceivableMember_av0lXDgoMUS7fTfl0pyhMg",
      "name": "us-gaap:FinancingReceivableNonaccrualNoAllowance",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R49": {
     "role": "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails",
     "longName": "99940305 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of the risk category of loans by class of loans) (Details)",
     "shortName": "LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of the risk category of loans by class of loans) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "49",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "frst:GrossWriteOffOfReceivableYearTwoOriginatedCurrentFiscalYear",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R50": {
     "role": "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
     "longName": "99940306 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of calculation for allowance for credit losses) (Details)",
     "shortName": "LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of calculation for allowance for credit losses) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "50",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R51": {
     "role": "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
     "longName": "99940307 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of Activity for Loan and Lease Losses By Class of Loan) (Details)",
     "shortName": "LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of Activity for Loan and Lease Losses By Class of Loan) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "51",
     "firstAnchor": {
      "contextRef": "As_Of_3_31_2023_9Wf8CD349USa9-ltR2nDSA",
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_BQJxHVjnskSL1djKMc9Kmw",
      "name": "us-gaap:FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R52": {
     "role": "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
     "longName": "99940308 - Disclosure - LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of Allowance for Loan Losses and the Recorded Investment by Portfolio Segment) (Details)",
     "shortName": "LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) (Schedule of Allowance for Loan Losses and the Recorded Investment by Portfolio Segment) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "52",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "frst:FinancingReceivableIndividuallyEvaluatedForImpairmentAllowanceForCreditLosses",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "frst:FinancingReceivableIndividuallyEvaluatedForImpairmentAllowanceForCreditLosses",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R53": {
     "role": "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails",
     "longName": "99940401 - Disclosure - DERIVATIVES (Restated) (Consumer Program Derivative) (Details)",
     "shortName": "DERIVATIVES (Restated) (Consumer Program Derivative) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "53",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:DerivativeAssets",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_BQJxHVjnskSL1djKMc9Kmw",
      "name": "us-gaap:DerivativeGainOnDerivative",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R54": {
     "role": "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails",
     "longName": "99940402 - Disclosure - DERIVATIVES (Restated) (Mortgage Banking Derivatives and Financial Instruments) (Details)",
     "shortName": "DERIVATIVES (Restated) (Mortgage Banking Derivatives and Financial Instruments) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "54",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:DerivativeAssets",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "frst:FairValueOfNonderivativeInstruments",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R55": {
     "role": "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedNarrativeDetails",
     "longName": "99940501 - Disclosure - FAIR VALUE (Revised and Restated) (Narrative) (Details)",
     "shortName": "FAIR VALUE (Revised and Restated) (Narrative) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "55",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R56": {
     "role": "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
     "longName": "99940502 - Disclosure - FAIR VALUE (Revised and Restated) (Schedule of assets measured at fair value on a recurring basis) (Details)",
     "shortName": "FAIR VALUE (Revised and Restated) (Schedule of assets measured at fair value on a recurring basis) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "56",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_us-gaap_FairValueByMeasurementFrequencyAxis_us-gaap_FairValueMeasurementsRecurringMember_KbfGOgfSm0WqSvg6Q2iQIA",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisTextBlock",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R57": {
     "role": "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
     "longName": "99940503 - Disclosure - FAIR VALUE (Revised and Restated) (Schedule of Assets Measured at Fair Value on Non-recurring Basis) (Details)",
     "shortName": "FAIR VALUE (Revised and Restated) (Schedule of Assets Measured at Fair Value on Non-recurring Basis) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "57",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_us-gaap_FairValueByMeasurementBasisAxis_us-gaap_CarryingReportedAmountFairValueDisclosureMember_us-gaap_FairValueByMeasurementFrequencyAxis_us-gaap_FairValueMeasurementsNonrecurringMember_KQyf6ztJS0KchXLetq4uzQ",
      "name": "frst:CollateralDependentLoansFairValueDisclosure",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnNonrecurringBasisTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_us-gaap_FairValueByMeasurementBasisAxis_us-gaap_CarryingReportedAmountFairValueDisclosureMember_us-gaap_FairValueByMeasurementFrequencyAxis_us-gaap_FairValueMeasurementsNonrecurringMember_KQyf6ztJS0KchXLetq4uzQ",
      "name": "frst:CollateralDependentLoansFairValueDisclosure",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnNonrecurringBasisTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R58": {
     "role": "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails",
     "longName": "99940504 - Disclosure - FAIR VALUE (Revised and Restated) (Schedule of estimated fair values and fair value hierarchy levels of financial instruments) (Details)",
     "shortName": "FAIR VALUE (Revised and Restated) (Schedule of estimated fair values and fair value hierarchy levels of financial instruments) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "58",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_us-gaap_FairValueByFairValueHierarchyLevelAxis_us-gaap_FairValueInputsLevel1Member_us-gaap_FairValueByMeasurementBasisAxis_us-gaap_CarryingReportedAmountFairValueDisclosureMember_UpMW9UDmOkarOFLxEUdAGw",
      "name": "us-gaap:CashAndCashEquivalentsFairValueDisclosure",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R59": {
     "role": "http://www.primisbank.com/role/DisclosureLeasesNarrativeDetails",
     "longName": "99940601 - Disclosure - LEASES (Narrative) (Details)",
     "shortName": "LEASES (Narrative) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "59",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:OperatingLeaseRightOfUseAsset",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_BQJxHVjnskSL1djKMc9Kmw",
      "name": "us-gaap:LeaseCost",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R60": {
     "role": "http://www.primisbank.com/role/DisclosureLeasesScheduleOfOperatingLeaseOtherInformationDetails",
     "longName": "99940602 - Disclosure - LEASES (Schedule of operating lease other information) (Details)",
     "shortName": "LEASES (Schedule of operating lease other information) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "60",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:OperatingLeaseWeightedAverageRemainingLeaseTerm1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "frst:ScheduleOfOperatingLeaseOtherInformationTableTextBlock",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:OperatingLeaseWeightedAverageRemainingLeaseTerm1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "frst:ScheduleOfOperatingLeaseOtherInformationTableTextBlock",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R61": {
     "role": "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails",
     "longName": "99940603 - Disclosure - LEASES (Schedule of future minimum rental payments required under non-cancelable operating leases for bank premises) (Details)",
     "shortName": "LEASES (Schedule of future minimum rental payments required under non-cancelable operating leases for bank premises) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "61",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R62": {
     "role": "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsRestatedNarrativeDetails",
     "longName": "99940701 - Disclosure - DEBT AND OTHER BORROWINGS (Restated) (Narrative) (Details)",
     "shortName": "DEBT AND OTHER BORROWINGS (Restated) (Narrative) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "62",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:FederalFundsPurchasedAndSecuritiesSoldUnderAgreementsToRepurchase",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:FederalFundsPurchasedAndSecuritiesSoldUnderAgreementsToRepurchase",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R63": {
     "role": "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details",
     "longName": "99940702 - Disclosure - DEBT AND OTHER BORROWINGS (Narrative 2) (Details)",
     "shortName": "DEBT AND OTHER BORROWINGS (Narrative 2) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "63",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:JuniorSubordinatedNotes",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_B6zfNgSeyk2_fAYz9dwcRw",
      "name": "frst:PercentageOfSubordinatedNotesConsideredTier2",
      "unitRef": "Unit_Standard_pure_i4ojZhTwsUWo_44QYGR79w",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R64": {
     "role": "http://www.primisbank.com/role/DisclosureStockBasedCompensationNarrativeDetails",
     "longName": "99940801 - Disclosure - STOCK- BASED COMPENSATION (Narrative) (Details)",
     "shortName": "STOCK- BASED COMPENSATION (Narrative) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "64",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
      "unitRef": "Unit_Standard_shares_hQKj0JJsOE2AeWob0kXEEg",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_us-gaap_AwardTypeAxis_us-gaap_EmployeeStockOptionMember_qzwb15ulpEq5qtUGJPSe0Q",
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "us-gaap:AllocatedShareBasedCompensationExpense",
       "us-gaap:AllocatedShareBasedCompensationExpense",
       "us-gaap:AllocatedShareBasedCompensationExpense",
       "p",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R65": {
     "role": "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails",
     "longName": "99940802 - Disclosure - STOCK-BASED COMPENSATION (Schedule of Activity in the Stock Option Plan) (Details)",
     "shortName": "STOCK-BASED COMPENSATION (Schedule of Activity in the Stock Option Plan) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "65",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2022_us-gaap_AwardTypeAxis_us-gaap_EmployeeStockOptionMember_s2tx8SIiIUaCYO2e9ZNkzg",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber",
      "unitRef": "Unit_Standard_shares_hQKj0JJsOE2AeWob0kXEEg",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_us-gaap_AwardTypeAxis_us-gaap_EmployeeStockOptionMember_PsVtld4mLEyqxAAOijC9ag",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExpirationsInPeriod",
      "unitRef": "Unit_Standard_shares_hQKj0JJsOE2AeWob0kXEEg",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R66": {
     "role": "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails",
     "longName": "99940803 - Disclosure - STOCK-BASED COMPENSATION (Schedule of activity in the restricted stock plan) (Details)",
     "shortName": "STOCK-BASED COMPENSATION (Schedule of activity in the restricted stock plan) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "66",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2022_us-gaap_AwardTypeAxis_us-gaap_RestrictedStockMember_UI-slfA4MUWKJjzUARRNeA",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "unitRef": "Unit_Standard_shares_hQKj0JJsOE2AeWob0kXEEg",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_us-gaap_AwardTypeAxis_us-gaap_RestrictedStockMember_mmNLeepfTUStevneIR1QLQ",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
      "unitRef": "Unit_Standard_shares_hQKj0JJsOE2AeWob0kXEEg",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    },
    "R67": {
     "role": "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedNarrativeDetails",
     "longName": "99940901 - Disclosure - COMMITMENTS AND CONTINGENCIES (Restated) (Narrative) (Details)",
     "shortName": "COMMITMENTS AND CONTINGENCIES (Restated) (Narrative) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "67",
     "firstAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:FairValueDisclosureOffbalanceSheetRisksAmountLiability",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_6_30_2023_O9jJgBKwFEiLHa6Roc5H9w",
      "name": "us-gaap:FairValueDisclosureOffbalanceSheetRisksAmountLiability",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R68": {
     "role": "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedScheduleOfAllowanceForCreditLossesOffBalanceSheetExposureDetails",
     "longName": "99940902 - Disclosure - COMMITMENTS AND CONTINGENCIES (Restated) (Schedule of allowance for credit losses off balance sheet exposure) (Details)",
     "shortName": "COMMITMENTS AND CONTINGENCIES (Restated) (Schedule of allowance for credit losses off balance sheet exposure) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "68",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2022_4iM4ed-Vq0a0OdfYqSiEww",
      "name": "us-gaap:OffBalanceSheetCreditLossLiability",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "frst:OffBalanceSheetCreditLossTableTextBlock",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2022_4iM4ed-Vq0a0OdfYqSiEww",
      "name": "us-gaap:OffBalanceSheetCreditLossLiability",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "frst:OffBalanceSheetCreditLossTableTextBlock",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R69": {
     "role": "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedNarrativeDetails",
     "longName": "99941001 - Disclosure - EARNINGS PER SHARE (Restated) (Narrative) (Details)",
     "shortName": "EARNINGS PER SHARE (Restated) (Narrative) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "69",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_us-gaap_EmployeeStockOptionMember__WXid7h9KUyIjiUTaT24yg",
      "name": "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
      "unitRef": "Unit_Standard_shares_hQKj0JJsOE2AeWob0kXEEg",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "p",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_6_30_2023_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_us-gaap_EmployeeStockOptionMember__WXid7h9KUyIjiUTaT24yg",
      "name": "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
      "unitRef": "Unit_Standard_shares_hQKj0JJsOE2AeWob0kXEEg",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "p",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R70": {
     "role": "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails",
     "longName": "99941002 - Disclosure - EARNINGS PER SHARE (Restated) (Schedule of Reconciliation of the Denominators of the Basic and Diluted Earnings per Share) (Details)",
     "shortName": "EARNINGS PER SHARE (Restated) (Schedule of Reconciliation of the Denominators of the Basic and Diluted Earnings per Share) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "70",
     "firstAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_BQJxHVjnskSL1djKMc9Kmw",
      "name": "us-gaap:NetIncomeLossAvailableToCommonStockholdersBasic",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_BQJxHVjnskSL1djKMc9Kmw",
      "name": "us-gaap:NetIncomeLossAvailableToCommonStockholdersBasic",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true,
      "unique": true
     }
    },
    "R71": {
     "role": "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails",
     "longName": "99941101 - Disclosure - SEGMENT INFORMATION (Restated) (Financial Information) (Details)",
     "shortName": "SEGMENT INFORMATION (Restated) (Financial Information) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "71",
     "firstAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_BQJxHVjnskSL1djKMc9Kmw",
      "name": "us-gaap:InterestAndDividendIncomeOperating",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_4_1_2023_To_6_30_2023_us-gaap_StatementBusinessSegmentsAxis_frst_PrimisMortgageMember_BAsgfECq0Ua58PWkdDRLhA",
      "name": "us-gaap:InterestAndDividendIncomeOperating",
      "unitRef": "Unit_Standard_USD_2gfXUUNqFkuAO4vQJgXtJw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "frst-20230630x10qa.htm",
      "unique": true
     }
    }
   },
   "tag": {
    "us-gaap_AOCIAttributableToParentNetOfTaxRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AOCIAttributableToParentNetOfTaxRollForward",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfChangesInAccumulatedOtherComprehensiveIncomeByComponentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AOCI Attributable to Parent, Net of Tax [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_AccountsNotesAndLoansReceivableLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountsNotesAndLoansReceivableLineItems",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts Notes And Loans Receivable [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_AccountsNotesLoansAndFinancingReceivableGrossAllowanceAndNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountsNotesLoansAndFinancingReceivableGrossAllowanceAndNetAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated) [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountsPayableAndAccruedLiabilitiesFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountsPayableAndAccruedLiabilitiesFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts Payable and Accrued Liabilities, Fair Value Disclosure",
        "terseLabel": "Accrued interest payable",
        "documentation": "Fair value portion of trade and related party payables and accrued expenses."
       }
      }
     },
     "auth_ref": []
    },
    "frst_AccretionOfLoanDiscount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "AccretionOfLoanDiscount",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash flow impact of accretion of loan discount.",
        "label": "Accretion Of Loan Discount",
        "negatedLabel": "Net amortization (accretion) of premiums and discounts"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedNetUnrealizedInvestmentGainLossMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfChangesInAccumulatedOtherComprehensiveIncomeByComponentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unrealized gains (losses) on securities available for sale",
        "documentation": "Accumulated 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), attributable to parent."
       }
      }
     },
     "auth_ref": [
      "r217",
      "r218",
      "r219",
      "r220",
      "r227",
      "r228",
      "r916"
     ]
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedOtherComprehensiveIncomeLossLineItems",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfChangesInAccumulatedOtherComprehensiveIncomeByComponentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Other Comprehensive Income Loss [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r226",
      "r227",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550"
     ]
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfChangesInAccumulatedOtherComprehensiveIncomeByComponentDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Other Comprehensive Income (Loss), Net of Tax",
        "terseLabel": "Accumulated other comprehensive loss",
        "documentation": "Amount, after tax, of accumulated increase (decrease) in equity from transaction and other event and circumstance from nonowner source."
       }
      }
     },
     "auth_ref": [
      "r29",
      "r30",
      "r114",
      "r213",
      "r618",
      "r646",
      "r650"
     ]
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedOtherComprehensiveIncomeLossTable",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfChangesInAccumulatedOtherComprehensiveIncomeByComponentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Other Comprehensive Income Loss [Table]",
        "documentation": "Disclosure of information about components of accumulated other comprehensive income (loss)."
       }
      }
     },
     "auth_ref": [
      "r226",
      "r227",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550"
     ]
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfChangesInAccumulatedOtherComprehensiveIncomeByComponentDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Other Comprehensive Income (Loss) [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",
      "r12",
      "r30",
      "r521",
      "r524",
      "r561",
      "r641",
      "r642",
      "r916",
      "r917",
      "r918",
      "r926",
      "r927",
      "r928"
     ]
    },
    "ecd_Additional402vDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "Additional402vDisclosureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional 402(v) Disclosure [Text Block]",
        "terseLabel": "Additional 402(v) Disclosure"
       }
      }
     },
     "auth_ref": [
      "r854"
     ]
    },
    "us-gaap_AdditionalPaidInCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdditionalPaidInCapital",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Paid in Capital",
        "terseLabel": "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": [
      "r108",
      "r802",
      "r1025"
     ]
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdditionalPaidInCapitalMember",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Paid-in Capital [Member]",
        "documentation": "Excess of issue price over par or stated value of the entity's capital stock and amounts received from other transactions involving the entity's stock or stockholders."
       }
      }
     },
     "auth_ref": [
      "r497",
      "r498",
      "r499",
      "r655",
      "r926",
      "r927",
      "r928",
      "r998",
      "r1029"
     ]
    },
    "ecd_AdjToCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AdjToCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Compensation Amount",
        "terseLabel": "Adjustment to Compensation, Amount"
       }
      }
     },
     "auth_ref": [
      "r860"
     ]
    },
    "ecd_AdjToCompAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AdjToCompAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Compensation [Axis]",
        "terseLabel": "Adjustment to Compensation:"
       }
      }
     },
     "auth_ref": [
      "r860"
     ]
    },
    "ecd_AdjToNonPeoNeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AdjToNonPeoNeoCompFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Non-PEO NEO Compensation Footnote [Text Block]",
        "terseLabel": "Adjustment to Non-PEO NEO Compensation Footnote"
       }
      }
     },
     "auth_ref": [
      "r860"
     ]
    },
    "ecd_AdjToPeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AdjToPeoCompFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment To PEO Compensation, Footnote [Text Block]",
        "terseLabel": "Adjustment To PEO Compensation, Footnote"
       }
      }
     },
     "auth_ref": [
      "r860"
     ]
    },
    "us-gaap_AdjustmentsForErrorCorrectionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdjustmentsForErrorCorrectionDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Error Correction, Type [Domain]",
        "documentation": "Type of error correction."
       }
      }
     },
     "auth_ref": [
      "r252",
      "r253",
      "r254",
      "r258",
      "r259",
      "r260",
      "r261"
     ]
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock-Based Compensation Expense",
        "verboseLabel": "Stock-based compensation expense",
        "documentation": "Amount of increase to additional paid-in capital (APIC) for recognition of cost for option under share-based payment arrangement."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments To Reconcile Net Income To Net Cash and Cash Equivalents Provided By Operating Activities",
        "verboseLabel": "Adjustments to reconcile net income to net cash and cash equivalents (used in) provided by operating activities:"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AggtErrCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Erroneous Compensation Amount",
        "terseLabel": "Aggregate Erroneous Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r825",
      "r836",
      "r846",
      "r871"
     ]
    },
    "ecd_AggtErrCompNotYetDeterminedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AggtErrCompNotYetDeterminedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Erroneous Compensation Not Yet Determined [Text Block]",
        "terseLabel": "Aggregate Erroneous Compensation Not Yet Determined"
       }
      }
     },
     "auth_ref": [
      "r828",
      "r839",
      "r849",
      "r874"
     ]
    },
    "ecd_AllAdjToCompMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AllAdjToCompMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Adjustments to Compensation [Member]",
        "terseLabel": "All Adjustments to Compensation"
       }
      }
     },
     "auth_ref": [
      "r860"
     ]
    },
    "ecd_AllExecutiveCategoriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AllExecutiveCategoriesMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Executive Categories [Member]",
        "terseLabel": "All Executive Categories"
       }
      }
     },
     "auth_ref": [
      "r867"
     ]
    },
    "ecd_AllIndividualsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AllIndividualsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure",
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure",
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements",
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Individuals [Member]",
        "terseLabel": "All Individuals"
       }
      }
     },
     "auth_ref": [
      "r832",
      "r840",
      "r850",
      "r867",
      "r875",
      "r879",
      "r887"
     ]
    },
    "ecd_AllTradingArrangementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AllTradingArrangementsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Trading Arrangements [Member]",
        "terseLabel": "All Trading Arrangements"
       }
      }
     },
     "auth_ref": [
      "r885"
     ]
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllocatedShareBasedCompensationExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Allocated Share-Based Compensation Expense",
        "verboseLabel": "Stock-based compensation expense",
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized."
       }
      }
     },
     "auth_ref": [
      "r492",
      "r500"
     ]
    },
    "us-gaap_AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Allowance For Credit Losses On Financing Receivables [Table Text Block]",
        "verboseLabel": "Schedule of allowance for loan losses and the recorded investment by portfolio segment",
        "documentation": "Tabular disclosure of allowance for credit loss on financing receivable."
       }
      }
     },
     "auth_ref": [
      "r56",
      "r978"
     ]
    },
    "dei_AmendmentDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AmendmentDescription",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Description",
        "documentation": "Description of changes contained within amended document."
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AmortizationOfIntangibleAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AmortizationOfIntangibleAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortization Of Core Deposit Intangible",
        "verboseLabel": "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": [
      "r7",
      "r62",
      "r63"
     ]
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Antidilutive Securities Excluded From Computation Of Earnings Per Share, Amount",
        "verboseLabel": "Anti-dilutive options (in shares)",
        "documentation": "Securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) or earnings per unit (EPU) in the future that were not included in the computation of diluted EPS or EPU because to do so would increase EPS or EPU amounts or decrease loss per share or unit amounts for the period presented."
       }
      }
     },
     "auth_ref": [
      "r280"
     ]
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Antidilutive Securities [Axis]",
        "documentation": "Information by type of antidilutive security."
       }
      }
     },
     "auth_ref": [
      "r48"
     ]
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items]",
        "verboseLabel": "Antidilutive Securities Excluded from Computation of Earnings Per Share [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_AntidilutiveSecuritiesNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AntidilutiveSecuritiesNameDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Antidilutive Securities, Name [Domain]",
        "documentation": "Incremental common shares attributable to securities that were not included in diluted earnings per share (EPS) because to do so would increase EPS amounts or decrease loss per share amounts for the period presented."
       }
      }
     },
     "auth_ref": [
      "r48"
     ]
    },
    "us-gaap_AssetPledgedAsCollateralMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetPledgedAsCollateralMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset Pledged as Collateral [Member]",
        "documentation": "Asset pledged as collateral."
       }
      }
     },
     "auth_ref": [
      "r509",
      "r669",
      "r794",
      "r1014"
     ]
    },
    "us-gaap_Assets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Assets",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets",
        "terseLabel": "Assets",
        "totalLabel": "Total assets",
        "verboseLabel": "Total assets",
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are recognized. Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events."
       }
      }
     },
     "auth_ref": [
      "r148",
      "r212",
      "r242",
      "r289",
      "r310",
      "r316",
      "r365",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r419",
      "r420",
      "r421",
      "r422",
      "r509",
      "r513",
      "r544",
      "r614",
      "r689",
      "r802",
      "r815",
      "r987",
      "r988",
      "r1006"
     ]
    },
    "us-gaap_AssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsAbstract",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets [Abstract]",
        "verboseLabel": "ASSETS"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetsAndAssociatedLiabilitiesOfTransfersAccountedForAsSecuredBorrowingsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsAndAssociatedLiabilitiesOfTransfersAccountedForAsSecuredBorrowingsLineItems",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets and Associated Liabilities of Transfers 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": []
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets, Fair Value Disclosure",
        "documentation": "Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events."
       }
      }
     },
     "auth_ref": [
      "r88"
     ]
    },
    "us-gaap_AssetsFairValueDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsFairValueDisclosureAbstract",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets, Fair Value Disclosure [Abstract]",
        "verboseLabel": "Financial assets:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetsHeldForSaleLongLivedFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsHeldForSaleLongLivedFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets Held-for-sale, Long Lived, Fair Value Disclosure",
        "terseLabel": "Assets held for sale",
        "documentation": "Fair value portion of assets classified as held for sale."
       }
      }
     },
     "auth_ref": [
      "r799"
     ]
    },
    "us-gaap_AssetsHeldForSaleNotPartOfDisposalGroup": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsHeldForSaleNotPartOfDisposalGroup",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets Held-for-sale, Not Part of Disposal Group",
        "terseLabel": "Assets held for sale",
        "documentation": "Amount of assets held-for-sale that are not part of a disposal group."
       }
      }
     },
     "auth_ref": [
      "r132"
     ]
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available-for-sale Securities, Accumulated Gross Unrealized Gain, before Tax",
        "terseLabel": "Gross Unrealized Gains",
        "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": [
      "r338"
     ]
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available-for-sale Securities, Accumulated Gross Unrealized Loss, before Tax",
        "negatedLabel": "Gross Unrealized Losses",
        "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": [
      "r339"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available-for-sale Securities, Debt Maturities, Year Six Through Ten, Amortized Cost Basis",
        "verboseLabel": "Available for Sale, due in five to ten years, amortized cost",
        "documentation": "Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in sixth through tenth 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": [
      "r948"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available-for-sale Securities, Debt Maturities, Year Six Through Ten, Fair Value",
        "verboseLabel": "Available for Sale, due in five to ten years, fair value",
        "documentation": "Fair value of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in sixth through tenth 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": [
      "r344",
      "r608"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available-for-sale Securities, Debt Maturities, Year Two Through Five, Amortized Cost Basis",
        "terseLabel": "Available for Sale, due in one to five years, amortized cost",
        "documentation": "Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in second through 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": [
      "r947"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available-for-sale Securities, Debt Maturities, Year Two Through Five, Fair Value",
        "terseLabel": "Available for Sale, due in one to five years, fair value",
        "documentation": "Fair value of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in second through 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": [
      "r343",
      "r607"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available-for-sale Securities, Debt Maturities, after Ten Years, Amortized Cost Basis",
        "verboseLabel": "Available for sale, due after ten years, amortized cost",
        "documentation": "Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing after tenth 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": [
      "r949"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available-for-sale Securities, Debt Maturities, after Ten Years, Fair Value",
        "verboseLabel": "Available for sale, due after ten years, fair value",
        "documentation": "Fair value of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing after tenth 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": [
      "r345",
      "r609"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Amortized Cost, Maturity, Allocated and Single Maturity Date, Year One",
        "terseLabel": "Available for Sale, due in one year, amortized cost",
        "documentation": "Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity 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": [
      "r946"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, Year One",
        "terseLabel": "Available for Sale, due in one year, fair value",
        "documentation": "Fair value of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity 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": [
      "r342",
      "r606"
     ]
    },
    "ecd_AwardExrcPrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AwardExrcPrice",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Exercise Price",
        "terseLabel": "Exercise Price"
       }
      }
     },
     "auth_ref": [
      "r882"
     ]
    },
    "ecd_AwardGrantDateFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AwardGrantDateFairValue",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Grant Date Fair Value",
        "terseLabel": "Fair Value as of Grant Date"
       }
      }
     },
     "auth_ref": [
      "r883"
     ]
    },
    "ecd_AwardTmgDiscLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AwardTmgDiscLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Disclosures [Line Items]",
        "terseLabel": "Award Timing Disclosures"
       }
      }
     },
     "auth_ref": [
      "r878"
     ]
    },
    "ecd_AwardTmgHowMnpiCnsdrdTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AwardTmgHowMnpiCnsdrdTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing, How MNPI Considered [Text Block]",
        "terseLabel": "Award Timing, How MNPI Considered"
       }
      }
     },
     "auth_ref": [
      "r878"
     ]
    },
    "ecd_AwardTmgMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AwardTmgMethodTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Method [Text Block]",
        "terseLabel": "Award Timing Method"
       }
      }
     },
     "auth_ref": [
      "r878"
     ]
    },
    "ecd_AwardTmgMnpiCnsdrdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AwardTmgMnpiCnsdrdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing MNPI Considered [Flag]",
        "terseLabel": "Award Timing MNPI Considered"
       }
      }
     },
     "auth_ref": [
      "r878"
     ]
    },
    "ecd_AwardTmgMnpiDiscTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AwardTmgMnpiDiscTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing MNPI Disclosure [Text Block]",
        "terseLabel": "Award Timing MNPI Disclosure"
       }
      }
     },
     "auth_ref": [
      "r878"
     ]
    },
    "ecd_AwardTmgPredtrmndFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AwardTmgPredtrmndFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Predetermined [Flag]",
        "terseLabel": "Award Timing Predetermined"
       }
      }
     },
     "auth_ref": [
      "r878"
     ]
    },
    "us-gaap_AwardTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AwardTypeAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationTables",
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Type [Axis]",
        "terseLabel": "Award Type",
        "documentation": "Information by type of award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r483",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491"
     ]
    },
    "ecd_AwardUndrlygSecuritiesAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AwardUndrlygSecuritiesAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Underlying Securities Amount",
        "terseLabel": "Underlying Securities"
       }
      }
     },
     "auth_ref": [
      "r881"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AwardsCloseToMnpiDiscIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Awards Close in Time to MNPI Disclosures, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r880"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AwardsCloseToMnpiDiscTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Awards Close in Time to MNPI Disclosures [Table]",
        "terseLabel": "Awards Close in Time to MNPI Disclosures"
       }
      }
     },
     "auth_ref": [
      "r879"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AwardsCloseToMnpiDiscTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Awards Close in Time to MNPI Disclosures [Table Text Block]",
        "terseLabel": "Awards Close in Time to MNPI Disclosures, Table"
       }
      }
     },
     "auth_ref": [
      "r879"
     ]
    },
    "us-gaap_BankOwnedLifeInsurance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BankOwnedLifeInsurance",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bank-Owned Life Insurance",
        "terseLabel": "Bank-owned life insurance",
        "documentation": "The carrying amount of a life insurance policy on an officer, executive or employee for which the reporting entity (a bank) is entitled to proceeds from the policy upon death of the insured or surrender of the insurance policy."
       }
      }
     },
     "auth_ref": [
      "r1015"
     ]
    },
    "frst_BankOwnedLifeInsuranceEarnings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "BankOwnedLifeInsuranceEarnings",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bank owned life insurance earnings not including gains (losses).",
        "label": "Bank Owned Life Insurance Earnings",
        "negatedLabel": "Earnings on bank-owned life insurance"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BankOwnedLifeInsuranceIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BankOwnedLifeInsuranceIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income From Bank-Owned Life Insurance",
        "verboseLabel": "Income from bank-owned life insurance",
        "documentation": "Earnings on or other increases in the value of the cash surrender value of bank owned life insurance policies."
       }
      }
     },
     "auth_ref": [
      "r162"
     ]
    },
    "us-gaap_BasisOfPresentationAndSignificantAccountingPoliciesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BasisOfPresentationAndSignificantAccountingPoliciesTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basis of Presentation and Significant Accounting Policies [Text Block]",
        "terseLabel": "Basis of Presentation",
        "documentation": "The entire disclosure for the basis of presentation and significant accounting policies concepts. Basis of presentation describes the underlying basis used to prepare the financial statements (for example, US Generally Accepted Accounting Principles, Other Comprehensive Basis of Accounting, IFRS). Accounting policies describe all significant accounting policies of the reporting entity."
       }
      }
     },
     "auth_ref": [
      "r126"
     ]
    },
    "us-gaap_BusinessAcquisitionAcquireeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionAcquireeDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition, Acquiree [Domain]",
        "documentation": "Identification of the acquiree in a material business combination (or series of individually immaterial business combinations), which may include the name or other type of identification of the acquiree."
       }
      }
     },
     "auth_ref": [
      "r507",
      "r789",
      "r790"
     ]
    },
    "us-gaap_BusinessAcquisitionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition [Axis]",
        "documentation": "Information by business combination or series of individually immaterial business combinations."
       }
      }
     },
     "auth_ref": [
      "r70",
      "r71",
      "r507",
      "r789",
      "r790"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Notes Assumed",
        "verboseLabel": "Notes assumed in merger",
        "documentation": "Amount of long-term debt due after one year or the normal operating cycle, if longer, assumed at the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r72"
     ]
    },
    "frst_CalculationOfAllowanceForCreditLossesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "CalculationOfAllowanceForCreditLossesAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Calculation of Allowance For Credit Losses [Axis].",
        "label": "Calculation of Allowance For Credit Losses [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "frst_CalculationOfAllowanceForCreditLossesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "CalculationOfAllowanceForCreditLossesDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Calculation of Allowance For Credit Losses [Domain].",
        "label": "Calculation of Allowance For Credit Losses [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CarryingReportedAmountFairValueDisclosureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CarryingReportedAmountFairValueDisclosureMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Carrying (Reported) Amount, Fair Value Disclosure [Member]",
        "documentation": "Measured as reported on the statement of financial position (balance sheet)."
       }
      }
     },
     "auth_ref": [
      "r89",
      "r90"
     ]
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents, At Carrying Value",
        "totalLabel": "Total cash and cash equivalents",
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Excludes cash and cash equivalents within disposal group and discontinued operation."
       }
      }
     },
     "auth_ref": [
      "r41",
      "r209",
      "r756"
     ]
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValueAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndCashEquivalentsAtCarryingValueAbstract",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents",
        "verboseLabel": "Cash and cash equivalents:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashAndCashEquivalentsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndCashEquivalentsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents, Fair Value Disclosure",
        "terseLabel": "Cash and cash equivalents",
        "documentation": "Fair value portion of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashAndDueFromBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndDueFromBanks",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_CashAndCashEquivalentsAtCarryingValue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Due From Financial Institutions",
        "terseLabel": "Cash and due from financial institutions",
        "documentation": "For banks and other depository institutions: Includes cash on hand (currency and coin), cash items in process of collection, noninterest bearing deposits due from other financial institutions (including corporate credit unions), and noninterest bearing balances with the Federal Reserve Banks, Federal Home Loan Banks and central banks."
       }
      }
     },
     "auth_ref": [
      "r146"
     ]
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents",
        "periodEndLabel": "Cash and cash equivalents at end of period",
        "periodStartLabel": "Cash and cash equivalents at beginning of period",
        "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": [
      "r41",
      "r123",
      "r240"
     ]
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) In Cash and Cash Equivalents",
        "totalLabel": "Net change in cash and cash equivalents",
        "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": [
      "r1",
      "r123"
     ]
    },
    "us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental Schedule Of Noncash Investing and Financing Activities",
        "verboseLabel": "Non-cash investing and financing activities:"
       }
      }
     },
     "auth_ref": []
    },
    "frst_CashPaymentsForAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "CashPaymentsForAbstract",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Payments For [Abstract]",
        "verboseLabel": "Cash payments for:"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ChangedPeerGroupFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "ChangedPeerGroupFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Changed Peer Group, Footnote [Text Block]",
        "terseLabel": "Changed Peer Group, Footnote"
       }
      }
     },
     "auth_ref": [
      "r858"
     ]
    },
    "dei_CityAreaCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CityAreaCode",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "City Area Code",
        "documentation": "Area code of city"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ClassOfFinancingReceivableTypeOfBorrowerAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ClassOfFinancingReceivableTypeOfBorrowerAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Financing Receivable, Type of Borrower [Axis]",
        "documentation": "Information by type of borrower determined on the basis of initial measurement attribute, risk characteristics and method of monitoring and assessing credit risk."
       }
      }
     },
     "auth_ref": [
      "r768"
     ]
    },
    "us-gaap_ClassOfFinancingReceivableTypeOfBorrowerDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ClassOfFinancingReceivableTypeOfBorrowerDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Financing Receivable, Type of Borrower [Domain]",
        "documentation": "Category of entity or individual who borrows funds."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_CoSelectedMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "CoSelectedMeasureAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Company Selected Measure Amount",
        "terseLabel": "Company Selected Measure Amount"
       }
      }
     },
     "auth_ref": [
      "r859"
     ]
    },
    "ecd_CoSelectedMeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "CoSelectedMeasureName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Company Selected Measure Name",
        "terseLabel": "Company Selected Measure Name"
       }
      }
     },
     "auth_ref": [
      "r859"
     ]
    },
    "us-gaap_CollateralAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CollateralAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateral Held [Axis]",
        "documentation": "Information by category of collateral or no collateral, from lender's perspective."
       }
      }
     },
     "auth_ref": [
      "r772"
     ]
    },
    "frst_CollateralDependentLoansFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "CollateralDependentLoansFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Collateral dependent loans fair value disclosure.",
        "label": "Collateral Dependent Loans Fair Value Disclosure",
        "terseLabel": "Collateral dependent loans"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CollateralDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CollateralDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateral Held [Domain]",
        "documentation": "Category of collateral or no collateral, from lender's perspective."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CollateralPledgedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CollateralPledgedMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateral Pledged [Member]",
        "documentation": "Pledge of specific property to serve as protection against default."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommercialBorrowerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommercialBorrowerMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commercial Borrower [Member]",
        "documentation": "Business which borrows funds."
       }
      }
     },
     "auth_ref": [
      "r769"
     ]
    },
    "us-gaap_CommercialLoanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommercialLoanMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commercial Mortgage Loan",
        "documentation": "A loan, whether secured or unsecured, to a company for purposes such as seasonal working capital needs, inventory financing, equipment purchases and acquisitions."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommercialMortgageBackedSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommercialMortgageBackedSecuritiesMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commercial Mortgage Backed Securities [Member]",
        "documentation": "Securities collateralized by commercial real estate mortgage loans."
       }
      }
     },
     "auth_ref": [
      "r945",
      "r955",
      "r963",
      "r992"
     ]
    },
    "us-gaap_CommercialPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommercialPortfolioSegmentMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commercial Portfolio Segment [Member]",
        "documentation": "Portfolio segment of the company's total financing receivables related to commercial receivables."
       }
      }
     },
     "auth_ref": []
    },
    "frst_CommercialRealEstateNonOwnerOccupiedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "CommercialRealEstateNonOwnerOccupiedMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents Non owner occupied commercial real estate properties.",
        "label": "Commercial Real Estate Non-owner Occupied"
       }
      }
     },
     "auth_ref": []
    },
    "frst_CommercialRealEstateOwnerOccupiedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "CommercialRealEstateOwnerOccupiedMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents commercial real estate properties occupied by owner.",
        "label": "Commercial Real Estate Owner Occupied"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommercialRealEstatePortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommercialRealEstatePortfolioSegmentMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commercial Real Estate Portfolio Segment [Member]",
        "documentation": "Portfolio segment of the company's total financing receivables related to commercial real estate."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommitmentsAndContingencies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommitmentsAndContingencies",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies (See Note 5)",
        "terseLabel": "Commitments and contingencies (See Note 9)",
        "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": [
      "r26",
      "r99",
      "r615",
      "r676"
     ]
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "COMMITMENTS AND CONTINGENCIES (Restated)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommitmentsAndContingenciesDisclosureTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Text Block]",
        "terseLabel": "COMMITMENTS AND CONTINGENCIES (Restated)",
        "documentation": "The entire disclosure for commitments and contingencies."
       }
      }
     },
     "auth_ref": [
      "r133",
      "r407",
      "r408",
      "r743",
      "r986"
     ]
    },
    "us-gaap_CommonStockDividendsPerShareCashPaid": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockDividendsPerShareCashPaid",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementOfChangesInStockholdersEquityRevisedAndRestatedParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock Dividends Per Share (In Dollars Per Share)",
        "verboseLabel": "Common stock dividends per share (in dollars per share)",
        "documentation": "Aggregate dividends paid during the period for each share of common stock outstanding."
       }
      }
     },
     "auth_ref": [
      "r137"
     ]
    },
    "us-gaap_CommonStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockMember",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock [Member]",
        "documentation": "Stock that is subordinate to all other stock of the issuer."
       }
      }
     },
     "auth_ref": [
      "r805",
      "r806",
      "r807",
      "r809",
      "r810",
      "r811",
      "r812",
      "r926",
      "r927",
      "r998",
      "r1022",
      "r1029"
     ]
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockParOrStatedValuePerShare",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheetsParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Par Value (In Dollars Per Share)",
        "verboseLabel": "Common stock, par value (in dollars per share)",
        "documentation": "Face amount or stated value per share of common stock."
       }
      }
     },
     "auth_ref": [
      "r107"
     ]
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockSharesAuthorized",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheetsParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Shares Authorized",
        "verboseLabel": "Common stock, shares authorized",
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r677"
     ]
    },
    "us-gaap_CommonStockSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockSharesIssued",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheetsParentheticals",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Shares Issued",
        "periodEndLabel": "Balance, shares, ending",
        "periodStartLabel": "Balance, shares",
        "verboseLabel": "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": [
      "r107"
     ]
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockSharesOutstanding",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheetsParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Shares Outstanding",
        "verboseLabel": "Common stock, shares outstanding",
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r107",
      "r677",
      "r695",
      "r1029",
      "r1030"
     ]
    },
    "us-gaap_CommonStockValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockValue",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Value, Issued",
        "verboseLabel": "Common stock, $0.01 par value. Authorized 45,000,000 shares; 24,690,064 and 24,680,097 shares issued and outstanding at June 30, 2023 and December 31, 2022, respectively",
        "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": [
      "r107",
      "r617",
      "r802"
     ]
    },
    "us-gaap_Communication": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Communication",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Telephone and Communication Expense",
        "verboseLabel": "Telephone and communication expense",
        "documentation": "The amount of expense incurred in the period for communication, which is the exchange of information by several methods."
       }
      }
     },
     "auth_ref": [
      "r120"
     ]
    },
    "ecd_CompActuallyPaidVsCoSelectedMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "CompActuallyPaidVsCoSelectedMeasureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Company Selected Measure [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Company Selected Measure"
       }
      }
     },
     "auth_ref": [
      "r864"
     ]
    },
    "ecd_CompActuallyPaidVsNetIncomeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "CompActuallyPaidVsNetIncomeTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Net Income [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Net Income"
       }
      }
     },
     "auth_ref": [
      "r863"
     ]
    },
    "ecd_CompActuallyPaidVsOtherMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "CompActuallyPaidVsOtherMeasureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Other Measure [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Other Measure"
       }
      }
     },
     "auth_ref": [
      "r865"
     ]
    },
    "ecd_CompActuallyPaidVsTotalShareholderRtnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "CompActuallyPaidVsTotalShareholderRtnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Total Shareholder Return [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Total Shareholder Return"
       }
      }
     },
     "auth_ref": [
      "r862"
     ]
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ComprehensiveIncomeNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive Income",
        "terseLabel": "Comprehensive income (loss)",
        "totalLabel": "Comprehensive income (loss)",
        "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": [
      "r31",
      "r223",
      "r225",
      "r230",
      "r598",
      "r626"
     ]
    },
    "us-gaap_ConsolidationPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConsolidationPolicyTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidation, Policy [Policy Text Block]",
        "verboseLabel": "Principles of Consolidation",
        "documentation": "Disclosure of accounting policy regarding (1) the principles it follows in consolidating or combining the separate financial statements, including the principles followed in determining the inclusion or exclusion of subsidiaries or other entities in the consolidated or combined financial statements and (2) its treatment of interests (for example, common stock, a partnership interest or other means of exerting influence) in other entities, for example consolidation or use of the equity or cost methods of accounting. The accounting policy may also address the accounting treatment for intercompany accounts and transactions, noncontrolling interest, and the income statement treatment in consolidation for issuances of stock by a subsidiary."
       }
      }
     },
     "auth_ref": [
      "r73",
      "r759"
     ]
    },
    "us-gaap_ConstructionLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConstructionLoansMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Construction Loans [Member]",
        "documentation": "A borrowing arrangement which provides the entity constructing a facility (such as a building and a landfill) with funds to effect construction, generally on a draw down, or as needed, basis."
       }
      }
     },
     "auth_ref": [
      "r816"
     ]
    },
    "us-gaap_ConsumerBorrowerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConsumerBorrowerMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consumer Borrower [Member]",
        "documentation": "Individual who borrows funds."
       }
      }
     },
     "auth_ref": [
      "r765",
      "r770"
     ]
    },
    "us-gaap_ConsumerPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConsumerPortfolioSegmentMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consumer Portfolio Segment [Member]",
        "documentation": "Portfolio segment of the company's total financing receivables related to consumer receivables."
       }
      }
     },
     "auth_ref": []
    },
    "frst_ConsumerProgramDerivativesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "ConsumerProgramDerivativesMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedTables",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the member information pertaining to consumer program derivatives.",
        "label": "Consumer Program Derivatives [Member]",
        "terseLabel": "Consumer program derivative"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CorporateDebtSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CorporateDebtSecuritiesMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Corporate Debt Securities [Member]",
        "documentation": "Debt securities issued by domestic or foreign corporate business, banks and other entities with a promise of repayment."
       }
      }
     },
     "auth_ref": [
      "r786",
      "r788",
      "r1021"
     ]
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CoverAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cover [Abstract]",
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "frst_CreditEnhancementIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "CreditEnhancementIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of credit enhancement income.",
        "label": "Credit Enhancement Income",
        "negatedLabel": "Credit enhancement income"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CreditFacilityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CreditFacilityAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Facility [Axis]",
        "documentation": "Information by type of credit facility. Credit facilities provide capital to borrowers without the need to structure a loan for each borrowing."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CreditFacilityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CreditFacilityDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Facility [Domain]",
        "documentation": "Type of credit facility. Credit facilities provide capital to borrowers without the need to structure a loan for each borrowing."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CreditLossStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CreditLossStatusAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Loss Status [Axis]",
        "documentation": "Information by credit loss status of financial asset."
       }
      }
     },
     "auth_ref": [
      "r936",
      "r976",
      "r981"
     ]
    },
    "us-gaap_CreditLossStatusDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CreditLossStatusDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivables Acquired with Deteriorated Credit Quality [Domain]",
        "documentation": "Credit loss status of financial asset."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CreditQualityInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CreditQualityInformationAbstract",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Quality Information [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "frst_CreditQualityRevolvingLoansConvertedToTermLoansAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "CreditQualityRevolvingLoansConvertedToTermLoansAbstract",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Credit Quality Revolving Loans Converted to Term Loans [Abstract].",
        "label": "Credit Quality Revolving Loans Converted to Term Loans [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CriticizedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CriticizedMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Criticized [Member]",
        "documentation": "Credit rating classification which identifies weaknesses related to credit risk. Includes, but is not limited to, special mention, substandard and doubtful classifications. Excludes noncriticized classification."
       }
      }
     },
     "auth_ref": [
      "r980"
     ]
    },
    "dei_CurrentFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CurrentFiscalYearEndDate",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Fiscal Year End Date",
        "documentation": "End date of current fiscal year in the format --MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "DEBT AND OTHER BORROWINGS (Restated) [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtDisclosureTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Disclosure [Text Block]",
        "verboseLabel": "DEBT AND OTHER BORROWINGS (Restated)",
        "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": [
      "r134",
      "r241",
      "r423",
      "r429",
      "r430",
      "r431",
      "r432",
      "r433",
      "r434",
      "r439",
      "r446",
      "r447",
      "r449"
     ]
    },
    "us-gaap_DebtInstrumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument [Axis]",
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities."
       }
      }
     },
     "auth_ref": [
      "r21",
      "r104",
      "r105",
      "r149",
      "r150",
      "r246",
      "r424",
      "r425",
      "r426",
      "r427",
      "r428",
      "r430",
      "r435",
      "r436",
      "r437",
      "r438",
      "r440",
      "r441",
      "r442",
      "r443",
      "r444",
      "r445",
      "r552",
      "r779",
      "r780",
      "r781",
      "r782",
      "r783",
      "r924"
     ]
    },
    "frst_DebtInstrumentBasisPointsSpread": {
     "xbrltype": "pureItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "DebtInstrumentBasisPointsSpread",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument basis points spread.",
        "label": "Debt Instrument Basis Points Spread",
        "terseLabel": "Debt instrument basis points spread"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentBasisSpreadOnVariableRate1": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentBasisSpreadOnVariableRate1",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Basis Spread on Variable Rate",
        "verboseLabel": "Basis spread on LIBOR",
        "documentation": "Percentage points added to the reference rate to compute the variable rate on the debt instrument."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentDescriptionOfVariableRateBasis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentDescriptionOfVariableRateBasis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Description of Variable Rate Basis",
        "verboseLabel": "Description of variable rate basis",
        "documentation": "Description of reference rate used for variable rate of debt instrument."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentFaceAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentFaceAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt instrument, face amount",
        "terseLabel": "Debt instrument",
        "documentation": "Face (par) amount of debt instrument at time of issuance."
       }
      }
     },
     "auth_ref": [
      "r92",
      "r94",
      "r424",
      "r552",
      "r780",
      "r781"
     ]
    },
    "us-gaap_DebtInstrumentInterestRateStatedPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentInterestRateStatedPercentage",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Interest Rate, Stated Percentage",
        "verboseLabel": "Interest rate percentage",
        "documentation": "Contractual interest rate for funds borrowed, under the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r24",
      "r425"
     ]
    },
    "us-gaap_DebtInstrumentLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentLineItems",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r246",
      "r424",
      "r425",
      "r426",
      "r427",
      "r428",
      "r430",
      "r435",
      "r436",
      "r437",
      "r438",
      "r440",
      "r441",
      "r442",
      "r443",
      "r444",
      "r445",
      "r448",
      "r552",
      "r779",
      "r780",
      "r781",
      "r782",
      "r783",
      "r924"
     ]
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentNameDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Name [Domain]",
        "documentation": "The name for the particular debt instrument or borrowing that distinguishes it from other debt instruments or borrowings, including draws against credit facilities."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r246",
      "r424",
      "r425",
      "r426",
      "r427",
      "r428",
      "r430",
      "r435",
      "r436",
      "r437",
      "r438",
      "r440",
      "r441",
      "r442",
      "r443",
      "r444",
      "r445",
      "r552",
      "r779",
      "r780",
      "r781",
      "r782",
      "r783",
      "r924"
     ]
    },
    "us-gaap_DebtInstrumentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentTable",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Long-term Debt Instruments [Table]",
        "documentation": "A table or schedule providing information pertaining to long-term debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r66",
      "r67",
      "r91",
      "r92",
      "r94",
      "r102",
      "r135",
      "r136",
      "r246",
      "r424",
      "r425",
      "r426",
      "r427",
      "r428",
      "r430",
      "r435",
      "r436",
      "r437",
      "r438",
      "r440",
      "r441",
      "r442",
      "r443",
      "r444",
      "r445",
      "r448",
      "r552",
      "r779",
      "r780",
      "r781",
      "r782",
      "r783",
      "r924"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Amortized Cost, Excluding Accrued Interest, after Allowance for Credit Loss",
        "totalLabel": "Available-for-sale Debt Securities, Amortized Cost Basis, Total",
        "documentation": "Amortized cost excluding accrued interest, after 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": [
      "r982"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLossCurrent",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheetsParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Amortized Cost, Excluding Accrued Interest, after Allowance for Credit Loss, Current",
        "terseLabel": "Securities available-for-sale fair value (in dollars)",
        "documentation": "Amortized cost excluding accrued interest, after 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), classified as current."
       }
      }
     },
     "auth_ref": [
      "r982"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available-for-sale Debt Securities, Amortized Cost Basis, Total",
        "verboseLabel": "Available for sale, amortized cost",
        "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": [
      "r387"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer",
        "verboseLabel": "Available for sale, 12 months or more, fair value",
        "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": [
      "r181",
      "r391",
      "r777"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss",
        "negatedLabel": "Available for sale, 12 months or more, unrealized losses",
        "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": [
      "r181",
      "r391"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months",
        "verboseLabel": "Available for sale, less than 12 months, fair value",
        "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": [
      "r181",
      "r391",
      "r777"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss",
        "negatedLabel": "Available for sale, less than 12 months, unrealized losses",
        "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": [
      "r181",
      "r391"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available-for-sale Securities, Debt Securities",
        "netLabel": "Available for sale, fair value",
        "positiveLabel": "Securities available for sale",
        "terseLabel": "Securities available-for-sale, at fair value (amortized cost of $256,101 and $269,036, respectively)",
        "verboseLabel": "Available for sale, Fair value",
        "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": [
      "r982"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleTable",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r334",
      "r335",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleTableTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-sale [Table Text Block]",
        "verboseLabel": "Schedule of amortized cost and fair value of securities available-for-sale",
        "documentation": "Tabular disclosure of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r939",
      "r940",
      "r941",
      "r942",
      "r943",
      "r944",
      "r945",
      "r946",
      "r947",
      "r948",
      "r949",
      "r968"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-sale, Unrealized Loss Position",
        "totalLabel": "Available for sale, total fair value",
        "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": [
      "r179",
      "r389",
      "r777"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss",
        "negatedTotalLabel": "Available for sale, total unrealized losses",
        "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": [
      "r180",
      "r390"
     ]
    },
    "frst_DebtSecuritiesHeldToMaturityContinuousUnrealizedLossPosition12MonthsOrLonger": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "DebtSecuritiesHeldToMaturityContinuousUnrealizedLossPosition12MonthsOrLonger",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails": {
       "parentTag": "frst_DebtSecuritiesHeldToMaturityUnrealizedLossPositionTotal",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt securities, held to maturity, continuous unrealized loss position, 12 months or longer.",
        "label": "Debt Securities, Held To Maturity, Continuous Unrealized Loss Position, 12 Months or Longer",
        "verboseLabel": "Held to Maturity, 12 months or more, fair value"
       }
      }
     },
     "auth_ref": []
    },
    "frst_DebtSecuritiesHeldToMaturityContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "DebtSecuritiesHeldToMaturityContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails": {
       "parentTag": "frst_DebtSecuritiesHeldToMaturityUnrealizedLossPositionAccumulatedLossTotal",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt securities, held to maturity, continuous unrealized loss position, 12 months or longer, accumulated loss.",
        "label": "Debt Securities, Held To Maturity, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss",
        "negatedLabel": "Held to Maturity, 12 months or more, unrecognized losses"
       }
      }
     },
     "auth_ref": []
    },
    "frst_DebtSecuritiesHeldToMaturityContinuousUnrealizedLossPositionLessThan12Months": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "DebtSecuritiesHeldToMaturityContinuousUnrealizedLossPositionLessThan12Months",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails": {
       "parentTag": "frst_DebtSecuritiesHeldToMaturityUnrealizedLossPositionTotal",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt securities, held to maturity, continuous unrealized loss position, less than 12 months,",
        "label": "Debt Securities, Held To Maturity, Continuous Unrealized Loss Position, Less than 12 Months",
        "terseLabel": "Held to maturity, less than 12 months, fair value"
       }
      }
     },
     "auth_ref": []
    },
    "frst_DebtSecuritiesHeldToMaturityContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "DebtSecuritiesHeldToMaturityContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails": {
       "parentTag": "frst_DebtSecuritiesHeldToMaturityUnrealizedLossPositionAccumulatedLossTotal",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt securities, held to maturity, continuous unrealized loss position, less than 12 months, accumulated loss.",
        "label": "Debt Securities, Held To Maturity, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss",
        "negatedLabel": "Held to Maturity, Less than 12 months, unrecognized losses"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostUnrecognizedGainsAndLossesAndFairValueOfHeldToMaturitySecuritiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostUnrecognizedGainsAndLossesAndFairValueOfHeldToMaturitySecuritiesDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Held-to-Maturity, Excluding Accrued Interest, after Allowance for Credit Loss",
        "terseLabel": "Securities held-to-maturity, at amortized cost (fair value of $11,369 and $12,449, respectively)",
        "totalLabel": "Held-to maturity, Amortized Cost, Total",
        "documentation": "Amount excluding accrued interest, after allowance for credit loss, of investment in debt security measured at amortized cost (held-to-maturity)."
       }
      }
     },
     "auth_ref": [
      "r349",
      "r351",
      "r977"
     ]
    },
    "us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Held-to-maturity Securities",
        "verboseLabel": "Held to maturity, amortized cost",
        "documentation": "Amount excluding accrued interest, before allowance for credit loss, of investment in debt security measured at amortized cost (held-to-maturity)."
       }
      }
     },
     "auth_ref": [
      "r382",
      "r384",
      "r977"
     ]
    },
    "frst_DebtSecuritiesHeldToMaturityUnrealizedLossPositionAccumulatedLossTotal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "DebtSecuritiesHeldToMaturityUnrealizedLossPositionAccumulatedLossTotal",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt securities, held to maturity, unrealized loss position, accumulated loss, total.",
        "label": "Debt Securities, Held To Maturity, Unrealized Loss Position, Accumulated Loss, Total",
        "totalLabel": "Held to maturity, total unrecognized losses"
       }
      }
     },
     "auth_ref": []
    },
    "frst_DebtSecuritiesHeldToMaturityUnrealizedLossPositionTotal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "DebtSecuritiesHeldToMaturityUnrealizedLossPositionTotal",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt securities, held to maturity, unrealized loss position, total.",
        "label": "Debt Securities, Held To Maturity, Unrealized Loss Position, Total",
        "totalLabel": "Held to maturity, total fair value"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredIncomeTaxAssetsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredIncomeTaxAssetsNet",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Net",
        "terseLabel": "Deferred tax assets, net",
        "verboseLabel": "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, with jurisdictional netting."
       }
      }
     },
     "auth_ref": [
      "r501",
      "r502"
     ]
    },
    "frst_DemandDepositsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "DemandDepositsFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Demand deposits fair value disclosure.",
        "label": "Demand Deposits Fair Value Disclosure",
        "terseLabel": "Demand deposits"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Deposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Deposits",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Deposits",
        "totalLabel": "Total deposits",
        "documentation": "The aggregate of all deposit liabilities held by the entity, including foreign and domestic, interest and noninterest bearing; may include demand deposits, saving deposits, Negotiable Order of Withdrawal (NOW) and time deposits among others."
       }
      }
     },
     "auth_ref": [
      "r96"
     ]
    },
    "us-gaap_DepreciationNonproduction": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DepreciationNonproduction",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation",
        "verboseLabel": "Depreciation and amortization",
        "documentation": "The expense recognized in the current period that allocates the cost of nonproduction tangible assets over their useful lives."
       }
      }
     },
     "auth_ref": [
      "r7",
      "r64"
     ]
    },
    "us-gaap_DerivativeAssetLiabilityNetMeasurementInput": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeAssetLiabilityNetMeasurementInput",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Asset (Liability) Net, Measurement Input",
        "terseLabel": "Measurement input",
        "documentation": "Value of input used to measure net derivative asset (liability)."
       }
      }
     },
     "auth_ref": [
      "r536"
     ]
    },
    "us-gaap_DerivativeAssetNotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeAssetNotionalAmount",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Asset, Notional Amount",
        "terseLabel": "Derivative assets, Notional Amount",
        "documentation": "Nominal or face amount used to calculate payments on the derivative asset."
       }
      }
     },
     "auth_ref": [
      "r725",
      "r729",
      "r732",
      "r735",
      "r994",
      "r995",
      "r996"
     ]
    },
    "us-gaap_DerivativeAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative asset",
        "positiveTerseLabel": "Fair value of derivative asset",
        "terseLabel": "Consumer Program derivative",
        "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": [
      "r214",
      "r215",
      "r543",
      "r657",
      "r658",
      "r659",
      "r660",
      "r661",
      "r663",
      "r664",
      "r665",
      "r666",
      "r667",
      "r683",
      "r684",
      "r725",
      "r730",
      "r733",
      "r734",
      "r736",
      "r737",
      "r757",
      "r807",
      "r1023"
     ]
    },
    "us-gaap_DerivativeContractTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeContractTypeDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedTables",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Contract [Domain]",
        "documentation": "Financial instrument or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset."
       }
      }
     },
     "auth_ref": [
      "r665",
      "r667",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r690",
      "r691",
      "r692",
      "r693",
      "r703",
      "r704",
      "r705",
      "r706",
      "r709",
      "r710",
      "r711",
      "r712",
      "r725",
      "r727",
      "r733",
      "r736",
      "r805",
      "r807"
     ]
    },
    "us-gaap_DerivativeGainLossOnDerivativeNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeGainLossOnDerivativeNet",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Gain (Loss) on Derivative, Net",
        "terseLabel": "Consumer Program derivative",
        "documentation": "Amount of increase (decrease) in the fair value of derivatives recognized in the income statement."
       }
      }
     },
     "auth_ref": [
      "r997"
     ]
    },
    "us-gaap_DerivativeGainOnDerivative": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeGainOnDerivative",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Gain on Derivative",
        "terseLabel": "Consumer program derivative gain",
        "documentation": "Amount of increase in the fair value of derivatives recognized in the income statement."
       }
      }
     },
     "auth_ref": [
      "r515"
     ]
    },
    "frst_DerivativeGainOnDerivativeRelatedToCreditSupportAndLostInterestDueFromOthers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "DerivativeGainOnDerivativeRelatedToCreditSupportAndLostInterestDueFromOthers",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in the fair value of derivatives recognized in the income statement related to credit support and lost interest due from others.",
        "label": "Derivative, Gain on Derivative Related to Credit Support And Lost Interest Due From Others",
        "terseLabel": "Gain on derivative related to credit support and lost interest"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeGainStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeGainStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Gain, Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of income or comprehensive income that includes gain from derivative."
       }
      }
     },
     "auth_ref": [
      "r515"
     ]
    },
    "us-gaap_DerivativeInstrumentRiskAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeInstrumentRiskAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedTables",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instrument [Axis]",
        "documentation": "Information by type of derivative contract."
       }
      }
     },
     "auth_ref": [
      "r79",
      "r81",
      "r82",
      "r83",
      "r665",
      "r667",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r690",
      "r691",
      "r692",
      "r693",
      "r703",
      "r704",
      "r705",
      "r706",
      "r709",
      "r710",
      "r711",
      "r712",
      "r725",
      "r727",
      "r733",
      "r736",
      "r757",
      "r805",
      "r807"
     ]
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "DERIVATIVES (Restated)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Liability",
        "positiveTerseLabel": "Fair value of derivative liability",
        "terseLabel": "Derivative liabilities",
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities not subject to a master netting arrangement and not elected to be offset."
       }
      }
     },
     "auth_ref": [
      "r214",
      "r215",
      "r543",
      "r657",
      "r658",
      "r659",
      "r660",
      "r663",
      "r664",
      "r665",
      "r666",
      "r667",
      "r690",
      "r692",
      "r693",
      "r727",
      "r728",
      "r730",
      "r733",
      "r734",
      "r736",
      "r737",
      "r757",
      "r1023"
     ]
    },
    "us-gaap_DerivativeLiabilityNotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeLiabilityNotionalAmount",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Liability, Notional Amount",
        "terseLabel": "Derivative liabilities, Notional Amount",
        "documentation": "Nominal or face amount used to calculate payments on the derivative liability."
       }
      }
     },
     "auth_ref": [
      "r726",
      "r729",
      "r731",
      "r735",
      "r994",
      "r995",
      "r996"
     ]
    },
    "frst_DerivativeLiabilityRelatedToLoanPortfolio": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "DerivativeLiabilityRelatedToLoanPortfolio",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative liability related to loan portfolio.",
        "label": "Derivative Liability Related To Loan Portfolio",
        "terseLabel": "Consumer Program derivative"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeLossOnDerivative": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeLossOnDerivative",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Loss on Derivative",
        "negatedLabel": "Consumer program derivative loss",
        "documentation": "Amount of decrease in the fair value of derivatives recognized in the income statement."
       }
      }
     },
     "auth_ref": [
      "r515"
     ]
    },
    "us-gaap_DerivativeLossStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeLossStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Loss, Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of income or comprehensive income that includes loss from derivative."
       }
      }
     },
     "auth_ref": [
      "r515"
     ]
    },
    "us-gaap_DerivativesAndFairValueTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativesAndFairValueTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivatives and Fair Value [Text Block]",
        "terseLabel": "DERIVATIVES (Restated)",
        "documentation": "The entire disclosure for derivatives and fair value of assets and liabilities."
       }
      }
     },
     "auth_ref": [
      "r141",
      "r142"
     ]
    },
    "us-gaap_DerivativesFairValueLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativesFairValueLineItems",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivatives, Fair Value [Line Items]",
        "terseLabel": "DERIVATIVES",
        "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_DerivativesPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativesPolicyTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivatives, Policy [Policy Text Block]",
        "verboseLabel": "Interest Rate Swaps",
        "documentation": "Disclosure of accounting policy for its derivative instruments and hedging activities."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r74",
      "r75",
      "r77",
      "r85",
      "r245"
     ]
    },
    "frst_DerivativesUnderlyingCashFlows": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "DerivativesUnderlyingCashFlows",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of underlying cash flows of derivatives.",
        "label": "Derivatives, Underlying Cash Flows",
        "terseLabel": "Underlying expected cash flows of derivatives"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DilutiveSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DilutiveSecurities",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails": {
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dilutive Securities, Effect on Basic Earnings Per Share, Total",
        "verboseLabel": "Effect of dilutive stock options and and unvested restricted stock - Income (Numerator) (in dollars)",
        "documentation": "Amount of increase (decrease) to net income used for calculating diluted earnings per share (EPS), resulting from the assumed exercise stock options, restrictive stock units (RSUs), convertible preferred stock of an employee stock ownership plan (ESOP), and other dilutive convertible securities."
       }
      }
     },
     "auth_ref": [
      "r47"
     ]
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Compensation Related Costs, Share-Based Payments [Text Block]",
        "verboseLabel": "STOCK-BASED COMPENSATION",
        "documentation": "The entire disclosure for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r461",
      "r465",
      "r493",
      "r494",
      "r496",
      "r792"
     ]
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "STOCK- BASED COMPENSATION"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DividendsCommonStockCash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DividendsCommonStockCash",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends, Common Stock, Cash",
        "negatedLabel": "Dividends on common stock",
        "documentation": "Amount of paid and unpaid common stock dividends declared with the form of settlement in cash."
       }
      }
     },
     "auth_ref": [
      "r137"
     ]
    },
    "dei_DocumentFiscalPeriodFocus": {
     "xbrltype": "fiscalPeriodItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFiscalPeriodFocus",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Period Focus",
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3.  1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentFiscalYearFocus": {
     "xbrltype": "gYearItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFiscalYearFocus",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Year Focus",
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentPeriodEndDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Period End Date",
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period.  The format of the date is YYYY-MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentQuarterlyReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentQuarterlyReport",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Quarterly Report",
        "documentation": "Boolean flag that is true only for a form used as an quarterly report."
       }
      }
     },
     "auth_ref": [
      "r820"
     ]
    },
    "dei_DocumentTransitionReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentTransitionReport",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Transition Report",
        "documentation": "Boolean flag that is true only for a form used as a transition report."
       }
      }
     },
     "auth_ref": [
      "r853"
     ]
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentType",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Type",
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DoubtfulMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DoubtfulMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Doubtful [Member]",
        "documentation": "A category of financing receivables that have all the weaknesses inherent in those classified as substandard, with the added characteristic that the weaknesses make collection or liquidation in full, on the basis of currently existing facts, conditions, and values, highly questionable and improbable."
       }
      }
     },
     "auth_ref": [
      "r57",
      "r980"
     ]
    },
    "us-gaap_EarningsPerShareAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "EARNINGS PER SHARE (Restated)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareBasic": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareBasic",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Basic",
        "terseLabel": "Basic EPS - Per Share Amount (in dollars per share)",
        "verboseLabel": "Earnings (loss) 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": [
      "r231",
      "r252",
      "r253",
      "r255",
      "r256",
      "r258",
      "r264",
      "r267",
      "r277",
      "r278",
      "r279",
      "r283",
      "r529",
      "r530",
      "r599",
      "r627",
      "r761"
     ]
    },
    "us-gaap_EarningsPerShareDiluted": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareDiluted",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Diluted",
        "terseLabel": "Diluted EPS- Per Share Amount (in dollars per share)",
        "verboseLabel": "Earnings (loss) 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": [
      "r231",
      "r252",
      "r253",
      "r255",
      "r256",
      "r258",
      "r267",
      "r277",
      "r278",
      "r279",
      "r283",
      "r529",
      "r530",
      "r599",
      "r627",
      "r761"
     ]
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share [Text Block]",
        "terseLabel": "EARNINGS PER SHARE (Restated)",
        "documentation": "The entire disclosure for earnings per share."
       }
      }
     },
     "auth_ref": [
      "r263",
      "r280",
      "r281",
      "r282"
     ]
    },
    "frst_EasternVirginiaBanksharesIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "EasternVirginiaBanksharesIncMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Eastern Virginia Bankshares Inc [Member].",
        "label": "Eastern Virginia Bankshares Inc [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "frst_EffectOfDilutiveStockOptionsAndWarrantsPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "EffectOfDilutiveStockOptionsAndWarrantsPerShare",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the effect of dilutive stock options and warrants per share.",
        "label": "Effect Of Dilutive Stock Options and Warrants Per Share",
        "verboseLabel": "Effect of dilutive stock options and and unvested restricted stock- Per Share Amount (in dollars per share)"
       }
      }
     },
     "auth_ref": []
    },
    "frst_EmployeeLoanFraudMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "EmployeeLoanFraudMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Employee loan fraud.",
        "label": "Employee Loan Fraud [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Employee Service Share-Based Compensation, Nonvested Awards, Total Compensation Cost Not Yet Recognized, Period For Recognition",
        "verboseLabel": "Unrecognized compensation cost weighted average recognition period",
        "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": [
      "r495"
     ]
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Employee service share-based compensation, nonvested awards, compensation not yet recognized, share-based awards other than options",
        "terseLabel": "Unrecognized compensation expense associated with the other than options",
        "documentation": "Amount of cost to be recognized for nonvested award under share-based payment arrangement. Excludes share and unit options."
       }
      }
     },
     "auth_ref": [
      "r993"
     ]
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Employee Service Share-Based Compensation, Nonvested Awards, Total Compensation Cost Not Yet Recognized, Stock Options",
        "verboseLabel": "Unrecognized compensation expense associated with the stock options",
        "documentation": "Amount of cost to be recognized for option under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r993"
     ]
    },
    "us-gaap_EmployeeStockOptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EmployeeStockOptionMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails",
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Employee Stock Option [Member]",
        "terseLabel": "Employee Stock Option",
        "documentation": "Share-based payment arrangement granting right, subject to vesting and other restrictions, to purchase or sell certain number of shares at predetermined price for specified period of time."
       }
      }
     },
     "auth_ref": []
    },
    "frst_EndingAllowanceBalanceAttributableToLoansAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "EndingAllowanceBalanceAttributableToLoansAbstract",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ending Allowance Balance Attributable To Loans [Abstract]",
        "verboseLabel": "Ending allowance balance attributable to loans:"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine1": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressAddressLine1",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line One",
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCityOrTown": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressCityOrTown",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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/2023",
     "localname": "EntityAddressPostalZipCode",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Postal Zip Code",
        "documentation": "Code for the postal or zip code"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressStateOrProvince": {
     "xbrltype": "stateOrProvinceItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressStateOrProvince",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, State or Province",
        "documentation": "Name of the state or province."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Central Index Key",
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK."
       }
      }
     },
     "auth_ref": [
      "r818"
     ]
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCommonStockSharesOutstanding",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Common Stock, Shares Outstanding",
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCurrentReportingStatus": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCurrentReportingStatus",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Current Reporting Status",
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityEmergingGrowthCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityEmergingGrowthCompany",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Emerging Growth Company",
        "documentation": "Indicate if registrant meets the emerging growth company criteria."
       }
      }
     },
     "auth_ref": [
      "r818"
     ]
    },
    "dei_EntityFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityFileNumber",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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/2023",
     "localname": "EntityFilerCategory",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Filer Category",
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": [
      "r818"
     ]
    },
    "dei_EntityIncorporationStateCountryCode": {
     "xbrltype": "edgarStateCountryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityIncorporationStateCountryCode",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Incorporation, State or Country Code",
        "documentation": "Two-character EDGAR code representing the state or country of incorporation."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityInteractiveDataCurrent": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityInteractiveDataCurrent",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Interactive Data Current",
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files)."
       }
      }
     },
     "auth_ref": [
      "r892"
     ]
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Registrant Name",
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC."
       }
      }
     },
     "auth_ref": [
      "r818"
     ]
    },
    "dei_EntityShellCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityShellCompany",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Shell Company",
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r818"
     ]
    },
    "dei_EntitySmallBusiness": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntitySmallBusiness",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Small Business",
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC)."
       }
      }
     },
     "auth_ref": [
      "r818"
     ]
    },
    "dei_EntityTaxIdentificationNumber": {
     "xbrltype": "employerIdItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityTaxIdentificationNumber",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Tax Identification Number",
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS."
       }
      }
     },
     "auth_ref": [
      "r818"
     ]
    },
    "us-gaap_EquipmentExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquipmentExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Furniture and Equipment Expenses",
        "verboseLabel": "Furniture and equipment expenses",
        "documentation": "This element represents equipment expense including depreciation, repairs, rentals, and service contract costs. This item also includes equipment purchases which do not qualify for capitalization in accordance with the entity's accounting policy. This item may also include furniture expenses."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityComponentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityComponentDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfChangesInAccumulatedOtherComprehensiveIncomeByComponentDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Component [Domain]",
        "documentation": "Components of equity are the parts of the total Equity balance including that which is allocated to common, preferred, treasury stock, retained earnings, etc."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r205",
      "r226",
      "r227",
      "r228",
      "r247",
      "r248",
      "r249",
      "r251",
      "r259",
      "r261",
      "r284",
      "r366",
      "r369",
      "r452",
      "r497",
      "r498",
      "r499",
      "r504",
      "r505",
      "r520",
      "r521",
      "r522",
      "r523",
      "r524",
      "r525",
      "r528",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r561",
      "r641",
      "r642",
      "r643",
      "r655",
      "r715"
     ]
    },
    "ecd_EquityValuationAssumptionDifferenceFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "EquityValuationAssumptionDifferenceFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Valuation Assumption Difference, Footnote [Text Block]",
        "terseLabel": "Equity Valuation Assumption Difference, Footnote"
       }
      }
     },
     "auth_ref": [
      "r861"
     ]
    },
    "ecd_ErrCompAnalysisTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "ErrCompAnalysisTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Erroneous Compensation Analysis [Text Block]",
        "terseLabel": "Erroneous Compensation Analysis"
       }
      }
     },
     "auth_ref": [
      "r825",
      "r836",
      "r846",
      "r871"
     ]
    },
    "ecd_ErrCompRecoveryTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "ErrCompRecoveryTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Erroneously Awarded Compensation Recovery [Table]",
        "terseLabel": "Erroneously Awarded Compensation Recovery"
       }
      }
     },
     "auth_ref": [
      "r822",
      "r833",
      "r843",
      "r868"
     ]
    },
    "us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementByRestatementPeriodAndAmountAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementByRestatementPeriodAndAmountAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Error Correction, Type [Axis]",
        "documentation": "Information by type of error correction."
       }
      }
     },
     "auth_ref": [
      "r252",
      "r253",
      "r254",
      "r258",
      "r259",
      "r260",
      "r261"
     ]
    },
    "us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementLineItems",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfChangesInStockholdersEquityDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Error Corrections and Prior Period Adjustments Restatement [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": [
      "r252",
      "r253",
      "r254",
      "r258",
      "r259",
      "r260",
      "r261",
      "r283"
     ]
    },
    "us-gaap_EstimateOfFairValueFairValueDisclosureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EstimateOfFairValueFairValueDisclosureMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimated Fair Value",
        "documentation": "Measured as an estimate of fair value."
       }
      }
     },
     "auth_ref": [
      "r437",
      "r543",
      "r780",
      "r781"
     ]
    },
    "ecd_ExecutiveCategoryAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "ExecutiveCategoryAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Executive Category [Axis]",
        "terseLabel": "Executive Category:"
       }
      }
     },
     "auth_ref": [
      "r867"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Assets and Liabilities Measured On Recurring and Nonrecurring Basis [Line Items]",
        "verboseLabel": "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": [
      "r532",
      "r533",
      "r538"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measurements, Recurring and Nonrecurring [Table]",
        "documentation": "Disclosure of information about asset and liability measured at fair value on recurring and nonrecurring basis."
       }
      }
     },
     "auth_ref": [
      "r532",
      "r533",
      "r538"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Table Text Block]",
        "terseLabel": "Schedule of key unobservable inputs used in determining the fair value",
        "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": [
      "r15"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnNonrecurringBasisTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsMeasuredOnNonrecurringBasisTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Assets Measured On Non Recurring Basis [Table Text Block]",
        "verboseLabel": "Schedule of assets measured at fair value on non recurring basis",
        "documentation": "Tabular disclosure of assets and liabilities by class, including financial instruments measured at fair value that are classified in shareholders' equity, if any, that are measured at fair value on a nonrecurring basis in periods after initial recognition (for example, impaired assets). Disclosures may include, but are not limited to: (a) the fair value measurements recorded and the reasons for the measurements and (b) the level within the fair value hierarchy in which the fair value measurements are categorized in their entirety (levels 1, 2, 3)."
       }
      }
     },
     "auth_ref": [
      "r15",
      "r88",
      "r143"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Assets Measured on Recurring Basis [Table Text Block]",
        "verboseLabel": "Schedule of assets measured at fair value on a recurring basis",
        "documentation": "Tabular disclosure of assets, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, by class that are measured at fair value on a recurring basis. The disclosures contemplated herein include the fair value measurements at the reporting date by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets (Level 1), significant other observable inputs (Level 2), and significant unobservable inputs (Level 3)."
       }
      }
     },
     "auth_ref": [
      "r88",
      "r143"
     ]
    },
    "us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]",
        "verboseLabel": "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_FairValueByBalanceSheetGroupingTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByBalanceSheetGroupingTable",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, By Balance Sheet Grouping [Table]",
        "documentation": "Disclosure of information about the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities."
       }
      }
     },
     "auth_ref": [
      "r88",
      "r89",
      "r90"
     ]
    },
    "us-gaap_FairValueByBalanceSheetGroupingTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByBalanceSheetGroupingTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, by Balance Sheet Grouping [Table Text Block]",
        "verboseLabel": "Schedule of estimated fair values and fair value hierarchy levels of financial instruments",
        "documentation": "Tabular disclosure of the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities."
       }
      }
     },
     "auth_ref": [
      "r88",
      "r89"
     ]
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Hierarchy [Axis]",
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient."
       }
      }
     },
     "auth_ref": [
      "r437",
      "r454",
      "r455",
      "r456",
      "r457",
      "r458",
      "r459",
      "r533",
      "r565",
      "r566",
      "r567",
      "r780",
      "r781",
      "r786",
      "r787",
      "r788"
     ]
    },
    "us-gaap_FairValueByMeasurementBasisAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByMeasurementBasisAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Basis [Axis]",
        "documentation": "Information by measurement basis."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r88",
      "r437",
      "r780",
      "r781"
     ]
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByMeasurementFrequencyAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Frequency [Axis]",
        "documentation": "Information by measurement frequency."
       }
      }
     },
     "auth_ref": [
      "r532",
      "r533",
      "r535",
      "r536",
      "r539"
     ]
    },
    "us-gaap_FairValueDisclosureOffbalanceSheetRisksAmountLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueDisclosureOffbalanceSheetRisksAmountLiability",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosure, Off-Balance Sheet Risks, Amount, Liability",
        "verboseLabel": "Off balance sheet commitments",
        "documentation": "The fair value of financial liabilities, which are not recognized in the financial statements (off-balance sheet) because they fail to meet some other criterion for recognition."
       }
      }
     },
     "auth_ref": [
      "r543"
     ]
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueDisclosuresAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "FAIR VALUE (Revised and Restated)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueDisclosuresTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Text Block]",
        "verboseLabel": "FAIR VALUE (Revised and Restated)",
        "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": [
      "r531"
     ]
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueInputsLevel1Member",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r437",
      "r454",
      "r459",
      "r533",
      "r565",
      "r786",
      "r787",
      "r788"
     ]
    },
    "frst_FairValueInputsLevel2AndLevel3Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "FairValueInputsLevel2AndLevel3Member",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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, and unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value Inputs Level 2 and Level 3 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueInputsLevel2Member",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r437",
      "r454",
      "r459",
      "r533",
      "r566",
      "r780",
      "r781",
      "r786",
      "r787",
      "r788"
     ]
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueInputsLevel3Member",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "verboseLabel": "Level 3",
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r437",
      "r454",
      "r455",
      "r456",
      "r457",
      "r458",
      "r459",
      "r533",
      "r567",
      "r780",
      "r781",
      "r786",
      "r787",
      "r788"
     ]
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementFrequencyDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurement Frequency [Domain]",
        "documentation": "Measurement frequency."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurements, Fair Value Hierarchy [Domain]",
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value."
       }
      }
     },
     "auth_ref": [
      "r437",
      "r454",
      "r455",
      "r456",
      "r457",
      "r458",
      "r459",
      "r565",
      "r566",
      "r567",
      "r780",
      "r781",
      "r786",
      "r787",
      "r788"
     ]
    },
    "us-gaap_FairValueMeasurementsNonrecurringMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementsNonrecurringMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurements, Nonrecurring [Member]",
        "documentation": "Infrequent fair value measurement. Includes, but is not limited to, fair value adjustment for impairment of asset, liability or equity, not frequently measured at fair value."
       }
      }
     },
     "auth_ref": [
      "r532",
      "r533",
      "r535",
      "r536",
      "r537",
      "r539"
     ]
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementsRecurringMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurements, 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": [
      "r531",
      "r539"
     ]
    },
    "frst_FairValueOfNonderivativeInstruments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "FairValueOfNonderivativeInstruments",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of nonderivative instruments.",
        "label": "Fair Value of Nonderivative Instruments",
        "terseLabel": "Best efforts assets, Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "frst_FairValueOffBalanceSheetCommitmentDiscontinuedOperationsAmountLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "FairValueOffBalanceSheetCommitmentDiscontinuedOperationsAmountLiability",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, off-balance sheet commitment discontinued operations, amount, liability.",
        "label": "Fair Value, Off-balance Sheet Commitment Discontinued Operations, Amount, Liability",
        "terseLabel": "Investment in non-marketable equity securities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Values Derivatives, Balance Sheet Location, by Derivative Contract Type [Table]",
        "documentation": "Schedule that discloses the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position."
       }
      }
     },
     "auth_ref": [
      "r78",
      "r80",
      "r87"
     ]
    },
    "us-gaap_FederalFundsPurchasedAndSecuritiesSoldUnderAgreementsToRepurchase": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FederalFundsPurchasedAndSecuritiesSoldUnderAgreementsToRepurchase",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Funds Purchased and Securities Sold under Agreements to Repurchase",
        "documentation": "Amount after offset of short term borrowing where a bank borrows, at the federal funds rate, from another bank and securities that an entity sells and agrees to repurchase at a specified date for a specified price."
       }
      }
     },
     "auth_ref": [
      "r97"
     ]
    },
    "us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Funds Sold and Securities Borrowed or Purchased under Agreements to Resell, Fair Value Disclosure",
        "documentation": "Fair value portion of federal funds sold and securities borrowed or purchased under agreements to resell."
       }
      }
     },
     "auth_ref": [
      "r152"
     ]
    },
    "srt_FederalHomeLoanBankAdvancesBranchOfFHLBBankAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "FederalHomeLoanBankAdvancesBranchOfFHLBBankAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Home Loan Bank Branch [Axis]"
       }
      }
     },
     "auth_ref": [
      "r1017"
     ]
    },
    "us-gaap_FederalHomeLoanBankAdvancesBranchOfFHLBBankLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FederalHomeLoanBankAdvancesBranchOfFHLBBankLineItems",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Home Loan Bank, Advances, Branch Of Fhlb Bank [Line Items]",
        "verboseLabel": "Federal Home Loan Bank, Advances, Branch of FHLB Bank [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_FederalHomeLoanBankAdvancesBranchOfFHLBBankStateDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "FederalHomeLoanBankAdvancesBranchOfFHLBBankStateDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Home Loan Bank, Advances, Branch Of Fhlb Bank, State [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresCollateralPledged1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresCollateralPledged1",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Home Loan Bank, Advances, General Debt Obligations, Disclosures, Collateral Pledged",
        "verboseLabel": "FHLB advances, pledged as collateral",
        "documentation": "Amount of the collateral pledged in support of federal home loan bank advances outstanding."
       }
      }
     },
     "auth_ref": [
      "r103",
      "r170"
     ]
    },
    "us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresRepaymentAndPenalties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresRepaymentAndPenalties",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Home Loan Bank, Advances, General Debt Obligations, Disclosures, Repayment and Penalties",
        "terseLabel": "FHLB repayment/called",
        "documentation": "Amount of repayments and penalties incurred in the satisfaction or roll-over of Federal Home Loan Bank (FHLB) advance."
       }
      }
     },
     "auth_ref": [
      "r102",
      "r170"
     ]
    },
    "us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryDueWithinOneYearOfBalanceSheetDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FederalHomeLoanBankAdvancesMaturitiesSummaryDueWithinOneYearOfBalanceSheetDate",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Home Loan Bank, Advances, Maturities Summary, Due in Next Twelve Months",
        "terseLabel": "FHLB advances",
        "documentation": "Amount of advance from Federal Home Loan Bank (FHLBank) 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": [
      "r9",
      "r170"
     ]
    },
    "frst_FederalHomeLoanBankAdvancesShortTermFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "FederalHomeLoanBankAdvancesShortTermFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal home loan bank advances short term fair value disclosure.",
        "label": "Federal Home Loan Bank Advances Short Term Fair Value Disclosure",
        "terseLabel": "FHLB advances"
       }
      }
     },
     "auth_ref": []
    },
    "srt_FederalHomeLoanBankOfAtlantaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "FederalHomeLoanBankOfAtlantaMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Home Loan Bank of Atlanta [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FederalHomeLoanBankStockAndFederalReserveBankStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FederalHomeLoanBankStockAndFederalReserveBankStock",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Home Loan Bank Stock and Federal Reserve Bank Stock",
        "terseLabel": "Stock in Federal Reserve Bank (FRB) and Federal Home Loan Bank (FHLB)",
        "documentation": "Amount of Federal Home Loan Bank (FHLB) and Federal Reserve Bank stock."
       }
      }
     },
     "auth_ref": []
    },
    "frst_FederalReserveProgramAdvancesMaximumAmountAvailable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "FederalReserveProgramAdvancesMaximumAmountAvailable",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal reserve program, advances, maximum amount available.",
        "label": "Federal Reserve Program, Advances, Maximum Amount Available",
        "terseLabel": "Federal reserve program, advances, maximum amount available"
       }
      }
     },
     "auth_ref": []
    },
    "frst_FinancialAsset1To89DaysPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "FinancialAsset1To89DaysPastDueMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial Asset, 1 to 89 Days Past Due [Member].",
        "label": "Financial Asset, 1 to 89 Days Past Due [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancialAssetAcquiredWithCreditDeteriorationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialAssetAcquiredWithCreditDeteriorationMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivables Acquired with Deteriorated Credit Quality [Member]",
        "documentation": "Financial asset acquired with deteriorated credit quality."
       }
      }
     },
     "auth_ref": [
      "r936"
     ]
    },
    "us-gaap_FinancialAssetNotPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialAssetNotPastDueMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans Not Past Due",
        "documentation": "Financial asset not past due."
       }
      }
     },
     "auth_ref": [
      "r376",
      "r776"
     ]
    },
    "us-gaap_FinancialAssetOtherThanFinancialAssetAcquiredWithCreditDeteriorationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialAssetOtherThanFinancialAssetAcquiredWithCreditDeteriorationMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Asset, Other than Financial Asset Acquired with Credit Deterioration [Member]",
        "documentation": "Financial asset other than financial asset acquired with credit deterioration."
       }
      }
     },
     "auth_ref": [
      "r936"
     ]
    },
    "us-gaap_FinancialAssetPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialAssetPastDueMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Past Due",
        "documentation": "Financial asset past due."
       }
      }
     },
     "auth_ref": [
      "r376",
      "r776",
      "r935"
     ]
    },
    "us-gaap_FinancialInstrumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialInstrumentAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostUnrecognizedGainsAndLossesAndFairValueOfHeldToMaturitySecuritiesDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instrument [Axis]",
        "documentation": "Information by type of financial instrument."
       }
      }
     },
     "auth_ref": [
      "r334",
      "r335",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r371",
      "r372",
      "r376",
      "r377",
      "r383",
      "r388",
      "r392",
      "r393",
      "r448",
      "r451",
      "r526",
      "r562",
      "r563",
      "r564",
      "r565",
      "r566",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r577",
      "r578",
      "r579",
      "r580",
      "r581",
      "r582",
      "r583",
      "r584",
      "r585",
      "r586",
      "r587",
      "r588",
      "r589",
      "r590",
      "r591",
      "r592",
      "r625",
      "r777",
      "r904",
      "r905",
      "r906",
      "r907",
      "r908",
      "r909",
      "r910",
      "r968",
      "r969",
      "r970",
      "r971"
     ]
    },
    "us-gaap_FinancialInstrumentPerformanceStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialInstrumentPerformanceStatusAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instrument Performance Status [Axis]",
        "documentation": "Information by category of performance or non-performance status of financial instruments."
       }
      }
     },
     "auth_ref": [
      "r980"
     ]
    },
    "us-gaap_FinancialInstrumentPerformanceStatusDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialInstrumentPerformanceStatusDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instrument Performance Status [Domain]",
        "documentation": "Category of performance or non-performance status of financial instruments, including but not limited to, financing receivables, loans, debt, and investments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instruments, Financial Assets, Balance Sheet Groupings [Abstract]",
        "verboseLabel": "Financial assets:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancialLiabilitiesFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialLiabilitiesFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Liabilities Fair Value Disclosure",
        "terseLabel": "Liabilities, Fair Value Disclosure",
        "documentation": "Fair value of financial obligations, including, but not limited to, debt instruments, derivative liabilities, federal funds purchased and sold under agreements to repurchase, securities loaned or sold under agreements to repurchase, financial instruments sold not yet purchased, guarantees, line of credit, loans and notes payable, servicing liability, and trading liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "frst_FinancialReceivable30DaysOrMorePastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "FinancialReceivable30DaysOrMorePastDueMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset more than 30 days or more past due.",
        "label": "Financial Receivable 30 Days or More Past Due [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing receivable, allowance for credit loss",
        "negatedLabel": "Less: allowance for credit losses",
        "negatedTerseLabel": "Allowance for credit losses",
        "netLabel": "Total ending allowance",
        "periodEndLabel": "Financing Receivable, Allowance for Credit Loss, Ending Balance",
        "periodStartLabel": "Financing Receivable, Allowance for Credit Loss, Beginning Balance",
        "terseLabel": "Allowances for loan losses",
        "verboseLabel": "Allowance for credit losses",
        "documentation": "Amount excluding accrued interest, of allowance for credit loss on financing receivable. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r977"
     ]
    },
    "us-gaap_FinancingReceivableCreditQualityIndicatorsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableCreditQualityIndicatorsTableTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable Risk Category Of Loans By Class Of Loans [Table Text Block]",
        "verboseLabel": "Schedule of the risk category of loans by class of loans",
        "documentation": "Tabular disclosure of financing receivables by credit quality indicator. The credit quality indicator is a statistic about the credit quality of financing receivables. Examples include, but not limited to, consumer credit risk scores, credit-rating-agency ratings, an entity's internal credit risk grades, loan-to-value ratios, collateral, collection experience and other internal metrics."
       }
      }
     },
     "auth_ref": [
      "r57",
      "r980"
     ]
    },
    "us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans and Leases Receivable, Net Amount",
        "totalLabel": "Net loans",
        "documentation": "Amortized cost excluding accrued interest, after allowance for credit loss, of financing receivable. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r977"
     ]
    },
    "us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Allowance for Loan and Lease Loss, Recovery of Bad Debts",
        "verboseLabel": "Recoveries",
        "documentation": "Amount, excluding accrued interest, of increase in allowance for credit loss on financing receivable from recovery. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r375"
     ]
    },
    "us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRollForward",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Excluding Accrued Interest, Allowance for Credit Loss [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_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Charge Offs",
        "negatedLabel": "Charge offs",
        "documentation": "Amount, excluding accrued interest, of decrease in allowance for credit loss on financing receivable from writeoff. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r374",
      "r385"
     ]
    },
    "us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffAfterRecovery": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffAfterRecovery",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Excluding Accrued Interest, Allowance for Credit Loss, Writeoff (Recovery)",
        "totalLabel": "Gross charge offs",
        "documentation": "Amount, excluding accrued interest, of decrease (increase) in allowance for credit loss on financing receivable from writeoff (recovery). Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r978"
     ]
    },
    "frst_FinancingReceivableExcludingAccruedInterestAndSecuredCollateralizedBorrowingsBeforeAllowanceForCreditLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "FinancingReceivableExcludingAccruedInterestAndSecuredCollateralizedBorrowingsBeforeAllowanceForCreditLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable excluding accrued interest and secured collateralized borrowings before allowance for credit loss.",
        "label": "Financing Receivable Excluding Accrued Interest And Secured Collateralized Borrowings Before Allowance For Credit Loss",
        "terseLabel": "Loans held for investment"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Excluding Accrued Interest, before Allowance for Credit Loss",
        "terseLabel": "Loans held for investment",
        "totalLabel": "Total",
        "verboseLabel": "Recorded Investment, Loans Not Past Due",
        "documentation": "Amortized cost excluding accrued interest, before allowance for credit loss, of financing receivable. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r382",
      "r384",
      "r977"
     ]
    },
    "us-gaap_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversal",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss",
       "weight": -1.0,
       "order": 2.0
      },
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision For Loan Losses",
        "terseLabel": "Provision for credit losses",
        "verboseLabel": "Provision for credit losses",
        "documentation": "Amount, excluding accrued interest, of credit loss expense (reversal of expense) on financing receivable. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r373"
     ]
    },
    "us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Originated, More than Five Years before Current Fiscal Year",
        "terseLabel": "Prior",
        "documentation": "Amortized cost excluding accrued interest, of financing receivable originated more than five years prior to current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r382",
      "r385",
      "r775"
     ]
    },
    "us-gaap_FinancingReceivableExcludingAccruedInterestRevolving": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableExcludingAccruedInterestRevolving",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Revolving",
        "terseLabel": "Revolving Loan",
        "documentation": "Amortized cost excluding accrued interest, of financing receivable that can be withdrawn, repaid, and redrawn."
       }
      }
     },
     "auth_ref": [
      "r382",
      "r385",
      "r775"
     ]
    },
    "us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableExcludingAccruedInterestRevolvingConvertedToTermLoan",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Revolving, Converted to Term Loan",
        "terseLabel": "Revolving Loans Converted to Term",
        "documentation": "Amortized cost excluding accrued interest, of revolving financing receivable converted to term loan."
       }
      }
     },
     "auth_ref": [
      "r382",
      "r386",
      "r775"
     ]
    },
    "us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Year Four, Originated, Three Years before Current Fiscal Year",
        "terseLabel": "Year five originated",
        "documentation": "Amortized cost excluding accrued interest, of financing receivable originated four years prior to current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r382",
      "r385",
      "r775"
     ]
    },
    "us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Excluding Accrued Interest, Year Four, Originated, Three Years before Current Fiscal Year",
        "terseLabel": "Year four originated",
        "documentation": "Amortized cost excluding accrued interest, of financing receivable originated three years prior to current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r382",
      "r385",
      "r775"
     ]
    },
    "us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Year One, Originated, Current Fiscal Year",
        "terseLabel": "Year originated",
        "documentation": "Amortized cost excluding accrued interest, of financing receivable originated in current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r382",
      "r385",
      "r775"
     ]
    },
    "us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Year Three, Originated, Two Years before Current Fiscal Year",
        "terseLabel": "Year three originated",
        "documentation": "Amortized cost excluding accrued interest, of financing receivable originated two years prior to current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r382",
      "r385",
      "r775"
     ]
    },
    "us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Year Two, Originated, Fiscal Year before Current Fiscal Year",
        "terseLabel": "Year two originated",
        "documentation": "Amortized cost excluding accrued interest of financing receivable originated in fiscal year prior to current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r382",
      "r385",
      "r775"
     ]
    },
    "frst_FinancingReceivableExpectedContractualPayment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "FinancingReceivableExpectedContractualPayment",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable expected contractual payment.",
        "label": "Financing Receivable Expected Contractual Payment",
        "terseLabel": "Financing receivable expected contractual payment"
       }
      }
     },
     "auth_ref": []
    },
    "frst_FinancingReceivableIndividuallyEvaluatedForImpairmentAllowanceForCreditLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "FinancingReceivableIndividuallyEvaluatedForImpairmentAllowanceForCreditLosses",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable, individually evaluated for impairment, allowance for credit losses.",
        "label": "Financing Receivable, Individually Evaluated for Impairment, Allowance For Credit Losses"
       }
      }
     },
     "auth_ref": []
    },
    "frst_FinancingReceivableIndividuallyEvaluatedLoanBalanceForCreditLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "FinancingReceivableIndividuallyEvaluatedLoanBalanceForCreditLosses",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable, individually evaluated loan balance for credit losses",
        "label": "Financing Receivable, Individually Evaluated Loan Balance for Credit Losses"
       }
      }
     },
     "auth_ref": []
    },
    "frst_FinancingReceivableModificationsContractsNumber": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "FinancingReceivableModificationsContractsNumber",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of financing receivables modified by debt restructurings.",
        "label": "Financing Receivable Modifications Contracts Number",
        "terseLabel": "TDRs during period"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableModificationsRecordedInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableModificationsRecordedInvestment",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Troubled Debt Restructuring",
        "terseLabel": "TDR amount",
        "documentation": "Accumulated amortized cost of financing receivable modified for debtor experiencing financial difficulty."
       }
      }
     },
     "auth_ref": [
      "r130",
      "r933",
      "r934"
     ]
    },
    "frst_FinancingReceivableNetFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "FinancingReceivableNetFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable net fair value.",
        "label": "Financing Receivable Net Fair Value",
        "terseLabel": "Net loans"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableNonaccrualInterestIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableNonaccrualInterestIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Nonaccrual, Interest Income",
        "terseLabel": "Additional income from interest if recognized",
        "documentation": "Amount of interest income on financing receivable on nonaccrual status."
       }
      }
     },
     "auth_ref": [
      "r379"
     ]
    },
    "us-gaap_FinancingReceivableNonaccrualNoAllowance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableNonaccrualNoAllowance",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Nonaccrual, No Allowance",
        "terseLabel": "Nonaccrual with No Credit Loss Allowance",
        "documentation": "Amortized cost of financing receivable on nonaccrual status with no allowance for credit loss. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r381"
     ]
    },
    "us-gaap_FinancingReceivablePortfolioSegmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivablePortfolioSegmentAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable Portfolio Segment [Axis]",
        "documentation": "Information by the level at which an entity develops and documents a systematic methodology to determine its allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r199",
      "r200",
      "r203",
      "r204",
      "r371",
      "r372",
      "r766",
      "r904",
      "r905",
      "r906",
      "r907",
      "r908",
      "r909",
      "r910",
      "r911",
      "r912",
      "r913"
     ]
    },
    "us-gaap_FinancingReceivablePortfolioSegmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivablePortfolioSegmentDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable Portfolio Segment [Domain]",
        "documentation": "Level at which an entity develops and documents a systematic methodology to determine its allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r199",
      "r200",
      "r203",
      "r204",
      "r904",
      "r905",
      "r906",
      "r907",
      "r908",
      "r909",
      "r910",
      "r911",
      "r912",
      "r913"
     ]
    },
    "us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, 90 Days or More Past Due, Still Accruing",
        "terseLabel": "90 Days or More",
        "documentation": "Amortized cost of financing receivable 90 days or more past due and still accruing. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r195",
      "r380",
      "r776"
     ]
    },
    "us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Financing Receivable, Type [Axis]",
        "documentation": "Information by class of financing receivable determined on the basis of initial measurement attribute, risk characteristics and method of monitoring and assessing credit risk."
       }
      }
     },
     "auth_ref": [
      "r58",
      "r60",
      "r199",
      "r200",
      "r203",
      "r204",
      "r326",
      "r327",
      "r328",
      "r329",
      "r330",
      "r376",
      "r377",
      "r383",
      "r765",
      "r767",
      "r771",
      "r775",
      "r776",
      "r904",
      "r905",
      "r906",
      "r907",
      "r908",
      "r909",
      "r910",
      "r911",
      "r912",
      "r913"
     ]
    },
    "us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Financing Receivable, Type [Domain]",
        "documentation": "Financing receivables determined on the basis of initial measurement attribute, risk characteristics and method of monitoring and assessing credit risk."
       }
      }
     },
     "auth_ref": [
      "r199",
      "r200",
      "r203",
      "r204",
      "r327",
      "r328",
      "r329",
      "r330",
      "r765",
      "r904",
      "r905",
      "r906",
      "r907",
      "r908",
      "r909",
      "r910",
      "r911",
      "r912",
      "r913"
     ]
    },
    "us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableRecordedInvestmentNonaccrualStatus",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing receivable, recorded investment, nonaccrual status",
        "verboseLabel": "Recorded Investment, Nonaccrual Loans",
        "documentation": "Amortized cost of financing receivable on nonaccrual status. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r59",
      "r201",
      "r202",
      "r378"
     ]
    },
    "us-gaap_FinancingReceivableRevolvingConvertedToTermLoanDuringPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableRevolvingConvertedToTermLoanDuringPeriod",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Revolving, Converted to Term Loan During Period",
        "terseLabel": "Revolving loans converted to term loans, during the period",
        "documentation": "Amount of increase in term loan from conversion of revolving financing receivable."
       }
      }
     },
     "auth_ref": [
      "r386"
     ]
    },
    "us-gaap_FinancingReceivableTransferToHeldForInvestmentValuationAllowanceExpenseReversal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableTransferToHeldForInvestmentValuationAllowanceExpenseReversal",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Transfer to Held-for-Investment, Valuation Allowance, Expense Reversal",
        "terseLabel": "Charge-offs",
        "documentation": "Amount of expense reversal of valuation allowance on financing receivable transferred to held-for-investment classification."
       }
      }
     },
     "auth_ref": [
      "r325",
      "r741"
     ]
    },
    "frst_FinancingReceivableTransfersAccountedForAsSecuredBorrowingsTransferredLoan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "FinancingReceivableTransfersAccountedForAsSecuredBorrowingsTransferredLoan",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of loans transferred during the period to other financial institution accounted for as secured borrowings.",
        "label": "Financing Receivable, Transfers Accounted For As Secured Borrowings, Transferred Loan",
        "terseLabel": "Principal balance of loans"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivables30To59DaysPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivables30To59DaysPastDueMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivables, 30 to 59 Days Past Due [Member]",
        "documentation": "Financial asset more than 29 days past due but fewer than 60 days past due."
       }
      }
     },
     "auth_ref": [
      "r776"
     ]
    },
    "us-gaap_FinancingReceivables60To89DaysPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivables60To89DaysPastDueMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivables, 60 to 89 Days Past Due [Member]",
        "documentation": "Financial asset more than 59 days past due but fewer than 90 days past due."
       }
      }
     },
     "auth_ref": [
      "r776"
     ]
    },
    "us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivablesEqualToGreaterThan90DaysPastDueMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivables, Equal to Greater than 90 Days Past Due [Member]",
        "documentation": "Financial asset equal to or greater than 90 days past due."
       }
      }
     },
     "auth_ref": [
      "r776"
     ]
    },
    "us-gaap_FinancingReceivablesPeriodPastDueAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivablesPeriodPastDueAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivables, Period Past Due [Axis]",
        "documentation": "Information by period in which financial asset is past due or not past due."
       }
      }
     },
     "auth_ref": [
      "r196",
      "r376",
      "r776"
     ]
    },
    "us-gaap_FinancingReceivablesPeriodPastDueDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivablesPeriodPastDueDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivables, Period Past Due [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": [
      "r196",
      "r376",
      "r776"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsNet",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets, Net",
        "terseLabel": "Intangible assets, net",
        "documentation": "Amount after amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life."
       }
      }
     },
     "auth_ref": [
      "r131",
      "r595"
     ]
    },
    "ecd_ForgoneRecoveryDueToDisqualificationOfTaxBenefitsAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "ForgoneRecoveryDueToDisqualificationOfTaxBenefitsAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Disqualification of Tax Benefits, Amount",
        "terseLabel": "Forgone Recovery due to Disqualification of Tax Benefits, Amount"
       }
      }
     },
     "auth_ref": [
      "r829",
      "r840",
      "r850",
      "r875"
     ]
    },
    "ecd_ForgoneRecoveryDueToExpenseOfEnforcementAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "ForgoneRecoveryDueToExpenseOfEnforcementAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Expense of Enforcement, Amount",
        "terseLabel": "Forgone Recovery due to Expense of Enforcement, Amount"
       }
      }
     },
     "auth_ref": [
      "r829",
      "r840",
      "r850",
      "r875"
     ]
    },
    "ecd_ForgoneRecoveryDueToViolationOfHomeCountryLawAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "ForgoneRecoveryDueToViolationOfHomeCountryLawAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Violation of Home Country Law, Amount",
        "terseLabel": "Forgone Recovery due to Violation of Home Country Law, Amount"
       }
      }
     },
     "auth_ref": [
      "r829",
      "r840",
      "r850",
      "r875"
     ]
    },
    "ecd_ForgoneRecoveryExplanationOfImpracticabilityTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "ForgoneRecoveryExplanationOfImpracticabilityTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery, Explanation of Impracticability [Text Block]",
        "terseLabel": "Forgone Recovery, Explanation of Impracticability"
       }
      }
     },
     "auth_ref": [
      "r829",
      "r840",
      "r850",
      "r875"
     ]
    },
    "ecd_ForgoneRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "ForgoneRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r829",
      "r840",
      "r850",
      "r875"
     ]
    },
    "frst_FraudLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "FraudLosses",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of fraud losses incurred during the period.",
        "label": "Fraud Losses",
        "terseLabel": "Fraud Losses",
        "verboseLabel": "Fraud losses"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GainLossOnDispositionOfAssets1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GainLossOnDispositionOfAssets1",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": -1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gain (Loss) on Disposition of Assets",
        "negatedLabel": "Loss on bank premises and equipment and assets held for sale",
        "documentation": "Amount of gain (loss) on sale or disposal of assets, including but not limited to property plant and equipment, intangible assets and equity in securities of subsidiaries or equity method investee."
       }
      }
     },
     "auth_ref": [
      "r923"
     ]
    },
    "us-gaap_GainLossOnSaleOfMortgageLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GainLossOnSaleOfMortgageLoans",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gain (loss) on sale of mortgage loans",
        "negatedLabel": "Net gains on mortgage banking",
        "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": [
      "r7",
      "r187",
      "r188",
      "r190"
     ]
    },
    "us-gaap_GainLossOnSalesOfConsumerLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GainLossOnSalesOfConsumerLoans",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 4.0
      },
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gain (Loss) on Sales of Consumer Loans",
        "negatedLabel": "Net gains on sale of loans",
        "terseLabel": "Gain on sale of loans",
        "documentation": "The gains (losses) included in earning that represent the difference between the sale price and the carrying value of consumer loans. 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": [
      "r7"
     ]
    },
    "us-gaap_GainsLossesOnSalesOfOtherRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GainsLossesOnSalesOfOtherRealEstate",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 6.0
      },
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": -1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Loss On Other Real Estate Owned",
        "negatedLabel": "Net gain on other real estate owned",
        "negatedTerseLabel": "Gain on other real estate owned",
        "documentation": "The net gain (loss) resulting from sales and other disposals of other real estate owned, increases (decreases) in the valuation allowance for foreclosed real estate, and write-downs of other real estate owned after acquisition or physical possession."
       }
      }
     },
     "auth_ref": [
      "r164"
     ]
    },
    "us-gaap_Goodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Goodwill",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill",
        "verboseLabel": "Goodwill",
        "documentation": "Amount after accumulated impairment loss of an asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized."
       }
      }
     },
     "auth_ref": [
      "r210",
      "r394",
      "r596",
      "r778",
      "r802",
      "r983",
      "r984"
     ]
    },
    "frst_GrossWriteOffOfReceivablePriorToYearFiveOriginatedCurrentFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "GrossWriteOffOfReceivablePriorToYearFiveOriginatedCurrentFiscalYear",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffAfterRecovery",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross write off of receivable prior to year five originated current fiscal year.",
        "label": "Gross Write Off Of Receivable Prior to Year Five Originated Current Fiscal Year"
       }
      }
     },
     "auth_ref": []
    },
    "frst_GrossWriteOffOfReceivableYearFiveOriginatedCurrentFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "GrossWriteOffOfReceivableYearFiveOriginatedCurrentFiscalYear",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffAfterRecovery",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross write off of receivable year five originated current fiscal year.",
        "label": "Gross Write Off Of Receivable Year Five Originated Current Fiscal Year"
       }
      }
     },
     "auth_ref": []
    },
    "frst_GrossWriteOffOfReceivableYearThreeOriginatedCurrentFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "GrossWriteOffOfReceivableYearThreeOriginatedCurrentFiscalYear",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffAfterRecovery",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross write off of receivable year three originated current fiscal year.",
        "label": "Gross Write Off Of Receivable Year Three Originated Current Fiscal Year"
       }
      }
     },
     "auth_ref": []
    },
    "frst_GrossWriteOffOfReceivableYearTwoOriginatedCurrentFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "GrossWriteOffOfReceivableYearTwoOriginatedCurrentFiscalYear",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffAfterRecovery",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross write off of receivable year two originated current fiscal year.",
        "label": "Gross Write Off Of Receivable Year Two Originated Current Fiscal Year"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_HedgedAssetFairValueHedge": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HedgedAssetFairValueHedge",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfHedgedAssetsAndCumulativeFairValueAdjustmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedged Asset, Fair Value Hedge",
        "terseLabel": "Hedged Asset",
        "documentation": "Amount of asset hedged in fair value hedging relationship."
       }
      }
     },
     "auth_ref": [
      "r516",
      "r797"
     ]
    },
    "us-gaap_HedgedAssetFairValueHedgeLastOfLayerCumulativeIncreaseDecrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HedgedAssetFairValueHedgeLastOfLayerCumulativeIncreaseDecrease",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfHedgedAssetsAndCumulativeFairValueAdjustmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedged Asset, Fair Value Hedge, Portfolio Layer Method, Hedged Layer, Fair Value, Cumulative Increase (Decrease)",
        "terseLabel": "Basis Adjustment",
        "documentation": "Amount of cumulative increase (decrease) in fair value of hedged asset in fair value hedge, attributable to hedged risk, in portfolio layer hedging relationship."
       }
      }
     },
     "auth_ref": [
      "r518",
      "r798"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostUnrecognizedGainsAndLossesAndFairValueOfHeldToMaturitySecuritiesDetails": {
       "parentTag": "us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostUnrecognizedGainsAndLossesAndFairValueOfHeldToMaturitySecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Held-to-maturity Securities, Accumulated Unrecognized Holding Gain",
        "verboseLabel": "Gross Unrecognized Gains",
        "documentation": "Amount of accumulated unrecognized gain on investment in debt security measured at amortized cost (held-to-maturity)."
       }
      }
     },
     "auth_ref": [
      "r173",
      "r357"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostUnrecognizedGainsAndLossesAndFairValueOfHeldToMaturitySecuritiesDetails": {
       "parentTag": "us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostUnrecognizedGainsAndLossesAndFairValueOfHeldToMaturitySecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Held-to-maturity Securities, Accumulated Unrecognized Holding Loss",
        "negatedLabel": "Gross Unrecognized Losses",
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at amortized cost (held-to-maturity)."
       }
      }
     },
     "auth_ref": [
      "r174",
      "r358"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Held-to-maturity Securities, Debt Maturities, Year Six Through Ten, Fair Value",
        "verboseLabel": "Held to Maturity, due in five to ten years, fair value",
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing in sixth through tenth 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": [
      "r177",
      "r185",
      "r362",
      "r608"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Held-to-maturity Securities, Debt Maturities, after Five Through Ten Years, Net Carrying Amount",
        "verboseLabel": "Held to Maturity, due in five to ten years, amortized cost",
        "documentation": "Amount, after allowance for credit loss, of investment in debt security measured at amortized cost (held-to-maturity) with single maturity date and allocated without single maturity date, maturing in sixth through tenth 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": [
      "r354",
      "r604"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Held-to-maturity Securities, Debt Maturities, Year Two Through Five, Fair Value",
        "terseLabel": "Held to Maturity, due in one to five years, fair value",
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing in second through 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": [
      "r176",
      "r184",
      "r361",
      "r607"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Held-to-maturity Securities, Debt Maturities, after One Through Five Years, Net Carrying Amount",
        "terseLabel": "Held to Maturity, due in one to five years, amortized cost",
        "documentation": "Amount, after allowance for credit loss, of investment in debt security measured at amortized cost (held-to-maturity) with single maturity date and allocated without single maturity date, maturing in second through 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": [
      "r353",
      "r603"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Held-to-maturity Securities, Debt Maturities, after Ten Years, Fair Value",
        "verboseLabel": "Held to maturity, due after ten years, fair value",
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing after tenth 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": [
      "r178",
      "r186",
      "r363",
      "r609"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Held-to-maturity Securities, Debt Maturities, after Ten Years, Net Carrying Amount",
        "verboseLabel": "Held to maturity, due after ten years, amortized cost",
        "documentation": "Amount, after allowance for credit loss, of investment in debt security measured at amortized cost (held-to-maturity) with single maturity date and allocated without single maturity date, maturing after tenth 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": [
      "r355",
      "r605"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Held-to-Maturity, Fair Value, Maturity, Allocated and Single Maturity Date, Year One",
        "terseLabel": "Held to Maturity, due in one year, fair value",
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity 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": [
      "r175",
      "r183",
      "r360",
      "r606"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date, Year One",
        "terseLabel": "Held to Maturity, due in one year, amortized cost",
        "documentation": "Amount, after allowance for credit loss, of investment in debt security measured at amortized cost (held-to-maturity) with single maturity date and allocated without single maturity 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": [
      "r352",
      "r602"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostUnrecognizedGainsAndLossesAndFairValueOfHeldToMaturitySecuritiesDetails": {
       "parentTag": "us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostUnrecognizedGainsAndLossesAndFairValueOfHeldToMaturitySecuritiesDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheetsParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Held To Maturity Securities Fair Value",
        "terseLabel": "Held to maturity fair value",
        "verboseLabel": "Securities held to maturity fair value (in dollars)",
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity)."
       }
      }
     },
     "auth_ref": [
      "r172",
      "r356",
      "r597",
      "r612"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Held-To-Maturity Securities [Table Text Block]",
        "verboseLabel": "Schedule of amortized cost, unrecognized gains and losses, and fair value of held to maturity securities",
        "documentation": "Tabular disclosure of information about investment in debt security measured at amortized cost (held-to-maturity)."
       }
      }
     },
     "auth_ref": [
      "r950",
      "r951",
      "r952",
      "r953",
      "r954",
      "r955",
      "r956",
      "r957",
      "r958",
      "r959",
      "r960",
      "r961",
      "r962",
      "r963",
      "r964",
      "r965",
      "r966",
      "r967"
     ]
    },
    "us-gaap_HomeEquityLoanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HomeEquityLoanMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Home Equity Loan [Member]",
        "documentation": "Loan based on the equity of the borrower's residential property in which the borrower receives the loan amount upfront. Excludes home equity lines of credit."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income (Loss) Before Income Taxes",
        "totalLabel": "Income (loss) before income taxes",
        "verboseLabel": "Income (loss) before income taxes",
        "documentation": "Amount of income (loss) from continuing operations, including income (loss) from equity method investments, before deduction of income tax expense (benefit), and income (loss) attributable to noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r0",
      "r117",
      "r155",
      "r289",
      "r309",
      "r315",
      "r318",
      "r601",
      "r622",
      "r763"
     ]
    },
    "us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeLossFromContinuingOperationsPerDilutedShare",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income (Loss) from Continuing Operations, Per Diluted Share",
        "terseLabel": "Earnings per share from continuing operations, diluted (in dollars per share)",
        "totalLabel": "Diluted EPS- Per Share Amount (in dollars per share)",
        "documentation": "The amount of net income (loss) derived from continuing operations during 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": [
      "r116",
      "r231",
      "r250",
      "r252",
      "r253",
      "r255",
      "r256",
      "r267",
      "r277",
      "r278",
      "r279",
      "r530",
      "r599",
      "r1019"
     ]
    },
    "us-gaap_IncomeStatementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeStatementAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfRevisionsDetails": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0,
       "order": 1.0
      },
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfRevisionsDetails",
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Expense (Benefit)",
        "terseLabel": "Income tax expense (benefit)",
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations."
       }
      }
     },
     "auth_ref": [
      "r189",
      "r197",
      "r260",
      "r261",
      "r297",
      "r503",
      "r506",
      "r628"
     ]
    },
    "us-gaap_IncomeTaxesPaidNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxesPaidNet",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Taxes",
        "verboseLabel": "Income taxes",
        "documentation": "The amount of cash paid during the current period to foreign, federal, state, and local authorities as taxes on income, net of any cash received during the current period as refunds for the overpayment of taxes."
       }
      }
     },
     "auth_ref": [
      "r43"
     ]
    },
    "us-gaap_IncreaseDecreaseInDeferredIncomeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInDeferredIncomeTaxes",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) In Deferred Income Taxes",
        "negatedTerseLabel": "Benefit for deferred income taxes",
        "documentation": "The increase (decrease) during the reporting period in the account that represents the temporary difference that results from Income or Loss that is recognized for accounting purposes but not for tax purposes and vice versa."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "us-gaap_IncreaseDecreaseInDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInDeposits",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Increase (Decrease) In Deposits",
        "verboseLabel": "Net (decrease) increase in deposits",
        "documentation": "The net cash inflow or outflow for the increase (decrease) in the beginning and end of period deposits balances."
       }
      }
     },
     "auth_ref": [
      "r42",
      "r101"
     ]
    },
    "us-gaap_IncreaseDecreaseInDerivativeAssetsAndLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInDerivativeAssetsAndLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 17.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Derivative Assets and Liabilities",
        "negatedLabel": "Net change in fair value of Consumer Program derivative",
        "documentation": "The increase (decrease) during the period in the net carrying value of derivative instruments reported as assets and liabilities that are due to be disposed of within one year (or the normal operating cycle, if longer)."
       }
      }
     },
     "auth_ref": [
      "r922"
     ]
    },
    "frst_IncreaseDecreaseInEarningsPerShareFromContinuingOperations": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "IncreaseDecreaseInEarningsPerShareFromContinuingOperations",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in common and basic earnings per share from continuing operations during the period.",
        "label": "Increase (Decrease) in Earnings Per Share From Continuing Operations",
        "negatedLabel": "Decline in common and basic EPS from continuing operations"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInOtherOperatingAssets",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net (Increase) Decrease In Other Assets",
        "negatedLabel": "Net increase in other assets",
        "documentation": "Amount of increase (decrease) in operating assets classified as other."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInOtherOperatingLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Increase In Other Liabilities",
        "verboseLabel": "Net increase (decrease) in other liabilities",
        "documentation": "Amount of increase (decrease) in operating liabilities classified as other."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "us-gaap_IncreaseDecreaseInStockholdersEquityRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInStockholdersEquityRollForward",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) In Stockholders' Equity [Roll Forward]",
        "verboseLabel": "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_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncrementalCommonSharesAttributableToShareBasedPaymentArrangements",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails": {
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incremental Common Shares Attributable To Share-Based Payment Arrangements",
        "verboseLabel": "Effect of dilutive stock options and and unvested restricted stock- Weighted Average Shares (Denominator) (in shares)",
        "documentation": "Additional shares included in the calculation of diluted EPS as a result of the potentially dilutive effect of share based payment arrangements using the treasury stock method."
       }
      }
     },
     "auth_ref": [
      "r268",
      "r269",
      "r270",
      "r279",
      "r464"
     ]
    },
    "ecd_IndividualAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "IndividualAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure",
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure",
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements",
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Individual [Axis]",
        "terseLabel": "Individual:"
       }
      }
     },
     "auth_ref": [
      "r832",
      "r840",
      "r850",
      "r867",
      "r875",
      "r879",
      "r887"
     ]
    },
    "us-gaap_InformationTechnologyAndDataProcessing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InformationTechnologyAndDataProcessing",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Data Processing Expense",
        "verboseLabel": "Data processing expense",
        "documentation": "The amount of expenses incurred in the period for information technology and data processing products and services."
       }
      }
     },
     "auth_ref": [
      "r120"
     ]
    },
    "frst_InitialRecognitionOfOperatingLeaseRightOfUseAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "InitialRecognitionOfOperatingLeaseRightOfUseAsset",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Initial recognition of operating lease right of use asset.",
        "label": "Initial Recognition Of Operating Lease Right of Use Asset",
        "terseLabel": "Initial recognition of operating lease right-of-use assets"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_InsiderTradingArrLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "InsiderTradingArrLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Arrangements [Line Items]",
        "terseLabel": "Insider Trading Arrangements:"
       }
      }
     },
     "auth_ref": [
      "r885"
     ]
    },
    "ecd_InsiderTradingPoliciesProcLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "InsiderTradingPoliciesProcLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures [Line Items]",
        "terseLabel": "Insider Trading Policies and Procedures:"
       }
      }
     },
     "auth_ref": [
      "r821",
      "r891"
     ]
    },
    "ecd_InsiderTrdPoliciesProcAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "InsiderTrdPoliciesProcAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures Adopted [Flag]",
        "terseLabel": "Insider Trading Policies and Procedures Adopted"
       }
      }
     },
     "auth_ref": [
      "r821",
      "r891"
     ]
    },
    "ecd_InsiderTrdPoliciesProcNotAdoptedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "InsiderTrdPoliciesProcNotAdoptedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures Not Adopted [Text Block]",
        "terseLabel": "Insider Trading Policies and Procedures Not Adopted"
       }
      }
     },
     "auth_ref": [
      "r821",
      "r891"
     ]
    },
    "us-gaap_InterestAndDividendIncomeOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestAndDividendIncomeOperating",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest and Dividend Income, Operating",
        "terseLabel": "Interest income",
        "totalLabel": "Total interest and dividend income",
        "verboseLabel": "Total interest and dividend income",
        "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": [
      "r158",
      "r1032"
     ]
    },
    "us-gaap_InterestAndDividendIncomeOperatingAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestAndDividendIncomeOperatingAbstract",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest and Dividend Income, Operating [Abstract]",
        "verboseLabel": "Interest and dividend income:"
       }
      }
     },
     "auth_ref": []
    },
    "frst_InterestAndDividendsOnTaxExemptSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "InterestAndDividendsOnTaxExemptSecurities",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest and dividend income derived from securities which are exempt from federal income taxes.",
        "label": "Interest and Dividends On Tax Exempt Securities",
        "verboseLabel": "Interest and dividends on tax exempt securities"
       }
      }
     },
     "auth_ref": []
    },
    "frst_InterestAndDividendsOnTaxableSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "InterestAndDividendsOnTaxableSecurities",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest and dividend income derived from investment securities which are subject to federal income taxes.",
        "label": "Interest and Dividends On Taxable Securities",
        "verboseLabel": "Interest and dividends on taxable securities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestAndFeeIncomeLoansAndLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestAndFeeIncomeLoansAndLeases",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest and Fee Income, Loans and Leases",
        "verboseLabel": "Interest and fees on loans",
        "documentation": "The aggregate interest and fee income generated by: (1) loans the Entity has positive intent and ability to hold for the foreseeable future, or until maturity or payoff, including commercial and consumer loans, whether domestic or foreign, which may consist of: (a) industrial and agricultural; (b) real estate; and (c) real estate construction loans; (d) trade financing; (e) lease financing; (f) home equity lines-of-credit; (g) automobile and other vehicle loans; and (h) credit card and other revolving-type loans and (2) loans and leases held-for-sale which may include mortgage loans, direct financing, and sales-type leases."
       }
      }
     },
     "auth_ref": [
      "r157"
     ]
    },
    "us-gaap_InterestBearingDepositLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestBearingDepositLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Interest-Bearing Deposits",
        "totalLabel": "Total interest-bearing deposits",
        "documentation": "The aggregate of all domestic and foreign interest-bearing deposit liabilities."
       }
      }
     },
     "auth_ref": [
      "r96"
     ]
    },
    "us-gaap_InterestBearingDepositLiabilitiesByComponentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestBearingDepositLiabilitiesByComponentAbstract",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest-Bearing Deposits",
        "terseLabel": "Interest-bearing deposits:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestBearingDepositsInBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestBearingDepositsInBanks",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_CashAndCashEquivalentsAtCarryingValue",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest-Bearing Deposits In Other Financial Institutions",
        "terseLabel": "Interest-bearing deposits in other financial institutions",
        "documentation": "For banks and other depository institutions (including Federal Reserve Banks, if applicable): Interest-bearing deposits in other financial institutions for relatively short periods of time including, for example, certificates of deposits, which are presented separately from cash on the balance sheet."
       }
      }
     },
     "auth_ref": [
      "r95",
      "r100"
     ]
    },
    "us-gaap_InterestBearingDomesticDepositBrokered": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestBearingDomesticDepositBrokered",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest-Bearing Domestic Deposit, Brokered",
        "terseLabel": "Certificate of deposits, brokered",
        "documentation": "Amount of interest-bearing domestic third-party deposits placed by or through the assistance of a deposit broker, also known as brokered deposit liabilities."
       }
      }
     },
     "auth_ref": [
      "r96"
     ]
    },
    "us-gaap_InterestBearingDomesticDepositMoneyMarket": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestBearingDomesticDepositMoneyMarket",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_InterestBearingDepositLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Money Market Accounts",
        "terseLabel": "Money market accounts",
        "documentation": "Amount of interest-bearing domestic money market demand account deposit liabilities."
       }
      }
     },
     "auth_ref": [
      "r96"
     ]
    },
    "us-gaap_InterestBearingDomesticDepositNegotiableOrderOfWithdrawalNOW": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestBearingDomesticDepositNegotiableOrderOfWithdrawalNOW",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_InterestBearingDepositLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest-bearing Domestic Deposit, Negotiable Order of Withdrawal (NOW)",
        "terseLabel": "NOW accounts",
        "documentation": "Amount of interest-bearing domestic negotiable order of withdrawal (NOW) demand deposit liabilities."
       }
      }
     },
     "auth_ref": [
      "r96"
     ]
    },
    "us-gaap_InterestBearingDomesticDepositSavings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestBearingDomesticDepositSavings",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_InterestBearingDepositLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Savings Accounts",
        "terseLabel": "Savings accounts",
        "documentation": "Amount of interest-bearing domestic savings deposit liabilities. Saving deposits bear interest and have no stated maturity."
       }
      }
     },
     "auth_ref": [
      "r96"
     ]
    },
    "us-gaap_InterestBearingDomesticDepositTimeDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestBearingDomesticDepositTimeDeposits",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_InterestBearingDepositLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest-Bearing Domestic Deposit, Time Deposits",
        "terseLabel": "Time deposits",
        "documentation": "Amount of interest-bearing domestic time deposits. Time deposits bear interest for a fixed, stated period of time and include certificate of deposits and individual retirement accounts."
       }
      }
     },
     "auth_ref": [
      "r96"
     ]
    },
    "frst_InterestBearingDomesticDepositTimeDepositsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "InterestBearingDomesticDepositTimeDepositsFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest bearing domestic deposit time deposits fair value disclosure.",
        "label": "Interest Bearing Domestic Deposit Time Deposits Fair Value Disclosure",
        "terseLabel": "Time deposits"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Interest Expense",
        "terseLabel": "Interest expense",
        "totalLabel": "Total interest expense",
        "verboseLabel": "Total interest expense",
        "documentation": "Amount of the cost of borrowed funds accounted for as interest expense."
       }
      }
     },
     "auth_ref": [
      "r93",
      "r168",
      "r229",
      "r293",
      "r551",
      "r700",
      "r813",
      "r1026"
     ]
    },
    "us-gaap_InterestExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpenseAbstract",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expense",
        "verboseLabel": "Interest expense:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestExpenseDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpenseDeposits",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest On Deposits",
        "verboseLabel": "Interest on deposits",
        "documentation": "Aggregate amount of interest expense on all deposits."
       }
      }
     },
     "auth_ref": [
      "r167"
     ]
    },
    "us-gaap_InterestExpenseOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpenseOther",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expense, Other",
        "terseLabel": "Interest on other borrowings",
        "documentation": "Amount of interest expense classified as other."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeExpenseAfterProvisionForLoanLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Interest Income After Provision For Loan Losses",
        "terseLabel": "Net interest income after provision for credit losses",
        "totalLabel": "Net interest income after provision for credit losses",
        "documentation": "Amount of interest income or expense, including any amortization and accretion (as applicable) of discounts and premiums, including consideration of the provisions for loan, lease, credit, and other related losses."
       }
      }
     },
     "auth_ref": [
      "r160"
     ]
    },
    "us-gaap_InterestIncomeExpenseNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeExpenseNet",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfRevisionsDetails": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfRevisionsDetails",
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Income (Expense), Net",
        "terseLabel": "Decrease in interest income",
        "totalLabel": "Net interest income",
        "verboseLabel": "Net interest income",
        "documentation": "The net amount of operating interest income (expense)."
       }
      }
     },
     "auth_ref": [
      "r159"
     ]
    },
    "us-gaap_InterestPaidNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestPaidNet",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest",
        "terseLabel": "Cash payments for interest",
        "verboseLabel": "Interest",
        "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": [
      "r235",
      "r238",
      "r239"
     ]
    },
    "us-gaap_InterestRateLockCommitmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestRateLockCommitmentsMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Rate Lock Commitments [Member]",
        "terseLabel": "IRLCs",
        "documentation": "Commitments to extend credit where the interest rate is locked in advance of funds being disbursed for a specified period of time."
       }
      }
     },
     "auth_ref": []
    },
    "frst_InterestRateSwapsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "InterestRateSwapsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate swaps fair value disclosure.",
        "label": "Interest Rate Swaps Fair Value Disclosure",
        "terseLabel": "Interest rate swaps"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestReceivable",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Receivable",
        "terseLabel": "Accrued 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": [
      "r915",
      "r1031"
     ]
    },
    "frst_InterestReceivableFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "InterestReceivableFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest receivable fair value disclosure.",
        "label": "Interest Receivable Fair Value Disclosure",
        "terseLabel": "Accrued interest receivable"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InternalCreditAssessmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InternalCreditAssessmentAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Internal Credit Assessment [Axis]",
        "documentation": "Information by entity-defined rating."
       }
      }
     },
     "auth_ref": [
      "r57",
      "r519",
      "r774",
      "r775",
      "r980"
     ]
    },
    "us-gaap_InternalCreditAssessmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InternalCreditAssessmentDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Internal Credit Assessment [Domain]",
        "documentation": "Entity defined credit risk rating."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InternalNoninvestmentGradeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InternalNoninvestmentGradeMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Internal Noninvestment Grade [Member]",
        "documentation": "Credit rating classification developed by the entity in which the probability of default is high and full and timely repayments are not expected."
       }
      }
     },
     "auth_ref": [
      "r980"
     ]
    },
    "us-gaap_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Account Maintenance and Deposit Service Fees",
        "verboseLabel": "Account maintenance and deposit service fees",
        "documentation": "Amount of fees and commissions from banking, advisory, brokerage, and securities underwriting activities. Activities include, but are not limited to, underwriting securities, private placements of securities, investment advisory and management services, merger and acquisition services, sale and servicing of mutual funds, and other related consulting fees."
       }
      }
     },
     "auth_ref": [
      "r161"
     ]
    },
    "us-gaap_InvestmentsClassifiedByContractualMaturityDateTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments Classified By Contractual Maturity Date [Table Text Block]",
        "verboseLabel": "Schedule of fair value and carrying amount, if different, of debt securities, by contractual maturity",
        "documentation": "Tabular disclosure of maturities of an entity's investments as well as any other information pertinent to the investments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentsDebtAndEquitySecuritiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "INVESTMENTS, DEBT and EQUITY SECURITIES [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecurities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments In Debt and Marketable Equity Securities (And Certain Trading Assets) Disclosure [Text Block]",
        "verboseLabel": "INVESTMENT SECURITIES",
        "documentation": "The entire disclosure for investments in certain debt and equity securities."
       }
      }
     },
     "auth_ref": [
      "r145",
      "r169",
      "r171",
      "r198",
      "r331",
      "r333",
      "r540",
      "r541"
     ]
    },
    "us-gaap_JuniorSubordinatedDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "JuniorSubordinatedDebtMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Junior Subordinated Debt [Member]",
        "documentation": "Borrowing that has a lower priority than senior instruments in event of liquidation of the entity's assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_JuniorSubordinatedNotes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "JuniorSubordinatedNotes",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Junior subordinated notes",
        "terseLabel": "Junior subordinated debt - long term",
        "documentation": "Including the current and noncurrent portions, carrying value as of the balance sheet date of long-term debt (with maturities initially due after one year or beyond the operating cycle if longer) identified as Junior Subordinated Notes, which have a lower priority than senior instruments."
       }
      }
     },
     "auth_ref": [
      "r21",
      "r150",
      "r1018"
     ]
    },
    "frst_JuniorSubordinatedNotesFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "JuniorSubordinatedNotesFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Junior subordinated notes fair value disclosure.",
        "label": "Junior Subordinated Notes Fair Value Disclosure",
        "terseLabel": "Junior subordinated debt"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LaborAndRelatedExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LaborAndRelatedExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Salaries and Benefits",
        "verboseLabel": "Salaries and benefits",
        "documentation": "Amount of expense for salary, wage, profit sharing; incentive and equity-based compensation; and other employee benefit."
       }
      }
     },
     "auth_ref": [
      "r919"
     ]
    },
    "us-gaap_LeaseCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LeaseCost",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLeasesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease, Cost",
        "documentation": "Amount of lease cost recognized by lessee for lease contract."
       }
      }
     },
     "auth_ref": [
      "r557",
      "r801"
     ]
    },
    "us-gaap_LesseeDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Leases [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LesseeOperatingLeaseDiscountRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseDiscountRate",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfOperatingLeaseOtherInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Discount Rate",
        "terseLabel": "Weighted-average discount rate - operating leases",
        "documentation": "Discount rate used by lessee to determine present value of operating lease payments."
       }
      }
     },
     "auth_ref": [
      "r800"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedExistenceOfOptionToExtend": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLeaseNotYetCommencedExistenceOfOptionToExtend",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLeasesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Lease Not yet Commenced, Existence of Option to Extend [true false]",
        "documentation": "Indicates (true false) whether lessee has option to extend operating lease not yet commenced."
       }
      }
     },
     "auth_ref": [
      "r1002"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, Maturity [Table Text Block]",
        "terseLabel": "Schedule of future minimum rental payments required under non-cancelable operating leases for bank premises",
        "documentation": "Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position."
       }
      }
     },
     "auth_ref": [
      "r1003"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDue",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetailsAlternate": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, to be Paid",
        "totalLabel": "Total lease payments",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease."
       }
      }
     },
     "auth_ref": [
      "r559"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "2024",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r559"
     ]
    },
    "frst_LesseeOperatingLeaseLiabilityPaymentsDueThereafter": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueThereafter",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lessee operating lease liability payments due thereafter.",
        "label": "Lessee Operating Lease Liability Payments Due Thereafter",
        "terseLabel": "More than five years"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFour",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, Payments, Due Year Four",
        "verboseLabel": "2027",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r559"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearThree",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, Payments, Due Year Three",
        "verboseLabel": "2026",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r559"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearTwo",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, Payments, Due Year Two",
        "verboseLabel": "2025",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r559"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, to be Paid, Remainder of Fiscal Year",
        "terseLabel": "2023 (remaining)",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease having initial or remaining lease term in excess of one year to be paid in remainder of current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r1003"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityUndiscountedExcessAmount",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetailsAlternate": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, Undiscounted Excess Amount",
        "negatedLabel": "Less: imputed interest",
        "documentation": "Amount of lessee's undiscounted obligation for lease payments in excess of discounted obligation for lease payments for operating lease."
       }
      }
     },
     "auth_ref": [
      "r559"
     ]
    },
    "us-gaap_LesseeOperatingLeasesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeasesTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLeases"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Leases [Text Block]",
        "terseLabel": "LEASES",
        "documentation": "The entire disclosure for operating leases of lessee. Includes, but is not limited to, description of operating lease and maturity analysis of operating lease liability."
       }
      }
     },
     "auth_ref": [
      "r554"
     ]
    },
    "us-gaap_LetterOfCreditMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LetterOfCreditMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Letter Of Credit [Member]",
        "documentation": "A document typically issued by a financial institution which acts as a guarantee of payment to a beneficiary, or as the source of payment for a specific transaction (for example, wiring funds to a foreign exporter if and when specified merchandise is accepted pursuant to the terms of the letter of credit)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Liabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Liabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Liabilities",
        "totalLabel": "Total liabilities",
        "verboseLabel": "Total liabilities",
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all liabilities that are recognized. Liabilities are probable future sacrifices of economic benefits arising from present obligations of an entity to transfer assets or provide services to other entities in the future."
       }
      }
     },
     "auth_ref": [
      "r23",
      "r242",
      "r365",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r419",
      "r420",
      "r421",
      "r422",
      "r510",
      "r513",
      "r514",
      "r544",
      "r675",
      "r762",
      "r815",
      "r987",
      "r1006",
      "r1007"
     ]
    },
    "us-gaap_LiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesAbstract",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities [Abstract]",
        "verboseLabel": "Financial liabilities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesAndStockholdersEquity",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Liabilities and Stockholders' Equity",
        "terseLabel": "Total liabilities and stockholders' equity",
        "totalLabel": "Total liabilities and stockholders' equity",
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any."
       }
      }
     },
     "auth_ref": [
      "r112",
      "r151",
      "r620",
      "r802",
      "r925",
      "r972",
      "r1001"
     ]
    },
    "us-gaap_LiabilitiesAndStockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesAndStockholdersEquityAbstract",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities and Stockholders' Equity",
        "terseLabel": "LIABILITIES AND STOCKHOLDERS' EQUITY"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LiabilitiesFairValueDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesFairValueDisclosureAbstract",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial liabilities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LifeInsuranceCorporateOrBankOwnedChangeInValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LifeInsuranceCorporateOrBankOwnedChangeInValue",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Life Insurance, Corporate or Bank Owned, Change in Value",
        "negatedLabel": "Gain on bank-owned life insurance death benefit",
        "documentation": "The change in cash surrender or contract value during the period which adjusted the amount of premiums paid in determining the expense or income recognized under the contract for the period."
       }
      }
     },
     "auth_ref": [
      "r973"
     ]
    },
    "us-gaap_LineOfCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCredit",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-term Line of Credit",
        "verboseLabel": "Letters of credit outstanding",
        "documentation": "The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement."
       }
      }
     },
     "auth_ref": [
      "r21",
      "r150",
      "r1018"
     ]
    },
    "us-gaap_LineOfCreditFacilityLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCreditFacilityLineItems",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line Of Credit Facility [Line Items]",
        "verboseLabel": "Line of Credit Facility [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r924"
     ]
    },
    "us-gaap_LineOfCreditFacilityTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCreditFacilityTable",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line Of Credit Facility [Table]",
        "documentation": "A table or schedule providing information pertaining to short-term or long-term contractual arrangements with lenders, including letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line."
       }
      }
     },
     "auth_ref": [
      "r22",
      "r924"
     ]
    },
    "us-gaap_LoanOriginationCommitmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoanOriginationCommitmentsMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loan Origination Commitments [Member]",
        "documentation": "Commitments to borrowers or third party investors for the origination of a loan."
       }
      }
     },
     "auth_ref": []
    },
    "frst_LoansAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "LoansAbstract",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans [Abstract]",
        "verboseLabel": "Loans:"
       }
      }
     },
     "auth_ref": []
    },
    "frst_LoansAndLeasesReceivableMultiFamilyResidentialMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "LoansAndLeasesReceivableMultiFamilyResidentialMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents loans and leases receivable multi family residential.",
        "label": "Loans And Leases Receivable Multi Family Residential [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "frst_LoansAndLeasesReceivableSecuredByFarmlandMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "LoansAndLeasesReceivableSecuredByFarmlandMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents loans and leases receivable secured by farmland.",
        "label": "Loans And Leases Receivable Secured By Farmland [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "frst_LoansHeldForInvestmentCollateralizingSecuredBorrowingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "LoansHeldForInvestmentCollateralizingSecuredBorrowingsMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information relating to Loans held for investment, collateralizing secured borrowings.",
        "label": "Loans Held For Investment, Collateralizing Secured Borrowings [Member]",
        "terseLabel": "Transfers of Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LoansHeldForSaleFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansHeldForSaleFairValueDisclosure",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans Held-for-sale, Fair Value Disclosure",
        "terseLabel": "Loans held for sale, at fair value",
        "documentation": "Fair value portion of loans held-for-sale including, but not limited to, mortgage loans and finance receivables."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LoansNotesTradeAndOtherReceivablesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans, Notes, Trade and Other Receivables Disclosure [Text Block]",
        "terseLabel": "LOANS AND ALLOWANCE FOR CREDIT LOSSES (Revised and Restated)",
        "documentation": "The entire disclosure for claims held for amounts due a entity, excluding financing receivables. Examples include, but are not limited to, trade accounts receivables, notes receivables, loans receivables. Includes disclosure for allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r932"
     ]
    },
    "us-gaap_LoansReceivableFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansReceivableFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans Receivable, Fair Value Disclosure",
        "terseLabel": "Warehouse lines of credit",
        "verboseLabel": "Loans held for investment",
        "documentation": "Fair value portion of loan receivable, including, but not limited to, mortgage loans held for investment, finance receivables held for investment, policy loans on insurance contracts."
       }
      }
     },
     "auth_ref": [
      "r55"
     ]
    },
    "us-gaap_LoansReceivableHeldForSaleAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansReceivableHeldForSaleAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Held-for-Sale",
        "terseLabel": "Loans held for sale",
        "documentation": "Amount, before valuation allowance, of financing receivable classified as held-for-sale."
       }
      }
     },
     "auth_ref": [
      "r325",
      "r740"
     ]
    },
    "us-gaap_LoansReceivableMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansReceivableMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans Receivable [Member]",
        "documentation": "An amount of money or property, or a portion thereof, leant to a borrower (debtor) in exchange for a promise to repay the amount borrowed plus interest at a date certain in the future."
       }
      }
     },
     "auth_ref": []
    },
    "dei_LocalPhoneNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "LocalPhoneNumber",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Local Phone Number",
        "documentation": "Local phone number for entity."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongtermDebtTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongtermDebtTypeAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-term Debt, Type [Axis]",
        "documentation": "Information by type of long-term debt."
       }
      }
     },
     "auth_ref": [
      "r25"
     ]
    },
    "us-gaap_LongtermDebtTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongtermDebtTypeDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-term Debt, Type [Domain]",
        "documentation": "Type of long-term debt arrangement, such as notes, line of credit, commercial paper, asset-based financing, project financing, letter of credit financing. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r65"
     ]
    },
    "frst_LossOnDispositionOfBankPremisesAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "LossOnDispositionOfBankPremisesAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of loss on sale or disposal of bank premises and property.",
        "label": "Loss on Disposition of Bank Premises And Equipment",
        "terseLabel": "Loss on bank premises and equipment and assets held for sale"
       }
      }
     },
     "auth_ref": []
    },
    "stpr_MD": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/stpr/2023",
     "localname": "MD",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maryland"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MarketingExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MarketingExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Marketing Expense",
        "terseLabel": "Marketing expense",
        "documentation": "Expenditures for planning and executing the conception, pricing, promotion, and distribution of ideas, goods, and services. Costs of public relations and corporate promotions are typically considered to be marketing costs."
       }
      }
     },
     "auth_ref": [
      "r119"
     ]
    },
    "srt_MaximumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "MaximumMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maximum [Member]",
        "verboseLabel": "High"
       }
      }
     },
     "auth_ref": [
      "r409",
      "r410",
      "r411",
      "r412",
      "r460",
      "r593",
      "r640",
      "r666",
      "r667",
      "r718",
      "r720",
      "r722",
      "r723",
      "r738",
      "r753",
      "r754",
      "r765",
      "r784",
      "r791",
      "r804",
      "r989",
      "r1008",
      "r1009",
      "r1010",
      "r1011",
      "r1012",
      "r1013"
     ]
    },
    "ecd_MeasureAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "MeasureAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measure [Axis]",
        "terseLabel": "Measure:"
       }
      }
     },
     "auth_ref": [
      "r859"
     ]
    },
    "ecd_MeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "MeasureName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measure Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r859"
     ]
    },
    "frst_MeasurementInputAverageCostsToOriginateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "MeasurementInputAverageCostsToOriginateMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using average costs to originate.",
        "label": "Measurement Input, Average Costs to Originate [Member]",
        "terseLabel": "Average costs to originate"
       }
      }
     },
     "auth_ref": []
    },
    "frst_MeasurementInputAveragePullThroughRatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "MeasurementInputAveragePullThroughRatesMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using average pull through rates.",
        "label": "Measurement Input, Average Pull through Rates [Member]",
        "terseLabel": "Average pullthrough rates"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MeasurementInputDiscountRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MeasurementInputDiscountRateMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Input, Discount Rate [Member]",
        "terseLabel": "Discount rate",
        "documentation": "Measurement input using interest rate to determine present value of future cash flows."
       }
      }
     },
     "auth_ref": [
      "r1000"
     ]
    },
    "us-gaap_MeasurementInputExpectedTermMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MeasurementInputExpectedTermMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Input, Expected Term [Member]",
        "terseLabel": "Average life (years)",
        "documentation": "Measurement input using period financial instrument is expected to be outstanding. Excludes maturity date."
       }
      }
     },
     "auth_ref": [
      "r1000"
     ]
    },
    "frst_MeasurementInputRemainingCumulativeChargeOffsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "MeasurementInputRemainingCumulativeChargeOffsMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using remaining cumulative charge-offs.",
        "label": "Measurement Input, Remaining Cumulative Charge-offs [Member]",
        "terseLabel": "Remaining cumulative charge-offs"
       }
      }
     },
     "auth_ref": []
    },
    "frst_MeasurementInputRemainingCumulativePromotionalPrepaymentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "MeasurementInputRemainingCumulativePromotionalPrepaymentsMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using remaining cumulative promotional prepayments.",
        "label": "Measurement Input, Remaining Cumulative Promotional Prepayments [Member]",
        "terseLabel": "Remaining cumulative promotional prepayments"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MeasurementInputTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MeasurementInputTypeAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Input Type [Axis]",
        "documentation": "Information by type of measurement input used to determine value of asset and liability."
       }
      }
     },
     "auth_ref": [
      "r534"
     ]
    },
    "us-gaap_MeasurementInputTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MeasurementInputTypeDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails",
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Input Type [Domain]",
        "documentation": "Measurement input used to determine value of asset and liability."
       }
      }
     },
     "auth_ref": []
    },
    "srt_MinimumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "MinimumMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minimum [Member]",
        "verboseLabel": "Low"
       }
      }
     },
     "auth_ref": [
      "r409",
      "r410",
      "r411",
      "r412",
      "r460",
      "r593",
      "r640",
      "r666",
      "r667",
      "r718",
      "r720",
      "r722",
      "r723",
      "r738",
      "r753",
      "r754",
      "r765",
      "r784",
      "r791",
      "r804",
      "r989",
      "r1008",
      "r1009",
      "r1010",
      "r1011",
      "r1012",
      "r1013"
     ]
    },
    "ecd_MnpiDiscTimedForCompValFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "MnpiDiscTimedForCompValFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "MNPI Disclosure Timed for Compensation Value [Flag]",
        "terseLabel": "MNPI Disclosure Timed for Compensation Value"
       }
      }
     },
     "auth_ref": [
      "r878"
     ]
    },
    "frst_ModeledExpectedCreditLossesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "ModeledExpectedCreditLossesMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Modeled Expected Credit Losses [Member].",
        "label": "Modeled Expected Credit Losses [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "frst_MoneyMarketsAndSavingAccountsDepositsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "MoneyMarketsAndSavingAccountsDepositsFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Money markets and saving accounts deposits fair value disclosure.",
        "label": "Money Markets And Saving Accounts Deposits Fair Value Disclosure",
        "terseLabel": "Money market and savings accounts"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Government-Sponsored Agency Securities",
        "documentation": "Debt securities collateralized by real estate mortgage loans (mortgages), issued by US Government Sponsored Enterprises, such as Federal Home Loan Mortgage Corporation (FHLMC or Freddie Mac)."
       }
      }
     },
     "auth_ref": [
      "r945",
      "r955",
      "r963",
      "r992"
     ]
    },
    "us-gaap_MortgageBackedSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MortgageBackedSecuritiesMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateralized loan obligations",
        "documentation": "Securities collateralized by mortgage loans."
       }
      }
     },
     "auth_ref": [
      "r786",
      "r787",
      "r788",
      "r938",
      "r945",
      "r950",
      "r955",
      "r963",
      "r1021"
     ]
    },
    "frst_MortgageBankingDerivativesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "MortgageBankingDerivativesMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the member information pertaining to mortgage banking derivatives.",
        "label": "Mortgage Banking Derivatives [Member]",
        "terseLabel": "Mortgage banking derivative"
       }
      }
     },
     "auth_ref": []
    },
    "frst_MortgageBankingIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "MortgageBankingIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Mortgage banking income.",
        "label": "Mortgage banking income"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MortgageLoansInProcessOfForeclosureAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MortgageLoansInProcessOfForeclosureAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r18"
     ]
    },
    "ecd_MtrlTermsOfTrdArrTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "MtrlTermsOfTrdArrTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Terms of Trading Arrangement [Text Block]",
        "terseLabel": "Material Terms of Trading Arrangement"
       }
      }
     },
     "auth_ref": [
      "r886"
     ]
    },
    "ecd_NamedExecutiveOfficersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "NamedExecutiveOfficersFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Named Executive Officers, Footnote [Text Block]",
        "terseLabel": "Named Executive Officers, Footnote"
       }
      }
     },
     "auth_ref": [
      "r860"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash and Cash Equivalents Provided By (Used In) Financing Activities",
        "terseLabel": "Net cash and cash equivalents provided by financing activities",
        "totalLabel": "Net cash and cash equivalents 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": [
      "r237"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Activities",
        "verboseLabel": "Financing activities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash and Cash Equivalents Provided By (Used In) Investing Activities",
        "terseLabel": "Net cash and cash equivalents used in investing activities",
        "totalLabel": "Net cash and cash equivalents 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": [
      "r237"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInInvestingActivitiesContinuingOperationsAbstract",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investing Activities",
        "verboseLabel": "Investing activities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash and Cash Equivalents Provided By Operating Activities",
        "terseLabel": "Net cash and cash equivalents (used in) provided by operating activities",
        "totalLabel": "Net cash and cash equivalents (used in) provided by operating activities",
        "documentation": "Amount of cash inflow (outflow) from operating activities, including discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities."
       }
      }
     },
     "auth_ref": [
      "r123",
      "r124",
      "r125"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInOperatingActivitiesContinuingOperationsAbstract",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Activities",
        "verboseLabel": "Operating activities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetIncomeLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfRevisionsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfRevisionsDetails",
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss",
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net income (loss)",
        "verboseLabel": "Net income (loss)",
        "label": "Net Income (Loss)",
        "terseLabel": "Net Income (Loss)",
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent."
       }
      }
     },
     "auth_ref": [
      "r118",
      "r125",
      "r156",
      "r208",
      "r221",
      "r224",
      "r228",
      "r242",
      "r250",
      "r252",
      "r253",
      "r255",
      "r256",
      "r260",
      "r261",
      "r275",
      "r289",
      "r309",
      "r315",
      "r318",
      "r365",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r419",
      "r420",
      "r421",
      "r422",
      "r530",
      "r544",
      "r624",
      "r697",
      "r713",
      "r714",
      "r763",
      "r813",
      "r987"
     ]
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetIncomeLossAvailableToCommonStockholdersBasic",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails": {
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Income (Loss) Available to Common Stockholders, Basic",
        "terseLabel": "Basic EPS - Income (Numerator) (in dollars)",
        "documentation": "Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities; of income (loss) available to common shareholders."
       }
      }
     },
     "auth_ref": [
      "r232",
      "r252",
      "r253",
      "r255",
      "r256",
      "r264",
      "r265",
      "r276",
      "r279",
      "r289",
      "r309",
      "r315",
      "r318",
      "r763"
     ]
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetIncomeLossAvailableToCommonStockholdersDiluted",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Income (Loss) Available to Common Stockholders, Diluted",
        "totalLabel": "Net Income (Loss) Available to Common Stockholders, Diluted, Total",
        "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": [
      "r232",
      "r266",
      "r271",
      "r272",
      "r273",
      "r274",
      "r276",
      "r279"
     ]
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New Accounting Pronouncements, Policy [Policy Text Block]",
        "verboseLabel": "Recent Accounting Pronouncements",
        "documentation": "Disclosure of accounting policy pertaining to new accounting pronouncements that may impact the entity's financial reporting. Includes, but is not limited to, quantification of the expected or actual impact."
       }
      }
     },
     "auth_ref": []
    },
    "frst_NonAccrualLoansByClassAndYearOfOriginationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "NonAccrualLoansByClassAndYearOfOriginationAbstract",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Non Accrual Loans By Class And Year Of Origination [Abstract].",
        "label": "Nonaccrual Loans By Class And Year Of Origination [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_NonGaapMeasureDescriptionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "NonGaapMeasureDescriptionTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-GAAP Measure Description [Text Block]",
        "terseLabel": "Non-GAAP Measure Description"
       }
      }
     },
     "auth_ref": [
      "r859"
     ]
    },
    "ecd_NonNeosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "NonNeosMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-NEOs [Member]",
        "terseLabel": "Non-NEOs"
       }
      }
     },
     "auth_ref": [
      "r829",
      "r840",
      "r850",
      "r867",
      "r875"
     ]
    },
    "ecd_NonPeoNeoAvgCompActuallyPaidAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "NonPeoNeoAvgCompActuallyPaidAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-PEO NEO Average Compensation Actually Paid Amount",
        "terseLabel": "Non-PEO NEO Average Compensation Actually Paid Amount"
       }
      }
     },
     "auth_ref": [
      "r857"
     ]
    },
    "ecd_NonPeoNeoAvgTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "NonPeoNeoAvgTotalCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-PEO NEO Average Total Compensation Amount",
        "terseLabel": "Non-PEO NEO Average Total Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r856"
     ]
    },
    "ecd_NonPeoNeoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "NonPeoNeoMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-PEO NEO [Member]",
        "terseLabel": "Non-PEO NEO"
       }
      }
     },
     "auth_ref": [
      "r867"
     ]
    },
    "ecd_NonRule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "NonRule10b51ArrAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-Rule 10b5-1 Arrangement Adopted [Flag]",
        "terseLabel": "Non-Rule 10b5-1 Arrangement Adopted"
       }
      }
     },
     "auth_ref": [
      "r886"
     ]
    },
    "ecd_NonRule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "NonRule10b51ArrTrmntdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-Rule 10b5-1 Arrangement Terminated [Flag]",
        "terseLabel": "Non-Rule 10b5-1 Arrangement Terminated"
       }
      }
     },
     "auth_ref": [
      "r886"
     ]
    },
    "us-gaap_NoninterestBearingDepositLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestBearingDepositLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noninterest-Bearing Demand Deposits",
        "terseLabel": "Noninterest-bearing demand deposits",
        "documentation": "The aggregate amount of all domestic and foreign noninterest-bearing deposits liabilities held by the entity."
       }
      }
     },
     "auth_ref": [
      "r96"
     ]
    },
    "us-gaap_NoninterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfRevisionsDetails": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0,
       "order": 2.0
      },
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfRevisionsDetails",
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Noninterest Expenses",
        "terseLabel": "Noninterest expense",
        "totalLabel": "Total noninterest expenses",
        "verboseLabel": "Increase in noninterest expenses",
        "documentation": "Total aggregate amount of all noninterest expense."
       }
      }
     },
     "auth_ref": [
      "r165"
     ]
    },
    "us-gaap_NoninterestExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestExpenseAbstract",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noninterest Expenses",
        "verboseLabel": "Noninterest expenses:"
       }
      }
     },
     "auth_ref": []
    },
    "frst_NoninterestExpenseMiscellaneousLendingExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "NoninterestExpenseMiscellaneousLendingExpenses",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of miscellaneous expenses incurred upon lending by the entity.",
        "label": "Noninterest Expense Miscellaneous Lending Expenses",
        "terseLabel": "Miscellaneous lending expenses"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoninterestIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Noninterest Income",
        "terseLabel": "Noninterest income",
        "totalLabel": "Total noninterest income",
        "verboseLabel": "Total noninterest income",
        "documentation": "The total amount of noninterest income which may be derived from: (1) fees and commissions; (2) premiums earned; (3) insurance policy charges; (4) the sale or disposal of assets; and (5) other sources not otherwise specified."
       }
      }
     },
     "auth_ref": [
      "r162"
     ]
    },
    "us-gaap_NoninterestIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestIncomeAbstract",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noninterest Income",
        "verboseLabel": "Noninterest income:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoninterestIncomeOtherOperatingIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestIncomeOtherOperatingIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other",
        "verboseLabel": "Other noninterest income",
        "documentation": "Amount of revenue earned, classified as other, excluding interest income."
       }
      }
     },
     "auth_ref": [
      "r115",
      "r154"
     ]
    },
    "us-gaap_NonperformingFinancingReceivableMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NonperformingFinancingReceivableMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nonperforming Financial Instruments [Member]",
        "documentation": "Category status of financial instruments in which payments are past due in accordance with the terms of the contract. Financial instruments include, but are not limited to, financing receivables, loans, debt, and investments."
       }
      }
     },
     "auth_ref": [
      "r57",
      "r980"
     ]
    },
    "us-gaap_NotionalAmountOfNonderivativeInstruments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NotionalAmountOfNonderivativeInstruments",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Notional Amount of Nonderivative Instruments",
        "terseLabel": "Best efforts assets, Notional Amount",
        "documentation": "Nominal or face amount used to calculate payments on a nonderivative instrument."
       }
      }
     },
     "auth_ref": []
    },
    "frst_NotionalAmountsOfMortgageLoansHeldForSaleNotCommittedToInvestors": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "NotionalAmountsOfMortgageLoansHeldForSaleNotCommittedToInvestors",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedMortgageBankingDerivativesAndFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents notional amount of mortgage loans held for sale not committed to investors.",
        "label": "Notional Amounts Of Mortgage Loans Held For Sale Not Committed To Investors",
        "terseLabel": "Notional amount of mortgage loans held for sale not committed to investors"
       }
      }
     },
     "auth_ref": []
    },
    "frst_NumberOfBranches": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "NumberOfBranches",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents information regarding number of branches operated by an entity.",
        "label": "Number Of Branches",
        "verboseLabel": "Number of branches"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NumberOfOperatingSegments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NumberOfOperatingSegments",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of operating segments",
        "documentation": "Number of operating segments. An operating segment is a component of an enterprise: (a) that engages in business activities from which it may earn revenues and incur expenses (including revenues and expenses relating to transactions with other components of the same enterprise), (b) whose operating results are regularly reviewed by the enterprise's chief operating decision maker to make decisions about resources to be allocated to the segment and assess its performance, and (c) for which discrete financial information is available. An operating segment may engage in business activities for which it has yet to earn revenues, for example, start-up operations may be operating segments before earning revenues."
       }
      }
     },
     "auth_ref": [
      "r931"
     ]
    },
    "us-gaap_NumberOfReportableSegments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NumberOfReportableSegments",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of reportable segments",
        "terseLabel": "Number of reportable segments",
        "documentation": "Number of segments reported by the entity. A reportable segment is a component of an entity for which there is an accounting requirement to report separate financial information on that component in the entity's financial statements."
       }
      }
     },
     "auth_ref": [
      "r931"
     ]
    },
    "us-gaap_OccupancyNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OccupancyNet",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Occupancy Expenses",
        "verboseLabel": "Occupancy expenses",
        "documentation": "Amount of net occupancy expense that may include items, such as depreciation of facilities and equipment, lease expenses, property taxes and property and casualty insurance expense."
       }
      }
     },
     "auth_ref": [
      "r120",
      "r163",
      "r182"
     ]
    },
    "us-gaap_OffBalanceSheetCreditLossLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OffBalanceSheetCreditLossLiability",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedScheduleOfAllowanceForCreditLossesOffBalanceSheetExposureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Off-Balance Sheet, Credit Loss, Liability",
        "periodEndLabel": "Off-Balance Sheet, Credit Loss, Liability, Ending Balance",
        "periodStartLabel": "Off-Balance Sheet, Credit Loss, Liability, Beginning Balance",
        "documentation": "Amount of expected credit loss for credit exposure on off-balance-sheet commitment, including but not limited to, loan commitment, standby letter of credit, financial guarantee not accounted for as insurance. Excludes off-balance sheet credit exposure accounted for as insurance and instrument accounted for under derivatives and hedging."
       }
      }
     },
     "auth_ref": [
      "r370",
      "r413"
     ]
    },
    "us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedScheduleOfAllowanceForCreditLossesOffBalanceSheetExposureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Off-Balance-Sheet, Credit Loss, Liability, Credit Loss Expense (Reversal)",
        "terseLabel": "Credit loss expense (recovery)",
        "documentation": "Amount of expense (reversal of expense) for expected credit loss for off-balance sheet credit exposure. Excludes off-balance sheet credit exposure accounted for as insurance and instrument accounted for under derivatives and hedging."
       }
      }
     },
     "auth_ref": [
      "r373"
     ]
    },
    "frst_OffBalanceSheetCreditLossTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "OffBalanceSheetCreditLossTableTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tabular disclosure related to off balance sheet credit loss exposure.",
        "label": "Off Balance Sheet Credit Loss [Table Text Block]",
        "terseLabel": "Schedule of allowance for credit losses on off-balance-sheet credit exposures"
       }
      }
     },
     "auth_ref": []
    },
    "frst_OneToFourResidentialFamilyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "OneToFourResidentialFamilyMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Mortgage loans secured by 1-4 family residential properties.",
        "label": "1-4 Family Residential"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseLiability",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetailsAlternate": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLeasesNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfFutureMinimumRentalPaymentsRequiredUnderNonCancelableOperatingLeasesForBankPremisesDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Liability",
        "terseLabel": "Operating lease liabilities",
        "verboseLabel": "Lease liabilities",
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease."
       }
      }
     },
     "auth_ref": [
      "r556"
     ]
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseRightOfUseAsset",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLeasesNarrativeDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Right-of-Use Asset",
        "terseLabel": "Operating lease right-of-use assets",
        "documentation": "Amount of lessee's right to use underlying asset under operating lease."
       }
      }
     },
     "auth_ref": [
      "r555"
     ]
    },
    "us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseWeightedAverageRemainingLeaseTerm1",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLeasesScheduleOfOperatingLeaseOtherInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease Weighted Average Remaining Lease Term1",
        "terseLabel": "Weighted-average remaining lease term - operating leases, in years",
        "documentation": "Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r558",
      "r801"
     ]
    },
    "frst_OrganizationAndSignificantAccountingPoliciesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "OrganizationAndSignificantAccountingPoliciesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "ACCOUNTING POLICIES (Revised and Restated) [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OrganizationConsolidationBasisOfPresentationBusinessDescriptionAndAccountingPoliciesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OrganizationConsolidationBasisOfPresentationBusinessDescriptionAndAccountingPoliciesTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization, Consolidation, Basis Of Presentation, Business Description and Accounting Policies [Text Block]",
        "terseLabel": "ACCOUNTING POLICIES (Revised and Restated)",
        "documentation": "The entire disclosure for the general note to the financial statements for the reporting entity which may include, descriptions of the basis of presentation, business description, significant accounting policies, consolidations, reclassifications, new pronouncements not yet adopted and changes in accounting principles."
       }
      }
     },
     "auth_ref": [
      "r126",
      "r127",
      "r128",
      "r139"
     ]
    },
    "us-gaap_OtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Assets",
        "terseLabel": "Other assets",
        "documentation": "Amount of assets classified as other."
       }
      }
     },
     "auth_ref": [
      "r147",
      "r211",
      "r613",
      "r815"
     ]
    },
    "us-gaap_OtherAssetsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherAssetsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Assets, Fair Value Disclosure",
        "terseLabel": "Mortgage banking financial assets",
        "documentation": "Fair value portion of other assets."
       }
      }
     },
     "auth_ref": []
    },
    "frst_OtherCommitmentsExpirationTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "OtherCommitmentsExpirationTerm",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Expiration term of other commitments of the entity, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Other Commitments Expiration Term",
        "terseLabel": "Expiration period"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfChangesInAccumulatedOtherComprehensiveIncomeByComponentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), before Reclassifications, Net of Tax",
        "verboseLabel": "Other comprehensive loss before reclassifications",
        "documentation": "Amount after tax, before reclassification adjustments of other comprehensive income (loss)."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r30",
      "r227",
      "r545",
      "r547",
      "r550",
      "r916"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Unrealized Gain (Loss)",
        "terseLabel": "Unrealized loss on available-for-sale securities",
        "documentation": "Amount before tax of other comprehensive income (loss) attributable to parent entity."
       }
      }
     },
     "auth_ref": [
      "r4",
      "r11",
      "r140"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParentAbstract",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income Loss Before Tax Portion Attributable To Parent [Abstract]",
        "verboseLabel": "Other comprehensive loss:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfChangesInAccumulatedOtherComprehensiveIncomeByComponentDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent",
        "positiveLabel": "Net current-period other comprehensive income (loss)",
        "totalLabel": "Other comprehensive loss",
        "verboseLabel": "Changes in other comprehensive income (loss) on investment securities, net of tax",
        "documentation": "Amount after tax of other comprehensive income (loss) attributable to parent entity."
       }
      }
     },
     "auth_ref": [
      "r4",
      "r11",
      "r140",
      "r222",
      "r225"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossTaxPortionAttributableToParent1",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementOfChangesInStockholdersEquityRevisedAndRestatedParentheticals",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Tax, Portion Attributable To Parent",
        "negatedLabel": "Tax effect benefit",
        "verboseLabel": "Tax benefit",
        "documentation": "Amount of tax expense (benefit) allocated to other comprehensive income (loss) attributable to parent entity."
       }
      }
     },
     "auth_ref": [
      "r4",
      "r11",
      "r140"
     ]
    },
    "us-gaap_OtherInterestAndDividendIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherInterestAndDividendIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Interest and Dividend Income",
        "verboseLabel": "Interest and dividends on other earning assets",
        "documentation": "Amount, after discount, accretion and premium amortization, of interest income and dividend income classified as other."
       }
      }
     },
     "auth_ref": [
      "r166"
     ]
    },
    "us-gaap_OtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other liabilities",
        "terseLabel": "Other liabilities",
        "documentation": "Amount of liabilities classified as other."
       }
      }
     },
     "auth_ref": [
      "r98",
      "r611",
      "r671",
      "r672",
      "r815",
      "r1024"
     ]
    },
    "us-gaap_OtherLiabilitiesFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherLiabilitiesFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Liabilities, Fair Value Disclosure",
        "terseLabel": "Mortgage banking financial liabilities",
        "documentation": "Fair value portion of other liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherNoninterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherNoninterestExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Noninterest Expense",
        "verboseLabel": "Other operating expenses",
        "documentation": "Amount of noninterest expense classified as other."
       }
      }
     },
     "auth_ref": [
      "r165"
     ]
    },
    "ecd_OtherPerfMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "OtherPerfMeasureAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Performance Measure, Amount",
        "terseLabel": "Other Performance Measure, Amount"
       }
      }
     },
     "auth_ref": [
      "r859"
     ]
    },
    "ecd_OutstandingAggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "OutstandingAggtErrCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Aggregate Erroneous Compensation Amount",
        "terseLabel": "Outstanding Aggregate Erroneous Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r827",
      "r838",
      "r848",
      "r873"
     ]
    },
    "ecd_OutstandingRecoveryCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "OutstandingRecoveryCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Recovery Compensation Amount",
        "terseLabel": "Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r830",
      "r841",
      "r851",
      "r876"
     ]
    },
    "ecd_OutstandingRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "OutstandingRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Recovery, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r830",
      "r841",
      "r851",
      "r876"
     ]
    },
    "us-gaap_PassMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PassMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pass [Member]",
        "documentation": "A category of financing receivables not considered to be special mention, substandard, doubtful, and loss receivables."
       }
      }
     },
     "auth_ref": [
      "r57",
      "r980"
     ]
    },
    "us-gaap_PastDueFinancingReceivablesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PastDueFinancingReceivablesTableTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Past Due Financing Receivables [Table Text Block]",
        "verboseLabel": "Schedule of details of aging of the recorded investment in past due loans by class of loans",
        "documentation": "Tabular disclosure of aging analysis for financing receivable."
       }
      }
     },
     "auth_ref": [
      "r58",
      "r60",
      "r776",
      "r979"
     ]
    },
    "ecd_PayVsPerformanceDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "PayVsPerformanceDisclosureLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance Disclosure [Line Items]",
        "terseLabel": "Pay vs Performance Disclosure"
       }
      }
     },
     "auth_ref": [
      "r855"
     ]
    },
    "frst_PaycheckProtectionProgramLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "PaycheckProtectionProgramLoansMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Paycheck Protection Program Loans [Member].",
        "label": "Paycheck Protection Program Loans [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PaymentsForFederalHomeLoanBankAdvances": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsForFederalHomeLoanBankAdvances",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repayment Of Federal Home Loan Bank Advances",
        "negatedLabel": "Repayment of short-term FHLB advances, net of proceeds",
        "documentation": "Amount of cash outflow for disbursement to borrower related to advance, made by Federal Home Loan Bank (FHLBank), classified as investing activity."
       }
      }
     },
     "auth_ref": [
      "r920"
     ]
    },
    "us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsForOriginationOfMortgageLoansHeldForSale",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments for Origination of Mortgage Loans Held-for-sale",
        "negatedLabel": "Origination of loans held for sale",
        "documentation": "The amount of cash paid for the origination of mortgages that are held for sale."
       }
      }
     },
     "auth_ref": [
      "r758",
      "r921"
     ]
    },
    "us-gaap_PaymentsForProceedsFromLoansAndLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsForProceedsFromLoansAndLeases",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments for (Proceeds from) Loans and Leases, Total",
        "negatedLabel": "Net increase in loans",
        "documentation": "The net cash outflow or inflow for the increase (decrease) in the beginning and end of period of loan and lease balances which are not originated or purchased specifically for resale. Includes cash payments and proceeds associated with (a) loans held-for-investment, (b) leases held-for-investment, and (c) both."
       }
      }
     },
     "auth_ref": [
      "r600"
     ]
    },
    "us-gaap_PaymentsOfDividendsCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsOfDividendsCommonStock",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Dividends Paid - Common Stock",
        "negatedLabel": "Cash dividends paid on common stock",
        "documentation": "Amount of cash outflow in the form of ordinary dividends to common shareholders of the parent entity."
       }
      }
     },
     "auth_ref": [
      "r37"
     ]
    },
    "us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquireAvailableForSaleSecuritiesDebt",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments to Acquire Available-for-sale Securities",
        "negatedLabel": "Purchases of securities available-for-sale",
        "terseLabel": "Purchases of available for sale investment securities",
        "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": [
      "r34",
      "r233",
      "r332"
     ]
    },
    "us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquireBusinessesNetOfCashAcquired",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments to Acquire Businesses, Net of Cash Acquired",
        "negatedLabel": "Business acquisition, net of cash acquired",
        "documentation": "The cash outflow associated with the acquisition of a business, net of the cash acquired from the purchase."
       }
      }
     },
     "auth_ref": [
      "r35"
     ]
    },
    "us-gaap_PaymentsToAcquireHeldToMaturitySecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquireHeldToMaturitySecurities",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchases of securities held to maturity",
        "terseLabel": "Purchases of securities held to maturity",
        "documentation": "Amount of cash outflow through purchase of long-term held-to-maturity securities."
       }
      }
     },
     "auth_ref": [
      "r34",
      "r332"
     ]
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchases Of Bank Premises and Equipment",
        "negatedLabel": "Purchases of bank premises 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": [
      "r122"
     ]
    },
    "ecd_PeerGroupIssuersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "PeerGroupIssuersFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Peer Group Issuers, Footnote [Text Block]",
        "terseLabel": "Peer Group Issuers, Footnote"
       }
      }
     },
     "auth_ref": [
      "r858"
     ]
    },
    "ecd_PeerGroupTotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "PeerGroupTotalShareholderRtnAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Peer Group Total Shareholder Return Amount",
        "terseLabel": "Peer Group Total Shareholder Return Amount"
       }
      }
     },
     "auth_ref": [
      "r858"
     ]
    },
    "ecd_PeoActuallyPaidCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "PeoActuallyPaidCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Actually Paid Compensation Amount",
        "terseLabel": "PEO Actually Paid Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r857"
     ]
    },
    "ecd_PeoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "PeoMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO [Member]",
        "terseLabel": "PEO"
       }
      }
     },
     "auth_ref": [
      "r867"
     ]
    },
    "ecd_PeoName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "PeoName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Name",
        "terseLabel": "PEO Name"
       }
      }
     },
     "auth_ref": [
      "r860"
     ]
    },
    "ecd_PeoTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "PeoTotalCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Total Compensation Amount",
        "terseLabel": "PEO Total Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r856"
     ]
    },
    "frst_PercentageOfAggregateLoans": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "PercentageOfAggregateLoans",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of aggregate loans.",
        "label": "Percentage Of Aggregate Loans",
        "terseLabel": "Percentage of aggregate loans, modified in period"
       }
      }
     },
     "auth_ref": []
    },
    "frst_PercentageOfSubordinatedNotesConsideredTier2": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "PercentageOfSubordinatedNotesConsideredTier2",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of subordinated notes considered tier 2.",
        "label": "Percentage Of Subordinated Notes Considered Tier 2",
        "terseLabel": "Percentage of subordinated notes considered tier 2"
       }
      }
     },
     "auth_ref": []
    },
    "frst_PerformanceBasedRestrictedStockUnitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "PerformanceBasedRestrictedStockUnitsMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to performance-based restricted stock units.",
        "label": "Performance Based Restricted Stock Units"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PledgedStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PledgedStatusAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pledged Status [Axis]",
        "documentation": "Information by pledged or not pledged status of asset owned by entity."
       }
      }
     },
     "auth_ref": [
      "r509",
      "r669",
      "r794"
     ]
    },
    "us-gaap_PledgedStatusDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PledgedStatusDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pledged Status [Domain]",
        "documentation": "Pledged or not pledged status of asset owned by entity."
       }
      }
     },
     "auth_ref": [
      "r509",
      "r669",
      "r794"
     ]
    },
    "us-gaap_PledgingPurposeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PledgingPurposeAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pledging Purpose [Axis]",
        "documentation": "Information by pledging purpose of pledged asset owned."
       }
      }
     },
     "auth_ref": [
      "r576",
      "r794",
      "r803",
      "r893"
     ]
    },
    "us-gaap_PledgingPurposeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PledgingPurposeDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pledging Purpose [Domain]",
        "documentation": "Pledging purpose of pledged asset owned."
       }
      }
     },
     "auth_ref": [
      "r576",
      "r794",
      "r803",
      "r893"
     ]
    },
    "frst_PooledUnderwritingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "PooledUnderwritingAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents amount of trust preferred securities placed in a pooled underwriting.",
        "label": "Pooled Underwriting Amount",
        "verboseLabel": "Trust preferred securities pooled underwriting amount"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PortionAtFairValueFairValueDisclosureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PortionAtFairValueFairValueDisclosureMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Portion at Fair Value Measurement [Member]",
        "documentation": "Measured at fair value for financial reporting purposes."
       }
      }
     },
     "auth_ref": [
      "r542"
     ]
    },
    "frst_PreferredInvestmentInMortgageAffiliate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "PreferredInvestmentInMortgageAffiliate",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the portion of the balance sheet assertion valued at fair value by the entity.",
        "label": "Preferred Investment In Mortgage Affiliate",
        "verboseLabel": "Preferred investment in mortgage affiliate"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PreferredStockParOrStatedValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PreferredStockParOrStatedValuePerShare",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheetsParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred Stock, Par Value (In Dollars Per Share)",
        "verboseLabel": "Preferred stock, par value (in dollars 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": [
      "r106",
      "r450"
     ]
    },
    "us-gaap_PreferredStockSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PreferredStockSharesAuthorized",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheetsParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred Stock, Shares Authorized",
        "verboseLabel": "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": [
      "r106",
      "r677"
     ]
    },
    "us-gaap_PreferredStockSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PreferredStockSharesIssued",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheetsParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred Stock, Shares Issued",
        "terseLabel": "Preferred stock, shares issued",
        "documentation": "Total number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) issued to shareholders (includes related preferred shares that were issued, repurchased, and remain in the treasury). May be all or portion of the number of preferred shares authorized. Excludes preferred shares that are classified as debt."
       }
      }
     },
     "auth_ref": [
      "r106",
      "r450"
     ]
    },
    "us-gaap_PreferredStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PreferredStockSharesOutstanding",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheetsParentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred Stock, Shares Outstanding",
        "terseLabel": "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": [
      "r106",
      "r677",
      "r695",
      "r1029",
      "r1030"
     ]
    },
    "us-gaap_PreferredStockValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PreferredStockValue",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred Stock, Value, Issued",
        "terseLabel": "Preferred stock, $0.01 par value. Authorized 5,000,000 shares; no shares issued and outstanding",
        "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": [
      "r106",
      "r616",
      "r802"
     ]
    },
    "us-gaap_PrepayableFinancialAssetClosedPortfolioLastOfLayerAmortizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PrepayableFinancialAssetClosedPortfolioLastOfLayerAmortizedCost",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfHedgedAssetsAndCumulativeFairValueAdjustmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Asset, Closed Portfolio, Portfolio Layer Method, Amortized Cost",
        "terseLabel": "Amortized Cost Basis",
        "documentation": "Amortized cost of closed portfolio of financial asset used to designate hedging relationship in which hedged item is expected to be outstanding for designated hedged period."
       }
      }
     },
     "auth_ref": [
      "r517",
      "r798"
     ]
    },
    "frst_PrimisBankMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "PrimisBankMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to primis bank.",
        "label": "Primis Bank [Member]",
        "terseLabel": "Primis Bank"
       }
      }
     },
     "auth_ref": []
    },
    "frst_PrimisMortgageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "PrimisMortgageMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining  to primis mortgage segment.",
        "label": "Primis Mortgage [Member]",
        "terseLabel": "Primis Mortgage"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PriorPeriodReclassificationAdjustmentDescription": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PriorPeriodReclassificationAdjustmentDescription",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reclassification, Policy [Policy Text Block]",
        "verboseLabel": "Reclassifications",
        "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": [
      "r914"
     ]
    },
    "us-gaap_ProceedsFromIssuanceOfSecuredDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromIssuanceOfSecuredDebt",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Issuance of Secured Debt",
        "terseLabel": "Proceeds from secured borrowings, net of repayments",
        "verboseLabel": "Change in secured borrowings",
        "documentation": "The cash inflow from amounts received from issuance of long-term debt that is wholly or partially secured by collateral. Excludes proceeds from tax exempt secured debt."
       }
      }
     },
     "auth_ref": [
      "r36"
     ]
    },
    "us-gaap_ProceedsFromLifeInsurancePolicies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromLifeInsurancePolicies",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Life Insurance Policy",
        "terseLabel": "Proceeds from bank-owned life insurance death benefit",
        "documentation": "Amount of cash inflow for proceeds from settlement of corporate-owned life insurance policy, classified as investing activities. Includes, but is not limited to, bank-owned life insurance policy."
       }
      }
     },
     "auth_ref": [
      "r5",
      "r32"
     ]
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds From Paydowns, Maturities and Calls Of Securities Available For Sale",
        "terseLabel": "Called investment securities",
        "verboseLabel": "Proceeds from paydowns, maturities and calls of 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": [
      "r233",
      "r234",
      "r937"
     ]
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds From Paydowns, Maturities and Calls Of Securities Held To Maturity",
        "verboseLabel": "Proceeds from paydowns, maturities and calls of securities held-to-maturity",
        "documentation": "The cash inflow associated with the maturity, prepayments and calls (requests for early payments) of debt securities designated as held-to-maturity."
       }
      }
     },
     "auth_ref": [
      "r33",
      "r937"
     ]
    },
    "frst_ProceedsFromRepaymentsOfSecuritiesSoldUnderAgreementToRepurchaseAndOtherShortTermBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "ProceedsFromRepaymentsOfSecuritiesSoldUnderAgreementToRepurchaseAndOtherShortTermBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from a borrowing net of the cash outflow from repayment of Securities Sold Under Agreement To Repurchase And Other Short Term Borrowings.",
        "label": "Proceeds From Repayments Of Securities Sold Under Agreement To Repurchase And Other Short Term Borrowings",
        "negatedLabel": "Increase (decrease) in securities sold under agreements to repurchase"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromSaleOfAvailableForSaleSecuritiesDebt",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Sale of Debt Securities, Available-for-Sale",
        "terseLabel": "Sale of debt securities",
        "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": [
      "r33",
      "r233",
      "r332",
      "r364"
     ]
    },
    "frst_ProceedsFromSaleOfFederalHomeLoanBankAndFederalReserveBankStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "ProceedsFromSaleOfFederalHomeLoanBankAndFederalReserveBankStock",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeds from sale of Federal Home Loan Bank and Federal Reserve Bank Stock.",
        "label": "Proceeds From Sale of Federal Home Loan Bank and Federal Reserve Bank Stock",
        "terseLabel": "Net decrease of FRB and FHLB stock"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromSaleOfMortgageLoansHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromSaleOfMortgageLoansHeldForSale",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Sale of Mortgage Loans Held-for-sale",
        "terseLabel": "Proceeds from sale of loans held for sale",
        "documentation": "The cash inflow from sales of loans that are secured with real estate mortgages and are held with the intention to resell in the near future."
       }
      }
     },
     "auth_ref": [
      "r39",
      "r40"
     ]
    },
    "us-gaap_ProceedsFromSaleOfOtherRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromSaleOfOtherRealEstate",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds From Sale Of Other Real Estate Owned",
        "verboseLabel": "Proceeds from sales of other real estate owned, net of improvements",
        "documentation": "The cash inflow associated with the sale of other real estate not otherwise defined in the taxonomy."
       }
      }
     },
     "auth_ref": [
      "r32"
     ]
    },
    "us-gaap_ProceedsFromStockPlans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromStockPlans",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Stock Plans",
        "verboseLabel": "Proceeds from exercised stock options",
        "documentation": "The cash inflow associated with the amount received from the stock plan during the period."
       }
      }
     },
     "auth_ref": [
      "r3"
     ]
    },
    "us-gaap_ProfessionalFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProfessionalFees",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Professional Fees",
        "terseLabel": "Professional fees",
        "documentation": "A fee charged for services from professionals such as doctors, lawyers and accountants. The term is often expanded to include other professions, for example, pharmacists charging to maintain a medicinal profile of a client or customer."
       }
      }
     },
     "auth_ref": [
      "r813",
      "r1027",
      "r1028"
     ]
    },
    "us-gaap_ProfitLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProfitLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfChangesInStockholdersEquityDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest",
        "terseLabel": "Net (loss) income",
        "documentation": "The consolidated profit or loss for the period, net of income taxes, including the portion attributable to the noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r208",
      "r221",
      "r224",
      "r236",
      "r242",
      "r250",
      "r260",
      "r261",
      "r289",
      "r309",
      "r315",
      "r318",
      "r365",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r419",
      "r420",
      "r421",
      "r422",
      "r508",
      "r511",
      "r512",
      "r530",
      "r544",
      "r601",
      "r623",
      "r654",
      "r697",
      "r713",
      "r714",
      "r763",
      "r795",
      "r796",
      "r814",
      "r918",
      "r987"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentNet",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment, Net",
        "terseLabel": "Bank premises and equipment, net",
        "documentation": "Amount after accumulated depreciation, depletion and amortization of physical assets used in the normal conduct of business to produce goods and services and not intended for resale. Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, and furniture and fixtures."
       }
      }
     },
     "auth_ref": [
      "r8",
      "r610",
      "r621",
      "r802"
     ]
    },
    "ecd_PvpTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "PvpTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance Disclosure [Table]",
        "terseLabel": "Pay vs Performance Disclosure"
       }
      }
     },
     "auth_ref": [
      "r855"
     ]
    },
    "ecd_PvpTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "PvpTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance [Table Text Block]",
        "terseLabel": "Pay vs Performance Disclosure, Table"
       }
      }
     },
     "auth_ref": [
      "r855"
     ]
    },
    "frst_QFactorAndOtherQualitativeAdjustmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "QFactorAndOtherQualitativeAdjustmentsMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Q Factor And Other Qualitative Adjustments [Member].",
        "label": "Q Factor And Other Qualitative Adjustments [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_RangeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RangeAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Range [Axis]"
       }
      }
     },
     "auth_ref": [
      "r409",
      "r410",
      "r411",
      "r412",
      "r453",
      "r460",
      "r488",
      "r489",
      "r490",
      "r568",
      "r593",
      "r640",
      "r666",
      "r667",
      "r718",
      "r720",
      "r722",
      "r723",
      "r738",
      "r753",
      "r754",
      "r765",
      "r784",
      "r791",
      "r804",
      "r807",
      "r985",
      "r989",
      "r1009",
      "r1010",
      "r1011",
      "r1012",
      "r1013"
     ]
    },
    "srt_RangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RangeMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Range [Domain]"
       }
      }
     },
     "auth_ref": [
      "r409",
      "r410",
      "r411",
      "r412",
      "r453",
      "r460",
      "r488",
      "r489",
      "r490",
      "r568",
      "r593",
      "r640",
      "r666",
      "r667",
      "r718",
      "r720",
      "r722",
      "r723",
      "r738",
      "r753",
      "r754",
      "r765",
      "r784",
      "r791",
      "r804",
      "r807",
      "r985",
      "r989",
      "r1009",
      "r1010",
      "r1011",
      "r1012",
      "r1013"
     ]
    },
    "us-gaap_RealEstateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RealEstateMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Real Estate [Member]",
        "documentation": "Property consisting of land, land improvement and buildings."
       }
      }
     },
     "auth_ref": [
      "r991"
     ]
    },
    "ecd_RecoveryOfErrCompDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "RecoveryOfErrCompDisclosureLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Recovery of Erroneously Awarded Compensation Disclosure [Line Items]",
        "terseLabel": "Recovery of Erroneously Awarded Compensation Disclosure"
       }
      }
     },
     "auth_ref": [
      "r822",
      "r833",
      "r843",
      "r868"
     ]
    },
    "us-gaap_RepaymentsOfOtherShortTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RepaymentsOfOtherShortTermDebt",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repayments of Other Short-Term Debt",
        "negatedLabel": "Repayment of short-term borrowings",
        "documentation": "Amount of cash outflow for the payment of debt classified as other, maturing within one year or the operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "frst_RepurchaseOfRestrictedStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "RepurchaseOfRestrictedStock",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase of restricted stock.",
        "label": "Repurchase of Restricted Stock",
        "negatedLabel": "Repurchase of restricted stock"
       }
      }
     },
     "auth_ref": []
    },
    "frst_RepurchaseOfRestrictedStockFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "RepurchaseOfRestrictedStockFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase of restricted stock financing activities.",
        "label": "Repurchase of Restricted Stock Financing Activities",
        "negatedLabel": "Repurchase of restricted stock"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ResidentialMortgageBackedSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ResidentialMortgageBackedSecuritiesMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostUnrecognizedGainsAndLossesAndFairValueOfHeldToMaturitySecuritiesDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Residential Mortgage Backed Securities [Member]",
        "documentation": "Securities collateralized by residential real estate mortgage loans."
       }
      }
     },
     "auth_ref": [
      "r938",
      "r945",
      "r950",
      "r955",
      "r963",
      "r992"
     ]
    },
    "us-gaap_ResidentialPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ResidentialPortfolioSegmentMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Residential Portfolio Segment [Member]",
        "documentation": "Portfolio segment of the company's total financing receivables related to residential financing receivables."
       }
      }
     },
     "auth_ref": []
    },
    "srt_RestatementAdjustmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RestatementAdjustmentMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfRevisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision of Prior Period, Adjustment [Member]"
       }
      }
     },
     "auth_ref": [
      "r247",
      "r248",
      "r249",
      "r258",
      "r259",
      "r283",
      "r528",
      "r529",
      "r894",
      "r895",
      "r896",
      "r897",
      "r898",
      "r902",
      "r903"
     ]
    },
    "srt_RestatementAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RestatementAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfChangesInStockholdersEquityDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfRevisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision of Prior Period [Axis]"
       }
      }
     },
     "auth_ref": [
      "r206",
      "r247",
      "r248",
      "r249",
      "r250",
      "r251",
      "r252",
      "r253",
      "r254",
      "r255",
      "r257",
      "r258",
      "r259",
      "r260",
      "r261",
      "r262",
      "r283",
      "r367",
      "r368",
      "r505",
      "r527",
      "r528",
      "r529",
      "r530",
      "r553",
      "r560",
      "r561",
      "r641",
      "r642",
      "r643",
      "r644",
      "r645",
      "r646",
      "r647",
      "r648",
      "r649",
      "r650",
      "r651"
     ]
    },
    "ecd_RestatementDateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "RestatementDateAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Determination Date [Axis]",
        "terseLabel": "Restatement Determination Date:"
       }
      }
     },
     "auth_ref": [
      "r823",
      "r834",
      "r844",
      "r869"
     ]
    },
    "ecd_RestatementDeterminationDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "RestatementDeterminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Determination Date",
        "terseLabel": "Restatement Determination Date"
       }
      }
     },
     "auth_ref": [
      "r824",
      "r835",
      "r845",
      "r870"
     ]
    },
    "ecd_RestatementDoesNotRequireRecoveryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "RestatementDoesNotRequireRecoveryTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Does Not Require Recovery [Text Block]",
        "terseLabel": "Restatement does not require Recovery"
       }
      }
     },
     "auth_ref": [
      "r831",
      "r842",
      "r852",
      "r877"
     ]
    },
    "srt_RestatementDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RestatementDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfChangesInStockholdersEquityDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfRevisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision of Prior Period [Domain]"
       }
      }
     },
     "auth_ref": [
      "r206",
      "r247",
      "r248",
      "r249",
      "r250",
      "r251",
      "r252",
      "r253",
      "r254",
      "r255",
      "r257",
      "r258",
      "r259",
      "r260",
      "r261",
      "r262",
      "r283",
      "r367",
      "r368",
      "r505",
      "r527",
      "r528",
      "r529",
      "r530",
      "r553",
      "r560",
      "r561",
      "r641",
      "r642",
      "r643",
      "r644",
      "r645",
      "r646",
      "r647",
      "r648",
      "r649",
      "r650",
      "r651"
     ]
    },
    "us-gaap_RestrictedStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RestrictedStockMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r48"
     ]
    },
    "us-gaap_RestrictedStockUnitsRSUMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RestrictedStockUnitsRSUMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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/2023",
     "localname": "RetainedEarningsAccumulatedDeficit",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfChangesInStockholdersEquityDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retained Earnings",
        "terseLabel": "Retained earnings",
        "verboseLabel": "Retained earnings",
        "documentation": "Amount of accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r109",
      "r137",
      "r619",
      "r645",
      "r650",
      "r653",
      "r678",
      "r802"
     ]
    },
    "us-gaap_RetainedEarningsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetainedEarningsMember",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retained Earnings [Member]",
        "documentation": "Accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r205",
      "r247",
      "r248",
      "r249",
      "r251",
      "r259",
      "r261",
      "r366",
      "r369",
      "r497",
      "r498",
      "r499",
      "r504",
      "r505",
      "r520",
      "r522",
      "r523",
      "r525",
      "r528",
      "r641",
      "r643",
      "r655",
      "r1029"
     ]
    },
    "frst_RetainedEarningsRevisionsPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "RetainedEarningsRevisionsPolicyPolicyTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for retained earnings revisions.",
        "label": "Retained Earnings Revisions Policy [Policy Text Block]",
        "terseLabel": "Retained Earnings Revisions"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_Rule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "Rule10b51ArrAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rule 10b5-1 Arrangement Adopted [Flag]",
        "terseLabel": "Rule 10b5-1 Arrangement Adopted"
       }
      }
     },
     "auth_ref": [
      "r886"
     ]
    },
    "ecd_Rule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "Rule10b51ArrTrmntdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rule 10b5-1 Arrangement Terminated [Flag]",
        "terseLabel": "Rule 10b5-1 Arrangement Terminated"
       }
      }
     },
     "auth_ref": [
      "r886"
     ]
    },
    "frst_SbaPoolSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "SbaPoolSecuritiesMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SBA Pool Securities [Member]",
        "label": "SBA Pool Securities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_ScenarioPreviouslyReportedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ScenarioPreviouslyReportedMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfChangesInStockholdersEquityDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Previously Reported [Member]"
       }
      }
     },
     "auth_ref": [
      "r206",
      "r247",
      "r249",
      "r250",
      "r251",
      "r252",
      "r253",
      "r261",
      "r283",
      "r505",
      "r527",
      "r528",
      "r529",
      "r553",
      "r641",
      "r642",
      "r643",
      "r644",
      "r645",
      "r646",
      "r647",
      "r648",
      "r649",
      "r650",
      "r651",
      "r898",
      "r900",
      "r901",
      "r902",
      "r929",
      "r974",
      "r975",
      "r999",
      "r1004",
      "r1005"
     ]
    },
    "us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAccountsNotesLoansAndFinancingReceivableTable",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfActivityForLoanAndLeaseLossesByClassOfLoanDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Accounts, Notes, Loans and Financing Receivable [Table]",
        "documentation": "Schedule itemizing specific 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": [
      "r28"
     ]
    },
    "us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule Of Accounts, Notes, Loans and Financing Receivable [Table Text Block]",
        "verboseLabel": "Schedule of loans, net of unearned income",
        "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": [
      "r28"
     ]
    },
    "us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule Of Antidilutive Securities Excluded From Computation Of Earnings Per Share [Table]",
        "documentation": "Schedule for securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) in the future that were not included in the computation of diluted EPS because to do so would increase EPS amounts or decrease loss per share amounts for the period presented, by Antidilutive Securities."
       }
      }
     },
     "auth_ref": [
      "r48"
     ]
    },
    "us-gaap_ScheduleOfAssetsAndAssociatedLiabilitiesAccountedForAsSecuredBorrowingsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAssetsAndAssociatedLiabilitiesAccountedForAsSecuredBorrowingsTable",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Assets and Associated Liabilities Accounted for as Secured Borrowings [Table]",
        "documentation": "Information about the carrying amount and classification of assets and liabilities recognized in the transferor's statement of financial position at the end of each period presented."
       }
      }
     },
     "auth_ref": [
      "r10"
     ]
    },
    "frst_ScheduleOfAvailableForSaleAndHeldToMaturitySecuritiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "ScheduleOfAvailableForSaleAndHeldToMaturitySecuritiesLineItems",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Schedule Of Available For Sale and Held To Maturity Securities [Line Items]",
        "verboseLabel": "Schedule Of Available For Sale and Held To Maturity Securities [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "frst_ScheduleOfAvailableForSaleAndHeldToMaturitySecuritiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "ScheduleOfAvailableForSaleAndHeldToMaturitySecuritiesTable",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of available-for-sale securities which includes, but is not limited to, changes in the cost basis and fair value, fair value and gross unrealized gain (loss), fair values by type of security, contractual maturity and classification, amortized cost basis, contracts to acquire securities to be accounted for as available-for-sale, debt maturities, transfers to trading, change in net unrealized holding gain (loss) net of tax, continuous unrealized loss position fair value, aggregate losses qualitative disclosures, other than temporary impairment (OTTI) losses or other disclosures related to available for sale securities and all investments in certain debt and equity securities for which the entity has the positive intent and ability to hold until maturity.",
        "label": "Schedule Of Available For Sale and Held To Maturity Securities [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAvailableForSaleSecuritiesLineItems",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Available-for-sale Securities [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": [
      "r334",
      "r335",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345"
     ]
    },
    "us-gaap_ScheduleOfComprehensiveIncomeLossTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfComprehensiveIncomeLossTableTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive Income (Loss) [Table Text Block]",
        "verboseLabel": "Schedule of changes in accumulated other comprehensive income by component",
        "documentation": "Tabular disclosure of components of comprehensive income (loss). Includes, but is not limited to, foreign currency translation adjustments, foreign currency transactions designated as economic hedges of a net investment in foreign entity, gain (loss) and prior service cost (credit) for pension plans and other postretirement benefit plans."
       }
      }
     },
     "auth_ref": [
      "r113"
     ]
    },
    "us-gaap_ScheduleOfDerivativeAssetsAtFairValueTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDerivativeAssetsAtFairValueTableTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Derivative Assets at Fair Value [Table Text Block]",
        "verboseLabel": "Schedule of Hedged Assets and Cumulative Fair Value Hedging Adjustments",
        "documentation": "Tabular disclosure of derivative assets at fair value."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDerivativeInstrumentsTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Derivative Instruments [Table Text Block]",
        "terseLabel": "Schedule of derivative and non-derivative financial instruments",
        "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": [
      "r14",
      "r74",
      "r75",
      "r76",
      "r77",
      "r80",
      "r82",
      "r84",
      "r86"
     ]
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Earnings Per Share, Basic and Diluted [Table Text Block]",
        "verboseLabel": "Schedule of reconciliation of the denominators of the basic and diluted earnings per share",
        "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": [
      "r930"
     ]
    },
    "us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentRestatementTable",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfCashFlowsDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfChangesInStockholdersEquityDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfIncomeAndComprehensiveIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Error Corrections and Prior Period Adjustment Restatement [Table]",
        "documentation": "Schedule of prior period adjustments to correct an error in previously issued financial statements. The disclosure may include, but is not limited to: (1) the effect of the correction on each financial statement line item and any per-share amounts affected for each prior period presented (2) the cumulative effect of the change on retained earnings or other appropriate components of equity or net assets in the statement of financial position, as of the beginning of the earliest period presented, and (3) the effect of the prior period adjustment (both gross and net of applicable income tax) on the net income of each prior period presented in the entity's annual report for the year in which the adjustments are made. This table can be used to disclose the amounts as previously reported and the effect of the correction or other adjustment on per line item or per share amount basis. This table uses as its line items financial statement line items that are affected by prior period adjustments."
       }
      }
     },
     "auth_ref": [
      "r252",
      "r253",
      "r254",
      "r258",
      "r259",
      "r260",
      "r261",
      "r283"
     ]
    },
    "us-gaap_ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfErrorCorrectionsAndPriorPeriodAdjustmentsTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Error Corrections and Prior Period Adjustments [Table Text Block]",
        "terseLabel": "Schedule of revisions",
        "documentation": "Tabular disclosure of prior period adjustments to previously issued financial statements including (1) the effect of the correction on each financial statement line item and any per-share amounts affected for each prior period presented (2) the cumulative effect of the change on retained earnings or other appropriate components of equity or net assets in the statement of financial position, as of the beginning of the earliest period presented, and (3) the effect of the prior period adjustments (both gross and net of applicable income tax) on the net income of each prior period presented in the entity's annual report for the year in which the adjustments are made."
       }
      }
     },
     "auth_ref": [
      "r44",
      "r45",
      "r46"
     ]
    },
    "us-gaap_ScheduleOfFederalHomeLoanBankAdvancesByBranchOfFHLBBankTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfFederalHomeLoanBankAdvancesByBranchOfFHLBBankTable",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule Of Federal Home Loan Bank Advances, By Branch Of Fhlb Bank [Table]",
        "documentation": "Represents the total amount of advances due to the Federal Home Loan Bank, by Branch, as of the balance sheet date."
       }
      }
     },
     "auth_ref": [
      "r102",
      "r153",
      "r170"
     ]
    },
    "us-gaap_ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Nonaccrual [Table Text Block]",
        "terseLabel": "Schedule of nonaccrual loans",
        "documentation": "Tabular disclosure of financing receivable on nonaccrual status."
       }
      }
     },
     "auth_ref": [
      "r58",
      "r377"
     ]
    },
    "us-gaap_ScheduleOfHeldToMaturitySecuritiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfHeldToMaturitySecuritiesLineItems",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostUnrecognizedGainsAndLossesAndFairValueOfHeldToMaturitySecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Held-to-maturity Securities [Line Items]",
        "verboseLabel": "Schedule Of Available For Sale and Held To Maturity Securities [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": [
      "r346",
      "r347",
      "r348",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363"
     ]
    },
    "us-gaap_ScheduleOfHeldToMaturitySecuritiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfHeldToMaturitySecuritiesTable",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostUnrecognizedGainsAndLossesAndFairValueOfHeldToMaturitySecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Held-to-maturity Securities [Table]",
        "documentation": "Disclosure of information about investment in debt security measured at amortized cost (held-to-maturity)."
       }
      }
     },
     "auth_ref": [
      "r346",
      "r347",
      "r348",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363"
     ]
    },
    "frst_ScheduleOfOperatingLeaseOtherInformationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "ScheduleOfOperatingLeaseOtherInformationTableTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of operating lease other information.",
        "label": "Schedule of Operating Lease Other Information [Table Text Block]",
        "terseLabel": "Schedule of operating lease other information"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfSegmentReportingInformationBySegmentTable",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Segment Reporting Information, by Segment [Table]",
        "terseLabel": "Schedule of Segment Reporting Information, by Segment [Table]",
        "documentation": "A table disclosing the profit or loss and total assets for each reportable segment of the entity. An entity discloses certain information on each reportable segment if the amounts (a) are included in the measure of segment profit or loss reviewed by the chief operating decision maker or (b) are otherwise regularly provided to the chief operating decision maker, even if not included in that measure of segment profit or loss."
       }
      }
     },
     "auth_ref": [
      "r52",
      "r53",
      "r54",
      "r61"
     ]
    },
    "us-gaap_ScheduleOfSegmentReportingInformationBySegmentTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfSegmentReportingInformationBySegmentTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Segment Reporting Information, by Segment [Table Text Block]",
        "terseLabel": "Schedule of financial information for the company's segments",
        "documentation": "Tabular disclosure of the profit or loss and total assets for each reportable segment. An entity discloses certain information on each reportable segment if the amounts (a) are included in the measure of segment profit or loss reviewed by the chief operating decision maker or (b) are otherwise regularly provided to the chief operating decision maker, even if not included in that measure of segment profit or loss."
       }
      }
     },
     "auth_ref": [
      "r52",
      "r53",
      "r54",
      "r61"
     ]
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule Of Share-Based Compensation Arrangements By Share-Based Payment Award [Table]",
        "documentation": "Disclosure of information about share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r462",
      "r463",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r483",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491"
     ]
    },
    "us-gaap_ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule Of Share-Based Compensation, Stock Options, Activity [Table Text Block]",
        "verboseLabel": "Schedule of activity in the stock option plan",
        "documentation": "Tabular disclosure for stock option plans. Includes, but is not limited to, outstanding awards at beginning and end of year, grants, exercises, forfeitures, and weighted-average grant date fair value."
       }
      }
     },
     "auth_ref": [
      "r16",
      "r17",
      "r69"
     ]
    },
    "us-gaap_ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Payment Arrangement, Restricted Stock and Restricted Stock Unit, Activity [Table Text Block]",
        "terseLabel": "Schedule of activity in the restricted stock plan",
        "documentation": "Disclosure of the number and weighted-average grant date fair value for restricted stock and restricted stock units that were outstanding at the beginning and end of the year, and the number of restricted stock and restricted stock units that were granted, vested, or forfeited during the year."
       }
      }
     },
     "auth_ref": []
    },
    "frst_SecurePublicDepositsAndOtherDepositsAndLineOfCreditAdvancesFederalHomeLoanBanksMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "SecurePublicDepositsAndOtherDepositsAndLineOfCreditAdvancesFederalHomeLoanBanksMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Secure Public Deposits, Other Deposits And Line of Credit Advances Federal Home Loan Banks [Member].",
        "label": "Secure Public Deposits, Other Deposits and Line of Credit Advances Federal Home Loan Banks [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "frst_SecuritiesHeldAsCollateralAtParValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "SecuritiesHeldAsCollateralAtParValue",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The carrying amount (par value) as of the balance sheet date of securities held that had been pledged by counterparties under financing and lending arrangements, pursuant to which the entity has the right by agreement or custom to sell or re-pledge such securities.",
        "label": "Securities Held As Collateral At Par Value",
        "terseLabel": "Securities held as collateral"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SecuritiesLoanedOrSoldUnderAgreementsToRepurchaseFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SecuritiesLoanedOrSoldUnderAgreementsToRepurchaseFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Securities Loaned or Sold under Agreements to Repurchase, Fair Value Disclosure",
        "terseLabel": "Securities sold under agreements to repurchase",
        "documentation": "Fair value portion of securities that an entity sells and agrees to repurchase at a specified date for a specified price."
       }
      }
     },
     "auth_ref": [
      "r144"
     ]
    },
    "us-gaap_SecuritiesSoldUnderAgreementsToRepurchase": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SecuritiesSoldUnderAgreementsToRepurchase",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Securities sold under agreements to repurchase",
        "terseLabel": "Securities sold under agreements to repurchase - short term",
        "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": [
      "r97",
      "r214",
      "r215",
      "r243",
      "r244",
      "r718",
      "r720",
      "r723",
      "r738"
     ]
    },
    "us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseFairValueOfCollateral": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseFairValueOfCollateral",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Securities sold under agreements to repurchase, fair value of collateral",
        "documentation": "Fair value of securities pledged as collateral against securities sold under agreement to repurchase."
       }
      }
     },
     "auth_ref": [
      "r216"
     ]
    },
    "dei_Security12bTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "Security12bTitle",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title of 12(b) Security",
        "documentation": "Title of a 12(b) registered security."
       }
      }
     },
     "auth_ref": [
      "r817"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Exchange Name",
        "documentation": "Name of the Exchange on which a security is registered."
       }
      }
     },
     "auth_ref": [
      "r819"
     ]
    },
    "us-gaap_SegmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SegmentDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segments [Domain]",
        "terseLabel": "Segments [Domain]",
        "documentation": "Components of an entity that engage in business activities from which they may earn revenue and incur expenses, including transactions with other components of the same entity."
       }
      }
     },
     "auth_ref": [
      "r286",
      "r289",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r298",
      "r299",
      "r300",
      "r308",
      "r309",
      "r310",
      "r311",
      "r312",
      "r313",
      "r314",
      "r315",
      "r316",
      "r318",
      "r324",
      "r395",
      "r396",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r405",
      "r406",
      "r629",
      "r630",
      "r631",
      "r632",
      "r633",
      "r634",
      "r635",
      "r636",
      "r637",
      "r638",
      "r639",
      "r778",
      "r899",
      "r1020"
     ]
    },
    "srt_SegmentGeographicalDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "SegmentGeographicalDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical [Domain]"
       }
      }
     },
     "auth_ref": [
      "r322",
      "r323",
      "r659",
      "r662",
      "r664",
      "r719",
      "r721",
      "r724",
      "r739",
      "r744",
      "r745",
      "r746",
      "r747",
      "r748",
      "r749",
      "r750",
      "r751",
      "r752",
      "r755",
      "r785",
      "r807",
      "r990",
      "r1020"
     ]
    },
    "us-gaap_SegmentReportingAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SegmentReportingAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "SEGMENT INFORMATION (Restated)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SegmentReportingDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SegmentReportingDisclosureTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting Disclosure [Text Block]",
        "terseLabel": "SEGMENT INFORMATION (Restated)",
        "documentation": "The entire disclosure for reporting segments including data and tables. Reportable segments include those that meet any of the following quantitative thresholds a) it's reported revenue, including sales to external customers and intersegment sales or transfers is 10 percent or more of the combined revenue, internal and external, of all operating segments b) the absolute amount of its reported profit or loss is 10 percent or more of the greater, in absolute amount of 1) the combined reported profit of all operating segments that did not report a loss or 2) the combined reported loss of all operating segments that did report a loss c) its assets are 10 percent or more of the combined assets of all operating segments."
       }
      }
     },
     "auth_ref": [
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r301",
      "r312",
      "r316",
      "r317",
      "r318",
      "r319",
      "r320",
      "r321",
      "r324"
     ]
    },
    "us-gaap_SegmentReportingInformationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SegmentReportingInformationLineItems",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting Information [Line Items]",
        "terseLabel": "Segment Information",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SegmentReportingPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SegmentReportingPolicyPolicyTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting, Policy [Policy Text Block]",
        "verboseLabel": "Operating Segments",
        "documentation": "Disclosure of accounting policy for segment reporting."
       }
      }
     },
     "auth_ref": [
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r307",
      "r322",
      "r764"
     ]
    },
    "us-gaap_SeniorLongTermNotes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SeniorLongTermNotes",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Notes",
        "terseLabel": "Senior subordinated notes - long term",
        "documentation": "Carrying value as of the balance sheet date of Notes with the highest claim on the assets of the issuer in case of bankruptcy or liquidation (with maturities initially due after one year or beyond the operating cycle if longer), excluding current portion. Senior note holders are paid off in full before any payments are made to junior note holders."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r802"
     ]
    },
    "frst_SeniorLongTermNotesFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "SeniorLongTermNotesFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Senior long term notes fair value disclosure.",
        "label": "Senior Long Term Notes Fair Value Disclosure",
        "terseLabel": "Senior subordinated notes"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SeniorSubordinatedNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SeniorSubordinatedNotesMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Subordinated Notes [Member]",
        "documentation": "A senior subordinated note is a bond that takes priority over other debt securities sold by the issuer. In the event the issuer goes bankrupt, senior subordinated debt holders receive priority for [must receive] repayment [prior] relative to junior and unsecured (general) creditors. However senior subordinated notes are junior to Senior Notes and Senior bond holders."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensation",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Based Compensation Expense",
        "verboseLabel": "Stock-based compensation expense",
        "documentation": "Amount of noncash expense for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeited in Period",
        "negatedLabel": "Forfeited other than options",
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r482"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeitures, Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted Average Exercise Price, Forfeited, other than options",
        "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": [
      "r482"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period",
        "terseLabel": "Granted, other than options",
        "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": [
      "r480"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted Average Exercise Price, Granted, other than options",
        "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": [
      "r480"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number",
        "periodEndLabel": "Unvested stock outstanding, end of period",
        "periodStartLabel": "Unvested stock outstanding, beginning of period",
        "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": [
      "r477",
      "r478"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward]",
        "terseLabel": "Shares",
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value",
        "periodEndLabel": "Weighted Average Exercise Price, ending of period",
        "periodStartLabel": "Weighted Average Exercise Price, beginning of period",
        "documentation": "Per share or unit weighted-average fair value of nonvested award under share-based payment arrangement. Excludes share and unit options."
       }
      }
     },
     "auth_ref": [
      "r477",
      "r478"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value [Abstract]",
        "terseLabel": "Weighted Average Exercise Price"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTerms": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageRemainingContractualTerms",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Outstanding, Weighted Average Remaining Contractual Terms",
        "terseLabel": "Weighted Average Remaining Contractual Term",
        "documentation": "Weighted average remaining contractual term for equity-based awards excluding options, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r138"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period",
        "negatedLabel": "Vested, other than options",
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that vested during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r481"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted Average Exercise Price, Vested, other than options",
        "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": [
      "r481"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement By Share-Based Payment Award, Fair Value Assumptions and Methodology [Abstract]",
        "verboseLabel": "Weighted Average Remaining Contractual Term"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement By Share-Based Payment Award [Line Items]",
        "verboseLabel": "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": [
      "r462",
      "r463",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r483",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement By Share-Based Payment Award, Number Of Shares Authorized",
        "verboseLabel": "Number of shares authorized for reservation (in shares)",
        "documentation": "Number of shares authorized for issuance under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r793"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExpirationsInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExpirationsInPeriod",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Expirations in Period",
        "negatedLabel": "Expired",
        "documentation": "Number of options or other stock instruments for which the right to exercise has lapsed under the terms of the plan agreements."
       }
      }
     },
     "auth_ref": [
      "r476"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Intrinsic Value",
        "verboseLabel": "Options outstanding, Aggregate Intrinsic Value",
        "documentation": "Amount by which the current fair value of the underlying stock exceeds the exercise price of options outstanding."
       }
      }
     },
     "auth_ref": [
      "r68"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement By Share-Based Payment Award, Options, Outstanding, Number",
        "periodEndLabel": "Options outstanding, end of period",
        "periodStartLabel": "Options outstanding, beginning of period",
        "documentation": "Number of options outstanding, including both vested and non-vested options."
       }
      }
     },
     "auth_ref": [
      "r469",
      "r470"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement By Share-Based Payment Award, Options, Outstanding [Roll Forward]",
        "verboseLabel": "Shares",
        "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_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement By Share-Based Payment Award, Options, Outstanding, Weighted Average Exercise Price",
        "periodEndLabel": "Options outstanding, end of period",
        "periodStartLabel": "Options outstanding, beginning of period",
        "documentation": "Weighted average price at which grantees can acquire the shares reserved for issuance under the stock option plan."
       }
      }
     },
     "auth_ref": [
      "r469",
      "r470"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement By Share-Based Payment Award, Options, Outstanding, Weighted Average Exercise Price [Roll Forward]",
        "verboseLabel": "Weighted Average Grant Date Fair Value Per Share"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement By Share-Based Payment Award, Options, Vested and Expected To Vest, Exercisable, Aggregate Intrinsic Value",
        "verboseLabel": "Exercisable at end of period - Aggregate Intrinsic Value",
        "documentation": "Amount by which current fair value of underlying stock exceeds exercise price of fully vested and expected to vest exercisable or convertible options. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur."
       }
      }
     },
     "auth_ref": [
      "r486"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement By Share-Based Payment Award, Options, Vested and Expected To Vest, Exercisable, Number",
        "verboseLabel": "Exercisable at end of period",
        "documentation": "Number of fully vested and expected to vest exercisable options that may be converted into shares under option plan. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur."
       }
      }
     },
     "auth_ref": [
      "r486"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement By Share-Based Payment Award, Options, Vested and Expected To Vest, Exercisable, Weighted Average Exercise Price",
        "verboseLabel": "Exercisable at end of period",
        "documentation": "Weighted-average exercise price, at which grantee can acquire shares reserved for issuance, for fully vested and expected to vest exercisable or convertible options. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur."
       }
      }
     },
     "auth_ref": [
      "r486"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationTables",
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Award Types",
        "terseLabel": "All Award Types",
        "documentation": "Award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r483",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangements By Share-Based Payment Award, Options, Exercises In Period, Weighted Average Exercise Price",
        "verboseLabel": "Exercised",
        "documentation": "Weighted average price at which option holders acquired shares when converting their stock options into shares."
       }
      }
     },
     "auth_ref": [
      "r474"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExpirationsInPeriodWeightedAverageExercisePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExpirationsInPeriodWeightedAverageExercisePrice",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Compensation Arrangements by Share-based Payment Award, Options, Expirations in Period, Weighted Average Exercise Price",
        "terseLabel": "Expired",
        "documentation": "Weighted average price at which grantees could have acquired the underlying shares with respect to stock options of the plan that expired."
       }
      }
     },
     "auth_ref": [
      "r476"
     ]
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement By Share-Based Payment Award, Options, Outstanding, Weighted Average Remaining Contractual Term",
        "verboseLabel": "Options outstanding",
        "documentation": "Weighted average remaining contractual term for option awards outstanding, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r138"
     ]
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement By Share-Based Payment Award, Options, Vested and Expected To Vest, Exercisable, Weighted Average Remaining Contractual Term",
        "verboseLabel": "Exercisable at end of period",
        "documentation": "Weighted average remaining contractual term for fully vested and expected to vest exercisable or convertible options, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur."
       }
      }
     },
     "auth_ref": [
      "r486"
     ]
    },
    "frst_SnbvSeniorSubordinatedNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "SnbvSeniorSubordinatedNotesMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SNBV Senior Subordinated Notes [Member].",
        "label": "SNBV Senior Subordinated Notes [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "frst_SnbvSubordinatedNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "SnbvSubordinatedNotesMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SNBV Subordinated Notes [Member].",
        "label": "SNBV Subordinated Notes [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SpecialMentionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SpecialMentionMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Special Mention [Member]",
        "documentation": "A category of financing receivables considered to have potential weaknesses that deserve management's close attention. If left uncorrected, those potential weaknesses may result in a deterioration of the repayment prospects for the asset or of the creditor's position at some future date."
       }
      }
     },
     "auth_ref": [
      "r57",
      "r980"
     ]
    },
    "frst_SpecificAllocationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "SpecificAllocationMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Specific Allocation [Member].",
        "label": "Specific Allocation [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementBusinessSegmentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementBusinessSegmentsAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureSegmentInformationRestatedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segments [Axis]",
        "terseLabel": "Segments [Axis]",
        "documentation": "Information by business segments."
       }
      }
     },
     "auth_ref": [
      "r207",
      "r286",
      "r289",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r298",
      "r299",
      "r300",
      "r308",
      "r309",
      "r310",
      "r311",
      "r312",
      "r313",
      "r314",
      "r315",
      "r316",
      "r318",
      "r324",
      "r395",
      "r396",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r406",
      "r629",
      "r630",
      "r631",
      "r632",
      "r633",
      "r634",
      "r635",
      "r636",
      "r637",
      "r638",
      "r639",
      "r778",
      "r899",
      "r1020"
     ]
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementEquityComponentsAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfChangesInAccumulatedOtherComprehensiveIncomeByComponentDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Components [Axis]",
        "documentation": "Information by component of equity."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r27",
      "r205",
      "r226",
      "r227",
      "r228",
      "r247",
      "r248",
      "r249",
      "r251",
      "r259",
      "r261",
      "r284",
      "r366",
      "r369",
      "r452",
      "r497",
      "r498",
      "r499",
      "r504",
      "r505",
      "r520",
      "r521",
      "r522",
      "r523",
      "r524",
      "r525",
      "r528",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r561",
      "r641",
      "r642",
      "r643",
      "r655",
      "r715"
     ]
    },
    "srt_StatementGeographicalAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "StatementGeographicalAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical [Axis]"
       }
      }
     },
     "auth_ref": [
      "r322",
      "r323",
      "r659",
      "r662",
      "r664",
      "r719",
      "r721",
      "r724",
      "r739",
      "r742",
      "r744",
      "r745",
      "r746",
      "r747",
      "r748",
      "r749",
      "r750",
      "r751",
      "r752",
      "r755",
      "r785",
      "r807",
      "r990",
      "r1020"
     ]
    },
    "us-gaap_StatementLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementLineItems",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfRevisionsDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationTables",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r247",
      "r248",
      "r249",
      "r284",
      "r594",
      "r652",
      "r656",
      "r668",
      "r670",
      "r671",
      "r672",
      "r673",
      "r674",
      "r677",
      "r680",
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r690",
      "r691",
      "r692",
      "r693",
      "r694",
      "r696",
      "r698",
      "r699",
      "r701",
      "r702",
      "r703",
      "r704",
      "r705",
      "r706",
      "r707",
      "r708",
      "r709",
      "r710",
      "r711",
      "r712",
      "r715",
      "r808"
     ]
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementOfCashFlowsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Cash Flows [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementOfFinancialPositionAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement Of Financial Position [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementOfStockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementOfStockholdersEquityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement Of Stockholders Equity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementTable",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedScheduleOfRevisionsDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInRestrictedStockPlanDetails",
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationTables",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement [Table]",
        "documentation": "Schedule reflecting a Statement of Income, Statement of Cash Flows, Statement of Financial Position, Statement of Shareholders' Equity and Other Comprehensive Income, or other statement as needed."
       }
      }
     },
     "auth_ref": [
      "r247",
      "r248",
      "r249",
      "r284",
      "r594",
      "r652",
      "r656",
      "r668",
      "r670",
      "r671",
      "r672",
      "r673",
      "r674",
      "r677",
      "r680",
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r690",
      "r691",
      "r692",
      "r693",
      "r694",
      "r696",
      "r698",
      "r699",
      "r701",
      "r702",
      "r703",
      "r704",
      "r705",
      "r706",
      "r707",
      "r708",
      "r709",
      "r710",
      "r711",
      "r712",
      "r715",
      "r808"
     ]
    },
    "ecd_StkPrcOrTsrEstimationMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "StkPrcOrTsrEstimationMethodTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Price or TSR Estimation Method [Text Block]",
        "terseLabel": "Stock Price or TSR Estimation Method"
       }
      }
     },
     "auth_ref": [
      "r826",
      "r837",
      "r847",
      "r872"
     ]
    },
    "us-gaap_StockAppreciationRightsSARSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockAppreciationRightsSARSMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Appreciation Rights (SARs) [Member]",
        "terseLabel": "Stock Appreciation Rights (SARs)",
        "documentation": "Right to receive cash or shares equal to appreciation of predetermined number of grantor's shares during predetermined time period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockIssuedDuringPeriodSharesIssuedForServices": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodSharesIssuedForServices",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period, Shares, Issued for Services",
        "terseLabel": "Shares issued in lieu of cash bonus, shares",
        "documentation": "Number of shares issued in lieu of cash for services contributed to the entity. Number of shares includes, but is not limited to, shares issued for services contributed by vendors and founders."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardForfeited": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodSharesRestrictedStockAwardForfeited",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period, Shares, Restricted Stock Award, Forfeited",
        "negatedLabel": "Restricted stock forfeited",
        "documentation": "Number of shares related to Restricted Stock Award forfeited during the period."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r106",
      "r107",
      "r137"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodSharesRestrictedStockAwardGross",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period, Shares, Restricted Stock Award, Gross",
        "terseLabel": "Restricted stock granted",
        "documentation": "Total number of shares issued during the period, including shares forfeited, as a result of Restricted Stock Awards."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r137"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodSharesStockOptionsExercised",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationScheduleOfActivityInStockOptionPlanDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement By Share-Based Payment Award, Options, Exercises In Period",
        "negatedLabel": "Exercised",
        "verboseLabel": "Stock option exercises (in shares)",
        "documentation": "Number of share options (or share units) exercised during the current period."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r106",
      "r107",
      "r137",
      "r474"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodValueStockOptionsExercised",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period, Value, Stock Options Exercised",
        "terseLabel": "Stock option exercises",
        "documentation": "Value of stock issued as a result of the exercise of stock options."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r27",
      "r137"
     ]
    },
    "frst_StockRetiredDuringPeriodUnallocatedShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "StockRetiredDuringPeriodUnallocatedShares",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock retired during period, unallocated shares.",
        "label": "Stock Retired During Period, Unallocated Shares",
        "negatedLabel": "Shares retired to unallocated"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockholdersEquity",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedStatementOfChangesInStockholdersEquityDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfChangesInAccumulatedOtherComprehensiveIncomeByComponentDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquityRevisedAndRestated"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Stockholders' Equity",
        "periodEndLabel": "Balance",
        "periodStartLabel": "Balance",
        "terseLabel": "Stockholders' equity",
        "totalLabel": "Total stockholders' equity",
        "verboseLabel": "Total shareholders' equity",
        "documentation": "Amount of equity (deficit) attributable to parent. Excludes temporary equity and equity attributable to noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r110",
      "r111",
      "r129",
      "r679",
      "r695",
      "r716",
      "r717",
      "r802",
      "r815",
      "r925",
      "r972",
      "r1001",
      "r1029"
     ]
    },
    "us-gaap_StockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockholdersEquityAbstract",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity",
        "terseLabel": "Stockholders' equity:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubordinatedDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubordinatedDebtMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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_SubstandardMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubstandardMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Substandard [Member]",
        "documentation": "A category of financing receivables that are inadequately protected by the current sound worth and paying capacity of the obligor or of the collateral pledged, if any. Loans so classified have a well-defined weakness or weaknesses that jeopardize the liquidation of the debt. They are characterized by the distinct possibility that the creditor will sustain some loss if the deficiencies are not corrected."
       }
      }
     },
     "auth_ref": [
      "r57",
      "r980"
     ]
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SupplementalCashFlowInformationAbstract",
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental Disclosure Of Cash Flow Information",
        "verboseLabel": "Supplemental disclosure of cash flow information"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TabularListTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "TabularListTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tabular List [Table Text Block]",
        "terseLabel": "Tabular List, Table"
       }
      }
     },
     "auth_ref": [
      "r866"
     ]
    },
    "us-gaap_TaxesOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TaxesOther",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/StatementCondensedConsolidatedStatementsOfIncomeLossAndComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Virginia Franchise Tax Expense",
        "verboseLabel": "Virginia franchise tax expense",
        "documentation": "Amount of tax expense classified as other."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TimeDepositMaturitiesYearOne": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TimeDepositMaturitiesYearOne",
     "crdr": "credit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Time Deposit Maturities, Next Twelve Months",
        "terseLabel": "Certificate of deposits, due within one year",
        "documentation": "Amount of time deposit maturing in next fiscal year following current fiscal year. Time deposit includes, but is not limited to, certificate of deposit. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r9"
     ]
    },
    "frst_TimeVestedRestrictedStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "TimeVestedRestrictedStockMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureStockBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to time vested restricted stock.",
        "label": "Time Vested Restricted Stock"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "TotalShareholderRtnAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Shareholder Return Amount",
        "terseLabel": "Total Shareholder Return Amount"
       }
      }
     },
     "auth_ref": [
      "r858"
     ]
    },
    "ecd_TotalShareholderRtnVsPeerGroupTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "TotalShareholderRtnVsPeerGroupTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Shareholder Return Vs Peer Group [Text Block]",
        "terseLabel": "Total Shareholder Return Vs Peer Group"
       }
      }
     },
     "auth_ref": [
      "r865"
     ]
    },
    "ecd_TradingArrAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "TradingArrAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement [Axis]",
        "terseLabel": "Trading Arrangement:"
       }
      }
     },
     "auth_ref": [
      "r885"
     ]
    },
    "ecd_TradingArrByIndTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "TradingArrByIndTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangements, by Individual [Table]",
        "terseLabel": "Trading Arrangements, by Individual"
       }
      }
     },
     "auth_ref": [
      "r887"
     ]
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "TradingSymbol",
     "presentation": [
      "http://www.primisbank.com/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Symbol",
        "documentation": "Trading symbol of an instrument as listed on an exchange."
       }
      }
     },
     "auth_ref": []
    },
    "frst_TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsPolicyPolicyTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for 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.",
        "label": "Transfer Of Certain Financial Assets Accounted For As Secured Borrowings Policy [Policy Text Block]",
        "terseLabel": "Transfers of Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TransfersAccountedForAsSecuredBorrowingsAssetsCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TransfersAccountedForAsSecuredBorrowingsAssetsCarryingAmount",
     "crdr": "debit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfers Accounted for as Secured Borrowings, Assets, Carrying Amount",
        "terseLabel": "Loans held for investment, collateralizing secured borrowings",
        "verboseLabel": "Amortized cost",
        "documentation": "Carrying amount of financial assets accounted for as secured borrowings recognized in the transferor's statement of financial position at the end of each period presented."
       }
      }
     },
     "auth_ref": [
      "r10"
     ]
    },
    "us-gaap_TransfersAccountedForAsSecuredBorrowingsAssociatedLiabilitiesCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TransfersAccountedForAsSecuredBorrowingsAssociatedLiabilitiesCarryingAmount",
     "crdr": "credit",
     "calculation": {
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedRestatementOfPreviouslyIssuedCondensedConsolidatedBalanceSheetDetails",
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfEstimatedFairValuesAndFairValueHierarchyLevelsOfFinancialInstrumentsDetails",
      "http://www.primisbank.com/role/StatementCondensedConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfers Accounted for as Secured Borrowings, Associated Liabilities, Carrying Amount",
        "terseLabel": "Secured borrowings",
        "documentation": "Carrying amount of liabilities associated with financial assets accounted for as secured borrowings recognized in the transferor's statement of financial position at the end of each period presented."
       }
      }
     },
     "auth_ref": [
      "r576"
     ]
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureCommitmentsAndContingenciesRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostUnrecognizedGainsAndLossesAndFairValueOfHeldToMaturitySecuritiesDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types Of 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": [
      "r334",
      "r335",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r448",
      "r451",
      "r526",
      "r562",
      "r563",
      "r564",
      "r565",
      "r566",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r577",
      "r578",
      "r579",
      "r580",
      "r581",
      "r582",
      "r583",
      "r584",
      "r585",
      "r586",
      "r587",
      "r588",
      "r589",
      "r590",
      "r591",
      "r592",
      "r625",
      "r904",
      "r905",
      "r906",
      "r907",
      "r908",
      "r909",
      "r910",
      "r968",
      "r969",
      "r970",
      "r971"
     ]
    },
    "ecd_TrdArrAdoptionDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "TrdArrAdoptionDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Adoption Date",
        "terseLabel": "Adoption Date"
       }
      }
     },
     "auth_ref": [
      "r888"
     ]
    },
    "ecd_TrdArrDuration": {
     "xbrltype": "durationItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "TrdArrDuration",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Duration",
        "terseLabel": "Arrangement Duration"
       }
      }
     },
     "auth_ref": [
      "r889"
     ]
    },
    "ecd_TrdArrIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "TrdArrIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r887"
     ]
    },
    "ecd_TrdArrIndTitle": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "TrdArrIndTitle",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Individual Title",
        "terseLabel": "Title"
       }
      }
     },
     "auth_ref": [
      "r887"
     ]
    },
    "ecd_TrdArrSecuritiesAggAvailAmt": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "TrdArrSecuritiesAggAvailAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Securities Aggregate Available Amount",
        "terseLabel": "Aggregate Available"
       }
      }
     },
     "auth_ref": [
      "r890"
     ]
    },
    "ecd_TrdArrTerminationDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "TrdArrTerminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Termination Date",
        "terseLabel": "Termination Date"
       }
      }
     },
     "auth_ref": [
      "r888"
     ]
    },
    "us-gaap_USGovernmentAgenciesDebtSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "USGovernmentAgenciesDebtSecuritiesMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostUnrecognizedGainsAndLossesAndFairValueOfHeldToMaturitySecuritiesDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "US Government Agencies Debt Securities [Member]",
        "documentation": "Debentures, notes, and other debt securities issued by US government agencies, for example, but not limited to, Government National Mortgage Association (GNMA or Ginnie Mae). Excludes US treasury securities and debt issued by government-sponsored Enterprises (GSEs), for example, but is not limited to, Federal Home Loan Mortgage Corporation (FHLMC or Freddie Mac), Federal National Mortgage Association (FNMA or Fannie Mae), and the Federal Home Loan Bank (FHLB)."
       }
      }
     },
     "auth_ref": [
      "r760",
      "r786",
      "r1016"
     ]
    },
    "us-gaap_USStatesAndPoliticalSubdivisionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "USStatesAndPoliticalSubdivisionsMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureFairValueRevisedAndRestatedScheduleOfAssetsMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfSecuritiesAvailableForSaleDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostUnrecognizedGainsAndLossesAndFairValueOfHeldToMaturitySecuritiesDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfFairValueAndCarryingAmountIfDifferentOfDebtSecuritiesByContractualMaturityDetails",
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesScheduleOfPresentInformationRegardingSecuritiesInContinuousUnrealizedLossPositionByDurationOfTimeInLossPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "US States and Political Subdivisions Debt Securities [Member]",
        "documentation": "Bonds or similar securities issued by state, city, or local US governments or the agencies operated by state, city, or local governments. Debt securities issued by state governments may include bond issuances of US state authorities including, for example, but not limited to, housing authorities, dormitory authorities, and general obligations while debt securities issued by political subdivisions of US states would include, for example, debt issuances by county, borough, city, or municipal governments."
       }
      }
     },
     "auth_ref": [
      "r786",
      "r1021"
     ]
    },
    "us-gaap_UnamortizedDebtIssuanceExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnamortizedDebtIssuanceExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDebtAndOtherBorrowingsNarrative2Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unamortized Debt Issuance Expense",
        "verboseLabel": "Unamortized debt issuance costs",
        "documentation": "The remaining balance of debt issuance expenses that were capitalized and are being amortized against income over the lives of the respective bond issues. This does not include the amounts capitalized as part of the cost of the utility plant or asset."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UncollateralizedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UncollateralizedMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Uncollateralized [Member]",
        "documentation": "No pledge of specific property to serve as protection or security against default."
       }
      }
     },
     "auth_ref": [
      "r773"
     ]
    },
    "ecd_UndrlygSecurityMktPriceChngPct": {
     "xbrltype": "pureItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "UndrlygSecurityMktPriceChngPct",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Underlying Security Market Price Change, Percent",
        "terseLabel": "Underlying Security Market Price Change"
       }
      }
     },
     "auth_ref": [
      "r884"
     ]
    },
    "us-gaap_UnrealizedGainLossOnInvestmentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnrealizedGainLossOnInvestmentsTableTextBlock",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureInvestmentSecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule Of Unrealized Loss On Investments [Table Text Block]",
        "verboseLabel": "Schedule of present information regarding securities in a continuous unrealized loss position by duration of time in a loss position",
        "documentation": "Tabular disclosure of unrealized gains and losses on investments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UnusualOrInfrequentItemAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnusualOrInfrequentItemAxis",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unusual or Infrequent Item, or Both [Axis]",
        "documentation": "Information by an event or transaction that is unusual in nature or infrequent in occurrence, or both."
       }
      }
     },
     "auth_ref": [
      "r121"
     ]
    },
    "us-gaap_UnusualOrInfrequentItemDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnusualOrInfrequentItemDomain",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedNarrativeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfAllowanceForLoanLossesAndRecordedInvestmentByPortfolioSegmentDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfCalculationForAllowanceForCreditLossesDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfDetailsOfAgingOfRecordedInvestmentInPastDueLoansByClassOfLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfLoansNetOfUnearnedIncomeDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfNonaccrualLoansDetails",
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unusual or Infrequent Item, or Both [Domain]",
        "documentation": "Event or transaction that is unusual in nature or infrequent in occurrence, or both."
       }
      }
     },
     "auth_ref": [
      "r121"
     ]
    },
    "us-gaap_UseOfEstimates": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UseOfEstimates",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Use Of Estimates, Policy [Policy Text Block]",
        "verboseLabel": "Use of Estimates",
        "documentation": "Disclosure of accounting policy for the use of estimates in the preparation of financial statements in conformity with generally accepted accounting principles."
       }
      }
     },
     "auth_ref": [
      "r49",
      "r50",
      "r51",
      "r191",
      "r192",
      "r193",
      "r194"
     ]
    },
    "stpr_VA": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/stpr/2023",
     "localname": "VA",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureAccountingPoliciesRevisedAndRestatedNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Virginia [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_WeightedAverageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "WeightedAverageMember",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureDerivativesRestatedConsumerProgramDerivativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average [Member]",
        "terseLabel": "Weighted Average"
       }
      }
     },
     "auth_ref": [
      "r753",
      "r754",
      "r1008",
      "r1010",
      "r1013"
     ]
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average Number Of Shares Outstanding, Diluted",
        "totalLabel": "Diluted EPS- Weighted Average Shares (Denominator) (in shares)",
        "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": [
      "r266",
      "r279"
     ]
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "calculation": {
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails": {
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.primisbank.com/role/DisclosureEarningsPerShareRestatedScheduleOfReconciliationOfDenominatorsOfBasicAndDilutedEarningsPerShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average Number Of Shares Outstanding, Basic",
        "verboseLabel": "Basic EPS- Weighted Average Shares (Denominator) (in shares)",
        "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": [
      "r264",
      "r279"
     ]
    },
    "frst_WeightedAverageRiskGrade": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "WeightedAverageRiskGrade",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average risk grade.",
        "label": "Weighted Average Risk Grade",
        "terseLabel": "Weighted average risk grade"
       }
      }
     },
     "auth_ref": []
    },
    "frst_WeightedAverageRiskGradeOriginatedFiveOrMoreYearsBeforeLatestFiscalYear": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "WeightedAverageRiskGradeOriginatedFiveOrMoreYearsBeforeLatestFiscalYear",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average risk grade originated five or more years before latest fiscal year.",
        "label": "Weighted Average Risk Grade Originated Five Or More Years Before Latest Fiscal Year",
        "terseLabel": "Prior, Weighted average risk grade"
       }
      }
     },
     "auth_ref": []
    },
    "frst_WeightedAverageRiskGradeOriginatedInCurrentFiscalYear": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "WeightedAverageRiskGradeOriginatedInCurrentFiscalYear",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average risk grade originated in current fiscal year.",
        "label": "Weighted Average Risk Grade Originated In Current Fiscal Year",
        "terseLabel": "Year originated, Weighted average risk grade"
       }
      }
     },
     "auth_ref": []
    },
    "frst_WeightedAverageRiskGradeOriginatedInFiscalYearBeforeLatestFiscalYear": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "WeightedAverageRiskGradeOriginatedInFiscalYearBeforeLatestFiscalYear",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average risk grade originated in fiscal year before latest fiscal year.",
        "label": "Weighted Average Risk Grade Originated In Fiscal Year Before Latest Fiscal Year",
        "terseLabel": "Year two originated, Weighted average risk grade"
       }
      }
     },
     "auth_ref": []
    },
    "frst_WeightedAverageRiskGradeOriginatedInFourYearsBeforeLatestFiscalYear": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "WeightedAverageRiskGradeOriginatedInFourYearsBeforeLatestFiscalYear",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average risk grade originated in four years before latest fiscal year.",
        "label": "Weighted Average Risk Grade Originated In Four Years Before Latest Fiscal Year",
        "terseLabel": "Year five originated, Weighted average risk grade"
       }
      }
     },
     "auth_ref": []
    },
    "frst_WeightedAverageRiskGradeOriginatedInThreeYearsBeforeLatestFiscalYear": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "WeightedAverageRiskGradeOriginatedInThreeYearsBeforeLatestFiscalYear",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average risk grade originated in three years before latest fiscal year.",
        "label": "Weighted Average Risk Grade Originated In Three Years Before Latest Fiscal Year",
        "terseLabel": "Year four originated, Weighted average risk grade"
       }
      }
     },
     "auth_ref": []
    },
    "frst_WeightedAverageRiskGradeOriginatedInTwoYearsBeforeLatestFiscalYear": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "WeightedAverageRiskGradeOriginatedInTwoYearsBeforeLatestFiscalYear",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average risk grade originated in two years before latest fiscal year.",
        "label": "Weighted Average Risk Grade Originated In Two Years Before Latest Fiscal Year",
        "terseLabel": "Year three originated, Weighted average risk grade"
       }
      }
     },
     "auth_ref": []
    },
    "frst_WeightedAverageRiskGradeOriginatedRevolving": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "WeightedAverageRiskGradeOriginatedRevolving",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average risk grade originated revolving.",
        "label": "Weighted Average Risk Grade Originated Revolving",
        "terseLabel": "Revolving loan, Weighted average risk grade"
       }
      }
     },
     "auth_ref": []
    },
    "frst_WeightedAverageRiskGradeRevolvingConvertedToTermLoan": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.primisbank.com/20230630",
     "localname": "WeightedAverageRiskGradeRevolvingConvertedToTermLoan",
     "presentation": [
      "http://www.primisbank.com/role/DisclosureLoansAndAllowanceForCreditLossesRevisedAndRestatedScheduleOfRiskCategoryOfLoansByClassOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average risk grade revolving converted to term loan.",
        "label": "Weighted Average Risk Grade Revolving Converted To Term Loan",
        "terseLabel": "Revolving loans converted to term, Weighted average risk grade"
       }
      }
     },
     "auth_ref": []
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "1",
   "SubTopic": "20",
   "Topic": "940",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481913/940-20-25-1"
  },
  "r1": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "SubTopic": "230",
   "Topic": "830",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481877/830-230-45-1"
  },
  "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",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-14"
  },
  "r4": {
   "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"
  },
  "r5": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "21C",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-21C"
  },
  "r6": {
   "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"
  },
  "r7": {
   "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"
  },
  "r8": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "10",
   "Topic": "360",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-1"
  },
  "r9": {
   "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"
  },
  "r10": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(b)(1)",
   "SubTopic": "30",
   "Topic": "860",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-1A"
  },
  "r11": {
   "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"
  },
  "r12": {
   "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"
  },
  "r13": {
   "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"
  },
  "r14": {
   "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"
  },
  "r15": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)",
   "SubTopic": "10",
   "Topic": "820",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r16": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "SubTopic": "10",
   "Topic": "718",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r17": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)",
   "SubTopic": "10",
   "Topic": "718",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r18": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "35",
   "SubTopic": "10",
   "Topic": "310",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-35"
  },
  "r19": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "820",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-6A"
  },
  "r20": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "15",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482739/220-10-55-15"
  },
  "r21": {
   "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"
  },
  "r22": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.19(b),22(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r23": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.19-26)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r24": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.22(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r25": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.22)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r26": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.25)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r27": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.29-31)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r28": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.3,4)",
   "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",
   "Topic": "220",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-14"
  },
  "r30": {
   "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"
  },
  "r31": {
   "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"
  },
  "r32": {
   "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"
  },
  "r33": {
   "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"
  },
  "r34": {
   "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"
  },
  "r35": {
   "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"
  },
  "r36": {
   "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"
  },
  "r37": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "15",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-15"
  },
  "r38": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "15",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-15"
  },
  "r39": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-21"
  },
  "r40": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-25"
  },
  "r41": {
   "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"
  },
  "r42": {
   "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"
  },
  "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": "250",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-7"
  },
  "r45": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "250",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-8"
  },
  "r46": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "250",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-9"
  },
  "r47": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "260",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "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": "260",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482662/260-10-50-1"
  },
  "r49": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-4"
  },
  "r50": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-8"
  },
  "r51": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-9"
  },
  "r52": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "280",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "22",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r53": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "280",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "25",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-25"
  },
  "r54": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "280",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "30",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30"
  },
  "r55": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//310-10/tableOfContent"
  },
  "r56": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-11B"
  },
  "r57": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "29",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-29"
  },
  "r58": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-7"
  },
  "r59": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-7"
  },
  "r60": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-7A"
  },
  "r61": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r62": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482686/350-30-45-2"
  },
  "r63": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "30",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-2"
  },
  "r64": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "360",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-1"
  },
  "r65": {
   "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"
  },
  "r66": {
   "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"
  },
  "r67": {
   "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"
  },
  "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": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r70": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "805",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479328/805-10-50-2"
  },
  "r71": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "805",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479328/805-10-50-3"
  },
  "r72": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "805",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479907/805-20-50-1"
  },
  "r73": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1"
  },
  "r74": {
   "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"
  },
  "r75": {
   "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"
  },
  "r76": {
   "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"
  },
  "r77": {
   "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"
  },
  "r78": {
   "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"
  },
  "r79": {
   "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"
  },
  "r80": {
   "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"
  },
  "r81": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4B"
  },
  "r82": {
   "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"
  },
  "r83": {
   "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"
  },
  "r84": {
   "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"
  },
  "r85": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-7"
  },
  "r86": {
   "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"
  },
  "r87": {
   "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"
  },
  "r88": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "820",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r89": {
   "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"
  },
  "r90": {
   "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"
  },
  "r91": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482925/835-30-45-1A"
  },
  "r92": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482925/835-30-45-2"
  },
  "r93": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482925/835-30-45-3"
  },
  "r94": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "30",
   "Section": "55",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482949/835-30-55-8"
  },
  "r95": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481309/942-210-45-4"
  },
  "r96": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.12)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r97": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.13(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r98": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.15)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r99": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.17)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r100": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r101": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "230",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481160/942-230-45-1"
  },
  "r102": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "470",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480848/942-470-50-3"
  },
  "r103": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "470",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480848/942-470-50-3"
  },
  "r104": {
   "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"
  },
  "r105": {
   "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"
  },
  "r106": {
   "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"
  },
  "r107": {
   "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"
  },
  "r108": {
   "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"
  },
  "r109": {
   "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"
  },
  "r110": {
   "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"
  },
  "r111": {
   "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"
  },
  "r112": {
   "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"
  },
  "r113": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Section": "45",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-1"
  },
  "r114": {
   "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"
  },
  "r115": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-03(1)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-1"
  },
  "r116": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-03(13))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-1"
  },
  "r117": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r118": {
   "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"
  },
  "r119": {
   "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"
  },
  "r120": {
   "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.6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r121": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483613/220-20-50-1"
  },
  "r122": {
   "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"
  },
  "r123": {
   "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"
  },
  "r124": {
   "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"
  },
  "r125": {
   "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"
  },
  "r126": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "235",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//235/tableOfContent"
  },
  "r127": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "250",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//250/tableOfContent"
  },
  "r128": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "275",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//275/tableOfContent"
  },
  "r129": {
   "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"
  },
  "r130": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "310",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481746/310-40-50-4"
  },
  "r131": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "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"
  },
  "r132": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "15",
   "Paragraph": "4",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482309/360-10-15-4"
  },
  "r133": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "440",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//440/tableOfContent"
  },
  "r134": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "470",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//470/tableOfContent"
  },
  "r135": {
   "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"
  },
  "r136": {
   "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"
  },
  "r137": {
   "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"
  },
  "r138": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "718",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r139": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "810",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//810/tableOfContent"
  },
  "r140": {
   "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"
  },
  "r141": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "815",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//815/tableOfContent"
  },
  "r142": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "820",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//820/tableOfContent"
  },
  "r143": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "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"
  },
  "r144": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "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"
  },
  "r145": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "940",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//940-320/tableOfContent"
  },
  "r146": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r147": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r148": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r149": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(13))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r150": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(16))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r151": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(23))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r152": {
   "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(3)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r153": {
   "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,16)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r154": {
   "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/2147483589/942-220-S99-1"
  },
  "r155": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r156": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r157": {
   "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/2147483589/942-220-S99-1"
  },
  "r158": {
   "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-5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r159": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04.10)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r160": {
   "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/2147483589/942-220-S99-1"
  },
  "r161": {
   "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(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r162": {
   "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/2147483589/942-220-S99-1"
  },
  "r163": {
   "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(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r164": {
   "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/2147483589/942-220-S99-1"
  },
  "r165": {
   "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)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r166": {
   "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/2147483589/942-220-S99-1"
  },
  "r167": {
   "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/2147483589/942-220-S99-1"
  },
  "r168": {
   "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/2147483589/942-220-S99-1"
  },
  "r169": {
   "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"
  },
  "r170": {
   "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/2147480876/942-470-45-1"
  },
  "r171": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//946-320/tableOfContent"
  },
  "r172": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(aa)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5"
  },
  "r173": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5"
  },
  "r174": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5"
  },
  "r175": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "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"
  },
  "r176": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "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"
  },
  "r177": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "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"
  },
  "r178": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "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"
  },
  "r179": {
   "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"
  },
  "r180": {
   "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"
  },
  "r181": {
   "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"
  },
  "r182": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "840",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481161/840-30-50-1"
  },
  "r183": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-3"
  },
  "r184": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-3"
  },
  "r185": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-3"
  },
  "r186": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-3"
  },
  "r187": {
   "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/2147479616/944-310-45-1"
  },
  "r188": {
   "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/2147479616/944-310-45-2"
  },
  "r189": {
   "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"
  },
  "r190": {
   "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/2147479584/944-310-50-1"
  },
  "r191": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "275",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-1"
  },
  "r192": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "SubTopic": "10",
   "Topic": "275",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-1"
  },
  "r193": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "SubTopic": "10",
   "Topic": "275",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-11"
  },
  "r194": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "SubTopic": "10",
   "Topic": "275",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-12"
  },
  "r195": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "310",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-7"
  },
  "r196": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "SubTopic": "10",
   "Topic": "310",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-7A"
  },
  "r197": {
   "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"
  },
  "r198": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1403",
   "Paragraph": "(b)",
   "Publisher": "SEC"
  },
  "r199": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1404",
   "Paragraph": "(a)",
   "Publisher": "SEC"
  },
  "r200": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1404",
   "Paragraph": "(b)",
   "Publisher": "SEC"
  },
  "r201": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(2)",
   "Publisher": "SEC"
  },
  "r202": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(3)",
   "Publisher": "SEC"
  },
  "r203": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(4)",
   "Publisher": "SEC"
  },
  "r204": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(c)",
   "Publisher": "SEC"
  },
  "r205": {
   "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"
  },
  "r206": {
   "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"
  },
  "r207": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-1"
  },
  "r208": {
   "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"
  },
  "r209": {
   "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"
  },
  "r210": {
   "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(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r211": {
   "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"
  },
  "r212": {
   "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"
  },
  "r213": {
   "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"
  },
  "r214": {
   "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"
  },
  "r215": {
   "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"
  },
  "r216": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-12"
  },
  "r217": {
   "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"
  },
  "r218": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-10A"
  },
  "r219": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-10A"
  },
  "r220": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-14A"
  },
  "r221": {
   "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"
  },
  "r222": {
   "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"
  },
  "r223": {
   "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"
  },
  "r224": {
   "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"
  },
  "r225": {
   "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"
  },
  "r226": {
   "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"
  },
  "r227": {
   "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"
  },
  "r228": {
   "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"
  },
  "r229": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(210.5-03(11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r230": {
   "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"
  },
  "r231": {
   "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"
  },
  "r232": {
   "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"
  },
  "r233": {
   "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"
  },
  "r234": {
   "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"
  },
  "r235": {
   "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"
  },
  "r236": {
   "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"
  },
  "r237": {
   "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"
  },
  "r238": {
   "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"
  },
  "r239": {
   "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"
  },
  "r240": {
   "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"
  },
  "r241": {
   "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"
  },
  "r242": {
   "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"
  },
  "r243": {
   "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"
  },
  "r244": {
   "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"
  },
  "r245": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(n))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r246": {
   "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"
  },
  "r247": {
   "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"
  },
  "r248": {
   "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"
  },
  "r249": {
   "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"
  },
  "r250": {
   "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"
  },
  "r251": {
   "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"
  },
  "r252": {
   "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"
  },
  "r253": {
   "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"
  },
  "r254": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-12"
  },
  "r255": {
   "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"
  },
  "r256": {
   "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"
  },
  "r257": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-7"
  },
  "r258": {
   "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"
  },
  "r259": {
   "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"
  },
  "r260": {
   "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"
  },
  "r261": {
   "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"
  },
  "r262": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SAB Topic 11.M.Q2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480530/250-10-S99-5"
  },
  "r263": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//260/tableOfContent"
  },
  "r264": {
   "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"
  },
  "r265": {
   "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"
  },
  "r266": {
   "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"
  },
  "r267": {
   "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"
  },
  "r268": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "22",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-22"
  },
  "r269": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "23",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-23"
  },
  "r270": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-28A"
  },
  "r271": {
   "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"
  },
  "r272": {
   "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"
  },
  "r273": {
   "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"
  },
  "r274": {
   "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"
  },
  "r275": {
   "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"
  },
  "r276": {
   "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"
  },
  "r277": {
   "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"
  },
  "r278": {
   "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"
  },
  "r279": {
   "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"
  },
  "r280": {
   "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"
  },
  "r281": {
   "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"
  },
  "r282": {
   "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"
  },
  "r283": {
   "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"
  },
  "r284": {
   "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"
  },
  "r285": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//280/tableOfContent"
  },
  "r286": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-15"
  },
  "r287": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-21"
  },
  "r288": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-21"
  },
  "r289": {
   "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"
  },
  "r290": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r291": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r292": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r293": {
   "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"
  },
  "r294": {
   "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"
  },
  "r295": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r296": {
   "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"
  },
  "r297": {
   "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"
  },
  "r298": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(j)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r299": {
   "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"
  },
  "r300": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "25",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-25"
  },
  "r301": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "26",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-26"
  },
  "r302": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-29"
  },
  "r303": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-29"
  },
  "r304": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-29"
  },
  "r305": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-29"
  },
  "r306": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-29"
  },
  "r307": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-29"
  },
  "r308": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30"
  },
  "r309": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30"
  },
  "r310": {
   "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"
  },
  "r311": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30"
  },
  "r312": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "31",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-31"
  },
  "r313": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r314": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r315": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r316": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r317": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r318": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r319": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "34",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-34"
  },
  "r320": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "40",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-40"
  },
  "r321": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "41",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-41"
  },
  "r322": {
   "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"
  },
  "r323": {
   "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"
  },
  "r324": {
   "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"
  },
  "r325": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481990/310-10-45-2"
  },
  "r326": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-3"
  },
  "r327": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "42",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-42"
  },
  "r328": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "42",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-42"
  },
  "r329": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "42",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-42"
  },
  "r330": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "44",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-44"
  },
  "r331": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//320/tableOfContent"
  },
  "r332": {
   "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"
  },
  "r333": {
   "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"
  },
  "r334": {
   "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"
  },
  "r335": {
   "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"
  },
  "r336": {
   "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"
  },
  "r337": {
   "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"
  },
  "r338": {
   "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"
  },
  "r339": {
   "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"
  },
  "r340": {
   "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"
  },
  "r341": {
   "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"
  },
  "r342": {
   "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"
  },
  "r343": {
   "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"
  },
  "r344": {
   "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"
  },
  "r345": {
   "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"
  },
  "r346": {
   "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"
  },
  "r347": {
   "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"
  },
  "r348": {
   "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"
  },
  "r349": {
   "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"
  },
  "r350": {
   "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"
  },
  "r351": {
   "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"
  },
  "r352": {
   "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"
  },
  "r353": {
   "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"
  },
  "r354": {
   "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"
  },
  "r355": {
   "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"
  },
  "r356": {
   "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"
  },
  "r357": {
   "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"
  },
  "r358": {
   "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"
  },
  "r359": {
   "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"
  },
  "r360": {
   "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"
  },
  "r361": {
   "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"
  },
  "r362": {
   "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"
  },
  "r363": {
   "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"
  },
  "r364": {
   "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"
  },
  "r365": {
   "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"
  },
  "r366": {
   "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"
  },
  "r367": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r368": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(e)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r369": {
   "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"
  },
  "r370": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479344/326-20-45-2"
  },
  "r371": {
   "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"
  },
  "r372": {
   "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"
  },
  "r373": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-13"
  },
  "r374": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-13"
  },
  "r375": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-13"
  },
  "r376": {
   "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"
  },
  "r377": {
   "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"
  },
  "r378": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "16",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-16"
  },
  "r379": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "16",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-16"
  },
  "r380": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "16",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-16"
  },
  "r381": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "16",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-16"
  },
  "r382": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-3B"
  },
  "r383": {
   "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"
  },
  "r384": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-5"
  },
  "r385": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-6"
  },
  "r386": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-6A"
  },
  "r387": {
   "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"
  },
  "r388": {
   "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"
  },
  "r389": {
   "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"
  },
  "r390": {
   "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"
  },
  "r391": {
   "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"
  },
  "r392": {
   "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"
  },
  "r393": {
   "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"
  },
  "r394": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482598/350-20-45-1"
  },
  "r395": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r396": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r397": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r398": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r399": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r400": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r401": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r402": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r403": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r404": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-3"
  },
  "r405": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "420",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482017/420-10-50-1"
  },
  "r406": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "420",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SAB Topic 5.P.4(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479823/420-10-S99-2"
  },
  "r407": {
   "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"
  },
  "r408": {
   "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"
  },
  "r409": {
   "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"
  },
  "r410": {
   "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"
  },
  "r411": {
   "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"
  },
  "r412": {
   "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"
  },
  "r413": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "460",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482454/460-10-45-1"
  },
  "r414": {
   "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"
  },
  "r415": {
   "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"
  },
  "r416": {
   "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"
  },
  "r417": {
   "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"
  },
  "r418": {
   "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"
  },
  "r419": {
   "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"
  },
  "r420": {
   "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"
  },
  "r421": {
   "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"
  },
  "r422": {
   "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"
  },
  "r423": {
   "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"
  },
  "r424": {
   "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"
  },
  "r425": {
   "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"
  },
  "r426": {
   "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"
  },
  "r427": {
   "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"
  },
  "r428": {
   "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"
  },
  "r429": {
   "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"
  },
  "r430": {
   "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"
  },
  "r431": {
   "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"
  },
  "r432": {
   "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"
  },
  "r433": {
   "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"
  },
  "r434": {
   "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"
  },
  "r435": {
   "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"
  },
  "r436": {
   "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"
  },
  "r437": {
   "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"
  },
  "r438": {
   "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"
  },
  "r439": {
   "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"
  },
  "r440": {
   "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"
  },
  "r441": {
   "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"
  },
  "r442": {
   "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"
  },
  "r443": {
   "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"
  },
  "r444": {
   "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"
  },
  "r445": {
   "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"
  },
  "r446": {
   "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"
  },
  "r447": {
   "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"
  },
  "r448": {
   "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"
  },
  "r449": {
   "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"
  },
  "r450": {
   "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"
  },
  "r451": {
   "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"
  },
  "r452": {
   "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"
  },
  "r453": {
   "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"
  },
  "r454": {
   "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"
  },
  "r455": {
   "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"
  },
  "r456": {
   "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"
  },
  "r457": {
   "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"
  },
  "r458": {
   "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"
  },
  "r459": {
   "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"
  },
  "r460": {
   "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"
  },
  "r461": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//718/tableOfContent"
  },
  "r462": {
   "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"
  },
  "r463": {
   "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"
  },
  "r464": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480454/718-10-45-1"
  },
  "r465": {
   "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"
  },
  "r466": {
   "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"
  },
  "r467": {
   "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"
  },
  "r468": {
   "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"
  },
  "r469": {
   "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"
  },
  "r470": {
   "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"
  },
  "r471": {
   "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"
  },
  "r472": {
   "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"
  },
  "r473": {
   "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"
  },
  "r474": {
   "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"
  },
  "r475": {
   "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"
  },
  "r476": {
   "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"
  },
  "r477": {
   "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"
  },
  "r478": {
   "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"
  },
  "r479": {
   "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"
  },
  "r480": {
   "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"
  },
  "r481": {
   "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"
  },
  "r482": {
   "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"
  },
  "r483": {
   "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"
  },
  "r484": {
   "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"
  },
  "r485": {
   "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"
  },
  "r486": {
   "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"
  },
  "r487": {
   "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"
  },
  "r488": {
   "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"
  },
  "r489": {
   "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"
  },
  "r490": {
   "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"
  },
  "r491": {
   "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"
  },
  "r492": {
   "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"
  },
  "r493": {
   "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"
  },
  "r494": {
   "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"
  },
  "r495": {
   "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"
  },
  "r496": {
   "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"
  },
  "r497": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r498": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r499": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r500": {
   "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"
  },
  "r501": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482525/740-10-45-4"
  },
  "r502": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482525/740-10-45-6"
  },
  "r503": {
   "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"
  },
  "r504": {
   "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"
  },
  "r505": {
   "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"
  },
  "r506": {
   "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"
  },
  "r507": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479907/805-20-50-5"
  },
  "r508": {
   "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"
  },
  "r509": {
   "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"
  },
  "r510": {
   "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"
  },
  "r511": {
   "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"
  },
  "r512": {
   "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"
  },
  "r513": {
   "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"
  },
  "r514": {
   "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"
  },
  "r515": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4A"
  },
  "r516": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4EE",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4EE"
  },
  "r517": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4EEE",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4EEE"
  },
  "r518": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4EEE",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4EEE"
  },
  "r519": {
   "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"
  },
  "r520": {
   "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"
  },
  "r521": {
   "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"
  },
  "r522": {
   "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"
  },
  "r523": {
   "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"
  },
  "r524": {
   "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"
  },
  "r525": {
   "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"
  },
  "r526": {
   "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"
  },
  "r527": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r528": {
   "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"
  },
  "r529": {
   "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"
  },
  "r530": {
   "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"
  },
  "r531": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r532": {
   "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"
  },
  "r533": {
   "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"
  },
  "r534": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r535": {
   "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"
  },
  "r536": {
   "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"
  },
  "r537": {
   "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"
  },
  "r538": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-3"
  },
  "r539": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-6A"
  },
  "r540": {
   "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"
  },
  "r541": {
   "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"
  },
  "r542": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482736/825-10-45-2"
  },
  "r543": {
   "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"
  },
  "r544": {
   "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"
  },
  "r545": {
   "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"
  },
  "r546": {
   "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"
  },
  "r547": {
   "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"
  },
  "r548": {
   "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"
  },
  "r549": {
   "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"
  },
  "r550": {
   "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"
  },
  "r551": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "835",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483013/835-20-50-1"
  },
  "r552": {
   "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"
  },
  "r553": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479832/842-10-65-5"
  },
  "r554": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//842-20/tableOfContent"
  },
  "r555": {
   "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"
  },
  "r556": {
   "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"
  },
  "r557": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-4"
  },
  "r558": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(g)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-4"
  },
  "r559": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-6"
  },
  "r560": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)(iii)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r561": {
   "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"
  },
  "r562": {
   "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"
  },
  "r563": {
   "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"
  },
  "r564": {
   "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"
  },
  "r565": {
   "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"
  },
  "r566": {
   "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"
  },
  "r567": {
   "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"
  },
  "r568": {
   "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"
  },
  "r569": {
   "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"
  },
  "r570": {
   "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"
  },
  "r571": {
   "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"
  },
  "r572": {
   "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"
  },
  "r573": {
   "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"
  },
  "r574": {
   "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"
  },
  "r575": {
   "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"
  },
  "r576": {
   "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"
  },
  "r577": {
   "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"
  },
  "r578": {
   "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"
  },
  "r579": {
   "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"
  },
  "r580": {
   "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"
  },
  "r581": {
   "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"
  },
  "r582": {
   "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"
  },
  "r583": {
   "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"
  },
  "r584": {
   "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"
  },
  "r585": {
   "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"
  },
  "r586": {
   "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"
  },
  "r587": {
   "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"
  },
  "r588": {
   "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"
  },
  "r589": {
   "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"
  },
  "r590": {
   "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"
  },
  "r591": {
   "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"
  },
  "r592": {
   "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"
  },
  "r593": {
   "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"
  },
  "r594": {
   "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"
  },
  "r595": {
   "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"
  },
  "r596": {
   "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(10)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r597": {
   "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/2147479853/942-210-S99-1"
  },
  "r598": {
   "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/2147483589/942-220-S99-1"
  },
  "r599": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(27))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r600": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "230",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481160/942-230-45-1"
  },
  "r601": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-05(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479557/942-235-S99-1"
  },
  "r602": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-3"
  },
  "r603": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-3"
  },
  "r604": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-3"
  },
  "r605": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-3"
  },
  "r606": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-3A"
  },
  "r607": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-3A"
  },
  "r608": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3A",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-3A"
  },
  "r609": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-3A"
  },
  "r610": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480842/942-360-50-1"
  },
  "r611": {
   "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(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r612": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r613": {
   "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/2147479440/944-210-S99-1"
  },
  "r614": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(12))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r615": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(19))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r616": {
   "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/2147479440/944-210-S99-1"
  },
  "r617": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r618": {
   "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/2147479440/944-210-S99-1"
  },
  "r619": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r620": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(25))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r621": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r622": {
   "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/2147483586/944-220-S99-1"
  },
  "r623": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(16))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r624": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(18))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r625": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(2)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r626": {
   "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/2147483586/944-220-S99-1"
  },
  "r627": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(23))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r628": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r629": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r630": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r631": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r632": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r633": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r634": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r635": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column G))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r636": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column H))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r637": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column I))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r638": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column J))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r639": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column K))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r640": {
   "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"
  },
  "r641": {
   "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"
  },
  "r642": {
   "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"
  },
  "r643": {
   "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"
  },
  "r644": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r645": {
   "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"
  },
  "r646": {
   "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"
  },
  "r647": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r648": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r649": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(h)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r650": {
   "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"
  },
  "r651": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480424/946-10-50-3"
  },
  "r652": {
   "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"
  },
  "r653": {
   "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"
  },
  "r654": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480767/946-205-45-3"
  },
  "r655": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480767/946-205-45-4"
  },
  "r656": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480555/946-210-45-4"
  },
  "r657": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r658": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r659": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r660": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r661": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-12"
  },
  "r662": {
   "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/2147480524/946-210-50-2"
  },
  "r663": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r664": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r665": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r666": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r667": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r668": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r669": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r670": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(12)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r671": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(12)(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r672": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(12)(b)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r673": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(13)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r674": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(13)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r675": {
   "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/2147479617/946-210-S99-1"
  },
  "r676": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r677": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(16)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r678": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r679": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(19))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r680": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(2)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r681": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(2)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r682": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(3)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r683": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(3)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r684": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(3)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r685": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r686": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r687": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r688": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r689": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r690": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r691": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r692": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r693": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r694": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.6-05(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-2"
  },
  "r695": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.6-05(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-2"
  },
  "r696": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483581/946-220-45-3"
  },
  "r697": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483581/946-220-45-7"
  },
  "r698": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r699": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r700": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r701": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r702": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r703": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r704": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r705": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r706": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r707": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r708": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r709": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r710": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r711": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r712": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r713": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r714": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(1)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r715": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(4)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r716": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r717": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r718": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r719": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r720": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2"
  },
  "r721": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column C)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2"
  },
  "r722": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 4)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r723": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 4)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r724": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r725": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column A)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5"
  },
  "r726": {
   "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 D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5"
  },
  "r727": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column G)(Footnote 8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5"
  },
  "r728": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column G))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5"
  },
  "r729": {
   "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 D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5A"
  },
  "r730": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5A",
   "Subparagraph": "(SX 210.12-13A(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5A"
  },
  "r731": {
   "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 A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5B"
  },
  "r732": {
   "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 B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5B"
  },
  "r733": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column E)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5B"
  },
  "r734": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5B"
  },
  "r735": {
   "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 E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5C"
  },
  "r736": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column H)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5C"
  },
  "r737": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column H))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5C"
  },
  "r738": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r739": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column F)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r740": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481852/948-310-45-1"
  },
  "r741": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481852/948-310-45-2"
  },
  "r742": {
   "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(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479851/948-310-S99-1"
  },
  "r743": {
   "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/2147480327/954-440-50-1"
  },
  "r744": {
   "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/2147479438/970-360-S99-1"
  },
  "r745": {
   "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/2147479438/970-360-S99-1"
  },
  "r746": {
   "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/2147479438/970-360-S99-1"
  },
  "r747": {
   "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/2147479438/970-360-S99-1"
  },
  "r748": {
   "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/2147479438/970-360-S99-1"
  },
  "r749": {
   "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/2147479438/970-360-S99-1"
  },
  "r750": {
   "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/2147479438/970-360-S99-1"
  },
  "r751": {
   "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/2147479438/970-360-S99-1"
  },
  "r752": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r753": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "976",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482856/976-310-50-1"
  },
  "r754": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "978",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482707/978-310-50-1"
  },
  "r755": {
   "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"
  },
  "r756": {
   "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"
  },
  "r757": {
   "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"
  },
  "r758": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-21"
  },
  "r759": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483426/235-10-50-4"
  },
  "r760": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r761": {
   "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"
  },
  "r762": {
   "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"
  },
  "r763": {
   "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"
  },
  "r764": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "47",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482785/280-10-55-47"
  },
  "r765": {
   "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"
  },
  "r766": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479294/326-20-55-10"
  },
  "r767": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479294/326-20-55-11"
  },
  "r768": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479294/326-20-55-12"
  },
  "r769": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479294/326-20-55-12"
  },
  "r770": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479294/326-20-55-12"
  },
  "r771": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479294/326-20-55-12"
  },
  "r772": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479294/326-20-55-12"
  },
  "r773": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Subparagraph": "(d)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479294/326-20-55-12"
  },
  "r774": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "15",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479294/326-20-55-15"
  },
  "r775": {
   "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"
  },
  "r776": {
   "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"
  },
  "r777": {
   "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"
  },
  "r778": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482548/350-20-55-24"
  },
  "r779": {
   "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"
  },
  "r780": {
   "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"
  },
  "r781": {
   "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"
  },
  "r782": {
   "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"
  },
  "r783": {
   "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"
  },
  "r784": {
   "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"
  },
  "r785": {
   "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"
  },
  "r786": {
   "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"
  },
  "r787": {
   "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"
  },
  "r788": {
   "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"
  },
  "r789": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-11"
  },
  "r790": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-6"
  },
  "r791": {
   "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"
  },
  "r792": {
   "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"
  },
  "r793": {
   "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"
  },
  "r794": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r795": {
   "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"
  },
  "r796": {
   "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"
  },
  "r797": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "181",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480401/815-10-55-181"
  },
  "r798": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "181",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480401/815-10-55-181"
  },
  "r799": {
   "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"
  },
  "r800": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-3"
  },
  "r801": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "53",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479589/842-20-55-53"
  },
  "r802": {
   "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"
  },
  "r803": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r804": {
   "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"
  },
  "r805": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r806": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r807": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480493/946-210-55-1"
  },
  "r808": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480833/946-310-45-1"
  },
  "r809": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r810": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2"
  },
  "r811": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 1)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r812": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r813": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480167/946-830-55-10"
  },
  "r814": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480167/946-830-55-11"
  },
  "r815": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480167/946-830-55-12"
  },
  "r816": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-29(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479851/948-310-S99-1"
  },
  "r817": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b"
  },
  "r818": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r819": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r820": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-Q",
   "Number": "240",
   "Section": "308",
   "Subsection": "a"
  },
  "r821": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16",
   "Subsection": "J",
   "Paragraph": "a"
  },
  "r822": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1"
  },
  "r823": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r824": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "A"
  },
  "r825": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "B"
  },
  "r826": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "C"
  },
  "r827": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "D"
  },
  "r828": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "E"
  },
  "r829": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r830": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r831": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "2"
  },
  "r832": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "ii",
   "Section": "6"
  },
  "r833": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a"
  },
  "r834": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r835": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r836": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r837": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r838": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r839": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r840": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r841": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r842": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "b"
  },
  "r843": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a"
  },
  "r844": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r845": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r846": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r847": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r848": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r849": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r850": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r851": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r852": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "b"
  },
  "r853": {
   "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"
  },
  "r854": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v"
  },
  "r855": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "1"
  },
  "r856": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r857": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r858": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iv"
  },
  "r859": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "vi"
  },
  "r860": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "3"
  },
  "r861": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "4"
  },
  "r862": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "i"
  },
  "r863": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "ii"
  },
  "r864": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iii"
  },
  "r865": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iv"
  },
  "r866": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6"
  },
  "r867": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6",
   "Subparagraph": "i"
  },
  "r868": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1"
  },
  "r869": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r870": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "A"
  },
  "r871": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "B"
  },
  "r872": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "C"
  },
  "r873": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "D"
  },
  "r874": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "E"
  },
  "r875": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r876": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r877": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "2"
  },
  "r878": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "1"
  },
  "r879": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2"
  },
  "r880": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "A"
  },
  "r881": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "C"
  },
  "r882": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "D"
  },
  "r883": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "E"
  },
  "r884": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "F"
  },
  "r885": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a"
  },
  "r886": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "1"
  },
  "r887": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "A"
  },
  "r888": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "B"
  },
  "r889": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "C"
  },
  "r890": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "D"
  },
  "r891": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r892": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "405"
  },
  "r893": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "810",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-25"
  },
  "r894": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r895": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(3)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r896": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-11"
  },
  "r897": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-11"
  },
  "r898": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-3"
  },
  "r899": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4H",
   "SubTopic": "40",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480081/944-40-50-4H"
  },
  "r900": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-7"
  },
  "r901": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-7"
  },
  "r902": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-8"
  },
  "r903": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-9"
  },
  "r904": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(a)",
   "Publisher": "SEC"
  },
  "r905": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(b)",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r906": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(b)",
   "Subparagraph": "(2)",
   "Publisher": "SEC"
  },
  "r907": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(b)",
   "Subparagraph": "(3)",
   "Publisher": "SEC"
  },
  "r908": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(c)",
   "Subparagraph": "(2)(i)",
   "Publisher": "SEC"
  },
  "r909": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(c)",
   "Subparagraph": "(2)(ii)",
   "Publisher": "SEC"
  },
  "r910": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(c)",
   "Subparagraph": "(2)(iii)",
   "Publisher": "SEC"
  },
  "r911": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r912": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(2)",
   "Publisher": "SEC"
  },
  "r913": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(3)",
   "Publisher": "SEC"
  },
  "r914": {
   "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"
  },
  "r915": {
   "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"
  },
  "r916": {
   "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"
  },
  "r917": {
   "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"
  },
  "r918": {
   "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"
  },
  "r919": {
   "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(b)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r920": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "13",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-13"
  },
  "r921": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-25"
  },
  "r922": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-28"
  },
  "r923": {
   "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"
  },
  "r924": {
   "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"
  },
  "r925": {
   "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"
  },
  "r926": {
   "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"
  },
  "r927": {
   "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"
  },
  "r928": {
   "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"
  },
  "r929": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-12"
  },
  "r930": {
   "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"
  },
  "r931": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-18"
  },
  "r932": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//310-10/tableOfContent"
  },
  "r933": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "33",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-33"
  },
  "r934": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "42",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-42"
  },
  "r935": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r936": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//310-30/tableOfContent"
  },
  "r937": {
   "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"
  },
  "r938": {
   "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"
  },
  "r939": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r940": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r941": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r942": {
   "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"
  },
  "r943": {
   "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"
  },
  "r944": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r945": {
   "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"
  },
  "r946": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r947": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r948": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r949": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r950": {
   "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"
  },
  "r951": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r952": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r953": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r954": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r955": {
   "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"
  },
  "r956": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r957": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r958": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r959": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r960": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r961": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r962": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r963": {
   "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"
  },
  "r964": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r965": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r966": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r967": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r968": {
   "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"
  },
  "r969": {
   "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"
  },
  "r970": {
   "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"
  },
  "r971": {
   "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"
  },
  "r972": {
   "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"
  },
  "r973": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "325",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481551/325-30-35-2"
  },
  "r974": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r975": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(e)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r976": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//326-20/tableOfContent"
  },
  "r977": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479344/326-20-45-1"
  },
  "r978": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-13"
  },
  "r979": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r980": {
   "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"
  },
  "r981": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//326-30/tableOfContent"
  },
  "r982": {
   "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"
  },
  "r983": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r984": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r985": {
   "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"
  },
  "r986": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//450/tableOfContent"
  },
  "r987": {
   "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"
  },
  "r988": {
   "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"
  },
  "r989": {
   "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"
  },
  "r990": {
   "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"
  },
  "r991": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r992": {
   "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"
  },
  "r993": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r994": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-1A"
  },
  "r995": {
   "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"
  },
  "r996": {
   "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"
  },
  "r997": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4A"
  },
  "r998": {
   "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"
  },
  "r999": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r1000": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r1001": {
   "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"
  },
  "r1002": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-3"
  },
  "r1003": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-6"
  },
  "r1004": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)(iii)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r1005": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)(iii)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r1006": {
   "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"
  },
  "r1007": {
   "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"
  },
  "r1008": {
   "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"
  },
  "r1009": {
   "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"
  },
  "r1010": {
   "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"
  },
  "r1011": {
   "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"
  },
  "r1012": {
   "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"
  },
  "r1013": {
   "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"
  },
  "r1014": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1015": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r1016": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-2"
  },
  "r1017": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "942",
   "SubTopic": "470",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480876/942-470-45-1"
  },
  "r1018": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(16)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r1019": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(23))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r1020": {
   "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"
  },
  "r1021": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480109/944-80-50-1"
  },
  "r1022": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480767/946-205-45-4"
  },
  "r1023": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r1024": {
   "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/2147479617/946-210-S99-1"
  },
  "r1025": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(18))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r1026": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483581/946-220-45-3"
  },
  "r1027": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(k)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483581/946-220-45-3"
  },
  "r1028": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1029": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(4)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r1030": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r1031": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480833/946-310-45-1"
  },
  "r1032": {
   "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/2147480228/946-830-45-39"
  }
 }
}
