/*
 * PE-Class v1.20.03 — Galaxy Z Fold7 unfolded PAPS header only.
 * Every layout selector requires the Fold-wide runtime markers so PC,
 * MacBook, iPad, Fold folded and iPhone retain their existing geometry.
 */
@media (min-width: 769px) and (max-width: 1200px) {
  html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"][data-pe-tab="paps"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  #app:has(#papsTableBox) > .pe87PageHead.peRecordStickyRegion.foldPapsUnifiedHead12003 {
    display: grid !important;
    grid-template-columns: clamp(215px, 28.3vw, 250px) minmax(0, 1fr) !important;
    grid-template-rows: 44px !important;
    align-items: center !important;
    column-gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"][data-pe-tab="paps"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  #app:has(#papsTableBox) > .pe87PageHead.foldPapsUnifiedHead12003 > .pe87Crumb {
    display: none !important;
    margin: 0 !important;
  }

  html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"][data-pe-tab="paps"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  #app:has(#papsTableBox) > .pe87PageHead.foldPapsUnifiedHead12003 > h2 {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #203247 !important;
    font-size: clamp(16px, 2.05vw, 20px) !important;
    line-height: 1 !important;
    letter-spacing: -.55px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"][data-pe-tab="paps"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  #app:has(#papsTableBox) > .pe87PageHead.foldPapsUnifiedHead12003 .foldPapsTitleIcon12003 {
    flex: 0 0 auto !important;
  }

  html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"][data-pe-tab="paps"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  #app:has(#papsTableBox) > .pe87PageHead.foldPapsUnifiedHead12003 .foldPapsTitleText12003 {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"][data-pe-tab="paps"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  #app:has(#papsTableBox) > .pe87PageHead.foldPapsUnifiedHead12003 > .row {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns:
      minmax(0, 1.05fr)
      minmax(0, .88fr)
      minmax(0, 1.78fr)
      minmax(0, .88fr)
      minmax(0, .66fr) !important;
    grid-template-rows: 44px !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    margin: 0 !important;
    overflow: hidden !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
  }

  html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"][data-pe-tab="paps"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  #app:has(#papsTableBox) > .pe87PageHead.foldPapsUnifiedHead12003 > .row > :is(#bulkMale, #bulkFemale) {
    display: none !important;
  }

  html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"][data-pe-tab="paps"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  #app:has(#papsTableBox) > .pe87PageHead.foldPapsUnifiedHead12003 > .row > :is(
    #papsMissingStudentsBtn,
    #foldPapsBulkMenuBtn12003,
    #exportPapsBtn,
    #deletePapsBtn,
    #savePapsBtn
  ) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 clamp(2px, .55vw, 7px) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    font-size: clamp(9.5px, 1.28vw, 12px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: -.35px !important;
    text-align: center !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"][data-pe-tab="paps"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  #app:has(#papsTableBox) > .pe87PageHead.foldPapsUnifiedHead12003 > .row > #papsMissingStudentsBtn { grid-column: 1 !important; }
  html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"][data-pe-tab="paps"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  #app:has(#papsTableBox) > .pe87PageHead.foldPapsUnifiedHead12003 > .row > #foldPapsBulkMenuBtn12003 { grid-column: 2 !important; }
  html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"][data-pe-tab="paps"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  #app:has(#papsTableBox) > .pe87PageHead.foldPapsUnifiedHead12003 > .row > #exportPapsBtn { grid-column: 3 !important; }
  html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"][data-pe-tab="paps"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  #app:has(#papsTableBox) > .pe87PageHead.foldPapsUnifiedHead12003 > .row > #deletePapsBtn { grid-column: 4 !important; }
  html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"][data-pe-tab="paps"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  #app:has(#papsTableBox) > .pe87PageHead.foldPapsUnifiedHead12003 > .row > #savePapsBtn { grid-column: 5 !important; }

  html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  .foldPapsBulkChoiceModal12003 > .foldPapsBulkChoiceCard12003 {
    width: min(390px, calc(100vw - 36px)) !important;
    max-width: calc(100vw - 36px) !important;
    padding: 18px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  .foldPapsBulkChoices12003 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html.pe87FoldWide[data-pe87-fold-device^="galaxy-fold"]:not(.pe87Ipad):not(.pe87IpadRuntime)
  .foldPapsBulkChoices12003 > .foldPapsBulkChoice12003 {
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 50px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    -webkit-tap-highlight-color: transparent !important;
  }
}
