/* 문서·증명서 화면 규칙 — style.css 를 안 키우려고 분리했다.
   **증명서는 A4 서식이라 치수를 mm·pt 로 쓴다** — px 은 모니터·배율에 따라 종이에서 달라진다.
   여백은 `.doc-sheet` 가 이미 잡고 있으므로 여기서는 안쪽만 다룬다. */

.cf-acts { display: flex; gap: 8px; }
.cf-note { margin: 0 0 14px; line-height: 1.6; color: var(--gray); font-size: 12.5px; }
.cf-h3 { margin: 24px 0 10px; font-size: 15px; font-weight: 700; }
.cf-purpose { max-width: 520px; }

.cf-warn {
  margin: 0 0 14px; padding: 12px 16px; border-radius: 7px; font-size: 12.5px; line-height: 1.7;
  background: #fffdf5; border: 1px solid #e6d5a8; color: #8a6d1f;
}

/* 최신본을 눈에 띄게 — 등기부등본은 뗄 때마다 쌓이므로 어느 것을 보낼지 알아야 한다 */
.cf-tbl tbody tr.cf-latest { background: var(--green-l); }
.cf-tbl tbody tr.cf-latest:hover { background: var(--green-l); }
.cf-tbl .tag { margin-left: 5px; }

/* ── A4 증명서 서식 ── */
.cf-sheet { font-size: 11pt; line-height: 1.9; }
.cf-title {
  margin: 6mm 0 12mm; text-align: center;
  font-size: 26pt; font-weight: 700; letter-spacing: 4pt;
}
.cf-kv { width: 100%; border-collapse: collapse; margin-bottom: 10mm; }
.cf-kv th, .cf-kv td { border: 0.3mm solid #444; padding: 3.2mm 4mm; font-size: 10.5pt; }
.cf-kv th {
  width: 32mm; background: #f4f6f4; text-align: center; font-weight: 600; letter-spacing: 1pt;
}
.cf-sub { color: #555; font-size: 9.5pt; }
/* 비어 있는 칸은 **밑줄로 남긴다** — 손으로 채워 넣을 자리다(빈칸이면 실수로 지나친다) */
.cf-blank { display: inline-block; min-width: 40mm; border-bottom: 0.3mm dotted #999; }

.cf-body { margin: 12mm 0 0; text-align: center; font-size: 12pt; letter-spacing: 0.5pt; }
.cf-date { margin: 14mm 0 0; text-align: center; font-size: 11pt; letter-spacing: 1pt; }
/* 서명란 — **두 줄이 한 덩어리**다(상호 / 대표이사 이름). 그 덩어리의 오른쪽에
   직인이 걸쳐 찍힌다. 종이에 찍는 도장이 그렇게 놓이기 때문이고, 떨어뜨려 두면
   나중에 갖다 붙인 것처럼 보인다. */
/* **글자가 종이 가운데에 선다.** 그래서 덩어리에 여백을 주지 않는다 — 도장 자리만큼
   padding 을 두면 가운데 정렬이 그 폭까지 세어 글자가 왼쪽으로 밀린다(실제로 그랬다).
   도장은 흐름에서 빼내(absolute) 덩어리 오른쪽에 걸쳐 찍는다. */
.cf-sign { margin-top: 14mm; text-align: center; line-height: 1.75; }
.cf-block { position: relative; display: inline-block; }
.cf-co { font-size: 28pt; font-weight: 700; letter-spacing: 3pt; }
.cf-ceo { font-size: 20pt; letter-spacing: 3pt; }
/* 직인 — 두 줄 덩어리의 오른쪽 가운데에 걸쳐 찍는다.
   **상호를 덮지 않는다** — 받는 쪽이 발급처를 읽어야 하는 서류다 */
.cf-stamp {
  position: absolute; right: -19mm; top: 50%; transform: translateY(-50%);
  width: 24mm; height: 24mm;
}
/* 인감 파일이 없을 때의 날인 자리 — 그때는 종이에 도장을 받는다.
   자리를 비워 두면 어디에 찍을지 모른다 */
.cf-seal {
  position: absolute; right: -19mm; top: 50%; transform: translateY(-50%);
  width: 24mm; height: 24mm;
  border: 0.3mm dashed #aaa; border-radius: 50%;
  color: #aaa; font-size: 9pt; line-height: 24mm; letter-spacing: 0; text-align: center;
}

/* 인쇄할 때는 서식만 남긴다 — 안내문·용도 입력칸·단추는 종이에 나올 것이 아니다 */
@media print {
  .cf-note, .cf-warn, .cf-purpose, .cf-acts { display: none !important; }
  .cf-seal { border-color: #666; color: transparent; }
}

/* 폭 조건은 반드시 screen 한정 — A4 본문폭 170mm 는 CSS 픽셀로 약 643px 이라
   범위를 열어 두면 인쇄할 때 이 규칙이 발동한다(verify_접속보안.mjs 가 붙든다). */
@media screen and (max-width: 560px) {
  .cf-purpose input { font-size: 16px; }
  .cf-acts .btn { flex: 1; }
}

/* ── 명함 · 이메일 서명 (34_명함.js) ──
   미리보기는 캔버스 그대로다. 좁은 화면에서는 폭에 맞춰 줄인다 — 내려받는 PNG 는 배율이 따로라
   여기서 줄여도 파일은 그대로다. */
.nc-who { max-width: 220px; }
.nc-fields .field { flex: 1 1 180px; }
.nc-stage { padding: 14px; background: #f1f2f4; border-radius: 8px; overflow: hidden; }
.nc-stage canvas { display: block; max-width: 100%; height: auto; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.nc-acts { display: flex; gap: 8px; justify-content: flex-end; margin: 8px 0 18px; }
/* 지금 명함의 「팀 I 직책」 줄 — 어디서 온 값인지와 손잡이 하나(수정신청 / 팀·직책 수정) */
.nc-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; border: 1px solid var(--line, #e3e5e8); border-radius: 8px; }
.nc-bar { color: #ab2228; margin: 0 2px; }
.nc-from { margin-left: 8px; font-size: 12px; color: var(--gray); }
.nc-req { margin-top: 8px; padding: 8px 14px; border-radius: 8px; background: #fff7e6; font-size: 13px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nc-req.done { background: #eaf6ee; }
.nc-req.rejected { background: #fdecec; }
.nc-req > div { flex-basis: 100%; }
.nc-req .btn { margin-left: auto; }
.nc-link { cursor: pointer; text-decoration: underline; }
