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

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

  --pcest-primary:#2563eb;
  --pcest-primary-weak:#eff6ff;

  --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);
}

.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:flex-end; justify-content:space-between;
  gap:12px; margin:18px 0 12px;
}
.pcest-title{
  font-size:22px; font-weight:800; letter-spacing:-.2px; line-height:1.2;
}
.pcest-subtitle{ font-size:13px; color:var(--pcest-sub); margin-top:4px; }
.pcest-actions{ display:flex; gap:8px; flex-wrap:wrap; }

.pcest-card{
  background:var(--pcest-card);
  border:1px solid var(--pcest-line);
  border-radius:var(--pcest-radius);
  box-shadow:var(--pcest-shadow-sm);
  padding:14px;
}
.pcest-card + .pcest-card{ margin-top:12px; }

/* Buttons */
.pcest-btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:36px; padding:0 12px;
  border-radius:10px;
  border:1px solid var(--pcest-line);
  background:#fff;
  font-size:13px; font-weight:700;
  gap:8px;
  cursor:pointer;
}
.pcest-btn:hover{ box-shadow:0 4px 14px rgba(16,24,40,.08); }
.pcest-btn.primary{
  background:var(--pcest-primary);
  border-color:var(--pcest-primary);
  color:#fff;
}
.pcest-btn.primary:hover{ filter:brightness(.98); }
.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; }

/* 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(37,99,235,.45);
  box-shadow:0 0 0 3px rgba(37,99,235,.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:6px; flex-wrap:wrap; }
.pcest-chip{
  display:inline-flex; align-items:center; justify-content:center;
  height:30px; padding:0 10px;
  border-radius:999px;
  border:1px solid var(--pcest-line);
  background:#fff;
  font-size:12px; font-weight:700;
  color:#374151;
}
.pcest-chip.on{
  background:var(--pcest-primary-weak);
  border-color:rgba(37,99,235,.25);
  color:var(--pcest-primary);
}
.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:12px; }
.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(37,99,235,.35);
  background:rgba(37,99,235,.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; }

/* Pagination (rebuilder-like, compact) */
.pcest-pager{ margin:14px 0 0; display:flex; justify-content:center; }
.pcest-pager .pg_wrap{ margin:0; padding:6px; border-radius:12px; background:#eef0f3; border:1px solid var(--pcest-line); }
.pcest-pager .pg{ display:flex; gap:6px; align-items:center; justify-content:center; }
.pcest-pager .pg a,
.pcest-pager .pg span,
.pcest-pager .pg strong{
  min-width:32px; height:32px; line-height:32px;
  padding:0 10px;
  border-radius:10px;
  border:1px solid var(--pcest-line);
  background:#fff;
  color:var(--pcest-text);
  font-weight:800;
  text-align:center;
  display:inline-block;
}
.pcest-pager .pg a:hover{ background:#f9fafb; }
.pcest-pager .pg .pg_current,
.pcest-pager .pg strong{
  background:#111827;
  border-color:#111827;
  color:#fff;
}
.pcest-pager .pg .pg_start,
.pcest-pager .pg .pg_end,
.pcest-pager .pg .pg_prev,
.pcest-pager .pg .pg_next{
  font-size:0;
  position:relative;
}
.pcest-pager .pg .pg_start:before{ content:"«"; font-size:14px; }
.pcest-pager .pg .pg_prev:before{ content:"‹"; font-size:14px; }
.pcest-pager .pg .pg_next:before{ content:"›"; font-size:14px; }
.pcest-pager .pg .pg_end:before{ content:"»"; font-size:14px; }
.pcest-pager .pg .pg_start:before,
.pcest-pager .pg .pg_end:before,
.pcest-pager .pg .pg_prev:before,
.pcest-pager .pg .pg_next:before{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  color:inherit;
}

/* 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(37,99,235,.15);
  border-color:rgba(37,99,235,.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 16px}
.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:20px;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:#eff6ff;border-color:#dbeafe;color:#1d4ed8}
.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:#2563eb;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 (우리 스타일, 리빌더 느낌 참고) */
.pcest-wrap{max-width:1200px;margin:0 auto;padding:24px 16px;}
.pcest-card{background:#fff;border:1px solid #e6e8eb;border-radius:14px;padding:16px 16px 14px;margin:14px 0;box-shadow:0 1px 0 rgba(0,0,0,.02);}
.pcest-card h3{margin:0 0 12px;font-size:18px;letter-spacing:-.2px;}
.pcest-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pcest-title{font-size:22px;font-weight:800;letter-spacing:-.4px;margin:0}
.pcest-actions{display:flex;gap:8px;flex-wrap:wrap}

.pcest-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 12px;border-radius:10px;border:1px solid #d5d9dd;background:#fff;color:#111;text-decoration:none;font-weight:700;font-size:13px;cursor:pointer}
.pcest-btn.primary{background:#111;color:#fff;border-color:#111}
.pcest-btn:active{transform:translateY(1px)}

.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 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 260px !important;
  min-width:220px;
}
.pcest-filter .row{
  gap:10px 12px;
}
.pcest-filter .row .label{
  min-width:52px;
}
@media (max-width: 860px){
  .pcest-filter input[name="stx"]{ flex-basis: 100% !important; }
  .pcest-filter .pcest-chipset{ width:100%; }
}

/* 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%);
}

/* ===== Pagination: hide sound_only and refine sizing ===== */
.pcest-pager{ margin:14px 0 0; display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.pcest-pager > div:first-child{
  font-size:13px;
  color:var(--pcest-sub);
  font-weight:700;
}
.pcest-pager .sound_only{ display:none !important; }

.pcest-pager .pg_wrap{ padding:6px; border-radius:12px; background:#eef0f3; border:1px solid var(--pcest-line); }
.pcest-pager .pg{ gap:6px; }
.pcest-pager .pg a,
.pcest-pager .pg span,
.pcest-pager .pg strong{
  min-width:34px;
  height:34px;
  line-height:34px;
  padding:0;
  border-radius:9px;
  font-size:13px;
}


/* ===== 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}

/* ===== 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:#6366f1}
.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;
}
