XML 101 R83.htm IDEA: XBRL DOCUMENT
v3.25.0.1

DEBT - Additional Information (Details) | 3 Months Ended | 12 Months Ended |  |  |
--- | --- | --- | --- | --- | ---
Jun. 30, 2024 USD ($) | Dec. 31, 2024 USD ($) | Dec. 31, 2023 USD ($) | Dec. 31, 2022 USD ($) | Dec. 31, 2021 USD ($) | Sep. 18, 2024 USD ($) | Mar. 31, 2024 USD ($) | Feb. 28, 2024 USD ($)
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Aggregate amount repaid |  | $ 437,000,000 | $ 484,000,000 | $ 34,000,000 |  |  |  |
Line of credit, maximum borrowing capacity |  |  |  |  |  |  |  | $ 300,000,000
Loss on debt extinguishment |  | 1,000,000 | 7,000,000 | $ (5,000,000) |  |  |  |
Acquisition of Construction Equipment and Vehicles |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Notes payable |  | 5,000,000 | 5,000,000 |  |  |  |  |
Interest rate swaps |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Derivative notional amount |  | $ 1,840,000,000 |  |  |  |  |  |
Derivative, fixed interest rate |  | 3.41% |  |  |  |  |  |
2029 interest rate swap |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Derivative notional amount |  |  |  |  |  | $ 720,000,000 |  |
Derivative, fixed interest rate |  |  |  |  |  | 3.13% |  |
2019 Term Loan |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Line of credit outstanding |  | $ 0 |  |  |  |  |  |
Repayment of debt |  | 330,000,000 | 375,000,000 |  |  |  |  |
Remaining line of credit outstanding (unswapped portion) |  | 1,037,000,000 |  |  |  |  |  |
2021 Term Loan |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Line of credit outstanding |  | 2,157,000,000 |  |  |  |  |  |
Debt instrument, reduction in basis spread on variable rate | 0.0050 |  |  |  |  |  |  |
Repayment of debt |  | 100,000,000 | 100,000,000 |  |  |  |  |
Term loan facility |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Loss on debt extinguishment |  | 1,000,000 |  |  |  |  |  |
Term loan facility | 2019 Term Loan |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Secured term loan |  | 1,200,000,000 |  |  |  |  |  |
Aggregate amount repaid | $ 330,000,000 |  |  |  |  |  |  |
Repayment of debt |  | $ 330,000,000 |  |  |  |  |  |
Loss on debt extinguishment |  |  | 7,000,000 |  |  |  |  |
Term loan facility | 2019 Term Loan | Interest rate swaps |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Derivative, fixed interest rate |  | 5.59% |  |  |  |  |  |
Term loan facility | 2019 Term Loan | Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate | Interest rate swaps |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Derivative, fixed interest rate |  | 3.59% |  |  |  |  |  |
Term loan facility | 2019 Term Loan | Minimum | Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate | Interest rate swaps |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Derivative, basis spread on variable rate |  | 2.00% |  |  |  |  |  |
Term loan facility | 2021 Term Loan |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Line of credit facility, increase | 550,000,000 | $ 850,000,000 |  |  |  |  |  |
Line of credit, maximum borrowing capacity |  |  |  |  |  |  | $ 300,000,000 |
Repayment of debt |  | $ 100,000,000 |  |  |  |  |  |
Term loan facility | 2021 Term Loan | Interest rate swaps |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Derivative, fixed interest rate |  | 5.41% |  |  |  |  |  |
Term loan facility | 2021 Term Loan | 2029 interest rate swap |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Derivative notional amount |  | $ 720,000,000 |  |  |  |  |  |
Derivative, fixed interest rate |  | 3.13% |  |  |  |  |  |
Term loan facility | 2021 Term Loan | Base Rate |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Debt, variable interest rate |  | 1.00% |  |  |  |  |  |
Term loan facility | 2021 Term Loan | Secured Overnight Financing Rate (SOFR) |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Debt, variable interest rate |  | 2.00% |  |  |  |  |  |
Term loan facility | 2021 Term Loan | Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate | Interest rate swaps |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Derivative, fixed interest rate |  | 3.41% |  |  |  |  |  |
Term loan facility | Revolving Credit Facility |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Line of credit outstanding |  | $ 0 | 0 |  |  |  |  |
Debt instrument term |  | 5 years |  |  |  |  |  |
Line of credit net letters of credit outstanding |  | $ 494,000,000 | 495,000,000 |  |  |  |  |
Aggregate amount repaid | $ 100,000,000 |  |  |  |  |  |  |
Letters of credit outstanding |  | $ 6,000,000 | $ 5,000,000 |  |  |  |  |
Term loan facility | Revolving Credit Facility | Base Rate |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Debt, variable interest rate |  | 1.25% |  |  |  |  |  |
Term loan facility | Revolving Credit Facility | Secured Overnight Financing Rate (SOFR) |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Debt, variable interest rate |  | 2.25% |  |  |  |  |  |
Term loan facility | Revolving Credit Facility | Maximum | 2022 Incremental Amendment |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Line of credit outstanding |  | $ 500,000,000 |  |  |  |  |  |
4.125% Senior Notes |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Line of credit outstanding |  |  |  |  | $ 350,000,000 |  |  |
Line of credit facility, interest rate |  | 4.125% | 4.125% | 4.125% | 4.125% |  |  |
Repurchase amount of senior notes |  |  |  | $ 13,000,000 |  |  |  |
4.750% Senior Notes |  |  |  |  |  |  |  |
Short Term Debt [Line Items] |  |  |  |  |  |  |  |
Line of credit outstanding |  |  |  |  | $ 300,000,000 |  |  |
Line of credit facility, interest rate |  | 4.75% | 4.75% | 4.75% | 4.75% |  |  |
Repurchase amount of senior notes |  |  |  | $ 23,000,000 |  |  |  |

X
- Definition Debt Instrument, Reduction in Basis Spread on Variable Rate + References No definition available. + Details
Name: | apg_DebtInstrumentReductionInBasisSpreadOnVariableRate
Namespace Prefix: | apg_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | instant

X
- Definition Line of credit net of letters of credit outstanding. + References No definition available. + Details
Name: | apg_LineOfCreditNetOfLettersOfCreditOutstanding
Namespace Prefix: | apg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Unswapped portion of line of credit. + References No definition available. + Details
Name: | apg_UnswappedPortionOfLineOfCredit
Namespace Prefix: | apg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Fair value amount of debt instrument that was repurchased. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentRepurchaseAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Period of time between issuance and maturity of debt instrument, in PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentTerm
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The percentage points added to the reference rate to compute the variable rate on the interest rate derivative. + References No definition available. + Details
Name: | us-gaap_DerivativeBasisSpreadOnVariableRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Fixed interest rate related to the interest rate derivative. + References No definition available. + Details
Name: | us-gaap_DerivativeFixedInterestRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Nominal or face amount used to calculate payment on derivative. + References Reference 1: 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 Reference 2: 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 + Details
Name: | us-gaap_DerivativeNotionalAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

X
- Definition Difference between the fair value of payments made and the carrying amount of debt which is extinguished prior to maturity. + References Reference 1: 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 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 470 -SubTopic 50 -Section 40 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481303/470-50-40-2 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 470 -SubTopic 50 -Section 40 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481303/470-50-40-4 + Details
Name: | us-gaap_GainsLossesOnExtinguishmentOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The total amount of the contingent obligation under letters of credit outstanding as of the reporting date. + References No definition available. + Details
Name: | us-gaap_LettersOfCreditOutstandingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition 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. + References Reference 1: 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 Reference 2: 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/2147478546/942-210-S99-1 Reference 3: 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/2147478777/944-210-S99-1 + Details
Name: | us-gaap_LineOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of increase (decrease) of the credit facility. + References Reference 1: 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 + Details
Name: | us-gaap_LineOfCreditFacilityIncreaseDecreaseForPeriodNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The effective interest rate during the reporting period. + References Reference 1: 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(22)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 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(19)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_LineOfCreditFacilityInterestRateDuringPeriod
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
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 -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 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(19)(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 The interest rate applicable to the portion of the carrying amount of long-term borrowings outstanding as of the balance sheet date, including current maturities, which accrues interest at a rate subject to change from time to time. + References Reference 1: 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(22)(a)(1)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_LongTermDebtPercentageBearingVariableInterestRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Including the current and noncurrent portions, aggregate carrying amount of all types of notes payable, as of the balance sheet date, with initial maturities beyond one year or beyond the normal operating cycle, if longer. + References Reference 1: 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 Reference 2: 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/2147478546/942-210-S99-1 Reference 3: 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/2147478777/944-210-S99-1 Reference 4: 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)(17)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478777/944-210-S99-1 + Details
Name: | us-gaap_NotesPayable
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of cash outflow for short-term and long-term debt. Excludes payment of lease obligation. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 230 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 15 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-15 + Details
Name: | us-gaap_RepaymentsOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow for debt initially having maturity due after one year or beyond the normal operating cycle, if longer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 230 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 15 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-15 Reference 2: 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 + Details
Name: | us-gaap_RepaymentsOfLongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Carrying value as of the balance sheet date, including the current and noncurrent portions, of collateralized debt obligations (with maturities initially due after one year or beyond the operating cycle, if longer). Such obligations include mortgage loans, chattel loans, and any other borrowings secured by assets of the borrower. + References Reference 1: 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 Reference 2: 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/2147478546/942-210-S99-1 Reference 3: 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/2147478777/944-210-S99-1 + Details
Name: | us-gaap_SecuredDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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 No definition available. + Details
Name: | us-gaap_ShortTermDebtLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_NonmonetaryTransactionTypeAxis=apg_AcquisitionOfConstructionEquipmentAndVehiclesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=us-gaap_InterestRateSwapMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=apg_TwoThousandTwentyNineInterestRateSwapMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=apg_TwoThousandNineteenTermLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=apg_TwoThousandTwentyOneTermLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=apg_TermLoanFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_BaseRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_SecuredOvernightFinancingRateSofrMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_RevolvingCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_TypeOfArrangementAxis=apg_TwoThousandTwentyTwoIncrementalAmendmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=apg_FourPointOneTwoFivePercentageSeniorNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=apg_FourPointSevenFiveZeroPercentageSeniorNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |