:root{--pc27-blue:#0878bd;--pc27-dark:#063c70;--pc27-red:#ed1c24;--pc27-pale:#fbfce8;--pc27-gray:#e8e8e2;--pc27-line:#777;--pc27-black:#111}*{box-sizing:border-box}.petty-sheet-wrap-v27{overflow-x:auto;padding:.4rem;background:#f2f4f6;border-radius:.45rem}.petty-sheet-v27{width:297mm;min-width:297mm;height:230mm;position:relative;overflow:hidden;margin:0 auto;background:#fff;color:var(--pc27-black);font-family:Arial,Helvetica,sans-serif;font-size:8.2pt;line-height:1.08;border:1px solid #aaa}.petty-sheet-v27 *{box-sizing:border-box}.petty-sheet-v27 input,.petty-sheet-v27 select,.petty-sheet-v27 textarea{font:inherit;color:inherit;outline:0;border-radius:0;margin:0;min-width:0;line-height:1.08}.petty-sheet-v27 input,.petty-sheet-v27 textarea{border:0;background:transparent;padding:.45mm .8mm;width:100%;height:100%}.pc27-value{width:100%;height:100%;padding:.45mm .8mm;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.pc27-center{text-align:center}.pc27-bold{font-weight:700}.pc27-money{text-align:right!important;padding-right:1mm!important;font-variant-numeric:tabular-nums;white-space:nowrap!important}.pc27-box{position:absolute;background:var(--pc27-pale);border:.22mm solid var(--pc27-line);overflow:hidden}.pc27-label-cell{position:absolute;display:flex;align-items:center;padding-left:.8mm;font-weight:700;background:#fafaf7;border:.22mm solid #aaa}.pc27-table-head{position:absolute;background:#efefeb;border:.22mm solid #888;text-align:center;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:8.5pt}.pc27-column-body{position:absolute;display:grid;grid-template-rows:repeat(10,6.1mm) 6.3mm}.pc27-cell{border:.22mm solid var(--pc27-line);border-bottom:0;background:var(--pc27-pale);overflow:hidden;min-width:0;display:flex;align-items:center}.pc27-column-body>.pc27-cell:nth-child(10),.pc27-column-body>.pc27-cell:last-child{border-bottom:.22mm solid var(--pc27-line)}.pc27-total-cell{background:#eee!important}.pc27-account-cell{background:var(--pc27-pale)}.pc27-account-name{font-size:7.6pt!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis;padding-left:.8mm!important}.petty-sheet-v27.editable .pc27-box:focus-within,.petty-sheet-v27.editable .pc27-cell:focus-within,.petty-sheet-v27.editable .pc27-details-box:focus-within{box-shadow:inset 0 0 0 .35mm rgba(0,111,186,.55)}
.pc27-header-top{position:absolute;left:46mm;top:8mm;width:240mm;border-top:.65mm solid var(--pc27-blue)}.pc27-header-vertical{position:absolute;left:46mm;top:8mm;height:18mm;border-left:.65mm solid var(--pc27-blue)}.pc27-header-left{position:absolute;left:14mm;top:25.7mm;width:32mm;border-top:.65mm solid var(--pc27-blue)}.pc27-logo{position:absolute;left:18mm;top:6.8mm;width:23mm;height:23mm;object-fit:contain}.pc27-title{position:absolute;left:57mm;top:8.8mm;color:var(--pc27-dark);font-size:18.2pt;font-weight:800;line-height:.95}.pc27-subtitle{position:absolute;left:57mm;top:18.2mm;color:var(--pc27-dark);font-size:13.5pt;font-weight:800}
.pc27-date-label{position:absolute;left:166mm;top:11.8mm;width:42mm;text-align:right;font-weight:700}.pc27-date{left:211mm;top:10.5mm;width:38mm;height:6.5mm}.pc27-internal-label{position:absolute;left:145mm;top:20.1mm;width:63mm;text-align:right;font-weight:700}.pc27-internal{left:211mm;top:18.8mm;width:38mm;height:6.5mm}
.pc27-payto-bar{position:absolute;left:15mm;top:37mm;width:270mm;height:5mm;background:#e8e8e4;font-weight:700;display:flex;align-items:center;padding-left:1mm}.pc27-name-label{left:15mm;top:43.3mm;width:18mm;height:6mm}.pc27-name{left:35mm;top:43.3mm;width:164mm;height:6mm}.pc27-id-label{position:absolute;left:201mm;top:45mm;font-weight:700}.pc27-id{left:208mm;top:43.3mm;width:42mm;height:6mm}.pc27-dept-label{left:15mm;top:50.3mm;width:18mm;height:6mm}.pc27-dept{left:35mm;top:50.3mm;width:95mm;height:6mm}
.pc27-doc-head{left:15mm;top:60mm;width:16mm;height:6mm}.pc27-account-head{left:35mm;top:60mm;width:68mm;height:6mm}.pc27-description-head{left:107mm;top:60mm;width:137mm;height:6mm}.pc27-amount-head{left:248mm;top:60mm;width:37mm;height:6mm;color:var(--pc27-red)}.pc27-doc-body{left:15mm;top:67mm;width:16mm}.pc27-account-body{left:35mm;top:67mm;width:68mm}.pc27-description-body{left:107mm;top:67mm;width:137mm}.pc27-amount-body{left:248mm;top:67mm;width:37mm}.pc27-total-label{position:absolute;left:207mm;top:128.8mm;width:37mm;text-align:right;font-weight:700;font-size:9pt}
.pc27-meta-label{position:absolute;font-weight:700;font-size:7.8pt}.pc27-meta-box{position:absolute;border:.22mm solid #555;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}.pc27-meta-label-invoice{left:209mm;top:139.3mm;width:38mm;text-align:left}.pc27-meta-label-payment{left:209mm;top:146.0mm;width:38mm;text-align:left}.pc27-meta-label-amount{left:209mm;top:152.7mm;width:38mm;text-align:left}.pc27-meta-box-invoice,.pc27-meta-box-payment,.pc27-meta-box-amount{left:249mm;width:32mm;height:5.8mm;background:#fff}.pc27-meta-box-invoice{top:138.2mm}.pc27-meta-box-payment{top:144.9mm}.pc27-meta-box-amount{top:151.6mm}.pc27-meta-static{width:100%;padding:0 1mm;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.pc27-requested-title,.pc27-endorsed-title,.pc27-received-title,.pc27-paid-title,.pc27-approval-title{position:absolute;color:#001eff;font-weight:800;font-style:italic;font-size:9.2pt}.pc27-requested-title{left:16mm;top:162mm}.pc27-endorsed-title{left:16mm;top:174mm}.pc27-received-title{left:139mm;top:162mm}.pc27-paid-title{left:139mm;top:174mm}.pc27-approval-title{left:139mm;top:184.5mm;width:44mm;line-height:1.05}.pc27-requested-line,.pc27-endorsed-line,.pc27-received-line,.pc27-paid-line,.pc27-finance-line,.pc27-director-line{position:absolute;border-bottom:.35mm solid #555;height:6mm;text-align:center;font-weight:700;overflow:visible}.pc27-requested-line{left:48mm;top:160.8mm;width:65mm}.pc27-endorsed-line{left:48mm;top:172.8mm;width:65mm}.pc27-received-line{left:182mm;top:160.8mm;width:48mm}.pc27-paid-line{left:182mm;top:172.8mm;width:48mm}.pc27-finance-line{left:139mm;top:198mm;width:62mm}.pc27-director-line{left:208mm;top:198mm;width:45mm}.pc27-requested-line span,.pc27-endorsed-line span,.pc27-received-line span,.pc27-paid-line span,.pc27-finance-line span,.pc27-director-line span{position:absolute;left:50%;bottom:-.15mm;transform:translateX(-50%);background:#fff;padding:0 .8mm;line-height:1;max-width:96%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pc27-school{position:absolute;left:16mm;top:180mm}.pc27-finance-label{position:absolute;left:139mm;top:191.5mm;font-weight:700}.pc27-director-label{position:absolute;left:208mm;top:191.5mm;font-weight:700}
.pc27-note{position:absolute;left:16mm;top:184mm;font-weight:700}.pc27-budget-title{position:absolute;left:16mm;top:189mm;font-weight:800;font-size:8.5pt}.pc27-budget-options{position:absolute;left:16mm;top:194mm;display:flex;gap:8mm}.pc27-choice{display:inline-flex;align-items:center;gap:1.2mm}.pc27-check{width:4mm;height:4mm;border:.25mm solid #666;background:#fff;position:relative}.pc27-check.checked:after{content:'✓';position:absolute;left:.2mm;top:-1.2mm;font-size:5mm;font-weight:900;color:#00518a}.pc27-budget-by{position:absolute;left:16mm;top:200mm}.pc27-budget-by span{display:inline-block;width:38mm;border-bottom:.22mm solid #555;text-align:center;margin-left:3mm}.pc27-budget-date{position:absolute;left:76mm;top:200mm}.pc27-budget-date span{display:inline-block;width:24mm;border-bottom:.22mm solid #555;text-align:center;margin-left:3mm}
.pc27-details-box{position:absolute;left:15mm;top:207mm;width:270mm;height:18mm;border:.25mm solid #333;background:#fff;padding:1mm 1.2mm 1mm 1.2mm;overflow:hidden}.pc27-details-label{font-weight:700;margin-bottom:.8mm}.pc27-details-value{white-space:pre-wrap;overflow:hidden;line-height:1.18;height:13.5mm}.petty-sheet-v27 textarea[name="pc_details"]{width:100%;height:13.5mm;border:0;background:transparent;resize:none;padding:0;line-height:1.18;overflow:hidden}
.pc27-version{position:absolute;right:12mm;bottom:2mm;font-size:6pt;color:#777}
@page{size:297mm 230mm;margin:0}@media print{html,body{margin:0!important;padding:0!important;width:297mm;height:230mm;background:#fff!important}.petty-sheet-wrap-v27{padding:0!important;background:#fff!important;overflow:visible!important}.petty-sheet-v27{margin:0!important;border:0!important;width:297mm!important;min-width:297mm!important;height:230mm!important}}
/* editable sizing */
.pc27-account-cell select.pc27-control{appearance:auto;padding:.1mm .4mm;font-size:7pt;border:0;background:transparent;width:100%;height:100%}
.petty-sheet-v27 input.pc27-control{padding:.45mm .8mm}

.petty-sheet-v27 textarea[readonly]{background:transparent;cursor:default}

/* V92: Exchange Rate is visible/editable directly on the Petty Cash sheet. */
.pc27-meta-label-exchange{left:209mm;top:132.6mm;width:38mm;text-align:left}
.pc27-meta-box-exchange{left:249mm;top:131.5mm;width:32mm;height:5.8mm;background:var(--pc27-pale)}
.pc27-exchange-rate-input{text-align:center;font-weight:700;background:transparent!important}

/* V93: Petty Cash currency block order matches the official layout. */
.pc27-meta-label-invoice{top:132.6mm!important}
.pc27-meta-box-invoice{top:131.5mm!important}
.pc27-meta-label-payment{top:139.3mm!important}
.pc27-meta-box-payment{top:138.2mm!important}
.pc27-meta-label-exchange{top:146.0mm!important;color:var(--pc27-black)!important}
.pc27-meta-box-exchange{top:144.9mm!important;background:#fff!important}
.pc27-meta-label-amount{top:152.7mm!important}
.pc27-meta-box-amount{top:151.6mm!important}
.pc27-exchange-rate-input{color:var(--pc27-black)!important;font-weight:400!important;background:transparent!important}

/* V99: align the complete Petty Cash total/currency summary block. */
.pc27-total-label,
.pc27-meta-label-invoice,
.pc27-meta-label-payment,
.pc27-meta-label-exchange,
.pc27-meta-label-amount{
  left:209mm!important;
  width:38mm!important;
  text-align:left!important;
}
.pc27-total-label{top:129.45mm!important}
.pc27-meta-box-invoice,
.pc27-meta-box-payment,
.pc27-meta-box-exchange,
.pc27-meta-box-amount{
  left:248mm!important;
  width:37mm!important;
  height:6.3mm!important;
}
.pc27-meta-box-invoice{top:135mm!important}
.pc27-meta-label-invoice{top:136.65mm!important}
.pc27-meta-box-payment{top:142mm!important}
.pc27-meta-label-payment{top:143.65mm!important}
.pc27-meta-box-exchange{top:149mm!important}
.pc27-meta-label-exchange{top:150.65mm!important}
.pc27-meta-box-amount{top:156mm!important}
.pc27-meta-label-amount{top:157.65mm!important}

/* V100: standard A4 landscape output and a compact, aligned lower half. */
.petty-sheet-v27{height:210mm;break-inside:avoid;page-break-inside:avoid}
.pc27-column-body{grid-template-rows:repeat(10,5mm) 5.2mm}
.pc27-total-label{top:117.25mm!important}
.pc27-meta-box-invoice{top:123mm!important}.pc27-meta-label-invoice{top:124.65mm!important}
.pc27-meta-box-payment{top:130mm!important}.pc27-meta-label-payment{top:131.65mm!important}
.pc27-meta-box-exchange{top:137mm!important}.pc27-meta-label-exchange{top:138.65mm!important}
.pc27-meta-box-amount{top:144mm!important}.pc27-meta-label-amount{top:145.65mm!important}
.pc27-requested-title,.pc27-received-title{top:150mm}
.pc27-requested-line,.pc27-received-line{top:148.8mm}
.pc27-endorsed-title,.pc27-paid-title{top:162mm}
.pc27-endorsed-line,.pc27-paid-line{top:160.8mm}
.pc27-school{top:168mm}
.pc27-note{top:172mm}
.pc27-approval-title{top:172.5mm}
.pc27-budget-title{top:177mm}
.pc27-finance-label,.pc27-director-label{top:179.5mm}
.pc27-budget-options{top:182mm}
.pc27-finance-line,.pc27-director-line{top:186mm}
.pc27-budget-by,.pc27-budget-date{top:188mm}
.pc27-details-box{top:193.5mm;height:12.5mm}
.pc27-details-value,.petty-sheet-v27 textarea[name="pc_details"]{height:8mm}
.pc27-version{bottom:1mm}
@page{size:A4 landscape;margin:0}
@media print{html,body{width:297mm!important;height:210mm!important}.petty-sheet-v27{width:297mm!important;min-width:297mm!important;height:210mm!important}}

/* V105: keep the requested 100-character Description limit legible in its fixed-width column. */
.pc27-description-body .pc27-control,.pc27-description-body .pc27-value{font-size:7.6pt!important}

/* V108: keep the approved step geometry and move the AIT logo up by 2mm. */
.pc27-header-top{left:46mm;top:8mm;border-top-width:.65mm;z-index:1}
.pc27-header-vertical{left:46mm;top:8mm;height:17.7mm;border-left-width:.65mm;z-index:1}
.pc27-header-left{left:14mm;top:25.7mm;width:32mm;border-top-width:.65mm;z-index:1}
.pc27-logo{left:18mm;top:4.8mm;width:23mm;height:23mm;object-fit:contain;background:#fff;z-index:2}

/* V118: match the reference Date box and share its typography with Internal Use. */
.pc27-date-label,.pc27-internal-label{
  left:157mm;
  width:51mm;
  height:6.5mm;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  font-family:Arial,Helvetica,sans-serif;
  font-size:10pt;
  font-weight:700;
  line-height:1;
  text-align:right;
  white-space:nowrap;
}
.pc27-date-label{top:10.5mm}
.pc27-internal-label{top:18.8mm}
.pc27-date,.pc27-internal{
  width:38mm;
  height:6.5mm;
  border:.22mm solid #7f7f7f;
  box-sizing:border-box;
}
.pc27-date .pc27-value,.pc27-internal .pc27-value,.pc27-internal .pc27-control{
  width:100%;
  height:100%;
  padding:0 1mm!important;
  font-family:Arial,Helvetica,sans-serif;
  font-size:10pt!important;
  font-weight:700;
  line-height:1!important;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-variant-numeric:tabular-nums;
}
.pc27-date .pc27-value,.pc27-internal .pc27-value{
  display:flex;
  align-items:center;
  justify-content:center;
}

/* V122: system Reference No. in the header and A4 portrait PDF export. */
.pc27-reference-label{
  position:absolute;
  left:157mm;
  top:2.2mm;
  width:51mm;
  height:6.5mm;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  font-family:Arial,Helvetica,sans-serif;
  font-size:10pt;
  font-weight:700;
  line-height:1;
  text-align:right;
  white-space:nowrap;
}
.pc27-reference{
  left:211mm;
  top:1mm;
  width:38mm;
  height:6.5mm;
  border:.22mm solid #7f7f7f;
  box-sizing:border-box;
}
.pc27-reference .pc27-value{
  width:100%;
  height:100%;
  padding:0 1mm!important;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:Arial,Helvetica,sans-serif;
  font-size:8.5pt!important;
  font-weight:700;
  line-height:1!important;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-variant-numeric:tabular-nums;
}
@page{size:A4 portrait;margin:0}
@media print{
  html,body{width:210mm!important;height:297mm!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#fff!important}
  .petty-sheet-wrap-v27{position:relative!important;width:210mm!important;height:297mm!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#fff!important}
  .petty-sheet-v27{position:absolute!important;left:0!important;top:0!important;width:297mm!important;min-width:297mm!important;height:230mm!important;margin:0!important;border:0!important;transform:scale(.7070707071)!important;transform-origin:top left!important}
}
/* V122: make the new approval date/time text fit without truncating signer rows. */
.pc27-requested-line,.pc27-endorsed-line{width:78mm}
.pc27-received-line,.pc27-paid-line{width:95mm}
.pc27-director-line{width:69mm}
.pc27-requested-line span,.pc27-endorsed-line span,.pc27-received-line span,.pc27-paid-line span,.pc27-finance-line span,.pc27-director-line span{
  font-size:7pt;
  max-width:99%;
}

/* V123: keep the Checking Accountant approval timestamp on one line above Details. */
.pc27-budget-date{
  left:74mm!important;
  top:188mm!important;
  width:60mm;
  display:flex;
  align-items:flex-end;
  gap:2mm;
  white-space:nowrap;
}
.pc27-budget-date span{
  display:block;
  flex:1 1 auto;
  width:auto!important;
  min-width:0;
  margin-left:0!important;
  padding:0 1mm .2mm;
  border-bottom:.22mm solid #555;
  font-size:7pt;
  line-height:1;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-variant-numeric:tabular-nums;
}
