/*
 * PE-Class v1.19.50
 * 반별 진도표의 표 외곽선과 하단 작업 카드를 서로 독립시킵니다.
 * 768px 이하 모바일 카드 화면은 기존 문서 스크롤 구조를 유지합니다.
 */
@media (min-width: 769px) {
  body.classProgressApp .pe87ProgressPanel > .progressActions.progressActionsDetached {
    display: flex !important;
    flex: 0 0 auto !important;
    width: calc(100% - 32px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 32px) !important;
    min-height: 66px !important;
    margin: 14px 16px 16px !important;
    padding: 12px 14px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    border: 1px solid #dce8f1 !important;
    border-radius: 12px !important;
    background: #f9fcff !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached .progressSelectionActions {
    display: contents !important;
  }

  body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #deleteProgressRows {
    order: 1 !important;
    margin: 0 auto 0 0 !important;
  }

  body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #restoreSelectedProgressPlans {
    order: 2 !important;
    margin: 0 !important;
  }

  body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #addProgressRow {
    order: 3 !important;
    margin: 0 !important;
  }

  body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #addProgressRow,
  body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #restoreSelectedProgressPlans,
  body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #deleteProgressRows {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 14px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    font-size: 12.5px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #addProgressRow {
    min-width: 142px !important;
  }

  body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #restoreSelectedProgressPlans {
    min-width: 184px !important;
    border: 1px solid #b8d9ec !important;
    background: #fff !important;
    color: #177bb9 !important;
  }

  body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #deleteProgressRows {
    min-width: 205px !important;
  }

  body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #restoreSelectedProgressPlans:disabled,
  body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #deleteProgressRows:disabled {
    cursor: not-allowed !important;
    opacity: .46 !important;
    box-shadow: none !important;
  }

  body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached .progressActionCount {
    display: inline-flex !important;
    min-width: 19px !important;
    height: 19px !important;
    margin-left: 5px !important;
    padding: 0 5px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: rgba(20, 89, 132, .1) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 19px !important;
    box-sizing: border-box !important;
  }

  body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #deleteProgressRows .progressActionCount {
    background: rgba(255, 255, 255, .2) !important;
  }

  html.pe87Ipad body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached,
  html.pe87IpadRuntime body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached {
    margin-top: 13px !important;
  }

  html.pe87Ipad body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #addProgressRow,
  html.pe87Ipad body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #restoreSelectedProgressPlans,
  html.pe87Ipad body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #deleteProgressRows,
  html.pe87IpadRuntime body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #addProgressRow,
  html.pe87IpadRuntime body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #restoreSelectedProgressPlans,
  html.pe87IpadRuntime body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #deleteProgressRows {
    padding: 0 10px !important;
    font-size: 10.5px !important;
  }

  html.pe87FoldWide body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached {
    display: grid !important;
    grid-template-columns: minmax(190px, 1fr) auto auto !important;
    grid-template-rows: 40px !important;
    min-height: 60px !important;
    height: 60px !important;
    padding: 10px !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  html.pe87FoldWide body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #deleteProgressRows {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    min-width: 190px !important;
  }

  html.pe87FoldWide body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #restoreSelectedProgressPlans {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    min-width: 178px !important;
  }

  html.pe87FoldWide body.classProgressApp .pe87ProgressPanel
  > .progressActions.progressActionsDetached #addProgressRow {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    min-width: 106px !important;
  }
}
