/*
 * PE-Class PAPS screen foundation 11674
 * --------------------------------------
 * PAPS 레이아웃의 최종 소유 파일입니다.
 * 과거 iPad/Fold/Mac 보정 파일의 PAPS 선택자보다 뒤에서 로드되어,
 * 기기 판별 조건이 겹치더라도 이 파일의 단일 레이아웃만 적용됩니다.
 * 데이터·계산·저장 로직은 변경하지 않습니다.
 */

html[data-pe-foundation] #papsTableBox.tableWrap {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: clip !important;
  overscroll-behavior-x: none;
}

html[data-pe-foundation] #papsTableBox table.pe87Paps.dataTable {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

html[data-pe-foundation] #papsTableBox table.pe87Paps th,
html[data-pe-foundation] #papsTableBox table.pe87Paps td {
  box-sizing: border-box !important;
  min-width: 0 !important;
  text-align: center !important;
  vertical-align: middle !important;
  overflow: hidden !important;
  overflow-wrap: anywhere;
}

html[data-pe-foundation] #papsTableBox table.pe87Paps th {
  line-height: 1.25 !important;
}

html[data-pe-foundation] #papsTableBox table.pe87Paps td {
  height: auto !important;
}

html[data-pe-foundation] #papsTableBox .papsInput {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 58px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

html[data-pe-foundation] #papsTableBox .papsPairedInputs,
html[data-pe-foundation] #papsTableBox .papsGripInputs {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto 5px !important;
  align-items: center !important;
  justify-content: center !important;
}

html[data-pe-foundation] #papsTableBox .papsPairedInputs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 58px)) !important;
  gap: 4px !important;
}

html[data-pe-foundation] #papsTableBox .papsGripInputs {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 3px !important;
}

html[data-pe-foundation] #papsTableBox .papsPairedInputs .papsInput,
html[data-pe-foundation] #papsTableBox .papsGripInputs .papsInput {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

html[data-pe-foundation] #papsTableBox .genderToggle,
html[data-pe-foundation] #papsTableBox .papsGrade,
html[data-pe-foundation] #papsTableBox .overallGradeBadge,
html[data-pe-foundation] #papsTableBox .bmiValue,
html[data-pe-foundation] #papsTableBox .summaryScore,
html[data-pe-foundation] #papsTableBox .summaryGrade {
  max-width: 100% !important;
}

html[data-pe-foundation] #papsTableBox .papsGrade,
html[data-pe-foundation] #papsTableBox .overallGradeBadge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

html[data-pe-foundation] #papsTableBox .bmiValue {
  display: block !important;
  white-space: nowrap !important;
}

/* PC, MacBook, iPad: 운영본과 동일한 12열 전체 기록표 */
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th,
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td,
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th,
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td {
  padding: 8px 3px !important;
  font-size: clamp(8px, .7vw, 12px) !important;
}

html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td,
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td {
  min-height: 94px !important;
}

html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(1),
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(1),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(1),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(1) { width: 4% !important; }
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(2),
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(2),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(2),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(2) { width: 7% !important; }
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(3),
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(3),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(3),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(3) { width: 6% !important; }
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(4),
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(4),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(4),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(4) { width: 7% !important; }
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(5),
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(5),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(5),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(5) { width: 13% !important; }
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(6),
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(6),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(6),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(6) { width: 18% !important; }
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(7),
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(7),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(7),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(7) { width: 13% !important; }
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(8),
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(8),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(8),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(8) { width: 6% !important; }
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(9),
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(9),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(9),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(9) { width: 6% !important; }
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(10),
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(10),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(10),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(10) { width: 8% !important; }
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(11),
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(11),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(11),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(11) { width: 6% !important; }
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(12),
html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(12),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps th:nth-child(12),
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox table.pe87Paps td:nth-child(12) { width: 6% !important; }

/* iPad 11인치: 종합 등급 배지가 셀 안에서 여유 있게 보이도록 1% 재배분 */
html[data-pe-device="tablet"][data-pe-fold-wide="false"] #papsTableBox table.pe87Paps th:nth-child(6),
html[data-pe-device="tablet"][data-pe-fold-wide="false"] #papsTableBox table.pe87Paps td:nth-child(6) { width: 17% !important; }
html[data-pe-device="tablet"][data-pe-fold-wide="false"] #papsTableBox table.pe87Paps th:nth-child(12),
html[data-pe-device="tablet"][data-pe-fold-wide="false"] #papsTableBox table.pe87Paps td:nth-child(12) { width: 7% !important; }

html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox .papsGripInputs,
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox .papsGripInputs {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

html[data-pe-device="desktop"]:not([data-pe-fold-wide="true"]) #papsTableBox .overallGradeBadge,
html[data-pe-device="tablet"]:not([data-pe-fold-wide="true"]) #papsTableBox .overallGradeBadge {
  min-width: 0 !important;
  padding: 5px 7px !important;
  font-size: clamp(8px, .62vw, 11px) !important;
}

/* 좁은 MacBook 레이아웃: 종합 등급 열을 1% 확장해 잘림 방지 */
@media (min-width: 1001px) and (max-width: 1600px) {
  html[data-pe-foundation][data-pe-device="desktop"]:not([data-pe-fold-wide="true"]):not(.pe87Ipad):not(.pe87IpadRuntime) #papsTableBox table.pe87Paps th:nth-child(6),
  html[data-pe-foundation][data-pe-device="desktop"]:not([data-pe-fold-wide="true"]):not(.pe87Ipad):not(.pe87IpadRuntime) #papsTableBox table.pe87Paps td:nth-child(6) { width: 17% !important; }
  html[data-pe-foundation][data-pe-device="desktop"]:not([data-pe-fold-wide="true"]):not(.pe87Ipad):not(.pe87IpadRuntime) #papsTableBox table.pe87Paps th:nth-child(12),
  html[data-pe-foundation][data-pe-device="desktop"]:not([data-pe-fold-wide="true"]):not(.pe87Ipad):not(.pe87IpadRuntime) #papsTableBox table.pe87Paps td:nth-child(12) { width: 7% !important; }
}

/* Galaxy Fold 펼침: 번호·이름·성별·종합등급 한 줄 + 상세 모달 */
html:is([data-pe-fold-wide="true"], .pe87FoldWide) #papsTableBox {
  overflow: visible !important;
}

html:is([data-pe-fold-wide="true"], .pe87FoldWide) #papsTableBox table.pe87Paps.dataTable,
html:is([data-pe-fold-wide="true"], .pe87FoldWide) #papsTableBox table.pe87Paps thead,
html:is([data-pe-fold-wide="true"], .pe87FoldWide) #papsTableBox table.pe87Paps tbody {
  display: block !important;
  width: 100% !important;
}

html:is([data-pe-fold-wide="true"], .pe87FoldWide) #papsTableBox table.pe87Paps thead > tr,
html:is([data-pe-fold-wide="true"], .pe87FoldWide) #papsTableBox table.pe87Paps tbody > tr {
  display: grid !important;
  grid-template-columns: 72px minmax(120px, 1fr) 104px 132px !important;
  width: 100% !important;
  min-height: 58px !important;
  margin: 0 0 10px !important;
  overflow: hidden !important;
  border: 1px solid #d7e3ec !important;
  border-radius: 13px !important;
  background: #fff !important;
}

html:is([data-pe-fold-wide="true"], .pe87FoldWide) #papsTableBox table.pe87Paps thead > tr {
  min-height: 38px !important;
  border-color: #c9dce9 !important;
  background: #edf7ff !important;
}

html[data-pe-foundation]:is([data-pe-fold-wide="true"], .pe87FoldWide) #papsTableBox table.pe87Paps.dataTable th,
html[data-pe-foundation]:is([data-pe-fold-wide="true"], .pe87FoldWide) #papsTableBox table.pe87Paps.dataTable td {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: inherit !important;
  padding: 9px 8px !important;
  box-sizing: border-box !important;
  justify-self: stretch !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-right: 1px solid #dce6ee !important;
  font-size: 12px !important;
}

html:is([data-pe-fold-wide="true"], .pe87FoldWide) #papsTableBox table.pe87Paps th:nth-child(n+4):nth-child(-n+11),
html:is([data-pe-fold-wide="true"], .pe87FoldWide) #papsTableBox table.pe87Paps td:nth-child(n+4):nth-child(-n+11) {
  display: none !important;
}

html:is([data-pe-fold-wide="true"], .pe87FoldWide) #papsTableBox table.pe87Paps th:last-child,
html:is([data-pe-fold-wide="true"], .pe87FoldWide) #papsTableBox table.pe87Paps td:last-child {
  border-right: 0 !important;
}

html:is([data-pe-fold-wide="true"], .pe87FoldWide) #papsTableBox table.pe87Paps td::before {
  display: none !important;
  content: none !important;
}

html:is([data-pe-fold-wide="true"], .pe87FoldWide) #papsTableBox .genderToggle {
  min-height: 36px !important;
  padding: 5px 10px !important;
  font-size: 11px !important;
}

html:is([data-pe-fold-wide="true"], .pe87FoldWide) #papsTableBox .summaryGrade {
  cursor: pointer !important;
  background: #f8fbfe !important;
}

html:is([data-pe-fold-wide="true"], .pe87FoldWide) #papsTableBox .summaryGrade .overallGradeBadge {
  min-width: 72px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
}

html:is([data-pe-fold-wide="true"], .pe87FoldWide) .foldPapsDetailModal {
  z-index: 25000 !important;
}

html:is([data-pe-fold-wide="true"], .pe87FoldWide) .foldPapsDetailDialog {
  width: min(820px, calc(100vw - 24px)) !important;
  max-height: calc(100dvh - 24px) !important;
  padding: 0 !important;
  overflow: auto !important;
}

/* 모바일 PAPS 탭에서만 단일 학생 카드 UI를 유일한 표시 계층으로 사용합니다.
   #mobilePapsHost는 다른 탭으로 이동해도 재사용을 위해 DOM에 남아 있으므로,
   요소의 존재 여부가 아니라 현재 탭 상태와 실제 표시 상태를 함께 확인해야 합니다. */
html[data-pe-device="compact"][data-pe-tab="paps"] body.mobilePapsView #app {
  display: none !important;
}

html[data-pe-device="compact"][data-pe-tab="paps"] #mobilePapsHost:not([hidden]) {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

html[data-pe-device="compact"] #mobilePapsHost[hidden],
html[data-pe-device="compact"]:not([data-pe-tab="paps"]) #mobilePapsHost {
  display: none !important;
}

html[data-pe-device="compact"][data-pe-tab="paps"]
#mobilePapsDashboardCard .mobilePapsActionRow .btn > span {
  display: inline-block !important;
  line-height: 1.15 !important;
  text-align: center !important;
  white-space: normal !important;
}

/*
 * Compact PAPS bulk actions: the emoji is a text node while the two-line
 * label is a span.  Flex alignment keeps both items on the same visual
 * center without touching Fold-wide, iPad or desktop layouts.
 */
html[data-pe-device="compact"][data-pe-tab="paps"]
#mobilePapsDashboardCard .mobilePapsActionRow >
:is(#mPapsBulkMale, #mPapsBulkFemale, #mPapsDelete) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  text-align: center !important;
  line-height: 1.15 !important;
}

/*
 * PC · MacBook · iPad PAPS dashboard header owner.
 * Keep the page title at the same visual scale as other screens, reserve a
 * deliberate title/action gap, and let each action use only its content width.
 * Fold-wide and compact mobile layouts remain owned by their dedicated rules.
 */
@media (min-width: 1000px) and (orientation: landscape) {
  html[data-pe-foundation][data-pe-tab="paps"]:is([data-pe-device="desktop"], .pe87Ipad, .pe87IpadRuntime, [data-pe-ipados="true"]):not(.pe87FoldWide):not([data-pe-fold-wide="true"])
  #app:has(#papsTableBox) > .pe87PageHead {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html[data-pe-foundation][data-pe-tab="paps"]:is([data-pe-device="desktop"], .pe87Ipad, .pe87IpadRuntime, [data-pe-ipados="true"]):not(.pe87FoldWide):not([data-pe-fold-wide="true"])
  #app:has(#papsTableBox) > .pe87PageHead > h2 {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    letter-spacing: -.45px !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  html[data-pe-foundation][data-pe-tab="paps"]:is([data-pe-device="desktop"], .pe87Ipad, .pe87IpadRuntime, [data-pe-ipados="true"]):not(.pe87FoldWide):not([data-pe-fold-wide="true"])
  #app:has(#papsTableBox) > .pe87PageHead > .row {
    display: flex !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex-wrap: nowrap !important;
  }

  html[data-pe-foundation][data-pe-tab="paps"]:is([data-pe-device="desktop"], .pe87Ipad, .pe87IpadRuntime, [data-pe-ipados="true"]):not(.pe87FoldWide):not([data-pe-fold-wide="true"])
  #app:has(#papsTableBox) > .pe87PageHead > .row > .btn {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    font-size: clamp(9.5px, .7vw, 11px) !important;
    line-height: 1 !important;
    letter-spacing: -.2px !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  html[data-pe-foundation][data-pe-tab="paps"]:is([data-pe-device="desktop"], .pe87Ipad, .pe87IpadRuntime, [data-pe-ipados="true"]):not(.pe87FoldWide):not([data-pe-fold-wide="true"])
  #app:has(#papsTableBox) > .pe87PageHead > .row > #papsMissingStudentsBtn {
    grid-column: auto !important;
    width: auto !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  html[data-pe-foundation][data-pe-tab="paps"]:is([data-pe-device="desktop"], .pe87Ipad, .pe87IpadRuntime, [data-pe-ipados="true"]):not(.pe87FoldWide):not([data-pe-fold-wide="true"])
  #app:has(#papsTableBox) > .pe87PageHead > .row > :is(#bulkMale, #bulkFemale) {
    font-size: 0 !important;
  }

  html[data-pe-foundation][data-pe-tab="paps"]:is([data-pe-device="desktop"], .pe87Ipad, .pe87IpadRuntime, [data-pe-ipados="true"]):not(.pe87FoldWide):not([data-pe-fold-wide="true"])
  #app:has(#papsTableBox) > .pe87PageHead > .row > #bulkMale::after {
    content: "👦 남학생 일괄 설정";
    font-size: clamp(9.5px, .7vw, 11px) !important;
  }

  html[data-pe-foundation][data-pe-tab="paps"]:is([data-pe-device="desktop"], .pe87Ipad, .pe87IpadRuntime, [data-pe-ipados="true"]):not(.pe87FoldWide):not([data-pe-fold-wide="true"])
  #app:has(#papsTableBox) > .pe87PageHead > .row > #bulkFemale::after {
    content: "👧 여학생 일괄 설정";
    font-size: clamp(9.5px, .7vw, 11px) !important;
  }
}

/*
 * PC · MacBook header alignment.
 * The action group owns the right edge while the title remains on the left,
 * creating a clear visual separation without changing iPad or Fold layouts.
 */
@media (min-width: 1000px) and (orientation: landscape) {
  html[data-pe-foundation][data-pe-tab="paps"][data-pe-device="desktop"]:not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"]):not(.pe87FoldWide):not([data-pe-fold-wide="true"])
  #app:has(#papsTableBox) > .pe87PageHead {
    gap: 28px !important;
  }

  html[data-pe-foundation][data-pe-tab="paps"][data-pe-device="desktop"]:not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"]):not(.pe87FoldWide):not([data-pe-fold-wide="true"])
  #app:has(#papsTableBox) > .pe87PageHead > .row {
    margin-left: auto !important;
    justify-content: flex-end !important;
  }
}
