#print-contract { display: none; }
#print-contract.preview-open { display: block; overflow: auto; margin-block: 20px; }
#print-contract.original-measuring { display: block; position: fixed; inset-inline-start: -10000px; visibility: hidden; }
.original-contract-page {
  position: relative;
  width: 210mm;
  height: 297mm;
  margin: 0 auto 12px;
  background: #fff;
  color: #000;
  font: 9pt/13.5pt "Malgun Gothic", "맑은 고딕", sans-serif;
}
.original-sheet-content { position: absolute; inset: 0; transform-origin: top left; }
.original-region { position: absolute; overflow-wrap: anywhere; }
.original-region p { margin: 0; }
.original-region h3 { margin: 0 0 3pt; font-size: 10pt; line-height: 12pt; }
.original-title { text-align: center; font-size: 17.6pt; font-weight: 400; line-height: 30.3pt; margin: 0; border: .45pt solid #333; background: #dce6f1; }
.original-title.part-time { background: #d9d9d9; }
.original-review-label { font-size: 8pt; color: #444; }
.original-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: center; line-height: 10pt; }
.original-table td, .original-table th { border: .45pt solid #333; padding: 1.4pt 2pt; font-weight: 400; }
.original-table thead th { font-weight: 700; }
.original-parties td, .original-parties th { height: 16.7pt; }
.original-parties.part-time td, .original-parties.part-time th { height: 18pt; }
.original-business-number { display: block; font-size: 7pt; line-height: 8pt; }
.original-parties tr:first-child td { padding-block: .3pt; }
.original-parties.original-compact td { font-size: 7pt; line-height: 8pt; }
.original-clause.original-compact p { font-size: 7.2pt; line-height: 10pt; }
.original-parties td:nth-child(3) { text-align: center; }
.original-hours td { white-space: pre-line; font-size: 7.8pt; line-height: 8pt; padding-block: .7pt; }
.original-hours thead th { padding-block: 1.2pt; }
.original-wages td { font-size: 8pt; }
.original-wages td:nth-child(2) { text-align: right; }
.original-wages tr:last-child td { font-weight: 700; text-align: center; }
.original-wages.part-time thead th { background: #c0c0c0; }
.original-wages.part-time thead th:nth-child(2) { white-space: pre-line; font-size: 7.5pt; line-height: 8pt; }
.original-region .original-wage-caption { margin-top: 2pt; font-size: 8pt; line-height: 10pt; }
.daily-wage-groups td:last-child { white-space: pre-line; text-align: left; }
.daily-wage-groups tr:last-child td { font-weight: 400; }
.daily-wage-groups tr:last-child td:nth-child(2) { text-align: right; }
.original-receipt h3 { text-align: center; text-decoration: underline; }
.original-sign-line { display: inline-block; width: 78pt; border-bottom: .5pt solid #111; margin-right: 4pt; }
.original-center { text-align: center; }
.original-right { text-align: right; }
.original-region .original-consent-line { margin-top: 7pt; }
.original-signatures p { margin: 0 0 5pt; }
.original-signatures .original-signature-date { margin-bottom: 14pt; padding-left: 8pt; }
.original-signatures.part-time .original-signature-date { margin-bottom: 39pt; padding-left: 87pt; }
.original-signature-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4pt; padding-left: 12pt; }
.original-signatures.part-time .original-signature-row { padding-left: 0; }
@page { size: A4; margin: 0; }
@media print {
  html, body, main.wrap { margin: 0; padding: 0; max-width: none; }
  :root { background: white; color: black; }
  header, main > h1, main > p, #owner-access, main > .layout { display: none; }
  #print-contract, #print-contract.preview-open { display: block; overflow: visible; margin: 0; }
  .original-contract-page { margin: 0; height: 296.9mm; break-inside: avoid; print-color-adjust: exact; }
  .original-contract-page + .original-contract-page { break-before: page; }
}
