/* INVOICE 인쇄 전용 — A4, 다울 서식(로고·INVOICE·표·[알림]·계좌) */
@page { size: A4 portrait; margin: 13mm 12mm; }
body { margin: 0; background: #fff; color: #111; font-family: "Pretendard", "Malgun Gothic", -apple-system, sans-serif; }
.print-root { display: block; }

.inv {
  page-break-after: always;
  padding: 2mm 4mm 0;
  font-size: 10.5px;
  color: #111;
}
.inv:last-child { page-break-after: auto; }

.inv__brand { text-align: center; margin-bottom: 4mm; }
.inv__logo { width: 46mm; height: auto; display: block; margin: 0 auto 1mm; }
.inv__tagline { margin: 0; font-size: 8.5px; letter-spacing: 1.2px; color: #444; text-align: center; }
.inv__title {
  margin: 2mm 0 0;
  font-size: 30px;
  letter-spacing: 6px;
  font-weight: 800;
  color: #0b1d3a;
  text-align: center;
  border-bottom: 1.2px solid #0b1d3a;
  padding-bottom: 1.5mm;
}

.inv__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 8mm; margin: 3mm 0 2mm; }
.inv__meta p { margin: 0 0 1mm; font-size: 10.5px; }
.inv__k { display: inline-block; width: 13mm; font-weight: 700; letter-spacing: 0.5px; }
.inv__colon { display: inline-block; width: 4mm; }
.inv__period { font-size: 10px; color: #222; white-space: nowrap; }

table.inv__table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 9.5px; }
table.inv__table th,
table.inv__table td {
  border: 0.6px solid #8a99ad;
  padding: 1.6mm 1.2mm;
  height: 7.2mm;
  vertical-align: middle;
  word-break: break-word;
}
table.inv__table th {
  background: #eef3fa;
  color: #0b1d3a;
  font-size: 8.8px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
  white-space: nowrap;
}
table.inv__table td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.inv__table td:nth-child(2) { white-space: nowrap; letter-spacing: -0.2px; }
table.inv__table td { font-size: 9.2px; }
table.inv__table th:nth-child(1), table.inv__table td:nth-child(1) { width: 9%; }
table.inv__table th:nth-child(2), table.inv__table td:nth-child(2) { width: 15%; }
table.inv__table th:nth-child(3), table.inv__table td:nth-child(3) { width: 13%; }
table.inv__table th:nth-child(4), table.inv__table td:nth-child(4) { width: 12%; }
table.inv__table th:nth-child(5), table.inv__table td:nth-child(5) { width: 12%; }
table.inv__table th:nth-child(6), table.inv__table td:nth-child(6) { width: 9%; }
table.inv__table th:nth-child(7), table.inv__table td:nth-child(7) { width: 15%; }
table.inv__table th:nth-child(8), table.inv__table td:nth-child(8) { width: 16%; }
.inv-row--blank td { height: 7.2mm; }

table.inv__table tfoot td {
  border-top: 1.6px solid #0b1d3a;
  font-weight: 700;
  background: #f7fafe;
}
.inv__total-label { text-align: center; letter-spacing: 2px; font-size: 10px; }
.inv__total-sum { text-align: right; font-size: 12px; color: #0b1d3a; }

.inv__notice {
  margin-top: 3mm;
  border: 0.6px solid #b9c6d8;
  border-radius: 1.6mm;
  padding: 2mm 3mm;
  background: #fbfcfe;
}
.inv__notice p { margin: 0 0 0.9mm; font-size: 8.8px; line-height: 1.45; color: #222; }
.inv__notice-title { text-align: center; font-weight: 700; letter-spacing: 1px; margin-bottom: 1.4mm !important; }

.inv__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 6mm; margin-top: 3mm; }
.inv__bank p { margin: 0 0 0.8mm; font-size: 9px; color: #222; }
.inv__bank-name { font-size: 9.5px !important; }
.inv__contact { text-align: right; }
.inv__contact img { width: 24mm; height: auto; display: block; margin: 0 0 0.8mm auto; opacity: 0.9; }
.inv__contact p { margin: 0 0 0.6mm; font-size: 8.5px; color: #333; }

.inv__printdate { margin: 6mm 0 0; text-align: center; font-size: 8px; letter-spacing: 1px; color: #666; }

/* 2차: ROUTE 배지 · LOCAL CHG · DETAIL LIST (9열) */
table.inv__table th:nth-child(1), table.inv__table td:nth-child(1) { width: 8%; }
table.inv__table th:nth-child(2), table.inv__table td:nth-child(2) { width: 15%; }
table.inv__table th:nth-child(3), table.inv__table td:nth-child(3) { width: 7%; text-align: center; }
table.inv__table th:nth-child(4), table.inv__table td:nth-child(4) { width: 12%; }
table.inv__table th:nth-child(5), table.inv__table td:nth-child(5) { width: 11%; }
table.inv__table th:nth-child(6), table.inv__table td:nth-child(6) { width: 11%; }
table.inv__table th:nth-child(7), table.inv__table td:nth-child(7) { width: 8%; }
table.inv__table th:nth-child(8), table.inv__table td:nth-child(8) { width: 14%; }
table.inv__table th:nth-child(9), table.inv__table td:nth-child(9) { width: 14%; }
.inv .route-badge {
  display: inline-block; min-width: 9mm; padding: 0.2mm 1.4mm; border: 0.5px solid #0b1d3a;
  border-radius: 999px; font-size: 8px; font-weight: 700; letter-spacing: 0.3px; text-align: center;
}
.inv__detail { margin-top: 2.5mm; border: 0.5px dashed #9aa9bd; border-radius: 1.4mm; padding: 1.6mm 2.6mm; }
.inv__detail-title { margin: 0 0 1mm; font-size: 8px; letter-spacing: 1px; font-weight: 700; color: #0b1d3a; }
.inv__detail ul { margin: 0; padding-left: 4mm; font-size: 8.4px; color: #222; }
