/* margin: 0 → 브라우저 기본 머리말/꼬리말(URL·날짜·페이지) 표시 공간 제거 */
@page {
  size: A4 portrait;
  margin: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.bh-print-page {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: #111;
  background: #e8eaed;
}

.bh-print-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #d7dbe0;
}

.bh-print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 16px;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.bh-print-btn-secondary {
  background: #fff;
  color: #1a1a1a;
}

.bh-print-document {
  width: 210mm;
  max-width: calc(100vw - 24px);
  margin: 20px auto 40px;
  padding: 12mm 10mm 14mm;
  background: #fff;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.12);
}

.bh-print-header {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-bottom: 2px solid #111;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.bh-print-logo,
.bh-print-photo {
  display: table-cell;
  width: 76px;
  vertical-align: top;
  padding-right: 14px;
}

.bh-print-logo-inner,
.bh-print-photo-inner {
  width: 72px;
  height: 72px;
  border: 1px solid #333;
  overflow: hidden;
  background: #f7f8fa;
}

.bh-print-logo img,
.bh-print-photo img,
.bh-print-logo-inner img,
.bh-print-photo-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bh-print-photo.is-profile img,
.bh-print-photo-inner.is-profile img {
  object-fit: cover;
}

.bh-print-head-main {
  display: table-cell;
  vertical-align: top;
}

.bh-print-title {
  margin: 0 0 3px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
}

.bh-print-summary {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #444;
  word-break: break-word;
}

.bh-print-section {
  margin-top: 14px;
}

.bh-print-section-title {
  margin: 0 0 8px;
  padding: 4px 0 5px;
  border-bottom: 1px solid #111;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.bh-print-section-title span {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #666;
}

.bh-print-info-table,
.bh-print-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.bh-print-info-table th[scope="row"] {
  width: 13%;
  padding: 5px 6px;
  border: 1px solid #333;
  background: #eceff3;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  color: #222;
  word-break: keep-all;
}

.bh-print-info-table td {
  width: 37%;
  padding: 5px 8px;
  border: 1px solid #333;
  font-size: 12px;
  vertical-align: middle;
  word-break: break-word;
  color: #111;
}

.bh-print-info-table .is-empty-cell {
  border-color: #333;
  background: #fff;
}

.bh-print-table th,
.bh-print-table td {
  padding: 6px 8px;
  border: 1px solid #333;
  font-size: 11px;
  vertical-align: top;
  word-break: break-word;
}

.bh-print-table th {
  background: #eceff3;
  font-weight: 700;
  text-align: center;
  color: #222;
}

.bh-print-table td.is-empty {
  color: #888;
  text-align: center;
}

.bh-print-career-item + .bh-print-career-item {
  margin-top: 8px;
}

.bh-print-rich {
  width: 100%;
  max-width: 100%;
}

.bh-print-page .bh-print-rich .bh-rich-content,
.bh-print-page .bh-rich-content {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.bh-print-rich img,
.bh-print-page .bh-rich-content img {
  max-width: 100% !important;
  height: auto !important;
}

.bh-print-footer {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid #ccc;
  font-size: 9px;
  line-height: 1.45;
  color: #777;
  text-align: center;
}

@media (max-width: 720px) {
  .bh-print-document {
    width: auto;
    max-width: calc(100vw - 16px);
    padding: 10mm 8mm;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html,
  body {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.bh-print-page {
    font-size: 10pt;
    line-height: 1.4;
    background: #fff !important;
  }

  .no-print,
  .bh-print-toolbar {
    display: none !important;
  }

  .bh-print-document {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12mm 14mm !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .bh-print-header {
    display: table !important;
    width: 100% !important;
    page-break-inside: avoid;
  }

  .bh-print-logo,
  .bh-print-photo,
  .bh-print-head-main {
    display: table-cell !important;
  }

  .bh-print-title {
    font-size: 16pt;
    margin-bottom: 2pt;
  }

  .bh-print-summary {
    font-size: 9.5pt;
  }

  .bh-print-section {
    margin-top: 10pt;
    page-break-inside: avoid;
  }

  .bh-print-section-title {
    font-size: 11pt;
    margin-bottom: 6pt;
  }

  .bh-print-info-table,
  .bh-print-table {
    width: 100% !important;
    page-break-inside: avoid;
  }

  .bh-print-info-table th[scope="row"] {
    font-size: 8.5pt;
    padding: 4pt 5pt;
    background: #eceff3 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .bh-print-info-table td {
    font-size: 9.5pt;
    padding: 4pt 6pt;
  }

  .bh-print-table th,
  .bh-print-table td {
    font-size: 9pt;
    padding: 4pt 6pt;
  }

  .bh-print-table th {
    background: #eceff3 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .bh-print-page .bh-print-rich .bh-rich-content,
  .bh-print-page .bh-rich-content {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 9.5pt !important;
  }

  .bh-print-rich img,
  .bh-print-page .bh-rich-content img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  .bh-print-footer {
    font-size: 7pt;
    margin-top: 12pt;
  }

  a[href]::after {
    content: none !important;
  }
}
