@page{size:A4 portrait;margin:5mm}

@media print{
  html,body{
    width:auto!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
    overflow:visible!important;
  }
  .app-shell,.report-wrap{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    min-height:0!important;
    overflow:visible!important;
  }

  .report-page{
    width:100%!important;
    max-width:none!important;
    height:287mm!important;
    min-height:287mm!important;
    max-height:287mm!important;
    display:flex!important;
    flex-direction:column!important;
    margin:0!important;
    padding:2.5mm 3.5mm!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    font-size:10pt!important;
    line-height:1.28!important;
  }

  .report-head,.report-title,.report-page>.report-table,.signature{flex:0 0 auto!important}
  .report-head{padding:1.5mm 0 2mm!important}
  .report-head img{width:43mm!important;max-height:13mm!important;height:auto!important;object-fit:contain!important}
  .report-address{font-size:7.6pt!important;line-height:1.25!important}
  .report-title{font-size:11pt!important;line-height:1.2!important;margin-top:1.5mm!important;padding:1.5mm!important}

  .report-table th{
    font-size:8.6pt!important;
    line-height:1.2!important;
    padding:1.25mm 1.5mm!important;
  }
  .report-table td{
    font-size:9.15pt!important;
    line-height:1.3!important;
    padding:1.35mm 1.6mm!important;
  }
  .report-details{
    height:auto!important;
    min-height:15mm!important;
    font-size:9.25pt!important;
    line-height:1.38!important;
    white-space:pre-wrap!important;
    padding-top:1.6mm!important;
    padding-bottom:1.6mm!important;
  }
  .signature{
    font-size:9pt!important;
    line-height:1.3!important;
    padding:3mm 0 2.5mm!important;
  }

  .photo-grid{
    flex:0 0 98mm!important;
    height:98mm!important;
    min-height:98mm!important;
    max-height:98mm!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,minmax(0,1fr))!important;
    gap:1mm!important;
    margin-top:1.5mm!important;
    overflow:hidden!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }
  .photo-grid>div{height:auto!important;min-height:0!important;overflow:hidden!important}
  .photo-grid img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}

  .remote-report-note{
    flex:0 0 98mm!important;
    height:98mm!important;
    min-height:98mm!important;
    margin-top:1.5mm!important;
    border:0!important;
    background:transparent!important;
    display:grid!important;
    place-items:center!important;
    color:#6f757b!important;
    font-size:18pt!important;
    font-weight:700!important;
    letter-spacing:.03em!important;
  }

  body.print-lang-th .report-page{
    font-family:"Noto Sans Thai","Leelawadee UI","Tahoma","Segoe UI",Arial,sans-serif!important;
    font-size:10.3pt!important;
  }
  body.print-lang-th .report-table th{
    font-size:9pt!important;
    line-height:1.25!important;
  }
  body.print-lang-th .report-table td{
    font-size:9.7pt!important;
    line-height:1.36!important;
  }
  body.print-lang-th .report-details{
    min-height:16mm!important;
    font-size:9.9pt!important;
    line-height:1.42!important;
  }
  body.print-lang-th .signature{
    font-size:9.4pt!important;
    line-height:1.35!important;
  }
}
