| Name | DebtSecuritiesGainLoss |
|---|---|
| Namespace | http://fasb.org/us-gaap/2022 |
| Prefix | us-gaap |
| Data type | xbrli:monetaryItemType |
| Period type | duration |
| Substitution Group | xbrli:item |
| Balance | credit |
| Nillable | True |
| Abstract | False |
| Text | Lang | Role | Container role |
|---|---|---|---|
| Debt Securities, Gain (Loss) | en-US | http://www.xbrl.org/2003/role/label | http://www.xbrl.org/2003/role/link |
| Debt Securities, Gain (Loss), Total | en-US | http://www.xbrl.org/2003/role/totalLabel | http://www.xbrl.org/2003/role/link |
| Amount of unrealized and realized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity), investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale) and investment in debt security measured at fair value with change in fair value recognized in net income (trading). | en-US | http://www.xbrl.org/2003/role/documentation | http://www.xbrl.org/2003/role/link |
| Name | Value | Role |
|---|---|---|
| elementCreationTaxonomyVersion | 2018 | http://fasb.org/us-gaap/role/tin/taxonomyImplementationNote |
| Positive_XBRL_Value | Gain | http://fasb.org/us-gaap/role/tin/value |
| Negative_XBRL_Value | Loss | http://fasb.org/us-gaap/role/tin/value |
| Name | Relation Type | Role | |
|---|---|---|---|
us-gaap:DebtSecuritiesUnrealizedGainLoss | summation-item | http://fasb.org/us-gaap/role/disclosure/InvestmentsDebtAndEquitySecuritiesCalcAlt1 | |
us-gaap:DebtSecuritiesRealizedGainLoss | summation-item | http://fasb.org/us-gaap/role/disclosure/InvestmentsDebtAndEquitySecuritiesCalcAlt1 |
| Name | Relation Type | Role | |
|---|---|---|---|
us-gaap:DebtSecuritiesGainLossAlternativeAbstract | parent-child | http://fasb.org/us-gaap/role/disclosure/InvestmentsDebtAndEquitySecurities | |
us-gaap:DebtAndEquitySecuritiesGainLoss | summation-item | http://fasb.org/us-gaap/role/disclosure/InvestmentsDebtAndEquitySecurities | |
us-gaap:DebtSecuritiesGainLossAlternativeAbstract | domain-member | http://fasb.org/us-gaap/role/disclosure/InvestmentsDebtAndEquitySecuritiesScheduleOfGainLossOnInvestmentsTable |