:root{--psb-blue:#0878bd;--psb-dark:#073e72;--psb-red:#ef1b23;--psb-pale:#fbfce8;--psb-gray:#ededed;--psb-line:#333}.psb83-wrap{overflow-x:auto;padding:.5rem;background:#f2f4f6;border-radius:.5rem}.psb83-sheet{width:1000px;min-width:1000px;min-height:1414px;margin:0 auto;background:#fff;color:#111;font-family:Arial,Helvetica,sans-serif;font-size:11px;line-height:1.12;padding:30px 44px 22px;position:relative;border:1px solid #aaa}.psb83-sheet *{box-sizing:border-box}.psb83-input,.psb83-textarea,.psb83-bottom-textarea{width:100%;height:100%;border:0;background:transparent;padding:3px 6px;font:inherit;color:inherit;outline:0}.psb83-textarea,.psb83-bottom-textarea{resize:none}.psb83-static{height:100%;padding:3px 6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.psb83-multiline{white-space:pre-wrap;word-break:break-word}.psb83-pale,.psb83-white,.psb83-gray{border:1px solid var(--psb-line);min-height:25px}.psb83-pale{background:var(--psb-pale)}.psb83-white{background:#fff}.psb83-gray{background:var(--psb-gray);display:flex;align-items:center;justify-content:flex-end;padding:3px 6px;font-variant-numeric:tabular-nums}.psb83-center{display:flex;align-items:center;justify-content:center}.psb83-money{text-align:right;font-variant-numeric:tabular-nums}.psb83-converted{background:var(--psb-gray)!important;cursor:not-allowed}.psb83-header{position:relative;height:106px}.psb83-line-top{position:absolute;left:136px;top:18px;width:760px;border-top:4px solid var(--psb-blue)}.psb83-line-vertical{position:absolute;left:136px;top:18px;height:61px;border-left:4px solid var(--psb-blue)}.psb83-line-left{position:absolute;left:61px;top:76px;width:75px;border-top:4px solid var(--psb-blue)}.psb83-logo{position:absolute;left:67px;top:7px;width:65px;height:65px;object-fit:contain;background:#fff}.psb83-title{position:absolute;left:169px;top:23px;color:var(--psb-dark);font-size:26px;font-weight:800;white-space:nowrap}.psb83-subtitle{position:absolute;left:170px;top:54px;color:var(--psb-red);font-size:17px;font-weight:800}.psb83-date-label{position:absolute;right:116px;top:66px;font-weight:700}.psb83-date-box{position:absolute;right:0;top:58px;width:105px;height:28px;border:1px solid #888;background:var(--psb-pale);display:flex;align-items:center;justify-content:center;font-weight:700}.psb83-top-grid{display:grid;grid-template-columns:62px 158px 82px 112px 1fr 38px 110px;gap:5px 8px;align-items:center;margin:2px 44px 0}.psb83-top-grid>label{font-weight:700;text-align:right}.psb83-pn-label{grid-column:1;grid-row:1}.psb83-pn-box{grid-column:2;grid-row:1}.psb83-pndate-label{grid-column:3;grid-row:1}.psb83-pndate-box{grid-column:4;grid-row:1}.psb83-name-label{grid-column:1;grid-row:2}.psb83-name-box{grid-column:2 / 6;grid-row:2}.psb83-id-label{grid-column:6;grid-row:2}.psb83-id-box{grid-column:7;grid-row:2}.psb83-details-label{grid-column:1;grid-row:3}.psb83-details-top{grid-column:2 / 8;grid-row:3;height:62px}.psb83-details-top .psb83-textarea{padding:5px}.psb83-original-pn{display:grid;grid-template-columns:310px 220px;gap:6px 12px;align-items:center;margin:12px 44px 0}.psb83-original-pn>strong{text-align:right}.psb83-original-pn>div{height:27px}.psb83-original-pn .psb83-advance-purpose{grid-column:2 / 3;height:48px}.psb83-original-pn>strong:nth-of-type(2){align-self:start;padding-top:7px}.psb83-remarks-section{display:grid;grid-template-columns:105px 220px 1fr;gap:0 8px;align-items:start;margin:18px 44px 0}.psb83-remarks-title{font-weight:700;line-height:1.2}.psb83-bank-labels{display:grid;grid-template-rows:repeat(5,25px);font-weight:700}.psb83-bank-labels label{display:flex;align-items:center}.psb83-bank-values{display:grid;grid-template-rows:repeat(5,25px)}.psb83-bank-values>div{border-bottom:0}.psb83-bank-values>div:last-child{border-bottom:1px solid var(--psb-line)}.psb83-summary{display:grid;grid-template-columns:1fr 230px;gap:3px 18px;align-items:center;margin:18px 44px 0}.psb83-summary-head{height:24px;background:var(--psb-gray);display:flex;align-items:center;justify-content:center;color:#001eff;font-weight:800}.psb83-currency-head{display:grid;grid-template-columns:1fr 1fr;text-align:center;font-weight:800;height:20px}.psb83-summary>strong{font-size:12px}.psb83-summary>strong span{color:var(--psb-red)}.psb83-dual-money{display:grid;grid-template-columns:1fr 1fr;gap:8px}.psb83-dual-money>div{height:25px}.psb83-dual-money .psb83-input{padding-right:6px;text-align:right;font-variant-numeric:tabular-nums}.psb83-expense-title{height:24px;background:#e7e7dc;margin:18px 0 0;text-align:center;font-weight:800;padding-top:5px}.psb83-expense-table{display:grid;grid-template-columns:48px 245px 350px 1fr;align-items:stretch;margin-top:4px}.psb83-th{height:29px;border:1px solid #777;background:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}.psb83-doc-head{margin-right:8px}.psb83-settlement-head{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:18px 21px;border:1px solid #333;text-align:center;color:#001eff;font-weight:800}.psb83-settlement-head strong{grid-column:1/3;background:var(--psb-gray);padding-top:2px}.psb83-settlement-head span{border-top:1px solid #333;padding-top:3px}.psb83-settlement-head span+span{border-left:1px solid #333}.psb83-doc-no{height:25px;border:1px solid #333;border-top:0;display:flex;align-items:center;justify-content:center;font-weight:700;margin-right:8px}.psb83-expense-table>.psb83-pale{height:25px;border-top:0}.psb83-expense-table>.psb83-pale:nth-of-type(4n+3){border-left:0}.psb83-expense-money{height:25px}.psb83-expense-money>div{height:25px;border-top:0}.psb83-expense-table .psb83-account{font-size:10px}.psb83-total-label{display:flex;align-items:center;padding-left:8px;height:25px}.psb83-contact-row{display:grid;grid-template-columns:115px 38px 160px 42px 160px 35px 1fr;gap:5px;align-items:center;margin-top:14px;background:var(--psb-pale);color:var(--psb-red);font-weight:700;min-height:27px}.psb83-contact-row>div{height:27px;color:#111}.psb83-contact-row span{white-space:nowrap}.psb83-approval-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:35px;margin-top:14px}.psb83-signature-box{border:1px solid #222;min-height:245px;padding:14px 0 0}.psb83-sign-row{display:grid;grid-template-columns:155px 1fr;gap:10px;align-items:end;margin-top:12px;color:#001eff;font-style:italic;font-weight:700}.psb83-sign-line{border-bottom:2px solid var(--psb-blue);min-height:24px;position:relative;color:#111;font-style:normal;text-align:center}.psb83-sign-line span{position:absolute;left:50%;bottom:0;transform:translateX(-50%);background:#fff;padding:0 4px;max-width:95%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.psb83-school{margin:2px 0 0 0;font-size:10px}.psb83-director{margin-top:36px}.psb83-finance-box{padding-top:17px}.psb83-budget,.psb83-finance{font-style:italic;margin:0 0 24px}.psb83-bydate{display:grid;grid-template-columns:minmax(150px,1fr) 14px auto 14px auto;gap:5px;align-items:center;margin-top:7px}.psb83-bydate>span:first-child{border-bottom:1px solid #333;padding-bottom:2px}.psb83-date-line{text-align:right;margin-top:7px}.psb83-date-line b{display:inline-block;min-width:110px;border-bottom:1px solid #333;padding-bottom:2px}.psb83-check{display:inline-block;width:13px;height:13px;border:1px solid #777;position:relative}.psb83-check.checked:after{content:'✓';position:absolute;left:1px;top:-5px;font-size:16px;color:#00518a;font-weight:900}.psb83-bydate-two{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:8px}.psb83-bydate-two span{border-bottom:1px solid #333;padding-bottom:2px}.psb83-exchange-table{border:1px solid #222;width:235px;margin:22px auto 0;text-align:center}.psb83-exchange-table strong{display:block;background:var(--psb-gray);padding:4px}.psb83-exchange-table>div{height:27px;border-top:1px solid #222}.psb83-exchange-table .psb83-input{text-align:center}.psb83-bottom-box{border:1px solid #222;min-height:62px;margin-top:16px;padding:5px}.psb83-bottom-textarea{height:42px;padding:3px 0}.psb83-comment{margin-top:12px}.psb83-version{position:absolute;right:44px;bottom:5px;color:#777;font-size:8px}.psb83-sheet.editable .psb83-pale:focus-within{box-shadow:inset 0 0 0 1px rgba(0,111,186,.3)}@page{size:A4 portrait;margin:0}@media print{html,body{margin:0!important;padding:0!important;background:#fff!important}.psb83-wrap{padding:0!important;background:#fff!important;overflow:visible!important}.psb83-sheet{border:0!important;margin:0!important}}


/* V84: match the official Remarks/bank layout and clean the expense grid. */
.psb83-remarks-section{
  display:grid;
  grid-template-columns:100px minmax(0,1fr);
  column-gap:8px;
  align-items:start;
  margin:18px 44px 0;
}
.psb83-remarks-title{
  padding-top:1px;
  font-weight:700;
  line-height:1.15;
}
.psb83-transfer-content{min-width:0}
.psb83-transfer-heading{
  height:23px;
  display:flex;
  align-items:flex-start;
  font-weight:700;
}
.psb83-transfer-grid{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  grid-template-rows:repeat(5,27px);
  align-items:stretch;
}
.psb83-transfer-grid label{
  display:flex;
  align-items:center;
  padding-right:8px;
  font-weight:700;
  line-height:1.1;
  min-width:0;
}
.psb83-transfer-grid .psb83-bank-entry{
  min-height:27px;
  height:27px;
  background:var(--psb-pale);
  border:0;
  border-left:1px solid var(--psb-line);
  border-right:1px solid var(--psb-line);
  border-bottom:1px solid var(--psb-line);
}
.psb83-transfer-grid .psb83-bank-entry:first-of-type{
  border-top:1px solid var(--psb-line);
}
.psb83-transfer-grid .psb83-input,
.psb83-transfer-grid .psb83-static{
  height:100%;
  display:flex;
  align-items:center;
  padding:3px 8px;
}


/* V86: one five-column grid for header, all 12 rows, and TOTAL EXPENSES. */
.psb83-expense-table{
  display:grid;
  grid-template-columns:48px 245px 350px minmax(0,1fr) minmax(0,1fr);
  grid-auto-flow:row;
  grid-auto-rows:auto;
  column-gap:0;
  row-gap:0;
  align-items:stretch;
  margin-top:4px;
}
.psb83-th,
.psb83-settlement-head{
  height:39px!important;
  min-height:39px!important;
  align-self:stretch;
}
.psb83-th{
  border:1px solid #777;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}
.psb83-doc-head{
  grid-column:1;
  margin-right:8px;
}
.psb83-account-head{grid-column:2}
.psb83-description-head{grid-column:3}
.psb83-account-head,
.psb83-description-head{
  border-right:0;
}
.psb83-settlement-head{
  grid-column:4 / 6;
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:18px 21px;
  border:1px solid var(--psb-line);
  text-align:center;
  color:#001eff;
  font-weight:800;
}
.psb83-settlement-head strong{
  grid-column:1 / 3;
  background:var(--psb-gray);
  display:flex;
  align-items:center;
  justify-content:center;
}
.psb83-settlement-head span{
  border-top:1px solid var(--psb-line);
  display:flex;
  align-items:center;
  justify-content:center;
}
.psb83-settlement-head span + span{border-left:1px solid var(--psb-line)}

.psb83-doc-no,
.psb83-account-cell,
.psb83-description-cell,
.psb83-money-cell{
  height:26px!important;
  min-height:26px!important;
  min-width:0;
  overflow:hidden;
}
.psb83-doc-no{
  margin-right:8px;
  border:1px solid var(--psb-line);
  border-top:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}
.psb83-account-cell,
.psb83-description-cell,
.psb83-money-cell{
  border:0!important;
  border-left:1px solid var(--psb-line)!important;
  border-bottom:1px solid var(--psb-line)!important;
  background:var(--psb-pale);
}
.psb83-vnd-cell{border-right:1px solid var(--psb-line)!important}
.psb83-account-cell .psb83-input,
.psb83-account-cell .psb83-static,
.psb83-description-cell .psb83-input,
.psb83-description-cell .psb83-static,
.psb83-money-cell .psb83-input,
.psb83-money-cell .psb83-static{
  width:100%;
  height:100%;
  min-height:0;
  display:flex;
  align-items:center;
  padding:2px 8px;
  line-height:1.15;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.psb83-money-cell .psb83-input,
.psb83-money-cell .psb83-static{
  justify-content:flex-end;
  text-align:right;
  font-variant-numeric:tabular-nums;
}
.psb83-expense-table .psb83-account{font-size:10px}

.psb83-total-doc{
  grid-column:1;
  height:27px;
}
.psb83-total-label{
  grid-column:2 / 4;
  height:27px;
  display:flex;
  align-items:center;
  padding-left:8px;
  border-top:1px solid var(--psb-line);
}
.psb83-total-money{
  height:27px!important;
  min-height:27px!important;
  border-top:1px solid var(--psb-line)!important;
  border-left:1px solid var(--psb-line)!important;
  border-bottom:1px solid var(--psb-line)!important;
  border-right:0!important;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:3px 8px;
  background:var(--psb-gray);
  font-variant-numeric:tabular-nums;
}
.psb83-expense-table > .psb83-total-actual-usd{grid-column:4}
.psb83-expense-table > .psb83-total-actual-vnd{
  grid-column:5;
  border-right:1px solid var(--psb-line)!important;
}


/* V87: scope TOTAL EXPENSES grid positioning to the expense table only.
   The same total classes are reused in the summary block; global grid-column
   rules made those cells collapse into small boxes. */
.psb83-summary .psb83-total-actual-usd,
.psb83-summary .psb83-total-actual-vnd{
  grid-column:auto!important;
  width:auto;
  min-width:0;
  height:25px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:3px 8px;
  border:1px solid var(--psb-line);
  background:var(--psb-gray);
  font-variant-numeric:tabular-nums;
}
.psb83-summary .psb83-dual-money{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:8px;
  width:100%;
}
.psb83-summary .psb83-dual-money>div{
  width:100%;
  min-width:0;
  box-sizing:border-box;
}

/* V93: removed original promissory fields from Settlement; keep the next section compact. */
.psb83-remarks-section{margin-top:14px!important}

/* V97: align Remarks with Name/Details and avoid a doubled line below row 12. */
.psb83-remarks-section{
  grid-template-columns:62px minmax(0,1fr);
  column-gap:8px;
  margin:14px 44px 0!important;
}
.psb83-remarks-title{
  padding-top:1px;
  text-align:right;
}
.psb83-total-label{border-top:0}
.psb83-total-money{border-top:0!important}

/* V100: contact captions remain complete and the sheet cannot split. */
.psb83-sheet{break-inside:avoid;page-break-inside:avoid}
.psb83-contact-row{grid-template-columns:115px 42px 155px 46px 155px 40px 1fr}

/* V108: keep the approved step geometry and move the AIT logo up by 8px. */
.psb83-header{height:114px}
.psb83-line-top{left:174px;right:0;top:30px;width:auto;border-top:.65mm solid var(--psb-blue);z-index:1}
.psb83-line-vertical{left:174px;top:30px;height:67px;border-left:.65mm solid var(--psb-blue);z-index:1}
.psb83-line-left{left:53px;top:97px;width:121px;border-top:.65mm solid var(--psb-blue);z-index:1}
.psb83-logo{left:68px;top:18px;width:87px;height:87px;object-fit:contain;background:#fff;z-index:2}
.psb83-title{left:196px;top:33px;color:#063c70;letter-spacing:-.35px;line-height:.92}
.psb83-subtitle{left:230px;top:65px;color:#ed1c24;font-size:14px;font-weight:800;line-height:1}

/* V118: settlement Date follows the same centered 10pt header-meta standard. */
.psb83-date-label{
  right:132px;
  top:58px;
  width:48px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  font-family:Arial,Helvetica,sans-serif;
  font-size:13.333px;
  font-weight:700;
  line-height:1;
  text-align:right;
  white-space:nowrap;
}
.psb83-date-box{
  right:0;
  top:58px;
  width:120px;
  height:30px;
  border:1px solid #7f7f7f;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 6px;
  font-family:Arial,Helvetica,sans-serif;
  font-size:13.333px;
  font-weight:700;
  line-height:1;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-variant-numeric:tabular-nums;
}

/* V122: system Reference No. in the settlement header. */
.psb83-reference-label{
  position:absolute;
  right:132px;
  top:18px;
  width:88px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  font-family:Arial,Helvetica,sans-serif;
  font-size:13.333px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}
.psb83-reference-box{
  position:absolute;
  right:0;
  top:18px;
  width:120px;
  height:30px;
  border:1px solid #7f7f7f;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 6px;
  font-family:Arial,Helvetica,sans-serif;
  font-size:11px;
  font-weight:700;
  line-height:1;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-variant-numeric:tabular-nums;
}

/* V125: give Reference No. breathing room above the blue header rule. */
.psb83-reference-label,
.psb83-reference-box{
  top:-6px!important;
}
