/* Runner PDI Reports v1.3.18 – print only; on-screen application layout is unchanged. */
.rpa-report-period{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 18px;background:#fff;border:1px solid #dbe5f0;border-radius:8px;padding:9px 12px;margin:8px 0 12px;font-size:12px;color:#213c59}
.rpa-report-period strong{font-weight:800}
.rpa-report-generated{font-size:10px;color:#667991}
.rpa-report-filters{margin-bottom:12px;align-items:end}
.rpa-report-filters label{display:flex;flex-direction:column;gap:3px;font-size:12px;font-weight:700}
.rpa-report-filters input[type=date]{padding:7px;border:1px solid #c8d6e6;border-radius:6px;background:#fff}
.rpa-print-signatures{display:none}
@media print{
  @page{size:A4 portrait;margin:10mm 9mm 11mm}
  @page rpa-landscape-page{size:A4 landscape;margin:8mm}
  html,body,.rpa-app,.rpa-main{background:white!important;color:black!important;font-family:Arial,'Noto Sans Bengali',sans-serif!important}
  *,*::before,*::after{color:black!important;box-shadow:none!important;text-shadow:none!important;
      -webkit-print-color-adjust:economy!important;print-color-adjust:economy!important}
  .rpa-topbar,.rpa-nav,.rpa-footer,.rpa-no-print,.rpa-report-filters,
  .rpa-pagehead .rpa-actions,.rpa-inline-form,.rpa-form,.rpa-form-actions,
  .rpa-quick,.rpa-flash,.rpa-mobile-scan,.rpa-scanbox,
  .rpa-setup-strip,.rpa-btn,.rpa-actions:has(button){display:none!important}
  .rpa-main{padding:0!important;margin:0!important;max-width:none!important;width:100%!important;overflow:visible!important}
  body:has(.rpa-print-brand) .rpa-pagehead{display:none!important}
  .rpa-pagehead{margin:0 0 6px!important;break-after:avoid!important}
  .rpa-pagehead .rpa-breadcrumb,.rpa-pagehead p{display:none!important}
  .rpa-pagehead h1{font-size:14px!important;color:black!important;margin:0!important}
  .rpa-print-brand{display:flex!important;align-items:center!important;justify-content:space-between!important;
      border-bottom:2px solid black!important;padding:0 0 6px!important;margin:0 0 6px!important;
      break-after:avoid!important;font-size:11px!important;background:white!important}
  .rpa-print-brand strong{font-size:12px!important}
  .rpa-print-brand img,.rpa-print-logo{filter:grayscale(100%) contrast(220%)!important;max-height:48px!important;
      max-width:155px!important;object-fit:contain!important}
  .rpa-report-period{display:flex!important;border:1px solid black!important;box-shadow:none!important;border-radius:0!important;
      padding:5px 8px!important;margin:6px 0 10px!important;font-size:10px!important;line-height:1.25!important;break-after:avoid!important}
  .rpa-report-generated{font-size:9px!important}
  .rpa-card,.rpa-mini-panel,.rpa-count-grid>div,.rpa-kpi,.rpa-cycle-pill{background:white!important;border-radius:0!important;box-shadow:none!important}
  .rpa-card{padding:0!important;margin:6px 0 10px!important;border:0!important;break-inside:auto!important}
  .rpa-card h2,.rpa-card h3,.rpa-att-grouphead h2{color:black!important;font-size:11px!important;
      margin:5px 0 3px!important;break-after:avoid!important}
  .rpa-grid{display:block!important}
  .rpa-grid.kpi,.rpa-grid.three,.rpa-grid.two{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin-bottom:10px!important}
  .rpa-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .rpa-kpi,.rpa-grid .rpa-card{border:1px solid #555!important;padding:5px!important;margin:0!important;break-inside:avoid!important}
  .rpa-card .value,.rpa-kpi .value{font-size:13px!important;margin-top:2px!important}
  .rpa-table-wrap,.rpa-att-wrap,.pymeal-wrap{overflow:visible!important;border:0!important;border-radius:0!important;
      width:100%!important;max-width:100%!important}
  .rpa-table,.rpa-att-table,.pymeal{border-collapse:collapse!important;min-width:0!important;width:100%!important;
      background:white!important;font-size:8px!important;table-layout:auto!important}
  .rpa-table th,.rpa-table td,.rpa-att-table th,.rpa-att-table td,.pymeal th,.pymeal td{
      border:1px solid #000!important;background:#fff!important;color:#000!important;
      padding:3px 4px!important;font-size:8px!important;line-height:1.25!important;
      vertical-align:top!important;overflow-wrap:anywhere!important;white-space:normal!important}
  .rpa-table th,.rpa-att-table th,.pymeal th{background:#f2f2f2!important;color:black!important;
      font-weight:800!important;text-transform:none!important;letter-spacing:normal!important}
  .rpa-table td.num,.rpa-table th.num{text-align:right!important;white-space:nowrap!important;overflow-wrap:normal!important}
  .rpa-table thead,.rpa-att-table thead,.pymeal thead{display:table-header-group!important}
  .rpa-table tfoot,.rpa-att-table tfoot,.pymeal tfoot{display:table-footer-group!important}
  .rpa-table tr,.rpa-att-table tr,.pymeal tr{break-inside:avoid!important;page-break-inside:avoid!important}
  .rpa-table tr:last-child td{border-bottom:1px solid black!important}
  .rpa-summary-list{gap:2px 10px!important;margin:5px 0!important;font-size:10px!important}
  .rpa-summary-list div{border-bottom:1px dotted #666!important;padding:3px 0!important}
  .rpa-summary-list .amt{color:black!important;text-align:right!important;white-space:nowrap!important}
  .rpa-alert,.rpa-status,.rpa-cycle-pill{background:white!important;color:black!important;
      border:1px solid #777!important;padding:2px 3px!important;border-radius:0!important}
  .rpa-count-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
  .rpa-count-grid>div{border:1px solid #555!important;padding:4px!important}
  .rpa-count-grid strong{font-size:11px!important}
  .rpa-att-table th,.rpa-att-table td,.pymeal th,.pymeal td{font-size:6.1px!important;padding:1px!important;text-align:center!important;
      white-space:nowrap!important;overflow-wrap:normal!important}
  .rpa-att-table .rpa-att-name,.rpa-att-table .rpa-att-desig,.pymeal .person{text-align:left!important;
      white-space:normal!important;overflow-wrap:anywhere!important}
  .rpa-att-table .rpa-att-name{width:27mm!important;min-width:0!important}
  .rpa-att-table .rpa-att-desig{width:22mm!important;min-width:0!important}
  .rpa-att-table .rpa-att-day{width:4.3mm!important;min-width:0!important}
  .rpa-att-table th small{font-size:5.3px!important}
  .rpa-meal-print-sheet{page:rpa-landscape-page;break-after:page!important;page-break-after:always!important}
  .rpa-meal-print-sheet:last-child{break-after:auto!important;page-break-after:auto!important}
  .rpa-att-print-sheet{page:rpa-landscape-page;break-after:page!important;page-break-after:always!important}
  .rpa-att-print-sheet:last-child{break-after:auto!important;page-break-after:auto!important}
  .pymeal select{appearance:none!important;border:0!important;background:white!important;color:black!important}
  .rpa-print-signatures{display:flex!important;justify-content:space-between!important;gap:10px!important;
      padding-top:16px!important;margin-top:14px!important;font-size:9px!important;break-inside:avoid!important}
  .rpa-print-signatures span{white-space:nowrap!important}
  .rpa-print-brand, .rpa-report-period,.rpa-pagehead{orphans:3;widows:3}
}

/* Align narrow money and date columns for official B/W copies. */
@media print{
 .rpa-report-total th,.rpa-report-total td{font-weight:800!important;border-top:1.5px solid #000!important;background:#fff!important}
 .rpa-report-department{border:1px solid #000!important;padding:5px 8px!important;margin:7px 0!important;font-size:10px!important;break-after:avoid!important}
 .rpa-report-period{font-family:Arial,sans-serif!important}
 .rpa-att-print-sheet .rpa-print-brand{display:flex!important}
 .rpa-grid.three > .rpa-card{break-inside:avoid!important}
}

/* v1.3.19 - roomy handwritten signing fields on EVERY black-and-white report. */
.rpa-dept-report-summary{margin-bottom:14px}
.rpa-dept-report-block{margin:14px 0 18px}
.rpa-dept-report-block h2{font-size:15px;margin:10px 0 6px}
.rpa-dept-report-info{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;margin:0 0 8px}
.rpa-dept-report-amount{margin:8px 0 10px;text-align:right;font-size:12px;font-weight:700}
.rpa-signature-field{flex:1;max-width:32%;text-align:center}
.rpa-signature-field strong{display:block;font-size:11px;margin-top:5px}
.rpa-signature-field small{display:block;font-size:9px;margin-top:2px}
.rpa-signature-rule{border-top:1px solid #000;width:100%}
@media print{
  .rpa-dept-report-layout{page:rpa-official-portrait!important}
  .rpa-dept-report-layout .rpa-table th,.rpa-dept-report-layout .rpa-table td{font-size:8px!important;padding:4px 4px!important}
  .rpa-dept-report-layout .rpa-table td.num{white-space:nowrap!important}
  .rpa-dept-report-layout .rpa-dept-report-block{margin:9px 0 12px!important}
  .rpa-dept-report-layout .rpa-dept-report-block h2{font-size:12px!important;border-bottom:1px solid #000!important;padding-bottom:3px!important;break-after:avoid!important}
  .rpa-dept-report-summary{break-inside:avoid!important}
  .rpa-dept-report-info{font-size:9px!important}
  .rpa-print-signatures{display:flex!important;gap:14mm!important;justify-content:space-between!important;
    margin:12mm 0 4mm!important;padding:24mm 0 0!important;
    min-height:36mm!important;border:0!important;break-inside:avoid!important;page-break-inside:avoid!important;
    align-items:flex-end!important}
  .rpa-signature-field{flex:1!important;max-width:33%!important;min-width:0!important;text-align:center!important}
  .rpa-signature-field strong{font-size:10px!important;margin:5px 0 0!important}
  .rpa-signature-field small{font-size:8px!important;margin:2px 0 0!important}
  .rpa-signature-rule{border-top:1px solid black!important;width:100%!important;height:0!important}
}

.rpa-report-small{display:block;font-size:10px;color:#556677;line-height:1.3}
@media print{.rpa-report-small{font-size:7px!important;color:#000!important;margin-top:2px!important}}

/* v1.3.20: match the supplied historical department bill sheets: four signature columns,
   generous handwriting room and a clean black-and-white, A4 official printout. */
.rpa-payable-form{display:inline-flex!important;align-items:center;flex-wrap:wrap;gap:5px}
.rpa-payable-form input[type=number]{width:120px;max-width:100%}
.rpa-payable-form input[type=date]{max-width:154px}
.rpa-signature-field{max-width:23.5%;min-width:0}
@media print{
  .rpa-payable-form{display:none!important}
  .rpa-print-signatures{gap:7mm!important;padding-top:30mm!important;min-height:43mm!important;margin-top:11mm!important;break-inside:avoid!important}
  .rpa-signature-field{flex:1 1 0!important;max-width:24%!important}
  .rpa-signature-field strong{font-size:9px!important}
  .rpa-signature-rule{border-top:1px solid #000!important}
  .rpa-dept-report-layout .rpa-dept-report-summary{break-inside:avoid!important}
}

.rpa-bank-cheque-line{padding:8px 0;font-size:12px}
@media print{
 .rpa-bank-cheque-line{padding:5px 0!important;font-size:10px!important;font-weight:600!important}
 .rpa-dept-report-block .rpa-print-signatures{margin-top:10mm!important}
 .rpa-dept-report-block + .rpa-dept-report-block{break-before:page!important;page-break-before:always!important}
}

/* Official numbered bill print pack v1.3.22 - blank signatures only, read-only accounting. */
.rpa-official-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:10px 0 18px;padding:12px;border:1px solid #c9d3dc;border-radius:8px;background:#f7fafc}
.rpa-official-controls label{font-size:12px;display:flex;flex-direction:column;gap:4px;font-weight:600}
.rpa-official-controls input,.rpa-official-controls select{width:auto;min-width:135px;max-width:220px;padding:7px 8px;border:1px solid #9baebf;border-radius:4px;background:white;color:#111}
.rpa-official-pack{max-width:920px;margin:auto;color:#111;font-family:Arial,sans-serif}
.rpa-official-sheet{color:#111;background:white;border:1px solid #ddd;padding:16mm 15mm;margin:0 auto 24px;box-shadow:0 2px 8px #d0d0d0}
.rpa-official-header{text-align:center;font-size:13px;line-height:1.4}
.rpa-official-company{font-size:19px;font-weight:800;letter-spacing:.3px}
.rpa-official-header h2{font-size:15px;text-align:center;text-decoration:underline;color:#111;margin:12px 0 5px}
.rpa-official-caption{display:inline-block;border:1px solid #999;border-radius:10px;padding:2px 8px;margin:5px 0;font-size:9px}
.rpa-official-payee{font-size:14px;font-weight:700;margin:9px 0}
.rpa-official-meta{display:flex;justify-content:space-between;gap:16px;text-align:left;font-size:11px;margin:10px 0}
.rpa-official-table{border-collapse:collapse;width:100%;font-size:11px;background:white;table-layout:auto}
.rpa-official-table th,.rpa-official-table td{border:1px solid #000;padding:5px 6px;vertical-align:top;color:#111}
.rpa-official-table thead th{background:white;font-weight:700;text-align:center}
.rpa-official-table .rpa-num{text-align:right;white-space:nowrap}
.rpa-official-table .rpa-sl{width:35px;text-align:center;white-space:nowrap}
.rpa-official-table .rpa-official-total th{font-weight:800;text-align:right}
.rpa-official-words{margin:10px 0 0;font-size:11px}
.rpa-official-signatures{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;align-items:start;margin-top:40px;page-break-inside:avoid}
.rpa-official-signer{text-align:center;font-size:9px;min-width:0}
.rpa-official-sign-line{border-top:1px solid #000;height:0;margin-bottom:5px}
.rpa-official-signer strong{display:block;overflow-wrap:anywhere;font-size:9px}
.rpa-official-detail-table th:nth-child(4){min-width:28%}
.rpa-official-travel{max-width:760px;margin:0 auto;font-family:Arial,sans-serif}
.rpa-travel-logo{font-size:36px;font-style:italic;letter-spacing:5px;font-weight:900;line-height:1;text-align:center}
.rpa-travel-title{font-size:18px;max-width:max-content;border:2px solid #555;border-radius:20px;margin:4px auto 16px;padding:2px 13px;text-align:center}
.rpa-travel-heading{display:flex;justify-content:space-between;font-size:12px;margin-bottom:10px}
.rpa-travel-person{font-size:12px;margin:10px 0 16px;line-height:1.7}
.rpa-travel-table{font-size:8px;table-layout:fixed}.rpa-travel-table th,.rpa-travel-table td{font-size:8px;padding:3px}
/* Column widths are provided by the table colgroup to avoid squeezing long labels. */
.rpa-travel-table td[contenteditable]{min-height:14px;cursor:text}
.rpa-travel-table input{font-size:8px;border:none;outline:none;text-align:right;width:100%;min-width:0;color:#111;background:transparent}
.rpa-travel-table .rpa-travel-cost th{text-align:left;font-weight:400}
.rpa-travel-table .rpa-travel-final th{text-align:left}
.rpa-travel-signatures{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;font-size:8px;text-align:center;margin-top:34px}
.rpa-travel-signatures b{font-size:8px;font-weight:500;display:block}
.rpa-travel-note{font-size:9px;margin-top:13px}
@media print {
  .rpa-official-controls{display:none!important}
  .rpa-official-pack,.rpa-official-travel{max-width:none!important;width:100%!important;margin:0!important}
  .rpa-official-sheet{padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;break-inside:auto!important}
  .rpa-official-top,.rpa-official-detail{page:rpa-official-portrait;break-after:page!important;page-break-after:always!important}
  @page rpa-official-portrait{size:A4 portrait;margin:11mm 11mm 13mm}
  /* Every department, including General Body Fabrication, prints on A4 PORTRAIT. */
  .rpa-official-pack .rpa-official-sheet{page:rpa-official-portrait!important}
  .rpa-official-sheet:last-child{break-after:auto!important;page-break-after:auto!important}
  .rpa-official-header{font-size:11px!important;break-after:avoid!important}
  .rpa-official-company{font-size:15px!important}
  .rpa-official-header h2{font-size:12px!important;margin:9px 0 5px!important}
  .rpa-official-payee{font-size:11px!important;margin:7px 0!important}
  .rpa-official-meta{font-size:9px!important;margin:8px 0!important}
  .rpa-official-caption{font-size:8px!important}
  .rpa-official-table{font-size:9px!important;width:100%!important;table-layout:auto!important;min-width:0!important;border-collapse:collapse!important}
  .rpa-official-table th,.rpa-official-table td{border:1px solid #000!important;padding:4px 4px!important;font-size:9px!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:break-word!important;background:white!important}
  .rpa-official-table .rpa-num{white-space:nowrap!important}
  .rpa-official-table tr{break-inside:avoid!important}
  .rpa-official-table thead{display:table-header-group!important}
  .rpa-official-words{font-size:9px!important;margin-top:7px!important;break-inside:avoid!important}
  .rpa-official-signatures{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8mm!important;margin-top:19mm!important;break-inside:avoid!important}
  .rpa-official-signer{font-size:8px!important}.rpa-official-signer strong{font-size:8px!important}
  .rpa-official-travel{page:rpa-official-portrait;break-after:auto!important}
  .rpa-travel-table{font-size:7px!important;table-layout:fixed!important}
  .rpa-travel-table th,.rpa-travel-table td{font-size:7px!important;padding:2px!important;overflow-wrap:normal!important}
  .rpa-travel-table input{font-size:7px!important;border:none!important;min-width:0!important;width:100%!important;white-space:nowrap!important}
  .rpa-travel-table tr{break-inside:avoid!important}
  .rpa-travel-signatures{display:grid!important;margin-top:13mm!important;break-inside:avoid!important}
  .rpa-travel-logo{font-size:28px!important}.rpa-travel-title{font-size:14px!important}
  .rpa-travel-person{font-size:10px!important;margin:7px 0!important}.rpa-travel-heading{font-size:10px!important}
}

/* v1.3.23: all official bills exactly follow the user-supplied photo header,
   with bank cheque issue name, RM/YYYY/Serial and date duration. */
.rpa-official-issue-control{background:#f5f7f9;border:1px solid #c5cdd3;padding:12px;border-radius:8px;display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:0 0 16px}
.rpa-official-issue-control label{display:flex;flex-direction:column;gap:3px;font-size:12px;font-weight:600}
.rpa-official-issue-control input,.rpa-official-issue-control select{min-width:170px;max-width:230px;padding:7px;border:1px solid #a7acb2;border-radius:4px}
.rpa-official-issue-control small{font-size:11px;flex-basis:100%;color:#556}
.rpa-official-issued-status{display:flex;flex-direction:column;gap:2px;align-self:center}
.rpa-official-header{border-top:2px solid #222;padding-top:9px}
.rpa-official-site{font-weight:650;margin-top:1px}
.rpa-official-address{font-size:10px;margin-top:0}
.rpa-official-caption{margin-top:7px!important;border:1px solid #aaa;border-radius:18px;padding:3px 13px!important;letter-spacing:.6px;font-size:9px;font-weight:700}
.rpa-official-header h2{text-align:left!important;text-decoration:none!important;border-bottom:0;margin:11px 0 7px!important;font-size:16px!important;font-weight:800}
.rpa-official-header h2::after{content:"";display:block;width:38px;border-top:2px solid #111;margin-top:7px}
.rpa-official-payee{text-align:center!important;font-weight:800!important;font-size:14px!important;margin:6px 0 10px!important}
.rpa-official-meta{display:grid!important;grid-template-columns:1.2fr 1.35fr 1.15fr;gap:8px;margin:7px 0 11px!important}
.rpa-official-meta span{display:flex;align-items:center;gap:6px;min-height:26px;padding:2px 8px;border:1px solid #d7d7d7;border-radius:5px;font-size:10px}
.rpa-official-billing{overflow-wrap:anywhere}
.rpa-official-empty-meta{min-height:26px}
@media print{
 .rpa-official-issue-control{display:none!important}
 .rpa-official-header{padding-top:7px!important}
 .rpa-official-site{font-size:10px!important}
 .rpa-official-address{font-size:9px!important}
 .rpa-official-header h2{font-size:13px!important;margin:10px 0 5px!important}
 .rpa-official-payee{font-size:11px!important;margin:6px 0 9px!important}
 .rpa-official-meta{display:grid!important;grid-template-columns:1.2fr 1.35fr 1.15fr;gap:7px!important;margin:7px 0 12px!important}
 .rpa-official-meta span{min-height:22px;font-size:9px!important;border:1px solid #bbb!important;border-radius:4px!important}
}

/* v1.3.27: portrait-only official Bill Print Pack + print button.
 * Keep other non-bill operational reports (wide attendance matrices, etc.) unchanged. */
@media screen{
  .rpa-official-pack{max-width:210mm!important}
  .rpa-official-pack .rpa-official-sheet{
    box-sizing:border-box!important;
    width:210mm!important;
    max-width:100%!important;
    min-height:297mm;
    padding:15mm 13mm!important;
  }
  .rpa-official-print-action{white-space:normal;max-width:100%;cursor:pointer}
}
@media print{
  @page rpa-official-portrait{size:A4 portrait;margin:10mm 9mm 11mm}
  .rpa-official-pack,.rpa-official-travel{width:100%!important;max-width:none!important}
  .rpa-official-pack .rpa-official-sheet,
  .rpa-official-pack.rpa-official-body-pack .rpa-official-sheet,
  .rpa-official-travel{
      page:rpa-official-portrait!important;
      width:100%!important;max-width:100%!important;
      min-height:0!important;box-sizing:border-box!important;
      margin:0!important;padding:0!important;
      overflow:visible!important;
  }
  .rpa-official-top,.rpa-official-detail{break-after:page!important;page-break-after:always!important}
  .rpa-official-pack .rpa-official-sheet:last-child{break-after:auto!important;page-break-after:auto!important}
  .rpa-official-detail-table{width:100%!important;table-layout:fixed!important}
  .rpa-official-detail-table th,.rpa-official-detail-table td{
      font-size:7.7px!important;padding:3px 2.5px!important;
      overflow-wrap:anywhere!important;word-break:normal!important;
  }
  .rpa-official-detail-table .rpa-num{white-space:nowrap!important}
  .rpa-official-header{break-inside:avoid!important;page-break-inside:avoid!important}
  .rpa-official-table thead{display:table-header-group!important}
  .rpa-official-table tr{break-inside:avoid!important;page-break-inside:avoid!important}
  .rpa-official-signatures{break-inside:avoid!important;page-break-inside:avoid!important}
  .rpa-dept-report-layout{page:rpa-official-portrait!important}
  .rpa-dept-report-layout .rpa-table{table-layout:auto!important;width:100%!important}
  .rpa-dept-report-layout .rpa-table th,.rpa-dept-report-layout .rpa-table td{font-size:7.5px!important;padding:3px 2px!important;overflow-wrap:anywhere!important}
}


/* v1.3.28 - uniform, legible official-bill type and compact numeric columns.
   Use the same system-ui/Segoe UI stack as the Runner software; no embedded fonts.
   Portrait-only document widths; particulars take the reclaimed column space.
   Scoped to bill print pack to avoid changing scanner/accounting/meal screens. */
.rpa-official-pack,.rpa-official-travel{
  font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;
  font-kerning:normal;
}
.rpa-official-pack .rpa-official-table{font-family:inherit!important;font-size:12px;}
.rpa-official-pack .rpa-official-detail-table{table-layout:fixed!important;width:100%!important;}
.rpa-official-pack .rpa-official-detail-table th,
.rpa-official-pack .rpa-official-detail-table td{
  padding:4px 3px;font-size:12px;line-height:1.3;
  overflow-wrap:break-word;word-break:normal;
}
.rpa-official-pack .rpa-official-detail-table thead th:nth-child(2),
.rpa-official-pack .rpa-official-detail-table tbody td:nth-child(2){white-space:nowrap;}
.rpa-official-pack .rpa-official-detail-table .rpa-num{white-space:nowrap;}
@media print {
  /* All issued bill sheets remain A4 portrait. */
  .rpa-official-pack .rpa-official-sheet,
  .rpa-official-travel {page:rpa-official-portrait!important;}
  .rpa-official-pack .rpa-official-company{font-size:16px!important;}
  .rpa-official-pack .rpa-official-site{font-size:11px!important;}
  .rpa-official-pack .rpa-official-address{font-size:10px!important;}
  .rpa-official-pack .rpa-official-caption{font-size:9px!important;}
  .rpa-official-pack .rpa-official-header h2{font-size:14px!important;line-height:1.3!important;}
  .rpa-official-pack .rpa-official-payee{font-size:12px!important;line-height:1.3!important;}
  .rpa-official-pack .rpa-official-meta span{font-size:10px!important;}
  .rpa-official-pack .rpa-official-table th,
  .rpa-official-pack .rpa-official-table td{
      font-size:10px!important;line-height:1.3!important;padding:4px 3px!important;
  }
  .rpa-official-pack .rpa-official-detail-table{table-layout:fixed!important;width:100%!important;}
  .rpa-official-pack .rpa-official-detail-table th,
  .rpa-official-pack .rpa-official-detail-table td{
      font-size:8.7px!important;line-height:1.35!important;
      padding:3px 2.5px!important;overflow-wrap:break-word!important;word-break:normal!important;
  }
  .rpa-official-pack .rpa-official-detail-table thead th:nth-child(2),
  .rpa-official-pack .rpa-official-detail-table tbody td:nth-child(2),
  .rpa-official-pack .rpa-official-detail-table .rpa-num {white-space:nowrap!important;}
  .rpa-official-pack .rpa-official-words{font-size:10px!important;}
  .rpa-official-pack .rpa-official-signer,
  .rpa-official-pack .rpa-official-signer strong{font-size:9px!important;}
  .rpa-official-travel .rpa-travel-table th,
  .rpa-official-travel .rpa-travel-table td{font-size:8px!important;}
  .rpa-official-travel .rpa-travel-table input{font-size:8px!important;}
  .rpa-official-travel .rpa-travel-note{font-size:10px!important;}
}

/* v1.3.30 – Reference-corrected Head Office Meal Company Bill (portrait)
   and person-wise company payment details (landscape). Summary Top Sheet untouched. */
.rpa-meal-claim-pack,.rpa-company-person-pack{font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif;color:#111;}
.rpa-meal-claim-dates{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:11px 0 13px;font-size:12px;}
.rpa-meal-claim-dates>span{border:1px solid #d1d1d1;border-radius:5px;padding:7px 10px;}
.rpa-meal-claim-dates>span:last-child{text-align:right;}
.rpa-meal-claim-table th,.rpa-meal-claim-table td{font-size:12px;padding:6px 8px;}
.rpa-meal-claim-words{border:1px solid #aaa;border-left:3px solid #111;padding:8px 10px;}
.rpa-meal-claim-sheet .rpa-official-signatures{margin-top:38px;}
.rpa-company-person-pack{max-width:297mm;margin:0 auto;}
.rpa-company-person-sheet{background:#fff;border:1px solid #ddd;box-shadow:0 2px 9px #ddd;margin:0 0 16px;padding:12mm 12mm;}
.rpa-company-person-context{display:flex;justify-content:space-between;margin:7px 0;font-size:10px;}
.rpa-company-person-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:10px;}
.rpa-company-person-table th,.rpa-company-person-table td{border:1px solid #222;padding:5px 4px;text-align:left;vertical-align:top;overflow-wrap:break-word;line-height:1.25;}
.rpa-company-person-table th{text-align:center;font-weight:800;}
.rpa-company-person-table .center{text-align:center;white-space:nowrap;}
.rpa-company-person-table .money{text-align:right;white-space:nowrap;}
.rpa-company-person-total th{border-top:2px solid #111;font-weight:800;}
.rpa-company-person-words{margin:9px 0 0;font-size:11px;}
.rpa-company-person-sheet .rpa-official-signatures{margin-top:20px;}
@media print{
  @page rpa-company-person-landscape{size:A4 landscape;margin:8mm 9mm 9mm}
  .rpa-meal-claim-pack .rpa-meal-claim-sheet{page:rpa-official-portrait!important;break-after:auto!important;page-break-after:auto!important;}
  .rpa-meal-claim-dates{font-size:10px!important;gap:8px!important;margin:8px 0 11px!important;}
  .rpa-meal-claim-dates>span{border:1px solid #777!important;padding:5px 6px!important;}
  .rpa-meal-claim-pack .rpa-meal-claim-table th,
  .rpa-meal-claim-pack .rpa-meal-claim-table td{font-size:10px!important;padding:6px 6px!important;}
  .rpa-meal-claim-pack .rpa-meal-claim-words{font-size:10px!important;padding:7px 8px!important;border:1px solid #111!important;border-left:2px solid #111!important;}
  .rpa-meal-claim-sheet .rpa-official-signatures{margin-top:23mm!important;}
  .rpa-company-person-pack{width:100%!important;max-width:100%!important;}
  .rpa-company-person-pack .rpa-company-person-sheet{
    page:rpa-company-person-landscape!important;box-sizing:border-box!important;
    width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;
    border:0!important;box-shadow:none!important;break-after:page!important;page-break-after:always!important;
    break-inside:auto!important;
  }
  .rpa-company-person-pack .rpa-company-person-sheet:last-child{break-after:auto!important;page-break-after:auto!important;}
  .rpa-company-person-pack .rpa-official-header{padding-top:3px!important;}
  .rpa-company-person-pack .rpa-official-company{font-size:16px!important;}
  .rpa-company-person-pack .rpa-official-site{font-size:10px!important;}
  .rpa-company-person-pack .rpa-official-address{font-size:9px!important;}
  .rpa-company-person-pack .rpa-official-caption{font-size:8px!important;padding:2px 11px!important;margin:4px!important;}
  .rpa-company-person-pack .rpa-official-header h2{font-size:13px!important;margin:5px 0!important;}
  .rpa-company-person-pack .rpa-official-payee{font-size:10px!important;margin:4px 0!important;}
  .rpa-company-person-pack .rpa-official-meta{margin:5px 0!important;gap:6px!important;}
  .rpa-company-person-pack .rpa-official-meta span{font-size:8px!important;min-height:19px!important;padding:2px 5px!important;}
  .rpa-company-person-pack .rpa-meal-claim-dates{margin:5px 0!important;font-size:8px!important;}
  .rpa-company-person-pack .rpa-meal-claim-dates>span{padding:3px 5px!important;}
  .rpa-company-person-context{font-size:9px!important;margin:5px 0!important;}
  .rpa-company-person-table{font-size:8.1px!important;table-layout:fixed!important;width:100%!important;}
  .rpa-company-person-table th,.rpa-company-person-table td{font-size:8.1px!important;line-height:1.2!important;padding:3px 3px!important;overflow-wrap:break-word!important;border:1px solid #111!important;}
  .rpa-company-person-table tr{break-inside:avoid!important;page-break-inside:avoid!important;}
  .rpa-company-person-table thead{display:table-header-group!important;}
  .rpa-company-person-words{font-size:9px!important;margin-top:6px!important;}
  .rpa-company-person-pack .rpa-official-signatures{margin-top:13mm!important;gap:8mm!important;min-height:0!important;break-inside:avoid!important;}
  .rpa-company-person-pack .rpa-official-signer strong{font-size:8px!important;}
}

/* Keep the two date boxes compact; avoid nested-looking grid borders in PDF engines. */
.rpa-meal-claim-dates{display:flex;align-items:stretch;}
.rpa-meal-claim-dates>span{flex:1 1 0;display:block;box-sizing:border-box;min-width:0;}

/* v1.3.31 — all company-funded meal groups, student-free category totals */
.rpa-company-claim-note{font-size:9px;margin-top:8px;color:#333;}
.rpa-company-person-subtotal th{font-weight:700;background:#f3f3f3;}
.rpa-company-claim-total th{font-weight:800;border-top:2px solid #111;}
@media print{
  .rpa-company-claim-note{font-size:8px!important;margin-top:6px!important;}
  .rpa-meal-claim-table th,.rpa-meal-claim-table td{overflow-wrap:break-word;}
  .rpa-company-person-subtotal th{font-size:8.1px!important;background:transparent!important;border-top:1.5px solid #111!important;}
}

/* v1.3.32 — Company Meal Total Top Sheet + Department Summary + Employee Details.
   Scoped to company meal claim pack; original accounting/attendance styles unchanged. */
@media screen{
  .rpa-company-meal-all-pack{max-width:210mm!important;margin:0 auto!important;}
  .rpa-company-meal-all-pack>.rpa-company-person-sheet{max-width:210mm!important;width:100%!important;box-sizing:border-box!important;padding:11mm!important;}
}
@media print{
  @page rpa-company-meal-a4{size:A4 portrait;margin:9mm 9mm 10mm}
  .rpa-company-meal-all-pack,.rpa-company-person-pack.rpa-company-meal-all-pack{width:100%!important;max-width:none!important;margin:0!important;}
  .rpa-company-meal-all-pack>.rpa-company-meal-sheet,
  .rpa-company-meal-all-pack>.rpa-company-person-sheet{
    page:rpa-company-meal-a4!important;max-width:100%!important;width:100%!important;
    box-sizing:border-box!important;margin:0!important;padding:0!important;
    border:0!important;box-shadow:none!important;break-inside:auto!important;
    break-after:page!important;page-break-after:always!important;
  }
  .rpa-company-meal-all-pack>.rpa-company-meal-sheet:last-child,
  .rpa-company-meal-all-pack>.rpa-company-person-sheet:last-child{break-after:auto!important;page-break-after:auto!important;}
  .rpa-company-meal-all-pack .rpa-official-header{padding-top:4px!important;}
  .rpa-company-meal-all-pack .rpa-official-company{font-size:16px!important;}
  .rpa-company-meal-all-pack .rpa-official-header h2{font-size:13px!important;}
  .rpa-company-dept-summary th,.rpa-company-dept-summary td{font-size:10px!important;padding:5px 4px!important;}
  .rpa-company-meal-all-pack .rpa-meal-claim-dates{font-size:9px!important;margin:6px 0 10px!important;}
  .rpa-company-meal-all-pack .rpa-company-person-context{font-size:9px!important;margin:6px 0!important;}
  .rpa-company-meal-all-pack .rpa-company-person-table{width:100%!important;table-layout:fixed!important;}
  .rpa-company-meal-all-pack .rpa-company-person-table th,
  .rpa-company-meal-all-pack .rpa-company-person-table td{
    font-size:8.3px!important;padding:4px 3px!important;line-height:1.25!important;
    overflow-wrap:break-word!important;white-space:normal!important;border:1px solid #000!important;
  }
  .rpa-company-meal-all-pack .rpa-company-person-table .center,
  .rpa-company-meal-all-pack .rpa-company-person-table .money{white-space:nowrap!important;}
  .rpa-company-meal-all-pack .rpa-company-person-table tr{break-inside:avoid!important;page-break-inside:avoid!important;}
  .rpa-company-meal-all-pack .rpa-official-signatures{margin-top:14mm!important;break-inside:avoid!important;}
  .rpa-company-meal-all-pack .rpa-company-person-sheet .rpa-official-signatures{margin-top:10mm!important;}
}
/* v1.3.32 QA: keep four blank signature lines within printable A4 width. */
@media print{
  .rpa-company-meal-all-pack .rpa-official-signatures{
    display:flex!important;flex-direction:row!important;justify-content:space-between!important;
    width:100%!important;box-sizing:border-box!important;gap:4mm!important;
  }
  .rpa-company-meal-all-pack .rpa-official-signer{
    flex:0 1 22%!important;width:22%!important;max-width:22%!important;
    min-width:0!important;box-sizing:border-box!important;
  }
  .rpa-company-meal-all-pack .rpa-official-signer strong{
    display:block!important;font-size:8px!important;white-space:nowrap!important;
    overflow-wrap:normal!important;word-break:normal!important;
  }
}

/* v1.3.33 - Reference PDF (Admin 11.10.26.pdf pages 2-7):
   two top sheets + one continuous person-wise statement, exclusively A4 Portrait.
   Applies ONLY to Company Meal print pack. No accounting / attendance restyling. */
.rpa-company-dept-kicker{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:8px 0;font-size:10px;color:#333}
.rpa-company-dept-kicker b{border:1px solid #bbb;border-radius:12px;padding:3px 9px;letter-spacing:.3px;font-size:8px}
.rpa-company-dept-bottom{display:grid;grid-template-columns:2.3fr 1fr;gap:9px;margin-top:10px}
.rpa-company-dept-bottom>.rpa-official-words{border:1px solid #bbb;border-left:2px solid #222;padding:7px;margin:0}
.rpa-company-dept-bottom>.rpa-official-words b{font-size:8px;display:block;letter-spacing:.4px}
.rpa-company-dept-bottom>.rpa-official-words div{margin-top:4px;font-size:10px}
.rpa-company-total-payable{border:1px solid #bbb;padding:7px;text-align:right}
.rpa-company-total-payable b{display:block;letter-spacing:.4px;font-size:8px}
.rpa-company-total-payable strong{font-size:17px;display:block;margin-top:4px}
@media print{
  @page rpa-company-meal-a4{size:A4 portrait;margin:9mm 9mm 10mm}
  .rpa-company-meal-all-pack>.rpa-company-person-sheet{page:rpa-company-meal-a4!important;}
  .rpa-company-meal-all-pack .rpa-company-person-table th,
  .rpa-company-meal-all-pack .rpa-company-person-table td{
     font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif!important;
     font-size:8.25px!important;line-height:1.2!important;padding:3.5px 2px!important;
     background:#fff!important;color:#111!important;
     vertical-align:middle!important;
     overflow-wrap:break-word!important;
  }
  .rpa-company-meal-all-pack .rpa-company-person-table th{font-weight:700!important;}
  .rpa-company-meal-all-pack .rpa-company-person-table .money,
  .rpa-company-meal-all-pack .rpa-company-person-table .center{white-space:nowrap!important;}
  .rpa-company-meal-all-pack .rpa-company-person-context{margin:7px 0 9px!important;font-size:10px!important}
  .rpa-company-meal-all-pack .rpa-company-person-sheet .rpa-official-signatures{margin-top:15mm!important}
  .rpa-company-meal-all-pack .rpa-official-signer strong{font-size:8.6px!important;letter-spacing:-.2px!important;}
  .rpa-company-meal-all-pack .rpa-official-signer{width:23%!important;flex:0 1 23%!important;max-width:23%!important;}
  .rpa-company-meal-all-pack .rpa-company-dept-summary th,
  .rpa-company-meal-all-pack .rpa-company-dept-summary td{font-size:10px!important;padding:7px 5px!important;}
  .rpa-company-dept-bottom>.rpa-official-words,.rpa-company-total-payable{break-inside:avoid!important;}
}

/* v1.3.34 — Employee Provided is its own print register; company-only sheets
   retain their existing styling. Keep long employee lists printable on A4. */
@media print {
 .rpa-employee-only-kpis{display:none!important}
 .rpa-employee-only-report .rpa-table th,
 .rpa-employee-only-report .rpa-table td{
   font-size:7.5px!important;line-height:1.14!important;padding:2px 3px!important;
 }
 .rpa-employee-only-report .rpa-print-signatures{
   margin-top:7mm!important;padding-top:5mm!important;
 }
}

/* v1.3.35 — Company person-wise A4 portrait: use more of each sheet.
   Applies only to Company Portion person-wise pages, not Top Sheets or Employee Provided. */
@media print {
  .rpa-company-meal-all-pack .rpa-company-person-sheet .rpa-company-person-table tbody tr:not(.rpa-company-person-total) {
    height:5.55mm!important;
  }
}


/* v1.3.45 — Employee Contribution PRINT ONLY.
   Wider readable type on A4 landscape, compact count/ID columns,
   more room for employee particulars; all screen and other print views unchanged. */
@media print {
  .rpa-grid.three.rpa-employee-only-kpis {display:none!important;}
  .rpa-employee-only-report .rpa-employee-only-table {
    width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
  }
  .rpa-employee-only-report .rpa-employee-only-table th,
  .rpa-employee-only-report .rpa-employee-only-table td {
    font-size:10.5px!important;
    line-height:1.22!important;
    padding:3px 3px!important;
    vertical-align:middle!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
  }
  /* Header widths control all nine columns in the fixed-layout table. */
  .rpa-employee-only-table thead th:nth-child(1) {width:4%!important;}  /* SL */
  .rpa-employee-only-table thead th:nth-child(2) {width:7%!important;}  /* ID */
  .rpa-employee-only-table thead th:nth-child(3) {width:20%!important;} /* Name */
  .rpa-employee-only-table thead th:nth-child(4) {width:18%!important;} /* Designation */
  .rpa-employee-only-table thead th:nth-child(5) {width:16%!important;} /* Department */
  .rpa-employee-only-table thead th:nth-child(6) {width:7%!important;}  /* Regular */
  .rpa-employee-only-table thead th:nth-child(7) {width:8%!important;}  /* Saturday */
  .rpa-employee-only-table thead th:nth-child(8) {width:7%!important;}  /* Meal Qty */
  .rpa-employee-only-table thead th:nth-child(9) {width:13%!important;} /* Amount */
  .rpa-employee-only-report .rpa-employee-only-table td.num,
  .rpa-employee-only-report .rpa-employee-only-table th.num {
    white-space:nowrap!important;
    overflow-wrap:normal!important;
    text-align:right!important;
  }
  .rpa-employee-only-report h3 {font-size:12.5px!important;}
  .rpa-employee-only-report > p {font-size:11px!important;line-height:1.35!important;}
  body:has(.rpa-employee-only-report) .rpa-print-brand {font-size:12px!important;}
  body:has(.rpa-employee-only-report) .rpa-print-brand strong {font-size:13px!important;}
  body:has(.rpa-employee-only-report) .rpa-report-period {font-size:11px!important;}
  .rpa-employee-only-report .rpa-print-signatures {font-size:10px!important;}
}


/* v1.3.46 — Restore the full Runner employee print letterhead on EVERY A4 page.
   The v1.3.45 10.5px font size and compact numeric column widths remain unchanged.
   No other module or browser-screen layout is affected. */
.rpa-employee-repeat-brand,
.rpa-employee-repeat-period {display:none;}
@media print {
  /* An external page header does not automatically repeat after page one.
     Move that same information into the table header without duplicating it. */
  body:has(.rpa-employee-only-report) .rpa-print-brand,
  body:has(.rpa-employee-only-report) .rpa-report-period,
  body:has(.rpa-employee-only-report) .rpa-employee-only-report > h3 {
    display:none!important;
  }
  .rpa-employee-only-report .rpa-employee-repeat-brand,
  .rpa-employee-only-report .rpa-employee-repeat-period {
    display:table-row!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }
  .rpa-employee-only-report .rpa-employee-only-table thead {
    display:table-header-group!important;
  }
  .rpa-employee-only-report .rpa-employee-only-table col:nth-child(1) {width:4%!important;}
  .rpa-employee-only-report .rpa-employee-only-table col:nth-child(2) {width:7%!important;}
  .rpa-employee-only-report .rpa-employee-only-table col:nth-child(3) {width:20%!important;}
  .rpa-employee-only-report .rpa-employee-only-table col:nth-child(4) {width:18%!important;}
  .rpa-employee-only-report .rpa-employee-only-table col:nth-child(5) {width:16%!important;}
  .rpa-employee-only-report .rpa-employee-only-table col:nth-child(6) {width:7%!important;}
  .rpa-employee-only-report .rpa-employee-only-table col:nth-child(7) {width:8%!important;}
  .rpa-employee-only-report .rpa-employee-only-table col:nth-child(8) {width:7%!important;}
  .rpa-employee-only-report .rpa-employee-only-table col:nth-child(9) {width:13%!important;}
  .rpa-employee-only-report .rpa-employee-only-table .rpa-employee-repeat-brand th,
  .rpa-employee-only-report .rpa-employee-only-table .rpa-employee-repeat-period th {
    width:auto!important;
    text-align:left!important;
    border-left:0!important;
    border-right:0!important;
    background:#fff!important;
    padding:4px 0!important;
  }
  .rpa-employee-only-report .rpa-employee-repeat-brand th {border-top:0!important;border-bottom:2px solid #000!important;}
  .rpa-employee-only-report .rpa-employee-repeat-period th {border-top:0!important;border-bottom:1px solid #000!important;}
  .rpa-employee-repeat-brand-inner {
    display:flex!important;
    justify-content:space-between!important;
    align-items:center!important;
    min-height:15mm!important;
  }
  .rpa-employee-repeat-brand-inner img {
    display:block!important;
    max-height:13mm!important;
    max-width:40mm!important;
    object-fit:contain!important;
  }
  .rpa-employee-repeat-brand-inner > div {
    text-align:right!important;
    display:flex!important;
    flex-direction:column!important;
    gap:2px!important;
    font-size:11px!important;
    line-height:1.2!important;
  }
  .rpa-employee-repeat-brand-inner strong {font-size:13px!important;}
  .rpa-employee-repeat-period-inner {
    display:flex!important;
    justify-content:space-between!important;
    gap:10px!important;
    font-size:10.5px!important;
  }
}
