{
 "instance": {
  "ck0001794621-20220630.htm": {
   "axisCustom": 4,
   "axisStandard": 21,
   "contextCount": 288,
   "dts": {
    "calculationLink": {
     "local": [
      "ck0001794621-20220630_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "ck0001794621-20220630_def.xml"
     ]
    },
    "inline": {
     "local": [
      "ck0001794621-20220630.htm"
     ]
    },
    "labelLink": {
     "local": [
      "ck0001794621-20220630_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "ck0001794621-20220630_pre.xml"
     ]
    },
    "schema": {
     "local": [
      "ck0001794621-20220630.xsd"
     ],
     "remote": [
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd",
      "https://xbrl.fasb.org/srt/2022/elts/srt-roles-2022.xsd",
      "https://xbrl.fasb.org/srt/2022/elts/srt-types-2022.xsd",
      "https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd",
      "https://xbrl.fasb.org/us-gaap/2022/elts/us-roles-2022.xsd",
      "https://xbrl.fasb.org/us-gaap/2022/elts/us-types-2022.xsd",
      "https://xbrl.sec.gov/country/2022/country-2022.xsd",
      "https://xbrl.sec.gov/dei/2022/dei-2022.xsd"
     ]
    }
   },
   "elementCount": 654,
   "entityCount": 1,
   "hidden": {
    "http://fasb.org/us-gaap/2022": 14,
    "http://quanergy.com/20220630": 1,
    "http://xbrl.sec.gov/dei/2022": 4,
    "total": 19
   },
   "keyCustom": 114,
   "keyStandard": 281,
   "memberCustom": 53,
   "memberStandard": 38,
   "nsprefix": "ck0001794621",
   "nsuri": "http://quanergy.com/20220630",
   "report": {
    "R1": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "true",
     "longName": "100000 - Document - Cover Page",
     "role": "http://quanergy.com/20220630/taxonomy/role/CoverPage",
     "shortName": "Cover Page",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R10": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InventoryDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100090 - Disclosure - Inventory",
     "role": "http://quanergy.com/20220630/taxonomy/role/Inventory",
     "shortName": "Inventory",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InventoryDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R11": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ck0001794621:PrepaidExpenseAndOtherAssetsCurrentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100100 - Disclosure - Prepaid Expenses and Other Current Assets",
     "role": "http://quanergy.com/20220630/taxonomy/role/PrepaidExpensesAndOtherCurrentAssets",
     "shortName": "Prepaid Expenses and Other Current Assets",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ck0001794621:PrepaidExpenseAndOtherAssetsCurrentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R12": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100110 - Disclosure - Property and Equipment, Net",
     "role": "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNet",
     "shortName": "Property and Equipment, Net",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R13": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ck0001794621:OtherAssetsNonCurrentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100120 - Disclosure - Other Long-Term Assets",
     "role": "http://quanergy.com/20220630/taxonomy/role/OtherLongTermAssets",
     "shortName": "Other Long-Term Assets",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ck0001794621:OtherAssetsNonCurrentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R14": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ck0001794621:OtherLiabilitiesCurrentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100130 - Disclosure - Other Current Liabilities",
     "role": "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilities",
     "shortName": "Other Current Liabilities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ck0001794621:OtherLiabilitiesCurrentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R15": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ck0001794621:OtherLiabilitiesNonCurrentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100140 - Disclosure - Other Long-Term Liabilities",
     "role": "http://quanergy.com/20220630/taxonomy/role/OtherLongTermLiabilities",
     "shortName": "Other Long-Term Liabilities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ck0001794621:OtherLiabilitiesNonCurrentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R16": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100150 - Disclosure - Fair Value Measurements",
     "role": "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurements",
     "shortName": "Fair Value Measurements",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R17": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100160 - Disclosure - Common Stock",
     "role": "http://quanergy.com/20220630/taxonomy/role/CommonStock",
     "shortName": "Common Stock",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R18": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100170 - Disclosure - Stock-Based Compensation Expense",
     "role": "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpense",
     "shortName": "Stock-Based Compensation Expense",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R19": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100180 - Disclosure - Borrowing Arrangements",
     "role": "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangements",
     "shortName": "Borrowing Arrangements",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R2": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100010 - Statement - Condensed Consolidated Balance Sheets",
     "role": "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets",
     "shortName": "Condensed Consolidated Balance Sheets",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R20": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100190 - Disclosure - Leases",
     "role": "http://quanergy.com/20220630/taxonomy/role/Leases",
     "shortName": "Leases",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R21": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100200 - Disclosure - Income Taxes",
     "role": "http://quanergy.com/20220630/taxonomy/role/IncomeTaxes",
     "shortName": "Income Taxes",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R22": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100210 - Disclosure - Commitments and Contingencies",
     "role": "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingencies",
     "shortName": "Commitments and Contingencies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R23": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100220 - Disclosure - Segment Information and Geographic Information",
     "role": "http://quanergy.com/20220630/taxonomy/role/SegmentInformationAndGeographicInformation",
     "shortName": "Segment Information and Geographic Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R24": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100230 - Disclosure - Net Loss Per Share",
     "role": "http://quanergy.com/20220630/taxonomy/role/NetLossPerShare",
     "shortName": "Net Loss Per Share",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R25": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100240 - Disclosure - Related Party Transactions",
     "role": "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactions",
     "shortName": "Related Party Transactions",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R26": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100250 - Disclosure - Subsequent Events",
     "role": "http://quanergy.com/20220630/taxonomy/role/SubsequentEvents",
     "shortName": "Subsequent Events",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R27": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:BasisOfPresentationAndSignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ck0001794621:BusinessDescriptionPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100260 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies (Policies)",
     "role": "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesPolicies",
     "shortName": "Basis of Presentation and Summary of Significant Accounting Policies (Policies)",
     "subGroupType": "policies",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:BasisOfPresentationAndSignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ck0001794621:BusinessDescriptionPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R28": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "ck0001794621:ReverseRecapitalizationTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ck0001794621:ScheduleOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100270 - Disclosure - Reverse Recapitalization (Tables)",
     "role": "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationTables",
     "shortName": "Reverse Recapitalization (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "ck0001794621:ReverseRecapitalizationTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ck0001794621:ScheduleOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R29": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100280 - Disclosure - Inventory (Tables)",
     "role": "http://quanergy.com/20220630/taxonomy/role/InventoryTables",
     "shortName": "Inventory (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R3": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "4",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100020 - Statement - Condensed Consolidated Balance Sheets (Parenthetical)",
     "role": "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheetsParenthetical",
     "shortName": "Condensed Consolidated Balance Sheets (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "4",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false"
     }
    },
    "R30": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "ck0001794621:PrepaidExpenseAndOtherAssetsCurrentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ck0001794621:PrepaidExpenseAndOtherAssetsCurrentTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100290 - Disclosure - Prepaid Expenses and Other Current Assets (Tables)",
     "role": "http://quanergy.com/20220630/taxonomy/role/PrepaidExpensesAndOtherCurrentAssetsTables",
     "shortName": "Prepaid Expenses and Other Current Assets (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "ck0001794621:PrepaidExpenseAndOtherAssetsCurrentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ck0001794621:PrepaidExpenseAndOtherAssetsCurrentTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R31": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100300 - Disclosure - Property and Equipment, Net (Tables)",
     "role": "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetTables",
     "shortName": "Property and Equipment, Net (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R32": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfOtherAssetsNoncurrentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100310 - Disclosure - Other Long-Term Assets (Tables)",
     "role": "http://quanergy.com/20220630/taxonomy/role/OtherLongTermAssetsTables",
     "shortName": "Other Long-Term Assets (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfOtherAssetsNoncurrentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R33": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "ck0001794621:OtherLiabilitiesCurrentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherCurrentLiabilitiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100320 - Disclosure - Other Current Liabilities (Tables)",
     "role": "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesTables",
     "shortName": "Other Current Liabilities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "ck0001794621:OtherLiabilitiesCurrentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherCurrentLiabilitiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R34": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "ck0001794621:OtherLiabilitiesNonCurrentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherNoncurrentLiabilitiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100330 - Disclosure - Other Long-term Liabilities (Tables)",
     "role": "http://quanergy.com/20220630/taxonomy/role/OtherLongTermLiabilitiesTables",
     "shortName": "Other Long-term Liabilities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "ck0001794621:OtherLiabilitiesNonCurrentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherNoncurrentLiabilitiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R35": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100340 - Disclosure - Fair Value Measurements (Tables)",
     "role": "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsTables",
     "shortName": "Fair Value Measurements (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R36": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfStockByClassTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100350 - Disclosure - Common Stock (Tables)",
     "role": "http://quanergy.com/20220630/taxonomy/role/CommonStockTables",
     "shortName": "Common Stock (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfStockByClassTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R37": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100360 - Disclosure - Stock-Based Compensation Expense (Tables)",
     "role": "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseTables",
     "shortName": "Stock-Based Compensation Expense (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R38": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100370 - Disclosure - Borrowing Arrangements (Tables)",
     "role": "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsTables",
     "shortName": "Borrowing Arrangements (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R39": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100380 - Disclosure - Leases (Tables)",
     "role": "http://quanergy.com/20220630/taxonomy/role/LeasesTables",
     "shortName": "Leases (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R4": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ecdf5e87-a429-4ee9-9667-0fe90c9e9b09",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100030 - Statement - Condensed Consolidated Statements of Operations",
     "role": "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations",
     "shortName": "Condensed Consolidated Statements of Operations",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ecdf5e87-a429-4ee9-9667-0fe90c9e9b09",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R40": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsByGeographicalAreasTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100390 - Disclosure - Segment Information and Geographic Information (Tables)",
     "role": "http://quanergy.com/20220630/taxonomy/role/SegmentInformationAndGeographicInformationTables",
     "shortName": "Segment Information and Geographic Information (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsByGeographicalAreasTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R41": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100400 - Disclosure - Net Loss Per Share (Tables)",
     "role": "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareTables",
     "shortName": "Net Loss Per Share (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R42": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "ck0001794621:LiquidityAndCapitalResourcesPolicyTextBlock",
       "div",
       "us-gaap:BasisOfPresentationAndSignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_9be01d8c-4f68-44c9-9373-79191b963a22",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:Cash",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100410 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies - Additional Information (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
     "shortName": "Basis of Presentation and Summary of Significant Accounting Policies - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "ck0001794621:LiquidityAndCapitalResourcesPolicyTextBlock",
       "div",
       "us-gaap:BasisOfPresentationAndSignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_9be01d8c-4f68-44c9-9373-79191b963a22",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:Cash",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R43": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ck0001794621:ReverseRecapitalizationTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ProceedsFromSaleOfRestrictedInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100420 - Disclosure - Reverse Recapitalization - Summary of Business Acquisition Elements Reconciled To Consolidated Financial Statements (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsDetail",
     "shortName": "Reverse Recapitalization - Summary of Business Acquisition Elements Reconciled To Consolidated Financial Statements (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ck0001794621:ReverseRecapitalizationTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ProceedsFromSaleOfRestrictedInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R44": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:CommonStockSharesIssued",
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockSharesOutstanding",
      "reportCount": 1,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100430 - Disclosure - Reverse Recapitalization - Summary of Number of Shares of Common Stock Issued Immediately Following The Consummation of The Business Combination (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail",
     "shortName": "Reverse Recapitalization - Summary of Number of Shares of Common Stock Issued Immediately Following The Consummation of The Business Combination (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ck0001794621:ScheduleOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationTableTextBlock",
       "div",
       "ck0001794621:ReverseRecapitalizationTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": "0",
      "lang": null,
      "name": "ck0001794621:NumberOfSharesIssuedForBusinessCombinationAndPipeFinancing",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R45": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockIssuedDuringPeriodSharesStockOptionsExercised",
      "reportCount": 1,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100440 - Disclosure - Reverse Recapitalization - Summary of Number of Legacy Quanergy Shares (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail",
     "shortName": "Reverse Recapitalization - Summary of Number of Legacy Quanergy Shares (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ck0001794621:ReverseRecapitalizationTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_72776627-367f-439d-a8c5-8a9fdcdd4eaf",
      "decimals": "0",
      "lang": null,
      "name": "us-gaap:SharesOutstanding",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R46": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "ck0001794621:LiquidityAndCapitalResourcesPolicyTextBlock",
       "div",
       "us-gaap:BasisOfPresentationAndSignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "ck0001794621:CashAcquiredFromBusinessAcquisitionAndPipeFinancing",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100450 - Disclosure - Reverse Recapitalization - Additional Information (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationAdditionalInformationDetail",
     "shortName": "Reverse Recapitalization - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "ck0001794621:ReverseRecapitalizationTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": "-5",
      "lang": null,
      "name": "us-gaap:BusinessCombinationAcquisitionRelatedCosts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R47": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
       "div",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InventoryRawMaterials",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100460 - Disclosure - Inventory - Schedule of Inventory (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/InventoryScheduleOfInventoryDetail",
     "shortName": "Inventory - Schedule of Inventory (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
       "div",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InventoryRawMaterials",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R48": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ck0001794621:PrepaidExpenseAndOtherAssetsCurrentTableTextBlock",
       "div",
       "ck0001794621:PrepaidExpenseAndOtherAssetsCurrentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ck0001794621:PrepaidSensataShortTermServices",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100470 - Disclosure - Prepaid Expenses and Other Current Assets - Schedule of Prepaid Expenses and Other Assets Current (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/PrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherAssetsCurrentDetail",
     "shortName": "Prepaid Expenses and Other Current Assets - Schedule of Prepaid Expenses and Other Assets Current (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ck0001794621:PrepaidExpenseAndOtherAssetsCurrentTableTextBlock",
       "div",
       "ck0001794621:PrepaidExpenseAndOtherAssetsCurrentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ck0001794621:PrepaidSensataShortTermServices",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R49": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PropertyPlantAndEquipmentGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100480 - Disclosure - Property and Equipment, Net - Schedule of Property Plant and Equipment (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail",
     "shortName": "Property and Equipment, Net - Schedule of Property Plant and Equipment (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PropertyPlantAndEquipmentGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R5": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ecdf5e87-a429-4ee9-9667-0fe90c9e9b09",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100040 - Statement - Condensed Consolidated Statements of Comprehensive Loss",
     "role": "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfComprehensiveLoss",
     "shortName": "Condensed Consolidated Statements of Comprehensive Loss",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ecdf5e87-a429-4ee9-9667-0fe90c9e9b09",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R50": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ecdf5e87-a429-4ee9-9667-0fe90c9e9b09",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:DepreciationAndAmortization",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100490 - Disclosure - Property and Equipment, Net - Additional Information (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetAdditionalInformationDetail",
     "shortName": "Property and Equipment, Net - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R51": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfOtherAssetsNoncurrentTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ck0001794621:PrepaidSensataLongTermServices",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100500 - Disclosure - Other Long-Term Assets - Schedule of Other Long-Term Assets (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/OtherLongTermAssetsScheduleOfOtherLongTermAssetsDetail",
     "shortName": "Other Long-Term Assets - Schedule of Other Long-Term Assets (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfOtherAssetsNoncurrentTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ck0001794621:PrepaidSensataLongTermServices",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R52": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:OtherCurrentLiabilitiesTableTextBlock",
       "div",
       "ck0001794621:OtherLiabilitiesCurrentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ck0001794621:GemCommitmentFeeCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100510 - Disclosure - Other Current Liabilities - Schedule of Other Current Liabilities (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail",
     "shortName": "Other Current Liabilities - Schedule of Other Current Liabilities (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:OtherCurrentLiabilitiesTableTextBlock",
       "div",
       "ck0001794621:OtherLiabilitiesCurrentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ck0001794621:GemCommitmentFeeCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R53": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:OtherNoncurrentLiabilitiesTableTextBlock",
       "div",
       "ck0001794621:OtherLiabilitiesNonCurrentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ck0001794621:TransactionFeePayableNonCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100520 - Disclosure - Other Long-Term Liabilities - Schedule of Other Non Current Liabilities (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/OtherLongTermLiabilitiesScheduleOfOtherNonCurrentLiabilitiesDetail",
     "shortName": "Other Long-Term Liabilities - Schedule of Other Non Current Liabilities (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:OtherNoncurrentLiabilitiesTableTextBlock",
       "div",
       "ck0001794621:OtherLiabilitiesNonCurrentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ck0001794621:TransactionFeePayableNonCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R54": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PrepaidExpenseAndOtherAssetsCurrent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100530 - Disclosure - Fair Value Measurements - Summary of Information About The Company's Financial Assets and Liabilities That Are Measured at Fair Value On Recurring Basis (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail",
     "shortName": "Fair Value Measurements - Summary of Information About The Company's Financial Assets and Liabilities That Are Measured at Fair Value On Recurring Basis (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_4338641f-9584-4c33-91c4-f6a4a0427725",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AssetsFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R55": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_f828cac8-14b3-498d-a261-9b886f48d0ee",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100540 - Disclosure - Fair Value Measurements - Summary of Changes in Level 3 Fair Value Instruments (Details)",
     "role": "http://quanergy.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInLevel3FairValueInstrumentsDetails",
     "shortName": "Fair Value Measurements - Summary of Changes in Level 3 Fair Value Instruments (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_f828cac8-14b3-498d-a261-9b886f48d0ee",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R56": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_f36a03f0-e14a-4d55-a916-b899360a8e79",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DueToRelatedPartiesNoncurrent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100550 - Disclosure - Fair Value Measurements - Additional Information (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail",
     "shortName": "Fair Value Measurements - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ecdf5e87-a429-4ee9-9667-0fe90c9e9b09",
      "decimals": "-5",
      "lang": null,
      "name": "us-gaap:AssetAtFairValueChangesInFairValueResultingFromChangesInAssumptions",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R57": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfStockByClassTextBlock",
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_547c55e3-275e-4106-a741-dea1d528f6f8",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "ck0001794621:AdjustmentOfRecapitalizationEffectAppliedToSharesOutstanding",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100560 - Disclosure - Common Stock - Summary of Stock By Class (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockByClassDetail",
     "shortName": "Common Stock - Summary of Stock By Class (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfStockByClassTextBlock",
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_547c55e3-275e-4106-a741-dea1d528f6f8",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "ck0001794621:AdjustmentOfRecapitalizationEffectAppliedToSharesOutstanding",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R58": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfStockholdersEquityNoteWarrantsOrRightsTextBlock",
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:ClassOfWarrantOrRightOutstanding",
      "reportCount": 1,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100570 - Disclosure - Common Stock - Summary of Stockholders' Equity Note, Warrants or Rights (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockholdersEquityNoteWarrantsOrRightsDetail",
     "shortName": "Common Stock - Summary of Stockholders' Equity Note, Warrants or Rights (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfStockholdersEquityNoteWarrantsOrRightsTextBlock",
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_36daf733-718d-4efd-b7e9-a7a2fef95906",
      "decimals": null,
      "lang": "en-US",
      "name": "ck0001794621:WarrantsAndRightsOutstandingExpirationDate",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R59": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockSharesAuthorized",
      "reportCount": 1,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100600 - Disclosure - Common Stock - Additional Information (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
     "shortName": "Common Stock - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_d25d033a-1113-4bfe-b4a0-95637afdeb5b",
      "decimals": "2",
      "lang": null,
      "name": "ck0001794621:PercentageOfAverageTradingPriceToDetermineOtherValues",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R6": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_5220c48c-a020-43f8-852f-6d15bd609818",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100050 - Statement - Condensed Consolidated Statements of Stockholder's Equity / (Deficit)",
     "role": "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit",
     "shortName": "Condensed Consolidated Statements of Stockholder's Equity / (Deficit)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_4fa30d6f-93a2-4466-9055-365bc044d22c",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R60": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_f36a03f0-e14a-4d55-a916-b899360a8e79",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100610 - Disclosure - Stock-Based Compensation Expense - Summary of Share-Based Payment Arrangement, Option, Activity (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail",
     "shortName": "Stock-Based Compensation Expense - Summary of Share-Based Payment Arrangement, Option, Activity (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_f36a03f0-e14a-4d55-a916-b899360a8e79",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R61": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_97959a1b-4255-4cad-ac49-a9d920b4586b",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100620 - Disclosure - Stock-Based Compensation Expense - Summary of Share-Based Payment Arrangement, Restricted Stock And Restricted Stock Unit, Activity (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementRestrictedStockAndRestrictedStockUnitActivityDetail",
     "shortName": "Stock-Based Compensation Expense - Summary of Share-Based Payment Arrangement, Restricted Stock And Restricted Stock Unit, Activity (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_97959a1b-4255-4cad-ac49-a9d920b4586b",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R62": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ecdf5e87-a429-4ee9-9667-0fe90c9e9b09",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100630 - Disclosure - Stock-Based Compensation Expense - Summary of Share-Based Payment Arrangement, Expensed And Capitalized, Amount (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementExpensedAndCapitalizedAmountDetail",
     "shortName": "Stock-Based Compensation Expense - Summary of Share-Based Payment Arrangement, Expensed And Capitalized, Amount (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_68e2216f-b519-471f-8899-a8541383724b",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R63": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ecdf5e87-a429-4ee9-9667-0fe90c9e9b09",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100640 - Disclosure - Stock-Based Compensation Expense - Additional Information (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail",
     "shortName": "Stock-Based Compensation Expense - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_e931715e-32fa-4eff-b49c-6aa594e77300",
      "decimals": null,
      "lang": "en-US",
      "name": "us-gaap:EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R64": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_fa185e09-6119-43ed-bae8-8836b0e3b074",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:EmbeddedDerivativeFairValueOfEmbeddedDerivativeLiability",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100650 - Disclosure - Borrowing Arrangements - Summary of Estimated Fair Value of The 2022  And  2023 Notes Embedded Derivative (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsSummaryOfEstimatedFairValueOfThe2022And2023NotesEmbeddedDerivativeDetail",
     "shortName": "Borrowing Arrangements - Summary of Estimated Fair Value of The 2022  And  2023 Notes Embedded Derivative (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_f748fc20-b5c1-47cf-babf-fcfc77692563",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:EmbeddedDerivativeFairValueOfEmbeddedDerivativeLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R65": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ck0001794621:ScheduleOfInterestExpenseTableTextBlock",
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_25650340-2766-4ec7-87cf-3318ac1538ed",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InterestExpenseDebt",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100660 - Disclosure - Borrowing Arrangements - Schedule of Interest Expense (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsScheduleOfInterestExpenseDetail",
     "shortName": "Borrowing Arrangements - Schedule of Interest Expense (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ck0001794621:ScheduleOfInterestExpenseTableTextBlock",
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_25650340-2766-4ec7-87cf-3318ac1538ed",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InterestExpenseDebt",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R66": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:GainsLossesOnExtinguishmentOfDebt",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100670 - Disclosure - Borrowing Arrangements - Additional Information (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail",
     "shortName": "Borrowing Arrangements - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_f24bc5d0-a5ce-4b7b-b287-1e47c153b234",
      "decimals": "-5",
      "lang": null,
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R67": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LeaseCostTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ecdf5e87-a429-4ee9-9667-0fe90c9e9b09",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeasePayments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100680 - Disclosure - Leases - Summary of Supplemental Cash Flow Information Related To Leases (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfSupplementalCashFlowInformationRelatedToLeasesDetail",
     "shortName": "Leases - Summary of Supplemental Cash Flow Information Related To Leases (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LeaseCostTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ecdf5e87-a429-4ee9-9667-0fe90c9e9b09",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeasePayments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R68": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100690 - Disclosure - Leases - Summary of Maturities of The Operating Lease Liabilities (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfMaturitiesOfTheOperatingLeaseLiabilitiesDetail",
     "shortName": "Leases - Summary of Maturities of The Operating Lease Liabilities (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R69": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeasesFutureMinimumPaymentsDueCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100700 - Disclosure - Leases - Summary of Future Minimum Rental Payments For Operating Leases (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfFutureMinimumRentalPaymentsForOperatingLeasesDetail",
     "shortName": "Leases - Summary of Future Minimum Rental Payments For Operating Leases (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeasesFutureMinimumPaymentsDueCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R7": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100060 - Statement - Condensed Consolidated Statements of Cash Flows",
     "role": "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows",
     "shortName": "Condensed Consolidated Statements of Cash Flows",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:ShareBasedCompensation",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R70": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ck0001794621:ScheduleOfOperatingLeaseWeightedAverageRemainingLeaseTermAndInterestRate",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FinanceLeaseWeightedAverageRemainingLeaseTerm1",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100710 - Disclosure - Leases - Summary of weighted average remaining lease term (Details)",
     "role": "http://quanergy.com/20220630/taxonomy/role/DisclosureLeasesSummaryOfWeightedAverageRemainingLeaseTermDetails",
     "shortName": "Leases - Summary of weighted average remaining lease term (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ck0001794621:ScheduleOfOperatingLeaseWeightedAverageRemainingLeaseTermAndInterestRate",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FinanceLeaseWeightedAverageRemainingLeaseTerm1",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R71": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ecdf5e87-a429-4ee9-9667-0fe90c9e9b09",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100720 - Disclosure - Leases - Additional Information (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/LeasesAdditionalInformationDetail",
     "shortName": "Leases - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ecdf5e87-a429-4ee9-9667-0fe90c9e9b09",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R72": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ecdf5e87-a429-4ee9-9667-0fe90c9e9b09",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeTaxExpenseBenefit",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100730 - Disclosure - Income Taxes - Additional Information (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/IncomeTaxesAdditionalInformationDetail",
     "shortName": "Income Taxes - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R73": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_5220c48c-a020-43f8-852f-6d15bd609818",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:LossContingencyEstimateOfPossibleLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100740 - Disclosure - Commitments and Contingencies - Additional Information (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
     "shortName": "Commitments and Contingencies - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_5220c48c-a020-43f8-852f-6d15bd609818",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:LossContingencyEstimateOfPossibleLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R74": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsByGeographicalAreasTableTextBlock",
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ecdf5e87-a429-4ee9-9667-0fe90c9e9b09",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:Revenues",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100750 - Disclosure - Segment Information and Geographic Information - Summary of Revenue by Geographical Region (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/SegmentInformationAndGeographicInformationSummaryOfRevenueByGeographicalRegionDetail",
     "shortName": "Segment Information and Geographic Information - Summary of Revenue by Geographical Region (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsByGeographicalAreasTableTextBlock",
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ecdf5e87-a429-4ee9-9667-0fe90c9e9b09",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:Revenues",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R75": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ecdf5e87-a429-4ee9-9667-0fe90c9e9b09",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100760 - Disclosure - Net Loss Per Share - Summary of Basic and Diluted Net Income (Loss) Per Ordinary Share (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareSummaryOfBasicAndDilutedNetIncomeLossPerOrdinaryShareDetail",
     "shortName": "Net Loss Per Share - Summary of Basic and Diluted Net Income (Loss) Per Ordinary Share (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ecdf5e87-a429-4ee9-9667-0fe90c9e9b09",
      "decimals": "0",
      "lang": null,
      "name": "ck0001794621:WeightedAverageNumberOfSharesOutstandingBasicAndDiluted",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R76": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock",
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100770 - Disclosure - Net Loss Per Share - Schedule of Antidilutive Securities Excluded from Computation of Earnings Per share (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetail",
     "shortName": "Net Loss Per Share - Schedule of Antidilutive Securities Excluded from Computation of Earnings Per share (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock",
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R77": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_3ed826bd-ca29-4274-b570-f5f03715c1bc",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DueToRelatedPartiesCurrent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100790 - Disclosure - Related Party Transactions - Additional Information (Detail)",
     "role": "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail",
     "shortName": "Related Party Transactions - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_f61c12ce-877e-4615-b593-72a237242925",
      "decimals": "-5",
      "lang": null,
      "name": "us-gaap:DueToRelatedPartiesCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R8": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfPresentationAndSignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100070 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies",
     "role": "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPolicies",
     "shortName": "Basis of Presentation and Summary of Significant Accounting Policies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfPresentationAndSignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R9": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ck0001794621:ReverseRecapitalizationTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100080 - Disclosure - Reverse Recapitalization",
     "role": "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalization",
     "shortName": "Reverse Recapitalization",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "ck0001794621-20220630.htm",
      "contextRef": "C_ce55a17d-a697-486d-a960-5560f68f8649",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ck0001794621:ReverseRecapitalizationTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    }
   },
   "segmentCount": 95,
   "tag": {
    "ck0001794621_AccountingPoliciesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounting Policies .",
        "label": "Accounting Policies [Line Items]"
       }
      }
     },
     "localname": "AccountingPoliciesLineItems",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_AccountingPoliciesTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounting Policies .",
        "label": "Accounting Policies [Table]"
       }
      }
     },
     "localname": "AccountingPoliciesTable",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_AdjustmentOfRecapitalizationEffectAppliedToSharesOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Adjustment of recapitalization effect applied to shares outstanding.",
        "label": "Adjustment Of Recapitalization Effect Applied To Shares Outstanding",
        "terseLabel": "Recapitalization applied to Convertible Preferred Stock outstanding at December\u00a031, 2020"
       }
      }
     },
     "localname": "AdjustmentOfRecapitalizationEffectAppliedToSharesOutstanding",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockByClassDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_AgreementAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Agreement [Axis]",
        "label": "Agreement [Axis]"
       }
      }
     },
     "localname": "AgreementAxis",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_AgreementDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Agreement [Domain]",
        "label": "Agreement [Domain]"
       }
      }
     },
     "localname": "AgreementDomain",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_BasisOfPresentationAndConsolidation": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Basis of presentation and consolidation.",
        "label": "Basis Of Presentation And Consolidation",
        "verboseLabel": "Basis of Presentation and Consolidation"
       }
      }
     },
     "localname": "BasisOfPresentationAndConsolidation",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_BusinessDescriptionPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business description.",
        "label": "Business Description [Policy Text Block]",
        "verboseLabel": "Description of Business"
       }
      }
     },
     "localname": "BusinessDescriptionPolicyTextBlock",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_CashAcquiredFromBusinessAcquisitionAndPipeFinancing": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash acquired from business acquisition and PIPE financing.",
        "label": "Cash Acquired From Business Acquisition And PIPE Financing",
        "terseLabel": "Cash acquired from business acquisition and PIPE financing"
       }
      }
     },
     "localname": "CashAcquiredFromBusinessAcquisitionAndPipeFinancing",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_ClassOfWarrantOrRightConversionRatio": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of warrant or right conversion ratio.",
        "label": "Class Of Warrant Or Right Conversion Ratio",
        "terseLabel": "Class of warrant or right conversion ratio"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightConversionRatio",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "pureItemType"
    },
    "ck0001794621_ClassOfWarrantsAndRightsIssuedDuringThePeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Classof warrants and rights issued during the period.",
        "label": "Class Of Warrants And Rights Issued During The Period",
        "terseLabel": "Class of warrants and rights issued during the period"
       }
      }
     },
     "localname": "ClassOfWarrantsAndRightsIssuedDuringThePeriod",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_ClassOfWarrantsAndRightsIssuedPricePerWarrant": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of warrants and rights issued price per warrant.",
        "label": "Class Of Warrants And Rights Issued Price Per Warrant",
        "terseLabel": "Class of warrants and rights issued price per warrant"
       }
      }
     },
     "localname": "ClassOfWarrantsAndRightsIssuedPricePerWarrant",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "ck0001794621_ClassOfWarrantsRedemptionPricePerUnit": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of warrants redemption price per unit.",
        "label": "Class Of Warrants Redemption Price Per Unit",
        "terseLabel": "Class of warrants redemption price per unit"
       }
      }
     },
     "localname": "ClassOfWarrantsRedemptionPricePerUnit",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "ck0001794621_CollaborativeAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Collaborative agreement.",
        "label": "Collaborative Agreement [Member]"
       }
      }
     },
     "localname": "CollaborativeAgreementMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_CollaborativeArrangementOneMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Collaborative arrangement one.",
        "label": "Collaborative Arrangement One [Member]"
       }
      }
     },
     "localname": "CollaborativeArrangementOneMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_CommitmentFeesIncurredButNotPaid": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commitment fees incurred but not paid.",
        "label": "Commitment Fees Incurred But Not Paid",
        "verboseLabel": "GEM commitment fee"
       }
      }
     },
     "localname": "CommitmentFeesIncurredButNotPaid",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_CommonStockCapitalSharesReservedForFutureIssuanceIncrease": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common stock capital shares reserved for future issuance increase.",
        "label": "Common Stock Capital Shares Reserved For Future Issuance Increase",
        "verboseLabel": "Common stock capital shares reserved for future issuance increase"
       }
      }
     },
     "localname": "CommonStockCapitalSharesReservedForFutureIssuanceIncrease",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_CommonStockConvertibleConversionRatio": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common stock convertible conversion ratio.",
        "label": "Common Stock Convertible Conversion Ratio",
        "terseLabel": "Common stock convertible, conversion ratio"
       }
      }
     },
     "localname": "CommonStockConvertibleConversionRatio",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockByClassDetail"
     ],
     "xbrltype": "pureItemType"
    },
    "ck0001794621_CommonStockSharesReturnedUponSettlement": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common stock, shares returned upon settlement",
        "label": "Common stock, shares returned upon settlement"
       }
      }
     },
     "localname": "CommonStockSharesReturnedUponSettlement",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_ComputerSoftwareMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Computer software.",
        "label": "Computer Software [Member]"
       }
      }
     },
     "localname": "ComputerSoftwareMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_ConvertibleNotesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Convertible notes",
        "label": "Convertible notes [Member]"
       }
      }
     },
     "localname": "ConvertibleNotesMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_ConvertiblePromissoryNotesIssuedToFourRelatedPartiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Convertible promissory notes issued to four related parties.",
        "label": "Convertible Promissory Notes Issued To Four Related Parties [Member]"
       }
      }
     },
     "localname": "ConvertiblePromissoryNotesIssuedToFourRelatedPartiesMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_ConvertiblePromissoryNotesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Convertible promissory notes.",
        "label": "Convertible Promissory Notes [Member]"
       }
      }
     },
     "localname": "ConvertiblePromissoryNotesMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_DebtDerivativeLiabilitiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Derivative Liabilities",
        "label": "Debt Derivative Liabilities [Member]"
       }
      }
     },
     "localname": "DebtDerivativeLiabilitiesMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_DebtInstrumentAdditionalInterestRateStatedPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument additional interest rate stated percentage.",
        "label": "Debt Instrument Additional Interest Rate Stated Percentage",
        "verboseLabel": "Debt instrument additional interest rate stated percentage"
       }
      }
     },
     "localname": "DebtInstrumentAdditionalInterestRateStatedPercentage",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "ck0001794621_DebtInstrumentConvertibleDerivativeComponentFairValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Instrument convertible derivative component fair value.",
        "label": "Debt Instrument Convertible Derivative Component Fair Value",
        "verboseLabel": "Debt instrument convertible fair value of derivative component"
       }
      }
     },
     "localname": "DebtInstrumentConvertibleDerivativeComponentFairValue",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_DebtInstrumentConvertibleEquityComponentFairValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Instrument convertible equity component fair value.",
        "label": "Debt Instrument Convertible Equity Component Fair Value",
        "verboseLabel": "Debt instrument convertible fair value of equity component"
       }
      }
     },
     "localname": "DebtInstrumentConvertibleEquityComponentFairValue",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_DebtInstrumentConvertibleFairValueOfDerivativeComponent": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument convertible fair value of derivative component.",
        "label": "Debt Instrument Convertible Fair Value Of Derivative Component",
        "verboseLabel": "Debt instrument convertible fair value of derivative component"
       }
      }
     },
     "localname": "DebtInstrumentConvertibleFairValueOfDerivativeComponent",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_DebtInstrumentConvertibleFairValueOfEquityComponent": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument convertible fair value of equity component.",
        "label": "Debt Instrument Convertible Fair Value Of Equity Component",
        "verboseLabel": "Debt instrument convertible fair value of equity component"
       }
      }
     },
     "localname": "DebtInstrumentConvertibleFairValueOfEquityComponent",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_DebtInstrumentMaturityMonthYear": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument maturity month year.",
        "label": "Debt Instrument Maturity Month Year",
        "verboseLabel": "Debt instrument maturity month year"
       }
      }
     },
     "localname": "DebtInstrumentMaturityMonthYear",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail"
     ],
     "xbrltype": "gYearMonthItemType"
    },
    "ck0001794621_DebtIssuanceCostsAllocationToDerivativeComponent": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt issuance costs allocation to derivative component.",
        "label": "Debt Issuance Costs Allocation to Derivative Component",
        "verboseLabel": "Debt issuance costs allocation to derivative component"
       }
      }
     },
     "localname": "DebtIssuanceCostsAllocationToDerivativeComponent",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_DebtIssuanceCostsAllocationToEquityComponent": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt issuance costs allocation to equity component .",
        "label": "Debt Issuance Costs Allocation to Equity Component",
        "verboseLabel": "Debt issuance costs allocation to equity component"
       }
      }
     },
     "localname": "DebtIssuanceCostsAllocationToEquityComponent",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_EmployeeStockPurchasePlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Employee stock purchase plan.",
        "label": "Employee Stock Purchase Plan [Member]"
       }
      }
     },
     "localname": "EmployeeStockPurchasePlanMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_EuropeMiddleEastAndAfricaMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Europe Middle East And Africa [Member]"
       }
      }
     },
     "localname": "EuropeMiddleEastAndAfricaMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/SegmentInformationAndGeographicInformationSummaryOfRevenueByGeographicalRegionDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_ExceptSeriesBAndSeriesCConvertiblePreferredStockLegacyQuanergyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Except Series B And Series C Convertible Preferred Stock (Legacy Quanergy) [Member]"
       }
      }
     },
     "localname": "ExceptSeriesBAndSeriesCConvertiblePreferredStockLegacyQuanergyMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_ExchangeOfCommonStockForSettlement": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Exchange of Common stock for settlement.",
        "label": "Exchange of Common stock for settlement"
       }
      }
     },
     "localname": "ExchangeOfCommonStockForSettlement",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_ExpenseForTheChangeInFairValueOfTheForwardAsset": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Expense for the change in fair value of the forward asset",
        "label": "Expense for the change in fair value of the forward asset",
        "terseLabel": "Expense for the change in fair value of the forward asset"
       }
      }
     },
     "localname": "ExpenseForTheChangeInFairValueOfTheForwardAsset",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_FairValueLiabilitiesMeasuredOnReconciliationOfChangesInFairValueTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair Value Liabilities Measured on Reconciliation of Changes in Fair Value [Table Text Block]",
        "label": "Fair Value Liabilities Measured on Reconciliation of Changes in Fair Value [Table Text Block]",
        "terseLabel": "Summary of Reconciliation of Changes in Fair Value"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnReconciliationOfChangesInFairValueTableTextBlock",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_FairValueMeasurementWithUnobservableInputsReconciliationLiabilityTransfersIntoLevel2": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair Value Measurement With Unobservable Inputs Reconciliation Liability Transfers Into Level2",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Liability Transfers Into Level2",
        "terseLabel": "Transfer to Level 2"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationLiabilityTransfersIntoLevel2",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInLevel3FairValueInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityConversion": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair Value measurement with unobservable inputs reconciliation recurring basis, liability conversion.",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Liability Conversion",
        "verboseLabel": "Conversion of 2023 Notes"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityConversion",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsSummaryOfEstimatedFairValueOfThe2022And2023NotesEmbeddedDerivativeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_FairValueOfDerivativeLiabilitiesRelatedToIssuanceOfConvertibleDebt": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of derivative liabilities related to issuance of convertible debt",
        "label": "Fair Value Of Derivative Liabilities Related To Issuance Of Convertible Debt",
        "verboseLabel": "Fair value of debt derivative liabilities related to issuance of convertible notes"
       }
      }
     },
     "localname": "FairValueOfDerivativeLiabilitiesRelatedToIssuanceOfConvertibleDebt",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_FairValueOfWarrants": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of warrants.",
        "label": "Fair Value Of Warrants",
        "verboseLabel": "Fair Value Of Warrants"
       }
      }
     },
     "localname": "FairValueOfWarrants",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_February2016CollaborativeAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "February 2016 collaborative agreement.",
        "label": "February 2016 Collaborative Agreement [Member]"
       }
      }
     },
     "localname": "February2016CollaborativeAgreementMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_GemAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "GEM Agreement [Member]",
        "verboseLabel": "GEM Agreement [Member]"
       }
      }
     },
     "localname": "GemAgreementMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_GemCommitmentFeeCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_OtherLiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "GEM commitment fee current.",
        "label": "GEM Commitment Fee Current",
        "terseLabel": "GEM commitment fee"
       }
      }
     },
     "localname": "GemCommitmentFeeCurrent",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_GemWarrantsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "GEM Warrants [Member]",
        "verboseLabel": "GEM Warrants [Member]"
       }
      }
     },
     "localname": "GemWarrantsMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockholdersEquityNoteWarrantsOrRightsDetail",
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_GeographicAreasRevenuesFromExternalCustomersLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographic Areas Revenues From External Customers [Line Items]"
       }
      }
     },
     "localname": "GeographicAreasRevenuesFromExternalCustomersLineItems",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/SegmentInformationAndGeographicInformationSummaryOfRevenueByGeographicalRegionDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_GeographicAreasRevenuesFromExternalCustomersTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographic Areas Revenues From External Customers [Table]"
       }
      }
     },
     "localname": "GeographicAreasRevenuesFromExternalCustomersTable",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/SegmentInformationAndGeographicInformationSummaryOfRevenueByGeographicalRegionDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_ImpactOfCovid19PolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Impact of covid19.",
        "label": "Impact Of Covid19 [Policy Text Block]",
        "verboseLabel": "COVID-19 Considerations"
       }
      }
     },
     "localname": "ImpactOfCovid19PolicyTextBlock",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_IncreaseDecreaseInFairValueOfShareSettledForwardAsset": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 16.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase decrease in fair value of share settled forward asset.",
        "label": "Increase Decrease in Fair Value of Share Settled Forward Asset",
        "negatedLabel": "Change in fair value of share-settled forward asset"
       }
      }
     },
     "localname": "IncreaseDecreaseInFairValueOfShareSettledForwardAsset",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_IssuanceOfCommonStockSharesUponReverseCapitalizationNetOfOfferingCosts": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Issuance of common stock shares upon the reverse capitalization, net of offering costs.",
        "label": "Issuance Of Common Stock Shares Upon Reverse Capitalization Net Of Offering Costs",
        "terseLabel": "Issuance of common stock upon the reverse capitalization, net of offering costs, Shares"
       }
      }
     },
     "localname": "IssuanceOfCommonStockSharesUponReverseCapitalizationNetOfOfferingCosts",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_IssuanceOfCommonStockSharesUponVestingOfRestrictedStockUnits": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Issuance of common stock upon vesting of restricted stock units, shares.",
        "label": "Issuance Of Common Stock Shares Upon Vesting Of Restricted Stock Units",
        "terseLabel": "Issuance of common stock upon vesting of RSUs, shares"
       }
      }
     },
     "localname": "IssuanceOfCommonStockSharesUponVestingOfRestrictedStockUnits",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_IssuanceOfCommonStockValueUponReverseCapitalizationNetOfOfferingCosts": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Issuance of common stock value upon reverse capitalization net of offering costs.",
        "label": "Issuance Of Common Stock Value Upon Reverse Capitalization Net Of Offering Costs",
        "terseLabel": "Issuance of common stock upon the reverse capitalization, net of offering costs"
       }
      }
     },
     "localname": "IssuanceOfCommonStockValueUponReverseCapitalizationNetOfOfferingCosts",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_IssuanceOfCommonStockValueUponVestingOfRestrictedStockUnits": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Issuance of common stock upon vesting of restricted stock units (\"RSUs\")",
        "label": "Issuance Of Common Stock Value Upon Vesting Of Restricted Stock Units",
        "terseLabel": "Issuance of common stock upon vesting of RSUs"
       }
      }
     },
     "localname": "IssuanceOfCommonStockValueUponVestingOfRestrictedStockUnits",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_IssuanceOfShareSettledForwardAsset": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Issuance of share settled forward asset.",
        "label": "Issuance of Share Settled Forward Asset",
        "terseLabel": "Issuance of share-settled forward asset"
       }
      }
     },
     "localname": "IssuanceOfShareSettledForwardAsset",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_LeaseAgreementAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lease agreement.",
        "label": "Lease Agreement [Axis]"
       }
      }
     },
     "localname": "LeaseAgreementAxis",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfFutureMinimumRentalPaymentsForOperatingLeasesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_LeaseAgreementDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lease agreement.",
        "label": "Lease Agreement [Domain]"
       }
      }
     },
     "localname": "LeaseAgreementDomain",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfFutureMinimumRentalPaymentsForOperatingLeasesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_LeaseTerminationAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lease termination agreement.",
        "label": "Lease Termination Agreement [Member]"
       }
      }
     },
     "localname": "LeaseTerminationAgreementMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfFutureMinimumRentalPaymentsForOperatingLeasesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_LegacyQuanergySharesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legacy Quanergy Shares [Member]"
       }
      }
     },
     "localname": "LegacyQuanergySharesMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_LegacyQuanergySharesWithExchangeRatioEffectMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legacy Quanergy Shares With Exchange Ratio Effect [Member]"
       }
      }
     },
     "localname": "LegacyQuanergySharesWithExchangeRatioEffectMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_LiquidityAndCapitalResourcesPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Liquidity and capital resources.",
        "label": "Liquidity And Capital Resources [Policy Text Block]",
        "terseLabel": "Liquidity and Capital Resources"
       }
      }
     },
     "localname": "LiquidityAndCapitalResourcesPolicyTextBlock",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_MergerAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Merger Agreement [Member]",
        "label": "Merger Agreement [Member]"
       }
      }
     },
     "localname": "MergerAgreementMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_NetContributionFromBusinessCombinationAndPipeFinancing": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net Contribution From Business Combination And PIPE Financing.",
        "label": "Net Contribution From Business Combination And PIPE Financing",
        "totalLabel": "Net contributions from Business Combination and PIPE Financing"
       }
      }
     },
     "localname": "NetContributionFromBusinessCombinationAndPipeFinancing",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_NetLossPerShareAttributableToCommonStockholderBasicAndDiluted": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net loss per share attributable to common stockholder, basic and diluted",
        "label": "Net loss per share attributable to common stockholder, basic and diluted"
       }
      }
     },
     "localname": "NetLossPerShareAttributableToCommonStockholderBasicAndDiluted",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareSummaryOfBasicAndDilutedNetIncomeLossPerOrdinaryShareDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "ck0001794621_NetProceedsFromBusinessCombinationAndPipeFinancing": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsDetail": {
       "order": 1.0,
       "parentTag": "ck0001794621_NetContributionFromBusinessCombinationAndPipeFinancing",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net Proceeds From Business Combination And PIPE Financing.",
        "label": "Net Proceeds From Business Combination And PIPE Financing",
        "totalLabel": "Net cash from Business Combination and PIPE Financing"
       }
      }
     },
     "localname": "NetProceedsFromBusinessCombinationAndPipeFinancing",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_NewAccountingPronouncementsAdopted": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "New accounting pronouncements adopted.",
        "label": "New Accounting Pronouncements Adopted",
        "verboseLabel": "Recently Adopted Accounting Pronouncements"
       }
      }
     },
     "localname": "NewAccountingPronouncementsAdopted",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_NonCashInterestExpense": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 15.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Non cash interest expense.",
        "label": "Non Cash Interest Expense",
        "verboseLabel": "Non-cash interest expense"
       }
      }
     },
     "localname": "NonCashInterestExpense",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_NonCashLeaseExpense": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Non-cash lease expense.",
        "label": "Non Cash Lease Expense",
        "terseLabel": "Non-cash lease expense"
       }
      }
     },
     "localname": "NonCashLeaseExpense",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_NoncashBonusExpense": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Non-cash bonus expense.",
        "label": "Noncash Bonus Expense",
        "terseLabel": "Non-cash bonus expense"
       }
      }
     },
     "localname": "NoncashBonusExpense",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_NumberOfCommonStockWarrantsIssuedToRelatedParties": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of common stock warrants issued to related parties.",
        "label": "Number Of Common Stock Warrants Issued To Related Parties",
        "verboseLabel": "Number Of Common Stock Warrants Issued To Related Parties"
       }
      }
     },
     "localname": "NumberOfCommonStockWarrantsIssuedToRelatedParties",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_NumberOfConsecutiveTradingDaysForDeterminingTheSharePrice": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of consecutive trading days for determining the share price.",
        "label": "Number Of Consecutive Trading Days For Determining The Share Price",
        "terseLabel": "Number Of Consecutive Trading Days For Determining The Share Price",
        "verboseLabel": "Number of consecutive trading days for determining the share price"
       }
      }
     },
     "localname": "NumberOfConsecutiveTradingDaysForDeterminingTheSharePrice",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "ck0001794621_NumberOfDaysCommencingAfterTheClosingDateForDeterminingSharePrice": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of days commencing after the closing date for determining share price.",
        "label": "Number Of Days Commencing After The Closing Date For Determining Share Price",
        "verboseLabel": "Number Of Days Commencing After The Closing Date For Determining Share Price"
       }
      }
     },
     "localname": "NumberOfDaysCommencingAfterTheClosingDateForDeterminingSharePrice",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "ck0001794621_NumberOfRedemptionRightSharesReversed": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of redemption right shares reversed.",
        "label": "Number Of Redemption Right Shares Reversed",
        "terseLabel": "Number of Redemption Right Shares Reversed"
       }
      }
     },
     "localname": "NumberOfRedemptionRightSharesReversed",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_NumberOfSharesIssuedForBusinessCombinationAndPipeFinancing": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number Of Shares Issued For Business Combination And PIPE Financing.",
        "label": "Number Of Shares Issued For Business Combination And PIPE Financing",
        "terseLabel": "Total Shares from Business Combination and PIPE Financing"
       }
      }
     },
     "localname": "NumberOfSharesIssuedForBusinessCombinationAndPipeFinancing",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_NumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number Of Shares Of Common Stock Issued Immediately Following The Consummation Of The Business Combination.",
        "label": "Number Of Shares Of Common Stock Issued Immediately Following The Consummation Of The Business Combination [Line Items]"
       }
      }
     },
     "localname": "NumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationLineItems",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_NumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number Of Shares Of Common Stock Issued Immediately Following The Consummation Of The Business Combination.",
        "label": "Number Of Shares Of Common Stock Issued Immediately Following The Consummation Of The Business Combination [Table]"
       }
      }
     },
     "localname": "NumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationTable",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_NumberOfSharesOwnedByRelatedParty": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares owned by related party.",
        "label": "Number Of Shares Owned By Related Party",
        "verboseLabel": "Number of Shares Owned By Related party"
       }
      }
     },
     "localname": "NumberOfSharesOwnedByRelatedParty",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_NumberOfSharesSubscribedToPurchase": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares subscribed to purchase.",
        "label": "Number Of Shares Subscribed To Purchase",
        "terseLabel": "Number of shares subscribed to purchase"
       }
      }
     },
     "localname": "NumberOfSharesSubscribedToPurchase",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_NumberOfTradingDaysForDeterminingTheSharePrice": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of trading days for determining the share price.",
        "label": "Number Of Trading Days For Determining The Share Price",
        "terseLabel": "Number of trading days for determining the share price",
        "verboseLabel": "Number Of Trading Days For Determining The Share Price"
       }
      }
     },
     "localname": "NumberOfTradingDaysForDeterminingTheSharePrice",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "ck0001794621_NumberOfWarrantsHeldByARelatedParty": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of warrants held by a related party.",
        "label": "Number Of Warrants Held By A Related Party",
        "verboseLabel": "Number Of Warrants Held By A Related Party"
       }
      }
     },
     "localname": "NumberOfWarrantsHeldByARelatedParty",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_NumberOfWarrantsIssuedDuringPeriodSharesInExchangeForServicesOfRelatedParty": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of warrants issued during period shares in exchange for services of related party.",
        "label": "Number Of Warrants Issued During Period Shares In Exchange For Services Of Related Party",
        "verboseLabel": "Number Of Warrants Issued During Period Shares In Exchange For Services Of Related Party"
       }
      }
     },
     "localname": "NumberOfWarrantsIssuedDuringPeriodSharesInExchangeForServicesOfRelatedParty",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_NumberShareholdersOfTheCompany": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number shareholders of the company.",
        "label": "Number Shareholders Of The Company",
        "terseLabel": "Number Shareholders of the Company"
       }
      }
     },
     "localname": "NumberShareholdersOfTheCompany",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_OfferingCostInConnectionWithBusinessCombinationAndPipeFinancing": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Offering cost in connection with Business Combination and PIPE financing.",
        "label": "Offering Cost In Connection With Business Combination And PIPE Financing",
        "terseLabel": "Offering cost in connection with Business Combination and PIPE financing"
       }
      }
     },
     "localname": "OfferingCostInConnectionWithBusinessCombinationAndPipeFinancing",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_OperatingLeaseWeightedAverageDiscountRateAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operating lease weighted average discount rate.",
        "label": "Operating Lease Weighted Average Discount Rate [Abstract]",
        "verboseLabel": "Weighted average discount rate"
       }
      }
     },
     "localname": "OperatingLeaseWeightedAverageDiscountRateAbstract",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfSupplementalCashFlowInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_OperatingLeaseWeightedAverageRemainingLeaseTermAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operating lease weighted average remaining lease term.",
        "label": "Operating Lease Weighted Average Remaining Lease Term [Abstract]",
        "verboseLabel": "Weighted average lease term"
       }
      }
     },
     "localname": "OperatingLeaseWeightedAverageRemainingLeaseTermAbstract",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfSupplementalCashFlowInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_OtherAssetsNonCurrentDisclosureTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other assets non current disclosure.",
        "label": "Other Assets Non current Disclosure [Text Block]",
        "terseLabel": "Other Long-term Assets"
       }
      }
     },
     "localname": "OtherAssetsNonCurrentDisclosureTextBlock",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermAssets"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_OtherEmployeeRelatedLiabilitiesNonCurrent": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other employee-related liabilities, non current.",
        "label": "Other Employee Related Liabilities, Non Current",
        "verboseLabel": "Other employee-related liabilities, non current"
       }
      }
     },
     "localname": "OtherEmployeeRelatedLiabilitiesNonCurrent",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_OtherLiabilitiesCurrentDisclosureTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other liabilities current disclosure.",
        "label": "Other Liabilities Current Disclosure [Text Block]",
        "terseLabel": "Other Current Liabilities"
       }
      }
     },
     "localname": "OtherLiabilitiesCurrentDisclosureTextBlock",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_OtherLiabilitiesNonCurrentDisclosureTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other liabilities non current disclosure.",
        "label": "Other Liabilities Non current Disclosure [Text Block]",
        "terseLabel": "Other Long-term Liabilities"
       }
      }
     },
     "localname": "OtherLiabilitiesNonCurrentDisclosureTextBlock",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermLiabilities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_PaidInKindInterestAndAccruedInterestOnRepaymentOfNotes": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Paid in kind interest and accrued interest on repayment of notes.",
        "label": "Paid In Kind Interest And Accrued Interest On Repayment Of Notes",
        "negatedLabel": "Paid-in-kind interest and accrued interest on repayment of 2022 Notes"
       }
      }
     },
     "localname": "PaidInKindInterestAndAccruedInterestOnRepaymentOfNotes",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_PaymentForSettlementOfDebtOutstanding": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payment for settlement of debt outstanding.",
        "label": "Payment For Settlement Of Debt Outstanding",
        "terseLabel": "Payment for settlement of debt outstanding"
       }
      }
     },
     "localname": "PaymentForSettlementOfDebtOutstanding",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_PaymentOfAcquisitionRelatedFees": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payment Of Acquisition Related Fees.",
        "label": "Payment Of Acquisition Related Fees",
        "terseLabel": "Payment Of Acquisition Related Fees"
       }
      }
     },
     "localname": "PaymentOfAcquisitionRelatedFees",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_PaymentOfStockIssuanceCostsThroughEquity": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payment of stock issuance costs through equity",
        "label": "Payment Of Stock Issuance Costs Through Equity",
        "verboseLabel": "Offering costs paid in common stock"
       }
      }
     },
     "localname": "PaymentOfStockIssuanceCostsThroughEquity",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_PaymentOfTransactionCostsAndAdvisoryFees": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsDetail": {
       "order": 2.0,
       "parentTag": "ck0001794621_NetProceedsFromBusinessCombinationAndPipeFinancing",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payment Of Transaction Costs And Advisory Fees.",
        "label": "Payment Of Transaction Costs And Advisory Fees",
        "negatedLabel": "Less: transaction costs and advisory fees paid"
       }
      }
     },
     "localname": "PaymentOfTransactionCostsAndAdvisoryFees",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_PerSharePriceOfSubscribedShares": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Per share price of subscribed shares.",
        "label": "Per share Price Of Subscribed Shares",
        "terseLabel": "Per share price of subscribed shares"
       }
      }
     },
     "localname": "PerSharePriceOfSubscribedShares",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "ck0001794621_PercentageOfAverageTradingPriceToDetermineOtherValues": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average trading price to determine other values.",
        "label": "Percentage of average trading price to determine other values.",
        "terseLabel": "Percentage of average trading price to determine other values."
       }
      }
     },
     "localname": "PercentageOfAverageTradingPriceToDetermineOtherValues",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "ck0001794621_PercentageOfTheSharesWithRedemptionRights": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of the shares with redemption rights.",
        "label": "Percentage Of The Shares With Redemption Rights",
        "terseLabel": "Percentage of the shares with redemption rights"
       }
      }
     },
     "localname": "PercentageOfTheSharesWithRedemptionRights",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "pureItemType"
    },
    "ck0001794621_PercentagePriceUsedForDeterminingAverageClosingPrice": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage price used for determining average closing price.",
        "label": "Percentage Price Used For Determining Average Closing Price"
       }
      }
     },
     "localname": "PercentagePriceUsedForDeterminingAverageClosingPrice",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "pureItemType"
    },
    "ck0001794621_PipeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "PIPE [Member]"
       }
      }
     },
     "localname": "PipeMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_PipeSharesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "PIPE Shares [Member]",
        "terseLabel": "PIPE Shares [Member]"
       }
      }
     },
     "localname": "PipeSharesMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_PrepaidExpenseAndOtherAssetsCurrentDisclosureTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prepaid expense and other assets current disclosure.",
        "label": "Prepaid Expense And Other Assets Current Disclosure [Text Block]",
        "terseLabel": "Prepaid Expenses and Other Current Assets"
       }
      }
     },
     "localname": "PrepaidExpenseAndOtherAssetsCurrentDisclosureTextBlock",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PrepaidExpensesAndOtherCurrentAssets"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_PrepaidExpenseAndOtherAssetsCurrentTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prepaid expense and other assets current.",
        "label": "Prepaid Expense And Other Assets Current [Table Text Block]",
        "terseLabel": "Schedule of Prepaid Expenses and Other Assets Current"
       }
      }
     },
     "localname": "PrepaidExpenseAndOtherAssetsCurrentTableTextBlock",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PrepaidExpensesAndOtherCurrentAssetsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_PrepaidSensataLongTermServices": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermAssetsScheduleOfOtherLongTermAssetsDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_OtherAssetsNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prepaid sensata long term services",
        "label": "Prepaid Sensata Long Term Services",
        "terseLabel": "Sensata prepaid services"
       }
      }
     },
     "localname": "PrepaidSensataLongTermServices",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermAssetsScheduleOfOtherLongTermAssetsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_PrepaidSensataServices": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prepaid sensata services.",
        "label": "Prepaid Sensata Services",
        "terseLabel": "Sensata prepaid services",
        "verboseLabel": "Sensata prepaid services"
       }
      }
     },
     "localname": "PrepaidSensataServices",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_PrepaidSensataShortTermServices": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/PrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherAssetsCurrentDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_PrepaidExpenseAndOtherAssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prepaid sensata short term services",
        "label": "Prepaid Sensata Short Term Services",
        "terseLabel": "Sensata prepaid services"
       }
      }
     },
     "localname": "PrepaidSensataShortTermServices",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherAssetsCurrentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_PriorToBusinessCombinationMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prior to Business Combination [Member]"
       }
      }
     },
     "localname": "PriorToBusinessCombinationMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_PrivatePlacementWarrantMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Private Placement Warrant [Member]",
        "label": "Private Placement Warrant [Member]"
       }
      }
     },
     "localname": "PrivatePlacementWarrantMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_PrivatePlacementWarrantsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Private Placement Warrants [Member]",
        "label": "Private Placement Warrants [Member]"
       }
      }
     },
     "localname": "PrivatePlacementWarrantsMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfFairValueMeasurementsInputsDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfReconciliationOfChangesInFairValueDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockholdersEquityNoteWarrantsOrRightsDetail",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_PrivateWarrantsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Private Warrants [Member]",
        "label": "Private Warrants [Member]",
        "terseLabel": "Private Warrants [Member]"
       }
      }
     },
     "localname": "PrivateWarrantsMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInLevel3FairValueInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_ProceedsAllocatedToTheCommonStockWarrants": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeds allocated to the common stock warrants.",
        "label": "Proceeds Allocated To The Common Stock Warrants",
        "verboseLabel": "Proceeds allocated to the common stock warrants"
       }
      }
     },
     "localname": "ProceedsAllocatedToTheCommonStockWarrants",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_ProceedsFromBusinessCombinationAndPipeFinancing": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeds from business combination and PIPE financing.",
        "label": "Proceeds From Business Combination And PIPE Financing",
        "verboseLabel": "Proceeds from Business Combination and PIPE financing"
       }
      }
     },
     "localname": "ProceedsFromBusinessCombinationAndPipeFinancing",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_ProceedsFromDrawDownOnGemAgreement": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeds from draw down on GEM agreement",
        "label": "Proceeds from draw down on GEM agreement",
        "terseLabel": "Proceeds from draw down on GEM Agreement"
       }
      }
     },
     "localname": "ProceedsFromDrawDownOnGemAgreement",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_ProceedsFromRelatedPartyPipeFinancing": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeds from related party PIPE financing.",
        "label": "Proceeds From Related Party PIPE Financing",
        "verboseLabel": "Related party proceeds from PIPE financing"
       }
      }
     },
     "localname": "ProceedsFromRelatedPartyPipeFinancing",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_ProceedsFromShareSubscriptionFacilityProvidedByBusinessAcquired": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeds from share subscription facility provided by business acquired.",
        "label": "Proceeds From Share Subscription Facility Provided By Business Acquired",
        "terseLabel": "Proceeds from share subscription facility provided by business acquired"
       }
      }
     },
     "localname": "ProceedsFromShareSubscriptionFacilityProvidedByBusinessAcquired",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_PublicWarrantsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Public Warrants [Member].",
        "label": "Public Warrants [Member]",
        "terseLabel": "Public Warrants [Member]"
       }
      }
     },
     "localname": "PublicWarrantsMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockholdersEquityNoteWarrantsOrRightsDetail",
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_QuanergyCommonStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Quanergy common stock.",
        "label": "Quanergy Common Stock [Member]"
       }
      }
     },
     "localname": "QuanergyCommonStockMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_QuanergySystemsIncMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Quanergy Systems, Inc [Member]",
        "label": "Quanergy Systems, Inc [Member]",
        "terseLabel": "Quanergy Systems, Inc [Member]"
       }
      }
     },
     "localname": "QuanergySystemsIncMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_RelatedPartyDebtAccruedInterest": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Related party debt accrued interest.",
        "label": "Related Party Debt Accrued Interest",
        "verboseLabel": "Related Party Debt Accrued Interest"
       }
      }
     },
     "localname": "RelatedPartyDebtAccruedInterest",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_RelatedPartyInvestmentInTheInitialClosingOfTheOfferingOfConvertiblePreferredStock": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Related party investment in the initial closing of the offering of convertible preferred stock.",
        "label": "Related Party Investment In The Initial Closing Of The Offering Of Convertible Preferred Stock",
        "verboseLabel": "Related Party Investment In The Initial Closing Of The Offering Of Convertible Preferred Stock"
       }
      }
     },
     "localname": "RelatedPartyInvestmentInTheInitialClosingOfTheOfferingOfConvertiblePreferredStock",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_RelatedPartyMergerRelatedExpensesAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Related party merger related expenses amount.",
        "label": "Related Party Merger Related Expenses Amount",
        "verboseLabel": "Related Party Merger Related Expenses Amount"
       }
      }
     },
     "localname": "RelatedPartyMergerRelatedExpensesAmount",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_RelatedPartyPrivatePlacementWarrantsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Related party private placement warrants.",
        "label": "Related Party Private Placement Warrants [Member]"
       }
      }
     },
     "localname": "RelatedPartyPrivatePlacementWarrantsMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_RelatedPartyRestrictedStockUnitsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Related party restricted stock units.",
        "label": "Related Party Restricted Stock Units [Member]"
       }
      }
     },
     "localname": "RelatedPartyRestrictedStockUnitsMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_RetentionBonusExpense": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Retention bonus expense",
        "label": "Retention Bonus Expense",
        "terseLabel": "Retention bonus expense"
       }
      }
     },
     "localname": "RetentionBonusExpense",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_ReverseRecapitalizationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reverse Recapitalization.",
        "label": "Reverse Recapitalization [Abstract]"
       }
      }
     },
     "localname": "ReverseRecapitalizationAbstract",
     "nsuri": "http://quanergy.com/20220630",
     "xbrltype": "stringItemType"
    },
    "ck0001794621_ReverseRecapitalizationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reverse Recapitalization.",
        "label": "Reverse Recapitalization [Line Items]"
       }
      }
     },
     "localname": "ReverseRecapitalizationLineItems",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_ReverseRecapitalizationTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reverse Recapitalization.",
        "label": "Reverse Recapitalization [Table]"
       }
      }
     },
     "localname": "ReverseRecapitalizationTable",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_ReverseRecapitalizationTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reverse Recapitalization.",
        "label": "Reverse Recapitalization [Text Block]",
        "terseLabel": "Reverse Recapitalization"
       }
      }
     },
     "localname": "ReverseRecapitalizationTextBlock",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalization"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_RightExercisedToRedeemSharesForCashAtRedemption": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Right exercised to redeem shares for cash at redemption.",
        "label": "Right Exercised To Redeem Shares For Cash At Redemption",
        "terseLabel": "Right exercised to redeem shares for cash at redemption"
       }
      }
     },
     "localname": "RightExercisedToRedeemSharesForCashAtRedemption",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_RightExercisedToRedeemSharesForCashAtRedemptionPricePerShare": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Right exercised to redeem shares for cash at redemption price per share.",
        "label": "Right Exercised To Redeem Shares For Cash At Redemption Price Per Share",
        "terseLabel": "Right exercised to redeem shares for cash at redemption price per share"
       }
      }
     },
     "localname": "RightExercisedToRedeemSharesForCashAtRedemptionPricePerShare",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "ck0001794621_RightOfUseAssetsNonCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermAssetsScheduleOfOtherLongTermAssetsDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_OtherAssetsNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Right of use assets non current.",
        "label": "Right Of Use Assets Non Current",
        "terseLabel": "ROU asset"
       }
      }
     },
     "localname": "RightOfUseAssetsNonCurrent",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermAssetsScheduleOfOtherLongTermAssetsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_ScheduleOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule Of Business Acquisition Elements Reconciled To Consolidated Financial Statements.",
        "label": "Schedule Of Business Acquisition Elements Reconciled To Consolidated Financial Statements [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsLineItems",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_ScheduleOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule Of Business Acquisition Elements Reconciled To Consolidated Financial Statements.",
        "label": "Schedule Of Business Acquisition Elements Reconciled To Consolidated Financial Statements [Table]"
       }
      }
     },
     "localname": "ScheduleOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsTable",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_ScheduleOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule Of Business Acquisition Elements Reconciled To Consolidated Financial Statements.",
        "label": "Schedule Of Business Acquisition Elements Reconciled To Consolidated Financial Statements [Table Text Block]",
        "verboseLabel": "Summary of Business Acquisition Elements Reconciled To Consolidated Financial Statements"
       }
      }
     },
     "localname": "ScheduleOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsTableTextBlock",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_ScheduleOfInterestExpenseTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of interest expense.",
        "label": "Schedule Of Interest Expense [Table Text Block]",
        "verboseLabel": "Schedule Of Interest Expense"
       }
      }
     },
     "localname": "ScheduleOfInterestExpenseTableTextBlock",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_ScheduleOfNumberOfLegacyQuanergySharesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule Of Number Of Legacy Quanergy Shares.",
        "label": "Schedule Of Number Of Legacy Quanergy Shares [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfNumberOfLegacyQuanergySharesLineItems",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_ScheduleOfNumberOfLegacyQuanergySharesTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule Of Number Of Legacy Quanergy Shares.",
        "label": "Schedule Of Number Of Legacy Quanergy Shares [Table]"
       }
      }
     },
     "localname": "ScheduleOfNumberOfLegacyQuanergySharesTable",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_ScheduleOfNumberOfLegacyQuanergySharesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule Of Number Of Legacy Quanergy Shares.",
        "label": "Schedule Of Number Of Legacy Quanergy Shares [Table Text Block]",
        "terseLabel": "Summary of Number of Legacy Quanergy Shares"
       }
      }
     },
     "localname": "ScheduleOfNumberOfLegacyQuanergySharesTableTextBlock",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_ScheduleOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule Of Number Of Shares Of Common Stock Issued Immediately Following The Consummation Of The Business Combination.",
        "label": "Schedule Of Number Of Shares Of Common Stock Issued Immediately Following The Consummation Of The Business Combination [Table Text Block]",
        "terseLabel": "Summary of Number of Shares of Common Stock Issued Immediately Following The Consummation of The Business Combination"
       }
      }
     },
     "localname": "ScheduleOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationTableTextBlock",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_ScheduleOfOperatingLeaseWeightedAverageRemainingLeaseTermAndInterestRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of Operating Lease Weighted Average Remaining Lease Term And Interest Rate",
        "label": "Schedule of Operating Lease Weighted Average Remaining Lease Term And Interest Rate",
        "terseLabel": "Summary of weighted average remaining lease term and interest rate"
       }
      }
     },
     "localname": "ScheduleOfOperatingLeaseWeightedAverageRemainingLeaseTermAndInterestRate",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_ScheduleOfShareBasedCompensationRestrictedStockAndRestrictedStockUnitsActivityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of share based compensation restricted stock and restricted stock units activity.",
        "label": "Schedule Of Share Based Compensation Restricted Stock And Restricted Stock Units Activity [Abstract]"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationRestrictedStockAndRestrictedStockUnitsActivityAbstract",
     "nsuri": "http://quanergy.com/20220630",
     "xbrltype": "stringItemType"
    },
    "ck0001794621_ScheduleOfShareBasedCompensationRestrictedStockAndRestrictedStockUnitsActivityLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of share based compensation restricted stock and restricted stock units activity.",
        "label": "Schedule Of Share Based Compensation Restricted Stock And Restricted Stock Units Activity [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationRestrictedStockAndRestrictedStockUnitsActivityLineItems",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementRestrictedStockAndRestrictedStockUnitActivityDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_ScheduleOfShareBasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of share based compensation restricted stock and restricted stock units activity.",
        "label": "Schedule Of Share Based Compensation Restricted Stock And Restricted Stock Units Activity [Table]"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTable",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementRestrictedStockAndRestrictedStockUnitActivityDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_ScheduleOfShareBasedCompensationStockOptionsActivityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of share based compensation stock options activity.",
        "label": "Schedule Of Share Based Compensation Stock Options Activity [Abstract]"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationStockOptionsActivityAbstract",
     "nsuri": "http://quanergy.com/20220630",
     "xbrltype": "stringItemType"
    },
    "ck0001794621_SensataTechnologyIncMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sensata technology, inc.",
        "label": "Sensata Technology Inc [Member]"
       }
      }
     },
     "localname": "SensataTechnologyIncMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_SensataWarrantsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sensata warrants",
        "label": "Sensata Warrants [Member]",
        "verboseLabel": "Sensata Warrants [Member]"
       }
      }
     },
     "localname": "SensataWarrantsMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_SeriesAConvertiblePreferredStockMemberMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Series A convertible preferred stock.",
        "label": "Series A Convertible Preferred Stock (Member) [Member]",
        "terseLabel": "Series A Convertible Preferred Stock (Legacy Quanergy) [Member]"
       }
      }
     },
     "localname": "SeriesAConvertiblePreferredStockMemberMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockByClassDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_SeriesAPlusConvertiblePreferredStockLegacyQuanergyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Series A plus convertible preferred stock (legacy quanergy).",
        "label": "Series A Plus Convertible Preferred Stock (Legacy Quanergy) [Member]",
        "terseLabel": "Series A Plus Convertible Preferred Stock (Legacy Quanergy) [Member]"
       }
      }
     },
     "localname": "SeriesAPlusConvertiblePreferredStockLegacyQuanergyMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockByClassDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_SeriesBConvertiblePreferredStockLegacyQuanergyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Series B convertible preferred stock (legacy quanergy).",
        "label": "Series B Convertible Preferred Stock (Legacy Quanergy) [Member]",
        "terseLabel": "Series B Convertible Preferred Stock (Legacy Quanergy) [Member]"
       }
      }
     },
     "localname": "SeriesBConvertiblePreferredStockLegacyQuanergyMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockByClassDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_SeriesCConvertiblePreferredStockLegacyQuanergyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Series C convertible preferred stock (legacy quanergy).",
        "label": "Series C Convertible Preferred Stock (Legacy Quanergy) [Member]",
        "terseLabel": "Series C Convertible Preferred Stock (Legacy Quanergy) [Member]"
       }
      }
     },
     "localname": "SeriesCConvertiblePreferredStockLegacyQuanergyMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockByClassDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_SeriesSeedConvertiblePreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Series seed convertible preferred stock.",
        "label": "Series Seed Convertible Preferred Stock [Member]",
        "terseLabel": "Series Seed Convertible Preferred Stock (Legacy Quanergy) [Member]"
       }
      }
     },
     "localname": "SeriesSeedConvertiblePreferredStockMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockByClassDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_SeriesSeedTwoConvertiblePreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Series seed two convertible preferred stock.",
        "label": "Series Seed Two Convertible Preferred Stock [Member]",
        "terseLabel": "Series\u00a0Seed-2\u00a0Convertible Preferred Stock (Legacy Quanergy) [Member]"
       }
      }
     },
     "localname": "SeriesSeedTwoConvertiblePreferredStockMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockByClassDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsFairValueOfUnitsGrantedToRelatedParty": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share based compensation arrangement by share based payment award equity instruments other than options fair value of units granted to related party.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Fair Value Of Units Granted To Related Party",
        "verboseLabel": "Aggregate fair value of units granted to related parties"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsFairValueOfUnitsGrantedToRelatedParty",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodToRelatedParty": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share based compensation arrangement by share based payment award equity instruments other than options grants in period to related party.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Grants In Period To Related Party",
        "verboseLabel": "Number of units granted to related parties"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodToRelatedParty",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_ShareBasedPaymentAwardCumulativeAnnualIncreasePercentageOfCommonStockOnInitialShareReserve": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share based payment award cumulative annual increase percentage of common stock on initial share reserve.",
        "label": "Share Based Payment Award Cumulative Annual Increase Percentage of Common Stock On Initial Share Reserve",
        "verboseLabel": "Share based payment award cumulative annual increase percentage"
       }
      }
     },
     "localname": "ShareBasedPaymentAwardCumulativeAnnualIncreasePercentageOfCommonStockOnInitialShareReserve",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "ck0001794621_ShareBasedPaymentAwardCumulativeAnnualIncreasePercentageOfFullyDilutedCommonStock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share based payment award cumulative annual increase percentage of fully diluted common stock .",
        "label": "Share Based Payment Award Cumulative Annual Increase Percentage of Fully Diluted Common Stock",
        "verboseLabel": "Share based payment award cumulative annual increase percentage of fully diluted Common Stock"
       }
      }
     },
     "localname": "ShareBasedPaymentAwardCumulativeAnnualIncreasePercentageOfFullyDilutedCommonStock",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "ck0001794621_SharePriceEqualOrExceedsEighteenRupeesPerDollarMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share price equal or exceeds eighteen rupees per dollar.",
        "label": "Share Price Equal or Exceeds Eighteen Rupees Per Dollar [Member]"
       }
      }
     },
     "localname": "SharePriceEqualOrExceedsEighteenRupeesPerDollarMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_SharePriceEqualsOrExceedsTwelveDollarPerShareMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share price equals or exceeds twelve dollar per share.",
        "label": "Share Price Equals Or Exceeds Twelve Dollar Per Share [Member]"
       }
      }
     },
     "localname": "SharePriceEqualsOrExceedsTwelveDollarPerShareMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_ShareSettledForwardAssetMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share settled forward asset member",
        "label": "Share Settled Forward Asset [Member]",
        "terseLabel": "Share settled forward [Member]"
       }
      }
     },
     "localname": "ShareSettledForwardAssetMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_SharesIssuedEventAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shares Issued Event [Axis]"
       }
      }
     },
     "localname": "SharesIssuedEventAxis",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_SharesIssuedEventDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shares Issued Event [Domain]"
       }
      }
     },
     "localname": "SharesIssuedEventDomain",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_SharesIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shares Issued Immediately following the consummation of the Business Combination [Member]"
       }
      }
     },
     "localname": "SharesIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_SharesIssuedUponDrawDownOfGemAgreement": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Shares Issued Upon Draw Down Of GEM Agreement",
        "label": "Shares Issued Upon Draw Down Of GEM Agreement, Shares",
        "terseLabel": "Shares issued upon draw down of GEM agreement",
        "verboseLabel": "Shares issued upon draw down of GEM agreement, shares"
       }
      }
     },
     "localname": "SharesIssuedUponDrawDownOfGemAgreement",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_SharesIssuedUponDrawDownOfGemAgreementAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Shares Issued Upon Draw Down Of GEM Agreement Amount",
        "label": "Shares Issued Upon Draw Down Of GEM Agreement Amount",
        "verboseLabel": "Shares issued upon draw down of GEM agreement"
       }
      }
     },
     "localname": "SharesIssuedUponDrawDownOfGemAgreementAmount",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_SharesReturnUnderDrawDownAgreement": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Shares return under draw down agreement.",
        "label": "Shares Return Under Draw Down Agreement",
        "terseLabel": "Shares return under draw down agreement"
       }
      }
     },
     "localname": "SharesReturnUnderDrawDownAgreement",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_SharesSettledForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Shares settled forward",
        "label": "Shares settled forward",
        "terseLabel": "Share-settled forward"
       }
      }
     },
     "localname": "SharesSettledForward",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherAssetsCurrentDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_SignificantAccountingPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Significant accounting.",
        "label": "Significant Accounting [Policy Text Block]",
        "verboseLabel": "Summary of Significant Accounting Policies"
       }
      }
     },
     "localname": "SignificantAccountingPolicyTextBlock",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ck0001794621_StockIssuedDuringPeriodPipeSharesNewIssues": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock issued during period, PIPE shares, new issues.",
        "label": "Stock Issued During Period, PIPE Shares, New Issues"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodPipeSharesNewIssues",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_StockIssuedDuringPeriodSharesToReimburseARelatedPartyForMergerRelatedExpenses": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock issued during period shares to reimburse a related party for merger related expenses.",
        "label": "Stock Issued During Period Shares To Reimburse A Related Party For Merger related Expenses",
        "verboseLabel": "Stock Issued During Period Shares To Reimburse A Related Party For Merger related Expenses"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesToReimburseARelatedPartyForMergerRelatedExpenses",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_StockIssuedDuringPeriodSharesWarrantsExercised": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock Issued During Period Shares Warrants Exercised.",
        "label": "Stock Issued During Period Shares Warrants Exercised",
        "terseLabel": "Shares issued upon exercise of common stock warrants - 2021"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesWarrantsExercised",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_StockIssuedUponExerciseOfCommonStockWarrants": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Shares issued upon exercise of common stock warrants.",
        "label": "Stock Issued Upon Exercise Of Common Stock Warrants",
        "terseLabel": "Shares issued upon exercise of common stock warrants"
       }
      }
     },
     "localname": "StockIssuedUponExerciseOfCommonStockWarrants",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_StockIssuedUponExerciseOfCommonStockWarrantsShares": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Shares issued upon exercise of common stock warrants, shares.",
        "label": "Stock Issued Upon Exercise Of Common Stock Warrants Shares",
        "terseLabel": "Shares issued upon exercise of common stock warrants, shares"
       }
      }
     },
     "localname": "StockIssuedUponExerciseOfCommonStockWarrantsShares",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "ck0001794621_StockOptionsAndRsusIssuedAndOutstandingMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock options and RSUs issued and outstanding [Member]"
       }
      }
     },
     "localname": "StockOptionsAndRsusIssuedAndOutstandingMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_SubscriptionAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subscription Agreement [Member]"
       }
      }
     },
     "localname": "SubscriptionAgreementMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_TheExtensionNotesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The extension notes.",
        "label": "The Extension Notes [Member]"
       }
      }
     },
     "localname": "TheExtensionNotesMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_ThousandAndTwentyThreeNotesEmbeddedDerivativeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Thousand and twenty three notes embedded derivative.",
        "label": "Thousand And Twenty Three Notes Embedded Derivative [Member]",
        "terseLabel": "2023 Notes embedded derivative [Member]"
       }
      }
     },
     "localname": "ThousandAndTwentyThreeNotesEmbeddedDerivativeMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsSummaryOfEstimatedFairValueOfThe2022And2023NotesEmbeddedDerivativeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_ThousandAndTwentyTwoNotesEmbeddedDerivativeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Thousand and twenty two notes embedded derivative.",
        "label": "Thousand And Twenty Two Notes Embedded Derivative [Member]",
        "terseLabel": "2022 Notes embedded derivative [Member]"
       }
      }
     },
     "localname": "ThousandAndTwentyTwoNotesEmbeddedDerivativeMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsSummaryOfEstimatedFairValueOfThe2022And2023NotesEmbeddedDerivativeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_TransactionFeePayableNonCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermLiabilitiesScheduleOfOtherNonCurrentLiabilitiesDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_OtherLiabilitiesNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Transaction fee payable non current.",
        "label": "Transaction Fee Payable Non current",
        "terseLabel": "Transaction fees payable"
       }
      }
     },
     "localname": "TransactionFeePayableNonCurrent",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermLiabilitiesScheduleOfOtherNonCurrentLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_TransactionFeesPayable": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherLiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Transaction fees payable",
        "label": "Transaction fees payable"
       }
      }
     },
     "localname": "TransactionFeesPayable",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_TriggeringEventAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Triggering event.",
        "label": "Triggering Event [Axis]"
       }
      }
     },
     "localname": "TriggeringEventAxis",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_TriggeringEventDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Triggering event.",
        "label": "Triggering Event [Domain]"
       }
      }
     },
     "localname": "TriggeringEventDomain",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_TwoThousandAndThirteenEquityIncentivePlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two thousand and thirteen equity incentive plan.",
        "label": "Two Thousand and Thirteen Equity Incentive Plan [Member]"
       }
      }
     },
     "localname": "TwoThousandAndThirteenEquityIncentivePlanMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_TwoThousandAndTwentyThreeNotesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand And Twenty Three Notes [Member]",
        "terseLabel": "2023 Notes (Member)"
       }
      }
     },
     "localname": "TwoThousandAndTwentyThreeNotesMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_TwoThousandAndTwentyThreeNotesWarrantsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two thousand and twenty three notes warrants.",
        "label": "Two Thousand And Twenty Three Notes Warrants [Member]",
        "verboseLabel": "2023 Notes Warrants [Member]"
       }
      }
     },
     "localname": "TwoThousandAndTwentyThreeNotesWarrantsMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockholdersEquityNoteWarrantsOrRightsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_TwoThousandAndTwentyTwoEquityIncentivePlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two thousand and twenty two equity incentive plan",
        "label": "Two Thousand and Twenty Two Equity Incentive Plan [Member]"
       }
      }
     },
     "localname": "TwoThousandAndTwentyTwoEquityIncentivePlanMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_TwoThousandTwentyThreeExtensionNotesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two thousand twenty three extension notes.",
        "label": "Two Thousand Twenty Three Extension Notes [Member]",
        "terseLabel": "2023 Extension Notes [Member]"
       }
      }
     },
     "localname": "TwoThousandTwentyThreeExtensionNotesMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_TwoThousandTwentyThreeInitialNotesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two thousand twenty three initial notes.",
        "label": "Two Thousand Twenty Three Initial Notes [Member]",
        "terseLabel": "2023 Initial Notes [Member]"
       }
      }
     },
     "localname": "TwoThousandTwentyThreeInitialNotesMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_TwoThousandTwentyThreeNotesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two thousand twenty three notes.",
        "label": "Two Thousand Twenty Three Notes [Member]",
        "terseLabel": "2023 Notes [Member]"
       }
      }
     },
     "localname": "TwoThousandTwentyThreeNotesMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_TwoThousandTwentyTwoNotesAndTwoThousandTwentyThreeNotesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two thousand twenty two notes and two thousand twenty three notes.",
        "label": "Two Thousand Twenty Two Notes And Two Thousand Twenty Three Notes [Member]"
       }
      }
     },
     "localname": "TwoThousandTwentyTwoNotesAndTwoThousandTwentyThreeNotesMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsScheduleOfInterestExpenseDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_TwoThousandTwentyTwoNotesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two thousand twenty two notes.",
        "label": "Two Thousand Twenty Two Notes [Member]",
        "terseLabel": "2022 Notes [Member]"
       }
      }
     },
     "localname": "TwoThousandTwentyTwoNotesMember",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ck0001794621_UnpaidOfferingCosts": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unpaid offering costs.",
        "label": "Unpaid Offering Costs",
        "terseLabel": "Unpaid offering costs"
       }
      }
     },
     "localname": "UnpaidOfferingCosts",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_ValueOfSubscribedShares": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of subscribed shares.",
        "label": "Value Of Subscribed Shares",
        "terseLabel": "Value of subscribed shares"
       }
      }
     },
     "localname": "ValueOfSubscribedShares",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_VendorContractLiability": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Vendor contract liability.",
        "label": "Vendor Contract Liability",
        "verboseLabel": "Vendor contract liability"
       }
      }
     },
     "localname": "VendorContractLiability",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_WarrantExercisablePercent": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Warrant exercisable , percent",
        "label": "Warrant exercisable , percent",
        "terseLabel": "Warrant exercisable , percent"
       }
      }
     },
     "localname": "WarrantExercisablePercent",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "ck0001794621_WarrantsAndRightsOutstandingExpirationDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Warrants and rights outstanding expiration date.",
        "label": "Warrants And Rights Outstanding Expiration Date",
        "terseLabel": "Expiration"
       }
      }
     },
     "localname": "WarrantsAndRightsOutstandingExpirationDate",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockholdersEquityNoteWarrantsOrRightsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_WarrantsAndRightsOutstandingExpirePeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Warrants and rights outstanding, expire period.",
        "label": "Warrants and Rights Outstanding, Expire Period",
        "terseLabel": "Warrants and rights outstanding, expire period"
       }
      }
     },
     "localname": "WarrantsAndRightsOutstandingExpirePeriod",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ck0001794621_WarrantsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Warrants Fair Value Disclosure.",
        "label": "Warrants Fair Value Disclosure"
       }
      }
     },
     "localname": "WarrantsFairValueDisclosure",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_WarrantsIssued": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Warrants issued.",
        "label": "Warrants issued"
       }
      }
     },
     "localname": "WarrantsIssued",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_WarrantsPayableInCash": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Warrants payable in cash.",
        "label": "Warrants Payable In Cash"
       }
      }
     },
     "localname": "WarrantsPayableInCash",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ck0001794621_WeightedAverageNumberOfSharesOutstandingBasicAndDiluted": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted Average Number Of Shares Outstanding Basic And Diluted.",
        "label": "Weighted Average Number Of Shares Outstanding Basic And Diluted",
        "verboseLabel": "Weighted average shares of common stock outstanding, basic and diluted"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingBasicAndDiluted",
     "nsuri": "http://quanergy.com/20220630",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareSummaryOfBasicAndDilutedNetIncomeLossPerOrdinaryShareDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "dei_AmendmentFlag": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission.",
        "label": "Amendment Flag",
        "terseLabel": "Amendment Flag"
       }
      }
     },
     "localname": "AmendmentFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_CityAreaCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Area code of city",
        "label": "City Area Code",
        "terseLabel": "City Area Code"
       }
      }
     },
     "localname": "CityAreaCode",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_CoverAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cover page.",
        "label": "Cover [Abstract]"
       }
      }
     },
     "localname": "CoverAbstract",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "xbrltype": "stringItemType"
    },
    "dei_CurrentFiscalYearEndDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "End date of current fiscal year in the format --MM-DD.",
        "label": "Current Fiscal Year End Date",
        "terseLabel": "Current Fiscal Year End Date"
       }
      }
     },
     "localname": "CurrentFiscalYearEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "gMonthDayItemType"
    },
    "dei_DocumentFiscalPeriodFocus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3.  1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY.",
        "label": "Document Fiscal Period Focus",
        "terseLabel": "Document Fiscal Period Focus"
       }
      }
     },
     "localname": "DocumentFiscalPeriodFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "fiscalPeriodItemType"
    },
    "dei_DocumentFiscalYearFocus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006.",
        "label": "Document Fiscal Year Focus",
        "terseLabel": "Document Fiscal Year Focus"
       }
      }
     },
     "localname": "DocumentFiscalYearFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "gYearItemType"
    },
    "dei_DocumentPeriodEndDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period.  The format of the date is YYYY-MM-DD.",
        "label": "Document Period End Date",
        "terseLabel": "Document Period End Date"
       }
      }
     },
     "localname": "DocumentPeriodEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "dateItemType"
    },
    "dei_DocumentQuarterlyReport": {
     "auth_ref": [
      "r601"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as an quarterly report.",
        "label": "Document Quarterly Report",
        "terseLabel": "Document Quarterly Report"
       }
      }
     },
     "localname": "DocumentQuarterlyReport",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentTransitionReport": {
     "auth_ref": [
      "r602"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as a transition report.",
        "label": "Document Transition Report"
       }
      }
     },
     "localname": "DocumentTransitionReport",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentType": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'.",
        "label": "Document Type",
        "terseLabel": "Document Type"
       }
      }
     },
     "localname": "DocumentType",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "submissionTypeItemType"
    },
    "dei_EntitiesTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Container to assemble all relevant information about each entity associated with the document instance",
        "label": "Entities [Table]",
        "terseLabel": "Entities [Table]"
       }
      }
     },
     "localname": "EntitiesTable",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "stringItemType"
    },
    "dei_EntityAddressAddressLine1": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name",
        "label": "Entity Address, Address Line One",
        "terseLabel": "Entity Address, Address Line One"
       }
      }
     },
     "localname": "EntityAddressAddressLine1",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressCityOrTown": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the City or Town",
        "label": "Entity Address, City or Town",
        "terseLabel": "Entity Address, City or Town"
       }
      }
     },
     "localname": "EntityAddressCityOrTown",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressPostalZipCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Code for the postal or zip code",
        "label": "Entity Address, Postal Zip Code",
        "terseLabel": "Entity Address, Postal Zip Code"
       }
      }
     },
     "localname": "EntityAddressPostalZipCode",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressStateOrProvince": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the state or province.",
        "label": "Entity Address, State or Province"
       }
      }
     },
     "localname": "EntityAddressStateOrProvince",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "stateOrProvinceItemType"
    },
    "dei_EntityCentralIndexKey": {
     "auth_ref": [
      "r599"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK.",
        "label": "Entity Central Index Key",
        "terseLabel": "Entity Central Index Key"
       }
      }
     },
     "localname": "EntityCentralIndexKey",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "centralIndexKeyItemType"
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument.",
        "label": "Entity Common Stock, Shares Outstanding",
        "terseLabel": "Entity Common Stock, Shares Outstanding"
       }
      }
     },
     "localname": "EntityCommonStockSharesOutstanding",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "sharesItemType"
    },
    "dei_EntityCurrentReportingStatus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Current Reporting Status",
        "terseLabel": "Entity Current Reporting Status"
       }
      }
     },
     "localname": "EntityCurrentReportingStatus",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityEmergingGrowthCompany": {
     "auth_ref": [
      "r599"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate if registrant meets the emerging growth company criteria.",
        "label": "Entity Emerging Growth Company",
        "terseLabel": "Entity Emerging Growth Company"
       }
      }
     },
     "localname": "EntityEmergingGrowthCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityExTransitionPeriod": {
     "auth_ref": [
      "r611"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate if an emerging growth company has elected not to use the extended transition period for complying with any new or revised financial accounting standards.",
        "label": "Entity Ex Transition Period",
        "terseLabel": "Entity Ex Transition Period"
       }
      }
     },
     "localname": "EntityExTransitionPeriod",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityFileNumber": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commission file number. The field allows up to 17 characters. The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen.",
        "label": "Entity File Number",
        "terseLabel": "Entity File Number"
       }
      }
     },
     "localname": "EntityFileNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "fileNumberItemType"
    },
    "dei_EntityFilerCategory": {
     "auth_ref": [
      "r599"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Filer Category",
        "terseLabel": "Entity Filer Category"
       }
      }
     },
     "localname": "EntityFilerCategory",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "filerCategoryItemType"
    },
    "dei_EntityIncorporationStateCountryCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two-character EDGAR code representing the state or country of incorporation.",
        "label": "Entity Incorporation, State or Country Code"
       }
      }
     },
     "localname": "EntityIncorporationStateCountryCode",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "edgarStateCountryItemType"
    },
    "dei_EntityInformationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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.",
        "label": "Entity Information [Line Items]",
        "terseLabel": "Entity Information [Line Items]"
       }
      }
     },
     "localname": "EntityInformationLineItems",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "stringItemType"
    },
    "dei_EntityInteractiveDataCurrent": {
     "auth_ref": [
      "r610"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files).",
        "label": "Entity Interactive Data Current",
        "terseLabel": "Entity Interactive Data Current"
       }
      }
     },
     "localname": "EntityInteractiveDataCurrent",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityRegistrantName": {
     "auth_ref": [
      "r599"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC.",
        "label": "Entity Registrant Name",
        "terseLabel": "Entity Registrant Name"
       }
      }
     },
     "localname": "EntityRegistrantName",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityShellCompany": {
     "auth_ref": [
      "r599"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act.",
        "label": "Entity Shell Company",
        "terseLabel": "Entity Shell Company"
       }
      }
     },
     "localname": "EntityShellCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntitySmallBusiness": {
     "auth_ref": [
      "r599"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC).",
        "label": "Entity Small Business",
        "terseLabel": "Entity Small Business"
       }
      }
     },
     "localname": "EntitySmallBusiness",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityTaxIdentificationNumber": {
     "auth_ref": [
      "r599"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS.",
        "label": "Entity Tax Identification Number"
       }
      }
     },
     "localname": "EntityTaxIdentificationNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "employerIdItemType"
    },
    "dei_LocalPhoneNumber": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Local phone number for entity.",
        "label": "Local Phone Number",
        "terseLabel": "Local Phone Number"
       }
      }
     },
     "localname": "LocalPhoneNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_Security12bTitle": {
     "auth_ref": [
      "r598"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Title of a 12(b) registered security.",
        "label": "Title of 12(b) Security",
        "terseLabel": "Title of 12(b) Security"
       }
      }
     },
     "localname": "Security12bTitle",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "securityTitleItemType"
    },
    "dei_SecurityExchangeName": {
     "auth_ref": [
      "r600"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the Exchange on which a security is registered.",
        "label": "Security Exchange Name",
        "terseLabel": "Security Exchange Name"
       }
      }
     },
     "localname": "SecurityExchangeName",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "edgarExchangeCodeItemType"
    },
    "dei_TradingSymbol": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Trading symbol of an instrument as listed on an exchange.",
        "label": "Trading Symbol",
        "terseLabel": "Trading Symbol"
       }
      }
     },
     "localname": "TradingSymbol",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage"
     ],
     "xbrltype": "tradingSymbolItemType"
    },
    "srt_AmericasMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Americas [Member]"
       }
      }
     },
     "localname": "AmericasMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/SegmentInformationAndGeographicInformationSummaryOfRevenueByGeographicalRegionDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_AsiaMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asia [Member]"
       }
      }
     },
     "localname": "AsiaMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/SegmentInformationAndGeographicInformationSummaryOfRevenueByGeographicalRegionDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MaximumMember": {
     "auth_ref": [
      "r216",
      "r217",
      "r218",
      "r219",
      "r241",
      "r285",
      "r324",
      "r326",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r514",
      "r563",
      "r566",
      "r595",
      "r596"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maximum [Member]"
       }
      }
     },
     "localname": "MaximumMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MinimumMember": {
     "auth_ref": [
      "r216",
      "r217",
      "r218",
      "r219",
      "r241",
      "r285",
      "r324",
      "r326",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r514",
      "r563",
      "r566",
      "r595",
      "r596"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minimum [Member]"
       }
      }
     },
     "localname": "MinimumMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ProductOrServiceAxis": {
     "auth_ref": [
      "r170",
      "r217",
      "r218",
      "r310",
      "r311",
      "r516",
      "r562",
      "r564"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Product and Service [Axis]",
        "terseLabel": "Product and Service [Axis]"
       }
      }
     },
     "localname": "ProductOrServiceAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ProductsAndServicesDomain": {
     "auth_ref": [
      "r170",
      "r217",
      "r218",
      "r310",
      "r311",
      "r516",
      "r562",
      "r564"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Product and Service [Domain]",
        "terseLabel": "Product and Service [Domain]"
       }
      }
     },
     "localname": "ProductsAndServicesDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RangeAxis": {
     "auth_ref": [
      "r209",
      "r216",
      "r217",
      "r218",
      "r219",
      "r241",
      "r285",
      "r313",
      "r324",
      "r326",
      "r357",
      "r358",
      "r359",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r514",
      "r563",
      "r566",
      "r595",
      "r596"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Axis]"
       }
      }
     },
     "localname": "RangeAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RangeMember": {
     "auth_ref": [
      "r209",
      "r216",
      "r217",
      "r218",
      "r219",
      "r241",
      "r285",
      "r313",
      "r324",
      "r326",
      "r357",
      "r358",
      "r359",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r514",
      "r563",
      "r566",
      "r595",
      "r596"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Domain]"
       }
      }
     },
     "localname": "RangeMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RestatementAdjustmentMember": {
     "auth_ref": [
      "r114",
      "r115",
      "r116",
      "r117",
      "r118",
      "r119",
      "r120",
      "r122",
      "r124",
      "r125",
      "r127",
      "r128",
      "r142",
      "r416",
      "r417"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision of Prior Period, Adjustment [Member]"
       }
      }
     },
     "localname": "RestatementAdjustmentMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RestatementAxis": {
     "auth_ref": [
      "r1",
      "r114",
      "r115",
      "r116",
      "r117",
      "r118",
      "r119",
      "r120",
      "r121",
      "r122",
      "r124",
      "r125",
      "r126",
      "r127",
      "r128",
      "r129",
      "r142",
      "r187",
      "r188",
      "r382",
      "r415",
      "r416",
      "r417",
      "r418",
      "r455",
      "r469",
      "r470",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision of Prior Period [Axis]"
       }
      }
     },
     "localname": "RestatementAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RestatementDomain": {
     "auth_ref": [
      "r1",
      "r114",
      "r115",
      "r116",
      "r117",
      "r118",
      "r119",
      "r120",
      "r121",
      "r122",
      "r124",
      "r125",
      "r126",
      "r127",
      "r128",
      "r129",
      "r142",
      "r187",
      "r188",
      "r382",
      "r415",
      "r416",
      "r417",
      "r418",
      "r455",
      "r469",
      "r470",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision of Prior Period [Domain]"
       }
      }
     },
     "localname": "RestatementDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScenarioPreviouslyReportedMember": {
     "auth_ref": [
      "r1",
      "r114",
      "r116",
      "r117",
      "r118",
      "r119",
      "r120",
      "r121",
      "r122",
      "r124",
      "r125",
      "r127",
      "r128",
      "r142",
      "r187",
      "r188",
      "r382",
      "r415",
      "r416",
      "r417",
      "r418",
      "r455",
      "r469",
      "r470",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Previously Reported [Member]"
       }
      }
     },
     "localname": "ScenarioPreviouslyReportedMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_SegmentGeographicalDomain": {
     "auth_ref": [
      "r171",
      "r172",
      "r310",
      "r312",
      "r565",
      "r586",
      "r587",
      "r588",
      "r589",
      "r590",
      "r591",
      "r592",
      "r593",
      "r594"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical [Domain]"
       }
      }
     },
     "localname": "SegmentGeographicalDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/SegmentInformationAndGeographicInformationSummaryOfRevenueByGeographicalRegionDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_StatementGeographicalAxis": {
     "auth_ref": [
      "r171",
      "r172",
      "r310",
      "r312",
      "r565",
      "r581",
      "r586",
      "r587",
      "r588",
      "r589",
      "r590",
      "r591",
      "r592",
      "r593",
      "r594"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical [Axis]"
       }
      }
     },
     "localname": "StatementGeographicalAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/SegmentInformationAndGeographicInformationSummaryOfRevenueByGeographicalRegionDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Abstract]"
       }
      }
     },
     "localname": "AccountingPoliciesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountsPayableCurrent": {
     "auth_ref": [
      "r40",
      "r480"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of liabilities incurred (and for which invoices have typically been received) and payable to vendors for goods and services received that are used in an entity's business. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Accounts Payable, Current",
        "terseLabel": "Accounts payable",
        "totalLabel": "Accounts Payable, Current, Total"
       }
      }
     },
     "localname": "AccountsPayableCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccountsReceivableNetCurrent": {
     "auth_ref": [
      "r176",
      "r177"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, of right to consideration from customer for product sold and service rendered in normal course of business, classified as current.",
        "label": "Accounts Receivable, after Allowance for Credit Loss, Current",
        "terseLabel": "Accounts receivable, net of allowance for doubtful accounts of $224 at June 30, 2022 and December 31, 2021",
        "totalLabel": "Accounts Receivable, after Allowance for Credit Loss, Current, Total"
       }
      }
     },
     "localname": "AccountsReceivableNetCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedBonusesCurrent": {
     "auth_ref": [
      "r43"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of obligations incurred and payable for incentive compensation awarded to employees and directors or earned by them based on the terms of one or more relevant arrangements. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Accrued Bonuses, Current",
        "verboseLabel": "Retention bonus current"
       }
      }
     },
     "localname": "AccruedBonusesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedBonusesCurrentAndNoncurrent": {
     "auth_ref": [
      "r535",
      "r556"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of obligations incurred and payable for incentive compensation awarded to employees and directors or earned by them based on the terms of one or more relevant arrangements.",
        "label": "Accrued Bonuses",
        "verboseLabel": "Retention bonus"
       }
      }
     },
     "localname": "AccruedBonusesCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedLiabilitiesCurrent": {
     "auth_ref": [
      "r43"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of obligations incurred and payable, pertaining to costs that are statutory in nature, are incurred on contractual obligations, or accumulate over time and for which invoices have not yet been received or will not be rendered. Examples include taxes, interest, rent and utilities. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Accrued Liabilities, Current",
        "terseLabel": "Accrued expenses",
        "totalLabel": "Accrued Liabilities, Current, Total"
       }
      }
     },
     "localname": "AccruedLiabilitiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedLiabilitiesCurrentAndNoncurrent": {
     "auth_ref": [
      "r535",
      "r556"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of obligations incurred and payable, pertaining to costs that are statutory in nature, are incurred on contractual obligations, or accumulate over time and for which invoices have not yet been received or will not be rendered. Examples include taxes, interest, rent and utilities.",
        "label": "Accrued Liabilities",
        "terseLabel": "Accrued expenses",
        "totalLabel": "Accrued Liabilities, Total"
       }
      }
     },
     "localname": "AccruedLiabilitiesCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment": {
     "auth_ref": [
      "r11",
      "r205"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated depreciation, depletion and amortization for physical assets used in the normal conduct of business to produce goods and services.",
        "label": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment",
        "negatedLabel": "Less: accumulated depreciation and amortization",
        "periodEndLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Ending Balance",
        "periodStartLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Beginning Balance",
        "totalLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Total"
       }
      }
     },
     "localname": "AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r25",
      "r56",
      "r57",
      "r58",
      "r551",
      "r572",
      "r576"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated change in equity from transactions and other events and circumstances from non-owner sources, net of tax effect, at period end. Excludes Net Income (Loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners. Includes foreign currency translation items, certain pension adjustments, unrealized gains and losses on certain investments in debt and equity securities, other than temporary impairment (OTTI) losses related to factors other than credit losses on available-for-sale and held-to-maturity debt securities that an entity does not intend to sell and it is not more likely than not that the entity will be required to sell before recovery of the amortized cost basis, as well as changes in the fair value of derivatives related to the effective portion of a designated cash flow hedge.",
        "label": "Accumulated Other Comprehensive Income (Loss), Net of Tax",
        "terseLabel": "Accumulated other comprehensive loss",
        "totalLabel": "Accumulated Other Comprehensive Income (Loss), Net of Tax, Total"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "auth_ref": [
      "r55",
      "r58",
      "r65",
      "r66",
      "r67",
      "r114",
      "r115",
      "r116",
      "r401",
      "r470",
      "r567",
      "r568"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated increase (decrease) in equity from transactions and other events and circumstances from non-owner sources, attributable to the parent. Excludes net income (loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners.",
        "label": "AOCI Attributable to Parent [Member]",
        "terseLabel": "Accumulated Other Comprehensive Loss [Member]"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdditionalPaidInCapital": {
     "auth_ref": [
      "r23",
      "r480"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of excess of issue price over par or stated value of stock and from other transaction involving stock or stockholder. Includes, but is not limited to, additional paid-in capital (APIC) for common and preferred stock.",
        "label": "Additional Paid in Capital",
        "terseLabel": "Additional paid-in capital",
        "totalLabel": "Additional Paid in Capital, Total"
       }
      }
     },
     "localname": "AdditionalPaidInCapital",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "auth_ref": [
      "r114",
      "r115",
      "r116",
      "r369",
      "r370",
      "r371",
      "r416"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Excess of issue price over par or stated value of the entity's capital stock and amounts received from other transactions involving the entity's stock or stockholders.",
        "label": "Additional Paid-in Capital [Member]",
        "terseLabel": "Additional Paid-in Capital [Member]"
       }
      }
     },
     "localname": "AdditionalPaidInCapitalMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue": {
     "auth_ref": [
      "r328",
      "r373",
      "r374"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase to additional paid-in capital (APIC) for recognition of cost for award under share-based payment arrangement.",
        "label": "APIC, Share-based Payment Arrangement, Increase for Cost Recognition, Total",
        "terseLabel": "Stock-based compensation",
        "totalLabel": "APIC, Share-Based Payment Arrangement, Increase for Cost Recognition, Total"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalWarrantIssued": {
     "auth_ref": [
      "r237",
      "r299",
      "r306"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in additional paid in capital (APIC) resulting from the issuance of warrants. Includes allocation of proceeds of debt securities issued with detachable stock purchase warrants.",
        "label": "Adjustments to Additional Paid in Capital, Warrant Issued",
        "terseLabel": "Issuance of common stock warrants",
        "verboseLabel": "Adjustments to Additional Paid in Capital, Warrant Issued"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalWarrantIssued",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "Adjustments to reconcile net loss to net cash used in operating activities:"
       }
      }
     },
     "localname": "AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "auth_ref": [
      "r362"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized.",
        "label": "Share-based Payment Arrangement, Expense",
        "terseLabel": "Stock-based compensation expense",
        "verboseLabel": "Expenses recognized on awards"
       }
      }
     },
     "localname": "AllocatedShareBasedCompensationExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementExpensedAndCapitalizedAmountDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent": {
     "auth_ref": [
      "r29",
      "r178",
      "r189"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of allowance for credit loss on accounts receivable, classified as current.",
        "label": "Accounts Receivable, Allowance for Credit Loss, Current",
        "terseLabel": "Accounts receivable, allowance for credit loss, current"
       }
      }
     },
     "localname": "AllowanceForDoubtfulAccountsReceivableCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AmortizationOfDebtDiscountPremium": {
     "auth_ref": [
      "r82",
      "r96",
      "r261",
      "r446"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of noncash expense included in interest expense to amortize debt discount and premium associated with the related debt instruments. Excludes amortization of financing costs. Alternate captions include noncash interest expense.",
        "label": "Amortization of Debt Discount (Premium)",
        "verboseLabel": "Accretion of debt discount"
       }
      }
     },
     "localname": "AmortizationOfDebtDiscountPremium",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsScheduleOfInterestExpenseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AmortizationOfFinancingCosts": {
     "auth_ref": [
      "r75",
      "r96",
      "r261",
      "r448"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of amortization expense attributable to debt issuance costs.",
        "label": "Amortization of Debt Issuance Costs",
        "verboseLabel": "Accretion of debt issuance costs"
       }
      }
     },
     "localname": "AmortizationOfFinancingCosts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsScheduleOfInterestExpenseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount": {
     "auth_ref": [
      "r139"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) or earnings per unit (EPU) in the future that were not included in the computation of diluted EPS or EPU because to do so would increase EPS or EPU amounts or decrease loss per share or unit amounts for the period presented.",
        "label": "Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount"
       }
      }
     },
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis": {
     "auth_ref": [
      "r139"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of antidilutive security.",
        "label": "Antidilutive Securities [Axis]"
       }
      }
     },
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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.",
        "label": "Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]"
       }
      }
     },
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AntidilutiveSecuritiesNameDomain": {
     "auth_ref": [
      "r139"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Incremental common shares attributable to securities that were not included in diluted earnings per share (EPS) because to do so would increase EPS amounts or decrease loss per share amounts for the period presented.",
        "label": "Antidilutive Securities, Name [Domain]"
       }
      }
     },
     "localname": "AntidilutiveSecuritiesNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AssetAtFairValueChangesInFairValueResultingFromChangesInAssumptions": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in fair value from changes in the assumptions or model used to calculate the fair value of a contract to service financial assets under which the benefits of servicing are expected to more than adequately compensate the servicer.",
        "label": "Asset at Fair Value, Changes in Fair Value Resulting from Changes in Assumptions",
        "terseLabel": "Change in fair value of the forward asset loss"
       }
      }
     },
     "localname": "AssetAtFairValueChangesInFairValueResultingFromChangesInAssumptions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Assets": {
     "auth_ref": [
      "r13",
      "r108",
      "r156",
      "r160",
      "r166",
      "r185",
      "r224",
      "r225",
      "r226",
      "r228",
      "r229",
      "r230",
      "r231",
      "r232",
      "r233",
      "r235",
      "r236",
      "r398",
      "r402",
      "r435",
      "r478",
      "r480",
      "r531",
      "r547"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are recognized. Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets",
        "totalLabel": "Total assets"
       }
      }
     },
     "localname": "Assets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets [Abstract]",
        "terseLabel": "Assets"
       }
      }
     },
     "localname": "AssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsCurrent": {
     "auth_ref": [
      "r6",
      "r39",
      "r108",
      "r185",
      "r224",
      "r225",
      "r226",
      "r228",
      "r229",
      "r230",
      "r231",
      "r232",
      "r233",
      "r235",
      "r236",
      "r398",
      "r402",
      "r435",
      "r478",
      "r480"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are expected to be realized in cash, sold, or consumed within one year (or the normal operating cycle, if longer). Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets, Current",
        "totalLabel": "Total current assets"
       }
      }
     },
     "localname": "AssetsCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsCurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets, Current [Abstract]",
        "terseLabel": "Current assets:"
       }
      }
     },
     "localname": "AssetsCurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "auth_ref": [
      "r419"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets, Fair Value Disclosure",
        "terseLabel": "Asset Fair Value",
        "totalLabel": "Assets, Fair Value Disclosure, Total",
        "verboseLabel": "Total assets"
       }
      }
     },
     "localname": "AssetsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsFairValueDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets, Fair Value Disclosure [Abstract]",
        "terseLabel": "Financial Assets"
       }
      }
     },
     "localname": "AssetsFairValueDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AwardTypeAxis": {
     "auth_ref": [
      "r332",
      "r333",
      "r334",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r351",
      "r352",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of award under share-based payment arrangement.",
        "label": "Award Type [Axis]"
       }
      }
     },
     "localname": "AwardTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementRestrictedStockAndRestrictedStockUnitActivityDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by location on balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Axis]"
       }
      }
     },
     "localname": "BalanceSheetLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "auth_ref": [
      "r404",
      "r406"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Location in the balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Domain]"
       }
      }
     },
     "localname": "BalanceSheetLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BasisOfPresentationAndSignificantAccountingPoliciesTextBlock": {
     "auth_ref": [
      "r113"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for the basis of presentation and significant accounting policies concepts. Basis of presentation describes the underlying basis used to prepare the financial statements (for example, US Generally Accepted Accounting Principles, Other Comprehensive Basis of Accounting, IFRS). Accounting policies describe all significant accounting policies of the reporting entity.",
        "label": "Basis of Presentation and Significant Accounting Policies [Text Block]",
        "verboseLabel": "Basis of Presentation and Significant Accounting Policies"
       }
      }
     },
     "localname": "BasisOfPresentationAndSignificantAccountingPoliciesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_BusinessAcquisitionAcquireeDomain": {
     "auth_ref": [
      "r323",
      "r325",
      "r394"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identification of the acquiree in a material business combination (or series of individually immaterial business combinations), which may include the name or other type of identification of the acquiree.",
        "label": "Business Acquisition, Acquiree [Domain]"
       }
      }
     },
     "localname": "BusinessAcquisitionAcquireeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BusinessAcquisitionAxis": {
     "auth_ref": [
      "r323",
      "r325",
      "r392",
      "r393",
      "r394"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by business combination or series of individually immaterial business combinations.",
        "label": "Business Acquisition [Axis]"
       }
      }
     },
     "localname": "BusinessAcquisitionAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessCombinationAcquisitionRelatedCosts": {
     "auth_ref": [
      "r391"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents acquisition-related costs incurred to effect a business combination which costs have been expensed during the period. Such costs include finder's fees; advisory, legal, accounting, valuation, and other professional or consulting fees; general administrative costs, including the costs of maintaining an internal acquisitions department; and may include costs of registering and issuing debt and equity securities.",
        "label": "Business Combination, Acquisition Related Costs",
        "terseLabel": "Business Combination, Acquisition Related Costs"
       }
      }
     },
     "localname": "BusinessCombinationAcquisitionRelatedCosts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationsPolicy": {
     "auth_ref": [
      "r390"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for completed business combinations (purchase method, acquisition method or combination of entities under common control). This accounting policy may include a general discussion of the purchase method or acquisition method of accounting (including for example, the treatment accorded contingent consideration, the identification of assets and liabilities, the purchase price allocation process, how the fair values of acquired assets and liabilities are determined) and the entity's specific application thereof. An entity that acquires another entity in a leveraged buyout transaction generally discloses the accounting policy followed by the acquiring entity in determining the basis used to value its interest in the acquired entity, and the rationale for that accounting policy.",
        "label": "Business Combinations Policy [Policy Text Block]",
        "verboseLabel": "Business Combination"
       }
      }
     },
     "localname": "BusinessCombinationsPolicy",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_Cash": {
     "auth_ref": [
      "r9",
      "r480",
      "r577",
      "r578"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Excludes cash and cash equivalents within disposal group and discontinued operation.",
        "label": "Cash",
        "terseLabel": "Cash received"
       }
      }
     },
     "localname": "Cash",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "auth_ref": [
      "r3",
      "r9",
      "r98"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Excludes cash and cash equivalents within disposal group and discontinued operation.",
        "label": "Cash and Cash Equivalents, at Carrying Value",
        "totalLabel": "Cash and Cash Equivalents, at Carrying Value, Total",
        "verboseLabel": "Cash and cash equivalents"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash and Cash Equivalents, Fair Value Disclosure",
        "terseLabel": "Money market funds"
       }
      }
     },
     "localname": "CashAndCashEquivalentsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents": {
     "auth_ref": [
      "r92",
      "r98",
      "r103"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage. Excludes amount for disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents",
        "negatedPeriodEndLabel": "Cash, cash equivalents and restricted cash at end of period",
        "periodEndLabel": "Cash, cash equivalents and restricted cash at end of period",
        "periodStartLabel": "Cash, cash equivalents and restricted cash at beginning of period",
        "totalLabel": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Total"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "auth_ref": [
      "r92",
      "r436"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in cash, cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including effect from exchange rate change. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect",
        "totalLabel": "Net increase (decrease) in cash, cash equivalents and restricted cash",
        "verboseLabel": "Net increase (decrease) in cash, cash equivalents and restricted cash"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Flow, Noncash Investing and Financing Activities Disclosure [Abstract]",
        "verboseLabel": "Supplemental schedule of noncash investing and financing activities:"
       }
      }
     },
     "localname": "CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CashFlowOperatingActivitiesLesseeAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Flow, Operating Activities, Lessee [Abstract]",
        "verboseLabel": "Cash paid for amounts included in the measurement of lease liabilities"
       }
      }
     },
     "localname": "CashFlowOperatingActivitiesLesseeAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfSupplementalCashFlowInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1": {
     "auth_ref": [
      "r408"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) from the increase (decrease) in fair value of derivative and nonderivative instruments designated as fair value hedging instruments recognized in the income statement.",
        "label": "Change in Unrealized Gain (Loss) on Fair Value Hedging Instruments",
        "terseLabel": "Gain from fair value of warrants"
       }
      }
     },
     "localname": "ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ClassOfStockDomain": {
     "auth_ref": [
      "r19",
      "r21",
      "r22",
      "r105",
      "r108",
      "r132",
      "r133",
      "r134",
      "r136",
      "r138",
      "r146",
      "r147",
      "r148",
      "r185",
      "r224",
      "r229",
      "r230",
      "r231",
      "r235",
      "r236",
      "r282",
      "r283",
      "r288",
      "r292",
      "r299",
      "r435",
      "r603"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share of stock differentiated by the voting rights the holder receives. Examples include, but are not limited to, common stock, redeemable preferred stock, nonredeemable preferred stock, and convertible stock.",
        "label": "Class of Stock [Domain]",
        "terseLabel": "Class of Stock [Domain]"
       }
      }
     },
     "localname": "ClassOfStockDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockByClassDetail",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheetsParenthetical",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit",
      "http://quanergy.com/20220630/taxonomy/role/CoverPage",
      "http://quanergy.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInLevel3FairValueInstrumentsDetails",
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareSummaryOfBasicAndDilutedNetIncomeLossPerOrdinaryShareDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ClassOfStockLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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.",
        "label": "Class of Stock [Line Items]"
       }
      }
     },
     "localname": "ClassOfStockLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockByClassDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ClassOfWarrantOrRightAxis": {
     "auth_ref": [
      "r307",
      "r330"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of warrant or right issued.",
        "label": "Class of Warrant or Right [Axis]"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfFairValueMeasurementsInputsDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfReconciliationOfChangesInFairValueDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockholdersEquityNoteWarrantsOrRightsDetail",
      "http://quanergy.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInLevel3FairValueInstrumentsDetails",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ClassOfWarrantOrRightDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the class or type of warrant or right outstanding. Warrants and rights represent derivative securities that give the holder the right to purchase securities (usually equity) from the issuer at a specific price within a certain time frame. Warrants are often included in a new debt issue to entice investors by a higher return potential. The main difference between warrants and call options is that warrants are issued and guaranteed by the company, whereas options are exchange instruments and are not issued by the company. Also, the lifetime of a warrant is often measured in years, while the lifetime of a typical option is measured in months.",
        "label": "Class of Warrant or Right [Domain]"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfFairValueMeasurementsInputsDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfReconciliationOfChangesInFairValueDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockholdersEquityNoteWarrantsOrRightsDetail",
      "http://quanergy.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInLevel3FairValueInstrumentsDetails",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1": {
     "auth_ref": [
      "r300"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Exercise price per share or per unit of warrants or rights outstanding.",
        "label": "Class of Warrant or Right, Exercise Price of Warrants or Rights",
        "terseLabel": "Exercise Price"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockholdersEquityNoteWarrantsOrRightsDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ClassOfWarrantOrRightLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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.",
        "label": "Class of Warrant or Right [Line Items]"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockholdersEquityNoteWarrantsOrRightsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights": {
     "auth_ref": [
      "r300"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of securities into which the class of warrant or right may be converted. For example, but not limited to, 500,000 warrants may be converted into 1,000,000 shares.",
        "label": "Class of Warrant or Right, Number of Securities Called by Warrants or Rights",
        "verboseLabel": "Class of Warrant or Right, Number of Securities Called by Warrants or Rights"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ClassOfWarrantOrRightOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of warrants or rights outstanding.",
        "label": "Class of Warrant or Right, Outstanding",
        "terseLabel": "Shares"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockholdersEquityNoteWarrantsOrRightsDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ClassOfWarrantOrRightTable": {
     "auth_ref": [
      "r307",
      "r330"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure for warrants or rights issued, which includes the title of issue of securities called for by warrants and rights outstanding, the aggregate amount of securities called for by warrants and rights outstanding, the date from which the warrants or rights are exercisable, and the price at which the warrant or right is exercisable.",
        "label": "Class of Warrant or Right [Table]"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockholdersEquityNoteWarrantsOrRightsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CommitmentsAndContingencies": {
     "auth_ref": [
      "r50",
      "r536",
      "r555"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the caption on the face of the balance sheet to indicate that the entity has entered into (1) purchase or supply arrangements that will require expending a portion of its resources to meet the terms thereof, and (2) is exposed to potential losses or, less frequently, gains, arising from (a) possible claims against a company's resources due to future performance under contract terms, and (b) possible losses or likely gains from uncertainties that will ultimately be resolved when one or more future events that are deemed likely to occur do occur or fail to occur.",
        "label": "Commitments and Contingencies",
        "terseLabel": "Commitments and contingencies (Note 15)"
       }
      }
     },
     "localname": "CommitmentsAndContingencies",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Abstract]"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureTextBlock": {
     "auth_ref": [
      "r213",
      "r214",
      "r215",
      "r220",
      "r582"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for commitments and contingencies.",
        "label": "Commitments and Contingencies Disclosure [Text Block]",
        "terseLabel": "Commitments and Contingencies"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingencies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CommonClassAMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Classification of common stock representing ownership interest in a corporation.",
        "label": "Common Class A [Member]"
       }
      }
     },
     "localname": "CommonClassAMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonClassBMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Classification of common stock that has different rights than Common Class A, representing ownership interest in a corporation.",
        "label": "Common Class B [Member]"
       }
      }
     },
     "localname": "CommonClassBMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockCapitalSharesReservedForFutureIssuance": {
     "auth_ref": [
      "r51"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate number of common shares reserved for future issuance.",
        "label": "Common Stock, Capital Shares Reserved for Future Issuance",
        "verboseLabel": "Common stock capital shares reserved for future issuance"
       }
      }
     },
     "localname": "CommonStockCapitalSharesReservedForFutureIssuance",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockMember": {
     "auth_ref": [
      "r114",
      "r115",
      "r416"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock that is subordinate to all other stock of the issuer.",
        "label": "Common Stock [Member]"
       }
      }
     },
     "localname": "CommonStockMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockByClassDetail",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r22"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Face amount or stated value per share of common stock.",
        "label": "Common Stock, Par or Stated Value Per Share",
        "terseLabel": "Common shares, par value"
       }
      }
     },
     "localname": "CommonStockParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "auth_ref": [
      "r22"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws.",
        "label": "Common Stock, Shares Authorized",
        "terseLabel": "Common shares, shares authorized"
       }
      }
     },
     "localname": "CommonStockSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesIssued": {
     "auth_ref": [
      "r22"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total number of common shares of an entity that have been sold or granted to shareholders (includes common shares that were issued, repurchased and remain in the treasury). These shares represent capital invested by the firm's shareholders and owners, and may be all or only a portion of the number of shares authorized. Shares issued include shares outstanding and shares held in the treasury.",
        "label": "Common Stock, Shares, Issued",
        "terseLabel": "Common shares, shares issued"
       }
      }
     },
     "localname": "CommonStockSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "auth_ref": [
      "r22",
      "r299"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation.",
        "label": "Common Stock, Shares, Outstanding",
        "periodEndLabel": "Common Stock, Shares, Outstanding, Ending Balance",
        "periodStartLabel": "Common Stock, Shares, Outstanding, Beginning Balance",
        "terseLabel": "Common shares, shares outstanding"
       }
      }
     },
     "localname": "CommonStockSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheetsParenthetical",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockValue": {
     "auth_ref": [
      "r22",
      "r480"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate par or stated value of issued nonredeemable common stock (or common stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable common shares, par value and other disclosure concepts are in another section within stockholders' equity.",
        "label": "Common Stock, Value, Issued",
        "verboseLabel": "Common stock, $0.0001 par value. 300,000,000 and 80,071,901 shares authorized as of June 30, 2022 and December 31, 2021, respectively; 129,613,549 and 57,020,151 shares issued and outstanding as of June 30, 2022 and December 31, 2021 respectively."
       }
      }
     },
     "localname": "CommonStockValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "auth_ref": [
      "r61",
      "r63",
      "r64",
      "r72",
      "r539",
      "r558"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfComprehensiveLoss": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of increase (decrease) in equity from transactions and other events and circumstances from net income and other comprehensive income, attributable to parent entity. Excludes changes in equity resulting from investments by owners and distributions to owners.",
        "label": "Comprehensive Income (Loss), Net of Tax, Attributable to Parent",
        "totalLabel": "Comprehensive loss"
       }
      }
     },
     "localname": "ComprehensiveIncomeNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ComputerEquipmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Long lived, depreciable assets that are used in the creation, maintenance and utilization of information systems.",
        "label": "Computer Equipment [Member]"
       }
      }
     },
     "localname": "ComputerEquipmentMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConversionOfStockAmountConverted1": {
     "auth_ref": [
      "r100",
      "r101",
      "r102"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The value of the stock 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.",
        "label": "Conversion of Stock, Amount Converted",
        "verboseLabel": "Conversion of redeemable convertible preferred stock to common stock"
       }
      }
     },
     "localname": "ConversionOfStockAmountConverted1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ConvertibleDebtFairValueDisclosures": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of borrowing which can be exchanged for a specified number of another security at the option of the issuer or the holder, for example, but not limited to, the entity's common stock.",
        "label": "Convertible Debt, Fair Value Disclosures",
        "terseLabel": "Convertible Notes Payable, Fair Value Disclosure"
       }
      }
     },
     "localname": "ConvertibleDebtFairValueDisclosures",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ConvertibleNotesPayable": {
     "auth_ref": [
      "r17",
      "r533",
      "r549",
      "r579"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Including the current and noncurrent portions, carrying value as of the balance sheet date of a written promise to pay a note, initially due after one year or beyond the operating cycle if longer, which can be exchanged for a specified amount of one or more securities (typically common stock), at the option of the issuer or the holder.",
        "label": "Convertible Notes Payable",
        "terseLabel": "Convertible Notes Payable",
        "totalLabel": "Convertible Notes Payable, Total"
       }
      }
     },
     "localname": "ConvertibleNotesPayable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ConvertiblePreferredStockMember": {
     "auth_ref": [
      "r282",
      "r283",
      "r288"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred stock that may be exchanged into common shares or other types of securities at the owner's option.",
        "label": "Convertible Preferred Stock [Member]"
       }
      }
     },
     "localname": "ConvertiblePreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CostOfGoodsAndServicesSold": {
     "auth_ref": [
      "r80",
      "r516"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations": {
       "order": 1.0,
       "parentTag": "us-gaap_GrossProfit",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate costs related to goods produced and sold and services rendered by an entity during the reporting period. This excludes costs incurred during the reporting period related to financial services rendered and other revenue generating activities.",
        "label": "Cost of Goods and Services Sold",
        "terseLabel": "Cost of goods sold",
        "totalLabel": "Cost of Goods and Services Sold, Total"
       }
      }
     },
     "localname": "CostOfGoodsAndServicesSold",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CostOfSalesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing cost of sales.",
        "label": "Cost of Sales [Member]",
        "terseLabel": "Cost of good sold [Member]"
       }
      }
     },
     "localname": "CostOfSalesMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementExpensedAndCapitalizedAmountDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CustomerRefundLiabilityCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_OtherLiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Current regulatory liabilities generally represent obligations to make refunds to customers for various reasons including overpayment.",
        "label": "Customer Refund Liability, Current",
        "terseLabel": "Customer deposits"
       }
      }
     },
     "localname": "CustomerRefundLiabilityCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CustomerRefundLiabilityNoncurrent": {
     "auth_ref": [
      "r49"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermLiabilitiesScheduleOfOtherNonCurrentLiabilitiesDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherLiabilitiesNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Noncurrent regulatory liabilities generally represent obligations to make refunds to customers for various reasons including overpayment.",
        "label": "Customer Refund Liability, Noncurrent",
        "terseLabel": "Customer deposits"
       }
      }
     },
     "localname": "CustomerRefundLiabilityNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermLiabilitiesScheduleOfOtherNonCurrentLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtConversionConvertedInstrumentAmount1": {
     "auth_ref": [
      "r100",
      "r102"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The value of the financial instrument(s) that the original debt is being converted into in a noncash (or part noncash) transaction. \"Part noncash\" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period.",
        "label": "Debt Conversion, Converted Instrument, Amount",
        "verboseLabel": "Conversion of 2023 Notes into equity"
       }
      }
     },
     "localname": "DebtConversionConvertedInstrumentAmount1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Disclosure [Abstract]"
       }
      }
     },
     "localname": "DebtDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtDisclosureTextBlock": {
     "auth_ref": [
      "r104",
      "r244",
      "r245",
      "r246",
      "r247",
      "r248",
      "r249",
      "r250",
      "r255",
      "r262",
      "r263",
      "r265",
      "r275"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for information about short-term and long-term debt arrangements, which includes amounts of borrowings under each line of credit, note payable, commercial paper issue, bonds indenture, debenture issue, own-share lending arrangements and any other contractual agreement to repay funds, and about the underlying arrangements, rationale for a classification as long-term, including repayment terms, interest rates, collateral provided, restrictions on use of assets and activities, whether or not in compliance with debt covenants, and other matters important to users of the financial statements, such as the effects of refinancing and noncompliance with debt covenants.",
        "label": "Debt Disclosure [Text Block]",
        "verboseLabel": "Borrowing Arrangements"
       }
      }
     },
     "localname": "DebtDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangements"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DebtInstrumentAxis": {
     "auth_ref": [
      "r15",
      "r16",
      "r17",
      "r107",
      "r112",
      "r238",
      "r239",
      "r240",
      "r241",
      "r242",
      "r243",
      "r245",
      "r251",
      "r252",
      "r253",
      "r254",
      "r256",
      "r257",
      "r258",
      "r259",
      "r260",
      "r261",
      "r269",
      "r270",
      "r271",
      "r272",
      "r449",
      "r532",
      "r533",
      "r545"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities.",
        "label": "Debt Instrument [Axis]"
       }
      }
     },
     "localname": "DebtInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsScheduleOfInterestExpenseDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentFaceAmount": {
     "auth_ref": [
      "r238",
      "r269",
      "r270",
      "r447",
      "r449",
      "r450"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Face (par) amount of debt instrument at time of issuance.",
        "label": "Debt Instrument, Face Amount",
        "verboseLabel": "Debt instrument face amount"
       }
      }
     },
     "localname": "DebtInstrumentFaceAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentIncreaseAccruedInterest": {
     "auth_ref": [
      "r107"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase for accrued, but unpaid interest on the debt instrument for the period.",
        "label": "Debt Instrument, Increase, Accrued Interest",
        "terseLabel": "Related Party Debt Accrued Interest"
       }
      }
     },
     "localname": "DebtInstrumentIncreaseAccruedInterest",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentInterestRateStatedPercentage": {
     "auth_ref": [
      "r45",
      "r239"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual interest rate for funds borrowed, under the debt agreement.",
        "label": "Debt Instrument, Interest Rate, Stated Percentage",
        "verboseLabel": "Debt instrument interest rate stated percentage"
       }
      }
     },
     "localname": "DebtInstrumentInterestRateStatedPercentage",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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.",
        "label": "Debt Instrument [Line Items]"
       }
      }
     },
     "localname": "DebtInstrumentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsScheduleOfInterestExpenseDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentMaturityDateDescription": {
     "auth_ref": [
      "r46"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Description of the maturity date of the debt instrument including whether the debt matures serially and, if so, a brief description of the serial maturities.",
        "label": "Debt Instrument, Maturity Date, Description",
        "verboseLabel": "Maturity"
       }
      }
     },
     "localname": "DebtInstrumentMaturityDateDescription",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "auth_ref": [
      "r47",
      "r107",
      "r112",
      "r238",
      "r239",
      "r240",
      "r241",
      "r242",
      "r243",
      "r245",
      "r251",
      "r252",
      "r253",
      "r254",
      "r256",
      "r257",
      "r258",
      "r259",
      "r260",
      "r261",
      "r269",
      "r270",
      "r271",
      "r272",
      "r449"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The name for the particular debt instrument or borrowing that distinguishes it from other debt instruments or borrowings, including draws against credit facilities.",
        "label": "Debt Instrument, Name [Domain]"
       }
      }
     },
     "localname": "DebtInstrumentNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsScheduleOfInterestExpenseDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPricePercentageOfPrincipalAmountRedeemed": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of principal amount of debt redeemed.",
        "label": "Debt Instrument, Redemption Price, Percentage of Principal Amount Redeemed",
        "verboseLabel": "Percentage of principal amount of debt redeemed."
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPricePercentageOfPrincipalAmountRedeemed",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentTable": {
     "auth_ref": [
      "r47",
      "r107",
      "r112",
      "r238",
      "r239",
      "r240",
      "r241",
      "r242",
      "r243",
      "r245",
      "r251",
      "r252",
      "r253",
      "r254",
      "r256",
      "r257",
      "r258",
      "r259",
      "r260",
      "r261",
      "r264",
      "r269",
      "r270",
      "r271",
      "r272",
      "r300",
      "r303",
      "r304",
      "r305",
      "r446",
      "r447",
      "r449",
      "r450",
      "r544"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table or schedule providing information pertaining to long-term debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer.",
        "label": "Schedule of Long-term Debt Instruments [Table]"
       }
      }
     },
     "localname": "DebtInstrumentTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsScheduleOfInterestExpenseDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet": {
     "auth_ref": [
      "r251",
      "r266",
      "r269",
      "r270",
      "r448"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unamortized debt discount (premium) and debt issuance costs.",
        "label": "Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net",
        "terseLabel": "Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net",
        "totalLabel": "Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net, Total"
       }
      }
     },
     "localname": "DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtIssuanceCostsIncurredDuringNoncashOrPartialNoncashTransaction": {
     "auth_ref": [
      "r100",
      "r101",
      "r102"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of debt issuance costs that were incurred during a noncash or partial noncash transaction.",
        "label": "Debt Issuance Costs Incurred During Noncash or Partial Noncash Transaction",
        "verboseLabel": "Unpaid debt issuance costs"
       }
      }
     },
     "localname": "DebtIssuanceCostsIncurredDuringNoncashOrPartialNoncashTransaction",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredCosts": {
     "auth_ref": [
      "r12",
      "r530",
      "r546"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermAssetsScheduleOfOtherLongTermAssetsDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherAssetsNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred cost, excluding capitalized cost related to contract with customer; classified as noncurrent.",
        "label": "Deferred Costs, Noncurrent",
        "totalLabel": "Deferred Costs, Noncurrent, Total",
        "verboseLabel": "Deferred costs"
       }
      }
     },
     "localname": "DeferredCosts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermAssetsScheduleOfOtherLongTermAssetsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredFinanceCostsGross": {
     "auth_ref": [
      "r448"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs.",
        "label": "Debt Issuance Costs, Gross",
        "verboseLabel": "Debt issuance costs gross"
       }
      }
     },
     "localname": "DeferredFinanceCostsGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredOfferingCosts": {
     "auth_ref": [
      "r202"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Specific incremental costs directly attributable to a proposed or actual offering of securities which are deferred at the end of the reporting period.",
        "label": "Deferred Offering Costs",
        "terseLabel": "Unamortized deferred offering costs"
       }
      }
     },
     "localname": "DeferredOfferingCosts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredRevenueCurrent": {
     "auth_ref": [
      "r16"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail": {
       "order": 5.0,
       "parentTag": "us-gaap_OtherLiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred income and obligation to transfer product and service to customer for which consideration has been received or is receivable, classified as current.",
        "label": "Deferred Revenue, Current",
        "terseLabel": "Deferred revenue",
        "totalLabel": "Deferred Revenue, Current, Total"
       }
      }
     },
     "localname": "DeferredRevenueCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredRevenueNoncurrent": {
     "auth_ref": [
      "r18"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermLiabilitiesScheduleOfOtherNonCurrentLiabilitiesDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherLiabilitiesNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred income and obligation to transfer product and service to customer for which consideration has been received or is receivable, classified as noncurrent.",
        "label": "Deferred Revenue, Noncurrent",
        "terseLabel": "Deferred revenue",
        "totalLabel": "Deferred Revenue, Noncurrent, Total"
       }
      }
     },
     "localname": "DeferredRevenueNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermLiabilitiesScheduleOfOtherNonCurrentLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepreciationAndAmortization": {
     "auth_ref": [
      "r96",
      "r203"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The current period expense charged against earnings on long-lived, physical assets not used in production, and which are not intended for resale, to allocate or recognize the cost of such assets over their useful lives; or to record the reduction in book value of an intangible asset over the benefit period of such asset; or to reflect consumption during the period of an asset that is not used in production.",
        "label": "Depreciation, Depletion and Amortization, Nonproduction",
        "terseLabel": "DepreciationAndAmortization",
        "totalLabel": "Depreciation, Depletion and Amortization, Nonproduction, Total",
        "verboseLabel": "Depreciation and amortization"
       }
      }
     },
     "localname": "DepreciationAndAmortization",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows",
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilitiesCurrent": {
     "auth_ref": [
      "r54"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail": {
       "order": 6.0,
       "parentTag": "us-gaap_OtherLiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled within one year or normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset.",
        "label": "Derivative Liability, Current",
        "terseLabel": "Derivative liability"
       }
      }
     },
     "localname": "DerivativeLiabilitiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilitiesNoncurrent": {
     "auth_ref": [
      "r54"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled after one year or the normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset.",
        "label": "Derivative Liability, Noncurrent",
        "terseLabel": "Derivative liability"
       }
      }
     },
     "localname": "DerivativeLiabilitiesNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "auth_ref": [
      "r331",
      "r332",
      "r363",
      "r364",
      "r366",
      "r375"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for share-based payment arrangement.",
        "label": "Share-based Payment Arrangement [Text Block]",
        "verboseLabel": "Stock-based Compensation Expense"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpense"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Payment Arrangement [Abstract]"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DueToRelatedPartiesCurrent": {
     "auth_ref": [
      "r40",
      "r111",
      "r227",
      "r229",
      "r230",
      "r234",
      "r235",
      "r236",
      "r474"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of obligations due all related parties. For classified balance sheets, represents the current portion of such liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Due to Related Parties, Current",
        "terseLabel": "Due to related parties",
        "totalLabel": "Due to Related Parties, Current, Total",
        "verboseLabel": "Related party payable"
       }
      }
     },
     "localname": "DueToRelatedPartiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DueToRelatedPartiesNoncurrent": {
     "auth_ref": [
      "r48",
      "r111",
      "r227",
      "r229",
      "r230",
      "r234",
      "r235",
      "r236",
      "r474"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Portion of the carrying amount as of the balance sheet date of obligations due all related parties that is payable after one year or beyond the normal operating cycle if longer.",
        "label": "Due to Related Parties, Noncurrent",
        "terseLabel": "Long-term debt - related party",
        "totalLabel": "Due to Related Parties, Noncurrent, Total",
        "verboseLabel": "Due to Related Parties, Noncurrent"
       }
      }
     },
     "localname": "DueToRelatedPartiesNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EarningsPerShareAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share [Abstract]"
       }
      }
     },
     "localname": "EarningsPerShareAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareBasic": {
     "auth_ref": [
      "r73",
      "r119",
      "r120",
      "r122",
      "r123",
      "r124",
      "r130",
      "r132",
      "r136",
      "r137",
      "r138",
      "r142",
      "r143",
      "r417",
      "r418",
      "r540",
      "r559"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) for the period per each share of common stock or unit outstanding during the reporting period.",
        "label": "Earnings Per Share, Basic",
        "terseLabel": "Net loss attributable per share to common stockholders - basic",
        "totalLabel": "Earnings Per Share, Basic, Total"
       }
      }
     },
     "localname": "EarningsPerShareBasic",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareBasicLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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.",
        "label": "Earnings Per Share, Basic, by Common Class, Including Two Class Method [Line Items]"
       }
      }
     },
     "localname": "EarningsPerShareBasicLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareSummaryOfBasicAndDilutedNetIncomeLossPerOrdinaryShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareDiluted": {
     "auth_ref": [
      "r73",
      "r119",
      "r120",
      "r122",
      "r123",
      "r124",
      "r132",
      "r136",
      "r137",
      "r138",
      "r142",
      "r143",
      "r417",
      "r418",
      "r540",
      "r559"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) for the period available to each share of common stock or common unit outstanding during the reporting period and to each share or unit that would have been outstanding assuming the issuance of common shares or units for all dilutive potential common shares or units outstanding during the reporting period.",
        "label": "Earnings Per Share, Diluted",
        "terseLabel": "Net loss attributable per share to common stockholders - diluted",
        "totalLabel": "Earnings Per Share, Diluted, Total"
       }
      }
     },
     "localname": "EarningsPerShareDiluted",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "auth_ref": [
      "r139",
      "r140",
      "r141",
      "r144"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for earnings per share.",
        "label": "Earnings Per Share [Text Block]",
        "terseLabel": "Net Loss Per Share"
       }
      }
     },
     "localname": "EarningsPerShareTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShare"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations": {
     "auth_ref": [
      "r436"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) from effect of exchange rate changes on cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; held in foreign currencies; including, but not limited to, disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Effect of Exchange Rate on Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Including Disposal Group and Discontinued Operations",
        "terseLabel": "Effect of exchange rate changes on cash, cash equivalents and restricted cash",
        "totalLabel": "Effect of Exchange Rate on Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Including Disposal Group and Discontinued Operations, Total"
       }
      }
     },
     "localname": "EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EmbeddedDerivativeFairValueOfEmbeddedDerivativeLiability": {
     "auth_ref": [
      "r405"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value as of the balance sheet date of the embedded derivative or group of embedded derivatives classified as a liability.",
        "label": "Embedded Derivative, Fair Value of Embedded Derivative Liability",
        "periodEndLabel": "Fair value ending",
        "periodStartLabel": "Fair value beginning"
       }
      }
     },
     "localname": "EmbeddedDerivativeFairValueOfEmbeddedDerivativeLiability",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsSummaryOfEstimatedFairValueOfThe2022And2023NotesEmbeddedDerivativeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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.",
        "label": "Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementExpensedAndCapitalizedAmountDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1": {
     "auth_ref": [
      "r365"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted-average period over which cost not yet recognized is expected to be recognized for award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition",
        "verboseLabel": "Expected weighted-average period of recognition for unrecognized compensation expense"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions": {
     "auth_ref": [
      "r365"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost to be recognized for nonvested award under share-based payment arrangement. Excludes share and unit options.",
        "label": "Share-based Payment Arrangement, Nonvested Award, Excluding Option, Cost Not yet Recognized, Amount",
        "verboseLabel": "Share based payment arrangement nonvested award excluding option, cost not yet recognized amount"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions": {
     "auth_ref": [
      "r365"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost to be recognized for option under share-based payment arrangement.",
        "label": "Share-based Payment Arrangement, Nonvested Award, Option, Cost Not yet Recognized, Amount",
        "verboseLabel": "Unrecognized compensation expense related to non-vested stock options"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EmployeeStockOptionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share-based payment arrangement granting right, subject to vesting and other restrictions, to purchase or sell certain number of shares at predetermined price for specified period of time.",
        "label": "Share-based Payment Arrangement, Option [Member]"
       }
      }
     },
     "localname": "EmployeeStockOptionMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityComponentDomain": {
     "auth_ref": [
      "r0",
      "r65",
      "r66",
      "r67",
      "r114",
      "r115",
      "r116",
      "r118",
      "r125",
      "r128",
      "r145",
      "r186",
      "r299",
      "r306",
      "r369",
      "r370",
      "r371",
      "r381",
      "r382",
      "r416",
      "r437",
      "r438",
      "r439",
      "r440",
      "r441",
      "r442",
      "r470",
      "r567",
      "r568",
      "r569"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Components of equity are the parts of the total Equity balance including that which is allocated to common, preferred, treasury stock, retained earnings, etc.",
        "label": "Equity Component [Domain]",
        "terseLabel": "Equity Component [Domain]"
       }
      }
     },
     "localname": "EquityComponentDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockByClassDetail",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit",
      "http://quanergy.com/20220630/taxonomy/role/CoverPage",
      "http://quanergy.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInLevel3FairValueInstrumentsDetails",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ExcessStockSharesOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of excess stock held by shareholders.",
        "label": "Excess Stock, Shares Outstanding",
        "terseLabel": "Excess stock shares outstanding"
       }
      }
     },
     "localname": "ExcessStockSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_FairValueAdjustmentOfWarrants": {
     "auth_ref": [
      "r96",
      "r276"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 17.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense (income) related to adjustment to fair value of warrant liability.",
        "label": "Fair Value Adjustment of Warrants",
        "terseLabel": "Change in fair value of derivative liabilities"
       }
      }
     },
     "localname": "FairValueAdjustmentOfWarrants",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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.",
        "label": "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInLevel3FairValueInstrumentsDetails",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable": {
     "auth_ref": [
      "r419",
      "r420",
      "r431"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about asset and liability measured at fair value on recurring and nonrecurring basis.",
        "label": "Fair Value, Recurring and Nonrecurring [Table]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTableTextBlock": {
     "auth_ref": [
      "r419",
      "r420",
      "r421",
      "r429",
      "r431"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of financial instruments measured at fair value, including those classified in shareholders' equity measured on a recurring or nonrecurring basis. Disclosures include, but are not limited to, fair value measurements recorded and the reasons for the measurements, level within the fair value hierarchy in which the fair value measurements are categorized and transfers between levels 1 and 2. Nonrecurring fair value measurements are those that are required or permitted in the statement of financial position in particular circumstances.",
        "label": "Fair Value Measurements, Recurring and Nonrecurring [Table Text Block]",
        "terseLabel": "Summary of Information About The Company's Financial Assets and Liabilities That Are Measured at Fair Value On Recurring Basis"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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.",
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Line Items]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfFairValueMeasurementsInputsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable": {
     "auth_ref": [
      "r422"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about input and valuation technique used to measure fair value and change in valuation approach and technique for each separate class of asset and liability measured on recurring and nonrecurring basis.",
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Table]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfFairValueMeasurementsInputsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock": {
     "auth_ref": [
      "r422"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of input and valuation technique used to measure fair value and change in valuation approach and technique for each separate class of asset and liability measured on recurring and nonrecurring basis.",
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Table Text Block]",
        "verboseLabel": "Summary of Fair Value Measurements Inputs"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Assets and Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Abstract]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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.",
        "label": "Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]"
       }
      }
     },
     "localname": "FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTable": {
     "auth_ref": [
      "r419",
      "r433",
      "r434"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities.",
        "label": "Fair Value, by Balance Sheet Grouping [Table]"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "auth_ref": [
      "r253",
      "r269",
      "r270",
      "r314",
      "r315",
      "r316",
      "r317",
      "r318",
      "r319",
      "r320",
      "r322",
      "r420",
      "r487",
      "r488",
      "r489"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient.",
        "label": "Fair Value Hierarchy and NAV [Axis]"
       }
      }
     },
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInLevel3FairValueInstrumentsDetails",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByLiabilityClassAxis": {
     "auth_ref": [
      "r428",
      "r431"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by class of liability.",
        "label": "Liability Class [Axis]"
       }
      }
     },
     "localname": "FairValueByLiabilityClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsSummaryOfEstimatedFairValueOfThe2022And2023NotesEmbeddedDerivativeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "auth_ref": [
      "r419",
      "r420",
      "r423",
      "r424",
      "r432"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by measurement frequency.",
        "label": "Measurement Frequency [Axis]"
       }
      }
     },
     "localname": "FairValueByMeasurementFrequencyAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Abstract]"
       }
      }
     },
     "localname": "FairValueDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "auth_ref": [
      "r428"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for the fair value of financial instruments (as defined), including financial assets and financial liabilities (collectively, as defined), and the measurements of those instruments as well as disclosures related to the fair value of non-financial assets and liabilities. Such disclosures about the financial instruments, assets, and liabilities would include: (1) the fair value of the required items together with their carrying amounts (as appropriate); (2) for items for which it is not practicable to estimate fair value, disclosure would include: (a) information pertinent to estimating fair value (including, carrying amount, effective interest rate, and maturity, and (b) the reasons why it is not practicable to estimate fair value; (3) significant concentrations of credit risk including: (a) information about the activity, region, or economic characteristics identifying a concentration, (b) the maximum amount of loss the entity is exposed to based on the gross fair value of the related item, (c) policy for requiring collateral or other security and information as to accessing such collateral or security, and (d) the nature and brief description of such collateral or security; (4) quantitative information about market risks and how such risks are managed; (5) for items measured on both a recurring and nonrecurring basis information regarding the inputs used to develop the fair value measurement; and (6) for items presented in the financial statement for which fair value measurement is elected: (a) information necessary to understand the reasons for the election, (b) discussion of the effect of fair value changes on earnings, (c) a description of [similar groups] items for which the election is made and the relation thereof to the balance sheet, the aggregate carrying value of items included in the balance sheet that are not eligible for the election; (7) all other required (as defined) and desired information.",
        "label": "Fair Value Disclosures [Text Block]",
        "terseLabel": "Fair Value Measurements"
       }
      }
     },
     "localname": "FairValueDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurements"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "auth_ref": [
      "r253",
      "r314",
      "r315",
      "r320",
      "r322",
      "r420",
      "r487"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date.",
        "label": "Fair Value, Inputs, Level 1 [Member]",
        "terseLabel": "Fair Value, Inputs, Level 1 [Member]"
       }
      }
     },
     "localname": "FairValueInputsLevel1Member",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "auth_ref": [
      "r253",
      "r269",
      "r270",
      "r314",
      "r315",
      "r320",
      "r322",
      "r420",
      "r488"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Inputs other than quoted prices included within level 1 that are observable for an asset or liability, either directly or indirectly, including, but not limited to, quoted prices for similar assets or liabilities in active markets, or quoted prices for identical or similar assets or liabilities in inactive markets.",
        "label": "Fair Value, Inputs, Level 2 [Member]",
        "terseLabel": "Fair Value, Inputs, Level 2 [Member]"
       }
      }
     },
     "localname": "FairValueInputsLevel2Member",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "auth_ref": [
      "r253",
      "r269",
      "r270",
      "r314",
      "r315",
      "r316",
      "r317",
      "r318",
      "r319",
      "r320",
      "r322",
      "r420",
      "r489"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "terseLabel": "Fair Value, Inputs, Level 3 [Member]"
       }
      }
     },
     "localname": "FairValueInputsLevel3Member",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInLevel3FairValueInstrumentsDetails",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsQuantitativeInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Abstract]"
       }
      }
     },
     "localname": "FairValueInputsQuantitativeInformationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain": {
     "auth_ref": [
      "r425"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents classes of liabilities measured and disclosed at fair value.",
        "label": "Fair Value by Liability Class [Domain]"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsSummaryOfEstimatedFairValueOfThe2022And2023NotesEmbeddedDerivativeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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.",
        "label": "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsSummaryOfEstimatedFairValueOfThe2022And2023NotesEmbeddedDerivativeDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfReconciliationOfChangesInFairValueDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable": {
     "auth_ref": [
      "r425",
      "r431"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of information required and determined to be provided for purposes of reconciling beginning and ending balances of fair value measurements of liabilities using significant unobservable inputs (level 3). Separately presenting changes during the period, attributable to: (1) total gains or losses for the period (realized and unrealized) and location reported in the statement of income (or activities); (2) purchases, sales, issuances, and settlements (net); (3) transfers in and/or out of Level 3.",
        "label": "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table]"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsSummaryOfEstimatedFairValueOfThe2022And2023NotesEmbeddedDerivativeDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfReconciliationOfChangesInFairValueDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock": {
     "auth_ref": [
      "r425",
      "r431"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the fair value measurement of liabilities using significant unobservable inputs (Level 3), a reconciliation of the beginning and ending balances, separately presenting changes attributable to the following: (1) total gains or losses for the period (realized and unrealized), segregating those gains or losses included in earnings (or changes in net assets), and gains or losses recognized in other comprehensive income (loss) and a description of where those gains or losses included in earnings (or changes in net assets) are reported in the statement of income (or activities); (2) purchases, sales, issues, and settlements (each type disclosed separately); and (3) transfers in and transfers out of Level 3 (for example, transfers due to changes in the observability of significant inputs) by class of liability.",
        "label": "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
        "terseLabel": "Summary of Changes in Level 3 Fair Value Instruments"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement frequency.",
        "label": "Measurement Frequency [Domain]"
       }
      }
     },
     "localname": "FairValueMeasurementFrequencyDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings": {
     "auth_ref": [
      "r426"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in income from liability measured at fair value on recurring basis using unobservable input (level 3).",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Gain (Loss) Included in Earnings",
        "terseLabel": "Change in fair value of public and private warrants",
        "verboseLabel": "Change in fair value"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsSummaryOfEstimatedFairValueOfThe2022And2023NotesEmbeddedDerivativeDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfReconciliationOfChangesInFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPeriodIncreaseDecrease": {
     "auth_ref": [
      "r425"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) of financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Period Increase (Decrease)",
        "terseLabel": "Change in fair value of Private Placement Warrants",
        "totalLabel": "Change in fair value of Private Placement Warrants"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPeriodIncreaseDecrease",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInLevel3FairValueInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements": {
     "auth_ref": [
      "r427"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of settlements of financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Settlements",
        "verboseLabel": "Payoff of 2022 Notes"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsSummaryOfEstimatedFairValueOfThe2022And2023NotesEmbeddedDerivativeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue": {
     "auth_ref": [
      "r425"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability Value",
        "periodEndLabel": "Fair Value Ending",
        "periodStartLabel": "Fair value beginning"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfReconciliationOfChangesInFairValueDetail",
      "http://quanergy.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInLevel3FairValueInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "auth_ref": [
      "r253",
      "r269",
      "r270",
      "r314",
      "r315",
      "r316",
      "r317",
      "r318",
      "r319",
      "r320",
      "r322",
      "r487",
      "r488",
      "r489"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value.",
        "label": "Fair Value Hierarchy and NAV [Domain]"
       }
      }
     },
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInLevel3FairValueInstrumentsDetails",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "auth_ref": [
      "r428",
      "r432"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Frequent fair value measurement. Includes, but is not limited to, fair value adjustment for impairment of asset, liability or equity, frequently measured at fair value.",
        "label": "Fair Value, Recurring [Member]"
       }
      }
     },
     "localname": "FairValueMeasurementsRecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTable": {
     "auth_ref": [
      "r425",
      "r430"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about financial instrument classified as a derivative asset (liability) after deduction of derivative liability (asset) using recurring unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Input Reconciliation [Table]"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInLevel3FairValueInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock": {
     "auth_ref": [
      "r425",
      "r430"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of financial instrument classified as a derivative asset (liability) after deduction of derivative liability (asset) using recurring unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
        "verboseLabel": "Summary Of Estimated Fair Value Of The 2022 And 2023 Notes Embedded Derivative"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationTransfersNet": {
     "auth_ref": [
      "r430"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transfers of financial instrument classified as a derivative asset (liability) after deduction of derivative liability (asset) into (out of) level 3 of the fair value hierarchy.",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Transfers, Net",
        "terseLabel": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Transfers, Net",
        "totalLabel": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Transfers, Net, Total"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationTransfersNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseWeightedAverageDiscountRatePercent": {
     "auth_ref": [
      "r464",
      "r467"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average discount rate for finance lease calculated at point in time.",
        "label": "Finance Lease, Weighted Average Discount Rate, Percent",
        "terseLabel": "Weighted average discount rate"
       }
      }
     },
     "localname": "FinanceLeaseWeightedAverageDiscountRatePercent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/DisclosureLeasesSummaryOfWeightedAverageRemainingLeaseTermDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_FinanceLeaseWeightedAverageRemainingLeaseTerm1": {
     "auth_ref": [
      "r463",
      "r467"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average remaining lease term for finance lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Finance Lease, Weighted Average Remaining Lease Term",
        "terseLabel": "Weighted average remaining lease term (in years)"
       }
      }
     },
     "localname": "FinanceLeaseWeightedAverageRemainingLeaseTerm1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/DisclosureLeasesSummaryOfWeightedAverageRemainingLeaseTermDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_FinancialInstrumentAxis": {
     "auth_ref": [
      "r180",
      "r181",
      "r182",
      "r183",
      "r184",
      "r190",
      "r191",
      "r192",
      "r193",
      "r194",
      "r195",
      "r196",
      "r197",
      "r198",
      "r264",
      "r297",
      "r412",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r501",
      "r502",
      "r503",
      "r504",
      "r505",
      "r506",
      "r507",
      "r508",
      "r509",
      "r510",
      "r511",
      "r512",
      "r513",
      "r603",
      "r604",
      "r605",
      "r606",
      "r607",
      "r608",
      "r609"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of financial instrument.",
        "label": "Financial Instrument [Axis]",
        "terseLabel": "Financial Instrument [Axis]"
       }
      }
     },
     "localname": "FinancialInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialLiabilitiesFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of financial obligations, including, but not limited to, debt instruments, derivative liabilities, federal funds purchased and sold under agreements to repurchase, securities loaned or sold under agreements to repurchase, financial instruments sold not yet purchased, guarantees, line of credit, loans and notes payable, servicing liability, and trading liabilities.",
        "label": "Financial Liabilities Fair Value Disclosure",
        "terseLabel": "Total liabilities",
        "totalLabel": "Financial Liabilities Fair Value Disclosure, Total"
       }
      }
     },
     "localname": "FinancialLiabilitiesFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancialLiabilitiesFairValueDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Liabilities Fair Value Disclosure [Abstract]",
        "terseLabel": "Financial Liabilities"
       }
      }
     },
     "localname": "FinancialLiabilitiesFairValueDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ForwardContractIndexedToEquitySettlementShareFairValue": {
     "auth_ref": [
      "r411"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of shares that would be issued upon settlement of forward contract indexed to equity.",
        "label": "Forward Contract Indexed to Equity, Settlement, Share, Fair Value",
        "terseLabel": "Share Settled Forward Asset"
       }
      }
     },
     "localname": "ForwardContractIndexedToEquitySettlementShareFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FurnitureAndFixturesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equipment commonly used in offices and stores that have no permanent connection to the structure of a building or utilities. Examples include, but are not limited to, desks, chairs, tables, and bookcases.",
        "label": "Furniture and Fixtures [Member]"
       }
      }
     },
     "localname": "FurnitureAndFixturesMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_GainsLossesOnExtinguishmentOfDebt": {
     "auth_ref": [
      "r96",
      "r273",
      "r274"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 19.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Difference between the fair value of payments made and the carrying amount of debt which is extinguished prior to maturity.",
        "label": "Gain (Loss) on Extinguishment of Debt",
        "negatedLabel": "Gain on extinguishment of debt",
        "terseLabel": "Gain (loss) on Extinguishment of Debt",
        "totalLabel": "Gain (Loss) on Extinguishment of Debt, Total",
        "verboseLabel": "Gain on extinguishment of debt"
       }
      }
     },
     "localname": "GainsLossesOnExtinguishmentOfDebt",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GeneralAndAdministrativeExpense": {
     "auth_ref": [
      "r81"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations": {
       "order": 2.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate total of expenses of managing and administering the affairs of an entity, including affiliates of the reporting entity, which are not directly or indirectly associated with the manufacture, sale or creation of a product or product line.",
        "label": "General and Administrative Expense",
        "terseLabel": "General and administrative",
        "totalLabel": "General and Administrative Expense, Total"
       }
      }
     },
     "localname": "GeneralAndAdministrativeExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GeneralAndAdministrativeExpenseMember": {
     "auth_ref": [
      "r74"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing general and administrative expense.",
        "label": "General and Administrative Expense [Member]",
        "terseLabel": "General and administrative [Member]"
       }
      }
     },
     "localname": "GeneralAndAdministrativeExpenseMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementExpensedAndCapitalizedAmountDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_GrossProfit": {
     "auth_ref": [
      "r78",
      "r108",
      "r156",
      "r159",
      "r162",
      "r165",
      "r168",
      "r185",
      "r224",
      "r225",
      "r226",
      "r229",
      "r230",
      "r231",
      "r232",
      "r233",
      "r235",
      "r236",
      "r435"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations": {
       "order": 0.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate revenue less cost of goods and services sold or operating expenses directly attributable to the revenue generation activity.",
        "label": "Gross Profit",
        "totalLabel": "Gross profit (loss)"
       }
      }
     },
     "localname": "GrossProfit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperations": {
     "auth_ref": [
      "r79",
      "r97",
      "r119",
      "r120",
      "r122",
      "r123",
      "r135",
      "r138",
      "r395"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations": {
       "order": 0.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of income (loss) from continuing operations attributable to the parent.",
        "label": "Income (Loss) from Continuing Operations, Net of Tax, Attributable to Parent",
        "totalLabel": "Loss from operations"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": {
     "auth_ref": [
      "r70",
      "r156",
      "r159",
      "r162",
      "r165",
      "r168",
      "r529",
      "r537",
      "r542",
      "r560"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of income (loss) from continuing operations, including income (loss) from equity method investments, before deduction of income tax expense (benefit), and income (loss) attributable to noncontrolling interest.",
        "label": "Income (Loss) from Continuing Operations before Income Taxes, Noncontrolling Interest",
        "totalLabel": "Loss before income taxes"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeStatementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]"
       }
      }
     },
     "localname": "IncomeStatementAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementLocationAxis": {
     "auth_ref": [
      "r207",
      "r211"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by location in the income statement.",
        "label": "Income Statement Location [Axis]"
       }
      }
     },
     "localname": "IncomeStatementLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementExpensedAndCapitalizedAmountDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementLocationDomain": {
     "auth_ref": [
      "r211"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Location in the income statement.",
        "label": "Income Statement Location [Domain]"
       }
      }
     },
     "localname": "IncomeStatementLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementExpensedAndCapitalizedAmountDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeTaxDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Disclosure [Abstract]"
       }
      }
     },
     "localname": "IncomeTaxDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxDisclosureTextBlock": {
     "auth_ref": [
      "r109",
      "r378",
      "r379",
      "r380",
      "r383",
      "r385",
      "r387",
      "r388",
      "r389"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for income taxes. Disclosures may include net deferred tax liability or asset recognized in an enterprise's statement of financial position, net change during the year in the total valuation allowance, approximate tax effect of each type of temporary difference and carryforward that gives rise to a significant portion of deferred tax liabilities and deferred tax assets, utilization of a tax carryback, and tax uncertainties information.",
        "label": "Income Tax Disclosure [Text Block]",
        "verboseLabel": "Income Taxes"
       }
      }
     },
     "localname": "IncomeTaxDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/IncomeTaxes"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r110",
      "r127",
      "r128",
      "r155",
      "r377",
      "r384",
      "r386",
      "r561"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations": {
       "order": 0.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
        "label": "Income Tax Expense (Benefit)",
        "negatedLabel": "Income tax provision",
        "totalLabel": "Income Tax Expense (Benefit), Total",
        "verboseLabel": "Income tax expense (benefit)"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations",
      "http://quanergy.com/20220630/taxonomy/role/IncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccountsPayable": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the aggregate amount of liabilities incurred (and for which invoices have typically been received) and payable to vendors for goods and services received that are used in an entity's business.",
        "label": "Increase (Decrease) in Accounts Payable",
        "terseLabel": "Prepaid expenses and other current assets",
        "totalLabel": "Increase (Decrease) in Accounts Payable, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccountsPayable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccountsReceivable": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in amount due within one year (or one business cycle) from customers for the credit sale of goods and services.",
        "label": "Increase (Decrease) in Accounts Receivable",
        "negatedLabel": "Accounts receivable",
        "terseLabel": "Accounts receivable"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccountsReceivable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccruedLiabilities": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the aggregate amount of expenses incurred but not yet paid.",
        "label": "Increase (Decrease) in Accrued Liabilities",
        "terseLabel": "Accrued expenses",
        "totalLabel": "Increase (Decrease) in Accrued Liabilities, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccruedLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInInventories": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 12.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the aggregate value of all inventory held by the reporting entity, associated with underlying transactions that are classified as operating activities.",
        "label": "Increase (Decrease) in Inventories",
        "negatedLabel": "Inventory",
        "terseLabel": "Inventory",
        "totalLabel": "Increase (Decrease) in Inventories, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInInventories",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOperatingCapitalAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Operating Capital [Abstract]",
        "terseLabel": "Changes in operating assets and liabilities:"
       }
      }
     },
     "localname": "IncreaseDecreaseInOperatingCapitalAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherAccountsPayableAndAccruedLiabilities": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 13.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in other obligations or expenses incurred but not yet paid.",
        "label": "Increase (Decrease) in Other Accounts Payable and Accrued Liabilities",
        "terseLabel": "Accrued settlement liability"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherAccountsPayableAndAccruedLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherCurrentLiabilities": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in current liabilities classified as other.",
        "label": "Increase (Decrease) in Other Current Liabilities",
        "terseLabel": "Other current liabilities"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherCurrentLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherNoncurrentAssets": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 14.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in noncurrent assets classified as other.",
        "label": "Increase (Decrease) in Other Noncurrent Assets",
        "negatedLabel": "Accounts payable",
        "terseLabel": "Accounts payable"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherNoncurrentAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 18.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in noncurrent operating liabilities classified as other.",
        "label": "Increase (Decrease) in Other Noncurrent Liabilities",
        "terseLabel": "Other long-term liabilities"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherNoncurrentLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in prepaid expenses, and assets classified as other.",
        "label": "Increase (Decrease) in Prepaid Expense and Other Assets",
        "negatedLabel": "Other long-term assets",
        "terseLabel": "Other long-term assets"
       }
      }
     },
     "localname": "IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestAndDebtExpense": {
     "auth_ref": [
      "r445"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest and debt related expenses associated with nonoperating financing activities of the entity.",
        "label": "Interest and Debt Expense",
        "totalLabel": "Total interest expense",
        "verboseLabel": "Total interest expense"
       }
      }
     },
     "localname": "InterestAndDebtExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsScheduleOfInterestExpenseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpense": {
     "auth_ref": [
      "r68",
      "r154",
      "r444",
      "r448",
      "r541"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the cost of borrowed funds accounted for as interest expense.",
        "label": "Interest Expense",
        "negatedLabel": "Interest expense, net",
        "totalLabel": "Interest Expense, Total"
       }
      }
     },
     "localname": "InterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseDebt": {
     "auth_ref": [
      "r82",
      "r259",
      "r268",
      "r271",
      "r272"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the cost of borrowed funds accounted for as interest expense for debt.",
        "label": "Interest Expense, Debt",
        "terseLabel": "Interest Expense",
        "totalLabel": "Interest Expense, Debt, Total",
        "verboseLabel": "Contractual interest expense"
       }
      }
     },
     "localname": "InterestExpenseDebt",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/BorrowingArrangementsScheduleOfInterestExpenseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPaidNet": {
     "auth_ref": [
      "r91",
      "r93",
      "r99"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash paid for interest, excluding capitalized interest, classified as operating activity. Includes, but is not limited to, payment to settle zero-coupon bond for accreted interest of debt discount and debt instrument with insignificant coupon interest rate in relation to effective interest rate of borrowing attributable to accreted interest of debt discount.",
        "label": "Interest Paid, Excluding Capitalized Interest, Operating Activities",
        "verboseLabel": "Cash paid during the period for interest"
       }
      }
     },
     "localname": "InterestPaidNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InventoryDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory Disclosure [Abstract]"
       }
      }
     },
     "localname": "InventoryDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_InventoryDisclosureTextBlock": {
     "auth_ref": [
      "r199"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for inventory. Includes, but is not limited to, the basis of stating inventory, the method of determining inventory cost, the classes of inventory, and the nature of the cost elements included in inventory.",
        "label": "Inventory Disclosure [Text Block]",
        "terseLabel": "Inventory"
       }
      }
     },
     "localname": "InventoryDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/Inventory"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InventoryFinishedGoods": {
     "auth_ref": [
      "r30"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/InventoryScheduleOfInventoryDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_InventoryNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before valuation and LIFO reserves of completed merchandise or goods expected to be sold within one year or operating cycle, if longer.",
        "label": "Inventory, Finished Goods, Gross",
        "terseLabel": "Finished goods"
       }
      }
     },
     "localname": "InventoryFinishedGoods",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/InventoryScheduleOfInventoryDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InventoryForLongTermContractsOrPrograms": {
     "auth_ref": [
      "r31"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before valuation and LIFO reserves, and progress payments, of inventory associated with long-term contracts, expected to be sold, or consumed within one year or operating cycle, if longer.",
        "label": "Inventory for Long-term Contracts or Programs, Gross",
        "verboseLabel": "Inventory held by contract manufacturer"
       }
      }
     },
     "localname": "InventoryForLongTermContractsOrPrograms",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InventoryNet": {
     "auth_ref": [
      "r4",
      "r37",
      "r480"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      },
      "http://quanergy.com/20220630/taxonomy/role/InventoryScheduleOfInventoryDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after valuation and LIFO reserves of inventory expected to be sold, or consumed within one year or operating cycle, if longer.",
        "label": "Inventory, Net",
        "terseLabel": "Inventory",
        "totalLabel": "Total inventory"
       }
      }
     },
     "localname": "InventoryNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets",
      "http://quanergy.com/20220630/taxonomy/role/InventoryScheduleOfInventoryDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InventoryRawMaterials": {
     "auth_ref": [
      "r33"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/InventoryScheduleOfInventoryDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_InventoryNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before valuation and LIFO reserves of raw materials expected to be sold, or consumed within one year or operating cycle, if longer.",
        "label": "Inventory, Raw Materials, Gross",
        "terseLabel": "Raw materials"
       }
      }
     },
     "localname": "InventoryRawMaterials",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/InventoryScheduleOfInventoryDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InventoryWorkInProcess": {
     "auth_ref": [
      "r32"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/InventoryScheduleOfInventoryDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_InventoryNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before valuation and LIFO reserves of merchandise or goods in the production process expected to be completed within one year or operating cycle, if longer.",
        "label": "Inventory, Work in Process, Gross",
        "terseLabel": "Work in progress"
       }
      }
     },
     "localname": "InventoryWorkInProcess",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/InventoryScheduleOfInventoryDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestorMember": {
     "auth_ref": [
      "r473",
      "r474"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business entity or individual that puts money, by purchase or expenditure, in something offering potential profitable returns, such as interest income or appreciation in value.",
        "label": "Investor [Member]"
       }
      }
     },
     "localname": "InvestorMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LeaseCostTableTextBlock": {
     "auth_ref": [
      "r465"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of lessee's lease cost. Includes, but is not limited to, interest expense for finance lease, amortization of right-of-use asset for finance lease, operating lease cost, short-term lease cost, variable lease cost and sublease income.",
        "label": "Lease, Cost [Table Text Block]",
        "terseLabel": "Summary of weighted average remaining lease term",
        "verboseLabel": "Summary of Supplemental Cash Flow Information Related To Leases"
       }
      }
     },
     "localname": "LeaseCostTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LeaseholdImprovementsMember": {
     "auth_ref": [
      "r204"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Additions or improvements to assets held under a lease arrangement.",
        "label": "Leasehold Improvements [Member]"
       }
      }
     },
     "localname": "LeaseholdImprovementsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LesseeDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee Disclosure [Abstract]"
       }
      }
     },
     "localname": "LesseeDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_LesseeLeaseDescriptionLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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.",
        "label": "Lessee, Lease, Description [Line Items]"
       }
      }
     },
     "localname": "LesseeLeaseDescriptionLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfFutureMinimumRentalPaymentsForOperatingLeasesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LesseeLeaseDescriptionTable": {
     "auth_ref": [
      "r461"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about lessee's leases.",
        "label": "Lessee, Lease, Description [Table]"
       }
      }
     },
     "localname": "LesseeLeaseDescriptionTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfFutureMinimumRentalPaymentsForOperatingLeasesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock": {
     "auth_ref": [
      "r466"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position.",
        "label": "Lessee, Operating Lease, Liability, Maturity [Table Text Block]",
        "verboseLabel": "Summary of Maturities of The Operating Lease Liabilities"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue": {
     "auth_ref": [
      "r466"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfMaturitiesOfTheOperatingLeaseLiabilitiesDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfMaturitiesOfTheOperatingLeaseLiabilitiesDetailAlternate1": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease.",
        "label": "Lessee, Operating Lease, Liability, to be Paid",
        "totalLabel": "Total undiscounted lease payments"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfMaturitiesOfTheOperatingLeaseLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "auth_ref": [
      "r466"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfMaturitiesOfTheOperatingLeaseLiabilitiesDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year One",
        "verboseLabel": "2023"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfMaturitiesOfTheOperatingLeaseLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear": {
     "auth_ref": [
      "r466"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfMaturitiesOfTheOperatingLeaseLiabilitiesDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease having initial or remaining lease term in excess of one year to be paid in remainder of current fiscal year.",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Remainder of Fiscal Year",
        "verboseLabel": "2022 (remaining nine months)"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfMaturitiesOfTheOperatingLeaseLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount": {
     "auth_ref": [
      "r466"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfMaturitiesOfTheOperatingLeaseLiabilitiesDetailAlternate1": {
       "order": 0.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payments in excess of discounted obligation for lease payments for operating lease.",
        "label": "Lessee, Operating Lease, Liability, Undiscounted Excess Amount",
        "negatedLabel": "Less: imputed interest"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityUndiscountedExcessAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfMaturitiesOfTheOperatingLeaseLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseTermOfContract": {
     "auth_ref": [
      "r460"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Term of lessee's operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Lessee, Operating Lease, Term of Contract"
       }
      }
     },
     "localname": "LesseeOperatingLeaseTermOfContract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_LesseeOperatingLeasesTextBlock": {
     "auth_ref": [
      "r468"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for operating leases of lessee. Includes, but is not limited to, description of operating lease and maturity analysis of operating lease liability.",
        "label": "Lessee, Operating Leases [Text Block]",
        "verboseLabel": "Leases"
       }
      }
     },
     "localname": "LesseeOperatingLeasesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/Leases"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_Liabilities": {
     "auth_ref": [
      "r42",
      "r108",
      "r161",
      "r185",
      "r224",
      "r225",
      "r226",
      "r229",
      "r230",
      "r231",
      "r232",
      "r233",
      "r235",
      "r236",
      "r399",
      "r402",
      "r403",
      "r435",
      "r478",
      "r479"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all liabilities that are recognized. Liabilities are probable future sacrifices of economic benefits arising from present obligations of an entity to transfer assets or provide services to other entities in the future.",
        "label": "Liabilities",
        "totalLabel": "Total liabilities"
       }
      }
     },
     "localname": "Liabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "auth_ref": [
      "r28",
      "r108",
      "r185",
      "r435",
      "r480",
      "r534",
      "r553"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any.",
        "label": "Liabilities and Equity",
        "totalLabel": "Total liabilities and stockholders' equity / (deficit)"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities and Equity [Abstract]",
        "verboseLabel": "Liabilities and stockholders' equity / (deficit)"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesAssumed1": {
     "auth_ref": [
      "r100",
      "r101",
      "r102"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fair value of liabilities assumed in noncash investing or financing activities.",
        "label": "Liabilities Assumed",
        "verboseLabel": "Assumption of net liabilities from Business Combination"
       }
      }
     },
     "localname": "LiabilitiesAssumed1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesCurrent": {
     "auth_ref": [
      "r7",
      "r44",
      "r108",
      "r185",
      "r224",
      "r225",
      "r226",
      "r229",
      "r230",
      "r231",
      "r232",
      "r233",
      "r235",
      "r236",
      "r399",
      "r402",
      "r403",
      "r435",
      "r478",
      "r479",
      "r480"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total obligations incurred as part of normal operations that are expected to be paid during the following twelve months or within one business cycle, if longer.",
        "label": "Liabilities, Current",
        "totalLabel": "Total current liabilities"
       }
      }
     },
     "localname": "LiabilitiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesCurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities, Current [Abstract]",
        "terseLabel": "Current liabilities"
       }
      }
     },
     "localname": "LiabilitiesCurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LineOfCreditFacilityCommitmentFeeAmount": {
     "auth_ref": [
      "r41"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the fee for available but unused credit capacity under the credit facility.",
        "label": "Line of Credit Facility, Commitment Fee Amount",
        "terseLabel": "Line Of Credit commitment fee"
       }
      }
     },
     "localname": "LineOfCreditFacilityCommitmentFeeAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebt": {
     "auth_ref": [
      "r17",
      "r252",
      "r267",
      "r269",
      "r270",
      "r533",
      "r550"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, excluding unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation.",
        "label": "Long-term Debt",
        "terseLabel": "Long-term Debt",
        "totalLabel": "Long-Term Debt, Total"
       }
      }
     },
     "localname": "LongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtNoncurrent": {
     "auth_ref": [
      "r17"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, excluding unamortized premium (discount) and debt issuance cost, of long-term debt classified as noncurrent. Excludes lease obligation.",
        "label": "Long-term Debt, Excluding Current Maturities",
        "terseLabel": "Long-term debt",
        "totalLabel": "Long-Term Debt, Excluding Current Maturities, Total"
       }
      }
     },
     "localname": "LongTermDebtNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LossContingencyEstimateOfPossibleLoss": {
     "auth_ref": [
      "r216",
      "r217",
      "r222"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reflects the estimated amount of loss from the specified contingency as of the balance sheet date.",
        "label": "Loss Contingency, Estimate of Possible Loss",
        "verboseLabel": "Loss contingency estimate of possible loss"
       }
      }
     },
     "localname": "LossContingencyEstimateOfPossibleLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MachineryAndEquipmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tangible personal property used to produce goods and services, including, but is not limited to, tools, dies and molds, computer and office equipment.",
        "label": "Machinery and Equipment [Member]"
       }
      }
     },
     "localname": "MachineryAndEquipmentMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputExercisePriceMember": {
     "auth_ref": [
      "r422"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using agreed upon price for exchange of underlying asset.",
        "label": "Measurement Input, Exercise Price [Member]",
        "verboseLabel": "Exercise price [Member]"
       }
      }
     },
     "localname": "MeasurementInputExercisePriceMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfFairValueMeasurementsInputsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputExpectedDividendRateMember": {
     "auth_ref": [
      "r422"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using expected dividend rate to be paid to holder of share per year.",
        "label": "Measurement Input, Expected Dividend Rate [Member]",
        "verboseLabel": "Dividend yield [Member]"
       }
      }
     },
     "localname": "MeasurementInputExpectedDividendRateMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfFairValueMeasurementsInputsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputExpectedTermMember": {
     "auth_ref": [
      "r422"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using period financial instrument is expected to be outstanding. Excludes maturity date.",
        "label": "Measurement Input, Expected Term [Member]",
        "verboseLabel": "Expected term (years) [Member]"
       }
      }
     },
     "localname": "MeasurementInputExpectedTermMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfFairValueMeasurementsInputsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputOptionVolatilityMember": {
     "auth_ref": [
      "r422"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using rate at which price of option increases (decreases) for given set of returns.",
        "label": "Measurement Input, Option Volatility [Member]",
        "verboseLabel": "Expected volatility [Member]"
       }
      }
     },
     "localname": "MeasurementInputOptionVolatilityMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfFairValueMeasurementsInputsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputRiskFreeInterestRateMember": {
     "auth_ref": [
      "r422"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using interest rate on instrument with zero risk of financial loss.",
        "label": "Measurement Input, Risk Free Interest Rate [Member]",
        "verboseLabel": "Risk-free interest rate [Member]"
       }
      }
     },
     "localname": "MeasurementInputRiskFreeInterestRateMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfFairValueMeasurementsInputsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputSharePriceMember": {
     "auth_ref": [
      "r422"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using share price of saleable stock.",
        "label": "Measurement Input, Share Price [Member]",
        "verboseLabel": "Price of underlying common stock [Member]"
       }
      }
     },
     "localname": "MeasurementInputSharePriceMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfFairValueMeasurementsInputsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputTypeAxis": {
     "auth_ref": [
      "r422"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of measurement input used to determine value of asset and liability.",
        "label": "Measurement Input Type [Axis]"
       }
      }
     },
     "localname": "MeasurementInputTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfFairValueMeasurementsInputsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_MeasurementInputTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input used to determine value of asset and liability.",
        "label": "Measurement Input Type [Domain]"
       }
      }
     },
     "localname": "MeasurementInputTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfFairValueMeasurementsInputsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MoneyMarketFundsMember": {
     "auth_ref": [
      "r314"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fund that invests in short-term money-market instruments, for example, but not limited to, commercial paper, banker's acceptances, repurchase agreements, government securities, certificates of deposit, and other highly liquid securities.",
        "label": "Money Market Funds [Member]"
       }
      }
     },
     "localname": "MoneyMarketFundsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "auth_ref": [
      "r92"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from financing activities, including discontinued operations. Financing activity cash flows include obtaining resources from owners and providing them with a return on, and a return of, their investment; borrowing money and repaying amounts borrowed, or settling the obligation; and obtaining and paying for other resources obtained from creditors on long-term credit.",
        "label": "Net Cash Provided by (Used in) Financing Activities",
        "totalLabel": "Net cash provided by financing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Financing Activities [Abstract]",
        "verboseLabel": "Cash flows from financing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "auth_ref": [
      "r92"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from investing activities, including discontinued operations. Investing activity cash flows include making and collecting loans and acquiring and disposing of debt or equity instruments and property, plant, and equipment and other productive assets.",
        "label": "Net Cash Provided by (Used in) Investing Activities",
        "totalLabel": "Net cash used in investing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Investing Activities [Abstract]",
        "verboseLabel": "Cash flows from investing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "auth_ref": [
      "r92",
      "r94",
      "r97"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 0.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from operating activities, including discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities.",
        "label": "Net Cash Provided by (Used in) Operating Activities",
        "totalLabel": "Net cash used in operating activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Operating Activities [Abstract]",
        "verboseLabel": "Cash flows from operating activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetIncomeLoss": {
     "auth_ref": [
      "r2",
      "r59",
      "r62",
      "r67",
      "r71",
      "r97",
      "r108",
      "r117",
      "r119",
      "r120",
      "r122",
      "r123",
      "r127",
      "r128",
      "r135",
      "r156",
      "r159",
      "r162",
      "r165",
      "r168",
      "r185",
      "r224",
      "r225",
      "r226",
      "r229",
      "r230",
      "r231",
      "r232",
      "r233",
      "r235",
      "r236",
      "r418",
      "r435",
      "r538",
      "r557"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfComprehensiveLoss": {
       "order": 0.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      },
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent.",
        "label": "Net Income (Loss) Attributable to Parent",
        "negatedLabel": "Net loss attributable to common stockholder, basic and diluted",
        "terseLabel": "Net loss attributable to common stockholder, basic and diluted",
        "totalLabel": "Net loss",
        "verboseLabel": "Net loss"
       }
      }
     },
     "localname": "NetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfComprehensiveLoss",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit",
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareSummaryOfBasicAndDilutedNetIncomeLossPerOrdinaryShareDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy pertaining to new accounting pronouncements that may impact the entity's financial reporting. Includes, but is not limited to, quantification of the expected or actual impact.",
        "label": "New Accounting Pronouncements, Policy [Policy Text Block]",
        "verboseLabel": "Recently Adopted Accounting Pronouncements"
       }
      }
     },
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NoncashOrPartNoncashAcquisitionValueOfLiabilitiesAssumed1": {
     "auth_ref": [
      "r100",
      "r101",
      "r102"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsDetail": {
       "order": 0.0,
       "parentTag": "ck0001794621_NetContributionFromBusinessCombinationAndPipeFinancing",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total amount of [all] liabilities that an Entity assumes in acquiring a business or in consideration for an asset received in a noncash (or part noncash) acquisition. Noncash is defined as transactions during a period that affect recognized assets or liabilities but 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.",
        "label": "Noncash or Part Noncash Acquisition, Value of Liabilities Assumed",
        "negatedTerseLabel": "Less\u00a0non-cash\u00a0net liabilities assumed from CCAC",
        "totalLabel": "Noncash or Part Noncash Acquisition, Value of Liabilities Assumed, Total"
       }
      }
     },
     "localname": "NoncashOrPartNoncashAcquisitionValueOfLiabilitiesAssumed1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingCashFlowsDirectMethodAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Cash Flows, Direct Method [Abstract]"
       }
      }
     },
     "localname": "OperatingCashFlowsDirectMethodAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OperatingExpenseMember": {
     "auth_ref": [
      "r407"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing expenses associated with normal operations.",
        "label": "Operating Expense [Member]"
       }
      }
     },
     "localname": "OperatingExpenseMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OperatingExpenses": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Generally recurring costs associated with normal operations except for the portion of these expenses which can be clearly related to production and included in cost of sales or services. Includes selling, general and administrative expense.",
        "label": "Operating Expenses",
        "totalLabel": "Operating expenses"
       }
      }
     },
     "localname": "OperatingExpenses",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingExpensesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Expenses [Abstract]",
        "terseLabel": "Operating expenses:"
       }
      }
     },
     "localname": "OperatingExpensesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OperatingLeaseExpense": {
     "auth_ref": [
      "r458"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating lease expense. Excludes sublease income.",
        "label": "Operating Lease, Expense",
        "verboseLabel": "Operating lease expense"
       }
      }
     },
     "localname": "OperatingLeaseExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiability": {
     "auth_ref": [
      "r457"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfMaturitiesOfTheOperatingLeaseLiabilitiesDetailAlternate1": {
       "order": 1.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease.",
        "label": "Operating Lease, Liability",
        "terseLabel": "Total lease liabilities",
        "totalLabel": "Operating Lease, Liability, Total"
       }
      }
     },
     "localname": "OperatingLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfMaturitiesOfTheOperatingLeaseLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiabilityCurrent": {
     "auth_ref": [
      "r457"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherLiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease, classified as current.",
        "label": "Operating Lease, Liability, Current",
        "terseLabel": "Lease liability",
        "verboseLabel": "Operating lease liability current"
       }
      }
     },
     "localname": "OperatingLeaseLiabilityCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiabilityNoncurrent": {
     "auth_ref": [
      "r457"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermLiabilitiesScheduleOfOtherNonCurrentLiabilitiesDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_OtherLiabilitiesNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease, classified as noncurrent.",
        "label": "Operating Lease, Liability, Noncurrent",
        "terseLabel": "Other long-term liabilities"
       }
      }
     },
     "localname": "OperatingLeaseLiabilityNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermLiabilitiesScheduleOfOtherNonCurrentLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeasePayments": {
     "auth_ref": [
      "r459",
      "r462"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use.",
        "label": "Operating Lease, Payments",
        "verboseLabel": "Operating cash flows from operating leases"
       }
      }
     },
     "localname": "OperatingLeasePayments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfSupplementalCashFlowInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "auth_ref": [
      "r456"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's right to use underlying asset under operating lease.",
        "label": "Operating Lease, Right-of-Use Asset",
        "verboseLabel": "Operating lease right-of-use asset"
       }
      }
     },
     "localname": "OperatingLeaseRightOfUseAsset",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/LeasesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent": {
     "auth_ref": [
      "r464",
      "r467"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average discount rate for operating lease calculated at point in time.",
        "label": "Operating Lease, Weighted Average Discount Rate, Percent",
        "verboseLabel": "Operating leases"
       }
      }
     },
     "localname": "OperatingLeaseWeightedAverageDiscountRatePercent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfSupplementalCashFlowInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1": {
     "auth_ref": [
      "r463",
      "r467"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Operating Lease, Weighted Average Remaining Lease Term",
        "verboseLabel": "Operating leases"
       }
      }
     },
     "localname": "OperatingLeaseWeightedAverageRemainingLeaseTerm1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfSupplementalCashFlowInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_OperatingLeasesFutureMinimumPaymentsDue": {
     "auth_ref": [
      "r451",
      "r453"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of required minimum rental payments for leases having an initial or remaining non-cancelable letter-terms in excess of one year.",
        "label": "Operating Leases, Future Minimum Payments Due",
        "verboseLabel": "Total minimum payments"
       }
      }
     },
     "localname": "OperatingLeasesFutureMinimumPaymentsDue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfFutureMinimumRentalPaymentsForOperatingLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent": {
     "auth_ref": [
      "r451",
      "r453"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of required minimum rental payments for operating leases having an initial or remaining non-cancelable lease term in excess of one year due in the next fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date.",
        "label": "Operating Leases, Future Minimum Payments Due, Next Twelve Months",
        "verboseLabel": "2022"
       }
      }
     },
     "localname": "OperatingLeasesFutureMinimumPaymentsDueCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfFutureMinimumRentalPaymentsForOperatingLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears": {
     "auth_ref": [
      "r451",
      "r453"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of required minimum rental payments for operating leases having an initial or remaining non-cancelable lease term in excess of one year due in the second fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date.",
        "label": "Operating Leases, Future Minimum Payments, Due in Two Years",
        "verboseLabel": "2023"
       }
      }
     },
     "localname": "OperatingLeasesFutureMinimumPaymentsDueInTwoYears",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesSummaryOfFutureMinimumRentalPaymentsForOperatingLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeasesRentExpenseNet": {
     "auth_ref": [
      "r452"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Rental expense for the reporting period incurred under operating leases, including minimum and any contingent rent expense, net of related sublease income.",
        "label": "Operating Leases, Rent Expense, Net",
        "verboseLabel": "Operating leases, rent expense, net"
       }
      }
     },
     "localname": "OperatingLeasesRentExpenseNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OptionIndexedToIssuersEquityTypeAxis": {
     "auth_ref": [
      "r277",
      "r409",
      "r410",
      "r413"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of freestanding contracts issued by an entity that are indexed to, and potentially settled in, an entity's own stock.",
        "label": "Option Indexed to Issuer's Equity, Type [Axis]"
       }
      }
     },
     "localname": "OptionIndexedToIssuersEquityTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OptionIndexedToIssuersEquityTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Description of the type of freestanding contract issued by a Company that is indexed to, and potentially settled in, a Company's own stock. Specifically, the pertinent rights and privileges of the securities outstanding.",
        "label": "Option Indexed to Issuer's Equity, Type [Domain]"
       }
      }
     },
     "localname": "OptionIndexedToIssuersEquityTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherAssetsNoncurrent": {
     "auth_ref": [
      "r12"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermAssetsScheduleOfOtherLongTermAssetsDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of noncurrent assets classified as other.",
        "label": "Other Assets, Noncurrent",
        "terseLabel": "Other long-term assets",
        "totalLabel": "Total other long-term assets"
       }
      }
     },
     "localname": "OtherAssetsNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets",
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermAssetsScheduleOfOtherLongTermAssetsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherAssetsNoncurrentDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Assets, Noncurrent Disclosure [Abstract]"
       }
      }
     },
     "localname": "OtherAssetsNoncurrentDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent": {
     "auth_ref": [
      "r396",
      "r397",
      "r400"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfComprehensiveLoss": {
       "order": 1.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax and reclassification adjustments of gain (loss) on foreign currency translation adjustments, foreign currency transactions designated and effective as economic hedges of a net investment in a foreign entity and intra-entity foreign currency transactions that are of a long-term-investment nature, attributable to parent entity.",
        "label": "Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Adjustment, Net of Tax, Portion Attributable to Parent",
        "terseLabel": "Foreign currency translation loss",
        "totalLabel": "Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Adjustment, Net of Tax, Portion Attributable to Parent, Total"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent": {
     "auth_ref": [
      "r60",
      "r63",
      "r396",
      "r397",
      "r400"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of other comprehensive income (loss) attributable to parent entity.",
        "label": "Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent",
        "terseLabel": "Other comprehensive gain (loss)",
        "totalLabel": "Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent, Total"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent [Abstract]",
        "terseLabel": "Other comprehensive loss (net of tax):"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfComprehensiveLoss"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherCurrentLiabilitiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of other current liabilities.",
        "label": "Other Current Liabilities [Table Text Block]",
        "terseLabel": "Schedule of Other Current Liabilities"
       }
      }
     },
     "localname": "OtherCurrentLiabilitiesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherIncomeAndExpensesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Income and Expenses [Abstract]",
        "verboseLabel": "Other income (expense):"
       }
      }
     },
     "localname": "OtherIncomeAndExpensesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherLiabilitiesCurrent": {
     "auth_ref": [
      "r43",
      "r480"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      },
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities classified as other, due within one year or the normal operating cycle, if longer.",
        "label": "Other Liabilities, Current",
        "terseLabel": "Other current liabilities",
        "totalLabel": "Total other current liabilities"
       }
      }
     },
     "localname": "OtherLiabilitiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets",
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherLiabilitiesCurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Liabilities, Current [Abstract]"
       }
      }
     },
     "localname": "OtherLiabilitiesCurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherLiabilitiesNoncurrent": {
     "auth_ref": [
      "r49"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      },
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermLiabilitiesScheduleOfOtherNonCurrentLiabilitiesDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities classified as other, due after one year or the normal operating cycle, if longer.",
        "label": "Other Liabilities, Noncurrent",
        "terseLabel": "Other long-term liabilities",
        "totalLabel": "Total other long-term liabilities"
       }
      }
     },
     "localname": "OtherLiabilitiesNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets",
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermLiabilitiesScheduleOfOtherNonCurrentLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherLiabilitiesNoncurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Liabilities, Noncurrent [Abstract]"
       }
      }
     },
     "localname": "OtherLiabilitiesNoncurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherNoncashIncomeExpense": {
     "auth_ref": [
      "r97"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of income (expense) included in net income that results in no cash inflow (outflow), classified as other.",
        "label": "Other Noncash Income (Expense)",
        "negatedLabel": "Other",
        "terseLabel": "Other",
        "totalLabel": "Other Noncash Income (Expense), Total"
       }
      }
     },
     "localname": "OtherNoncashIncomeExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherNoncurrentAssetsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other noncurrent assets.",
        "label": "Other Noncurrent Assets [Member]"
       }
      }
     },
     "localname": "OtherNoncurrentAssetsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherNoncurrentLiabilitiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of other noncurrent liabilities.",
        "label": "Other Noncurrent Liabilities [Table Text Block]",
        "terseLabel": "Schedule of Other Non Current Liabilities"
       }
      }
     },
     "localname": "OtherNoncurrentLiabilitiesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermLiabilitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherNonoperatingExpense": {
     "auth_ref": [
      "r83"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense related to nonoperating activities, classified as other.",
        "label": "Other Nonoperating Expense",
        "negatedLabel": "Other expense, net"
       }
      }
     },
     "localname": "OtherNonoperatingExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherPrepaidExpenseCurrent": {
     "auth_ref": [
      "r38",
      "r201"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/PrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherAssetsCurrentDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_PrepaidExpenseAndOtherAssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of asset related to consideration paid in advance for other costs that provide economic benefits within a future period of one year or the normal operating cycle, if longer.",
        "label": "Other Prepaid Expense, Current",
        "terseLabel": "Prepaid other"
       }
      }
     },
     "localname": "OtherPrepaidExpenseCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherAssetsCurrentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentGuaranteeMember": {
     "auth_ref": [
      "r221",
      "r223"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A contract that contingently requires the guarantor to make payments (either in cash, financial instrument, other assets, shares of its stock, or provision of services) to the guaranteed party based on changes in an underlying that is related to an asset, a liability, or an equity security of the guaranteed party.",
        "label": "Payment Guarantee [Member]",
        "terseLabel": "Contingently returnable shares from GEM agreement"
       }
      }
     },
     "localname": "PaymentGuaranteeMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PaymentsForRepurchaseOfWarrants": {
     "auth_ref": [
      "r88"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate amount paid by the entity to reacquire the right to purchase equity shares at a predetermined price, usually issued together with corporate debt.",
        "label": "Payments for Repurchase of Warrants",
        "terseLabel": "Warrants exercised for cash"
       }
      }
     },
     "localname": "PaymentsForRepurchaseOfWarrants",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfStockIssuanceCosts": {
     "auth_ref": [
      "r90"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow for cost incurred directly with the issuance of an equity security.",
        "label": "Payments of Stock Issuance Costs",
        "negatedLabel": "Payments of offering costs",
        "terseLabel": "Payments of offering costs"
       }
      }
     },
     "localname": "PaymentsOfStockIssuanceCosts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "auth_ref": [
      "r85"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow associated with the acquisition of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale; includes cash outflows to pay for construction of self-constructed assets.",
        "label": "Payments to Acquire Property, Plant, and Equipment",
        "negatedLabel": "Purchases of property and equipment",
        "terseLabel": "Purchases of property and equipment",
        "totalLabel": "Payments to Acquire Property, Plant, and Equipment, Total"
       }
      }
     },
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PlanNameAxis": {
     "auth_ref": [
      "r332",
      "r333",
      "r334",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r351",
      "r352",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by plan name for share-based payment arrangement.",
        "label": "Plan Name [Axis]"
       }
      }
     },
     "localname": "PlanNameAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PlanNameDomain": {
     "auth_ref": [
      "r332",
      "r333",
      "r334",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r351",
      "r352",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan name for share-based payment arrangement.",
        "label": "Plan Name [Domain]"
       }
      }
     },
     "localname": "PlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PreferredStockConvertibleConversionRatio": {
     "auth_ref": [
      "r284"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of common shares issuable upon conversion for each share of preferred stock to be converted.",
        "label": "Preferred Stock, Convertible, Conversion Ratio"
       }
      }
     },
     "localname": "PreferredStockConvertibleConversionRatio",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_PreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred shares may provide a preferential dividend to the dividend on common stock and may take precedence over common stock in the event of a liquidation. Preferred shares typically represent an ownership interest in the company.",
        "label": "Preferred Stock [Member]"
       }
      }
     },
     "localname": "PreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockByClassDetail",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PreferredStockSharesAuthorized": {
     "auth_ref": [
      "r21"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The maximum number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) permitted to be issued by an entity's charter and bylaws.",
        "label": "Preferred Stock, Shares Authorized"
       }
      }
     },
     "localname": "PreferredStockSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_PrepaidExpenseAndOtherAssetsCurrent": {
     "auth_ref": [
      "r39"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      },
      "http://quanergy.com/20220630/taxonomy/role/PrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherAssetsCurrentDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of asset related to consideration paid in advance for costs that provide economic benefits in future periods, and amount of other assets that are expected to be realized or consumed within one year or the normal operating cycle, if longer.",
        "label": "Prepaid Expense and Other Assets, Current",
        "terseLabel": "Prepaid expenses and other current assets",
        "totalLabel": "Total prepaid expenses and other current assets"
       }
      }
     },
     "localname": "PrepaidExpenseAndOtherAssetsCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail",
      "http://quanergy.com/20220630/taxonomy/role/PrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherAssetsCurrentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PrepaidExpenseAndOtherAssetsCurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prepaid Expense and Other Assets, Current [Abstract]"
       }
      }
     },
     "localname": "PrepaidExpenseAndOtherAssetsCurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing prepaid expenses and other current assets.",
        "label": "Prepaid Expenses and Other Current Assets [Member]"
       }
      }
     },
     "localname": "PrepaidExpensesAndOtherCurrentAssetsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PrepaidInsurance": {
     "auth_ref": [
      "r5",
      "r200",
      "r201"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/PrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherAssetsCurrentDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_PrepaidExpenseAndOtherAssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of asset related to consideration paid in advance for insurance that provides economic benefits within a future period of one year or the normal operating cycle, if longer.",
        "label": "Prepaid Insurance",
        "terseLabel": "Prepaid business insurance"
       }
      }
     },
     "localname": "PrepaidInsurance",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PrepaidExpensesAndOtherCurrentAssetsScheduleOfPrepaidExpensesAndOtherAssetsCurrentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromConvertibleDebt": {
     "auth_ref": [
      "r87"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from the issuance of a long-term debt instrument which can be exchanged for a specified amount of another security, typically the entity's common stock, at the option of the issuer or the holder.",
        "label": "Proceeds from Convertible Debt",
        "terseLabel": "Proceeds From Convertible Debt",
        "verboseLabel": "Proceeds from issuance of convertible notes"
       }
      }
     },
     "localname": "ProceedsFromConvertibleDebt",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfPrivatePlacement": {
     "auth_ref": [
      "r86"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the amount received from entity's raising of capital via private rather than public placement.",
        "label": "Proceeds from Issuance of Private Placement"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfPrivatePlacement",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromRelatedPartyDebt": {
     "auth_ref": [
      "r87"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from a long-term borrowing made from related parties where one party can exercise control or significant influence over another party; including affiliates, owners or officers and their immediate families, pension trusts, and so forth. Alternate caption: Proceeds from Advances from Affiliates.",
        "label": "Proceeds from Related Party Debt",
        "terseLabel": "Proceeds from issuance of convertible notes to related parties"
       }
      }
     },
     "localname": "ProceedsFromRelatedPartyDebt",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfRestrictedInvestments": {
     "auth_ref": [
      "r84"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsDetail": {
       "order": 0.0,
       "parentTag": "ck0001794621_NetProceedsFromBusinessCombinationAndPipeFinancing",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the sale of investments that are pledged or subject to withdrawal restrictions during the period.",
        "label": "Proceeds from Sale of Restricted Investments",
        "terseLabel": "Cash - CCAC's trust and cash (net of redemption)"
       }
      }
     },
     "localname": "ProceedsFromSaleOfRestrictedInvestments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromShortTermDebt": {
     "auth_ref": [
      "r87"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from a borrowing having initial term of repayment within one year or the normal operating cycle, if longer.",
        "label": "Proceeds from Short-Term Debt",
        "terseLabel": "Draw down amount on GEM Agreement",
        "totalLabel": "Proceeds from Short-Term Debt, Total"
       }
      }
     },
     "localname": "ProceedsFromShortTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromStockOptionsExercised": {
     "auth_ref": [
      "r86",
      "r368"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from exercise of option under share-based payment arrangement.",
        "label": "Proceeds from Stock Options Exercised",
        "terseLabel": "Proceeds from exercise of stock options"
       }
      }
     },
     "localname": "ProceedsFromStockOptionsExercised",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromWarrantExercises": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the amount received from holders exercising their stock warrants.",
        "label": "Proceeds from Warrant Exercises",
        "terseLabel": "Proceeds from exercise of common stock warrants"
       }
      }
     },
     "localname": "ProceedsFromWarrantExercises",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Abstract]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentByTypeAxis": {
     "auth_ref": [
      "r206"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of long-lived, physical assets used to produce goods and services and not intended for resale.",
        "label": "Long-Lived Tangible Asset [Axis]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentByTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentDisclosureTextBlock": {
     "auth_ref": [
      "r208",
      "r583",
      "r584",
      "r585"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for long-lived, physical asset used in normal conduct of business and not intended for resale. Includes, but is not limited to, work of art, historical treasure, and similar asset classified as collections.",
        "label": "Property, Plant and Equipment Disclosure [Text Block]",
        "terseLabel": "Property and Equipment, Net"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNet"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentGross": {
     "auth_ref": [
      "r10",
      "r204"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before accumulated depreciation, depletion and amortization of physical assets used in the normal conduct of business and not intended for resale. Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, and furniture and fixtures.",
        "label": "Property, Plant and Equipment, Gross",
        "periodEndLabel": "Property, Plant and Equipment, Gross, Ending Balance",
        "periodStartLabel": "Property, Plant and Equipment, Gross, Beginning Balance",
        "terseLabel": "Property, Plant and Equipment, Gross",
        "totalLabel": "Property, Plant and Equipment, Gross, Total"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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.",
        "label": "Property, Plant and Equipment [Line Items]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentNet": {
     "auth_ref": [
      "r206",
      "r480",
      "r543",
      "r554"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after accumulated depreciation, depletion and amortization of physical assets used in the normal conduct of business to produce goods and services and not intended for resale. Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, and furniture and fixtures.",
        "label": "Property, Plant and Equipment, Net",
        "terseLabel": "Property and equipment, net",
        "totalLabel": "Total property and equipment, net"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets",
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentTextBlock": {
     "auth_ref": [
      "r206"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of physical assets used in the normal conduct of business and not intended for resale. Includes, but is not limited to, balances by class of assets, depreciation and depletion expense and method used, including composite depreciation, and accumulated deprecation.",
        "label": "Property, Plant and Equipment [Table Text Block]",
        "terseLabel": "Schedule of Property Plant and Equipment"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentTypeDomain": {
     "auth_ref": [
      "r204"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Listing of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale. Examples include land, buildings, machinery and equipment, and other types of furniture and equipment including, but not limited to, office equipment, furniture and fixtures, and computer equipment and software.",
        "label": "Long-Lived Tangible Asset [Domain]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RelatedPartyDomain": {
     "auth_ref": [
      "r321",
      "r473",
      "r474"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Related parties include affiliates; other entities for which investments are accounted for by the equity method by the entity; trusts for benefit of employees; and principal owners, management, and members of immediate families. It also may include other parties with which the entity may control or can significantly influence the management or operating policies of the other to an extent that one of the transacting parties might be prevented from fully pursuing its own separate interests.",
        "label": "Related Party [Domain]",
        "terseLabel": "Related Party [Domain]"
       }
      }
     },
     "localname": "RelatedPartyDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RelatedPartyTransactionAxis": {
     "auth_ref": [
      "r321",
      "r473",
      "r474",
      "r475"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of related party transaction.",
        "label": "Related Party Transaction [Axis]"
       }
      }
     },
     "localname": "RelatedPartyTransactionAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RelatedPartyTransactionDomain": {
     "auth_ref": [
      "r321"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Transaction between related party.",
        "label": "Related Party Transaction [Domain]"
       }
      }
     },
     "localname": "RelatedPartyTransactionDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty": {
     "auth_ref": [
      "r473"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Expenses recognized resulting from transactions (excluding transactions that are eliminated in consolidated or combined financial statements) with related party.",
        "label": "Related Party Transaction, Expenses from Transactions with Related Party",
        "verboseLabel": "Expenses incurred under the arrangement"
       }
      }
     },
     "localname": "RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Purchases during the period (excluding transactions that are eliminated in consolidated or combined financial statements) with related party.",
        "label": "Related Party Transaction, Purchases from Related Party",
        "verboseLabel": "Total purchase amount of equipment"
       }
      }
     },
     "localname": "RelatedPartyTransactionPurchasesFromRelatedParty",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RelatedPartyTransactionRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identify the stated interest rate per the agreement, for example, leasing and debt arrangements between related parties.",
        "label": "Related Party Transaction, Rate",
        "verboseLabel": "Interest rate"
       }
      }
     },
     "localname": "RelatedPartyTransactionRate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_RelatedPartyTransactionsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transactions [Abstract]"
       }
      }
     },
     "localname": "RelatedPartyTransactionsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RelatedPartyTransactionsByRelatedPartyAxis": {
     "auth_ref": [
      "r321",
      "r473",
      "r475",
      "r517",
      "r518",
      "r519",
      "r520",
      "r521",
      "r522",
      "r523",
      "r524",
      "r525",
      "r526",
      "r527",
      "r528"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of related party. Related parties include, but not limited to, affiliates; other entities for which investments are accounted for by the equity method by the entity; trusts for benefit of employees; and principal owners, management, and members of immediate families. It also may include other parties with which the entity may control or can significantly influence the management or operating policies of the other to an extent that one of the transacting parties might be prevented from fully pursuing its own separate interests.",
        "label": "Related Party [Axis]",
        "terseLabel": "Related Party [Axis]"
       }
      }
     },
     "localname": "RelatedPartyTransactionsByRelatedPartyAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RelatedPartyTransactionsDisclosureTextBlock": {
     "auth_ref": [
      "r471",
      "r472",
      "r474",
      "r476",
      "r477"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for related party transactions. Examples of related party transactions include transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners; and (d) affiliates.",
        "label": "Related Party Transactions Disclosure [Text Block]",
        "terseLabel": "Related Party Transactions"
       }
      }
     },
     "localname": "RelatedPartyTransactionsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactions"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RepaymentsOfNotesPayable": {
     "auth_ref": [
      "r89"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow for a borrowing supported by a written promise to pay an obligation.",
        "label": "Repayments of Notes Payable",
        "negatedLabel": "Repayment of 2022 Notes",
        "terseLabel": "Repayment of 2022 Notes"
       }
      }
     },
     "localname": "RepaymentsOfNotesPayable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ResearchAndDevelopmentExpense": {
     "auth_ref": [
      "r376",
      "r515",
      "r597"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations": {
       "order": 0.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate costs incurred (1) in a planned search or critical investigation aimed at discovery of new knowledge with the hope that such knowledge will be useful in developing a new product or service, a new process or technique, or in bringing about a significant improvement to an existing product or process; or (2) to translate research findings or other knowledge into a plan or design for a new product or process or for a significant improvement to an existing product or process whether intended for sale or the entity's use, during the reporting period charged to research and development projects, including the costs of developing computer software up to the point in time of achieving technological feasibility, and costs allocated in accounting for a business combination to in-process projects deemed to have no alternative future use.",
        "label": "Research and Development Expense",
        "terseLabel": "Research and development",
        "totalLabel": "Research and Development Expense, Total"
       }
      }
     },
     "localname": "ResearchAndDevelopmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ResearchAndDevelopmentExpenseMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption in which the reported facts about research and development expense have been included.",
        "label": "Research and Development Expense [Member]",
        "terseLabel": "Research and development [Member]"
       }
      }
     },
     "localname": "ResearchAndDevelopmentExpenseMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementExpensedAndCapitalizedAmountDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RestrictedCashCurrent": {
     "auth_ref": [
      "r9",
      "r103"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash restricted as to withdrawal or usage, classified as current. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits.",
        "label": "Restricted Cash, Current",
        "terseLabel": "Restricted cash"
       }
      }
     },
     "localname": "RestrictedCashCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RestrictedStockUnitsRSUMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share instrument which is convertible to stock or an equivalent amount of cash, after a specified period of time or when specified performance conditions are met.",
        "label": "Restricted Stock Units (RSUs) [Member]"
       }
      }
     },
     "localname": "RestrictedStockUnitsRSUMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementRestrictedStockAndRestrictedStockUnitActivityDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RestructuringReserveCurrent": {
     "auth_ref": [
      "r16",
      "r210",
      "r212"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_OtherLiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of known and estimated obligations associated with exit from or disposal of business activities or restructurings pursuant to a duly authorized plan, which are expected to be paid in the next twelve months or in the normal operating cycle if longer. Costs of such activities include those for one-time termination benefits, termination of an operating lease or other contract, consolidating or closing facilities, relocating employees, and costs associated with an ongoing benefit arrangement, but excludes costs associated with the retirement of a long-lived asset.",
        "label": "Restructuring Reserve, Current",
        "terseLabel": "Restructuring liability"
       }
      }
     },
     "localname": "RestructuringReserveCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "auth_ref": [
      "r24",
      "r306",
      "r480",
      "r552",
      "r571",
      "r576"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings (Accumulated Deficit)",
        "totalLabel": "Retained Earnings (Accumulated Deficit), Total",
        "verboseLabel": "Accumulated deficit"
       }
      }
     },
     "localname": "RetainedEarningsAccumulatedDeficit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RetainedEarningsMember": {
     "auth_ref": [
      "r0",
      "r114",
      "r115",
      "r116",
      "r118",
      "r125",
      "r128",
      "r186",
      "r369",
      "r370",
      "r371",
      "r381",
      "r382",
      "r416",
      "r567",
      "r569"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings [Member]",
        "verboseLabel": "Accumulated Deficit [Member]"
       }
      }
     },
     "localname": "RetainedEarningsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax": {
     "auth_ref": [
      "r152",
      "r153",
      "r158",
      "r163",
      "r164",
      "r170",
      "r171",
      "r174",
      "r309",
      "r310",
      "r516"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations": {
       "order": 0.0,
       "parentTag": "us-gaap_GrossProfit",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, excluding tax collected from customer, of revenue from satisfaction of performance obligation by transferring promised good or service to customer. Tax collected from customer is tax assessed by governmental authority that is both imposed on and concurrent with specific revenue-producing transaction, including, but not limited to, sales, use, value added and excise.",
        "label": "Revenue from Contract with Customer, Excluding Assessed Tax",
        "terseLabel": "Net sales"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerExcludingAssessedTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RevenueFromRelatedParties": {
     "auth_ref": [
      "r76",
      "r227",
      "r229",
      "r230",
      "r234",
      "r235",
      "r236",
      "r580"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of revenue, fees and commissions earned from transactions between (a) a parent company and its subsidiaries; (b) subsidiaries of a common parent; (c) an entity and trusts for the benefit of employees, for example, but not limited to, pension and profit-sharing trusts that are managed by or under the trusteeship of the entity's management; (d) an entity and its principal, owners, management, or members of their immediate families; and (e) affiliates.",
        "label": "Revenue from Related Parties",
        "verboseLabel": "Revenues"
       }
      }
     },
     "localname": "RevenueFromRelatedParties",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Revenues": {
     "auth_ref": [
      "r69",
      "r108",
      "r152",
      "r153",
      "r158",
      "r163",
      "r164",
      "r170",
      "r171",
      "r174",
      "r185",
      "r224",
      "r225",
      "r226",
      "r229",
      "r230",
      "r231",
      "r232",
      "r233",
      "r235",
      "r236",
      "r435",
      "r542"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of revenue recognized from goods sold, services rendered, insurance premiums, or other activities that constitute an earning process. Includes, but is not limited to, investment and interest income before deduction of interest expense when recognized as a component of revenue, and sales and trading gain (loss).",
        "label": "Revenues",
        "terseLabel": "Total net sales",
        "totalLabel": "Revenues, Total"
       }
      }
     },
     "localname": "Revenues",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/SegmentInformationAndGeographicInformationSummaryOfRevenueByGeographicalRegionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SaleOfStockNameOfTransactionDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sale of the entity's stock, including, but not limited to, initial public offering (IPO) and private placement.",
        "label": "Sale of Stock [Domain]",
        "terseLabel": "Sale of Stock [Domain]"
       }
      }
     },
     "localname": "SaleOfStockNameOfTransactionDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable": {
     "auth_ref": [
      "r139"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule for securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) in the future that were not included in the computation of diluted EPS because to do so would increase EPS amounts or decrease loss per share amounts for the period presented, by Antidilutive Securities.",
        "label": "Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table]"
       }
      }
     },
     "localname": "ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock": {
     "auth_ref": [
      "r139"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) in the future that were not included in the computation of diluted EPS because to do so would increase EPS amounts or decrease loss per share amounts for the period presented, by antidilutive securities.",
        "label": "Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table Text Block]",
        "terseLabel": "Schedule Of Antidilutive Securities Excluded From Computation Of Earnings Per share"
       }
      }
     },
     "localname": "ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "auth_ref": [
      "r138"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations.",
        "label": "Schedule of Earnings Per Share, Basic and Diluted [Table Text Block]",
        "verboseLabel": "Summary of Basic and Diluted Net Income (Loss) Per Ordinary Share"
       }
      }
     },
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable": {
     "auth_ref": [
      "r361",
      "r372"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about amount recognized for award under share-based payment arrangement. Includes, but is not limited to, amount expensed in statement of income or comprehensive income, amount capitalized in statement of financial position, and corresponding reporting line item in financial statements.",
        "label": "Share-based Payment Arrangement, Expensed and Capitalized, Amount [Table]"
       }
      }
     },
     "localname": "ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementExpensedAndCapitalizedAmountDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock": {
     "auth_ref": [
      "r361"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of allocation of amount expensed and capitalized for award under share-based payment arrangement to statement of income or comprehensive income and statement of financial position. Includes, but is not limited to, corresponding line item in financial statement.",
        "label": "Share-based Payment Arrangement, Expensed and Capitalized, Amount [Table Text Block]",
        "verboseLabel": "Summary of Share-Based Payment Arrangement, Expensed And Capitalized, Amount"
       }
      }
     },
     "localname": "ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesTableTextBlock": {
     "auth_ref": [
      "r454"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of future minimum payments required in the aggregate and for each of the five succeeding fiscal years for operating leases having initial or remaining noncancelable lease terms in excess of one year and the total minimum rentals to be received in the future under noncancelable subleases as of the balance sheet date.",
        "label": "Schedule of Future Minimum Rental Payments for Operating Leases [Table Text Block]",
        "verboseLabel": "Summary of Future Minimum Rental Payments For Operating Leases"
       }
      }
     },
     "localname": "ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/LeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfInventoryCurrentTableTextBlock": {
     "auth_ref": [
      "r8",
      "r34",
      "r35",
      "r36"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the carrying amount as of the balance sheet date of merchandise, goods, commodities, or supplies held for future sale or to be used in manufacturing, servicing or production process.",
        "label": "Schedule of Inventory, Current [Table Text Block]",
        "terseLabel": "Schedule of Inventory"
       }
      }
     },
     "localname": "ScheduleOfInventoryCurrentTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/InventoryTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfOtherAssetsNoncurrentTextBlock": {
     "auth_ref": [
      "r12"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of noncurrent assets.",
        "label": "Schedule of Other Assets, Noncurrent [Table Text Block]",
        "terseLabel": "Schedule of Other Long Term Assets"
       }
      }
     },
     "localname": "ScheduleOfOtherAssetsNoncurrentTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermAssetsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfPropertyPlantAndEquipmentTable": {
     "auth_ref": [
      "r206"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about physical assets used in the normal conduct of business and not intended for resale. Includes, but is not limited to, balances by class of assets, depreciation and depletion expense and method used, including composite depreciation, and accumulated deprecation.",
        "label": "Property, Plant and Equipment [Table]"
       }
      }
     },
     "localname": "ScheduleOfPropertyPlantAndEquipmentTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/PropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsByGeographicalAreasTableTextBlock": {
     "auth_ref": [
      "r77",
      "r173"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of information concerning material long-lived assets (excluding financial instruments, customer relationships with financial institutions, mortgage and other servicing rights, deferred policy acquisition costs, and deferred taxes assets) located in identified geographic areas and/or the amount of revenue from external customers attributed to that country from which revenue is material. An entity may also provide subtotals of geographic information about groups of countries.",
        "label": "Schedule of Revenue from External Customers and Long-Lived Assets, by Geographical Areas [Table Text Block]",
        "terseLabel": "Summary Of Revenue By Geographical Region"
       }
      }
     },
     "localname": "ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsByGeographicalAreasTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/SegmentInformationAndGeographicInformationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "auth_ref": [
      "r327",
      "r329",
      "r332",
      "r333",
      "r334",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r351",
      "r352",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about share-based payment arrangement.",
        "label": "Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table]"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock": {
     "auth_ref": [
      "r335",
      "r350",
      "r353"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure for stock option plans. Includes, but is not limited to, outstanding awards at beginning and end of year, grants, exercises, forfeitures, and weighted-average grant date fair value.",
        "label": "Share-based Payment Arrangement, Option, Activity [Table Text Block]",
        "verboseLabel": "Summary of Share-Based Payment Arrangement, Option, Activity"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of the number and weighted-average grant date fair value for restricted stock and restricted stock units that were outstanding at the beginning and end of the year, and the number of restricted stock and restricted stock units that were granted, vested, or forfeited during the year.",
        "label": "Share-based Payment Arrangement, Restricted Stock and Restricted Stock Unit, Activity [Table Text Block]",
        "verboseLabel": "Summary of Share-Based Payment Arrangement, Restricted Stock And Restricted Stock Unit, Activity"
       }
      }
     },
     "localname": "ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfStockByClassTable": {
     "auth_ref": [
      "r19",
      "r21",
      "r22",
      "r105",
      "r146",
      "r147",
      "r278",
      "r280",
      "r281",
      "r282",
      "r283",
      "r285",
      "r286",
      "r288",
      "r292",
      "r297",
      "r299",
      "r300",
      "r301",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule detailing information related to equity by class of stock. Class of stock includes common, convertible, and preferred stocks which are not redeemable or redeemable solely at the option of the issuer. It also includes preferred stock with redemption features that are solely within the control of the issuer and mandatorily redeemable stock if redemption is required to occur only upon liquidation or termination of the reporting entity.",
        "label": "Schedule of Stock by Class [Table]"
       }
      }
     },
     "localname": "ScheduleOfStockByClassTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockByClassDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfStockByClassTextBlock": {
     "auth_ref": [
      "r20",
      "r21",
      "r22",
      "r279",
      "r280",
      "r281",
      "r300",
      "r301",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of an entity's stock, including par or stated value per share, number and dollar amount of share subscriptions, shares authorized, shares issued, shares outstanding, number and dollar amount of shares held in an employee trust, dividend per share, total dividends, share conversion features, par value plus additional paid in capital, the value of treasury stock and other information necessary to a fair presentation, and EPS information. Stock by class includes common, convertible, and preferred stocks which are not redeemable or redeemable solely at the option of the issuer. Includes preferred stock with redemption features that are solely within the control of the issuer and mandatorily redeemable stock if redemption is required to occur only upon liquidation or termination of the reporting entity. If more than one issue is outstanding, state the title of each issue and the corresponding dollar amount; dollar amount of any shares subscribed but unissued and the deduction of subscriptions receivable there from; number of shares authorized, issued, and outstanding.",
        "label": "Schedule of Stock by Class [Table Text Block]",
        "terseLabel": "Summary of Stock by Class"
       }
      }
     },
     "localname": "ScheduleOfStockByClassTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfStockholdersEquityNoteWarrantsOrRightsTextBlock": {
     "auth_ref": [
      "r307",
      "r330"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of warrants or rights issued. Warrants and rights outstanding are derivative securities that give the holder the right to purchase securities (usually equity) from the issuer at a specific price within a certain time frame. Warrants are often included in a new debt issue to entice investors by a higher return potential. The main difference between warrants and call options is that warrants are issued and guaranteed by the company, whereas options are exchange instruments and are not issued by the company. Also, the lifetime of a warrant is often measured in years, while the lifetime of a typical option is measured in months. Disclose the title of issue of securities called for by warrants and rights outstanding, the aggregate amount of securities called for by warrants and rights outstanding, the date from which the warrants or rights are exercisable, and the price at which the warrant or right is exercisable.",
        "label": "Schedule of Stockholders' Equity Note, Warrants or Rights [Table Text Block]",
        "terseLabel": "Summary of common stock warrants outstanding to purchase shares of common stock"
       }
      }
     },
     "localname": "ScheduleOfStockholdersEquityNoteWarrantsOrRightsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SecurityDeposit": {
     "auth_ref": [
      "r12"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermAssetsScheduleOfOtherLongTermAssetsDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_OtherAssetsNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of an asset, typically cash, provided to a counterparty to provide certain assurance of performance by the entity pursuant to the terms of a written or oral agreement, such as a lease.",
        "label": "Security Deposit",
        "terseLabel": "Security deposit"
       }
      }
     },
     "localname": "SecurityDeposit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/OtherLongTermAssetsScheduleOfOtherLongTermAssetsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SegmentReportingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting [Abstract]"
       }
      }
     },
     "localname": "SegmentReportingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_SegmentReportingDisclosureTextBlock": {
     "auth_ref": [
      "r149",
      "r150",
      "r151",
      "r156",
      "r157",
      "r162",
      "r166",
      "r167",
      "r168",
      "r169",
      "r170",
      "r173",
      "r174",
      "r175"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for reporting segments including data and tables. Reportable segments include those that meet any of the following quantitative thresholds a) it's reported revenue, including sales to external customers and intersegment sales or transfers is 10 percent or more of the combined revenue, internal and external, of all operating segments b) the absolute amount of its reported profit or loss is 10 percent or more of the greater, in absolute amount of 1) the combined reported profit of all operating segments that did not report a loss or 2) the combined reported loss of all operating segments that did report a loss c) its assets are 10 percent or more of the combined assets of all operating segments.",
        "label": "Segment Reporting Disclosure [Text Block]",
        "terseLabel": "Segment Information and Geographic Information"
       }
      }
     },
     "localname": "SegmentReportingDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/SegmentInformationAndGeographicInformation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SellingAndMarketingExpense": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations": {
       "order": 1.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate total amount of expenses directly related to the marketing or selling of products or services.",
        "label": "Selling and Marketing Expense",
        "terseLabel": "Sales and marketing",
        "totalLabel": "Selling and Marketing Expense, Total"
       }
      }
     },
     "localname": "SellingAndMarketingExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SellingAndMarketingExpenseMember": {
     "auth_ref": [
      "r74"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing selling and marketing expense.",
        "label": "Selling and Marketing Expense [Member]",
        "terseLabel": "Sales and marketing [Member]"
       }
      }
     },
     "localname": "SellingAndMarketingExpenseMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementExpensedAndCapitalizedAmountDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SeriesBPreferredStockMember": {
     "auth_ref": [
      "r19",
      "r21",
      "r299"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Series B preferred stock.",
        "label": "Series B Preferred Stock [Member]"
       }
      }
     },
     "localname": "SeriesBPreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SeriesCPreferredStockMember": {
     "auth_ref": [
      "r19",
      "r21",
      "r299"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Series C preferred stock.",
        "label": "Series C Preferred Stock [Member]"
       }
      }
     },
     "localname": "SeriesCPreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SettlementLiabilitiesCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amounts payable for money transfers, money orders, and consumer payment service arrangements. Settlement liabilities include amounts payable to intermediaries for global payment transfers.",
        "label": "Settlement Liabilities, Current",
        "terseLabel": "Accrued settlement liability"
       }
      }
     },
     "localname": "SettlementLiabilitiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensation": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of noncash expense for share-based payment arrangement.",
        "label": "Share-Based Payment Arrangement, Noncash Expense",
        "terseLabel": "Stock-based compensation",
        "totalLabel": "Share-Based Payment Arrangement, Noncash Expense, Total"
       }
      }
     },
     "localname": "ShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationAllocationAndClassificationInFinancialStatementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Payment Arrangement, Expensed and Capitalized, Amount [Abstract]"
       }
      }
     },
     "localname": "ShareBasedCompensationAllocationAndClassificationInFinancialStatementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod": {
     "auth_ref": [
      "r349"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeited in Period",
        "negatedLabel": "Number of shares, Forfeited or cancelled"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementRestrictedStockAndRestrictedStockUnitActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r349"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average fair value as of the grant date of equity-based award plans other than stock (unit) option plans that were not exercised or put into effect as a result of the occurrence of a terminating event.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeitures, Weighted Average Grant Date Fair Value",
        "verboseLabel": "Weighted\u00a0average grant\u00a0date\u00a0fair\u00a0value, Forfeited or cancelled"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementRestrictedStockAndRestrictedStockUnitActivityDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "auth_ref": [
      "r347"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of grants made during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period",
        "verboseLabel": "Number of shares, Granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementRestrictedStockAndRestrictedStockUnitActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r347"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The weighted average fair value at grant date for nonvested equity-based awards issued during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value",
        "verboseLabel": "Weighted\u00a0average grant\u00a0date\u00a0fair\u00a0value, Granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementRestrictedStockAndRestrictedStockUnitActivityDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber": {
     "auth_ref": [
      "r344",
      "r345"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of non-vested equity-based payment instruments, excluding stock (or unit) options, that validly exist and are outstanding as of the balance sheet date.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number",
        "periodEndLabel": "Number of shares, Outstanding as of June 30, 2022",
        "periodStartLabel": "Number of shares, Outstanding as of December\u00a031, 2021"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementRestrictedStockAndRestrictedStockUnitActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r344",
      "r345"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Per share or unit weighted-average fair value of nonvested award under share-based payment arrangement. Excludes share and unit options.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value",
        "periodEndLabel": "Weighted average grant date fair value, Outstanding as of June 30, 2022",
        "periodStartLabel": "Weighted\u00a0average grant\u00a0date\u00a0fair\u00a0value, Outstanding as of December\u00a031, 2021"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementRestrictedStockAndRestrictedStockUnitActivityDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod": {
     "auth_ref": [
      "r348"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that vested during the reporting period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period",
        "negatedLabel": "Number of shares, Vested"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementRestrictedStockAndRestrictedStockUnitActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r348"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The weighted average fair value as of grant date pertaining to an equity-based award plan other than a stock (or unit) option plan for which the grantee gained the right during the reporting period, by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash in accordance with the terms of the arrangement.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period, Weighted Average Grant Date Fair Value",
        "verboseLabel": "Weighted\u00a0average grant\u00a0date\u00a0fair\u00a0value, Vested"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementRestrictedStockAndRestrictedStockUnitActivityDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award [Line Items]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized": {
     "auth_ref": [
      "r334"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares authorized for issuance under share-based payment arrangement.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized",
        "verboseLabel": "Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExpirationsInPeriod": {
     "auth_ref": [
      "r343"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of options or other stock instruments for which the right to exercise has lapsed under the terms of the plan agreements.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Expirations in Period",
        "verboseLabel": "Number of shares, Options expired"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExpirationsInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod": {
     "auth_ref": [
      "r342"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of shares under options that were cancelled during the reporting period as a result of occurrence of a terminating event specified in contractual agreements pertaining to the stock option plan.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Forfeitures in Period",
        "negatedLabel": "Number of shares, Options cancelled"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross": {
     "auth_ref": [
      "r340"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross number of share options (or share units) granted during the period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross",
        "verboseLabel": "Number of shares, Options granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue": {
     "auth_ref": [
      "r367"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount by which the current fair value of the underlying stock exceeds the exercise price of options outstanding.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Intrinsic Value",
        "periodEndLabel": "Aggregate intrinsic value, Outstanding - June 30, 2022",
        "periodStartLabel": "Aggregate intrinsic value, Outstanding - December 31, 2021",
        "terseLabel": "Aggregate intrinsic value, Outstanding - June 30, 2022",
        "verboseLabel": "Aggregate intrinsic value, Outstanding - December 31, 2021"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber": {
     "auth_ref": [
      "r336",
      "r337"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of options outstanding, including both vested and non-vested options.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Number",
        "periodEndLabel": "Number of shares, Outstanding at June 30, 2022",
        "periodStartLabel": "Number of shares, Outstanding - December 31, 2021"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice": {
     "auth_ref": [
      "r336",
      "r337"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average price at which grantees can acquire the shares reserved for issuance under the stock option plan.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Exercise Price",
        "periodEndLabel": "Weighted average exercise price per share, Outstanding at June 30, 2022",
        "periodStartLabel": "Weighted average exercise price per share, Outstanding - December 31, 2021"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue": {
     "auth_ref": [
      "r355"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount by which current fair value of underlying stock exceeds exercise price of fully vested and expected to vest exercisable or convertible options. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Exercisable, Aggregate Intrinsic Value",
        "verboseLabel": "Aggregate intrinsic value, Vested and exercisable - June 30, 2022"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber": {
     "auth_ref": [
      "r355"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of fully vested and expected to vest exercisable options that may be converted into shares under option plan. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Exercisable, Number",
        "verboseLabel": "Number of shares, Vested and expected to vest - June 30, 2022"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice": {
     "auth_ref": [
      "r355"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted-average exercise price, at which grantee can acquire shares reserved for issuance, for fully vested and expected to vest exercisable or convertible options. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Exercisable, Weighted Average Exercise Price",
        "verboseLabel": "Weighted average exercise price per share, Vested and exercisable - June 30, 2022"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue": {
     "auth_ref": [
      "r354"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount by which current fair value of underlying stock exceeds exercise price of fully vested and expected to vest options outstanding. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Outstanding, Aggregate Intrinsic Value",
        "verboseLabel": "Aggregate intrinsic value, Vested and expected to vest - June 30, 2022"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber": {
     "auth_ref": [
      "r354"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of fully vested and expected to vest options outstanding that can be converted into shares under option plan. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Outstanding, Number",
        "verboseLabel": "Number of shares, Vested and exercisable - June 30, 2022"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice": {
     "auth_ref": [
      "r354"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted-average exercise price, at which grantee can acquire shares reserved for issuance, for fully vested and expected to vest options outstanding. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Outstanding, Weighted Average Exercise Price",
        "verboseLabel": "Weighted average exercise price per share, Vested and expected to vest - June 30, 2022"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "auth_ref": [
      "r332",
      "r333",
      "r334",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r351",
      "r352",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Award under share-based payment arrangement.",
        "label": "Award Type [Domain]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementRestrictedStockAndRestrictedStockUnitActivityDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice": {
     "auth_ref": [
      "r341"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average price at which option holders acquired shares when converting their stock options into shares.",
        "label": "Share-based Compensation Arrangements by Share-based Payment Award, Options, Exercises in Period, Weighted Average Exercise Price",
        "verboseLabel": "Weighted average exercise price per share, Options exercised"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExpirationsInPeriodWeightedAverageExercisePrice": {
     "auth_ref": [
      "r343"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average price at which grantees could have acquired the underlying shares with respect to stock options of the plan that expired.",
        "label": "Share-based Compensation Arrangements by Share-based Payment Award, Options, Expirations in Period, Weighted Average Exercise Price",
        "verboseLabel": "Weighted average exercise price per share, Options expired"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExpirationsInPeriodWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice": {
     "auth_ref": [
      "r342"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average price at which grantees could have acquired the underlying shares with respect to stock options that were terminated.",
        "label": "Share-based Compensation Arrangements by Share-based Payment Award, Options, Forfeitures in Period, Weighted Average Exercise Price",
        "verboseLabel": "Weighted average exercise price per share, Options cancelled"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice": {
     "auth_ref": [
      "r340"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average per share amount at which grantees can acquire shares of common stock by exercise of options.",
        "label": "Share-based Compensation Arrangements by Share-based Payment Award, Options, Grants in Period, Weighted Average Exercise Price",
        "verboseLabel": "Weighted average exercise price per share, Options granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_SharePrice": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Price of a single share of a number of saleable stocks of a company.",
        "label": "Share Price",
        "verboseLabel": "Share price"
       }
      }
     },
     "localname": "SharePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2": {
     "auth_ref": [
      "r354"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average remaining contractual term for option awards outstanding, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Remaining Contractual Term",
        "verboseLabel": "Weighted average contractual term (in years), Outstanding at June 30, 2022"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1": {
     "auth_ref": [
      "r355"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average remaining contractual term for fully vested and expected to vest exercisable or convertible options, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Exercisable, Weighted Average Remaining Contractual Term",
        "verboseLabel": "Weighted average contractual term (in years), Vested and exercisable - June 30, 2022"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1": {
     "auth_ref": [
      "r354"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average remaining contractual term for fully vested and expected to vest options outstanding, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Outstanding, Weighted Average Remaining Contractual Term",
        "verboseLabel": "Weighted average contractual term (in years), Vested and expected to vest - June 30, 2022"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_SharesOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares issued which are neither cancelled nor held in the treasury.",
        "label": "Shares, Outstanding",
        "periodEndLabel": "Ending balance, shares",
        "periodStartLabel": "Beginning balance, shares",
        "terseLabel": "Balance at December\u00a031, 2020"
       }
      }
     },
     "localname": "SharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShortTermBorrowings": {
     "auth_ref": [
      "r14",
      "r480",
      "r532",
      "r548"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reflects the total carrying amount as of the balance sheet date of debt having initial terms less than one year or the normal operating cycle, if longer.",
        "label": "Short-term Debt",
        "terseLabel": "Short-term debt",
        "totalLabel": "Short-Term Debt, Total"
       }
      }
     },
     "localname": "ShortTermBorrowings",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StatementClassOfStockAxis": {
     "auth_ref": [
      "r19",
      "r21",
      "r22",
      "r105",
      "r108",
      "r132",
      "r133",
      "r134",
      "r136",
      "r138",
      "r146",
      "r147",
      "r148",
      "r185",
      "r224",
      "r229",
      "r230",
      "r231",
      "r235",
      "r236",
      "r282",
      "r283",
      "r288",
      "r292",
      "r299",
      "r435",
      "r603"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by the different classes of stock of the entity.",
        "label": "Class of Stock [Axis]",
        "terseLabel": "Class of Stock [Axis]"
       }
      }
     },
     "localname": "StatementClassOfStockAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockByClassDetail",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheetsParenthetical",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit",
      "http://quanergy.com/20220630/taxonomy/role/CoverPage",
      "http://quanergy.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInLevel3FairValueInstrumentsDetails",
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareSummaryOfBasicAndDilutedNetIncomeLossPerOrdinaryShareDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "auth_ref": [
      "r0",
      "r53",
      "r65",
      "r66",
      "r67",
      "r114",
      "r115",
      "r116",
      "r118",
      "r125",
      "r128",
      "r145",
      "r186",
      "r299",
      "r306",
      "r369",
      "r370",
      "r371",
      "r381",
      "r382",
      "r416",
      "r437",
      "r438",
      "r439",
      "r440",
      "r441",
      "r442",
      "r470",
      "r567",
      "r568",
      "r569"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by component of equity.",
        "label": "Equity Components [Axis]",
        "terseLabel": "Equity Components [Axis]"
       }
      }
     },
     "localname": "StatementEquityComponentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfStockByClassDetail",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit",
      "http://quanergy.com/20220630/taxonomy/role/CoverPage",
      "http://quanergy.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInLevel3FairValueInstrumentsDetails",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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.",
        "label": "Statement [Line Items]",
        "terseLabel": "Statement [Line Items]"
       }
      }
     },
     "localname": "StatementLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheetsParenthetical",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Financial Position [Abstract]"
       }
      }
     },
     "localname": "StatementOfFinancialPositionAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Stockholders' Equity [Abstract]"
       }
      }
     },
     "localname": "StatementOfStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementTable": {
     "auth_ref": [
      "r114",
      "r115",
      "r116",
      "r145",
      "r516"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule reflecting a Statement of Income, Statement of Cash Flows, Statement of Financial Position, Statement of Shareholders' Equity and Other Comprehensive Income, or other statement as needed.",
        "label": "Statement [Table]",
        "terseLabel": "Statement [Table]"
       }
      }
     },
     "localname": "StatementTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheetsParenthetical",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit",
      "http://quanergy.com/20220630/taxonomy/role/NetLossPerShareSummaryOfBasicAndDilutedNetIncomeLossPerOrdinaryShareDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockIssued1": {
     "auth_ref": [
      "r100",
      "r101",
      "r102"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fair value of stock issued in noncash financing activities.",
        "label": "Stock Issued",
        "verboseLabel": "Issuance of common stock warrants"
       }
      }
     },
     "localname": "StockIssued1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesAcquisitions": {
     "auth_ref": [
      "r21",
      "r22",
      "r306"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of stock issued during the period pursuant to acquisitions.",
        "label": "Stock Issued During Period, Shares, Acquisitions",
        "terseLabel": "Subsequent issuance of shares for offering costs incurred in connection with Business Combination and PIPE financing, shares"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesAcquisitions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities": {
     "auth_ref": [
      "r52",
      "r256",
      "r299",
      "r300",
      "r306"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares issued during the period as a result of the conversion of convertible securities.",
        "label": "Stock Issued During Period, Shares, Conversion of Convertible Securities",
        "terseLabel": "Conversion of 2023 Notes into common stock, Shares"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesNewIssues": {
     "auth_ref": [
      "r21",
      "r22",
      "r299",
      "r306"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of new stock issued during the period.",
        "label": "Stock Issued During Period, Shares, New Issues",
        "terseLabel": "Total"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesNewIssues",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures": {
     "auth_ref": [
      "r21",
      "r22",
      "r299",
      "r306"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares issued during the period related to Restricted Stock Awards, net of any shares forfeited.",
        "label": "Stock Issued During Period, Shares, Restricted Stock Award, Net of Forfeitures",
        "terseLabel": "Issuance of Restricted Stock Awards (\"RSAs\"), shares",
        "totalLabel": "Stock Issued During Period, Shares, Restricted Stock Award, Net of Forfeitures, Total",
        "verboseLabel": "Issuance of restricted stock awards"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised": {
     "auth_ref": [
      "r21",
      "r22",
      "r299",
      "r306",
      "r341"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of share options (or share units) exercised during the current period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercises in Period",
        "negatedLabel": "Number of shares, Options exercised",
        "terseLabel": "Shares issued upon exercise of options, shares",
        "verboseLabel": "Shares issued upon exercise of options - 2021"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesStockOptionsExercised",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfLegacyQuanergySharesDetail",
      "http://quanergy.com/20220630/taxonomy/role/StockBasedCompensationExpenseSummaryOfShareBasedPaymentArrangementOptionActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueAcquisitions": {
     "auth_ref": [
      "r53",
      "r299",
      "r306"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of stock issued pursuant to acquisitions during the period.",
        "label": "Stock Issued During Period, Value, Acquisitions",
        "terseLabel": "Subsequent issuance of shares for offering costs incurred in connection with Business Combination and PIPE financing"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueAcquisitions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueConversionOfConvertibleSecurities": {
     "auth_ref": [
      "r53",
      "r299",
      "r306"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The gross value of stock issued during the period upon the conversion of convertible securities.",
        "label": "Stock Issued During Period, Value, Conversion of Convertible Securities",
        "terseLabel": "Conversion of 2023 Notes into common stock"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueConversionOfConvertibleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueNewIssues": {
     "auth_ref": [
      "r21",
      "r22",
      "r299",
      "r306"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsDetail": {
       "order": 1.0,
       "parentTag": "ck0001794621_NetProceedsFromBusinessCombinationAndPipeFinancing",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity impact of the value of new stock issued during the period. Includes shares issued in an initial public offering or a secondary public offering.",
        "label": "Stock Issued During Period, Value, New Issues",
        "negatedLabel": "Issuance of PIPE shares"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueNewIssues",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit",
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfBusinessAcquisitionElementsReconciledToConsolidatedFinancialStatementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross": {
     "auth_ref": [
      "r21",
      "r22",
      "r299",
      "r306"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate value of stock related to Restricted Stock Awards issued during the period.",
        "label": "Stock Issued During Period, Value, Restricted Stock Award, Gross",
        "terseLabel": "Vesting of RSAs"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueRestrictedStockAwardGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures": {
     "auth_ref": [
      "r299",
      "r306"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of stock related to Restricted Stock Awards issued during the period, net of the stock value of such awards forfeited.",
        "label": "Stock Issued During Period, Value, Restricted Stock Award, Net of Forfeitures",
        "terseLabel": "Issuance of Restricted Stock Awards (\"RSAs\")",
        "totalLabel": "Stock Issued During Period, Value, Restricted Stock Award, Net of Forfeitures, Total"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised": {
     "auth_ref": [
      "r53",
      "r299",
      "r306"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of stock issued as a result of the exercise of stock options.",
        "label": "Stock Issued During Period, Value, Stock Options Exercised",
        "terseLabel": "Shares issued upon exercise of options"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueStockOptionsExercised",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockRedeemedOrCalledDuringPeriodShares": {
     "auth_ref": [
      "r299"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of stock bought back by the entity at the exercise price or redemption price.",
        "label": "Stock Redeemed or Called During Period, Shares",
        "negatedLabel": "Less: redemption of CCAC Class\u00a0A Ordinary Shares"
       }
      }
     },
     "localname": "StockRedeemedOrCalledDuringPeriodShares",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/ReverseRecapitalizationSummaryOfNumberOfSharesOfCommonStockIssuedImmediatelyFollowingTheConsummationOfTheBusinessCombinationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockholdersEquity": {
     "auth_ref": [
      "r22",
      "r26",
      "r27",
      "r108",
      "r179",
      "r185",
      "r435",
      "r480"
     ],
     "calculation": {
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total of all stockholders' equity (deficit) items, net of receivables from officers, directors, owners, and affiliates of the entity which are attributable to the parent. The amount of the economic entity's stockholders' equity attributable to the parent excludes the amount of stockholders' equity which is allocable to that ownership interest in subsidiary equity which is not attributable to the parent (noncontrolling interest, minority interest). This excludes temporary equity and is sometimes called permanent equity.",
        "label": "Stockholders' Equity Attributable to Parent",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "totalLabel": "Total stockholders' equity / (deficit)"
       }
      }
     },
     "localname": "StockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity Attributable to Parent [Abstract]",
        "verboseLabel": "Stockholders' equity / (deficit):"
       }
      }
     },
     "localname": "StockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockholdersEquityNoteAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity Note [Abstract]"
       }
      }
     },
     "localname": "StockholdersEquityNoteAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockholdersEquityNoteDisclosureTextBlock": {
     "auth_ref": [
      "r106",
      "r283",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r295",
      "r296",
      "r298",
      "r306",
      "r308",
      "r414"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for shareholders' equity comprised of portions attributable to the parent entity and noncontrolling interest, including other comprehensive income. Includes, but is not limited to, balances of common stock, preferred stock, additional paid-in capital, other capital and retained earnings, accumulated balance for each classification of other comprehensive income and amount of comprehensive income.",
        "label": "Stockholders' Equity Note Disclosure [Text Block]",
        "verboseLabel": "Common Stock"
       }
      }
     },
     "localname": "StockholdersEquityNoteDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStock"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SubsequentEventMember": {
     "auth_ref": [
      "r443",
      "r482"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identifies event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event [Member]",
        "terseLabel": "Subsequent Event [Member]"
       }
      }
     },
     "localname": "SubsequentEventMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsequentEventTypeAxis": {
     "auth_ref": [
      "r443",
      "r482"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event Type [Axis]"
       }
      }
     },
     "localname": "SubsequentEventTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventTypeDomain": {
     "auth_ref": [
      "r443",
      "r482"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event Type [Domain]"
       }
      }
     },
     "localname": "SubsequentEventTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CommonStockAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsequentEventsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Events [Abstract]"
       }
      }
     },
     "localname": "SubsequentEventsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventsTextBlock": {
     "auth_ref": [
      "r481",
      "r483"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued. Examples include: the sale of a capital stock issue, purchase of a business, settlement of litigation, catastrophic loss, significant foreign exchange rate changes, loans to insiders or affiliates, and transactions not in the ordinary course of business.",
        "label": "Subsequent Events [Text Block]",
        "terseLabel": "Subsequent Events"
       }
      }
     },
     "localname": "SubsequentEventsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/SubsequentEvents"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SubsidiarySaleOfStockAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of sale of the entity's stock.",
        "label": "Sale of Stock [Axis]",
        "terseLabel": "Sale of Stock [Axis]"
       }
      }
     },
     "localname": "SubsidiarySaleOfStockAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommitmentsAndContingenciesAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfStockholderSEquityDeficit",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SupplementalCashFlowElementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental Cash Flow Elements [Abstract]",
        "verboseLabel": "Supplemental disclosures of cash flow information:"
       }
      }
     },
     "localname": "SupplementalCashFlowElementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "auth_ref": [
      "r180",
      "r181",
      "r182",
      "r183",
      "r184",
      "r264",
      "r297",
      "r412",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r501",
      "r502",
      "r503",
      "r504",
      "r505",
      "r506",
      "r507",
      "r508",
      "r509",
      "r510",
      "r511",
      "r512",
      "r513",
      "r603",
      "r604",
      "r605",
      "r606",
      "r607",
      "r608",
      "r609"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Instrument or contract that imposes a contractual obligation to deliver cash or another financial instrument or to exchange other financial instruments on potentially unfavorable terms and conveys a contractual right to receive cash or another financial instrument or to exchange other financial instruments on potentially favorable terms.",
        "label": "Financial Instruments [Domain]",
        "terseLabel": "Financial Instruments [Domain]"
       }
      }
     },
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail",
      "http://quanergy.com/20220630/taxonomy/role/RelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_WarrantMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Security that gives the holder the right to purchase shares of stock in accordance with the terms of the instrument, usually upon payment of a specified amount.",
        "label": "Warrant [Member]",
        "terseLabel": "Warrant Liabilites [Member]",
        "verboseLabel": "Warrant [Member]"
       }
      }
     },
     "localname": "WarrantMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CoverPage",
      "http://quanergy.com/20220630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInLevel3FairValueInstrumentsDetails",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://quanergy.com/20220630/taxonomy/role/FairValueMeasurementsSummaryOfInformationAboutTheCompanysFinancialAssetsAndLiabilitiesThatAreMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_WarrantsAndRightsOutstandingMeasurementInput": {
     "auth_ref": [
      "r424"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of input used to measure outstanding warrant and right embodying unconditional obligation requiring redemption by transferring asset at specified or determinable date or upon event certain to occur.",
        "label": "Warrants and Rights Outstanding, Measurement Input"
       }
      }
     },
     "localname": "WarrantsAndRightsOutstandingMeasurementInput",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CommonStockSummaryOfFairValueMeasurementsInputsDetail"
     ],
     "xbrltype": "decimalItemType"
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "auth_ref": [
      "r131",
      "r138"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The average number of shares or units issued and outstanding that are used in calculating diluted EPS or earnings per unit (EPU), determined based on the timing of issuance of shares or units in the period.",
        "label": "Weighted Average Number of Shares Outstanding, Diluted",
        "terseLabel": "Weighted-average shares used to compute net loss attributable per share to common stockholders - diluted",
        "totalLabel": "Weighted Average Number of Shares Outstanding, Diluted, Total"
       }
      }
     },
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "auth_ref": [
      "r130",
      "r138"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of [basic] shares or units, after adjustment for contingently issuable shares or units and other shares or units not deemed outstanding, determined by relating the portion of time within a reporting period that common shares or units have been outstanding to the total time in that period.",
        "label": "Weighted Average Number of Shares Outstanding, Basic",
        "terseLabel": "Weighted-average shares used to compute net loss attributable per share to common stockholders - basic",
        "totalLabel": "Weighted Average Number of Shares Outstanding, Basic, Total"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://quanergy.com/20220630/taxonomy/role/CondensedConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "sharesItemType"
    }
   },
   "unitCount": 4
  }
 },
 "std_ref": {
  "r0": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "105",
   "URI": "https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695"
  },
  "r1": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "105",
   "URI": "https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695"
  },
  "r10": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(13))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r100": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=d3e4304-108586"
  },
  "r101": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=d3e4313-108586"
  },
  "r102": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=d3e4332-108586"
  },
  "r103": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=SL98516268-108586"
  },
  "r104": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(c))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r105": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(d))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r106": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(e)(1))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r107": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(f))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r108": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r109": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(2))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r11": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(14))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r110": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r111": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(k)(1))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r112": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-04(a))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690"
  },
  "r113": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "235",
   "URI": "https://asc.fasb.org/topic&trid=2122369"
  },
  "r114": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21914-107793"
  },
  "r115": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21930-107793"
  },
  "r116": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21711-107793"
  },
  "r117": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r118": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r119": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22694-107794"
  },
  "r12": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(17))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r120": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22694-107794"
  },
  "r121": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=SL124452830-107794"
  },
  "r122": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22583-107794"
  },
  "r123": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22595-107794"
  },
  "r124": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794"
  },
  "r125": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794"
  },
  "r126": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794"
  },
  "r127": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22658-107794"
  },
  "r128": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22663-107794"
  },
  "r129": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.M.Q2)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=122038215&loc=d3e31137-122693"
  },
  "r13": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(18))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r130": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1448-109256"
  },
  "r131": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1505-109256"
  },
  "r132": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1252-109256"
  },
  "r133": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1278-109256"
  },
  "r134": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "55",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e2626-109256"
  },
  "r135": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=SL5780133-109256"
  },
  "r136": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=SL5780133-109256"
  },
  "r137": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1337-109256"
  },
  "r138": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257"
  },
  "r139": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257"
  },
  "r14": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(19)(a))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r140": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3630-109257"
  },
  "r141": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=109243012&loc=SL65017193-207537"
  },
  "r142": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=128363288&loc=d3e3842-109258"
  },
  "r143": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "52",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=128363288&loc=d3e4984-109258"
  },
  "r144": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "260",
   "URI": "https://asc.fasb.org/topic&trid=2144383"
  },
  "r145": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "https://asc.fasb.org/extlink&oid=125520817&loc=d3e70191-108054"
  },
  "r146": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "https://asc.fasb.org/extlink&oid=125520817&loc=d3e70229-108054"
  },
  "r147": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "https://asc.fasb.org/extlink&oid=6373374&loc=d3e70434-108055"
  },
  "r148": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "272",
   "URI": "https://asc.fasb.org/extlink&oid=6373374&loc=d3e70478-108055"
  },
  "r149": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8657-108599"
  },
  "r15": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(19))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r150": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8721-108599"
  },
  "r151": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8721-108599"
  },
  "r152": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599"
  },
  "r153": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599"
  },
  "r154": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599"
  },
  "r155": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599"
  },
  "r156": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599"
  },
  "r157": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "26",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8844-108599"
  },
  "r158": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599"
  },
  "r159": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599"
  },
  "r16": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(20))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r160": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599"
  },
  "r161": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599"
  },
  "r162": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8924-108599"
  },
  "r163": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599"
  },
  "r164": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599"
  },
  "r165": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599"
  },
  "r166": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599"
  },
  "r167": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599"
  },
  "r168": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599"
  },
  "r169": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "34",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8981-108599"
  },
  "r17": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(22))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r170": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9031-108599"
  },
  "r171": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9038-108599"
  },
  "r172": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9038-108599"
  },
  "r173": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9038-108599"
  },
  "r174": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "42",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9054-108599"
  },
  "r175": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "280",
   "URI": "https://asc.fasb.org/topic&trid=2134510"
  },
  "r176": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=124259787&loc=d3e4428-111522"
  },
  "r177": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=124259787&loc=d3e4531-111522"
  },
  "r178": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5074-111524"
  },
  "r179": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 4.E)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=122038336&loc=d3e74512-122707"
  },
  "r18": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(26)(c))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r180": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=d3e27232-111563"
  },
  "r181": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=SL120269820-111563"
  },
  "r182": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "321",
   "URI": "https://asc.fasb.org/extlink&oid=126980263&loc=SL75117539-209714"
  },
  "r183": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "321",
   "URI": "https://asc.fasb.org/extlink&oid=126980263&loc=SL75117539-209714"
  },
  "r184": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "321",
   "URI": "https://asc.fasb.org/extlink&oid=126980263&loc=SL75117539-209714"
  },
  "r185": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "323",
   "URI": "https://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571"
  },
  "r186": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r187": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(3)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r188": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(4)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r189": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255206&loc=SL82895884-210446"
  },
  "r19": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(27)(b))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r190": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919244-210447"
  },
  "r191": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447"
  },
  "r192": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919253-210447"
  },
  "r193": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919258-210447"
  },
  "r194": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919230-210447"
  },
  "r195": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL82922888-210455"
  },
  "r196": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL82922895-210455"
  },
  "r197": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL82922900-210455"
  },
  "r198": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=121590138&loc=SL82922954-210456"
  },
  "r199": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "330",
   "URI": "https://asc.fasb.org/topic&trid=2126998"
  },
  "r2": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721683-107760"
  },
  "r20": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(27))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r200": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "05",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "340",
   "URI": "https://asc.fasb.org/extlink&oid=126905020&loc=d3e5879-108316"
  },
  "r201": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "340",
   "URI": "https://asc.fasb.org/extlink&oid=6387103&loc=d3e6435-108320"
  },
  "r202": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 5.A)",
   "Topic": "340",
   "URI": "https://asc.fasb.org/extlink&oid=122040515&loc=d3e105025-122735"
  },
  "r203": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r204": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r205": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r206": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r207": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230"
  },
  "r208": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "360",
   "URI": "https://asc.fasb.org/topic&trid=2155823"
  },
  "r209": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "410",
   "URI": "https://asc.fasb.org/extlink&oid=6393242&loc=d3e13237-110859"
  },
  "r21": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(28))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r210": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "420",
   "URI": "https://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869"
  },
  "r211": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "420",
   "URI": "https://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869"
  },
  "r212": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 5.P.4(b)(2))",
   "Topic": "420",
   "URI": "https://asc.fasb.org/extlink&oid=115931487&loc=d3e140904-122747"
  },
  "r213": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "440",
   "URI": "https://asc.fasb.org/extlink&oid=123406679&loc=d3e25336-109308"
  },
  "r214": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "440",
   "URI": "https://asc.fasb.org/extlink&oid=123406679&loc=d3e25336-109308"
  },
  "r215": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "440",
   "URI": "https://asc.fasb.org/topic&trid=2144648"
  },
  "r216": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14435-108349"
  },
  "r217": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14557-108349"
  },
  "r218": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Subparagraph": "(SAB Topic 5.Y.Q2)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=27011672&loc=d3e149879-122751"
  },
  "r219": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Subparagraph": "(SAB Topic 5.Y.Q4)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=27011672&loc=d3e149879-122751"
  },
  "r22": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(29))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r220": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "450",
   "URI": "https://asc.fasb.org/topic&trid=2127136"
  },
  "r221": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "15",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "460",
   "URI": "https://asc.fasb.org/extlink&oid=126907419&loc=d3e10037-110241"
  },
  "r222": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "460",
   "URI": "https://asc.fasb.org/extlink&oid=124440162&loc=d3e12021-110248"
  },
  "r223": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "460",
   "URI": "https://asc.fasb.org/extlink&oid=126907907&loc=d3e12803-110250"
  },
  "r224": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(i))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756"
  },
  "r225": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(ii))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756"
  },
  "r226": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii)(A))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756"
  },
  "r227": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii)(B))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756"
  },
  "r228": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756"
  },
  "r229": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iv))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756"
  },
  "r23": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r230": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(5))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756"
  },
  "r231": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(i))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756"
  },
  "r232": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(A))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756"
  },
  "r233": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(B))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756"
  },
  "r234": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(C))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756"
  },
  "r235": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iv))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756"
  },
  "r236": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(5))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756"
  },
  "r237": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466302&loc=d3e4724-112606"
  },
  "r238": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r239": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r24": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(3))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r240": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r241": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r242": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r243": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r244": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r245": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r246": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(i)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r247": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r248": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495334-112611"
  },
  "r249": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495334-112611"
  },
  "r25": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(4))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r250": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495334-112611"
  },
  "r251": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611"
  },
  "r252": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611"
  },
  "r253": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611"
  },
  "r254": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611"
  },
  "r255": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611"
  },
  "r256": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611"
  },
  "r257": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611"
  },
  "r258": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611"
  },
  "r259": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611"
  },
  "r26": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r260": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611"
  },
  "r261": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611"
  },
  "r262": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611"
  },
  "r263": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611"
  },
  "r264": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611"
  },
  "r265": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611"
  },
  "r266": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466204&loc=SL6031897-161870"
  },
  "r267": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466204&loc=SL6031897-161870"
  },
  "r268": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466204&loc=SL6036836-161870"
  },
  "r269": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69B",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466577&loc=SL123495735-112612"
  },
  "r27": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(31))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r270": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69C",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466577&loc=SL123495737-112612"
  },
  "r271": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69E",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466577&loc=SL123495743-112612"
  },
  "r272": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466577&loc=SL123495745-112612"
  },
  "r273": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "40",
   "SubTopic": "50",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126972273&loc=d3e12317-112629"
  },
  "r274": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "40",
   "SubTopic": "50",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126972273&loc=d3e12355-112629"
  },
  "r275": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "470",
   "URI": "https://asc.fasb.org/topic&trid=2208564"
  },
  "r276": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "10",
   "Topic": "480",
   "URI": "https://asc.fasb.org/extlink&oid=109262497&loc=d3e20148-110875"
  },
  "r277": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "63",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "480",
   "URI": "https://asc.fasb.org/extlink&oid=126970277&loc=d3e23176-110880"
  },
  "r278": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(CFRR 211.02)",
   "Topic": "480",
   "URI": "https://asc.fasb.org/extlink&oid=122040564&loc=d3e177068-122764"
  },
  "r279": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Topic": "480",
   "URI": "https://asc.fasb.org/extlink&oid=122040564&loc=d3e177068-122764"
  },
  "r28": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(32))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r280": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=65888546&loc=d3e21300-112643"
  },
  "r281": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21553-112644"
  },
  "r282": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644"
  },
  "r283": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644"
  },
  "r284": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644"
  },
  "r285": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644"
  },
  "r286": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644"
  },
  "r287": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644"
  },
  "r288": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644"
  },
  "r289": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644"
  },
  "r29": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(4))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r290": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644"
  },
  "r291": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496171-112644"
  },
  "r292": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496171-112644"
  },
  "r293": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496171-112644"
  },
  "r294": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496180-112644"
  },
  "r295": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496189-112644"
  },
  "r296": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496189-112644"
  },
  "r297": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496189-112644"
  },
  "r298": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496189-112644"
  },
  "r299": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21463-112644"
  },
  "r3": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765"
  },
  "r30": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(a)(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r300": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21475-112644"
  },
  "r301": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21484-112644"
  },
  "r302": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21488-112644"
  },
  "r303": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21506-112644"
  },
  "r304": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21521-112644"
  },
  "r305": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21538-112644"
  },
  "r306": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.3-04)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770"
  },
  "r307": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "50",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=6784392&loc=d3e188667-122775"
  },
  "r308": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "505",
   "URI": "https://asc.fasb.org/topic&trid=2208762"
  },
  "r309": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130543-203045"
  },
  "r31": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(a)(2))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r310": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130545-203045"
  },
  "r311": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920602&loc=SL49130690-203046-203046"
  },
  "r312": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920602&loc=SL49130690-203046-203046"
  },
  "r313": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(i)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r314": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(ii)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r315": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(01)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r316": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r317": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(A)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r318": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(B)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r319": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(C)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r32": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(a)(3))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r320": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(03)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r321": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(n)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r322": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123450688&loc=d3e4179-114921"
  },
  "r323": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947"
  },
  "r324": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(d)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r325": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=65877416&loc=SL14450673-114947"
  },
  "r326": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "80",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=35742348&loc=SL14450788-114948"
  },
  "r327": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=126961718&loc=SL116886442-113899"
  },
  "r328": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=126961718&loc=d3e4534-113899"
  },
  "r329": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=126961718&loc=d3e4549-113899"
  },
  "r33": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(a)(4))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r330": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5047-113901"
  },
  "r331": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r332": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r333": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r334": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r335": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r336": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r337": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r338": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r339": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r34": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(a))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r340": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(01)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r341": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(02)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r342": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(03)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r343": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(04)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r344": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r345": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r346": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r347": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(01)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r348": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(02)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r349": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(03)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r35": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(b))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r350": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r351": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r352": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r353": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r354": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r355": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r356": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r357": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r358": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r359": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(iv)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r36": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(c))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r360": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(v)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r361": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r362": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(1)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r363": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r364": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r365": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r366": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(l)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r367": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901"
  },
  "r368": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=SL79508275-113901"
  },
  "r369": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128097895&loc=SL121327923-165333"
  },
  "r37": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r370": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128097895&loc=SL121327923-165333"
  },
  "r371": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128097895&loc=SL121327923-165333"
  },
  "r372": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 14.F)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=122041274&loc=d3e301413-122809"
  },
  "r373": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=126964447&loc=d3e11149-113907"
  },
  "r374": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=126964447&loc=d3e11178-113907"
  },
  "r375": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "718",
   "URI": "https://asc.fasb.org/topic&trid=2228938"
  },
  "r376": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "730",
   "URI": "https://asc.fasb.org/extlink&oid=6420194&loc=d3e21568-108373"
  },
  "r377": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32672-109319"
  },
  "r378": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32705-109319"
  },
  "r379": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32809-109319"
  },
  "r38": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(7))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r380": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32857-109319"
  },
  "r381": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=126983759&loc=SL121830611-158277"
  },
  "r382": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(3)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=126983759&loc=SL121830611-158277"
  },
  "r383": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.5.Q1)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817"
  },
  "r384": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.7)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817"
  },
  "r385": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.C)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330215-122817"
  },
  "r386": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=123586238&loc=d3e38679-109324"
  },
  "r387": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "270",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=6424409&loc=d3e44925-109338"
  },
  "r388": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=6424122&loc=d3e41874-109331"
  },
  "r389": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "740",
   "URI": "https://asc.fasb.org/topic&trid=2144680"
  },
  "r39": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(9))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r390": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "05",
   "SubTopic": "10",
   "Subparagraph": "(a)-(d)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=6909625&loc=d3e227-128457"
  },
  "r391": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=123586518&loc=d3e1043-128460"
  },
  "r392": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463"
  },
  "r393": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1486-128463"
  },
  "r394": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092470&loc=d3e4946-128472"
  },
  "r395": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4613673-111683"
  },
  "r396": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4569616-111683"
  },
  "r397": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4569643-111683"
  },
  "r398": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988"
  },
  "r399": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988"
  },
  "r4": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765"
  },
  "r40": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19(a))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r400": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r401": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c),(3)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r402": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=123419778&loc=d3e5710-111685"
  },
  "r403": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=123419778&loc=d3e5710-111685"
  },
  "r404": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959"
  },
  "r405": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959"
  },
  "r406": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959"
  },
  "r407": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5624177-113959"
  },
  "r408": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "25",
   "Subparagraph": "(a)(1)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=121577467&loc=d3e76258-113986"
  },
  "r409": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126731327&loc=d3e90193-114008"
  },
  "r41": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19(b),22(b))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r410": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126731327&loc=d3e90198-114008"
  },
  "r411": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126731327&loc=d3e90205-114008"
  },
  "r412": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(f)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126731327&loc=d3e90205-114008"
  },
  "r413": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126731327&loc=d3e90205-114008"
  },
  "r414": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126731327&loc=SL126733271-114008"
  },
  "r415": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(b)(2)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011"
  },
  "r416": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(3)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011"
  },
  "r417": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(4)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011"
  },
  "r418": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011"
  },
  "r419": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258"
  },
  "r42": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19-26)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r420": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258"
  },
  "r421": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258"
  },
  "r422": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258"
  },
  "r423": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(1)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258"
  },
  "r424": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(2)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258"
  },
  "r425": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258"
  },
  "r426": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258"
  },
  "r427": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258"
  },
  "r428": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258"
  },
  "r429": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=SL7498348-110258"
  },
  "r43": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.20)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r430": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19279-110258"
  },
  "r431": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19279-110258"
  },
  "r432": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=SL6742756-110258"
  },
  "r433": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123594938&loc=d3e13467-108611"
  },
  "r434": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123594938&loc=d3e13476-108611"
  },
  "r435": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123596393&loc=d3e14064-108612"
  },
  "r436": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=123444420&loc=d3e33268-110906"
  },
  "r437": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32136-110900"
  },
  "r438": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r439": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r44": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.21)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r440": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r441": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r442": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=6450520&loc=d3e32583-110901"
  },
  "r443": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=6450520&loc=d3e32618-110901"
  },
  "r444": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=6450988&loc=d3e26243-108391"
  },
  "r445": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=6450988&loc=d3e26243-108391"
  },
  "r446": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=124435984&loc=d3e28541-108399"
  },
  "r447": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=124435984&loc=d3e28551-108399"
  },
  "r448": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=124435984&loc=d3e28555-108399"
  },
  "r449": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=124429444&loc=SL124452920-239629"
  },
  "r45": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r450": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=114775985&loc=d3e28878-108400"
  },
  "r451": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(Note 3)",
   "Topic": "840",
   "URI": "https://asc.fasb.org/extlink&oid=123403562&loc=d3e38371-112697"
  },
  "r452": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "840",
   "URI": "https://asc.fasb.org/extlink&oid=123406913&loc=d3e41499-112717"
  },
  "r453": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "840",
   "URI": "https://asc.fasb.org/extlink&oid=123406913&loc=d3e41502-112717"
  },
  "r454": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "840",
   "URI": "https://asc.fasb.org/extlink&oid=123406913&loc=d3e41502-112717"
  },
  "r455": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(1)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984"
  },
  "r456": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918627-209977"
  },
  "r457": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918627-209977"
  },
  "r458": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918638-209977"
  },
  "r459": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918643-209977"
  },
  "r46": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(2))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r460": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(3)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918673-209980"
  },
  "r461": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918673-209980"
  },
  "r462": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(1)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980"
  },
  "r463": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(3)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980"
  },
  "r464": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(4)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980"
  },
  "r465": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980"
  },
  "r466": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918701-209980"
  },
  "r467": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "53",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123414884&loc=SL77918982-209971"
  },
  "r468": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/subtopic&trid=77888251"
  },
  "r469": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(01)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846"
  },
  "r47": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r470": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(03)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846"
  },
  "r471": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864"
  },
  "r472": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864"
  },
  "r473": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864"
  },
  "r474": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864"
  },
  "r475": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39603-107864"
  },
  "r476": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39691-107864"
  },
  "r477": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "850",
   "URI": "https://asc.fasb.org/topic&trid=2122745"
  },
  "r478": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "852",
   "URI": "https://asc.fasb.org/extlink&oid=124433192&loc=SL2890621-112765"
  },
  "r479": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "852",
   "URI": "https://asc.fasb.org/extlink&oid=124433192&loc=SL2890621-112765"
  },
  "r48": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.23)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r480": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "852",
   "URI": "https://asc.fasb.org/extlink&oid=84165509&loc=d3e56426-112766"
  },
  "r481": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "855",
   "URI": "https://asc.fasb.org/extlink&oid=6842918&loc=SL6314017-165662"
  },
  "r482": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "855",
   "URI": "https://asc.fasb.org/extlink&oid=6842918&loc=SL6314017-165662"
  },
  "r483": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "855",
   "URI": "https://asc.fasb.org/topic&trid=2122774"
  },
  "r484": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)(i)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r485": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)(ii)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r486": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r487": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r488": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r489": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r49": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.24)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r490": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r491": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r492": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r493": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r494": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r495": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r496": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r497": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=66007379&loc=d3e113888-111728"
  },
  "r498": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=109249958&loc=SL34722452-111729"
  },
  "r499": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122625-111746"
  },
  "r5": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(g)(1)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765"
  },
  "r50": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.25)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r500": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122625-111746"
  },
  "r501": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122625-111746"
  },
  "r502": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)(i)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122625-111746"
  },
  "r503": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746"
  },
  "r504": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746"
  },
  "r505": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746"
  },
  "r506": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746"
  },
  "r507": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(5)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746"
  },
  "r508": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(6)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746"
  },
  "r509": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(7)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746"
  },
  "r51": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r510": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746"
  },
  "r511": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746"
  },
  "r512": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746"
  },
  "r513": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=128311188&loc=d3e122739-111746"
  },
  "r514": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "910",
   "URI": "https://asc.fasb.org/extlink&oid=126937589&loc=SL119991595-234733"
  },
  "r515": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "730",
   "Topic": "912",
   "URI": "https://asc.fasb.org/extlink&oid=6472174&loc=d3e58812-109433"
  },
  "r516": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.L)",
   "Topic": "924",
   "URI": "https://asc.fasb.org/extlink&oid=6472922&loc=d3e499488-122856"
  },
  "r517": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e61929-109447"
  },
  "r518": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e61929-109447"
  },
  "r519": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62059-109447"
  },
  "r52": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29-30)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r520": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62059-109447"
  },
  "r521": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62395-109447"
  },
  "r522": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62395-109447"
  },
  "r523": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "33",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62479-109447"
  },
  "r524": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "33",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62479-109447"
  },
  "r525": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "35A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=SL6807758-109447"
  },
  "r526": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "35A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=SL6807758-109447"
  },
  "r527": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(c)(1)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e61872-109447"
  },
  "r528": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(c)(2)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e61872-109447"
  },
  "r529": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "20",
   "Topic": "940",
   "URI": "https://asc.fasb.org/extlink&oid=126941158&loc=d3e41242-110953"
  },
  "r53": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29-31)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r530": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(10))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878"
  },
  "r531": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(11))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878"
  },
  "r532": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(13))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878"
  },
  "r533": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(16))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878"
  },
  "r534": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(23))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878"
  },
  "r535": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.15(5))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878"
  },
  "r536": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.17)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878"
  },
  "r537": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(15))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r538": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(22))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r539": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(26))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r54": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r540": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(27))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r541": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.9)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r542": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.9-05(b)(2))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399901&loc=d3e537907-122884"
  },
  "r543": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=124429447&loc=SL124453093-239630"
  },
  "r544": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=123599511&loc=d3e64711-112823"
  },
  "r545": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(16))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910"
  },
  "r546": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(10))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910"
  },
  "r547": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(12))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910"
  },
  "r548": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16)(a)(1))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910"
  },
  "r549": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16)(a))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910"
  },
  "r55": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669646-108580"
  },
  "r550": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910"
  },
  "r551": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(3))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910"
  },
  "r552": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(4))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910"
  },
  "r553": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(25))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910"
  },
  "r554": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(8))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910"
  },
  "r555": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.(a),19)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910"
  },
  "r556": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.15(a))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910"
  },
  "r557": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(18))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r558": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(22))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r559": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(23))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r56": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e637-108580"
  },
  "r560": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(8))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r561": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(9))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r562": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4H",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=116884468&loc=SL65671331-158438"
  },
  "r563": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(d)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124506351&loc=SL117782755-158439"
  },
  "r564": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13H",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126561865&loc=SL117783719-158441"
  },
  "r565": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13H",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126561865&loc=SL117783719-158441"
  },
  "r566": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126561865&loc=SL117819544-158441"
  },
  "r567": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r568": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(1)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r569": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(2)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r57": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e681-108580"
  },
  "r570": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(1)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r571": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(i)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r572": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(ii)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r573": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(iii)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r574": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(iv)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r575": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(1)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r576": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(2)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r577": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "210",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=118262064&loc=SL116631418-115840"
  },
  "r578": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "210",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=118262064&loc=SL116631419-115840"
  },
  "r579": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(13))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=120401414&loc=d3e603758-122996"
  },
  "r58": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669686-108580"
  },
  "r580": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07.1(c))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=120401555&loc=SL114874292-224272"
  },
  "r581": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Footnote 4))",
   "Topic": "948",
   "URI": "https://asc.fasb.org/extlink&oid=120402547&loc=d3e617274-123014"
  },
  "r582": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "440",
   "Subparagraph": "(a)",
   "Topic": "954",
   "URI": "https://asc.fasb.org/extlink&oid=6491277&loc=d3e6429-115629"
  },
  "r583": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Subparagraph": "(d)",
   "Topic": "958",
   "URI": "https://asc.fasb.org/extlink&oid=126982197&loc=d3e99779-112916"
  },
  "r584": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "958",
   "URI": "https://asc.fasb.org/extlink&oid=126982197&loc=d3e99893-112916"
  },
  "r585": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "958",
   "URI": "https://asc.fasb.org/extlink&oid=126982197&loc=SL120174063-112916"
  },
  "r586": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column B))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r587": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column C))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r588": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column D))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r589": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column E))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r59": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669619-108580"
  },
  "r590": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column F))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r591": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column G))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r592": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column H))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r593": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column I))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r594": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 2))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r595": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Subparagraph": "(c)",
   "Topic": "976",
   "URI": "https://asc.fasb.org/extlink&oid=6497875&loc=d3e22274-108663"
  },
  "r596": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Subparagraph": "(b)",
   "Topic": "978",
   "URI": "https://asc.fasb.org/extlink&oid=126945304&loc=d3e27327-108691"
  },
  "r597": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "985",
   "URI": "https://asc.fasb.org/extlink&oid=6501960&loc=d3e128462-111756"
  },
  "r598": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b"
  },
  "r599": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r6": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765"
  },
  "r60": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669619-108580"
  },
  "r600": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r601": {
   "Name": "Form 10-Q",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "308",
   "Subsection": "a"
  },
  "r602": {
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "13",
   "Subsection": "a-1"
  },
  "r603": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1402"
  },
  "r604": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(1)"
  },
  "r605": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)"
  },
  "r606": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(3)"
  },
  "r607": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(i)"
  },
  "r608": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(ii)"
  },
  "r609": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(iii)"
  },
  "r61": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669619-108580"
  },
  "r610": {
   "Name": "Regulation S-T",
   "Number": "232",
   "Publisher": "SEC",
   "Section": "405"
  },
  "r611": {
   "Name": "Securities Act",
   "Number": "7A",
   "Publisher": "SEC",
   "Section": "B",
   "Subsection": "2"
  },
  "r62": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669625-108580"
  },
  "r63": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669625-108580"
  },
  "r64": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e557-108580"
  },
  "r65": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124442407-227067"
  },
  "r66": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124442411-227067"
  },
  "r67": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124452729-227067"
  },
  "r68": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(210.5-03(11))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227"
  },
  "r69": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(1))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227"
  },
  "r7": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6904-107765"
  },
  "r70": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(10))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227"
  },
  "r71": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(20))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227"
  },
  "r72": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(24))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227"
  },
  "r73": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(25))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227"
  },
  "r74": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(4))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227"
  },
  "r75": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(8))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227"
  },
  "r76": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.1(e))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227"
  },
  "r77": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.1)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227"
  },
  "r78": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.1,2)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227"
  },
  "r79": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.13)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227"
  },
  "r8": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=6361739&loc=d3e7789-107766"
  },
  "r80": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.2(a),(d))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227"
  },
  "r81": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.4)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227"
  },
  "r82": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.8)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227"
  },
  "r83": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.9)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227"
  },
  "r84": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3179-108585"
  },
  "r85": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3213-108585"
  },
  "r86": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3255-108585"
  },
  "r87": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3255-108585"
  },
  "r88": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3291-108585"
  },
  "r89": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3291-108585"
  },
  "r9": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r90": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3291-108585"
  },
  "r91": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3367-108585"
  },
  "r92": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3521-108585"
  },
  "r93": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3536-108585"
  },
  "r94": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3536-108585"
  },
  "r95": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585"
  },
  "r96": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585"
  },
  "r97": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585"
  },
  "r98": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3044-108585"
  },
  "r99": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=d3e4297-108586"
  }
 },
 "version": "2.1"
}
