XML 80 R68.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

SHAREHOLDERS' EQUITY AND REDEEMABLE CONVERTIBLE PREFERRED STOCK (Detail) $ / shares in Units, $ in Millions |  | 1 Months Ended | 3 Months Ended | 12 Months Ended |
--- | --- | --- | --- | --- | ---
Feb. 28, 2024 USD ($) shares | Dec. 31, 2023 USD ($) $ / shares shares | Dec. 31, 2022 USD ($) $ / shares shares | Mar. 31, 2024 USD ($) $ / shares shares | Mar. 31, 2023 USD ($) shares | Dec. 31, 2023 $ / shares shares | Dec. 31, 2022 USD ($) $ / shares shares | Dec. 31, 2026
Class of Stock [Line Items] |  |  |  |  |  |  |  |
Preferred stock, shares issued (in shares) | shares |  | 800,000 |  | 0 |  | 800,000 |  |
Preferred stock, shares outstanding (in shares) | shares |  | 800,000 |  | 0 |  | 800,000 |  |
Stock repurchase program, authorized amount | $ |  |  | $ 250 | $ 1,000 |  |  | $ 250 |
Repurchases of common stock (in shares) | shares |  |  |  | 16,260,160 | 541,316 |  |  |
Repurchases of common stock, value | $ |  |  |  | $ 600 | $ 12 |  |  |
Stock repurchase program, remaining authorized amount | $ |  |  |  | 400 |  |  |  |
Share repurchases | $ | $ 600 |  |  |  | 12 |  |  |
Fair value of remaining conversion shares | $ |  |  |  | $ 569 | 0 |  |  |
Line of credit, maximum borrowing capacity | $ | 300 |  |  |  |  |  |  |
Juno Lower Holdings |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |
Line of credit, maximum borrowing capacity | $ | 225 |  |  |  |  |  |  |
Viking Global Equities II LP |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |
Line of credit, maximum borrowing capacity | $ | $ 75 |  |  |  |  |  |  |
Series A Preferred Stock |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |
Preferred stock, shares issued (in shares) | shares |  | 4,000,000 |  | 4,000,000 |  | 4,000,000 |  |
Preferred stock, shares outstanding (in shares) | shares |  | 4,000,000 |  | 4,000,000 |  | 4,000,000 |  |
Preferred stock, par value (in dollars per share) | $ / shares |  | $ 0.0001 |  | $ 0.0001 |  | $ 0.0001 |  |
Series A Preferred Stock | Forecast |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |
Preferred stock conversion ratio |  |  |  |  |  |  |  | 1
Series B Preferred Stock |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |
Aggregate purchase price | $ |  |  |  |  |  |  | $ 800 |
Number of shares issued and sold (in shares) | shares |  |  |  |  |  |  | 800,000 |
Percentage of annual dividend rate |  |  |  | 5.50% |  | 5.50% | 5.50% |
Preferred stock, par value (in dollars per share) | $ / shares |  | $ 0.0001 | $ 0.0001 | $ 0.0001 |  | $ 0.0001 | $ 0.0001 |
Shares converted (in shares) | shares | 800,000 |  |  |  |  |  |  |
Dividends issued as shares, value | $ |  | $ 11 | $ 11 | $ 7 | $ 11 |  |  |
Preferred share dividend (in shares) | shares |  | 337,044 | 584,584 | 283,196 | 498,293 |  |  |
Common Stock |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |
Convertible to common shares (in shares) | shares | 32,803,519 |  |  |  |  |  |  |
Shares attributable to accrued and unpaid dividends (in shares) | shares | 283,196 |  |  |  |  |  |  |

X
- Definition Converted Shares, Shares Issued, Accrued And Unpaid Dividends + References No definition available. + Details
Name: | apg_ConvertedSharesSharesIssuedAccruedAndUnpaidDividends
Namespace Prefix: | apg_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

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 Reference 1: 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 Reference 2: http://www.xbrl.org/2003/role/recommendedDisclosureRef -Topic 272 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org//1943274/2147483014/272-10-45-3 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 272 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482987/272-10-50-1 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(d)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480678/235-10-S99-1 Reference 5: 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 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481112/505-10-50-13 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481112/505-10-50-13 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (h) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481112/505-10-50-13 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 14 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481112/505-10-50-14 Reference 10: 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 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(27)(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481112/505-10-50-2 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(i)(2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479886/946-10-S99-3 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(i)(1)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479886/946-10-S99-3 Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(i)(2)(i)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479886/946-10-S99-3 Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(i)(2)(ii)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479886/946-10-S99-3 + Details
Name: | us-gaap_ClassOfStockLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of shares converted in a noncash (or part noncash) transaction. Noncash is defined as transactions during a period that do not result in cash receipts or cash payments in the period. "Part noncash" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482913/230-10-50-4 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482913/230-10-50-3 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 5 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482913/230-10-50-5 + Details
Name: | us-gaap_ConversionOfStockSharesConverted1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of new shares issued in the conversion of stock in a noncash (or part noncash) transaction. Noncash is defined as transactions during a period that do not result in cash receipts or cash payments in the period. "Part noncash" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482913/230-10-50-4 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482913/230-10-50-3 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 5 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482913/230-10-50-5 + Details
Name: | us-gaap_ConversionOfStockSharesIssued1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of paid and unpaid preferred stock dividends declared with the form of settlement in stock. + References Reference 1: 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 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 45 -Paragraph 2 -SubTopic 405 -Topic 942 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481071/942-405-45-2 + Details
Name: | us-gaap_DividendsPreferredStockStock
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility. + References Reference 1: 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 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Number of common shares issuable upon conversion for each share of preferred stock to be converted. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481112/505-10-50-13 + Details
Name: | us-gaap_PreferredStockConvertibleConversionRatio
Namespace Prefix: | us-gaap_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | instant

X
- Definition The percentage rate used to calculate dividend payments on preferred stock. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481112/505-10-50-13 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SX 210.12-12A(Column A)(Footnote 3)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.12-12(Column A)(Footnote 4)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.12-12B(Column A)(Footnote 3)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-3 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 6 -Subparagraph (SX 210.12-14(Column A)(Footnote 3)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-6 + Details
Name: | us-gaap_PreferredStockDividendRatePercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares of preferred stock issued as dividends during the period. Excludes stock splits. + References Reference 1: 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 + Details
Name: | us-gaap_PreferredStockDividendsShares
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Face amount or stated value per share of preferred stock nonredeemable or redeemable solely at the option of the issuer. + References Reference 1: 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 Reference 2: 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 + Details
Name: | us-gaap_PreferredStockParOrStatedValuePerShare
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition 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. + References Reference 1: 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 Reference 2: 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 + Details
Name: | us-gaap_PreferredStockSharesIssued
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition 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. + References Reference 1: 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 Reference 2: 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 Reference 3: 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 Reference 4: 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 Reference 5: 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 + Details
Name: | us-gaap_PreferredStockSharesOutstanding
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of consideration received by subsidiary or equity investee in exchange for shares of stock issued or sold. Includes amount of cash received, fair value of noncash assets received, and fair value of liabilities assumed by the investor. + References No definition available. + Details
Name: | us-gaap_SaleOfStockConsiderationReceivedPerTransaction
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The number of shares issued or sold by the subsidiary or equity method investee per stock transaction. + References No definition available. + Details
Name: | us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition The fair value of stock issued in noncash financing activities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482913/230-10-50-4 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482913/230-10-50-3 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 5 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482913/230-10-50-5 + Details
Name: | us-gaap_StockIssued1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of stock repurchase plan authorized. + References No definition available. + Details
Name: | us-gaap_StockRepurchaseProgramAuthorizedAmount1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount remaining of a stock repurchase plan authorized. + References No definition available. + Details
Name: | us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Equity impact of the value of stock that has been repurchased during the period and has not been retired and is not held in treasury. Some state laws may mandate the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock. + References Reference 1: 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 Reference 2: 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 Reference 3: 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 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 505 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481004/946-505-50-2 Reference 5: 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 Reference 6: 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 Reference 7: 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 Reference 8: 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 + Details
Name: | us-gaap_StockRepurchasedDuringPeriodValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Number of shares that have been repurchased during the period and are being held in treasury. + References Reference 1: 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 Reference 2: 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 Reference 3: 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 + Details
Name: | us-gaap_TreasuryStockSharesAcquired
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Equity impact of the cost of common and preferred stock that were repurchased during the period. Recorded using the par value method. + References Reference 1: 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 Reference 2: 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 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 505 -SubTopic 30 -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481549/505-30-45-1 + Details
Name: | us-gaap_TreasuryStockValueAcquiredParValueMethod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=apg_JunoLowerHoldingsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=apg_VikingGlobalEquitiesIILPMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_SeriesAPreferredStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementScenarioAxis=srt_ScenarioForecastMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_SeriesBPreferredStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_CommonStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |