XML 116 R81.htm IDEA: XBRL DOCUMENT
v3.24.0.1

EMPLOYEE BENEFITS (Details) - USD ($) | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Defined Benefit Plan Disclosure [Line Items] |  |  |
Employer contribution percentage to retirement plan | 18.90% |  |
Defined contribution plan wage base | $ 330,000 | $ 305,000 | $ 290,000
Requisite service period | 3 years |  |
Expenses under defined contribution plan | $ 3,600,000 | 3,100,000 | 2,700,000
Maximum gross annual base salary under plan | 750,000 |  |
Expenses for NQDC plan | $ 100,000 | $ 200,000 | $ 200,000
Base percentage |  |  |
Defined Benefit Plan Disclosure [Line Items] |  |  |
Employer contribution percentage to retirement plan | 13.20% |  |
Excess percentage |  |  |
Defined Benefit Plan Disclosure [Line Items] |  |  |
Employer contribution percentage to retirement plan | 5.70% |  |

X
- Definition Deferred Compensation Arrangement With Individual, Maximum Gross Annual Base Salary Under Plan + References No definition available. + Details
Name: | agm_DeferredCompensationArrangementWithIndividualMaximumGrossAnnualBaseSalaryUnderPlan
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Defined Contribution Plan Wage Base + References No definition available. + Details
Name: | agm_DefinedContributionPlanWageBase
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Employer Contribution Percentage To Retirement Plan + References No definition available. + Details
Name: | agm_EmployerContributionPercentageToRetirementPlan
Namespace Prefix: | agm_
Data Type: | dtr-types1:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The compensation expense recognized during the period pertaining to the deferred compensation arrangement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 710 -SubTopic 10 -Name Accounting Standards Codification -Section 30 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147483043/710-10-30-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480429/718-10-50-1 + Details
Name: | us-gaap_DeferredCompensationArrangementWithIndividualCompensationExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Minimum period the individual is required to perform services to be fully vested under the deferred compensation arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 710 -SubTopic 10 -Section 55 -Paragraph 7 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482943/710-10-55-7 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_DeferredCompensationArrangementWithIndividualRequisiteServicePeriod1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition 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. + References No definition available. + Details
Name: | us-gaap_DefinedBenefitPlanDisclosureLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cost for defined contribution plan. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 70 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480794/715-70-50-1 + Details
Name: | us-gaap_DefinedContributionPlanCostRecognized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_RetirementPlanNameAxis=agm_BasePercentageMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RetirementPlanNameAxis=agm_ExcessPercentageforamountsaboveSocialSecuritytaxablewagebaseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |