.daily-report-heading{margin:0 auto 9px;text-align:center;font-family:SarabunPP,"TH Sarabun New",Tahoma,sans-serif;font-size:17px;line-height:1.25}
.daily-report-heading h1{margin:0;font-size:19px;font-weight:500}
.daily-report-heading div{margin-top:1px}
.daily-school-logo{display:none}
.daily-report-table{font-family:SarabunPP,"TH Sarabun New",Tahoma,sans-serif;font-size:14px;color:#111}
.daily-report-table .col-class{width:7%}
.daily-report-table .col-count{width:3.7%}
.daily-report-table .col-teacher{width:30%}
.daily-report-table .col-note{width:18.6%}
.daily-report-table .col-teacher.with-status{width:22%}
.daily-report-table .col-note.with-status{width:14%}
.daily-report-table .col-status{width:12%}
.daily-report-table th,.daily-report-table td{border:1px solid #222;padding:3px 5px}
.daily-report-table thead th,.daily-report-table thead tr:first-child th{background:#fff;color:#111;font-weight:500;text-align:center;white-space:normal}
.daily-report-table td:first-child{text-align:left;min-width:92px}
.daily-report-table td.teacher,.daily-report-table td.note{text-align:left;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.08;vertical-align:top}
.daily-report-table tfoot{background:#fff}
.pdf-capture-stage{position:fixed;left:-10000px;top:0;width:184mm;background:#fff;z-index:-1}
.daily-pdf-page{box-sizing:border-box;width:184mm;max-width:184mm;overflow:visible;background:#fff;color:#111;font-family:SarabunPP,"TH Sarabun New",Tahoma,sans-serif}
.pdf-export .daily-school-logo{display:block;width:42px;height:42px;object-fit:contain;margin:0 auto 3px}
.pdf-export .daily-report-heading{margin:0 auto 5px;font-size:11px}
.pdf-export .daily-report-heading h1{font-size:14px}
.pdf-export .daily-report-table{font-size:9px;table-layout:fixed}
.pdf-export .daily-report-table th,.pdf-export .daily-report-table td{padding:1px 2px}
.pdf-export .att-table-wrap{overflow:visible;border:0;border-radius:0}
.pdf-export .pdf-field-value{display:block;box-sizing:border-box;width:100%;min-height:12px;padding:0 1px;border:0;border-radius:0;background:transparent;color:#111;font:inherit;line-height:1.05;white-space:pre-wrap}
.pdf-export .daily-form-details{margin-top:3px;font-size:10px;line-height:1.05;page-break-inside:avoid}
.pdf-export .daily-form-block{margin-top:2px}.pdf-export .daily-form-block h2,.pdf-export .daily-duty-group h3{font-size:11px;margin:0 0 1px}
.pdf-export .daily-line{margin:0;min-height:14px}.pdf-export .daily-line input,.pdf-export .daily-form-block textarea,.pdf-export .daily-duty-row input,.pdf-export .daily-inspector input{padding:0 2px;line-height:1.05}
.pdf-export .daily-form-block textarea{height:20px;min-height:20px;resize:none}.pdf-export .daily-duty-grid{gap:16px;margin-top:3px}.pdf-export .daily-duty-row{grid-template-columns:14px 1fr 86px;min-height:15px;gap:3px}.pdf-export .daily-inspector{margin-top:5px;max-width:400px;gap:4px}
@page{size:A4 portrait;margin:15mm 8mm 10mm 18mm}
@media print{
  .daily-school-logo{display:block;width:42px;height:42px;object-fit:contain;margin:0 auto 3px}
  .daily-report-heading{margin-bottom:5px;font-size:11pt}
  .daily-report-heading h1{font-size:13pt}
  .daily-report-table{font-size:9pt;table-layout:fixed}
  .daily-report-table th,.daily-report-table td{border:1px solid #111;padding:2px}
  .daily-report-table td:first-child{min-width:0}
  #attReport{width:100%;height:auto;overflow:visible}
  .daily-form-details{margin-top:3px;font-size:9.5pt;line-height:1.05;page-break-inside:avoid}
  .daily-form-block{margin-top:2px}
  .daily-form-block h2,.daily-duty-group h3{font-size:10.5pt;margin:0 0 1px}
  .daily-line{margin:0;min-height:15px}
  .daily-line input,.daily-form-block textarea,.daily-duty-row input,.daily-inspector input{padding:0 2px;line-height:1.05}
  .daily-form-block textarea{height:22px;min-height:22px;resize:none}
  .daily-event{min-height:17px}
  .daily-duty-grid{gap:18px;margin-top:3px}
  .daily-duty-row{grid-template-columns:14px 1fr 90px;min-height:16px;gap:3px}
  .duty-name,.duty-signature{min-height:14px}
  .daily-inspector{margin-top:6px;max-width:420px;gap:5px}
}

/* Keep the director signature block clearly separated from both duty-teacher lists. */
.pdf-export .daily-inspector{margin-top:22px;max-width:420px;gap:2px}
.pdf-export .inspector-sign-row .inspector-sign{height:20px;min-width:220px}
.pdf-export .inspector-name-row{min-height:14px}
.pdf-export .inspector-position-row input,.pdf-export .inspector-position-row b{width:190px;min-width:190px}
@media print{
  .daily-inspector{margin-top:26px;max-width:440px;gap:2px}
  .inspector-sign-row .inspector-sign{height:22px;min-width:240px}
  .inspector-name-row{min-height:16px}
  .inspector-position-row input,.inspector-position-row b{width:210px;min-width:210px}
}
