/* ================================================================
   view.css — view_comment.skin.php 사용분만 정리
================================================================ */

.jk-tbl-wrap { overflow-x: auto; }
.jk-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.jk-tbl thead tr { background: #f9fafb; }
.jk-tbl th { padding: 10px 12px; font-weight: 600; color: #374151; border-bottom: 2px solid #e5e7eb; text-align: center; font-size: 13px; }
.jk-tbl td { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.jk-tbl tbody tr:hover { background: #fafafa; }

.jk-num { text-align: center; color: #9ca3af; font-size: 13px; }
.jk-center { text-align: center; }
.jk-empty { text-align: center; padding: 40px; color: #9ca3af; }
.jk-none { color: #d1d5db; font-size: 12px; }

.jk-cmt-cnt-badge { background: #6366f1; color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.jk-size-badge { display: inline-block; background: #ede9fe; color: #5b21b6; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }

.jk-order-sheet { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.jk-order-sheet-head { background: #f9fafb; padding: 12px 20px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #374151; }

.jk-order-tbl thead tr { background: #eef2ff; }
.jk-order-tbl th { color: #4f46e5; font-size: 12px; }

.jk-row-acts { display: flex; gap: 6px; justify-content: center; }
.jk-cmt-act-btn { font-size: 12px; color: #6b7280; cursor: pointer; text-decoration: none; background: none; border: none; padding: 0; font-family: inherit; }
.jk-cmt-act-btn:hover { color: #4f46e5; }
.jk-cmt-del:hover { color: #ef4444 !important; }

.jk-order-guide { margin-left: auto; font-size: 12px; color: #9ca3af; }
.jk-st-memo { font-size: 11px; color: #6b7280; margin-top: 2px; display: block; }
.jk-editing-row td { background: #fef9c3 !important; }
.jk-td-name { font-weight: 600; font-size: 13px; }

.jk-rule-summary { border: 1px solid #c7d2fe; border-radius: 10px; background: #eef2ff; padding: 14px 18px; margin-bottom: 16px; }
.jk-rule-title { font-size: 13px; font-weight: 700; color: #4338ca; margin-bottom: 10px; }
.jk-rule-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.jk-rule-list li { font-size: 13px; color: #374151; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.jk-rule-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.jk-pos-b { background: #06b6d4; }
.jk-pos-e { background: #ef4444; }
.jk-pos-f { background: #8b5cf6; }

.jk-rule-off { color: #9ca3af; }
.jk-style-tag { background: #ede9fe; color: #5b21b6; padding: 1px 6px; border-radius: 4px; font-style: normal; font-size: 12px; }

.jk-cmt-form-wrap { padding: 20px; background: #fafafa; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 16px; }
.jk-cmt-form-title { font-size: 15px; font-weight: 700; color: #374151; margin: 0 0 14px; }
.jk-form-sub { font-size: 12px; font-weight: 400; color: #9ca3af; margin-left: 8px; }

.jk-admin-area { border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.jk-admin-summary { padding: 10px 16px; font-size: 13px; font-weight: 700; color: #374151; cursor: pointer; background: #f9fafb; list-style: none; }
.jk-admin-inner { padding: 14px 16px; background: #fff; }
.jk-admin-guide { font-size: 12px; color: #6b7280; margin: 0 0 10px; }
.jk-admin-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; }

.jk-divider { border: none; border-top: 1px dashed #e5e7eb; margin: 16px 0; }

.jk-status-btns { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jk-st-tag-btn { font-size: 12px; padding: 5px 12px; border-radius: 4px; border: 1px solid #d1d5db; background: #fff; cursor: pointer; color: #374151; font-family: inherit; }
.jk-st-tag-btn:hover { background: #ede9fe; border-color: #a78bfa; color: #5b21b6; }
.jk-st-tag-btn.active { background: #ede9fe; border-color: #6366f1; color: #4f46e5; font-weight: 700; }

.jk-cmt-guest { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.jk-order-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

.jk-of-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.jk-of-row .jk-lb { width: 110px; flex-shrink: 0; }
.jk-of-row .jk-inp { flex: 1; min-width: 0; }
.jk-of-row .jk-sel { flex: 1; min-width: 0; }

.jk-of-input-wrap { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.jk-rule-hint { font-size: 12px; color: #6b7280; }

.jk-chk-lb { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }

.jk-cmt-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.jk-foot-btns { display: flex; gap: 8px; }

.jk-ini-label { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #6366f1; color: #fff; font-size: 10px; font-weight: 700; }

.jk-st { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; }
.jk-st-wait { background: #f3f4f6; color: #4b5563; }
.jk-st-recv { background: #dbeafe; color: #1d4ed8; }
.jk-st-paid { background: #ede9fe; color: #6d28d9; }
.jk-st-make { background: #fef3c7; color: #b45309; }
.jk-st-done { background: #dcfce7; color: #15803d; }

/* ── 반응형 ── */
@media (max-width: 600px) {
  .jk-tbl th,
  .jk-tbl td {
    padding: 8px 6px;
    font-size: 12px;
  }

  .jk-of-row .jk-lb {
    width: 80px;
    font-size: 12px;
  }

  .jk-cmt-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ================================================================
   view.skin.php 인라인 스타일 통합 (view.skin.php 에서 이동)
================================================================ */

/* 2-컬럼 레이아웃 */
.vw-wrap {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 20px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 60px;
}

/* 왼쪽 컬럼 (캔버스 + 업로드 패널) */
.vw-left-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 80px;
    align-self: start;
}

/* 캔버스 패널 */
.vw-canvas-panel {
    background: #fff; border: 1px solid #e8eaed;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.vw-canvas-tabs {
    display: flex; gap: 3px; padding: 12px 14px 10px;
    border-bottom: 1px solid #f0f2f5; background: #fafbff;
}
.vw-canvas-tabs button {
    flex: 1; padding: 7px 4px; border: 1px solid #e0e4ef; border-radius: 8px;
    background: #fff; font-size: 12px; font-weight: 600; color: #8b95a3;
    cursor: pointer; transition: all .15s; font-family: inherit;
}
.vw-canvas-tabs button.active {
    background: #3b5bdb; border-color: #3b5bdb; color: #fff;
    box-shadow: 0 2px 6px rgba(59,91,219,.3);
}
.vw-canvas-area {
    padding: 20px; display: flex; align-items: center; justify-content: center;
    min-height: 400px; background: #f0f2f7;
}
#vw-canvas { display: block; max-width: 100%; max-height: 400px; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, .25)); }
.vw-legend {
    padding: 10px 14px 14px; border-top: 1px solid #f0f2f5;
    display: flex; flex-wrap: wrap; gap: 5px 12px;
}
.vw-legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #8b95a3; }
.vw-legend-swatch { width:10px; height:10px; border-radius:3px; border:1px solid rgba(0,0,0,.12); flex-shrink:0; }
.vw-canvas-actions { padding: 12px 14px; border-top: 1px solid #f0f2f5; display: flex; gap: 8px; }
.vw-canvas-actions a { flex: 1; text-align: center; }

/* 정보 패널 */
.vw-info { display: flex; flex-direction: column; gap: 12px; }

/* 주문자 헤더 카드 */
.vw-header-card {
    background: #3b5bdb;
    border-radius: 14px; padding: 22px 24px; color: #fff;
}
.vw-header-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.vw-dept { font-size: 22px; font-weight: 800; line-height: 1.2; }
.vw-meta { font-size: 13px; opacity: .8; margin-top: 4px; }
.vw-order-no {
    background: rgba(255,255,255,.15); border-radius: 8px;
    padding: 6px 12px; font-size: 11px; font-weight: 700; white-space: nowrap; text-align: right;
}
.vw-order-no small { display:block; opacity:.7; font-weight:400; margin-bottom:2px; }
.vw-contacts { display:flex; gap:20px; padding-top:14px; border-top:1px solid rgba(255,255,255,.2); flex-wrap:wrap; }
.vw-contact-item label { font-size:10px; font-weight:700; opacity:.65; text-transform:uppercase; letter-spacing:.5px; display:block; margin-bottom:3px; }
.vw-contact-item .val { font-size: 14px; font-weight: 600; }
.vw-note { margin-top:12px; padding:10px 14px; background:rgba(255,255,255,.12); border-radius:8px; font-size:13px; line-height:1.6; }

/* 아코디언 스텝 카드 */
.vw-step { background:#fff; border:1px solid #e8eaed; border-radius:12px; overflow:hidden; }
.vw-step-hd { display:flex; align-items:center; gap:10px; padding:13px 16px; cursor:pointer; user-select:none; transition:background .12s; }
.vw-step-hd:hover { background: #f8f9ff; }
.vw-step-hd.open { border-bottom: 1px solid #f0f2f5; }
.vw-step-badge { min-width:22px; height:22px; border-radius:50%; background:#3b5bdb; color:#fff; font-size:10px; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.vw-step-badge.summary { background:#7c3aed; font-size:13px; }
.vw-step-title { font-size:13px; font-weight:700; flex:1; color:#1a1d23; }
.vw-step-arrow { font-size:10px; color:#c0c7d4; transition:transform .2s; }
.vw-step-hd.open .vw-step-arrow { transform: rotate(180deg); }
.vw-step-body { display:none; padding:14px 16px; }
.vw-step-body.open { display:block; }

/* 인포 테이블 */
.vit { width:100%; border-collapse:collapse; font-size:13px; }
.vit th { width:120px; text-align:left; padding:7px 10px 7px 0; color:#8b95a3; font-weight:600; border-bottom:1px solid #f3f5f9; vertical-align:top; white-space:nowrap; }
.vit td { padding:7px 0 7px 4px; border-bottom:1px solid #f3f5f9; vertical-align:middle; line-height:1.5; }
.vit tr:last-child th, .vit tr:last-child td { border-bottom:none; }
.vit-section { font-size:10px; font-weight:800; color:#3b5bdb; text-transform:uppercase; letter-spacing:.6px; padding:8px 0 4px; border-bottom:2px solid #eef1ff; margin-bottom:4px; }

/* 색상 요소 */
.vswatch { display:inline-block; width:14px; height:14px; border-radius:4px; border:1px solid rgba(0,0,0,.12); vertical-align:middle; margin-right:4px; flex-shrink:0; }
.vhex  { font-size:11px; color:#6b7280; vertical-align:middle; font-family:monospace; }
.vname { font-size:12px; color:#374151; vertical-align:middle; margin-left:5px; font-weight:500; }
.vn    { color:#d1d5db; font-size:12px; font-style:normal; }
.vbig  { font-size:20px; font-weight:800; color:#1a1d23; }

/* 파일 */
.vfile-thumb { width:36px; height:36px; object-fit:contain; border:1px solid #e5e7eb; border-radius:6px; background:#f9f9f9; vertical-align:middle; margin-right:6px; }
.vfile-link { font-size:12px; color:#3b5bdb; text-decoration:none; vertical-align:middle; }
.vfile-link:hover { text-decoration: underline; }

/* 색상 요약 그리드 */
.vcolor-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.vcolor-item { display:flex; align-items:center; gap:8px; padding:8px 10px; background:#f8f9fc; border-radius:8px; }
.vcolor-big { width:28px; height:28px; border-radius:7px; border:1px solid rgba(0,0,0,.1); flex-shrink:0; }
.vcolor-info { display:flex; flex-direction:column; min-width:0; }
.vcolor-lbl { font-size:10px; color:#9ca3af; font-weight:600; }
.vcolor-val { font-size:12px; font-weight:700; color:#1a1d23; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* 반응형 */
@media (max-width: 860px) {
    .vw-wrap { grid-template-columns: 1fr; }
    .vw-left-col { position: static; }
    .vw-canvas-panel { position: static; }
    .vw-contacts { gap: 14px; }
    .vcolor-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .vw-header-card { padding: 16px; }
    .vw-dept { font-size: 18px; }
    .vit th { width: 90px; font-size: 11px; }
}

/* ================================================================
   개인별 주문 드로어
================================================================ */

/* 버튼 */
.jk-btn-order {
    border: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}
.jk-btn-order:hover { opacity: .88; transform: translateY(-1px); }
.vw-order-cnt {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: rgba(255,255,255,.3); border-radius: 10px;
    font-size: 11px; font-weight: 800; line-height: 1;
}

/* 오버레이 */
.vw-drawer-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 1400;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
    animation: vwFadeIn .2s ease;
}
.vw-drawer-overlay.open { display: block; }

/* 드로어 */
.vw-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1401;
    width: min(600px, 100vw);
    background: #fff;
    display: flex; flex-direction: column;
    box-shadow: -4px 0 32px rgba(0,0,0,.18);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.vw-drawer.open { transform: translateX(0); }

/* 헤더 */
.vw-drawer-hd {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e8eaed;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    flex-shrink: 0;
}
.vw-drawer-title {
    font-size: 16px; font-weight: 800; color: #fff;
    display: flex; align-items: center; gap: 10px;
}
.vw-drawer-dept {
    font-size: 12px; font-weight: 500;
    background: rgba(255,255,255,.2); border-radius: 20px;
    padding: 3px 10px; color: rgba(255,255,255,.9);
}
.vw-drawer-close {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.2); border: none; color: #fff;
    font-size: 14px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s; font-family: inherit; line-height: 1;
}
.vw-drawer-close:hover { background: rgba(255,255,255,.35); }

/* 바디 */
.vw-drawer-body {
    flex: 1; overflow-y: auto;
    padding: 20px;
    overscroll-behavior: contain;
}
/* 댓글폼이 드로어 안에서 자연스럽게 보이도록 */
.vw-drawer-body .jk-cmt-form-wrap { margin-bottom: 12px; }
.vw-drawer-body .jk-order-sheet { margin-bottom: 12px; }

@keyframes vwFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 모바일 */
@media (max-width: 600px) {
    .vw-drawer { width: 100vw; }
    .vw-drawer-body { padding: 14px; }
}

/* ================================================================
   학생명단 일괄등록 패널 (vw-canvas-panel 아래)
================================================================ */
.vw-upload-panel {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    margin-top: 12px;
}
.vw-upload-hd {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
    background: #fafbff;
}
.vw-upload-title {
    font-size: 14px;
    font-weight: 800;
    color: #1a1d23;
}
.vw-upload-sub {
    font-size: 11px;
    color: #9ca3af;
}
.vw-upload-body {
    padding: 16px;
}
.vw-step-list {
    margin: 0 0 6px;
    padding-left: 18px;
    font-size: 12px;
    color: #374151;
    line-height: 1.8;
}
.vw-file-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 14px;
    background: #f8f9fc;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    color: #6b7280;
    transition: border-color .15s, background .15s;
}
.vw-file-label:hover,
.vw-file-label.drag-over {
    border-color: #6366f1;
    background: #eef2ff;
    color: #4f46e5;
}

/* 수정/삭제 액션 버튼 행 */
.vw-action-row {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f2f5;
    align-items: center;
}
.vw-action-row .jk-btn {
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: opacity .15s;
}
.vw-action-row .jk-btn:hover { opacity: .85; }

/* ── 진행사항 패널 ── */
.vw-progress-panel {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
}
.vw-progress-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid #f0f2f5;
    background: #f8f9ff;
}
.vw-progress-title { font-size: 13px; font-weight: 700; color: #1a1d23; }
.vw-progress-edit-btn {
    font-size: 11px;
    padding: 4px 10px;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    background: #eef2ff;
    color: #4338ca;
    cursor: pointer;
    font-weight: 600;
    transition: background .15s;
}
.vw-progress-edit-btn:hover { background: #e0e7ff; }

/* 스텝 트래커 */
.vw-progress-track {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 12px 14px;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
}
.vw-pt-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 48px;
}
.vw-pt-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #e5e7eb;
    transition: all .2s;
}
.vw-pt-item.done .vw-pt-dot  { background: #3b5bdb; color: #fff; border-color: #3b5bdb; }
.vw-pt-item.active .vw-pt-dot { background: #3b5bdb; color: #fff; border-color: #3b5bdb; box-shadow: 0 0 0 4px #c7d2fe; }
.vw-pt-label {
    font-size: 10px; color: #9ca3af; font-weight: 500; text-align: center; white-space: nowrap;
}
.vw-pt-item.done .vw-pt-label  { color: #3b5bdb; font-weight: 700; }
.vw-pt-item.active .vw-pt-label { color: #1e3a8a; font-weight: 800; }
.vw-pt-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin-top: 14px;
    min-width: 12px;
    transition: background .2s;
}
.vw-pt-line.done { background: #3b5bdb; }

/* 이력 */
.vw-progress-history {
    padding: 0 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vw-ph-item {
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 3px solid #e5e7eb;
    font-size: 12px;
}
.vw-ph-item.latest {
    background: #eef2ff;
    border-left-color: #3b5bdb;
}
.vw-ph-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vw-ph-label { font-weight: 700; color: #374151; }
.vw-ph-item.latest .vw-ph-label { color: #3b5bdb; }
.vw-ph-date { font-size: 11px; color: #9ca3af; flex-shrink: 0; }
.vw-ph-msg { margin-top: 4px; color: #4b5563; line-height: 1.5; font-size: 12px; }

.vw-progress-empty {
    padding: 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
}

/* 관리자 수정 폼 */
.vw-progress-form {
    padding: 14px 16px;
    border-top: 1px dashed #e0e7ff;
    background: #f8f9ff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vw-pf-row { display: flex; flex-direction: column; gap: 4px; }
.vw-pf-row label { font-size: 11px; font-weight: 700; color: #6b7280; }
.vw-pf-row label small { font-weight: 400; color: #9ca3af; }
.vw-pf-row select,
.vw-pf-row textarea {
    border: 1px solid #d1d5db;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 13px;
    color: #1a1d23;
    background: #fff;
    outline: none;
    resize: vertical;
    font-family: inherit;
}
.vw-pf-row select:focus,
.vw-pf-row textarea:focus { border-color: #3b5bdb; box-shadow: 0 0 0 3px #c7d2fe; }
.vw-pf-btns { display: flex; gap: 8px; }

/* ── 마스킹 ── */
.vw-mask { color: #9ca3af; letter-spacing: 1px; }
/* ── 헤더 금액 뱃지 ── */
.vw-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.40);
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .3px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}