/* =========================================================
 * 편입N 목업 시안 — P5 관리자 A (회원·강좌·주문·교재) 전용 스타일
 * 공용(admin.css·site.css)에 없는 것만 p5- 접두사로 추가한다.
 * ========================================================= */

/* ---------- 공통 보조 ---------- */
.p5-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.p5-sel-note { font-size: 13px; color: var(--slate-600); }
.p5-sel-note b { color: var(--red); }
.p5-chipbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.p5-chipbar .chip { height: 30px; padding: 0 12px; font-size: 12px; }
.p5-chipbar .chip .cnt { margin-left: 4px; font-weight: 800; opacity: .7; }
.p5-mt { margin-top: 16px; }
.p5-gap-sm { gap: 6px; }
.p5-num-input { width: 64px !important; height: 30px !important; padding: 0 8px; text-align: center; font-size: 13px; }
.p5-mini-input { height: 32px !important; font-size: 12px !important; min-width: 0; }
.dt td .p5-mini-input.input { width: 150px; }
.dt td .p5-mini-input.select { width: 120px; padding-right: 26px; background-position: right 8px center; }
.p5-thumb { width: 64px; flex-shrink: 0; border-radius: var(--radius-sm); }
.p5-thumb .ph-text { font-size: 9px; padding: 4px; line-height: 1.25; }
.p5-thumb.is-book { width: 40px; }
.p5-cell-media { display: flex; align-items: center; gap: 10px; min-width: 0; }
.p5-cell-media b { display: block; font-weight: 700; }
.p5-type { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 800; background: var(--line-soft); color: var(--slate-600); white-space: nowrap; }
.p5-type.is-freepass { background: var(--red-soft); color: var(--red); }
.p5-type.is-tpass { background: var(--blue-soft); color: var(--blue); }
.p5-type.is-umc { background: var(--navy); color: #fff; }
.p5-type.is-single { background: var(--line-soft); color: var(--navy); }
.p5-type.is-free { background: var(--green-soft); color: var(--green); }
.p5-type.is-book { background: var(--amber-soft); color: var(--amber); }
.p5-type.is-academy { background: var(--orange-soft); color: var(--orange); }
.p5-strike { text-decoration: line-through; color: var(--slate-500); font-size: 11px; display: block; }
.p5-progress-cell { min-width: 120px; }
.p5-progress-cell .progress-row { gap: 8px; }
.p5-progress-cell .progress-row b { font-size: 12px; min-width: 34px; text-align: right; }
.p5-kv-sm { font-size: 13px; }
.p5-kv-sm dt, .p5-kv-sm dd { padding: 9px 12px; }
.p5-section-gap { margin-top: 28px; }
.p5-foot-note { font-size: 12px; color: var(--slate-500); line-height: 1.6; }
.p5-foot-note b { color: var(--navy); }
.p5-actions-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.p5-actions-bar .row { gap: 6px; }

/* ---------- 회원 상세 ---------- */
.p5-profile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 22px; }
.p5-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 24px; font-weight: 800; flex-shrink: 0; }
.p5-profile-main { flex: 1; min-width: 200px; }
.p5-profile-main h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p5-profile-main h2 small { font-size: 13px; color: var(--slate-500); font-weight: 600; }
.p5-profile-main p { font-size: 13px; color: var(--slate-500); margin-top: 4px; }
.p5-profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.p5-profile-stats > div { padding: 10px 18px; text-align: center; }
.p5-profile-stats > div + div { border-left: 1px solid var(--line); }
.p5-profile-stats span { display: block; font-size: 11px; color: var(--slate-500); white-space: nowrap; }
.p5-profile-stats b { font-size: 17px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.p5-profile-stats b.t-red { color: var(--red); }
.p5-detail-tabs { margin-top: 16px; }
.p5-detail-tabs > .tab-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 8px; }
.p5-detail-tabs > .tab-list .tab { padding: 14px 14px; font-size: 14px; }
.p5-detail-tabs > .tab-panel { margin-top: 16px; }

.p5-devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.p5-device { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 10px; position: relative; }
.p5-device.is-now { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.p5-device-top { display: flex; align-items: center; gap: 10px; }
.p5-device-top b { display: block; font-size: 14px; }
.p5-device-top span { font-size: 12px; color: var(--slate-500); }
.p5-device-slot { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 800; color: var(--slate-400); }
.p5-device dl { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 5px 8px; font-size: 12px; }
.p5-device dt { color: var(--slate-500); }
.p5-device dd { color: var(--navy); font-weight: 600; word-break: break-all; }
.p5-device .btn { align-self: flex-start; }
.p5-device.is-empty { border-style: dashed; align-items: center; justify-content: center; text-align: center; color: var(--slate-500); min-height: 200px; font-size: 13px; }
.p5-slots { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.p5-slots i { width: 26px; height: 8px; border-radius: 4px; background: var(--navy); display: inline-block; }
.p5-slots i.is-off { background: var(--line); }
@media (max-width: 1023px) { .p5-devices { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .p5-profile { padding: 16px; gap: 12px; }
  .p5-profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .p5-profile-stats > div { padding: 8px 10px; }
  .p5-profile-stats > div:nth-child(3) { border-left: 0; }
  .p5-profile-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* 모달 안 결과 박스 (만료일 계산 등) */
.p5-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; background: var(--bg); border-radius: var(--radius); font-size: 13px; }
.p5-result b { font-size: 16px; color: var(--navy); }
.p5-result .t-red { color: var(--red); }
.p5-modal-form { display: grid; gap: 14px; }
.p5-modal-form .field { display: grid; gap: 6px; }
.p5-modal-form .label { font-size: 13px; font-weight: 700; color: var(--slate-600); }
.p5-modal-form .input, .p5-modal-form .select { height: 42px; font-size: 14px; }
.p5-modal-form .textarea { min-height: 84px; font-size: 14px; }
.p5-modal-form .option-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.p5-modal-form .option-card { padding: 10px 8px; text-align: center; align-items: center; }
.p5-modal-form .option-card strong { font-size: 14px; }
@media (max-width: 767px) { .p5-modal-form .option-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 강좌 등록 ---------- */
.p5-type-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
.p5-type-cards .option-card { padding: 10px 12px; }
.p5-type-cards .option-card strong { font-size: 14px; }
@media (max-width: 1279px) { .p5-type-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .p5-type-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.p5-include { border-top: 3px solid var(--red); }
.p5-include[hidden] { display: none; }
.p5-include-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.p5-include-grid label { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; cursor: pointer; }
.p5-include-grid label:has(input:checked) { border-color: var(--navy); background: var(--blue-soft); }
.p5-include-grid input { width: 16px; height: 16px; accent-color: var(--navy); margin-top: 2px; flex-shrink: 0; }
.p5-include-grid small { display: block; color: var(--slate-500); font-size: 11px; }
@media (max-width: 1023px) { .p5-include-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .p5-include-grid { grid-template-columns: minmax(0, 1fr); } }
.p5-price-pair { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.p5-price-pair .input { width: 140px; }
.p5-unit-row td { background: #f4f6fa !important; font-weight: 800; color: var(--navy); }
.p5-unit-row .input { font-weight: 700; }
.p5-lesson-title { width: 100% !important; min-width: 190px; }
#p5-lessons th:nth-child(2), #p5-lessons tr.p5-lesson td:nth-child(2) { width: 100%; }
.p5-lesson .p5-no { white-space: nowrap; }
.p5-unit-row .input { width: min(420px, 60vw); display: inline-block; vertical-align: middle; }
.p5-move { display: inline-flex; gap: 2px; }
.p5-move .btn { width: 26px; padding: 0; }
.p5-handle { color: var(--slate-400); cursor: grab; display: inline-grid; place-items: center; vertical-align: middle; }
.p5-file { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--blue); }
.p5-side-sticky { position: sticky; top: calc(var(--adm-top-h) + 16px); }
@media (max-width: 1023px) { .p5-side-sticky { position: static; } }
.p5-summary li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.p5-summary li:last-child { border-bottom: 0; }
.p5-summary li span { color: var(--slate-500); }

/* ---------- 영상 ---------- */
.p5-drop { border: 2px dashed var(--slate-300); border-radius: var(--radius-lg); background: #fbfcfd; padding: 34px 20px; text-align: center; display: grid; justify-items: center; gap: 8px; color: var(--slate-600); font-size: 13px; transition: border-color .15s, background .15s; }
.p5-drop.is-over { border-color: var(--red); background: var(--red-soft); }
.p5-drop-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.p5-drop strong { font-size: 16px; color: var(--navy); }
.p5-queue { display: grid; }
.p5-q { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.p5-q:last-child { border-bottom: 0; }
.p5-q-main { min-width: 0; }
.p5-q-name { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.p5-q-name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.p5-q-meta { font-size: 11px; color: var(--slate-500); margin-top: 2px; }
.p5-q .progress { margin-top: 6px; }
.p5-q .progress.is-done span { background: var(--green); }
.p5-q .progress.is-fail span { background: var(--slate-400); }
.p5-q-side { text-align: right; display: grid; justify-items: end; gap: 4px; }
.p5-sec-list { display: grid; gap: 0; }
.p5-sec-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.p5-sec-item:last-child { border-bottom: 0; }
.p5-sec-item div { flex: 1; min-width: 0; }
.p5-sec-item b { font-size: 13px; display: block; }
.p5-sec-item p { font-size: 12px; color: var(--slate-500); }
.p5-wm-preview { position: relative; margin-top: 12px; border-radius: var(--radius); overflow: hidden; }
.p5-wm-preview .p5-wm { position: absolute; right: 8%; top: 12%; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.55); transform: rotate(-12deg); pointer-events: none; }
@media (max-width: 767px) { .p5-q { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; } .p5-q-side { justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; } }

/* ---------- 강사 ---------- */
.p5-photo-up { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.p5-photo-up .ph { width: 96px; border-radius: var(--radius); }

/* ---------- 환불 계산 ---------- */
.p5-calc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.p5-calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--line-soft); }
.p5-calc-row span { color: var(--slate-600); }
.p5-calc-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.p5-calc-row small { display: block; font-size: 11px; color: var(--slate-500); margin-top: 2px; }
.p5-calc-row.is-minus b { color: var(--blue); }
.p5-calc-row.is-total { background: var(--navy); color: #fff; border-bottom: 0; padding: 14px; }
.p5-calc-row.is-total span { color: var(--slate-300); font-weight: 700; }
.p5-calc-row.is-total b { font-size: 22px; color: #fff; }
.p5-formula { margin-top: 12px; padding: 12px 14px; background: var(--bg); border-radius: var(--radius); font-size: 12px; line-height: 1.8; color: var(--slate-600); word-break: keep-all; }
.p5-formula code { font-family: inherit; font-weight: 700; color: var(--navy); background: #fff; padding: 1px 6px; border-radius: 3px; border: 1px solid var(--line); }
.p5-gauge { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.p5-gauge > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.p5-gauge span { font-size: 11px; color: var(--slate-500); display: block; }
.p5-gauge b { font-size: 18px; font-weight: 800; }
.p5-gauge .progress { margin-top: 6px; }
.p5-pick-row { cursor: pointer; }

/* ---------- 정산 ---------- */
.p5-steps-panel { padding: 18px 22px 14px; }
.p5-steps-panel .steps { max-width: 760px; margin: 0 auto; }

/* ---------- 재고 ---------- */
.p5-stockbar { position: relative; width: 120px; height: 8px; border-radius: 4px; background: var(--line-soft); }
.p5-stockbar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--navy); }
.p5-stockbar > i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--red); }
.p5-stockbar.is-low > span { background: var(--red); }
.p5-stockbar.is-warn > span { background: var(--orange); }
.p5-qty-in { color: var(--blue); font-weight: 700; }
.p5-qty-out { color: var(--red); font-weight: 700; }

/* ---------- 송장·라벨 ---------- */
.p5-labels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p5-label { border: 1px solid var(--navy); border-radius: var(--radius-sm); padding: 12px; font-size: 12px; display: grid; gap: 6px; background: #fff; }
.p5-label-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 6px; font-weight: 800; }
.p5-barcode { height: 34px; background: repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 4px, var(--navy) 4px 5px, transparent 5px 8px, var(--navy) 8px 11px, transparent 11px 12px); border-radius: 2px; }
.p5-label dl { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 3px 8px; }
.p5-label dt { color: var(--slate-500); }
.p5-label dd { font-weight: 600; word-break: keep-all; }
@media (max-width: 767px) { .p5-labels { grid-template-columns: minmax(0, 1fr); } }
.p5-msg-preview { background: #b2c7d9; border-radius: var(--radius); padding: 16px; }
.p5-msg-bubble { background: #fff; border-radius: 12px; max-width: 300px; overflow: hidden; font-size: 12px; line-height: 1.7; box-shadow: var(--shadow); }
.p5-msg-bubble .mb-head { background: var(--kakao); padding: 8px 12px; font-weight: 800; color: var(--navy); }
.p5-msg-bubble .mb-body { padding: 12px; color: var(--navy); }
.p5-msg-bubble .mb-btn { margin: 0 12px 12px; display: block; text-align: center; padding: 7px; border-radius: 6px; background: var(--bg); font-weight: 700; }

/* 휴면·탈퇴 보존 표 */
.p5-keep td:first-child { font-weight: 700; }

/* ---------- F2 보정 ---------- */
/* 쿠폰 표: 1440 에서 상태·관리 열이 패널 밖으로 밀리지 않게 셀 여백을 줄임 */
.dt.p5-tight th, .dt.p5-tight td { padding-left: 8px; padding-right: 8px; }
.dt.p5-tight td .p5-progress-cell { min-width: 104px; }
/* 차시 목록: 접어 둔 단원(시안 표본 밖 차시) 안내 줄 */
.p5-unit-fold td { background: #fafbfd !important; color: var(--slate-600); font-size: 12.5px; white-space: normal !important; }
.p5-unit-fold b { color: var(--navy); }
/* 매출 통계: 강의별 합계 줄 */
.p5-total-row td { background: #f8f9fb; border-top: 1px solid var(--line); }
.dt.p5-tight td:nth-child(4) { white-space: normal; word-break: keep-all; min-width: 92px; max-width: 124px; }
@media (max-width: 767px) { .p5-lesson-title { min-width: 240px; } }

/* ---------- F3 보정 ---------- */
/* 차시 목록 390: 표 대신 카드형(1줄 차시·제목 / 2줄 영상 상태·버튼 / 3줄 교안·맛보기·순서). 768px 이상은 표 그대로 */
@media (max-width: 767px) {
  #p5-lessons, #p5-lessons tbody { display: block; width: 100%; }
  #p5-lessons thead { display: none; }
  #p5-lessons tr.p5-unit-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f4f6fa; border-bottom: 1px solid var(--line-soft); }
  #p5-lessons tr.p5-unit-row td { display: block; padding: 0; border: 0; background: transparent !important; }
  #p5-lessons tr.p5-unit-row td:first-child { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 4px; }
  #p5-lessons tr.p5-unit-row td:first-child .input { width: auto !important; flex: 1 1 auto; min-width: 0; }
  #p5-lessons tr.p5-lesson { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
  #p5-lessons tr.p5-lesson td { display: block; padding: 0; border: 0; width: auto !important; }
  #p5-lessons tr.p5-lesson td:nth-child(1) { flex: 0 0 auto; }
  #p5-lessons tr.p5-lesson td:nth-child(2) { flex: 1 1 0; min-width: 0; }
  #p5-lessons tr.p5-lesson .p5-lesson-title { min-width: 0; width: 100% !important; }
  #p5-lessons tr.p5-lesson td:nth-child(3) { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; padding-left: 2px; }
  #p5-lessons tr.p5-lesson td:nth-child(3)::before { content: "영상"; font-size: 11px; font-weight: 700; color: var(--slate-500); }
  #p5-lessons tr.p5-lesson td:nth-child(3) .sub { display: inline; }
  #p5-lessons tr.p5-lesson td:nth-child(4) { flex: 0 1 auto; min-width: 0; }
  #p5-lessons tr.p5-lesson td:nth-child(5) { display: flex; align-items: center; gap: 4px; }
  #p5-lessons tr.p5-lesson td:nth-child(5)::before { content: "맛보기"; font-size: 11px; font-weight: 700; color: var(--slate-500); }
  #p5-lessons tr.p5-lesson td:nth-child(6) { margin-left: auto; }
  #p5-lessons tr.p5-unit-fold { display: block; }
  #p5-lessons tr.p5-unit-fold td { display: block; padding: 10px 12px; }
  #p5-lessons-panel .panel-foot { flex-wrap: wrap; gap: 8px; }
}

/* ---------- F4 보정 (1440 표 잘림) ---------- */
/* 쿠폰 > 패키지 할인 표, 휴면·탈퇴 > 보존 기간 표: 2fr/1fr 칸에서 오른쪽 열이 잘리지 않게
 * 긴 글 열만 줄바꿈을 허용하고 공용 .is-wrap 의 min-width:200px 를 이 표에서만 푼다. 1열 배치(1023 이하)는 그대로 */
@media (min-width: 1024px) {
  #p5-pk td:nth-child(2) { white-space: normal; min-width: 140px; }
  #p5-pk td:nth-child(4) { white-space: normal; min-width: 92px; }
  .dt.p5-keep td.is-wrap { min-width: 0; }
  .dt.p5-keep td:first-child { white-space: normal; min-width: 120px; }
}

/* ---------- 실제 이미지 (2026-11-19 실데이터 대입) ---------- */
img.p5-thumb { display: block; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg); }
img.p5-thumb.is-book { aspect-ratio: 3 / 4.1; object-fit: cover; border: 1px solid var(--line); }
img.p5-thumb.p5-face { width: 44px; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; object-position: top; }
.ph > .p5-img, .ph > .p5-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0; }
.ph > .p5-face { object-position: top; }
.ph:has(> .p5-img)::before, .ph:has(> .p5-face)::before { display: none; }
.ph.p5-photo:has(> .p5-face) { background-image: none; }

/* ---------- 학원 수강료 청구 (tuition-bills, 2026-11-20 추가) ---------- */
.p5-tb-biz { display: grid; grid-template-columns: minmax(0, .8fr) repeat(4, minmax(0, 1fr)); gap: 10px; }
.p5-tb-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; text-align: left; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.p5-tb-card:hover:not(:disabled) { border-color: var(--navy); }
.p5-tb-card.is-active { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--blue-soft); }
.p5-tb-card:disabled { opacity: .45; cursor: not-allowed; }
.p5-tb-card > b { font-size: 15px; font-weight: 800; color: var(--navy); }
.p5-tb-card > span { font-size: 12px; font-weight: 700; color: var(--slate-600); overflow-wrap: anywhere; }
.p5-tb-card > small { font-size: 11px; color: var(--slate-500); overflow-wrap: anywhere; }
.p5-tb-card .note-tag { height: 17px; font-size: 10px; padding: 0 5px; }
.p5-tb-card-n b { color: var(--red); }
.p5-tb-bizline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--slate-600); background: var(--bg); border-radius: var(--radius); padding: 10px 12px; margin: 4px 0 14px; }
.p5-tb-bizline b { color: var(--navy); }
.p5-tb-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.p5-tb-pick .check { font-size: 13px; }
.p5-tb-pick .is-dup { color: var(--slate-400); }
.p5-tb-msg { white-space: pre-line; font-size: 12px; line-height: 1.6; color: var(--navy); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-top: 8px; }
@media (max-width: 1279px) { .p5-tb-biz { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .p5-tb-biz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p5-tb-biz .is-all { grid-column: 1 / -1; }
  .p5-tb-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* (EQH 2026-11-20) 좌우 섹션 높이 맞춤 보정 — 공용 규칙은 admin.css 4절 */
/* 강좌 편집: 오른쪽 판매 설정은 따라다니는(sticky) 칸이라 늘리지 않는다(늘리면 따라다니지 못함) */
@media (min-width: 1024px) {
  .adm-grid > .p5-side-sticky { align-self: start; }
  /* (EQH5) 휴면·탈퇴 '휴면 예정' 탭: is-top 해제, 목록 쪽당 5행(1-5 / 86)으로 오른쪽 자동 처리 설정과 높이를 맞춤(p5.js) */
  /* (EQH5) 영상 관리: is-top 해제 — 보안 설정 패널을 업로드·대기열 높이까지 늘리고 워터마크 미리보기는 패널 바닥에 */
  .adm-main .adm-grid:not(.is-top) > .p5-vsec > .panel-body { display: flex; flex-direction: column; }
  .adm-main .adm-grid:not(.is-top) > .p5-vsec .p5-wm-preview { margin-top: auto; flex-shrink: 0; }
  .adm-main .adm-grid:not(.is-top) > .p5-vsec .p5-sec-list { margin-bottom: 12px; }
}
/* (FINAL2) 1024~1279: 오른쪽 칸이 좁아 미리보기가 작아지는 만큼 토글 줄 간격을 조금 넓혀 목록과 미리보기 사이 빈 틈을 250px 아래로 */
@media (min-width: 1024px) and (max-width: 1279px) { .adm-main .adm-grid:not(.is-top) > .p5-vsec .p5-sec-item { padding: 14px 0; } }
/* (EQH3) 쿠폰: 1024~1279px 에선 오른쪽 발급 폼 칸(약 280px)이 좁아 입력줄이 밖으로 넘치고(가로 스크롤) 폼이 길어져
   목록 아래 480px 빈 판이 생긴다 → 이 구간만 목록 아래로 내림(1023 이하와 같은 1열) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .adm-grid.is-main:has(#cp-code) { grid-template-columns: minmax(0, 1fr); }
  /* (EQH3) 취소·환불: 이 구간에선 오른쪽 계산 패널이 좁아 길어지므로(약 920) 목록 높이에 맞추고 패널 안에서 스크롤. 승인 버튼 줄은 바닥 고정 */
  .adm-main .adm-grid > #rf-panel { contain: size; contain-intrinsic-height: 560px; }
  .adm-main .adm-grid > #rf-panel > .panel-body { flex: 1 1 0; min-height: 0; overflow-y: auto; }
}
