XML 45 R34.htm IDEA: XBRL DOCUMENT
v3.24.2.u1

ORGANIZATION (Details) | Jun. 30, 2024
--- | ---
Organization, Consolidation and Presentation of Financial Statements [Abstract] |
Investment portfolio, debt investments, intended percent | 75.00%
Investment portfolio, equity investments, intended percent | 25.00%
Investment portfolio, debt investments, actual percent | 77.00%
Investment portfolio, equity investments, actual percent | 23.00%

X
- Definition Investment Portfolio, Debt Investments, Actual Percent + References No definition available. + Details
Name: | gain_InvestmentPortfolioDebtInvestmentsActualPercent
Namespace Prefix: | gain_
Data Type: | dtr-types1:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Investment Portfolio, Debt Investments, Intended Percent + References No definition available. + Details
Name: | gain_InvestmentPortfolioDebtInvestmentsIntendedPercent
Namespace Prefix: | gain_
Data Type: | dtr-types1:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Investment Portfolio, Equity Investments, Actual Percent + References No definition available. + Details
Name: | gain_InvestmentPortfolioEquityInvestmentsActualPercent
Namespace Prefix: | gain_
Data Type: | dtr-types1:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Investment Portfolio, Equity Investments, Intended Percent + References No definition available. + Details
Name: | gain_InvestmentPortfolioEquityInvestmentsIntendedPercent
Namespace Prefix: | gain_
Data Type: | dtr-types1:percentItemType
Balance Type: | na
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration