/* 見積書 PDF 전용 — 화면 편집 표와 분리 */

.staff-quote-form-host {
  position: fixed;
  left: -120vw;
  top: 0;
  width: 210mm;
  height: 297mm;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

body.staff-quote-form-pdf-export .staff-quote-form-host {
  left: 0;
  z-index: 2147483000;
}

.staff-quote-form-sheet {
  position: relative;
  box-sizing: border-box;
  display: block;
  width: 210mm;
  height: 297mm;
  min-width: 210mm;
  min-height: 297mm;
  max-width: 210mm;
  max-height: 297mm;
  padding: 25mm;
  margin: 0;
  overflow: hidden;
  background: #fff;
  color: #111;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: 9pt;
  line-height: 1.3;
}

.staff-quote-form-sheet__title {
  margin: 0 0 12mm;
  text-align: center;
  font-size: 26pt;
  font-weight: 800;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-decoration: underline;
  text-underline-offset: 3px;
  line-height: 1.15;
  color: #111;
  background: transparent;
}

.staff-quote-form-sheet__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2mm 6mm;
  margin-bottom: 1.5mm;
}

.staff-quote-form-sheet__no {
  margin: 0 0 2mm;
  font-size: 9.5pt;
  font-weight: 700;
}

.staff-quote-form-sheet__meta,
.staff-quote-form-sheet__co-meta {
  font-size: 8.5pt;
}

.staff-quote-form-sheet__meta > div,
.staff-quote-form-sheet__co-meta > div {
  margin: 0.4mm 0;
}

.staff-quote-form-sheet__meta span,
.staff-quote-form-sheet__co-meta span {
  display: inline-block;
  min-width: 16mm;
  letter-spacing: 0.08em;
}

.staff-quote-form-sheet__co {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2mm;
  margin: 0 0 1.5mm;
  font-size: 16pt;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.staff-quote-form-sheet__seal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12mm;
  height: 12mm;
  border: none;
  border-radius: 50%;
  font-size: 8pt;
  font-weight: 700;
  flex: 0 0 12mm;
  overflow: visible;
  color: #111;
  background: transparent;
  z-index: 1;
}

.staff-quote-form-sheet__seal-img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20mm;
  height: auto;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotate(-6deg);
  object-fit: contain;
  object-position: center;
  background: transparent;
  pointer-events: none;
}

.staff-quote-form-sheet__right {
  text-align: right;
}

.staff-quote-form-sheet__co-meta {
  text-align: right;
}

.staff-quote-form-sheet__lead {
  margin: 1.5mm 0 2mm;
  text-align: center;
  font-size: 10pt;
  font-weight: 600;
}

/* html2canvas는 collapse 선을 칸마다 다시 그려 이중선처럼 보인다. 바깥+오른쪽·아래만 그린다. */
.staff-quote-form-sheet__sum,
.staff-quote-form-sheet__items,
.staff-quote-form-sheet__terms {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: transparent;
}

.staff-quote-form-sheet__sum {
  margin: 0 0 1.5mm;
  border-top: 1.1pt solid #111;
  border-left: 1.1pt solid #111;
}

.staff-quote-form-sheet__sum td {
  border: 0;
  border-right: 1.1pt solid #111;
  border-bottom: 1.1pt solid #111;
  padding: 1.6mm 3mm;
  font-size: 11pt;
  font-weight: 700;
  width: 50%;
  background: transparent;
}

.staff-quote-form-sheet__items-wrap {
  display: block;
  width: 100%;
  overflow: hidden;
}

.staff-quote-form-sheet__items,
.staff-quote-form-sheet__terms {
  border: 0;
  border-top: 0.5pt solid #111;
  border-left: 0.5pt solid #111;
}

.staff-quote-form-sheet__items th,
.staff-quote-form-sheet__items td,
.staff-quote-form-sheet__terms th,
.staff-quote-form-sheet__terms td {
  border: 0;
  border-right: 0.5pt solid #111;
  border-bottom: 0.5pt solid #111;
  padding: 0.65mm 1.1mm;
  vertical-align: middle;
  background: transparent;
}

.staff-quote-form-sheet__items thead th {
  font-size: 7.5pt;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

.staff-quote-form-sheet__items thead th span {
  font-size: 6.5pt;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.staff-quote-form-sheet__items th:nth-child(1),
.staff-quote-form-sheet__items td:nth-child(1) { width: 8%; text-align: center; }
.staff-quote-form-sheet__items th:nth-child(2),
.staff-quote-form-sheet__items td:nth-child(2) { width: 22%; }
.staff-quote-form-sheet__items th:nth-child(3),
.staff-quote-form-sheet__items td:nth-child(3) { width: 16%; text-align: center; }
.staff-quote-form-sheet__items th:nth-child(4),
.staff-quote-form-sheet__items td:nth-child(4) { width: 8%; text-align: center; }
.staff-quote-form-sheet__items th:nth-child(5),
.staff-quote-form-sheet__items td:nth-child(5) { width: 10%; }
.staff-quote-form-sheet__items th:nth-child(6),
.staff-quote-form-sheet__items td:nth-child(6) { width: 17%; }
.staff-quote-form-sheet__items th:nth-child(7),
.staff-quote-form-sheet__items td:nth-child(7) { width: 19%; }

.staff-quote-form-sheet__items td.nm { text-align: left; }
.staff-quote-form-sheet__items td.c,
.staff-quote-form-sheet__items td.u,
.staff-quote-form-sheet__items td.sp { text-align: center; }
.staff-quote-form-sheet__items td.r { text-align: right; font-variant-numeric: tabular-nums; }

.staff-quote-form-sheet__items tr.is-title td.nm {
  font-weight: 800;
  text-align: center;
}

.staff-quote-form-sheet__items tfoot td {
  font-weight: 800;
  text-align: center;
}

.staff-quote-form-sheet__items tfoot td.r {
  text-align: right;
}

.staff-quote-form-sheet__terms {
  position: static;
  width: 100%;
  margin: -0.5pt 0 0;
  border-top: 0;
}

.staff-quote-form-sheet__terms col.lb { width: 16%; }
.staff-quote-form-sheet__terms col.pn { width: 12%; }
.staff-quote-form-sheet__terms col.pb { width: 22%; }
.staff-quote-form-sheet__terms col.sb { width: 16%; }
.staff-quote-form-sheet__terms col.sv { width: 34%; }

.staff-quote-form-sheet__terms th {
  font-size: 8pt;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
}

.staff-quote-form-sheet__terms td {
  font-size: 8pt;
  text-align: left;
}

.staff-quote-form-sheet__terms td.pay-name {
  text-align: center;
  white-space: nowrap;
}

.staff-quote-form-sheet__terms td.pay-blank {
  min-height: 5.2mm;
  height: 5.2mm;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.staff-quote-form-sheet-pdf-export,
body.staff-quote-form-pdf-export,
body.staff-quote-form-pdf-export * {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

@media print {
  body.staff-quote-form-pdf-export {
    background: #fff;
  }

  body.staff-quote-form-pdf-export > *:not(.staff-quote-form-host) {
    display: none !important;
  }

  body.staff-quote-form-pdf-export .staff-quote-form-host {
    position: static;
    left: auto;
    width: auto;
    height: auto;
    overflow: visible;
  }

  body.staff-quote-form-pdf-export .staff-quote-form-sheet {
    padding: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: none;
  }
}
