.fl142-doc{font-family:Arial,"Segoe UI",sans-serif;color:#111}
#letterPrint{background:#eef2f4;padding:12px;box-sizing:border-box;overflow:auto}
.fl142-sheet{
  width:210mm;min-height:297mm;height:297mm;
  margin:0 auto 14px;padding:14mm 15mm 13mm;
  box-sizing:border-box;background:#fff;
  box-shadow:0 4px 20px rgba(20,40,55,.12);
  page-break-after:always;break-after:page;
  position:relative;overflow:hidden
}
.fl142-sheet:last-child{page-break-after:auto;break-after:auto}
.fl142-topline{
  display:flex;justify-content:space-between;gap:12px;
  font-size:8.8px;font-weight:700;margin-bottom:7mm
}
.fl142-corp{text-align:center;font-weight:800;font-size:14px;line-height:1.18;text-transform:uppercase}
.fl142-branch{text-align:center;font-weight:700;font-size:10.5px;margin-top:3px}
.fl142-meta{font-size:10px;line-height:1.55;margin-top:8mm}
.fl142-meta-row{display:flex;gap:5px;align-items:baseline;margin:3px 0}
.fl142-line{display:inline-block;border-bottom:1px solid #111;min-width:80px;flex:1 1 auto;padding:0 3px 1px}
.fl142-to{font-size:10.5px;line-height:1.5;margin-top:7mm}
.fl142-subject{font-size:10.5px;margin-top:6mm;line-height:1.5}
.fl142-placeholder{
  margin-top:7mm;padding:7mm 6mm;border:1px dashed #9aa8b2;
  background:#f8fafb;font-size:10.2px;line-height:1.6;text-align:justify
}
.fl142-table-title{font-size:10.5px;font-weight:800;margin:7mm 0 3mm}
table.fl142-grid{width:100%;border-collapse:collapse;table-layout:fixed}
.fl142-grid th,.fl142-grid td{
  border:1px solid #111;padding:4px 4px;text-align:center;vertical-align:middle;
  font-size:8.3px;line-height:1.25;overflow-wrap:anywhere
}
.fl142-grid th{font-weight:800}
.fl142-grid td{font-weight:600}
.fl142-grid col:nth-child(1){width:5%}
.fl142-grid col:nth-child(2){width:16%}
.fl142-grid col:nth-child(3){width:14%}
.fl142-grid col:nth-child(4){width:12%}
.fl142-grid col:nth-child(5){width:15%}
.fl142-grid col:nth-child(6){width:11%}
.fl142-grid col:nth-child(7){width:11%}
.fl142-grid col:nth-child(8){width:16%}
.fl142-encl{font-size:9.5px;line-height:1.5;margin-top:6mm}
.fl142-sign{
  width:58mm;margin-left:auto;margin-top:18mm;
  padding-top:5px;border-top:1px solid #111;
  text-align:center;font-size:9.5px;line-height:1.35;font-weight:700
}
.fl142-pagefoot{position:absolute;right:15mm;bottom:5mm;font-size:8px;font-weight:600;color:#555}
.fl142-editable{outline:1px dashed transparent;cursor:text}
.fl142-editable:hover{outline-color:#8aa9bd;background:rgba(220,239,250,.25)}
.fl142-editable:focus{outline:1.5px solid #2d719f;background:#fffdf2}

#v142LetterModal{position:fixed;inset:0;z-index:280000;background:rgba(8,18,28,.76);display:none;align-items:stretch;justify-content:center;padding:14px}
#v142LetterModal.open{display:flex}
#v142LetterShell{width:min(1180px,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)}
#v142LetterToolbar{min-height:52px;background:#fff;border-bottom:1px solid #ccd5dc;display:flex;align-items:center;gap:8px;padding:8px 12px;flex-wrap:wrap}
#v142LetterToolbar strong{margin-right:auto;color:#163b59}
#v142LetterToolbar .note{font-size:10.5px;color:#61707a}
#v142LetterFrame{flex:1;width:100%;border:0;background:#dfe5e8}

@media print{
  @page{size:A4 portrait;margin:0}
  html,body{background:#fff!important}
  #letterPrint{width:210mm!important;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important}
  .fl142-sheet{
    width:210mm!important;min-width:210mm!important;max-width:210mm!important;
    height:297mm!important;min-height:297mm!important;max-height:297mm!important;
    margin:0!important;padding:14mm 15mm 13mm!important;box-shadow:none!important;
    page-break-after:always!important;break-after:page!important
  }
  .fl142-sheet:last-child{page-break-after:auto!important;break-after:auto!important}
  .fl142-editable{outline:none!important}
}
