/* Isolation makes the live app invisible on paper; one print header only. */
#nwIsolatedPrintDocument{display:none!important}
@media print{
 @page{size:A4 portrait;margin:10mm 9mm}
 html,html body{width:auto!important;max-width:none!important;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important;background:white!important}
 html body > :not(#nwIsolatedPrintDocument){display:none!important;visibility:hidden!important}
 html body > #nwIsolatedPrintDocument{
   display:block!important;visibility:visible!important;position:static!important;box-sizing:border-box!important;
   width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;
   margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important;transform:none!important;
   color:#1d2c41!important;font:9pt/1.4 "Malgun Gothic","Noto Sans KR",Arial,sans-serif!important;
 }
 html body #nwIsolatedPrintDocument *{box-sizing:border-box!important;scrollbar-width:none!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}
 html body #nwIsolatedPrintDocument *::-webkit-scrollbar{display:none!important}
 html body #nwIsolatedPrintDocument .nw-paper-header{
   display:flex!important;align-items:center!important;justify-content:center!important;gap:4mm!important;
   width:100%!important;min-height:19mm!important;height:auto!important;margin:0 0 6mm!important;padding:0 0 4mm!important;
   border:0!important;border-bottom:1px solid #cbd5e1!important;box-shadow:none!important;background:white!important;
   page-break-after:avoid!important;break-after:avoid!important;
 }
 html body #nwIsolatedPrintDocument .nw-paper-logo{
   display:block!important;width:15mm!important;min-width:15mm!important;max-width:15mm!important;
   height:15mm!important;max-height:15mm!important;border-radius:3mm!important;object-fit:contain!important;
 }
 html body #nwIsolatedPrintDocument .nw-paper-heading{display:block!important;text-align:left!important;min-width:0!important}
 html body #nwIsolatedPrintDocument .nw-paper-heading small{
   display:block!important;font-size:8.5pt!important;font-weight:700!important;color:#52647d!important;margin:0 0 1mm!important;
 }
 html body #nwIsolatedPrintDocument .nw-paper-heading h1{
   display:block!important;margin:0!important;padding:0!important;font-size:16pt!important;line-height:1.25!important;
   font-weight:900!important;color:#152c49!important;white-space:normal!important;word-break:keep-all!important;
 }
 html body #nwIsolatedPrintDocument .nw-paper-body,
 html body #nwIsolatedPrintDocument .nw-paper-body > *,
 html body #nwIsolatedPrintDocument .card,
 html body #nwIsolatedPrintDocument .panel,
 html body #nwIsolatedPrintDocument .print-area,
 html body #nwIsolatedPrintDocument .payslip,
 html body #nwIsolatedPrintDocument .table-wrap,
 html body #nwIsolatedPrintDocument .external-no-scroll,
 html body #nwIsolatedPrintDocument .settlement-sheet-table-wrap,
 html body #nwIsolatedPrintDocument .settlement-sheet-summary-wrap{
   display:block!important;position:static!important;float:none!important;transform:none!important;
   box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
   height:auto!important;max-height:none!important;margin-left:0!important;margin-right:0!important;
   padding-left:0!important;padding-right:0!important;overflow:visible!important;box-shadow:none!important;background:#fff!important;
 }
 html body #nwIsolatedPrintDocument .card,
 html body #nwIsolatedPrintDocument .panel,
 html body #nwIsolatedPrintDocument .payroll-section{
   margin-top:0!important;margin-bottom:5mm!important;padding-top:0!important;
   border-radius:0!important;border-left:0!important;border-right:0!important;border-bottom:0!important;
   page-break-inside:auto!important;break-inside:auto!important;
 }
 html body #nwIsolatedPrintDocument .panel-head{
   display:block!important;margin:0 0 3mm!important;padding:0 0 2mm!important;
   border-bottom:1px solid #cbd5e1!important;break-after:avoid!important;
 }
 html body #nwIsolatedPrintDocument h1,
 html body #nwIsolatedPrintDocument h2,
 html body #nwIsolatedPrintDocument h3{margin:3mm 0 2mm!important;color:#172e4b!important;font-weight:900!important;break-after:avoid!important}
 html body #nwIsolatedPrintDocument h2{font-size:11pt!important}
 html body #nwIsolatedPrintDocument h3{font-size:10pt!important}
 html body #nwIsolatedPrintDocument small{font-size:7.5pt!important;color:#64748b!important}
 html body #nwIsolatedPrintDocument table,
 html body #nwIsolatedPrintDocument table.table,
 html body #nwIsolatedPrintDocument .payroll-detail-table,
 html body #nwIsolatedPrintDocument .external-company-compact{
   display:table!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
   margin:0 0 3mm!important;border-collapse:collapse!important;border-spacing:0!important;table-layout:fixed!important;
   background:#fff!important;color:#1e2b3d!important;font-size:7.5pt!important;line-height:1.3!important;
 }
 html body #nwIsolatedPrintDocument col{width:auto!important;min-width:0!important}
 html body #nwIsolatedPrintDocument thead{display:table-header-group!important}
 html body #nwIsolatedPrintDocument tbody{display:table-row-group!important}
 html body #nwIsolatedPrintDocument tr{page-break-inside:avoid!important;break-inside:avoid!important}
 html body #nwIsolatedPrintDocument th,
 html body #nwIsolatedPrintDocument td{
   display:table-cell!important;position:static!important;box-sizing:border-box!important;
   width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;
   padding:2mm 1.3mm!important;border:1px solid #cbd5e1!important;border-radius:0!important;
   background:#fff!important;vertical-align:middle!important;text-align:left!important;
   white-space:normal!important;word-break:keep-all!important;overflow-wrap:anywhere!important;
   font-size:7.4pt!important;line-height:1.3!important;box-shadow:none!important;
 }
 html body #nwIsolatedPrintDocument thead th{background:#eff3f8!important;text-align:center!important;color:#263952!important;font-weight:900!important}
 html body #nwIsolatedPrintDocument td.num,
 html body #nwIsolatedPrintDocument td[align="right"]{text-align:right!important;font-variant-numeric:tabular-nums!important}
 html body #nwIsolatedPrintDocument td.center{text-align:center!important}
 html body #nwIsolatedPrintDocument .meta{
   display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;
   width:100%!important;margin:0 0 5mm!important;border:1px solid #d5dee8!important;
 }
 html body #nwIsolatedPrintDocument .meta>div{
   display:block!important;min-width:0!important;padding:2.5mm!important;
   border-right:1px solid #d5dee8!important;font-size:8pt!important;overflow-wrap:anywhere!important;
 }
 html body #nwIsolatedPrintDocument .meta>div:last-child{border-right:0!important}
 html body #nwIsolatedPrintDocument button,
 html body #nwIsolatedPrintDocument .actions,
 html body #nwIsolatedPrintDocument .manage-cell,
 html body #nwIsolatedPrintDocument .toolbar,
 html body #nwIsolatedPrintDocument .no-print,
 html body #nwIsolatedPrintDocument .screen-only{display:none!important}
 html body #nwIsolatedPrintDocument .nw-printed-canvas{display:block!important;max-width:100%!important;height:auto!important;margin:2mm auto!important}
 html body #nwIsolatedPrintDocument .external-company-link{
   padding:0!important;border:0!important;background:transparent!important;color:#263952!important;
   font-size:inherit!important;font-weight:800!important;box-shadow:none!important;text-decoration:none!important;
 }
}

/* 2026-10-07 external workforce print layout repair 450 */
@media print{
  html body #nwIsolatedPrintDocument .nw-paper-body > .external-deployed-workers,
  html body #nwIsolatedPrintDocument .nw-paper-body > .external-company-worker-list,
  html body #nwIsolatedPrintDocument .nw-paper-body > .external-company-settlement,
  html body #nwIsolatedPrintDocument .nw-paper-body > .external-tax-invoices,
  html body #nwIsolatedPrintDocument .nw-paper-body > .external-direct-payment-detail{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0 0 5mm!important;
    padding:0!important;
    overflow:visible!important;
    box-shadow:none!important;
    background:#fff!important;
  }

  html body #nwIsolatedPrintDocument .external-deployed-workers,
  html body #nwIsolatedPrintDocument .external-company-worker-list{
    break-inside:auto!important;
    page-break-inside:auto!important;
  }

  html body #nwIsolatedPrintDocument .external-company-settlement,
  html body #nwIsolatedPrintDocument .external-tax-invoices{
    break-inside:avoid-page!important;
    page-break-inside:avoid!important;
  }

  html body #nwIsolatedPrintDocument .external-direct-payment-detail{
    break-inside:auto!important;
    page-break-inside:auto!important;
  }

  html body #nwIsolatedPrintDocument .external-deployed-workers .panel-head,
  html body #nwIsolatedPrintDocument .external-company-worker-list .panel-head,
  html body #nwIsolatedPrintDocument .external-company-settlement .panel-head,
  html body #nwIsolatedPrintDocument .external-tax-invoices .panel-head,
  html body #nwIsolatedPrintDocument .external-direct-payment-detail .panel-head{
    display:block!important;
    width:100%!important;
    margin:0 0 2.5mm!important;
    padding:0 0 2mm!important;
    border-bottom:1px solid #cbd5e1!important;
    break-after:avoid!important;
    page-break-after:avoid!important;
  }

  html body #nwIsolatedPrintDocument .external-deployed-workers .panel-head h3,
  html body #nwIsolatedPrintDocument .external-company-worker-list .panel-head h3,
  html body #nwIsolatedPrintDocument .external-company-settlement .panel-head h3,
  html body #nwIsolatedPrintDocument .external-tax-invoices .panel-head h3,
  html body #nwIsolatedPrintDocument .external-direct-payment-detail .panel-head h3{
    margin:0!important;
    font-size:10.5pt!important;
    line-height:1.25!important;
  }

  html body #nwIsolatedPrintDocument .external-deployed-workers .panel-head small,
  html body #nwIsolatedPrintDocument .external-company-worker-list .panel-head small,
  html body #nwIsolatedPrintDocument .external-company-settlement .panel-head small,
  html body #nwIsolatedPrintDocument .external-tax-invoices .panel-head small,
  html body #nwIsolatedPrintDocument .external-direct-payment-detail .panel-head small{
    display:block!important;
    margin-top:1mm!important;
    font-size:7pt!important;
    line-height:1.3!important;
  }

  html body #nwIsolatedPrintDocument .external-worker-compact{
    display:table!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
    font-size:6.8pt!important;
  }

  html body #nwIsolatedPrintDocument .external-worker-compact th,
  html body #nwIsolatedPrintDocument .external-worker-compact td{
    padding:1.7mm 1mm!important;
    font-size:6.8pt!important;
    line-height:1.25!important;
    vertical-align:middle!important;
    white-space:normal!important;
    word-break:keep-all!important;
    overflow-wrap:anywhere!important;
  }

  html body #nwIsolatedPrintDocument .external-worker-compact th:nth-child(1),
  html body #nwIsolatedPrintDocument .external-worker-compact td:nth-child(1){width:15%!important}
  html body #nwIsolatedPrintDocument .external-worker-compact th:nth-child(2),
  html body #nwIsolatedPrintDocument .external-worker-compact td:nth-child(2){width:21%!important}
  html body #nwIsolatedPrintDocument .external-worker-compact th:nth-child(3),
  html body #nwIsolatedPrintDocument .external-worker-compact td:nth-child(3){width:15%!important}
  html body #nwIsolatedPrintDocument .external-worker-compact th:nth-child(4),
  html body #nwIsolatedPrintDocument .external-worker-compact td:nth-child(4){width:9%!important;text-align:center!important}
  html body #nwIsolatedPrintDocument .external-worker-compact th:nth-child(5),
  html body #nwIsolatedPrintDocument .external-worker-compact td:nth-child(5){width:9%!important;text-align:right!important}
  html body #nwIsolatedPrintDocument .external-worker-compact th:nth-child(6),
  html body #nwIsolatedPrintDocument .external-worker-compact td:nth-child(6){width:14%!important;text-align:right!important}
  html body #nwIsolatedPrintDocument .external-worker-compact th:nth-child(7),
  html body #nwIsolatedPrintDocument .external-worker-compact td:nth-child(7){width:17%!important;text-align:right!important}

  html body #nwIsolatedPrintDocument .external-company-compact,
  html body #nwIsolatedPrintDocument .external-invoice-expense-table,
  html body #nwIsolatedPrintDocument .external-direct-compact{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
    font-size:7pt!important;
  }

  html body #nwIsolatedPrintDocument .external-company-compact th,
  html body #nwIsolatedPrintDocument .external-company-compact td,
  html body #nwIsolatedPrintDocument .external-invoice-expense-table th,
  html body #nwIsolatedPrintDocument .external-invoice-expense-table td,
  html body #nwIsolatedPrintDocument .external-direct-compact th,
  html body #nwIsolatedPrintDocument .external-direct-compact td{
    padding:1.8mm 1mm!important;
    font-size:7pt!important;
    line-height:1.25!important;
    white-space:normal!important;
    word-break:keep-all!important;
    overflow-wrap:anywhere!important;
  }

  html body #nwIsolatedPrintDocument .external-subsection-title{
    display:block!important;
    width:100%!important;
    margin:0 0 2mm!important;
    padding:2mm!important;
    background:#f6f9fc!important;
    border-radius:2mm!important;
    break-after:avoid!important;
    page-break-after:avoid!important;
  }

  html body #nwIsolatedPrintDocument .approval-signature-note{
    display:block!important;
    margin-top:2mm!important;
    padding:1.5mm 2mm!important;
    font-size:6.5pt!important;
    line-height:1.3!important;
    border:1px solid #d7dee8!important;
    border-radius:1.5mm!important;
    background:#f8fafc!important;
  }
}
