#formBPrint{
  width:100%;
  max-width:100%;
  margin:0 auto;
  padding:12px;
  box-sizing:border-box;
  background:#eef2f4;
  overflow:auto;
}
.fb98-doc{font-family:Arial,"Segoe UI",sans-serif;color:#000}
.fb98-sheet{
  width:297mm;
  height:210mm;
  box-sizing:border-box;
  padding:8mm 10mm 7mm;
  margin:0 auto 14px;
  background:#fff;
  box-shadow:0 4px 20px rgba(20,40,55,.12);
  page-break-after:always;
  break-after:page;
  overflow:hidden;
  position:relative;
}
.fb98-sheet:last-child{page-break-after:auto;break-after:auto}
.fb98-copy{
  position:absolute;right:10mm;top:4mm;
  font-size:8px;font-weight:700;color:#68757e
}
.fb98-form-tag{text-align:right;font-size:9.5px;font-weight:700;margin-bottom:2px;padding-right:4px}
.fb98-header{text-align:center;margin-bottom:7px}
.fb98-title-main{font-size:14.2px;font-weight:800;text-transform:uppercase;margin:0 0 2px;letter-spacing:.12px;line-height:1.14}
.fb98-title-sub{font-size:8.6px;font-weight:700;margin:0 0 1px}
.fb98-title-address{font-size:8.5px;margin:0 0 1px}
.fb98-title-loan{font-size:9.7px;font-weight:800;text-transform:uppercase;margin:1px 0}
.fb98-copies{font-size:8.6px;font-weight:700}
.fb98-system-ref{text-align:right;font-size:8.3px;font-weight:700;margin:-2px 0 3px}

.fb98-meta{font-size:9px;line-height:1.48;margin-bottom:5px;font-weight:600}
.fb98-meta-line{display:flex;align-items:baseline;gap:4px;margin-bottom:3px;min-width:0}
.fb98-fill{
  display:inline-block;border-bottom:1px solid #000;min-width:50px;padding:0 3px 1px;
  margin:0 2px;flex:1 1 auto;font-weight:600;color:#000;white-space:nowrap
}
.fb98-fill.short{flex:0 0 88px;min-width:88px}
.fb98-fill.mid{flex:0 0 150px;min-width:150px}

table.fb98-grid{
  width:100%!important;min-width:0!important;max-width:100%!important;
  border-collapse:collapse;table-layout:fixed;
  margin:5px 0 7px;font-size:7.4px
}
.fb98-grid th,.fb98-grid td{
  border:1px solid #000;padding:2px 2px!important;text-align:center;vertical-align:middle;
  overflow:hidden;overflow-wrap:normal;word-break:normal;white-space:normal;box-sizing:border-box
}
.fb98-grid th{font-weight:700;line-height:1.08;background:#fff}
.fb98-grid thead tr:first-child th{height:31px}
.fb98-grid thead tr:nth-child(2) th{height:24px}
.fb98-grid thead tr:last-child th{height:16px;font-size:7px}
.fb98-grid td{height:24px;font-size:7.7px;line-height:1.12;font-weight:600;color:#000}
.fb98-grid td.small{font-size:7.2px}
.fb98-grid td.money{white-space:nowrap}
.fb98-grid td.signature-cell{font-weight:400}
.fb98-grid tr.rejected td{
  color:#8f1e1e!important;
  text-decoration:line-through;
  text-decoration-thickness:1px
}
.fb98-grid col:nth-child(1){width:3%}
.fb98-grid col:nth-child(2){width:10%}
.fb98-grid col:nth-child(3){width:10%}
.fb98-grid col:nth-child(4){width:4%}
.fb98-grid col:nth-child(5){width:4%}
.fb98-grid col:nth-child(6){width:8%}
.fb98-grid col:nth-child(7){width:5%}
.fb98-grid col:nth-child(8){width:6%}
.fb98-grid col:nth-child(9){width:6%}
.fb98-grid col:nth-child(10){width:6%}
.fb98-grid col:nth-child(11){width:6%}
.fb98-grid col:nth-child(12){width:7%}
.fb98-grid col:nth-child(13){width:9%}
.fb98-grid col:nth-child(14){width:8%}
.fb98-grid col:nth-child(15){width:8%}

.fb98-footer-container{
  display:grid;
  grid-template-columns:minmax(0,1.82fr) minmax(210px,.9fr);
  gap:16px;
  font-size:8.35px;
  line-height:1.34;
  margin-top:3px
}
.fb98-footer-left{text-align:justify}
.fb98-memo-block{margin-bottom:7px}
.fb98-memo-head{
  display:grid;
  grid-template-columns:auto minmax(110px,1fr) auto minmax(90px,.6fr);
  gap:5px;align-items:end;margin-bottom:3px;font-weight:600
}
.fb98-inline-line{display:inline-block;border-bottom:1px solid #000;min-width:55px;padding:0 3px 1px;font-weight:600}
.fb98-center-tag{text-align:center;font-weight:700;margin:5px 0;font-size:8.8px}
.fb98-footer-right{
  display:grid;
  grid-template-rows:1fr 1fr 1fr;
  gap:10px;
  align-items:end
}
.fb98-sign-box{
  text-align:center;font-weight:700;
  padding-top:5px;border-top:1px solid #000;
  min-height:34px;box-sizing:border-box;line-height:1.3
}
.fb98-bank-line{display:grid;grid-template-columns:1fr auto 1fr auto;gap:3px;align-items:end;margin-top:3px}
.fb98-bank-line .fb98-inline-line{min-width:0;width:auto}
.fb98-pagefoot{position:absolute;right:10mm;bottom:3mm;font-size:7.4px;font-weight:600}

.fb98-editable{outline:1px dashed transparent;cursor:text}
.fb98-editable:hover{outline-color:#8aa9bd;background:rgba(220,239,250,.25)}
.fb98-editable:focus{outline:1.5px solid #2d719f;background:#fffdf2}

#v133FormBModal{
  position:fixed;inset:0;z-index:270000;background:rgba(8,18,28,.76);
  display:none;align-items:stretch;justify-content:center;padding:14px
}
#v133FormBModal.open{display:flex}
#v133FormBShell{
  width:min(1260px,100%);height:100%;background:#eef2f4;border-radius:12px;
  overflow:hidden;display:flex;flex-direction:column;box-shadow:0 18px 50px rgba(0,0,0,.35)
}
#v133FormBToolbar{
  min-height:52px;background:#fff;border-bottom:1px solid #ccd5dc;
  display:flex;align-items:center;gap:8px;padding:8px 12px;flex-wrap:wrap
}
#v133FormBToolbar strong{margin-right:auto;color:#163b59}
#v133FormBToolbar .note{font-size:10.5px;color:#61707a;margin-right:8px}
#v133FormBFrame{flex:1;width:100%;border:0;background:#dfe5e8}

@media print{
  @page{size:A4 landscape;margin:0}
  html,body{background:#fff!important}
  #formBPrint{width:297mm!important;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important}
  .fb98-sheet{
    width:297mm!important;min-width:297mm!important;max-width:297mm!important;
    height:210mm!important;min-height:210mm!important;max-height:210mm!important;
    margin:0!important;padding:8mm 10mm 7mm!important;box-shadow:none!important;
    page-break-after:always!important;break-after:page!important
  }
  .fb98-sheet:last-child{page-break-after:auto!important;break-after:auto!important}
  .fb98-editable{outline:none!important}
  .fb98-grid,.fb98-grid th,.fb98-grid td{border-color:#000!important}
}
