/*
  PC 견적상담 스킨 스타일 (v11)
  - GnuBoard/Rebuilder 공통
  - 사이트 전체 영향 방지: .pcest-wrap 스코프 안에서만 적용
*/

.pcest-wrap{
  /*
    스킨 컨테이너 폭/여백 통일
    - 리스트/보기/글쓰기/수정 모두 동일한 최대폭을 사용
    - 테마의 컨테이너가 있든 없든, 스킨 자체에서 폭을 보장
  */
  max-width:1200px;
  margin:0 auto;
  padding:28px 24px;

  --pcest-bg:#f6f7fb;
  --pcest-card:#ffffff;
  --pcest-line:#e5e7eb;
  --pcest-text:#111827;
  --pcest-sub:#6b7280;

  --pcest-primary:#9333EA;
  --pcest-primary-weak:#fdf4ff;

  --pcest-danger:#ef4444;
  --pcest-ok:#16a34a;
  --pcest-wait:#f59e0b;
  --pcest-no:#9ca3af;

  --pcest-radius:14px;
  --pcest-radius-sm:10px;
  --pcest-shadow:0 12px 30px rgba(16,24,40,.10);
  --pcest-shadow-sm:0 6px 18px rgba(16,24,40,.08);

  color:var(--pcest-text);
}

@media (max-width:768px){
  .pcest-wrap{ padding:28px 12px; }
}

.pcest-wrap *{ box-sizing:border-box; }
.pcest-wrap a{ color:inherit; text-decoration:none; }
.pcest-wrap a:hover{ text-decoration:none; }

/* Layout */
.pcest-topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin:0 0 18px; flex-wrap:wrap;
}
.pcest-title{
  font-weight:800; font-size:22px;
}
.pcest-subtitle{ font-size:13px; color:var(--pcest-sub); margin-top:4px; }
.pcest-actions{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }

.pcest-card{
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  padding:0;
}
.pcest-card + .pcest-card{ margin-top:18px; }

/* Buttons */
.pcest-btn{
  display:inline-flex; align-items:center; gap:6px;
  height:34px; padding:0 12px;
  border-radius:999px;
  border:1px solid #e8eaf0;
  background:#fff;
  color:#303549;
  text-decoration:none;
  font-size:13px;
}
.pcest-btn:hover{ background:#f6f7ff; border-color:#dfe3f5; }
.pcest-btn.primary{
  background:#111827;
  color:#fff;
  border-color:rgba(0,0,0,.08);
}
.pcest-btn.primary:hover{ opacity:.92; }
.pcest-btn.ghost{
  background:transparent;
}
.pcest-btn.danger{
  background:#fff;
  border-color:#fecaca;
  color:#b91c1c;
}
.pcest-btn.small{ height:30px; padding:0 10px; font-size:12px; }
.pcest-btn--print{
  background:#7C3AED;
  color:#fff !important;
  border-color:rgba(29,78,216,.3);
  font-size:12px;
  height:26px; padding:0 10px;
}
.pcest-btn--print:hover{ background:#7C3AED; border-color:rgba(30,64,175,.4); }
.pcest-btn--copy{
  background:#f59e0b;
  color:#fff !important;
  border-color:rgba(245,158,11,.3);
}
.pcest-btn--copy:hover{ background:#d97706; }
.pcest-btn--taxinv{
  background:#065f46;
  color:#fff !important;
  border-color:rgba(6,95,70,.3);
}
.pcest-btn--taxinv:hover{ background:#047857; }
.pcest-btn--receipt{
  background:#7c3aed;
  color:#fff !important;
  border-color:rgba(124,58,237,.3);
}
.pcest-btn--receipt:hover{ background:#6d28d9; }
.pcest-btn--xs{ height:26px; padding:0 8px; font-size:11px; }

/* 목록 셀 */
.pc-cno-cell{ font-size:12px; color:#6b7280; white-space:nowrap; font-family:monospace; }
.pc-name-cell{ font-weight:600; white-space:nowrap; }
/* 연락처 블러 (레벨9 미만) — 호버 시 해제 */
.pc-blur{ filter:blur(4px); transition:filter .15s; cursor:pointer; user-select:none; }
.pc-blur:hover{ filter:none; }
/* 제목/금액/상담번호 블러 — 호버 해제 없음 */
.pc-blur--hard{ filter:blur(5px); user-select:none; pointer-events:none; }
.pc-parts-cell{ font-size:12px; color:#374151; }
.pc-money-cell{ text-align:right; white-space:nowrap; font-size:13px; }
.pc-money-cell b{ color:#7C3AED; }
.pc-coupon-cell{ color:#d97706; }
.pc-act-cell{ text-align:center; }
.pc-act-btns{ display:flex; flex-wrap:wrap; gap:3px; justify-content:center; }
/* 구형 meta 태그 호환 */
.pc-parts-tag{ color:#374151; }
.pc-price-tag{ color:#7C3AED; font-weight:600; }
.pc-check-tag{ color:#d97706; }

/* Controls */
.pcest-wrap input[type="text"],
.pcest-wrap input[type="number"],
.pcest-wrap input[type="date"],
.pcest-wrap input[type="tel"],
.pcest-wrap input[type="url"],
.pcest-wrap textarea,
.pcest-wrap select{
  width:100%;
  height:38px;
  border-radius:10px;
  border:1px solid var(--pcest-line);
  padding:0 12px;
  background:#fff;
  font-size:13px;
  outline:none;
}
.pcest-wrap textarea{
  height:auto;
  min-height:120px;
  padding:10px 12px;
  resize:vertical;
}
.pcest-wrap input:focus,
.pcest-wrap textarea:focus,
.pcest-wrap select:focus{
  border-color:rgba(147,51,234,.45);
  box-shadow:0 0 0 3px rgba(147,51,234,.10);
}
.pcest-wrap input[readonly]{ background:#f9fafb; color:#374151; }

.pcest-inline{ display:flex; gap:8px; align-items:center; }
.pcest-inline > *{ flex:0 0 auto; }
.pcest-inline .grow{ flex:1 1 auto; }

/* Filter */
.pcest-filter{ margin-top:10px; }
.pcest-filter .row{
  display:flex; align-items:center; flex-wrap:wrap; gap:8px 10px;
  padding:8px 0;
}
.pcest-filter .label{
  font-size:12px; color:var(--pcest-sub); font-weight:700;
  margin-right:2px;
}
.pcest-chipset{ display:flex; gap:8px; flex-wrap:wrap; }
.pcest-chip{
  display:inline-flex; align-items:center; gap:5px;
  height:34px; padding:0 12px;
  border-radius:999px;
  border:1px solid #e8eaf0;
  background:#fff;
  font-size:13px; font-weight:400;
  color:#303549;
  text-decoration:none; cursor:pointer;
  transition:background .12s, border-color .12s, color .12s;
  white-space:nowrap;
}
.pcest-chip:hover{ background:#f6f7ff; border-color:#dfe3f5; }
.pcest-chip.on{
  background:rgba(124,58,237,.10);
  border-color:rgba(124,58,237,.35);
  color:#5b21b6;
}
.pcest-checkset{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.pcest-check{
  display:inline-flex; gap:6px; align-items:center;
  font-size:13px; color:#374151; font-weight:600;
}
.pcest-check input{ width:16px; height:16px; }

/* Table */
.pcest-table-wrap{ margin-top:20px; }
.pc-board-list{ margin-top:20px; }
.pcest-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--pcest-line);
  border-radius:var(--pcest-radius);
  background:#fff;
}
.pcest-table thead th{
  text-align:left;
  font-size:12px;
  color:var(--pcest-sub);
  font-weight:800;
  background:#f9fafb;
  padding:12px 12px;
  border-bottom:1px solid var(--pcest-line);
}
.pcest-table tbody td{
  padding:12px 12px;
  border-bottom:1px solid #f1f5f9;
  vertical-align:middle;
  font-size:13px;
}
.pcest-table tbody tr:hover{ background:#fbfdff; }
.pcest-table tbody tr:last-child td{ border-bottom:none; }

.pcest-rowlink{ display:block; color:inherit; }
.pcest-subrow{ font-size:12px; color:var(--pcest-sub); margin-top:4px; }
.pcest-thumb{
  width:42px; height:42px; border-radius:10px;
  border:1px solid var(--pcest-line);
  overflow:hidden;
  background:#fff;
  display:flex; align-items:center; justify-content:center;
}
.pcest-thumb img{ width:100%; height:100%; object-fit:cover; }

.pcest-badge{
  display:inline-flex; align-items:center; justify-content:center;
  height:24px; padding:0 10px;
  border-radius:999px;
  font-size:12px; font-weight:800;
  border:1px solid var(--pcest-line);
  background:#fff;
  color:#374151;
  white-space:nowrap;
}
.pcest-badge.ok{ background:#ecfdf5; border-color:#a7f3d0; color:#047857; }
.pcest-badge.wait{ background:#fffbeb; border-color:#fde68a; color:#92400e; }
.pcest-badge.no{ background:#f3f4f6; border-color:#e5e7eb; color:#6b7280; }
.pcest-badge.danger{ background:#fef2f2; border-color:#fecaca; color:#b91c1c; }

/* Write */
.pcest-write h3{
  margin:0 0 12px;
  font-size:15px;
  font-weight:900;
  letter-spacing:-.2px;
}
.pcest-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px 14px;
}
.pcest-grid .field label{
  display:block;
  font-size:12px;
  color:var(--pcest-sub);
  font-weight:800;
  margin:0 0 6px;
}
.pcest-help{ font-size:12px; color:var(--pcest-sub); margin-top:6px; line-height:1.45; }

/* Accordion */
.pcest-acc{ border:1px solid var(--pcest-line); border-radius:var(--pcest-radius); overflow:hidden; background:#fff; }
.pcest-acc summary{
  list-style:none;
  cursor:pointer;
  padding:12px 12px;
  background:#f9fafb;
  font-weight:900;
  display:flex; align-items:center; justify-content:space-between;
}
.pcest-acc summary::-webkit-details-marker{ display:none; }
.pcest-acc .acc-body{ padding:12px; }

/* Dropzone */
.pcest-drop{
  border:1px dashed rgba(147,51,234,.35);
  background:rgba(147,51,234,.04);
  border-radius:var(--pcest-radius);
  padding:14px;
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.pcest-drop .hint{ font-size:13px; font-weight:800; }
.pcest-drop .sub{ font-size:12px; color:var(--pcest-sub); margin-top:4px; }
.pcest-filelist{ margin:10px 0 0; padding-left:18px; color:#374151; font-size:13px; }
.pcest-filelist li{ margin:4px 0; }

/* View */
.pcest-kv{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:10px 12px;
}
.pcest-kv .kv{
  padding:10px 10px;
  border:1px solid var(--pcest-line);
  border-radius:12px;
  background:#fff;
}
.pcest-kv .k{ font-size:12px; color:var(--pcest-sub); font-weight:800; }
.pcest-kv .v{ font-size:13px; font-weight:800; margin-top:6px; }

.pcest-content{
  line-height:1.7;
  font-size:14px;
}
.pcest-content img{ max-width:100%; height:auto; border-radius:12px; }

/* ===== 페이지네이션 통일 (dw-pg 기준) ===== */
.pcest-pager{ margin:16px 0 0; display:flex; justify-content:center; align-items:center; gap:4px; flex-wrap:wrap; }
.pcest-pager .sound_only{ display:none !important; }
.pcest-pager .pg_wrap{ background:none; border:none; padding:0; margin:0; }
.pcest-pager .pg{ display:flex; align-items:center; gap:4px; }
.pcest-pager .pg a,
.pcest-pager .pg span,
.pcest-pager .pg strong{
  min-width:30px; height:30px; line-height:30px;
  padding:0 6px;
  border:1px solid #ddd;
  border-radius:4px;
  background:#fff;
  color:#555;
  font-size:12px;
  font-weight:400;
  text-align:center;
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none;
  transition:all .15s;
}
.pcest-pager .pg a:hover{ background:#f5f5f5; border-color:#2b2b2b; color:#2b2b2b; }
.pcest-pager .pg .pg_current,
.pcest-pager .pg strong{ background:#2b2b2b; border-color:#2b2b2b; color:#fff; font-weight:700; }
/* 카카오 공유 버튼 */
.pcest-ci-btn.kakao{ background:#FEE500; color:#191919; font-weight:700; }
.pcest-pg-total{ font-size:11px; color:#999; white-space:nowrap; margin-left:6px; }

/* Checkbox / Radio (soft, rounded) */
.pcest-wrap input[type="checkbox"],
.pcest-wrap input[type="radio"]{
  -webkit-appearance:none; appearance:none;
  width:18px; height:18px;
  border:1px solid #cbd5e1;
  background:#fff;
  display:inline-grid;
  place-content:center;
  vertical-align:middle;
  cursor:pointer;
  transition:all .12s ease;
  margin:0;
}
.pcest-wrap input[type="checkbox"]{ border-radius:6px; }
.pcest-wrap input[type="radio"]{ border-radius:999px; }
.pcest-wrap input[type="checkbox"]::before,
.pcest-wrap input[type="radio"]::before{
  content:"";
  width:10px; height:10px;
  transform:scale(0);
  transition:transform .12s ease;
  background:#111827;
}
.pcest-wrap input[type="checkbox"]::before{ border-radius:3px; }
.pcest-wrap input[type="radio"]::before{ border-radius:999px; }
.pcest-wrap input[type="checkbox"]:checked::before,
.pcest-wrap input[type="radio"]:checked::before{ transform:scale(1); }
.pcest-wrap input[type="checkbox"]:focus,
.pcest-wrap input[type="radio"]:focus{
  outline:none;
  box-shadow:0 0 0 4px rgba(147,51,234,.15);
  border-color:rgba(147,51,234,.55);
}
.pcest-wrap label{ cursor:pointer; }



/* KV blocks used inside .pcest-grid (view) */
.pcest-grid .pcest-kv{
  padding:10px 10px;
  border:1px solid var(--pcest-line);
  border-radius:12px;
  background:#fff;
}
.pcest-grid .pcest-kv .k{ font-size:12px; color:var(--pcest-sub); font-weight:800; }
.pcest-grid .pcest-kv .v{ font-size:13px; font-weight:800; margin-top:6px; }


/* Responsive */
@media (max-width: 900px){
  .pcest-grid{ grid-template-columns:1fr; }
  .pcest-kv{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .pcest-topbar{ flex-direction:column; align-items:stretch; }
  .pcest-actions{ justify-content:flex-start; }
}
@media (max-width: 520px){
  .pcest-kv{ grid-template-columns:1fr; }
  .pcest-table thead{ display:none; }
  .pcest-table, .pcest-table tbody, .pcest-table tr, .pcest-table td{ display:block; width:100%; }
  .pcest-table tr{ border-bottom:1px solid var(--pcest-line); }
  .pcest-table td{ border:none; padding:10px 12px; }
}


/* ===== PC Consult: View page table layout ===== */
.pc-consult-view {background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;max-width:1200px;margin:0 auto;padding:0 24px}
.pc-consult-view__head{padding:16px 18px;border-bottom:1px solid #eef2f7;display:flex;gap:12px;flex-wrap:wrap;align-items:flex-start;justify-content:space-between}
.pc-consult-view__title{font-size:18px;font-weight:800;line-height:1.2;margin:0}
.pc-consult-view__meta{font-size:12px;color:#6b7280;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.pc-badges{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pc-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;border:1px solid #e5e7eb;background:#f9fafb;color:#111827}
.pc-badge--status{background:#fdf4ff;border-color:#f3e8ff;color:#7C3AED}
.pc-badge--type{background:#f0fdf4;border-color:#dcfce7;color:#166534}

.pc-consult-view__section{padding:16px 18px;border-bottom:1px solid #eef2f7}
.pc-consult-view__section:last-child{border-bottom:0}
.pc-section-title{font-size:14px;font-weight:800;margin:0 0 10px;color:#111827}
.pc-kv-table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;border:1px solid #e5e7eb;border-radius:10px}
.pc-kv-table th,.pc-kv-table td{padding:10px 12px;border-bottom:1px solid #eef2f7;font-size:13px;vertical-align:top}
.pc-kv-table tr:last-child th,.pc-kv-table tr:last-child td{border-bottom:0}
.pc-kv-table th{width:160px;background:#f9fafb;color:#374151;font-weight:800}
.pc-kv-table td{color:#111827}
@media (max-width: 768px){
  .pc-kv-table th{width:120px}
}

/* ===== Comment UX: youtube-like collapse/expand ===== */
.pc-cmt-form textarea{min-height:42px;height:auto;resize:vertical}
.pc-cmt-textarea--compact{min-height:38px}
.pc-cmt-item{border:1px solid #e5e7eb;border-radius:12px;padding:12px 14px;background:#fff;margin:10px 0}
.pc-cmt-top{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.pc-cmt-author{font-weight:800;font-size:13px}
.pc-cmt-date{font-size:12px;color:#6b7280}
.pc-cmt-content{margin-top:8px;font-size:13px;line-height:1.55;color:#111827;white-space:pre-wrap}
.pc-cmt-content.is-clamped{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.pc-cmt-actions{margin-top:8px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.pc-cmt-more{font-size:12px;font-weight:800;color:#9333EA;background:transparent;border:0;padding:0;cursor:pointer}
.pc-cmt-more:hover{text-decoration:underline}


/* ===== Printable (A4) 상담 기록/견적서 스타일 ===== */
@media print{
  .pc-consult-view{max-width:none;margin:0;padding:0;border:none}

  body{background:#fff !important}
  .pc-no-print{display:none !important}
  .pc-consult-view{border:none !important; border-radius:0 !important}
  .pc-consult-view__head{padding:0 0 10px 0 !important}
  .pc-consult-view__section{padding:0 0 12px 0 !important; page-break-inside:avoid}
  .pc-kv-table{border:1px solid #111827 !important}
  .pc-kv-table th,.pc-kv-table td{border-bottom:1px solid #111827 !important}
  .pc-kv-table th{background:#fff !important}
  .pc-print-title{display:block !important}
  .pc-print-footer{display:block !important}
}
.pc-print-title{display:none;margin:0 0 10px 0;font-size:18px;font-weight:900}
.pc-print-footer{display:none;margin-top:14px;font-size:12px;color:#374151}

/* ===== View: 상담 기록 테이블(견적서 느낌) ===== */
.pc-doc-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden}
.pc-doc-table th,.pc-doc-table td{padding:10px 12px;border-bottom:1px solid #eef2f7;font-size:13px;vertical-align:top}
.pc-doc-table tr:last-child th,.pc-doc-table tr:last-child td{border-bottom:0}
.pc-doc-table th{width:150px;background:#f9fafb;color:#111827;font-weight:900}
.pc-doc-table td{color:#111827}
.pc-doc-table .pc-muted{color:#6b7280}
.pc-doc-2col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width: 900px){ .pc-doc-2col{grid-template-columns:1fr} }

/* ===== YouTube-like comments ===== */
.pc-cmt-wrap{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}
.pc-cmt-head{padding:12px 14px;border-bottom:1px solid #eef2f7;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pc-cmt-head__left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pc-cmt-count{font-weight:900}
.pc-cmt-sort{font-size:12px;color:#374151;font-weight:800}
.pc-cmt-form{padding:12px 14px;border-bottom:1px solid #eef2f7}
.pc-cmt-form textarea{width:100%;min-height:38px;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px;font-size:13px}
.pc-cmt-form .pc-cmt-form__row{display:flex;gap:10px;align-items:flex-start}
.pc-cmt-avatar{width:34px;height:34px;border-radius:999px;background:#e5e7eb;flex:0 0 auto}
.pc-cmt-list{padding:6px 14px 14px}
.pc-cmt-item{border:none;border-radius:0;padding:12px 0;background:transparent;margin:0;border-bottom:1px solid #eef2f7}
.pc-cmt-item:last-child{border-bottom:0}
.pc-cmt-top{justify-content:flex-start}
.pc-cmt-author{font-weight:900}
.pc-cmt-date{margin-left:8px}
.pc-cmt-actions{gap:14px}


/* v14 UI (우리 스타일, 리빌더 느낌 참고) */
/* Note: .pcest-wrap, .pcest-card, .pcest-topbar, .pcest-title are already defined above */
.pcest-card h3{margin:0 0 12px;font-size:18px;letter-spacing:-.2px;}

.pcest-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:10px}
.pcest-grid .field{grid-column:span 6}
@media (max-width: 980px){.pcest-grid .field{grid-column:span 12}}
.field label{display:block;font-size:12px;font-weight:800;margin:0 0 6px;color:#222}
.field input[type=text], .field input[type=number], .field input[type=email], .field input[type=url], .field input[type=tel], .field select, .field textarea{
  width:100%;border:1px solid #d5d9dd;border-radius:10px;padding:10px 11px;font-size:14px;outline:none;background:#fff;
}
.field textarea{min-height:92px;resize:vertical}
.field input:focus, .field select:focus, .field textarea:focus{border-color:#111;box-shadow:0 0 0 3px rgba(0,0,0,.08)}

.section-title{margin:16px 0 8px;font-size:13px;font-weight:900;color:#111;letter-spacing:-.2px}
.pcest-help{font-size:12px;color:#666;margin-top:6px;line-height:1.5}

.pcest-acc{border:1px solid #eef0f2;border-radius:12px;padding:10px 12px;margin:10px 0;background:#fafbfc}
.pcest-acc > summary{cursor:pointer;list-style:none;font-weight:900;font-size:13px;color:#111;display:flex;align-items:center;justify-content:space-between}
.pcest-acc > summary::-webkit-details-marker{display:none}
.pcest-acc[open]{background:#fff}
.pcest-acc > summary:after{content:"▼";font-size:11px;opacity:.65}
.pcest-acc[open] > summary:after{content:"▲"}
.pcest-acc .pcest-grid{margin-top:10px}

.pcest-table{width:100%;border-collapse:separate;border-spacing:0}
.pcest-table th,.pcest-table td{border-bottom:1px solid #eef0f2;padding:10px 10px;font-size:13px;vertical-align:top}
.pcest-table thead th{position:sticky;top:0;background:#fafbfc;z-index:1;font-weight:900}
.pcest-table tr:hover td{background:#fcfdff}

.pc-doc-table{width:100%;border-collapse:separate;border-spacing:0}
.pc-doc-table th,.pc-doc-table td{border:1px solid #eef0f2;padding:10px 10px;font-size:13px;vertical-align:top}
.pc-doc-table th{background:#fafbfc;font-weight:900;width:120px}
@media (max-width: 720px){.pc-doc-table th{width:92px}}

.pc-dropzone{border:1px dashed #cfd5db;border-radius:12px;background:#fafbfc;padding:14px;text-align:center}
.pc-dropzone .hint{font-size:12px;color:#666;margin-top:6px}



/* View variables (keep consistent with list/write) */
.pc-consult-view{
  --pcest-line:#e5e7eb;
  --pcest-text:#111827;
  --pcest-sub:#6b7280;
}
.pc-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--pcest-line);
  background:#fff;
  color:var(--pcest-text);
  font-weight:900;
  cursor:pointer;
}
.pc-btn--ghost{ background:#f3f4f6; }
.pc-btn:hover{ background:#f9fafb; }

/* View: printable sheet header (A4-ish) */
.pc-doc-sheet{ background:#fff; border:1px solid var(--pcest-line); border-radius:16px; padding:18px; }
.pc-doc-sheet__hdr{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding-bottom:14px; border-bottom:1px dashed var(--pcest-line); }
.pc-doc-sheet__title{ font-size:18px; font-weight:900; letter-spacing:-0.2px; }
.pc-doc-sheet__sub{ margin-top:6px; color:var(--pcest-sub); font-size:13px; font-weight:700; }
.pc-doc-dot{ margin:0 6px; color:#cbd5e1; }
.pc-doc-sheet__actions .pc-btn{ height:34px; padding:0 12px; border-radius:10px; }

.pc-doc-sheet__grid{ margin-top:14px; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.pc-doc-card{ border:1px solid var(--pcest-line); border-radius:14px; padding:12px; background:#fff; }
.pc-doc-card__title{ font-size:13px; font-weight:900; margin:0 0 10px; color:var(--pcest-text); }

.pc-doc-dl{ margin:0; display:grid; grid-template-columns:1fr 1fr; gap:8px 10px; }
.pc-doc-dl__row{ display:flex; gap:10px; align-items:flex-start; padding:8px 10px; border:1px solid #eef2f7; border-radius:12px; background:#fafafa; }
.pc-doc-dl__row dt{ width:64px; min-width:64px; font-size:12px; font-weight:900; color:var(--pcest-sub); }
.pc-doc-dl__row dd{ margin:0; font-size:13px; font-weight:800; color:var(--pcest-text); word-break:break-word; }
.pc-doc-dl__row--full{ grid-column:1 / -1; }

@media (max-width: 900px){
  .pc-doc-sheet__grid{ grid-template-columns:1fr; }
}

/* Print */
@media print{
  .pc-no-print{ display:none !important; }
  .pc-doc-sheet{ border:0; padding:0; }
  .pc-doc-card{ page-break-inside:avoid; }
}


/* ===== List Filter: compact multi-column (v16) ===== */
.pcest-filter .pcest-input,
.pcest-filter .pcest-select,
.pcest-filter input[type="text"],
.pcest-filter input[type="date"],
.pcest-filter input[type="number"],
.pcest-filter select{
  width:auto !important;
  flex:0 0 auto;
}
.pcest-filter input[name="stx"]{
  flex:1 1 160px !important;
  min-width:120px;
}
.pcest-filter .row{
  gap:8px 10px;
}
.pcest-filter .row .label{
  min-width:auto;
  white-space:nowrap;
}
/* 2행: label margin-left 제거 (gap으로 간격 통일) */
.pcest-filter-row2 .label{
  margin-left:0 !important;
}
@media (max-width: 960px){
  .pcest-filter input[name="stx"]{ flex-basis: 100% !important; }
  .pcest-filter .pcest-chipset{ width:100%; }
  .pcest-filter-row2{ flex-wrap:wrap; }
}

/* Custom checkbox (filter) */
.pcest-filter .pcest-check input{
  appearance:none;
  -webkit-appearance:none;
  width:18px; height:18px;
  border-radius:6px;
  border:1px solid var(--pcest-line);
  background:#fff;
  display:inline-grid;
  place-content:center;
  cursor:pointer;
}
.pcest-filter .pcest-check input:checked{
  border-color:#111827;
  background:#111827;
}
.pcest-filter .pcest-check input:checked::after{
  content:"";
  width:10px; height:10px;
  background:#fff;
  clip-path: polygon(14% 44%, 0 59%, 41% 100%, 100% 24%, 85% 10%, 41% 76%);
}



/* ===== v18: list filter separator + spacing ===== */
.pc-board-filter{margin:0 0 18px 0;padding:12px 12px 18px;border-bottom:1px solid #e5e7eb}
.pc-board-filter + .pc-board-list{margin-top:18px}
.pc-filter-divider{height:1px;background:#e5e7eb;border:0;margin:14px 0 0}

/* 진척도 빠른 필터 탭 */
.pcest-status-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0 10px;}
.pcest-stab{
  display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;
  border-radius:999px;font-size:13px;font-weight:400;
  border:1px solid #e8eaf0;background:#fff;color:#303549;
  cursor:pointer;text-decoration:none;white-space:nowrap;
  transition:background .12s,border-color .12s,color .12s;
}
.pcest-stab:hover{background:#f6f7ff;border-color:#dfe3f5;color:#303549;}
.pcest-stab.active{background:rgba(124,58,237,.10);border-color:rgba(124,58,237,.35);color:#5b21b6;font-weight:600;}
.pcest-stab-cnt{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:20px;height:18px;padding:0 5px;
  border-radius:999px;background:#e5e7eb;color:#374151;
  font-size:11px;font-weight:700;
}
.pcest-stab.active .pcest-stab-cnt{background:rgba(124,58,237,.2);color:#5b21b6;}

/* ── 다른 cnt 클래스도 동일 기준 적용 */

/* ===== v18: write layout ===== */
.pc-write{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}
.pc-write__head{padding:14px 16px;border-bottom:1px solid #eef2f7;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.pc-write__title{font-size:16px;font-weight:900;margin:0}
.pc-write__body{padding:14px 16px}
.pc-write__grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width: 900px){.pc-write__grid{grid-template-columns:1fr}}
.pc-field label{display:block;font-size:12px;font-weight:900;color:#111827;margin:0 0 6px}
.pc-field input[type="text"], .pc-field input[type="number"], .pc-field input[type="date"], .pc-field select, .pc-field textarea{
  width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px;font-size:13px;line-height:1.2;background:#fff;
}
.pc-field textarea{min-height:120px;resize:vertical}
.pc-section{margin:14px 0 0}
.pc-section__title{font-size:13px;font-weight:900;margin:0 0 10px;color:#111827}
.pc-accordion{border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:#fff}
.pc-accordion details{border-bottom:1px solid #eef2f7}
.pc-accordion details:last-child{border-bottom:0}
.pc-accordion summary{list-style:none;cursor:pointer;padding:12px 14px;font-weight:900;font-size:13px;display:flex;align-items:center;justify-content:space-between}
.pc-accordion summary::-webkit-details-marker{display:none}
.pc-accordion__body{padding:0 14px 14px}
.pc-accordion__grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width: 900px){.pc-accordion__grid{grid-template-columns:1fr}}
.pc-help{font-size:12px;color:#6b7280;margin-top:6px}

/* ===== v18: dropzone ===== */
.pc-dropzone{border:1px dashed #cbd5e1;border-radius:12px;padding:14px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#f9fafb}
.pc-dropzone.is-dragover{background:#eef2ff;border-color:#9333EA}
.pc-dropzone__text{font-size:13px;font-weight:800;color:#111827}
.pc-dropzone__sub{font-size:12px;color:#6b7280;font-weight:600}
.pc-dropzone__btn{border:1px solid #e5e7eb;background:#fff;border-radius:10px;padding:8px 12px;font-size:12px;font-weight:900;cursor:pointer}
.pc-dropzone__btn:hover{background:#f3f4f6}
.pc-filelist{margin-top:10px;font-size:12px;color:#374151}
.pc-filelist li{margin:4px 0}

/* ===== v18: checkbox/radio (rounded, not fully pill) ===== */
.pc-ui input[type="checkbox"], .pc-ui input[type="radio"]{
  width:16px;height:16px;vertical-align:-3px;margin-right:6px;
  accent-color:#111827;
}


/* ===== 통계 카드 (list/stats 공통) ===== */
.pcest-stat-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 16px}
@media(max-width:1100px){.pcest-stat-row{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.pcest-stat-row{grid-template-columns:repeat(2,1fr)}}
@media(max-width:440px){.pcest-stat-row{grid-template-columns:1fr}}
.pcest-stat-card{background:#fff;border:1px solid var(--pcest-line);border-radius:var(--pcest-radius);padding:12px 14px;display:flex;flex-direction:column;gap:3px}
.pcest-stat-label{font-size:11px;color:var(--pcest-sub);font-weight:800;text-transform:uppercase;letter-spacing:.3px}
.pcest-stat-value{font-size:22px;font-weight:900;letter-spacing:-.5px;line-height:1.2;color:var(--pcest-text)}
.pcest-stat-value span{font-size:13px;font-weight:700;margin-left:2px;color:var(--pcest-sub)}
.pcest-stat-sub{font-size:12px;color:var(--pcest-sub);margin-top:2px}
.pcest-stat-chips{display:flex;flex-wrap:wrap;gap:4px 6px;margin-top:6px}
.pcest-stat-chip{display:inline-flex;align-items:center;gap:3px;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;border:1px solid var(--pcest-line);background:#f9fafb;color:#374151}
.pcest-stat-chip b{color:var(--pcest-primary)}
.pcest-stat-divider{color:#d1d5db;font-weight:400;margin:0 6px;font-size:18px;vertical-align:middle;}
.pcest-stat-amount{font-size:22px;font-weight:900;letter-spacing:-.5px;}
.pc-masked{ font-weight:400; letter-spacing:0.1em !important; }

/* === PC Estimate Consult: write form (label + control in one row) === */
.pcest-form-grid .field{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 14px;
  align-items:center;
}
.pcest-form-grid .field > label{
  margin:0;
  font-weight:600;
  color:#344054;
}
.pcest-form-grid .field > .control{ width:100%; }
.pcest-form-grid .field > .control .pcest-help{ margin-top:6px; }

/* checkbox group in form grid */
.pcest-form-grid .pcest-checks{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
}

@media (max-width: 900px){
  .pcest-form-grid .field{
    grid-template-columns: 1fr;
    gap: 6px;
    align-items:stretch;
  }
}

/* ===== v24: write attachment dropzone (pcest-*) ===== */
.pcest-dropzone{border:1px dashed #cbd5e1;border-radius:12px;padding:14px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#f9fafb}
.pcest-dropzone.is-dragover{background:#eef2ff;border-color:#9333EA}
.pcest-dropzone-inner{display:flex;flex-direction:column;gap:2px}
.pcest-drop-title{font-size:13px;font-weight:800;color:#111827}
.pcest-drop-sub{font-size:12px;color:#6b7280;font-weight:600}
.pcest-filemeta{color:#6b7280;font-weight:600}

/* ===== v24: printable(A4) view ===== */
.pc-doc-footer{margin-top:18px}
.pc-doc-footer__grid{display:flex;gap:16px;align-items:flex-end;justify-content:space-between;flex-wrap:wrap}
.pc-sign{display:flex;gap:14px;flex-wrap:wrap}
.pc-sign__box{min-width:220px;border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fff}
.pc-sign__label{font-weight:700;font-size:13px;margin-bottom:14px}
.pc-sign__line{height:38px;border-bottom:1px dashed #cbd5e1}

@media print{
  body{background:#fff !important}
  /* print only the scope */
  body *{visibility:hidden !important}
  .pc-print-scope, .pc-print-scope *{visibility:visible !important}
  .pc-print-scope{position:absolute;left:0;top:0;width:100%}
  .pc-no-print{display:none !important}
  .pcest-wrap{max-width:210mm !important;margin:0 auto !important;padding:0 !important}
  .pc-doc-sheet{box-shadow:none !important;border:none !important}
  .pc-doc-section, .pc-consult-view__section{page-break-inside:avoid}
  .pc-consult-view__grid{break-inside:avoid}
  .pc-consult-view table{break-inside:avoid}
}


@page{size:A4;margin:12mm;}


/* ===== 목록: 카드형 (v25) ===== */
.pcest-result-head{
  font-size:13px; color:var(--pcest-sub);
  margin:16px 0 10px;
}
.pcest-result-head strong{ color:var(--pcest-text); font-weight:900; }

.pcest-card-list{ display:flex; flex-direction:column; gap:10px; }
.pcest-empty-msg{ text-align:center; color:var(--pcest-sub); padding:40px 0; font-size:14px; }

/* 카드 아이템 */
.pcest-ci{
  background:#fff;
  border:1px solid var(--pcest-line);
  border-radius:14px;
  padding:14px 16px;
  display:flex; flex-direction:column; gap:10px;
  transition:box-shadow .15s;
}
.pcest-ci:hover{ box-shadow:0 4px 16px rgba(0,0,0,.07); }

/* 카드 상단: 배지 + 버튼 */
.pcest-ci__head{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:8px;
}
.pcest-ci__badges{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; }

/* 업무구분/배송 배지 변형 */
.pcest-badge.type{ background:#f0f9ff; border-color:#bae6fd; color:#0369a1; }
.pcest-badge.dlv { background:#f0fdf4; border-color:#bbf7d0; color:#15803d; }

/* 액션 버튼 */
.pcest-ci__btns{ display:flex; gap:5px; flex-wrap:wrap; align-items:center; }
.pcest-ci-btn{
  display:inline-flex; align-items:center;
  height:26px; padding:0 10px;
  border-radius:999px;
  border:1px solid #d1d5db;
  background:#f9fafb;
  color:#374151;
  font-size:11px; font-weight:700;
  text-decoration:none;
  cursor:pointer;
  white-space:nowrap;
  transition:background .12s, border-color .12s;
}
.pcest-ci-btn:hover{ background:#f3f4f6; border-color:#9ca3af; }

/* 다크그레이: 복사 */
.pcest-ci-btn.dark{
  background:#374151; color:#fff; border-color:#374151;
}
.pcest-ci-btn.dark:hover{ background:#4b5563; }

/* 블루: 견적서 */
.pcest-ci-btn.dgray{
  background:#7C3AED; color:#fff; border-color:#7C3AED;
}
.pcest-ci-btn.dgray:hover{ background:#004a90; }

/* 그레이: 세금계산서/영수증 */
.pcest-ci-btn.gray{
  background:#6b7280; color:#fff; border-color:#6b7280;
}
.pcest-ci-btn.gray:hover{ background:#9ca3af; }

/* 라이트그레이: 링크복사 */
.pcest-ci-btn.lgray{
  background:#fff; color:#6b7280; border-color:#d1d5db;
}
.pcest-ci-btn.lgray:hover{ background:#f3f4f6; }

/* 짙은하늘: 비교견적 */
.pcest-ci-btn.comp{
  background:#0284c7; color:#fff; border-color:#0284c7;
}
.pcest-ci-btn.comp:hover{ background:#0369a1; }


/* 카드 본문: 메인(제목/메타) + 금액(우측) */
.pcest-ci__body{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
}
.pcest-ci__main{ flex:1 1 auto; min-width:0; }

/* 상담번호 */
.pcest-ci__no{
  font-size:11px; color:var(--pcest-sub);
  margin-bottom:4px;
}

/* 제목 */
.pcest-ci__title{
  margin:0 0 6px; font-size:15px; font-weight:800;
  line-height:1.35; letter-spacing:-.2px;
}
.pcest-ci__title a{ color:var(--pcest-text); }
.pcest-ci__title a:hover{ color:var(--pcest-primary); }

/* 고객명/연락처/접수일 */
.pcest-ci__meta{
  display:flex; flex-wrap:wrap; gap:4px 10px;
  font-size:12px; color:var(--pcest-sub);
}
.pcest-ci__date{ }

/* 관리자 메모 */
.pcest-ci__note{
  margin-top:8px;
  font-size:12px; color:#374151;
  background:#f9fafb;
  border-left:3px solid #d1d5db;
  padding:6px 10px;
  border-radius:0 8px 8px 0;
  line-height:1.55;
  word-break:break-word;
}

/* 금액 (우측 정렬) */
.pcest-ci__price{
  flex:0 0 auto;
  align-self:center;
  text-align:right;
  display:flex; flex-direction:column; align-items:flex-end; gap:4px;
}
.pcest-ci__final{
  font-size:20px; font-weight:900; letter-spacing:-.5px;
  color:#111827; white-space:nowrap;
}
.pcest-ci__final span{ font-size:13px; font-weight:700; color:var(--pcest-sub); margin-left:1px; }
.pcest-ci__price-sub{
  display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end;
  font-size:11px; color:var(--pcest-sub);
}

/* 반응형 */
@media (max-width: 680px){
  .pcest-ci__body{ flex-direction:column; }
  .pcest-ci__price{ text-align:left; align-items:flex-start; }
  .pcest-ci__head{ flex-direction:column; align-items:flex-start; }
  .pcest-ci__btns{ width:100%; }
}
@media (max-width: 420px){
  .pcest-ci__btns{ gap:4px; }
  .pcest-ci-btn{ height:24px; padding:0 8px; font-size:10px; }
}

/* attachments/links list */
.pc-attach-list{margin:0;padding-left:18px;}
.pc-attach-list li{margin:4px 0;}
.pc-attach-size{margin-left:6px;opacity:.7;font-size:.92em;}

/* spacing between adjacent accordion blocks */
.pcest-acc + .pcest-acc { margin-top: 10px; }

/* ===== write page: card box + design unification ===== */
.pcest-write .pcest-card {
  background: #fff;
  border: 1px solid var(--pcest-line);
  border-radius: var(--pcest-radius);
  padding: 20px 18px;
}
.pcest-write .pcest-card h3 {
  font-size: 14px;
  font-weight: 900;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pcest-line);
  letter-spacing: -.2px;
}
/* acc-body padding inside write cards */
.pcest-write .pcest-acc .acc-body { padding: 12px; }
/* placeholder color */
.pcest-write ::placeholder { color: #b0b8c4; }
/* empty option gray */
.pcest-write select option[value=""] { color: #b0b8c4; }
/* pcest-field-full: span both columns */
.pcest-write .pcest-form-grid .pcest-field-full {
  grid-column: 1 / -1;
}
/* 금액 입력 래퍼 — "원" 인풋 안에 절대 배치 */
.pcest-write .pcest-price-wrap {
  position: relative;
  display: block;
}
.pcest-write .pcest-price-wrap .pcest-price-input {
  width: 100%;
  padding-right: 30px;
}
.pcest-write .pcest-unit {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #888;
  pointer-events: none;
  white-space: nowrap;
}


/* ===== View: bid_national 동일 디자인 (bn-* classes) ===== */
.bn-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px;margin-top:14px;}
.bn-card:first-of-type{margin-top:0;}
.bn-title{font-size:22px;font-weight:800;letter-spacing:-.02em;margin:0 0 4px;}
.bn-sub{color:#6b7280;font-size:13px;margin-top:6px;}
.bn-section-title{font-size:16px;font-weight:900;margin:0 0 10px;}
.bn-muted{color:#6b7280;}

/* 배지 */
.bn-badges{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.bn-badge{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:700;border:1px solid #e5e7eb;background:#f9fafb;color:#111827;}
.bn-badge.green{background:#ecfdf5;border-color:#a7f3d0;color:#065f46;}
.bn-badge.blue{background:#fdf4ff;border-color:#bfdbfe;color:#7C3AED;}
.bn-badge.gray{background:#f3f4f6;border-color:#e5e7eb;color:#374151;}
.bn-badge.navy{background:#7C3AED;border-color:#7C3AED;color:#fff;}
.bn-badge.sky{background:#0284c7;border-color:#0284c7;color:#fff;}
.bn-badge.slate{background:#374151;border-color:#374151;color:#fff;}
a.bn-badge,button.bn-badge{cursor:pointer;text-decoration:none;}
a.bn-badge:hover,button.bn-badge:hover{background:#e5e7eb;border-color:#d1d5db;}
a.bn-badge.navy:hover{background:#004a90;border-color:#004a90;}
a.bn-badge.sky:hover{background:#0369a1;border-color:#0369a1;}
a.bn-badge.slate:hover{background:#4b5563;border-color:#4b5563;}
button.bn-badge{appearance:none;}

/* 견적 금액: th/td 50:50 */
.bn-tbl--half th{ width:50%; }

/* ── 태그 ──────────────────────────────────────────────────────── */
.bn-tag-row{display:flex;flex-wrap:wrap;gap:8px;}
.bn-tag{
  display:inline-flex;align-items:center;
  height:28px;padding:0 12px;
  border-radius:999px;
  border:1px solid #e5e7eb;background:#f9fafb;
  font-size:12px;font-weight:700;color:#374151;
  text-decoration:none;
}
.bn-tag:hover{background:#f3f4f6;border-color:#d1d5db;}

/* ── 관련링크 ───────────────────────────────────────────────────── */
.bn-link-row{
  display:flex;align-items:center;gap:8px;
  padding:8px 0;border-bottom:1px solid #f1f5f9;font-size:13px;
}
.bn-link-row:last-child{border-bottom:none;}
.bn-link-row a{color:#9333EA;text-decoration:none;word-break:break-all;}
.bn-link-row a:hover{text-decoration:underline;}

/* ── 하단 액션 바 ───────────────────────────────────────────────── */
.bn-view-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.bn-view-nav > div{display:flex;gap:6px;}

/* ── 이전글/다음글 ──────────────────────────────────────────────── */
.bn-prevnext{padding:0;}
.bn-prevnext__row{
  display:flex;align-items:center;gap:12px;
  padding:12px 16px;border-bottom:1px solid #f1f5f9;
}
.bn-prevnext__row:last-child{border-bottom:none;}
.bn-prevnext__label{
  flex-shrink:0;min-width:60px;
  font-size:12px;font-weight:800;color:#6b7280;
}
.bn-prevnext__link{
  font-size:13px;color:#111827;text-decoration:none;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.bn-prevnext__link:hover{color:#9333EA;}

/* ── 댓글 ───────────────────────────────────────────────────────── */
.bn-comments{padding:0;}
.bn-cmt-heading{
  padding:14px 16px 12px;margin:0;
  font-size:14px;font-weight:900;color:#111827;
  border-bottom:1px solid #f1f5f9;
}
.bn-cmt-count{font-size:13px;color:#6b7280;font-weight:700;margin-left:4px;}
.bn-cmt-list{margin:0;padding:0;list-style:none;}
.bn-cmt-item{padding:14px 16px;border-bottom:1px solid #f1f5f9;}
.bn-cmt-item:last-child{border-bottom:none;}
.bn-cmt-item.is-re{padding-left:32px;background:#fafafa;border-left:3px solid #e5e7eb;}
.bn-cmt-meta{display:flex;gap:10px;align-items:center;margin-bottom:6px;}
.bn-cmt-name{font-size:13px;font-weight:900;color:#111827;}
.bn-cmt-date{font-size:12px;color:#9ca3af;}
.bn-cmt-content{font-size:13px;line-height:1.65;color:#111827;}
.bn-cmt-actions{display:flex;gap:6px;margin-top:8px;}
.bn-cmt-btn{
  display:inline-flex;align-items:center;
  height:24px;padding:0 10px;
  border-radius:999px;border:1px solid #e5e7eb;
  background:#f9fafb;font-size:11px;font-weight:700;color:#374151;
  text-decoration:none;cursor:pointer;appearance:none;
}
.bn-cmt-btn:hover{background:#f3f4f6;}
.bn-cmt-btn.danger{color:#b91c1c;border-color:#fecaca;background:#fff;}
.bn-cmt-empty{padding:20px 16px;font-size:13px;color:#9ca3af;margin:0;}
.bn-cmt-form{padding:14px 16px;border-top:1px solid #f1f5f9;background:#fafafa;}
.bn-cmt-guest{display:flex;gap:8px;margin-bottom:8px;}
.bn-cmt-guest .bn-input{height:36px;flex:1;border:1px solid #e5e7eb;border-radius:10px;padding:0 10px;font-size:13px;background:#fff;}
.bn-cmt-textarea{
  width:100%;min-height:80px;
  border:1px solid #e5e7eb;border-radius:12px;
  padding:10px 12px;font-size:13px;
  resize:vertical;background:#fff;outline:none;display:block;
}
.bn-cmt-textarea:focus{border-color:rgba(147,51,234,.45);box-shadow:0 0 0 3px rgba(147,51,234,.08);}
.bn-cmt-form-foot{display:flex;align-items:center;justify-content:space-between;margin-top:8px;}
.bn-cmt-charcount{font-size:12px;color:#9ca3af;}

/* 제목 카드 하단 */
.bn-view-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:12px;}
.bn-view-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;}

/* 버튼 */
.bn-btn{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 12px;border-radius:12px;border:1px solid #e5e7eb;background:#fff;font-size:13px;font-weight:700;color:#374151;text-decoration:none;cursor:pointer;}
.bn-btn:hover{background:#f3f4f6;}
.bn-btn.danger{background:#ef4444;color:#fff;border-color:#ef4444;}
.bn-btn.danger:hover{background:#dc2626;border-color:#dc2626;}
.bn-btn.copy{background:#f59e0b;color:#fff;border-color:#f59e0b;}
.bn-btn.copy:hover{background:#d97706;border-color:#d97706;}
.bn-btn.print-btn{background:#7C3AED;color:#fff;border-color:#7C3AED;}
.bn-btn.print-btn:hover{background:#7C3AED;border-color:#7C3AED;}
.bn-btn.taxinv{background:#065f46;color:#fff;border-color:#065f46;}
.bn-btn.taxinv:hover{background:#047857;border-color:#047857;}
.bn-btn.receipt{background:#7c3aed;color:#fff;border-color:#7c3aed;}
.bn-btn.receipt:hover{background:#6d28d9;border-color:#6d28d9;}

/* 상세 테이블 */
.bn-tbl{width:100%;border-collapse:collapse;font-size:13px;}
.bn-tbl th,.bn-tbl td{padding:10px 12px;border:1px solid #e5e7eb;vertical-align:top;text-align:left;}
.bn-tbl th{background:#f9fafb;font-weight:700;color:#374151;width:140px;white-space:nowrap;}

@media(max-width:640px){
  .bn-tbl,.bn-tbl tbody,.bn-tbl tr,.bn-tbl th,.bn-tbl td{display:block;width:100%;}
  .bn-tbl th{border-bottom:none;padding-bottom:4px;}
  .bn-tbl td{border-top:none;padding-top:4px;padding-left:14px;}
  .bn-view-bottom{flex-direction:column;align-items:flex-start;}
  .bn-view-actions{flex-wrap:wrap;}
}
